Neteon GW312 User manual

User’s Manual
GW312/GW315
2-Port Ethernet Serial Server
Version 1.2
Updated on 2018/12/21
Toll Free: 1-888-908-3330
Tel: 1-732-568-1988
www.neteon.net

User manual Version 1.1
Ethernet Serial Server GW312/GW315
Copyright © 2006 Neteon Technologies, Inc.
All rights reserved. Designed in Taiwan.
- 1 -
Important Announcement
The information contained in this document is the property of Neteon Technologies, Inc.
and is supplied for the sole purpose of operation and maintenance of products of Neteon
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 explicit written consent of Neteon Technologies, Inc.
Published by
Neteon Technologies, Inc.
Copyright © 2006 Neteon Technologies, Inc. All rights reserved.
All other product names referenced herein are registered trademarks of their respective
companies.

User manual Version 1.1
Ethernet Serial Server GW312/GW315
Copyright © 2006 Neteon Technologies, Inc.
All rights reserved. Designed in Taiwan.
- 2 -
This document is intended to provide customers with brief descriptions on the product and
to assist customers to get started. For detail information and operations of the product,
please refer to this manual or the CD attached.
FCC Warning
Class A for Ethernet Serial Server (Model GW312/GW315 series)
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 the device’s ’RS-232 or RS-485 port.
Be cautioned that changes or modifications not explicitly approved by NETEON
Technologies could void your authority to operate the equipment.

User manual Version 1.1
Ethernet Serial Server GW312/GW315
Copyright © 2006 Neteon Technologies, Inc.
All rights reserved. Designed in Taiwan.
- 3 -
CONTENTS
1INTRODUCTION........................................................................................................................7
1.1. PACKAGING.............................................................................................................................................7
1.2. MODESOFOPERATION........................................................................................................................7
Fig. 1. TCPServer Mode...............................................................................................7
Fig. 2. TCPClient Mode................................................................................................8
Fig. 3. UDPMode...........................................................................................................8
Fig. 4. Tunneling Mode..................................................................................................9
1.3. HARDWAREDESCRIPTION..................................................................................................................9
2.LEDSTATUS:........................................................................................................................................10
2.1 Lan.......................................................................................................................................... 10
2.2 Installation Procedures:........................................................................................................ 10
3.SOFTWARE...........................................................................................................................................10
3.1 Configuration by Management utility..................................................................................11
Fig. 5. Configuring the static IPwith management utility.......................................11
Fig. 6. Static IPdialog window ...................................................................................11
Fig. 7. Auto IP Dialog Window...................................................................................12
3.2 Configuration by Telnet utility:........................................................................................... 12
Fig. 8. Telnet to the system..........................................................................................12
Fig. 9. System main menu...........................................................................................13
Fig. 10. System configuring using Telnet.....................................................................13
Fig. 11. Network configuring using Telnet..................................................................14
Fig. 12. Changing password using Telnet....................................................................14
Fig. 13. Com1 setup.......................................................................................................15
Fig. 14. Link Mode-TCP server setup .........................................................................16
Fig. 15. Link Mode-TCP client setup...........................................................................17
Fig. 16. Link Mode-UDP client setup ..........................................................................17
Fig. 17. Com port setting..............................................................................................18
Fig. 18. Com port-Enabling serial data buffer...........................................................18

User manual Version 1.1
Ethernet Serial Server GW312/GW315
Copyright © 2006 Neteon Technologies, Inc.
All rights reserved. Designed in Taiwan.
- 4 -
Fig. 19. Setting packet delimiter timer........................................................................19
Fig. 20. Setting packet delimiter-character pattern...................................................19
3.3 Configuring Using Web Browser........................................................................................... 19
3.3.1 Log in........................................................................................................................19
Fig. 21. Login the system via Web ...............................................................................20
Fig. 22. Overview...........................................................................................................21
3.3.2 Changing password.................................................................................................21
Fig. 23. Change the password ......................................................................................21
3.3.3 Networking ..............................................................................................................21
Fig. 24. Network setup..................................................................................................22
3.3.4 Configuring GW312/GW315 as TCP server:....................................................22
Fig. 25. Com1 setup-TCPserver..................................................................................23
3.3.5 Configuring GW312/GW315 as TCP client:......................................................24
Fig. 26. Com1 setup-TCP client ...................................................................................24
3.3.6 Pair Connection(Tunneling Mode)........................................................................24
Fig. 27. Com1 setup –pair connection .........................................................................25
3.3.7 Configuring GW312/GW315 in UDPmode:......................................................25
Fig. 28. Com 1 setup –UDP mode ................................................................................25
Fig. 29. Configuration successfully updated...............................................................26
Fig. 30. Data Transmission in a UDPMaster(Client) Mode......................................26
Fig. 31. Data Transmission in a UDPSlave(Server) Mode........................................27
3.4 Assigning new IPAddress with ARP commands.................................................................. 27
Fig. 32. Ms-DOS command prompt window: add host computer IP to ARP table.27
Fig. 33. Assigning a new IP address withARPcommand .........................................28
4.USINGVIRTUALCOM................................................................................................................28
Fig. 34. Virtual Com connection diagram...................................................................28
4.1 Setup of a virtual COM driver .............................................................................................. 28
4.1.1 PC requirements...................................................................................................28
4.1.2 Cautions on Use....................................................................................................29
4.1.3 Limitation .............................................................................................................29
4.1.4 Installation............................................................................................................29

User manual Version 1.1
Ethernet Serial Server GW312/GW315
Copyright © 2006 Neteon Technologies, Inc.
All rights reserved. Designed in Taiwan.
- 5 -
4.1.5 Uninstalling...........................................................................................................29
4.2 Virtual COM communications .............................................................................................. 29
4.2.1 Enabling Virtual COM on GW312/GW315.......................................................29
Fig. 35. Enabling Virtual COM port...........................................................................29
Fig. 36. Enabling Virtual COM port via Telnet..........................................................30
4.2.2 Running Serial/IPon management utility PC...................................................30
Fig. 37. Serial/IPfor Neteon control panel..................................................................31
4.3 Configuring Virtual COM Ports ........................................................................................... 31
Fig. 38. Configuration Wizard.....................................................................................32
5.SNMPSETUP........................................................................................................................................32
5.1 SNMPNetwork Management Platform................................................................................ 32
5.2 Using NetworkView: An Example......................................................................................... 32
Fig. 39.
Fig. 40.
Fig. 41.
Fig. 42.
6.1 Preparing System.................................................................................................................... 34
6.2 Running Sample Program...................................................................................................... 35
6.2.1 TCPTEST in Visual Basic ......................................................................................35
6.2.2 TCPTEST2 in Visual C...........................................................................................35
TCPTEST2 IP_Address Port_Number....................................................................36
7DIAGNOSTICS...........................................................................................................................36
7.1 Using Standard TCP/IP Utility Ping CommanD.................................................................. 36
7.3 Using TCPTEST.EXE or TCPTEST2.EXE Sample Program............................................ 37
APPENDIXA:SPECIFICATION................................................................................................37
A.1. Hardware Specification ....................................................................................................... 37
A.2. Software Specification ......................................................................................................... 39
A.3 Panel Layout and Connector Pin Assignments .................................................................. 39
A.3.1. Panel Layout......................................................................................................................... 39
A.3.2.1 DB9 Pin Assignments..........................................................................................40

User manual Version 1.1
Ethernet Serial Server GW312/GW315
Copyright © 2006 Neteon Technologies, Inc.
All rights reserved. Designed in Taiwan.
- 6 -
A.3.2.2 Terminal Block Pin Assignments .......................................................................41
A.3.3 Ethernet Port (RJ-45) Pin Assignments...............................................................41
Note: Device will not be damage if the polarity is reverse............................................42
A.4 Buzzer/LED Message................................................................................................42
A.4.1 Buzzer......................................................................................................................42
A.4.2 LAN .........................................................................................................................42
A.4.3 COM Port ...............................................................................................................42
A.4.4 RUN.........................................................................................................................43
APPENDIXB:UPGRADINGSYSTEMFIRMWARE......................................................................43
B.2 Critical Issues......................................................................................................................... 44
B.3 Error Messages...................................................................................................................... 45
APPENDIXC:RE-LOADINGSYSTEMFIRMWARE.............................................45
D.1 Running Management.exe utility......................................................................................... 45
Fig. 43. Main window of management.exe utility program.......................................46
D.2 Detecting Operational Devices............................................................................................. 46
D.3 Configuring Devices.............................................................................................................. 46
Fig. 44. Configuration dialog box................................................................................46

User manual Version 1.1
Ethernet Serial Server GW312/GW315
Copyright © 2006 Neteon Technologies, Inc.
All rights reserved. Designed in Taiwan.
- 7 -
1 INTRODUCTION
Many industrial and Commercial devices equipped with slow serial communication ports
RS-232, RS-485, and RS-422 are limited in their transmission distance of 15 m.
Examples of these devices are PLC controllers, card readers, display signs, security
controls, CNC controller, etc. NETEON Technologies has overcome the limit with a family
of GW312/GW315 Series Ethernet Serial Servers. The GW312/GW315 sever family is
designed to transmit data between one-or-more serial device and one-or-more TCP/IP
device through Ethernet, and hence enhance the accessibility of the serial device through
the ubiquitous TCP/IP based Ethernet.
Of the GW series, the GW312 is for RS-232/RS-422/RS-485 without isolation protection
built-in, while the GW315 is for RS-422 and RS-485 devices with built-in isolation
protection.
1.1. PACKAGING
Check your package to make certain it contains the following items:
GW312/GW315 Ethernet Serial Device Server
Quick Installation Guide
Product CD
Wall-mounting screws
3-pin terminal block*1 for power input only for GW315
5-pin terminal block with lock*2 only for GW315
Power Adapter - DC Jack 12VDC,1.25A with Lock only for GW312
Optional Accessories:
-Din Rail Kit DK-25
1.2. MODES OF OPERATION
The GW312/GW315 Series can be operated in one of the following 4 modes:
TCP Server Mode:GW312/GW315 can be configured in a TCP server mode on an
Ethernet Network to wait for the host computer to establish a connection with the serial
device ( the client). After the connection is established, data can flow in both directions.
Fig. 1. TCP Server Mode

User manual Version 1.1
Ethernet Serial Server GW312/GW315
Copyright © 2006 Neteon Technologies, Inc.
All rights reserved. Designed in Taiwan.
- 8 -
TCP Client Mode:GW312/GW315 can be configured in a TCP client mode on a TCP/IP
Network to actively establish a connection with an applications server –the host computer.
After the connection is established, data can flow in both directions.
Fig. 2. TCP Client Mode
UDP Mode:UDP is a fast but non-guaranteed datagram delivery protocol. GW312/GW315
can be configured in a UDP mode on a TCP/IP Network to establish a connection, using
unicast or broadcast data to and from a serial device to one or multiple host
computers .
Fig. 3. UDP Mode

User manual Version 1.1
Ethernet Serial Server GW312/GW315
Copyright © 2006 Neteon Technologies, Inc.
All rights reserved. Designed in Taiwan.
- 9 -
Tunneling Mode(Pair Connection):The tunneling mode is used for multiple serial
devices to “talk”to each other through GW312/GW315’s and their Ethernet connections
(Fig 4 Tunneling Mode). This mode is particularly useful when two serial devices are far
away, because their communication distance is limited to 15 m.
Fig. 4. Tunneling Mode
1.3. HARDWARE DESCRIPTION
NOTE:
1. Model GW312 is for RS-232/422/485 without isolation protection built-in; GW315 is
for RS422/485 with isolation protection built-in. See Appendix A.3.1 for full Panel
layout.
2. Press the reset button to reset to the default values
Error! Reference source not found. Show the interfaces and the DIN-Rail Mounting
settings.

User manual Version 1.1
Ethernet Serial Server GW312/GW315
Copyright © 2006 Neteon Technologies, Inc.
All rights reserved. Designed in Taiwan.
- 10 -
2. LED STATUS:
2.1 LAN
Message
Description
Off
Ethernet Disconnected
Blinking Green
Data transmitting on Ethernet at 100Mbps
Blinking Orange
Data transmitting on Ethernet at 10Mbps
Table 1. LAN LED Status
2.1.2 COM
Message
Description
Off
No data transmitting on COM port
Com1(2)TX Blinking
Data transmitting on COM port
Com1(2)RX Blinking
Data receiving on COM port
Table 2. COM Port LED Status
2.1.3 RUN
Message
Description
On
Jumper JP1 Pin1 and Pin2 shorted to disable AP
firmware
Blinking
AP firmware running normally
Table 3. RUN LED Status
2.2 INSTALLATION PROCEDURES:
Step 1: Connect GW312/GW315 power source Jack. ( Or to a 9~30VDC Terminal Block
power source which only for GW315)
Step 2: Connect GW312/GW315 to the Ethernet network. Use a standard straight-through
Ethernet cable when connected to a hub/switch, or connect to a PC‘s Ethernet
port via a cross-over Ethernet cable. However, Always make sure ones PC is on
the same sub-net as the GW312/GW315.
Step 3: Connect GW312/GW315’s serial port to a serial device.
Step 4: Mount GW312/GW315 to a wall/panel with the screws included or to a Din-Rail
rack (Require optional Din-Rail-Kit).
3. SOFTWARE
The GW312/GW315 default parameters are 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

User manual Version 1.1
Ethernet Serial Server GW312/GW315
Copyright © 2006 Neteon Technologies, Inc.
All rights reserved. Designed in Taiwan.
- 11 -
Password
default
COM 1
9600,None, 8, 1, No flow control, buffer disabled, packet delimiter
timer 2ms
COM 2
9600,None, 8, 1, No flow control, buffer disabled, packet delimiter
timer 2ms
Link 1
Type: TCP Server, Listen port 4660, Filter=0.0.0.0, Virtual COM
disabled
Link 2
Type: TCP Server, Listen port 4661, Filter=0.0.0.0, Virtual COM
disabled
SysName of SNMP
name
SysLocation of SNMP
location
SysContact of SNMP
contact
3.1 CONFIGURATION BY MANAGEMENT UTILITY.EXE
Use management utility.exe on product CD to configure the GW312/GW315. First click
“Config” (Fig. 5) then assign a static IP (Fig. 6).
Fig. 5. Configuring the static IP with management utility.exe
Fig. 6. Static IP dialog window
A DHCP server can automatically assign the IP address and all the network settings, and
GW312/GW315 supports the DHCP client functions. By default, the DHCP client function
on GW312/GW315 is disabled; one may activate the DHCP client functions by the
following steps:
Execute Management utility.exe(Fig. 5)
Click on the IP address (of GW312/GW315)
Click “Config”to pop-up the static IP Dialog Window (Fig. 6)
Check ”Auto IP”(Fig. 7)

User manual Version 1.1
Ethernet Serial Server GW312/GW315
Copyright © 2006 Neteon Technologies, Inc.
All rights reserved. Designed in Taiwan.
- 12 -
Click “ Config Now”(The GW312/GW315 will restart and obtain the IP from the
DHCP server automatically)
Fig. 7. Management unit.exe Auto IP Dialog Window
3.2 CONFIGURATION BY TELNET UTILITY:
One may also use Telnet utility to change configuration settings.
Open Ms-DOS command prompt window
Enter in the “Telnet IP_address”.( For example, Telnet 10.0.50.100). The system then
prompts for a password, the default password is default. (Fig. 8)
Fig. 8. Telnet to the system
Note: One may press the reset button to reset the password..
1 Then the following main menu shall appear (Fig. 9)

User manual Version 1.1
Ethernet Serial Server GW312/GW315
Copyright © 2006 Neteon Technologies, Inc.
All rights reserved. Designed in Taiwan.
- 13 -
Fig. 9. System main menu
Notes:
1. If the GW312/GW315 does not receive any command within 1 minute, Telnet will be
terminated automatically.
2. The changes of networking parameters will take effect only after the GW312/GW315 is
exited and restarted.
->Select “1” from “Input choice and enter (0~5):” to enter “overview”.:(Fig. 10)
Fig. 10. System configuring using Telnet
This system overview window gives the general information on IP, MAC address, SNMP
information, kernel and AP version, and the connection status of the device.
Select “2” on “Input choice and enter (0~5):” to enter Networking window (Fig. 11).

User manual Version 1.1
Ethernet Serial Server GW312/GW315
Copyright © 2006 Neteon Technologies, Inc.
All rights reserved. Designed in Taiwan.
- 14 -
Fig. 11. Network configuring using Telnet
This screen allows for changes in IP address, subnet mask, gateway IP address and
SNMP information. Please note that setting changes will not take effect until the device is
restarted.
Note: Press “ESC” key to return to the previous menu.
1. Select “3” on “Input choice and enter (0~5):” (Fig. 12).
Fig. 12. Changing password
2. Enter the old password on “Please input old password”. Enter in the new password
on “Please input new password” , and again on “Please verify new password”
fields.
Note: One may press the Reset key on the product to reset password.
Select “4” on “Input choice and enter (0~5):” (Fig. 13).

User manual Version 1.1
Ethernet Serial Server GW312/GW315
Copyright © 2006 Neteon Technologies, Inc.
All rights reserved. Designed in Taiwan.
- 15 -
Fig. 13. Com1 setup
Here one may configure COM1 parameters, include COM1 operation mode, port
parameters, enabling or disabling serial buffer’s data and packet delimiter.
LINK Mode Setup Configure GW312/GW315 as TCP server:(Fig. 13)
Enter 1on “Input choice and enter (1~5):” to select COM1
Enter 1on “Input choice(1~5) and enter
:
” to select Overview
Input local port on “Please input local port
:
”
1.If one want to enable IP filter:
Input yon “Do you want to enable IP filter(y/n)?”
Input source IP on “Please input Filter_IP
:
”
Double click “Enter” key
2.If one don’t want to enable IP filter:
Input non “Do you want to enable IP filter(y/n)?”
Double click “Enter” key
Input idle time in “Please input idle time to send TCP alive
packet(4*10sec)
:
”( 2->the sending TCP keep-alive packet period is 2*10 sec)
Note:
1. One may configure COM1 or COM2 parameter by choosing COM1 or COM2 Link
2. IP filtering function is disabled by setting FILTER_IP to “0.0.0.0”.
3. IP filter is disabled by default
4. If IP filter is enabled, only the source IP assigned can be connected to
GW312/GW315.

User manual Version 1.1
Ethernet Serial Server GW312/GW315
Copyright © 2006 Neteon Technologies, Inc.
All rights reserved. Designed in Taiwan.
- 16 -
Fig. 14. Link Mode-TCP server setup
Enter 2on “Input choice(1~5) and enter
:
”(Fig. 14)
Input destination IP on “Please input Destination IP
:
” ( for instance: 10. 0. 29. 123)
Input destination port on “Please input Destination port
:
”( for instance: 666 )
1. Enter 1for Connected always:
Double click “Enter” key
Input idle time in “Please input idle time to send TCP keep-alive
packet(4*10sec)
:
”( 2->the sending TCP keep-alive packet period is 2*10 sec)
2. Enter 2for Triggering by received COM port data:
Input idle time to disconnect on “Please input idle time to disconnect( 0sec ,
1~255)
:
” ( 0->disable the function; 2 ->the serial Inactivity beyond 2 sec will cause
disconnect)
Input error retrying time on “Please input waiting time for error retrying (0
minute,1~255)
:
” ( 0->disable the function; 2->GW312/GW315 trying to reconnect
per 2 minutes)
Double click “Enter” key
Input idle time on “Please input idle time to send TCP keep-alive packet
(4*10sec)
:
”( 2-> sending TCP keep-alive packet period will be 2*10 sec)

User manual Version 1.1
Ethernet Serial Server GW312/GW315
Copyright © 2006 Neteon Technologies, Inc.
All rights reserved. Designed in Taiwan.
- 17 -
Fig. 15. Link Mode-TCP client setup
In this example the local port is 4660; the destination IP is 10.0.29.254, and the
destination port is 666(Fig. 16)
Fig. 16. Link Mode-UDP client setup
Enter 2on “Input choice and enter (1~5):” of COM1, the following screen shall appear;
then proceed to assign the COM port alias, set baud rate and parity, determine number
of data bit and stop bit, and decide on the need of flow control (Fig. 17)

User manual Version 1.1
Ethernet Serial Server GW312/GW315
Copyright © 2006 Neteon Technologies, Inc.
All rights reserved. Designed in Taiwan.
- 18 -
Fig. 17. Com port setting
Enter 3from “Input choice and enter (1~5):” 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 emptied on GW312/GW315 once TCP/IP connection is
resumed, the serial data will be sent through Ethernet connection, one may disable it if one
wish(Fig. 18)
Fig. 18. Com port-Enabling serial data buffer
Packet delimiter is a way of controlling the number of packets in a serial communication. It
is designed to keep packets intack. GW312/GW315 provides two ways in parameter
setting:1. Packet delimiter timer and 2. Character pattern terminator. By default, packet
delimiter timer is 1 ms. The range of packet delimiter timer is 0 to 30,000 msec, as shown
in Fig. 19. If “character pattern is selected, for a data stream ended with “0x0a04”, then the
entire data buffer of the serial device is transmitted.

User manual Version 1.1
Ethernet Serial Server GW312/GW315
Copyright © 2006 Neteon Technologies, Inc.
All rights reserved. Designed in Taiwan.
- 19 -
Fig. 19. Setting packet delimiter timer
One may also choose character pattern as the packet delimiter indicated in Fig. 20
Fig. 20. Setting packet delimiter-character pattern
GW312/GW315 also is designed to accept serial control commands directly over Ethernet
following the RFC2217 format. For more detail ,contact our Technical Support.
3.3 CONFIGURING USING WEB BROWSER
1. Make sure the PC is on the same network as GW312/GW315
2. Open a web browser, then Enter in the same IP address as the GW312/GW315. The
default user name is admin and the default password is default.
3. The GW312/GW315’s network, link mode and COM ports settings can be configured
on different web pages.
4. Click “Save Configuration” to save settings.
5. Click ”Restart” button to initial the change.
To modify settings through the web server interface, follow the steps below.
3.3.1 Log in
1. While on the web browser, Enter in the IP address of GW312/GW315 of the URL.
Other manuals for GW312
3
This manual suits for next models
1
Table of contents
Other Neteon Server manuals