Senatek LS100 manual TCP Server/Client Mode Operations, TCP client mode setting

Page 34

dest_ip = destination IP address dest_port = destination TCP port

cyclic_connection_interval = cyclic connection interval in minutes inactivity_timeout = inactivity timeout in seconds.

Destination IP address and destination TCP Port are the information on the remote host to which the LS100 will try to connect in TCP client mode. The IP address (or domain name) should be specified together with the TCP port number.

Cyclic connection interval is the time interval at which the LS100 will try to connect to the remote host regardless of the existence of incoming data from the serial port. If the interval is specified with a valid value other than 0, the function is enabled. The time interval will be the specified value by the unit of minute. If the interval is entered as 0, cyclic connection feature will be disabled.

Inactivity timeout is the same as described in TCP server mode setting section.

Figure 4-4 shows TCP client mode setting example:

>set host tcpc 192.168.1.1 6001 10 300

OK

Figure 4-4 TCP client mode setting

4.3 TCP Server/Client Mode Operations

4.3.1 Overview

The LS100 works as either TCP server or client according to the situation. This will be the typical mode for most applications, since it will transfer the data either from serial port or from TCP port. The default TCP state is [Listen] which is the same as that of TCP server mode.

1) Typical State Transition

[Listen] --

> [Sync-Received] -->[Established] -->[Data] -->[Closed] -->[Listen]

Or

 

[Listen] --

> [Sync-Sent] -->[Established] -->[Data] -->[Closed] -->[Listen]

The initial state is [Listen]. If there are data coming from the serial port, it will connect to the remote host as a TCP client. If there is incoming connection request from the remote host, it will accept the connection as a TCP server, and then transfer data through the serial port. Thus, users can assume that the LS100 is always connected to the specified remote host.

34

Image 34 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 parametersStatic IP Static IP ConfigurationOverview 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-Sent Sync-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 numbersSerial Console Troubleshooting Appendix C TroubleshootingPower/LED Status Troubleshooting Remote Console TroubleshootingDhcp Troubleshooting IP Address TroubleshootingTCP Server Mode Operation Troubleshooting Serial Communication Troubleshooting