Atop GW21W-MAXI User manual

Atop ABLELink®Serial-Ethernet
Server GW21W-MAXI
User Manual
Version 1.2
Updated on 2004/2/27
Tel: 886-3-5508137
Fax: 886-3-5508131
www.atop.com.tw

User manual Version 1.2
ABLELink Serial-Ethernet Server
GW21W-MAXI
Copyright © 2003 Atop Technologies, Inc.
All rights reserved. Designed in Taiwan.
1 / 54
IMPORTANT ANNOUNCEMENT
The information contained in this document is the property of Atop Technologies, Inc. and is supplied for
the sole purpose of the operation and maintenance of products of Atop Technologies, Inc. No part of this
publication is to be used for any other purposes, and it is not to be reproduced, copied, disclosed,
transmitted, stored in a retrieval system, or translated into any human or computer language, in any form,
by any means, in whole or in part, without the prior express written consent of Atop Technologies, Inc.
Published by
Atop Technologies, Inc.
2F, No. 146, Sec. 1, Tung-Hsing Rd.
Jubei City, Hsinchu 302
Taiwan, R.O.C.
Tel: 886-3-5508137
Fax: 886-3-5508131
www.atop.com.tw
Copyright © 2003 Atop Technologies, Inc. All rights reserved.
All other product names referenced herein are registered trademarks of their respective companies.

User manual Version 1.2
ABLELink Serial-Ethernet Server
GW21W-MAXI
Copyright © 2003 Atop Technologies, Inc.
All rights reserved. Designed in Taiwan.
2 / 54
FCC WARNING
Class A for Serial-Ethernet Server (Model GW21W-MAXI)
This equipment has been tested and found to comply with the limits for a Class A digital device
pursuant to Part 15 of the FCC rules. These limits are designed to provide reasonable protection
against harmful interference when the equipment is operated in a commercial environment. This
equipment generates, uses and radiates radio frequency energy and, if not installed and used in
accordance with the instructions, may cause harmful interference to radio communications.
Operation of this equipment in a residential area is likely to cause harmful interference in which
case the user will be required to correct the interference at his own expenses.
A shielded-type power cord is required in order to meet FCC emission limits and also to prevent
interference to the nearby radio and television reception. It is essential that only the supplied
power cord can be used.
Use only shielded cables to connect other devices to this equipment by RS-232 / RS-485 ports.
Be cautioned that changes or modifications not expressly approved by the party responsible for
compliance could void your authority to operate the equipment.
ATOP declared that GW21W-MAXI is limited in CH1~11 by specified firmware controlled in USA.

User manual Version 1.2
ABLELink Serial-Ethernet Server
GW21W-MAXI
Copyright © 2003 Atop Technologies, Inc.
All rights reserved. Designed in Taiwan.
3 / 54
1. INTRODUCTION.........................................................................................5
1.1 PACKAGING........................................................................................................................... 5
1. 2 APPLICATION CONNECTIVITY................................................................................................. 6
2. NOMENCLATURE AND SETTINGS ..........................................................8
2.1 NOMENCLATURE OF GW21W-MAXI COMPONENTS................................................................ 8
2.2 MODE SWITCH..................................................................................................................... 8
3. HARDWARE INSTALLATION ....................................................................9
3.1 CONFIGURATION.................................................................................................................... 9
3.2 ASSIGNING A NEW IP ADDRESS BY ARP COMMAND ................................................................ 9
3.3 TCP/IP PORT NUMBER ....................................................................................................... 10
4. SOFTWARE CONFIGURATION ...............................................................11
4.1 CONFIGURATION SET BY MONITOR.EXE UTILITY ..................................................................... 11
4.2 CONFIGURATION SET BY TELNET UTILITY .............................................................................. 11
4.3 CONFIGURATION SET BY HYPER TERMINAL CONSOLE UTILITY................................................. 23
4.4 CONFIGURATION SET BY WEB BROWSER............................................................................... 24
4.5 VIRTUAL COM MODE .......................................................................................................... 30
4.5.1 Setup of a Virtual COM driver .................................................................................. 30
4.5.2 Virtual COM communication..................................................................................... 31
5. SNMP SETUP ...........................................................................................35
5.1 SNMP NETWORK MANAGEMENT PLATFORM ........................................................................ 35
5.2 USING NETWORKVIEW AS AN EXAMPLE............................................................................... 35
6. START WRITING YOUR OWN APPLICATIONS......................................38
6.1 PREPARING THE SYSTEM .................................................................................................... 38
6.2 RUNNING THE SAMPLE PROGRAM........................................................................................ 38
TCPTEST in Visual Basic.................................................................................................. 38
TCPTEST2 in Visual C...................................................................................................... 39
7. DIAGNOSTICS .........................................................................................40
7.1 USE STANDARD TCP/IP UTILITY PING COMMAND ................................................................. 40
7.2 USE MONITOR.EXE CONFIGURATION UTILITY PROGRAM ........................................................ 40
7.3 USE TCPTEST.EXE OR TCPTEST2.EXE SAMPLE PROGRAM ............................................ 41
APPENDIX A: GW21W-MAXI SERIAL-ETHERNET SERVER
SPECIFICATIONS ......................................................................................42
A.1. HARDWARE SPECIFICATIONS .............................................................................................. 42
A.2. SOFTWARE SPECIFICATIONS .............................................................................................. 43

User manual Version 1.2
ABLELink Serial-Ethernet Server
GW21W-MAXI
Copyright © 2003 Atop Technologies, Inc.
All rights reserved. Designed in Taiwan.
4 / 54
A.3 CONNECTOR PIN ASSIGNMENTS.......................................................................................... 43
A.3.1 COM Port................................................................................................................. 43
A.3.2 Power terminal block connector............................................................................... 45
A.4 BUZZER/LED MESSAGE ...................................................................................................... 46
Buzzer ............................................................................................................................... 46
LAN LED ........................................................................................................................... 46
COM Port LED .................................................................................................................. 46
RUN LED .......................................................................................................................... 46
APPENDIX B. UPGRADE SYSTEM SOFTWARE .......................................47
B.1 UPGRADE PROCEDURES ..................................................................................................... 47
B.2 CRITICAL ISSUES OF UPGRADING ........................................................................................ 49
B.3 ERROR MESSAGES ............................................................................................................. 49
APPENDIX C. HARDWARE CONFIGURATION ..........................................50
C.1 DISABLE SYSTEM FIRMWARE .............................................................................................. 50
APPENDIX D CONFIGURATION UTILITY...................................................51
D.1 RUN THE UTILITY................................................................................................................. 51
D.2 DETECT OPERATIONAL DEVICES ......................................................................................... 51
D.3 CONFIGURE DEVICES.......................................................................................................... 51

User manual Version 1.2
ABLELink Serial-Ethernet Server
GW21W-MAXI
Copyright © 2003 Atop Technologies, Inc.
All rights reserved. Designed in Taiwan.
5 / 54
1. Introduction
Atop GW21W-MAXI Wireless Serial-Ethernet Server is a gateway between Ethernet (TCP/IP) and
RS-232/RS-485 communications. It allows almost any serial device to be connected to a new or existing
Ethernet network. The information transmitted by GW21W-MAXI is transparent to both host computers
(Ethernet) and devices (RS-232/RS-485). Data coming from the Ethernet (TCP/IP) is sent to the
designated RS-232/RS-485 port and data being received from RS-232/RS-485 port is sent to the Ethernet
(TCP/IP) transparently.
In the computer integration manufacturing or industrial automation area, the Atop GW21W-MAXI
Serial-Ethernet Server is used for field devices to direct connect to Ethernet network. Terminal Server
(main control program run in GW21W-MAXI) transforms whatever data received from RS-232/RS-485 to
TCP/UDP port then connects devices to the Ethernet network via a single application program or multiple
application programs.
Many control devices provide the ability to communicate with hosts through RS-232/RS-485 however
RS-232/RS-485 serial communication has its limitations. For one, it is hard to transfer data through a long
distance. With Atop GW21W-MAXI, it is possible to communicate with a remote device in the Intranet
environment or even in the Internet and thus, increases the communication distance dramatically.
Flexible configuration options enable this unit to be setup remotely over Ethernet by Telnet, web browser,
or Window utility. Packed in a rugged DIN Rail mountable case and 9~30V DC power input range,
GW21W-MAXI is ideal for almost any industrial and manufacturing automation.
1.1 Packaging
Atop Serial-Ethernet Server x 1
Mini DIN to RS-232 DB 9 connector cable
Atop Serial-Ethernet Server quick start guide x 1
Product CD containing configuration utility and sample programs x 1

User manual Version 1.2
ABLELink Serial-Ethernet Server
GW21W-MAXI
Copyright © 2003 Atop Technologies, Inc.
All rights reserved. Designed in Taiwan.
6 / 54
1. 2 Application Connectivity
TCP Server mode
Host
Access Point
RS-232/RS-485
GW21W-MAX
I
PL
C
TCP Client mode
Host
RS-232
/RS-485
RS-232
/RS-485
RS-232
/RS-485
Access Point
Ca
r
d
R
eade
r
Ca
r
d
R
eade
r
Ca
r
d
R
eade
r
GW21W-MAXI GW21W-MAXI GW21W-MAX
I

User manual Version 1.2
ABLELink Serial-Ethernet Server
GW21W-MAXI
Copyright © 2003 Atop Technologies, Inc.
All rights reserved. Designed in Taiwan.
7 / 54
UDP mode
GW21W-MAXI
Access Point
RS-232/RS-485
Display
Tunneling mode
GW21W-MAXI GW21W-MAXI
RS-232/RS-485 RS-232/RS-48
5
PLC Touch Screen

User manual Version 1.2
ABLELink Serial-Ethernet Server
GW21W-MAXI
Copyright © 2003 Atop Technologies, Inc.
All rights reserved. Designed in Taiwan.
8 / 54
2. Nomenclature and Settings
2.1 Nomenclature of GW21W-MAXI Components
Figure 2.1 shows the names of GW21W-MAXI components. In the figure, the indicated switch settings
represent factory settings.
Led Indicator
RS232C Mini-Din
Connector
RS232C Terminal
Block Connector
Power Supply Input
Connector
Antenna
RS232C Mini-Din Pin
Assignment
Mode Switch
Table
Mode Switch
Figure 2.1. Nomenclature of GW21W-MAXI Components
2.2 MODE Switch
This sets or initializes the operating mode for the GW21W-MAXI.
The factory default setting is that Switch 1 (SW1) and Switch 2 (SW2) are set to OFF. You can use the
Mode switch to change the operating mode from the factory default settings to your desired mode.
GW21W-MAXI can be setup either RS-232, RS-485, RS-422 or Console configuration mode by MODE
Switch.
Table 2.1. MODE Switch Combinations
SW1 SW2 Mode
OFF RS-232OFF
ON CONSOLE
OFF RS-485ON
ON RS-422

User manual Version 1.2
ABLELink Serial-Ethernet Server
GW21W-MAXI
Copyright © 2003 Atop Technologies, Inc.
All rights reserved. Designed in Taiwan.
9 / 54
3. Hardware Installation
Prepare necessary cables, hub, power cord and RS-232/RS-485 connector.
Place GW21W-MAXI to the area that an access point can cover.
Connect a serial device to a serial port of GW21W-MAXI, make sure the right connection of either
RS-232 or RS-485.
Plug in DC-9-30V, the buzzer will beep and the RUN LED will blink if GW21W-MAXI functions normally.
Please refer to Appendix A.4 to see all of LED messages.
Use monitor.exe configuration utility in the product CD or diskette to diagnose GW21W-MAXI. If it
starts up successfully, you are able to find the IP and MAC addresses of GW21W-MAXI. You can
change the network parameters of GW21W-MAXI to join your LAN by changing its IP address, gateway
IP address and subnet mask.
Note: If there are more than one access points, the access point’s ESSID must be the same.
3.1 Configuration
Atop GW21W-MAXI Serial-Ethernet Server is shipped with default settings shown in the following table:
Property Default Value
IP Address 10.0.50.100
Gateway 10.0.0.254
Subnet Mask 255.255.0.0
User Name admin
Password Null
COM 1 9600,None, 8, 1, No flow control, buffer disabled, packet delimiter timer 1ms
Link 1 Type: TCP Server, Listen port 4660, Filter=0.0.0.0, Virtual COM disabled
SysName of SNMP name
SysLocation of SNMP location
SysContact of SNMP contact
NOTE: Atop provides a reset button to restore system settings including IP address, gateway IP address
and subnet mask etc. to the defaults. Press and hold the reset button for 5 seconds till the server reboots.
3.2 Assigning a new IP Address by ARP command
Arp –s is used to assign a static IP address of GW21W-MAXI and add this static entries to the Arp cache
of the computer, when TCP/IP packet with destination port number 1 is sent to GW21W-MAXI, it causes
the device to check its MAC address with IP address, once GW21W-MAXI finds those two unmatched, it
will reboot and change to the new IP address which was set by Arp –s command. The following example
uses ARP to assign a static IP address of GW21W-MAXI using its MAC address printed on the label of
the rear panel, then use Telnet to send the TCP/IP packet with destination port number 1 to
GW21W-MAXI, after GW21W-MAXI reboots it will change its IP address to the new one.

User manual Version 1.2
ABLELink Serial-Ethernet Server
GW21W-MAXI
Copyright © 2003 Atop Technologies, Inc.
All rights reserved. Designed in Taiwan.
10 / 54
Note:
1. Arp command can only be used to set a static IP address of GW21W-MAXI using system default
user name admin and default password null.
2. Only TCP/IP packet with destination port number 1 will lead GW21W-MAXI to reboot and change the
IP address.
3.3 TCP/IP Port Number
Port number 4660 is default of GW21W-MAXI and is associated with serial port COM1. After your
application program connects to the TCP port 4660 of GW21W-MAXI, data being sent to this TCP
connection from your application program are transparent to the COM1 of GW21W-MAXI. Vice versa is
also true.

User manual Version 1.2
ABLELink Serial-Ethernet Server
GW21W-MAXI
Copyright © 2003 Atop Technologies, Inc.
All rights reserved. Designed in Taiwan.
11 / 54
4. Software Configuration
4.1 Configuration set by monitor.exe utility
Use monitor.exe that comes with the product CD or diskette to configure the network parameters of
GW21W-MAXI. As you can see from the following picture, you can change IP address, gateway IP
address, subnet mask, user ID and password of GW21W-MAXI from the utility. For more details of the
utility please refer to Appendix-D Configuration Utility.
4.2 Configuration set by Telnet utility
You can use Telnet utility to change configuration settings of GW21W-MAXI. To do so, please do the
following.
Log in to the system
Telnet to GW21W-MAXI using command “Telnet IP_address”.
For example Telnet 10.0.50.100
1. After Telnet to GW21W-MAXI, system prompts for a password, the default password is null.
Note: You can press the reset button of GW21W-MAXI to reset the password to the default value.
2. After verifying the password, the following terminal screen appears.

User manual Version 1.2
ABLELink Serial-Ethernet Server
GW21W-MAXI
Copyright © 2003 Atop Technologies, Inc.
All rights reserved. Designed in Taiwan.
12 / 54
Notes:
1. If GW21W-MAXI does not receive any command within 1 minute, Telnet will be terminated
automatically.
2. The changes of networking parameters will take effect only when you exit and restart GW21W-MAXI.
3. Select “1” from “Input choice and enter (0~5):” to enter overview page as following:
This page gives you the general information of GW21W-MAXI including IP and MAC address, SNMP
information, kernel and AP version, and connection status of the device.

User manual Version 1.2
ABLELink Serial-Ethernet Server
GW21W-MAXI
Copyright © 2003 Atop Technologies, Inc.
All rights reserved. Designed in Taiwan.
13 / 54
Networking
Select “2” from “Input choice and enter (0~5):” to enter Networking page as following:
This page allows you to change network settings of the device including IP address, subnet mask,
gateway IP address and SNMP information of GW21W-MAXI. Please notice that any setting change
made on this page won’t take effect until you restart the device.
Change the password
1. Select “3” from “Input choice and enter (0~5):” the following screen appears.
2. If you want to change the password, please type the old password in the “Please input old password”
field, type the new password in the “Please input new password” and the “Please verify new
password” fields.
Note: You can press the reset key of product to reset password to the default value.

User manual Version 1.2
ABLELink Serial-Ethernet Server
GW21W-MAXI
Copyright © 2003 Atop Technologies, Inc.
All rights reserved. Designed in Taiwan.
14 / 54
COM1 Setup
Select “4” from “Input choice and enter (0~5):” the following screen appears
The page gives you an opportunity to configure parameters of COM1 setting which includes COM1
working mode, port parameters, enabling or disabling serial buffer’s data and setting packet delimiter.
LINK1 Setup
Type 1 from “Input choice and enter (1~4):” of COM1, the following screen appears. Configure
GW21W-MAXI as TCP server and the local port is 4660. IP filter is disabled by default, if IP filter is
enabled, only source IP 10.0.0.154 can connect to GW21W-MAXI.
Note: IP filtering function is disabled if setting FILTER_IP to “0.0.0.0”.
Configure GW21W-MAXI as TCP client, the destination IP is 10.0.29.123, destination port is 666.

User manual Version 1.2
ABLELink Serial-Ethernet Server
GW21W-MAXI
Copyright © 2003 Atop Technologies, Inc.
All rights reserved. Designed in Taiwan.
15 / 54
Configure GW21W-MAXI as UDP client, the local port is 4660, the destination IP is 10.0.29.254,
destination port is 666.
COM port setting
Type 2 from “Input choice and enter (1~4):” of COM1, the following screen appears, you can then give the

User manual Version 1.2
ABLELink Serial-Ethernet Server
GW21W-MAXI
Copyright © 2003 Atop Technologies, Inc.
All rights reserved. Designed in Taiwan.
16 / 54
COM port alias name, set the baud rate and parity, determine number of data bit and stop bit, and decide
if you want to use flow control and the type of flow control you want to use.
Enabling serial data buffer
Type 3 from “Input choice and enter (1~4):” of COM1, by default COM port serial data buffer is enabled
meaning that when TCP/IP Ethernet connection is broken, serial data collected from serial device will be
kept in GW21W-MAXI, once TCP/IP connection is resumed, the serial data will be sent through Ethernet
connection, you can disable it if you wish.

User manual Version 1.2
ABLELink Serial-Ethernet Server
GW21W-MAXI
Copyright © 2003 Atop Technologies, Inc.
All rights reserved. Designed in Taiwan.
17 / 54
Setting packet delimiter
Packet delimiter is a way of controlling packets within serial communication. It can prevent packets from
being cut thus keep the packets complete. GW21W-MAXI provides two ways of parameter setting as inter
character timer and terminator. By default packet delimiter timer is 0 ms, you can change timer shown in
the following figure:

User manual Version 1.2
ABLELink Serial-Ethernet Server
GW21W-MAXI
Copyright © 2003 Atop Technologies, Inc.
All rights reserved. Designed in Taiwan.
18 / 54
You can also choose character pattern as the packet delimiter indicated in the following figure:
Accessing Wireless LAN setting
Select “5” from “Input choice and enter (0~5):” the following screen appears.
The above page gives you the general information about GW21W-MAXI wireless configurations including
the access point it connects to, the current channel and transmitting rate it communicates with the other
wireless devices, topology it uses, and what the ESSID (extended service set identifier) and WEP
(wireless encryption protocol) are if you use them.

User manual Version 1.2
ABLELink Serial-Ethernet Server
GW21W-MAXI
Copyright © 2003 Atop Technologies, Inc.
All rights reserved. Designed in Taiwan.
19 / 54
Wireless LAN topology
You can choose either infrastructure or ad-hoc mode for GW21W-MAXI as indicated in the following
figure:
Wireless LAN Transmission Rate
You can set GW21W-MAXI transmission rate as 1 Mbps, 2Mbps, 5.5Mbps, 11Mbps, or full auto based on
802.11 standard shown in the following figure:
Table of contents