2 ftp client, 4 telnet, 5 ping – Campbell Scientific NL115 Ethernet Interface and CompactFlash Module User Manual
Page 20: 6 serial server, Ftp client, Telnet, Ping, Serial server

NL115 Ethernet and CompactFlash
®
Module
b. Open a Windows Explorer window. Enter
ftp://username:[email protected] where nnn.nnn.nnn.nnn is
the IP address of the datalogger.
If the user name is “anonymous” with no password, enter
ftp://nnn.nnn.nnn.nnn where nnn.nnn.nnn.nnn is the IP address
of the datalogger.
7.1.3.2 FTP Client
The datalogger can also act as an FTP Client to send a file to or get a file from
an FTP Server (for example, another datalogger or web camera). This is done
using the
FTPClient() instruction. The following program is an example of
using
FTPClient() to send a file to another datalogger and get a file from that
datalogger. The first parameter in the instruction is the FTP Server’s IP
address. The second parameter is the FTP username. The third parameter is
the FTP password. The fourth parameter is the local filename. The fifth
parameter is the remote file name. The final parameter is the put/get option: 0
for put and 1 for get. The instruction returns –1 if the instruction was
successful and 0 if it was not.
PROGRAM
' CR1000
' FTPClient.cr1
Public Result1, Result2
BeginProg
Scan (20,Sec,1,1)
Result1 = FTPClient("192.168.7.85","user","password","CRD:pic.jpg","CRD:pic.jpg",0)
Result2 = FTPClient("192.168.7.85","user","password","CRD:file.html","CRD:file.html",1)
NextScan
EndProg
7.1.4 Telnet
Telnetting to the datalogger’s IP address allows access to the same commands
as the Terminal Emulator in the LoggerNet Connect Screen’s Datalogger
menu.
7.1.5 Ping
Pinging the datalogger’s IP address may be used to verify communications.
7.1.6 Serial Server
With an NL115 attached, the datalogger can be configured to act as a serial
server over the 10Base-T port. (A serial server is a device that allows serial
communication over a TCP/IP port.) This function may be useful when
communicating with a serial sensor over an Ethernet.
NOTE
14