HelloDevice Lite Series LS100 User Guide Version 1.2.
User Guide for the HelloDevice LS100 Version 1.2.0 Firmware version 1.2.X Last revised on May 21, 2004 Printed in Korea Copyright Copyright 2002 , Sena Technologies, Inc . All rights reserved. Sena Technologies reserves the right to make changes and improvements to its product without providing notice. Trademark HelloDevice™ is a trademark of Sena Technologies, Inc. Windows® is a registered trademark of Microsoft Corporation. Ethernet® is a registered trademark of XEROX Corporation.
Contents 1: Introduction 5 1.1 Overview ....................................................................................................................................................................5 1.2 Package Check List ............................................................................................................................................... 6 1.3 Product Specification .............................................................................................................
.2 TCP Client Mode Operations ............................................................................................................................32 4.2.1 Overview ......................................................................................................................................................32 4.2.2 TCP Client Mode Configuration ...........................................................................................................33 4.3 TCP Server/Client Mode Operations...
1: Introduction 1.1 Overview The HelloDevice Lite Series allows you to network-enable a variety of serial devices that were not originally designed to be networked. This capability brings the advantages of remote management and data accessibility to thousands of serial devices over the network. The LS100 is a most cost effective one port serial-Ethernet communication device. The LS100 supports RS232 serial communication allowing virtually any asynchronous serial device to be accessed over a network.
1.
1.
1.4 Terminologies and Acronyms The Internetworking related terminologies used frequently in this manual are defined clearly to help your better understanding of the LS100. MAC address On a local area network or other network, the MAC (Media Access Control) address is the computer's unique hardware number. (On an E thernet LAN, it's the same as your Ethernet address.
Table 1-1 Acronym Table ISP Internet Service Provider PC Personal Computer NIC Network Interface Card MAC Media Access Control LAN Local Area Network UTP Unshielded Twisted Pair ADSL Asymmetric Digital Subscriber Line ARP A ddress Resolution Protocol IP Internet Protocol ICMP Internet Control Message Protocol UDP User Datagram Protocol TCP Transmission Control Protocol DHCP Dynamic Host Configuration Protocol SMTP Simple Mail Transfer Protocol FTP File Transfer Protocol PPP Po
2: Getting Started This chapter describes how to set up and configure the LS100 in the first place. - 2.1 Panel Layout explains the panel layout and LED indicators. - 2.2 Connecting the Hardware describes how to connect the power, the network, and the serial device to the LS100. - 2.3 Accessing Console Port describes how to access the console port using a serial console at a local site or telnet console at a remote site. - 2.
Figure 2-1.
2.2 Connecting the Hardware This section describes how to connect the LS100 to serial device fo r the first time test. - Connect the power to the LS100 - Connect the Ethernet cable between the LS100 and Ethernet hub or switch - Connect the serial data cable between the LS100 and a serial device 2.2.1 Connecting the Power Connect the power jack to the LS100 power jack using DC power adapter included in the package. If the power is properly supplied, the [Power] lamp of the LS100 will maintain solid red.
Figure 2-3. Connecting a network cable 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.
2.3. Accessing Console Port There are two ways to access console port of the LS100 depending on whether the user is located at a local site or a remote site. - Serial console: Local users can connect directly to the serial console port of the LS100 using serial console/data cable (null -modem cable). The serial port of the LS100 is used as the console port as well as the data port. To use the serial port as the console port, slide Data/Console switch to the Console side.
Figure 2-6. Data/Console switch of the LS100 4) Run a terminal emulator program such as HyperTerminal. Set up the serial configuration parameters of the terminal emulation program as follows: 9600 Baud rate, Data bits 8, Parity None, Stop bits 1, No flow control 5) Press [ENTER] key. 6) Type the user name and password to log into the LS100. A factory default setting of the user name and password are both admin .
From the command prompt screen, users can set, get and save configuration parameter values using ‘set’, ‘get’ and ‘save’ command. Users also can exit the console or reboot the device using ‘exit” and ‘reboot’ command. The usage of the commands can be found using ‘help’ command. For command usages description, please refer to section 2.4 Command usage. 2.3.
of serial console will be displayed . The user can set, get, save configuration parameters and exit console, r eboot the device as like the serial console. 4) If serial console or the other remote consoles are connected already, new console will not be established at all. 2.4 Command Usage The LS100 provides several simple commands for configuration and control of the LS100. Table 2-2 summarizes command set which LS100 supports.
2.4.1 ‘set’ Command With ‘set’ command, users can configure parameter values of the LS100 for each environment. Basic ‘set’ command usage is as follows: set group par1 [par2 ...] + where, group = 'ip','host','serial' or 'admin' par1 par2 ... = configuration parameters. Use * to keep a parameter's value The ‘group’ is the category where the parameters should be entered. For example, if users want to set parameters related to the IP configuration, use set command as shown in the Figure 2 -9 .
if ipmode = dhcp, no parameters required if ipmode = pppoe, par1 = PPPoE username, par2 = PPPoE password > Figure 2-11 Help screen example Note: The changed values will not take effect until ‘save’ and ‘ reboot’ commands are invoked. For more details, please refer to section 2.4.5 ~ 2.4.7. 2.4.2 ‘get’ Command With ‘get’ command, users can view the current parameter values and status of the LS100.
If group is omitted, get command will show all of the parameter values as shown in Figure 2-14. > get --- Status --Serial_no.: LS100-0207_test MAC_address: 00-01-95-77-88-99 F/W_REV.: V1.2.0 Current_IP: 192.168.0.
- If group is omitted, shows this screen. - If group is specified, shows 'set' command usage of the group. factory default [option] + - if option is omitted, all parameters are set with factory default values. - if option='-ip', all parameters except IP settings are set with factory default values. save + - Save changes exit + - Exit without rebooting the device reboot + - Exit and reboot the device Figure 2-15 Help screen > help ip set ip ipmode par1 par2 ...
2.4.5 ‘save’ Command With ‘save’ command, current parameter changes are saved to non-volatile memory. Command usage of ‘save’ command is as follows: save + Saved changes will be applied if the LS100 is rebooted by ‘reboot’ command or manual 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 of ‘exit’ command is as follows: exit + 2.4.
3: IP Address Configuration A valid IP address of the LS 100 needs to be ass igned before it starts to work in the user's network environment. A network system administrator may provide the user with this IP address setting information for the network. The IP address must be unique within the network. Otherwise, the LS100 will not have a valid connection to the network. Users can choose the desired IP mode out of the three IP operating modes , i.e., Static IP, DHCP and PPPoE.
3.1 Static IP 3.1.1 Overview In the Static IP mode, users have to manually specify all the parameters such as IP addresses of the LS100, valid subnet mask and the default gateway IP address. IP address is an identification number assigned to a computer as a permanent address on the network. Computers use IP addresses to identify and talk to each other on the network. Choose the proper IP address which is unique and valid on the network environment.
> set ip static 192.168.1.10 255.255.255.0 192.168.1.1 OK Figure 3-1. Setting IP configuration parameters for Static IP mode 3.2 DHCP 3.2.1 Overview Dynamic Host Configuration Protocol (DHCP) is a communications protocol that lets network administrators manage and automate the assignment of IP addresses centrally in an organization's network.
3.2.2 DHCP Configuration To make the LS100 work in DHCP mode, just set IP mode to DHCP as in Figure 3-2. > set ip dhcp OK > Figure 3-2. Setting DHCP mode 3.3 PPPoE 3.3.1 Overview PPPoE (PPP over Ethernet) is a specification for connecting multiple computer users on an Ethernet local area network to a remote site through common customer premises equipment, which is the telephone company's term for a modem and similar devices.
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 connectionoriented protocol, server, client, server/client modes are provided. Table 4-1 shows the brief description of the host modes. A factory default host mode is TCP Server. Table 4-1.
set host hostmode par1 par2 ...
- Sync-Sent If the LS100 sends a connection request to a remote host, the state is changed from [Closed] to [Sync -Sent]. This state is maintained until the remote host accepts the connection request. This state is valid only in TCP client mode. - Established It represents “an open connection”. If one of the hosts accepts a connection request from the other host, the connection is opened and state is changed into [Established].
Serial data transfer When a session has been established, the LS100 reads the data from the serial port buffer till internal serial buffer is full or inter-character time interval reaches the time specified as intercharacter timeout value. Then, it transfers the data to the IP address of the remote host. If there’s no remote host connected to the LS100, all the incoming data from the serial port are discarded.
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 + 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.
4.2 TCP Client Mode Operations 4.2.1 Overview The LS100 works as a TCP client, and the default TCP state is [Closed] in this mode. The remote host will be either Ethernet-Serial communication devices acting as a TCP server or a socket program acting as a TCP server running on users’ PC. 1) Typical State Transition [Closed] --> [Sync-Sent] --> [Established] --> [Data] --> [Closed] At start-up, an initial TCP state is [Closed].
after the connection is established. Eventually, users can monitor the serial device periodically by making the remote host send the serial command to the LS100 whenever it is connected to the remote host. This option is useful when users need to gather the device information periodically even if the serial device does not send its data periodically. Figure 4-3 shows the State Transition Diagram of the session operations in TCP client mode.
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.
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.
listening_port = listening TCP port dest_ip = destination IP address dest_port = destination TCP port cyclic_connection_interval = cyclic connection interval 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. Figure 4-6 shows TCP server/client mode setting example: > set host tcpsc 6001 192.168.1.
5: Serial Port Configuration To attach the serial device to the LS100 serial port, its serial port operation should match exactly to that of the serial device. Serial port configuration parameters are summarized in Table 5-1. Table 5-1.
supported by the LS100. Hardware flow control method controls data communication flow by sending signals back and forth between two connected devices. The purpose of the DTR/DSR pin is to emulate modem signal control or to control TCP connection state by using serial port signal. The DTR is a write-only output signal, whereas the DSR is a read-only input signal in the LS100 side. The DTR option can be set to one of three types: always high, always low or show TCP connection .
OK > Figure 5-1 Serial port configuration 39
6: System Administration Users can configure administrator username, password and device name using 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: > set admin adminuser adminpassword LS100_test1 OK > Figure 7 -1 Administration parameters configuration 40
Appendix A: Connections A.1 Ethernet Pin outs The LS100 uses standard Ethernet connector, which is a shielded connector compliant with AT&T258 specifications. Table A-1 shows the pin assignment and the wire color. Figure A-1 Pin layout of the RJ45 connector Table A -1. Pin assignment of the RJ45 connector Pin 1 2 3 4 5 6 7 8 Description Tx+ TxRx+ NC NC RxNC NC Color Whit e with orange Orange White with green Blue White with blue Green White with brown Brown A.
A.3 Ethernet Wiring Diagram HelloDevice Remote Host Rx+(1) Rx-(2) Tx+(3) Tx-(6) Rx+(1) Rx-(2) Tx+(3) Tx-(6) Figure A-3 Ethernet direct connection using crossover ethernet cable HelloDevice Hub Rx+(1) Rx-(2) Tx+(3) Tx-(6) 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.
Appendix B: Well-known Port Numbers The port numbers are divided into three ranges: the Well Known Ports, the Registered Ports, and the Dynamic and/or Private Ports. The Well Known Ports are those from 0 through 1023. The Registered Ports are those from 1024 through 49151 . The Dynamic and/or Private Ports are those from 49152 through 65535. The Well Known Ports are assigned by the IANA, and on most systems, can only be used by system processes or by programs executed by privileged users.
Appendix C: Troubleshooting C.1 Power/LED Status Troubleshooting Problem Cause Action Power LED does not light up Power cable is not connected Check power connection Link LED does not light up Ethernet cable is not connected Check Ethernet cable connection Invalid Ethernet cable is used There are two types of Ethernet cables: Straight-through cable and crossover c able. If you are using an Ethernet hub, use straight- through cable.
Cannot login to console Invalid username and/or Use valid username and password. If username and/or password password are lost, performfactory default reset using factory reset switch. Factory default value of username and passw ord are both admin C.
C.7 Serial Communication Troubleshooting Problem Cause Action Serial data are not Too large inter-character transferred by timeout TCP/IP immediately 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 with that of the serial device Invalid data transferred Invalid serial port configuration Check if serial port configuration is correct.