background image

 

35

2) Operations 

The only difference from 

TCP server

 mode is that the LS100 will try to connect and send serial data to 

the remote host even if the TCP session is not established. The difference from 

TCP client

 mode is 

that it will accept incoming connection request from remote host if the session is not established. The 

detailed operation principles are the same as that of 

TCP server

 and 

TCP client

 mode. 

 

 

Established 

Inactivity time-out 

TCP connection request rejected 

Or internal TCP time-out

 

TCP connection request accepted 

Sync-Sent 

Incoming data via serial port 

Incoming data   

from remote host 

In-coming TCP Close request 

Listen 

Incoming TCP connection request 

Incoming data via serial port 

Sync-Recvd

Reject 

Accept 

Closed 

Data 

 

Figure 4-5. State Transition Diagram of TCP server/client mode 

 

 

4.3.2 TCP Server/Client Mode Configuration 

 

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

 

set host tcpsc listening_port dest_ip dest_port cyclic_connection_interval inactivity_timeout 

where, 

Summary of Contents for HelloDevice LS100

Page 1: ...1 HelloDevice Lite Series LS100 User Guide Version 1 2 2 2005 11 8...

Page 2: ...oration Notice to Users When a system failure may cause serious consequences protecting life and property against such consequences with a backup system or safety device is essential The user agrees t...

Page 3: ...e 14 2 3 2 Using Remote Console 16 2 4 Command Usage 17 2 4 1 set Command 18 2 4 2 get Command 19 2 4 3 help Command 20 2 4 4 factorydefault Command 21 2 4 5 save Command 22 2 4 6 exit Command 22 2 4...

Page 4: ...Connections 41 A 1 Ethernet Pin outs 41 A 2 Serial Port Pin Outs 41 A 3 Ethernet Wiring Diagram 42 A 4 Serial Wiring Diagram 42 Appendix B Well known Port Numbers 43 Appendix C Troubleshooting 44 C 1...

Page 5: ...the LS100 supports open network protocols such as TCP IP allowing serial devices to be accessed over broadband network or conventional LAN Local Area Network environment The LS100 provides the managem...

Page 6: ...6 1 2 Package Check List LS100 external box 110V or 230V Power supply adapter Serial console data cable A hardcopy of Quick Start Guide CD ROM including the HelloDevice Manager and User Guide...

Page 7: ...TCP Telnet DHCP client PPPoE Security User ID Password Telnet or serial console port or HelloDevice Manager Management Full featured system status display Diagnostic LED Power Ready 10 Base T Link Ac...

Page 8: ...eractions between two communication end points that occur during the span of a single connection Typically one end point requests a connection with another specified end point and if that end point re...

Page 9: ...tocol TCP Transmission Control Protocol DHCP Dynamic Host Configuration Protocol SMTP Simple Mail Transfer Protocol FTP File Transfer Protocol PPP Point To Point Protocol PPPoE Point To Point Protocol...

Page 10: ...Network Interface Card hereafter NIC and or one RS232 serial port Terminal emulation program running on the PC One Ethernet cable 2 1 Panel Layout The LS100 has five LED indicator lamps for status di...

Page 11: ...11 Figure 2 1 The panel layout of the LS100...

Page 12: ...kage If the power is properly supplied the Power lamp of the LS100 will maintain solid red Figure 2 2 Connecting the power to the LS100 2 2 2 Connecting to the Network Connect the one end of the Ether...

Page 13: ...e to the LS100 2 2 3 Connecting to the Device Connect the serial data cable between the LS100 and the serial device If necessary supply the power to the serial device attached to the LS100 Figure 2 4...

Page 14: ...rt To use the serial port as the console port slide Data Console switch to the Console side Remote console Remote users can make a telnet connection to the remote console port port 23 of the LS100 via...

Page 15: ...in password Type help to get command usages help set group par1 par2 CR group ip host serial or admin par1 configuration parameters Use to keep a parameter s value get group CR group ip host serial ad...

Page 16: ...he remote console or serial console at a time If the serial console is established while a remote console is established current remote console will be halted and no more remote console will be establ...

Page 17: ...If error ERROR CR LF get group CR Get configuration parameter values group ip host serial admin or status If group is specified shows settings of the group If group is omitted shows settings of all gr...

Page 18: ...P address of the third parameter 192 168 1 100 The fifth parameter indicates the subnet mask and the next indicates the default gateway IP address If users want to change only one of the parameters of...

Page 19: ...is specified shows settings of the group If group is omitted shows settings of all groups The group means the category where parameters belong to as like set command For example if users want to view...

Page 20: ...ng all parameters screen 2 4 3 help Command With help command users can find command usage help in the console screen Basic command usage is as follows help group CR where if group is omitted overall...

Page 21: ...r3 gateway if ipmode dhcp no parameters required if ipmode pppoe par1 PPPoE username par2 PPPoE password Figure 2 16 Help screen with ip group specified 2 4 4 factorydefault Command With factorydefaul...

Page 22: ...l rebooting 2 4 6 exit Command With exit command current serial or remote console session will be closed However changed parameters are not applied until the LS100 is manually rebooted Command usage o...

Page 23: ...hree IP operating modes i e Static IP DHCP and PPPoE The factory default IP mode is DHCP mode Table 3 1 shows the parameter items for IP configuration Table 3 1 IP configuration parameters IP address...

Page 24: ...rk segment as the LS100 the connection is established directly from the LS100 Otherwise the connection is established through the given default gateway A gateway is a network point that acts as an ent...

Page 25: ...CP server side and each DHCP client computer receives this information when the IP address is provided at its boot up To obtain an IP address theLS100 sends a corresponding DHCP request as a broadcast...

Page 26: ...ccess such as an ADSL modem Since the LS100 provides the PPPoE protocol it can access the remote host on the Internet over ADSL connection It is required to set up the user name and password of the PP...

Page 27: ...LS100 tries to establish a TCP 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 serve...

Page 28: ...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...

Page 29: ...fer phase of the connection 4 1 TCP Server Mode Operations 4 1 1 Overview The LS100 works as a TCP server and the default TCP state is Listen in this mode The LS100 supports only one TCP socket connec...

Page 30: ...e discarded Session disconnection The connected session will be disconnected when the remote host sends disconnection request or when no data transfer activity is found through the serial port for a c...

Page 31: ...ta 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 b...

Page 32: ...ulated to the serial port buffer of the LS100 If the internal serial port buffer is full or inter character time interval reaches to the time specified as inter character timeout value it tries to con...

Page 33: ...session operations in TCP client mode Established Closed Data Incoming data via serial port Inactivity time out TCP connection request rejected Or internal TCP timer is expired TCP connection request...

Page 34: ...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 TC...

Page 35: ...ished Inactivity time out TCP connection request rejected Or internal TCP time out TCP connection request accepted Sync Sent Incoming data via serial port Incoming data from remote host In coming TCP...

Page 36: ...terval in minutes inactivity_timeout inactivity timeout in seconds Parameter definitions for TCP server and client mode configuration are the same with TCP server mode and TCP client mode parameters F...

Page 37: ...terchar_timeout ms where baudrate 1200 2400 4800 9600 19200 38400 57600 or 115200 data_bits 7 7 bits 8 8 bits parity n none e even o odd stop_bits 1 1 bit 2 2 bits flow_control n none h hardware dtr_o...

Page 38: ...e overall serial data from its internal buffer If there is incoming data through the serial port the LS100 stores data into the internal buffer The LS100 transfers data stored in the buffer via TCP IP...

Page 39: ...39 OK Figure 5 1 Serial port configuration...

Page 40: ...g set command as follows set admin username password devicename username login username password login password devicename device name Figure 7 1 shows administrative parameters configuration example...

Page 41: ...tor Pin Description Color 1 Tx White with orange 2 Tx Orange 3 Rx White with green 4 NC Blue 5 NC White with blue 6 Rx Green 7 NC White with brown 8 NC Brown A 2 Serial Port Pin Outs The pin assignmen...

Page 42: ...ethernet cable Rx 1 Rx 2 Tx 3 Tx 6 HelloDevice Hub Rx 1 Rx 2 Tx 3 Tx 6 Remote Host Rx 1 Rx 2 Tx 3 Tx 6 Rx 1 Rx 2 Tx 3 Tx 6 Figure A 4 Ethernet connection using straight through ethernet cable A 4 Ser...

Page 43: ...esses or by programs executed by privileged users Table B 1 shows famous port numbers among the well known port numbers For more details please visit IANA website http www iana org assignments port nu...

Page 44: ...configuration of terminal emulation program 9600 bps 8 Data bits No parity 1 stop bit Hardware flow control Serial console is not connected Invalid Console Data switch position Be sure that Console Da...

Page 45: ...the LS100 C 5 DHCP Troubleshooting Problem Cause Action Cannot lease IP address DHCP server is not working Check if DHCP server is working correctly IP address of the LS100 is changed DHCP server does...

Page 46: ...er character timeout Set inter character timeout with smaller value Cannot communicate with the LS100 Invalid serial port configuration Check if serial port configuration of the LS100 are the same wit...

Reviews: