4 connect, 5 serial sensors, 4 tcp serial client – Campbell Scientific NL240 Wireless Network Link Interface User Manual

Page 34: Connect, Serial sensors, Tcp serial client, 3. cs i/o serial server loggernet setup

Advertising
background image

NL240 Wireless Network Link Interface

FIGURE 8-3. CS I/O Serial Server LoggerNet Setup

8.2.3.4 Connect

You are now ready to connect to your datalogger using the LoggerNet Connect

screen.

8.2.3.5 Serial Sensors

The NL240 configured as an RS-232 serial server as described above can be

used to communicate with a serial sensor. However, LoggerNet is not capable

of communicating with the serial sensor. You must have some other method of

communicating with the sensor.

8.2.4 TCP Serial Client

When the RS-232 port is configured as

TCP Serial Client, the NL240 will

initiate and maintain a TCP socket connection to the IP address and port

number specified by the

Serial Client Address and Serial Client Port

settings. Data received on the RS-232 port will be forwarded to this TCP

connection, and data received on the TCP connection will be forwarded to the

RS-232 port. This mode can be particularly useful when an RF base or serial

sensor is behind a firewall and needs to be the party responsible for initiating

the TCP socket connection to the data collection server.

The NL240 will attempt to open a connection with the remote server, and, if

the connection fails to open, the device will continue to retry at an interval of

60 seconds. If data arrives on the RS-232 port when no TCP connection exists,

the device will buffer the data (up to 1500 bytes) and immediately attempt to

open a connection to deliver the data. If the remote server closes the

connection due to error, the NL240 will make a best effort to save any data that

was in process and re-queue it to be sent on the next successfully-opened TCP

connection.

24

Advertising