KGuard Security KGA-400 User manual

1
ETHERNET TCP/IP
TO SERIAL CONVERTER
User’s Manual
(KGA-400)
V1.0

TCP/IP CONVERTER (KGA400) User Manual
----------------------------------------------------------------------------------------------------------------------------------------------------
www.kguardsecurity.com
2
Table of Contents
1. Introduction...........................................................................................................................................3
2. Package Content..................................................................................................................................3
3. Block Diagram ......................................................................................................................................4
4. Product Features..................................................................................................................................4
4.1 Data Conversion between RS-232/422/485 and Ethernet........................................................4
4.2 Dynamic IP Configuration...............................................................................................................4
4.3 Dual LAN Speed..............................................................................................................................4
4.4 Server / Client Dual Modes............................................................................................................4
4.5 Web-based Setup............................................................................................................................4
4.6 Built-in Security Control..................................................................................................................4
4.7 Firmware Remote Update..............................................................................................................5
5. Specification..........................................................................................................................................5
6. Quick Guide...........................................................................................................................................5
7. Converter Description.......................................................................................................................13
7.1. Panel View..............................................................................................................................13
7.2. Left View..................................................................................................................................13
7.3. Right View...............................................................................................................................14
7.4. LED Indicators........................................................................................................................14
7.5. Terminator & Reset Button ...................................................................................................14
7.6. Wiring Architecture.................................................................................................................15
8. Configuration......................................................................................................................................16
8.1. Initial IP configuration............................................................................................................16
8.2. ETM Device Management Utility.........................................................................................16
8.3. Web Console configuration ..................................................................................................18
8.4. Controller Status.....................................................................................................................18
8.5. Controller Setup.....................................................................................................................19
8.6. Controller Updated.................................................................................................................23
8.7. Default Setting........................................................................................................................24
9. Self Testing..........................................................................................................................................25
9.1. RS232 Loop Test....................................................................................................................25
9.2. RS422 Loop Test....................................................................................................................29
9.3. RS485 Loop Test....................................................................................................................33
10. Appendix A – Pins Out and Cable Wiring................................................................................37
11. Appendix B – Virtual Serial Port Driver Operation ...............................................................37
12. Appendix C – Console Command.............................................................................................43
13. Appendix D – FAQ.........................................................................................................................56
※ALL UPDATED DOCUMENTATION RELEASE IS AVAILABLE FOR DOWNLOAD AT KGUARD
OFFICIAL WEBSITE.

TCP/IP CONVERTER (KGA400) User Manual
----------------------------------------------------------------------------------------------------------------------------------------------------
www.kguardsecurity.com
3
1. Introduction
KGUARD TCP/IP converter is designed to make your serial devices Internet ready. ARM-7
Series of KGUARD TCP/IP converter makes them the ideal choice for connecting your RS-232
or RS-422/485 serial devices—such as PLCs, meters, and sensors to an IP-based Ethernet
LAN, making it possible for your software to access serial devices anywhere and anytime over
a local LAN or the Internet.
ARM-7 Series converter ensures the compatibility of network software that uses a standard
network API (Winsock or BSD Sockets) by providing TCP Server Mode, TCP Client Mode, and
UDP Mode.ARM-7 Series’ Virtual COM driver, software that works with COM port can be set up
to work over a TCP/IP network in no time. This excellent feature preserves your software
investment and lets you enjoy the benefits of networking your serial devices instantly.
ARM-7 Series converter supports manual configuration via the handy web browser console and
protocols including TCP, IP, UDP, HTTP, DHCP, ICMP, and ARP. Therefore it is the best solution
to network your serial devices.
2. Package Content
1 unit of KGUARD TCP/IP converter
1 unit of Power Adaptor
Quick Installation Guide
Installation CD
KGA400X1 Quick Installation Guide x 1 Adaptor x 1 Software CD x 1
NOTE:
Notify your sales representative if any of the above items is missing or damaged.

TCP/IP CONVERTER (KGA400) User Manual
----------------------------------------------------------------------------------------------------------------------------------------------------
www.kguardsecurity.com
4
3. Block Diagram
Low-cost devices usually are equipped with low speed processors and limited memories. In
reality, they are neither having the capability nor practicality to manage complicated network
TCP/IP protocols. ARM-7 Series is a low cost while providing high performance network solution
by converting data stream between network TCP/IP and popular serial port signals. In stead of
processing TCP/IP packets directly, devices only need to deal with those interface signals, which
greatly simplifies the complexity of TCP/IP network linkage.
4. Product Features
4.1 Data Conversion between RS-232/422/485 and Ethernet
Convert serial device (RS-232, RS-422, RS-485) data/signal to TCP/IP packet data/signal
and transmit them with the Ethernet data stream or convert the TCP/IP packet data/signal
into serial device data/signal.
4.2 Dynamic IP Configuration
Support DHCP client mode, simplifying network address configuration and management.
4.3 Dual LAN Speed
Support 10/100 Mbps Ethernet, auto-detected.
4.4 Server / Client Dual Modes
ARM-7 Series can be configured as network server or network client. In the client mode, it
can be installed in network which is protected by NAT router or firewall, without the need of a
real IP address.
4.5 Web-based Setup
Parameters setup is based on HTTP protocol by using standard browsers (IE and Netscape).
No special software would be required.
4.6 Built-in Security Control
Protect the system from intrusion through password encryption system.

TCP/IP CONVERTER (KGA400) User Manual
----------------------------------------------------------------------------------------------------------------------------------------------------
www.kguardsecurity.com
5
4.7 Firmware Remote Update
Firmware can be updated directly via Ethernet network to keep up with latest network
standards.
5. Specification
5-1.CPU : 32-bitsARM-7 CPU , 25 MHz
5-2.RAM : 2 M Bytes SDRAM ( 1 M * 16Bits )
5-3.ROM : 128 K Bytes Flash ROM
5-4.Ethernet
※ Port Type : RJ-45 Connector
※ Speed : 10 /100 M bps ( Auto Detecting )
※ Protocol : ARP , IP , ICMP , UDP , TCP , HTTP , DHCP
※ Protocol (Optional):PPPoE , PPPoM
※ Mode : TCP Server / TCP Client / UDP
※ Setup : HTTP Browser Setup (IE & Netscape) , RS-232 Console
※ Security : Setup Password & Connecting Password
※ Protection : Built-in 1.5KV Magnetic Isolation
6. Quick Guide
6-1.Equipment set up: (One Ethernet HUB, PC, Converter (KGA400) and RJ45 cables).
6-2.Close Windows or antivirus program firewall.

TCP/IP CONVERTER (KGA400) User Manual
----------------------------------------------------------------------------------------------------------------------------------------------------
www.kguardsecurity.com
6
6-2.Run ETM program.
6-3.You will see the initial IP address. (default IP: 172.16.1.1 )

TCP/IP CONVERTER (KGA400) User Manual
----------------------------------------------------------------------------------------------------------------------------------------------------
www.kguardsecurity.com
7
6-4. If your PC IP address is different from the converter. Please follow the following steps.
6-5. Check the PC IP address by typing ipconfig in the command prompt console.
6-6. If the IP address is different:
6-6.1 Select Start > Setting > Network Connections.

TCP/IP CONVERTER (KGA400) User Manual
----------------------------------------------------------------------------------------------------------------------------------------------------
www.kguardsecurity.com
8
6-6.2 Select Local Area Connection.
6-6.3 Right click the mouse and choose Properties.
6-6.4 Select TCP / IP and click on properties.

TCP/IP CONVERTER (KGA400) User Manual
----------------------------------------------------------------------------------------------------------------------------------------------------
www.kguardsecurity.com
9
6-6.5 In the TCP/IP property page, click on Advanced.

TCP/IP CONVERTER (KGA400) User Manual
----------------------------------------------------------------------------------------------------------------------------------------------------
www.kguardsecurity.com
10
6-6.6 Click the Add button of the IP address section.
6-6.7 Enter the new IP address and press Add.

TCP/IP CONVERTER (KGA400) User Manual
----------------------------------------------------------------------------------------------------------------------------------------------------
www.kguardsecurity.com
11
6-6.8 Press the OK button to save and exit the page.
6-7. Change both converter and PC in the same IP address through ETM program.
6-8. Open the ETM program.
6-9. Double click in the IP address column to call up the configuration dialog box to change the IP
address. Repeat the same process to modify subnet mask, MAC address and Device ID.

TCP/IP CONVERTER (KGA400) User Manual
----------------------------------------------------------------------------------------------------------------------------------------------------
www.kguardsecurity.com
12
6-10. Press the Login button of ETM program.
6-11. Get into controller setup screen of ETM program.
6-12. After set all the parameters then press update button of ETM program.

TCP/IP CONVERTER (KGA400) User Manual
----------------------------------------------------------------------------------------------------------------------------------------------------
www.kguardsecurity.com
13
7. Converter Description
7.1. Panel View
7.2. Left View
※Power Supply
The KGUARD TCP/IP converter is powered by a single 9~12V DC(Inner positive/outer
negative) power supply and 500mAof current.A suitable power supply adapter is part of
the packaging. Connect the power cable to the power outlet at the left side of KGUARD
TCP/IP converter and put the adapter into the socket. If the power is properly supplied,
the “SYS” red color LED will blink once every second.
※LAN Port
The network connector is RJ45. Simply connect it to the network switch or the Hub.
When the connection is ready, the LAN LED indicator will turn on. When data traffic
occurs on the network, red Tx & Rx LED indicator will blink during data transferring and
reception.
LED Indicators
Serial Port RS-232
Serial Port
RS-485/RS-422
DC-In Power Outlet
LAN
RS-422 / RS- 485
Terminator Reset Button
DC-In Power Outlet
LAN

TCP/IP CONVERTER (KGA400) User Manual
----------------------------------------------------------------------------------------------------------------------------------------------------
www.kguardsecurity.com
14
7.3. Right View
※Serial Port of RS-232/RS-422/RS-485
Connect the serial data cable between the converter and the serial device. Follow the
setup procedure to configure the parameters of the converter.
7.4. LED Indicators
SYS (Red LED) Power indicator: when the power is on the LED will flash every second.
Rx (Green LED) Network signal reception indicator (LED will flash when signal is received
from the network
Tx (Red LED) Network signal transferring indicator (when transmit any signal to
network the LED will flash)
LAN (LED) LAN indicator (when converter links to LAN then LED will
be on)100M- Green LED、10M- Red LED
7.5. Terminator & Reset Button
Reset Button Press the button then turn on the power and wait for 3 seconds.
Converter will reset to default value.
Terminator There is a built in terminator resistor. If the switch 1 & 2 are set in
“ON” position, 120 Ohm resistor is connected between the
signals.
Serial Port RS-232
Serial Port
RS-485/RS-422
Reset Button
Terminato
r

TCP/IP CONVERTER (KGA400) User Manual
----------------------------------------------------------------------------------------------------------------------------------------------------
www.kguardsecurity.com
15
7.6. Wiring Architecture
When you finish the steps mentioned above the converter should have been installed correctly.
Then proceed to Setup Tool “ETM.exe” to setup the IP Address.
To proceed with the advanced parameters setup, please use a web browser (IE or Netscape)
to continue the detailed settings.
※RS-232 Wiring Architecture
※RS-422 / RS-485 Wiring Architecture
RS‧-232 Wiring
Serial Device Converte
r
TX RX
RX TX
GND GND
RS‧-232(RTS / CTS) Wiring
Serial Device Converte
r
RX TX
TX RX
GND GND
RTS CTS
CTS RTS
RS‧-232(RTS / CTS, DTR /DSR ) Wiring
Serial Device Converte
r
RX TX
TX RX
GND GND
RTS CTS
CTS RTS
DTR DSR
DSR DTR
RS‧-422 Wiring
Serial Device Converte
r
T+R
+
T-R
-
R+T
+
R-T
-
RS‧-485 Wiring
Serial Device Converte
r
D+D+
D-D
-

TCP/IP CONVERTER (KGA400) User Manual
----------------------------------------------------------------------------------------------------------------------------------------------------
www.kguardsecurity.com
16
8. Configuration
8.1. Initial IP configuration
When setting up your converter for the first time, the first thing to do is to configure the IP
address. This chapter introduces the method to configure the IP address of the device
server. For more details about network settings, see “Web Console Configuration” in the
next sub-section.
Note: For quick setup of the converter, please refer to “Quick Installation” section.
8.2. ETM Device Management Utility
On PC we provide a Device Management Utility named ETM.exe which is an executable
program in Windows 32 bit environments. ETM Setup Tool is used to detect and setup the
installed converters (KGA-400). It uses UDP broadcast packets to query and configure
converters on the network.
When you activate the tool, it will detect the existence of the installed converters and show
the converters’ status such as IP address, Subnet Mask, MAC Address, and Device ID.
If the Operating System is Windows XP, the “WINDOWS Firewall” is probably already
activated. This can cause ETM.exe unable to detect the converter’s IP address. Therefore,
windows firewall system needs to be disabled temporarily to allow the proper configuration
of the converter using ETM.
Due to the nature of UDP packet broadcast, ETM has the following characteristics:
※
※
※
Broadcast packets aren’t limited by subnet. Even if the IP address of the converters and the

TCP/IP CONVERTER (KGA400) User Manual
----------------------------------------------------------------------------------------------------------------------------------------------------
www.kguardsecurity.com
17
computer running ETM do not belong to the same subnet, it will still work fine.
※
※
※
Broadcast packets cannot pass through routers. ETM can only be used to monitor devices with
computer running ETM in the same segment as the local area network.
¾Press the Refresh Button to update the information.
¾Press the Exit button to quit the program.
※Menu “Config”
□
□
□
Config -> IPAddress
Double click in the IP address column, the config dialog box will pop up to allow user to
change the IP Address.
Note: Because ETM uses broadcast UDP packets, the system only allows configuration when the
device setup password is empty due to security protection.
Assign an IP Address with the same Subnet Mask as your computer to avoid any IP

TCP/IP CONVERTER (KGA400) User Manual
----------------------------------------------------------------------------------------------------------------------------------------------------
www.kguardsecurity.com
18
conflict with other network devices.
When you press [Ok], the IP address will be refreshed in 2~3 seconds.
8.3. Web Console configuration
In addition to basic IP address and subnet mask, specific device settings can be set
through HTTP protocol with browsers such as Internet Explorer, or Netscape. Converter
setup is easy and it does not need special software installation. Press [Alt]+[Enter] or
select [Device Settings] in the [Config] menu, to open a new window browser to login into
the device. Alternatively, if the IP address of the converter is already known, you can
connect to the converter directly by providing its IP address in the URL address bar.
8.4. Controller Status
※The Login Page
KGUARD TCP/IP converter setup does not require any special software installation.
Internet browsers such as IE or Netscape can be used for the setup. Open an
internet browser then type in the IP address of the device in the address bar to
access the Controller Status page.

TCP/IP CONVERTER (KGA400) User Manual
----------------------------------------------------------------------------------------------------------------------------------------------------
www.kguardsecurity.com
19
※Field Description
□
□
□
System time elapsed
This shows the time elapsed since the device started in [Day: Hour: Minute: Second]
format. This information can be used to identify the reliability of the system.
□
□
□
Firmware version
Converter firmware is identified by date code. This information will be required when
requesting for technical support.
□
□
□
Serial number
It consists of 5 digit number and a unique MAC (Media Access Control) address used by
Ethernet in hex format, 8 digits.
□
□
□
Password (Setup Login)
This requires the administrative password. The system does not have a password in its
default setting. However, it is highly recommended to create a password. If you could
not login, it means you have to key in the password. If you do not know the password
you can turn off the power and then use any point tip to press “Reset” button and hold it
to turn on the power.The password will be reset to its default.
KGUARD TCP/IP converter uses the same password protection mechanism as
Windows NT or UNIX. If there are more than “3 consecutive failures” in password
login, the login function will be disabled for “15 minutes”. During this 15 minutes period,
even if you supply the correct password, login will not proceed. This prevents intruders
from finding the password through computer generated program.
8.5. Controller Setup

TCP/IP CONVERTER (KGA400) User Manual
----------------------------------------------------------------------------------------------------------------------------------------------------
www.kguardsecurity.com
20
※The Setup Page
Type in the correct password and click the [Login] button to access the controller
setup page.
Note: If you forget the password or cannot login successfully, please contact the
manufacturer directly.
※IP Address
This is IP address of the KGUARD TCP/IP converter. If DHCP client mode is enabled and
there's a DHCP server on the network, the IP will be assigned by DHCP server
automatically.
※Subnet mask
Subnet mask of the network KGUARD TCP/IP converter. “255.255.255.0” is usually used
for small network, “255.255.0.0” for larger network.
Table of contents