Internet Communications; Ip Address - Campbell CR300 Series Product Manual

Compact datalogger
Hide thumbs Also See for CR300 Series:
Table of Contents

Advertisement

If you have a failed socket connection for Modbus TCP, check your
socket returned from
has a working network connection, further troubleshooting can be done with a computer
running Modbus software. Connect the computer to the same network and attempt to open a
Modbus TCP connection to the problem server device. Once you resolve the connection
between the computer and the server device, the connection from the data logger should work.

19.3 Internet communications

The internet protocols listed in
CR310 or when using a cell modem with the CR300 series. The most up-to-date information on
implementing these protocols is contained in CRBasic Editor help.
CRBasic instructions for internet communications include:
 
EmailRelay()
l
 
EmailSend()
l
 
EmailRecv()
l
 
FTPClient()
l
 
HTTPGet()
l
 
HTTPOut()
l
 
HTTPPost()
l
Once the hardware has been configured, PakBus communications over TCP/IP are possible.
These functions include the following:
 
Sending programs
l
 
Retrieving programs
l
 
Setting the data logger clock
l
 
Collecting data
l
 
Displaying the current record in a data table
l
Data logger callback to LoggerNet and data logger-to-data logger communications are also
possible over TCP/IP. For details and example programs see the CRBasic help.
See the
FTP streaming technical paper
()
to stream data.
19.3.1 IP address
When connected to a server with a list of IP addresses available for assignment, the data logger
will automatically request and obtain an IP address through DHCP. Once the address is assigned,
TCPOpen()
should be a number less than 99. Provided the data logger
Communications
 
HTTPPut
l
 
IPInfo()
l
 
PPPOpen()
l
 
PPPClose()
l
 
TCPOpen()
l
 
TCPClose()
l
for information on using
TCPOpen()
specifications (p. 249), are supported by the
FTPClient()
instruction. The
HTTPPut
or
19. Communications protocols     120

Advertisement

Table of Contents
loading

Table of Contents