4. Host Mode Configuration
Host mode represents the operating session mode of the LS100. Several host modes are available for the data communication between the serial device and remote hosts. Since TCP is connection- oriented protocol, server, client, server/client modes are provided. Table
| Table |
|
|
Mode | Description |
|
|
TCP server | Select this mode, when users want the LS100 to operate as a TCP server. The LS100 stands |
| by until there is any TCP connection request. If TCP connection is not already established at |
| that time, the LS100 accepts the request and the session is established. In the established |
| state, it transmits the data through the serial port if there is any data from the remote host. |
| Since the LS100 supports only one TCP session for the serial port, the additional TCP |
| connection request will be rejected if already established. This mode is useful when users |
| want to send data to the serial device at any time they want. |
|
|
TCP client | Select this mode, when users want the LS100 to operate as a TCP client. When the serial |
| device sends data or |
| connection to a remote server through its TCP port. If a TCP session is established between |
| them, the LS100 will send data to the server. If there’s any data from the server during the |
| session, it will also send the data through the serial port. However, if the LS100 failed to |
| connect to the remote server, the data from the serial port will be discarded. This is useful |
| when the serial device initiates sending data such as data gathering application. |
|
|
TCP | If you are not sure which mode to choose, select this mode since it will be applied in most |
server/client | applications. In this mode, the LS100 operates as TCP server AND client. If the connection is |
| not established, it will accept all incoming connection and connect to the remote host if there |
| are any data from the serial device. Otherwise, it will send data back and forth. In summary, |
| the LS100 will work as if it is virtually connected to the remote host. |
|
|
For each host mode, required parameters for configuration is summarized in Table
Table 4-2 Host mode configuration parameters
TCP Server | Listening TCP port | |
Inactivity timeout (sec) | ||
| ||
| Destination IP | |
TCP Client | Destination TCP Port | |
Cyclic connection Interval | ||
| ||
| Inactivity timeout (sec) | |
| Listening TCP port | |
TCP | Destination IP | |
Destination TCP Port | ||
Server/Client | ||
Cyclic connection Interval | ||
| ||
| Inactivity timeout (sec) |
Basic ‘set’ command usage for host mode configuration is as follows:
27