Senatek LS100 manual TCP Server Mode Configuration, TCP server mode setting

Page 31

4.1.2 TCP Server Mode Configuration

To configure the LS100 to work as a TCP server, use ‘set’ command as follows:

set host tcps listening_TCP_port inactivity_timeout + <CR> where,

listening_TCP_port: Listening TCP port

Inactivity_timeout: Inactivity timeout in seconds.

Listening TCP port is the TCP port number through which remote host can connect a TCP session, and, send and receive data. Incoming connection request to the ports other than Listening TCP Port will be rejected. The LS100 does not restrict the number to a specific range, but it is strongly recommended not to use the well-known ports for certain application (See Appendix D. Well-known Port Numbers). To change the port number, select menu 2 on the TCP Server mode configuration screen.

Inactivity timeout is set to maintain the TCP connection state as Closed or Listen in TCP host mode unless there is any data transfer between the serial device and the LS100. If there is no incoming or outgoing data through the serial port during the specified inactivity timeout interval, the existing TCP connection will be closed automatically.

If the value of inactivity timeout is set to 0, the current TCP connection is maintained unless there’s no connection close request. Although inactivity timeout is disabled, the LS100 will check the connection status between the LS100 and the remote host by sending “keep alive” packets periodically. If the remote host does not answer the packets, it is regarded that the connection is down unintentionally. Then, the LS100 will force to close the existing TCP connection.

Note:

At least, this value should be set larger than that of inter-character timeout. To prevent the unintended loss of data due to the session disconnection, it is highly recommended that this value is set large enough so that the intended data transfer is completed.

Figure 4-2 shows TCP server mode setting example:

>set host tcps 6001 300

OK

Figure 4-2. TCP server mode setting

31

Image 31 Contents
HelloDevice Lite Series LS100 User Guide User Guide for the HelloDevice LS100 Contents Page Overview IntroductionPackage Check List Serial Interface Product SpecificationMAC address Terminologies and AcronymsAcronym Table Panel Layout Getting StartedPanel layout of the LS100 Connecting the Power Connecting the HardwareConnecting to the Network Connecting a network cable to the LS100 Connecting to the DeviceUsing Serial Console Accessing Console PortData/Console switch of the LS100 Telnet program set up example Using Remote ConsoleLS100 command set summary Command UsageIP configuration example screen 1 ‘set’ Command11 Help screen example 2 ‘get’ Command14 Getting all parameters screen 3 ‘help’ Command15 Help screen 4 ‘factorydefault’ Command6 ‘exit’ Command 5 ‘save’ Command7 ‘reboot’ Command IP configuration parameters IP Address ConfigurationStatic IP Static IP ConfigurationOverview Dhcp Setting IP configuration parameters for Static IP modePPPoE Configuration Dhcp ConfigurationPPPoE Host mode configuration parameters Host Mode Configuration LS100 TCP/IP session modes Listen Sync-Sent TCP Server Mode OperationsSync-Recvd Listen TCP server mode setting TCP Server Mode ConfigurationOperations Serial data transfer TCP Client Mode OperationsState Transition Diagram of TCP client mode TCP Client Mode ConfigurationTCP client mode setting TCP Server/Client Mode OperationsState Transition Diagram of TCP server/client mode TCP Server/Client Mode ConfigurationTCP server/client mode setting Serial Port Configuration parameters Serial Port ConfigurationSet serial 9600 7 e 2 h s n Serial port configuration Administration parameters configuration System AdministrationEthernet Pin outs Appendix a ConnectionsSerial Port Pin Outs Serial Wiring Diagram Ethernet Wiring DiagramHelloDevice Table B-1 Well-known port numbers Appendix B Well-known Port NumbersRemote Console Troubleshooting Appendix C TroubleshootingPower/LED Status Troubleshooting Serial Console TroubleshootingDhcp Troubleshooting IP Address TroubleshootingTCP Server Mode Operation Troubleshooting Serial Communication Troubleshooting