12
Equinox ESP-2 OPTO Serial Hub Installation and User Guide
3.4 Raw TCP Client
The raw TCP client connection method allows the ESP-2 hub to make a TCP-based
connection to a remote server and then transmit/receive data using standard TCP. The
ESP-2 hub initiates the TCP session.
When this method is enabled, the raw TCP client will attempt to establish a connection
with the configured server when the connection mode requirement has been satisfied.
The TCP session will remain established until the client closes the TCP socket, the TCP
connection is broken or the inactivity time-out (if enabled) occurs.
Table 10 describes this method’s configurable items for each serial port.
Serial
buffering
Specifies the length of time accumulated serial data should be buffered before
being sent to the remote server. Valid values are 0-65535 hundredths of a second.
For example, a value of 100 indicates that once serial data is received, the
ESP-2 hub will buffer the data until 1 second (100 hundredths of a second) has
elapsed, at which time all data will be sent.
A 0 value indicates that data will be sent as soon as it is available. The default
value is 0 (send immediately). If the buffer becomes half full, the time is ignored
and the data is sent.
Idle TCP
buffering
When enabled, the most recent 20K bytes of data are held in an internal buffer.
Once the connection is established, the buffered serial data is sent to the remote
endpoint of the TCP connection. When this option and this connection method
are enabled, you may not enable any other connection method for this port.
Table 10: Raw TCP Client Connection Method Configurable Items
Item
Description
Enable/
disable
Enables or disables the raw TCP client connection method on the port. The
default value is disabled. This method cannot be enabled if any other serial
port connection method is already enabled on the port.
Destination IP
address
Specifies the IP address of the remote server. This is a required item; there is
no default value. Only a single destination address can be configured for each
serial port. The address cannot be 0.0.x.x, 127.x.x.x, 192.1.1.1, 248-255.x.x.x
or the IP address of the ESP-2 hub.
Destination IP
port number
Specifies the IP port number on which the remote server is listening. Valid
values are 0-65535. The default value is 4001 for port 1 and 4002 for port 2.
Local IP port
number
Specifies the IP port number for the embedded TCP client. Valid values are
1024-65535. This value cannot conflict with port numbers specified for other
enabled connection methods on the other port. The default value is 4001 for
port 1 and 4002 for port 2.
Table 9: Raw TCP Server Connection Method Configurable Items (Continued)
Item
Description