Senatek LS100 manual Listen

Page 28

set host hostmode par1 par2 ...

where,

hostmode: tcps=TCP server / tcpc=TCP client / tcpsc=TCP server & client parameters:

if hostmode = TCP server (tcps), par1 = listening TCP port, par2 = inactivity timeout (sec)

if hostmode = TCP client (tcpc), par1 = destination IP address, par2 = destination TCP port,

par3 = cyclic connection interval (min), par4 = inactivity timeout (sec)

if hostmode = TCP server & client (tcpsc), par1 = listening TCP_port,

par2 = destination IP address, par3 = destination TCP port,

par4 = cyclic connection interval (min), par5 = inactivity timeout (sec)

*set cyclic connection interval to 0 not to use cyclic connection

*set inactivity timeout to 0 for unlimited timeout

For easier understanding of TCP modes, a simplified State Transition Diagram is often used. And too help users understand the diagram, the TCP state of the LS100 is briefly described as follows.

- Listen

It represents “a waiting for a connection request from any remote host”. It is a default start-up mode when it is set as TCP server mode. This state is valid only in TCP server mode operation.

- Closed

It means “No connection state at all”. If the data transfer is completed, the state is changed to this state if one of the host requests disconnection request. If it is in TCP server mode, the state is automatically changed to [Listen] mode. It is a default start-up mode when it is set as TCP client mode or TCP server/client mode.

- Sync-Received

In TCP server mode, the state will be changed from [Listen] to [Sync-Received], if any remote host sends connection request. If the LS100 accepts the request, the state will be changed into [Established]. This state is not valid in TCP client mode.

28

Image 28 Contents
HelloDevice Lite Series LS100 User Guide User Guide for the HelloDevice LS100 Contents Page Introduction OverviewPackage Check List Product Specification Serial InterfaceTerminologies and Acronyms MAC addressAcronym Table Getting Started Panel LayoutPanel layout of the LS100 Connecting the Power Connecting the HardwareConnecting to the Network Connecting to the Device Connecting a network cable to the LS100Accessing Console Port Using Serial ConsoleData/Console switch of the LS100 Using Remote Console Telnet program set up exampleCommand Usage LS100 command set summary1 ‘set’ Command IP configuration example screen2 ‘get’ Command 11 Help screen example3 ‘help’ Command 14 Getting all parameters screen4 ‘factorydefault’ Command 15 Help screen6 ‘exit’ Command 5 ‘save’ Command7 ‘reboot’ Command IP Address Configuration IP configuration parameters Static IP Static IP Configuration Overview Setting IP configuration parameters for Static IP mode DhcpPPPoE Configuration Dhcp ConfigurationPPPoE Host mode configuration parameters Host Mode ConfigurationLS100 TCP/IP session modes Listen TCP Server Mode Operations Sync-SentSync-Recvd Listen TCP Server Mode Configuration TCP server mode settingTCP Client Mode Operations Operations Serial data transferTCP Client Mode Configuration State Transition Diagram of TCP client modeTCP Server/Client Mode Operations TCP client mode settingTCP Server/Client Mode Configuration State Transition Diagram of TCP server/client modeTCP server/client mode setting Serial Port Configuration Serial Port Configuration parametersSet serial 9600 7 e 2 h s n Serial port configuration System Administration Administration parameters configurationEthernet Pin outs Appendix a ConnectionsSerial Port Pin Outs Serial Wiring Diagram Ethernet Wiring DiagramHelloDevice Appendix B Well-known Port Numbers Table B-1 Well-known port numbersAppendix C Troubleshooting Power/LED Status TroubleshootingSerial Console Troubleshooting Remote Console TroubleshootingDhcp Troubleshooting IP Address TroubleshootingTCP Server Mode Operation Troubleshooting Serial Communication Troubleshooting