TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- 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.
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- 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.
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- 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-bits ARM-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 ※...
Page 6
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- 6-2.Run ETM program. 6-3.You will see the initial IP address. (default IP: 172.16.1.1 ) www.kguardsecurity.com...
Page 7
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- 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 >...
Page 8
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- 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. www.kguardsecurity.com...
Page 9
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- 6-6.5 In the TCP/IP property page, click on Advanced. www.kguardsecurity.com...
Page 10
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- 6-6.6 Click the Add button of the IP address section. 6-6.7 Enter the new IP address and press Add. www.kguardsecurity.com...
Page 11
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- 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.
Page 12
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- 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. www.kguardsecurity.com...
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- Converter Description 7.1. Panel View RS-422 / RS- 485 Terminator Reset Button DC-In Power Outlet Serial Port RS-232 Serial Port RS-485/RS-422 LED Indicators 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 500mA of current.
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- 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. Serial Port RS-232 Serial Port RS-485/RS-422 7.4.
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- 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.
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.
Page 17
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- 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.
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- 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.
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- ※ 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. □...
Page 20
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- ※ 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. ※...
Page 21
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- If your IP address is provided by an ISP or the internal network administrator, please inquire your ISP for the correct information. If DHCP client mode is enabled and there's a DHCP server on the network, the subnet mask will be assigned by DHCP server automatically.
Page 22
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- a new connection can be accepted again. The timeout period can be set by users to fit different kinds of application. ※ Packet mode of serial input Packet mode could be set in an enabled/disabled mode. If packet mode is enabled, the data input from UART will be deferred until the input buffer is full, or the converter detects a 10-character packet gap and no more character arrived.
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- You can re-login and check if all parameters have been correctly saved. If everything is ok, you can close the browser now. Note : If the converter domain is different from that of the computer, the login page will not appear unless the converter “Gateway Address”...
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- B-1. Log in the web page. B-2. Press the reset button of the converter. B-3. Select the update button. B-4. After Tx & Rx light flashing then unclasp the reset button. B-5. The password configuration will reset to the factory default setting. IP Add.:172.16.1.20 IP Add.:172.16.1.1 9.
Page 26
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- 9.1.2. Open a Hyper Terminal file. 9.1.3. Name the Hyper Terminal . ( Example : test ) 9.1.4. Select “ OK” button of Connection Description. www.kguardsecurity.com...
Page 27
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- 9.1.5. Press OK when the Connect To dialog box pops up. 9.1.6. Select “TCP / IP” item in connect using drop down menu. www.kguardsecurity.com...
Page 28
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- 9.1.7. Press “OK” . 9.1.8. Fill in the converter IP address and socket data in Host address and Port number. 9.1.9. Press OK button. 9.1.10. Please short pin 2 & pin 3 the converter DB9 connector. www.kguardsecurity.com...
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- 9.1.11. Test the Hyper Terminal by entering some letters in the Hyper Terminal console. 9.1.12. If you don’t get response words from hyper terminal, please check step 1 to 11 again. 9.2. RS422 Loop Test 9-2.1.
Page 30
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- 9-2.3. Name the Hyper Terminal. ( Example : test ) 9-2.4. Select “OK” of the Connection Description dialog box. 9-2.5. Press OK button of the Connect To dialog box. www.kguardsecurity.com...
Page 31
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- 9-2.6. Select TCP / IP item in connect using drop down menu. 9-2.7. Press OK button. 9-2.8. Fill in the converter IP address and socket data in Host address and Port number. 9-2.9. Press OK. www.kguardsecurity.com...
Page 32
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- 9-2.10. Short T+ & R+ / T- & R- of RS422 connector of converter. Loop Back (R-) (T-) (R+) (T+) 9-2.11. Test the Hyper Terminal by entering some characters on the Hyper Terminal console. 9-2.12.
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- 9.3. RS485 Loop Test 9.3.1. Two converters should be in the same domain but with different IP addresses. 9.3.2. Both converters select RS485 option. 9.3.3. Open a hyper terminal file 9.3.4. Name the Hyper Terminal. (Example: test) 9.3.5.
Page 34
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- 9.3.6. When the Connect To dialog box pops up, Press OK. 9.3.7. Select TCP / IP in the Connect Using dialog box. www.kguardsecurity.com...
Page 35
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- 9.3.8. Press OK. 9.3.9. Fill in the converter IP address and socket data in Host address and Port number. 9.3.10. Press “OK”. www.kguardsecurity.com...
Page 36
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- 9.3.11. Repeat step 2 and open an additional hyper terminal file for the second converter. 9.3.12. Please short D+ & D+/D- &D- of RS485 connector of converter. (D+) (D+) (D-) (D-) 9.3.13. Both the converters can be assumed as working if you type any characters on Hyper Terminal of PC 1 &...
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- 10. Appendix A – Pins Out and Cable Wiring ※ D C Power outlet ※ -45 Pin Assignment ※S-232 Pin Assignment ※RS-422 Pin Assignment The pin assignment scheme for a 9-pin The pin assignment scheme for a 4-pin male connector on a DTE is given RS-422 is given below.
Page 38
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- ※ If did not add RS232 port , please move mouse to the area of Virtual Serial Port Console and press right key of mouse then select “Add Port” item. I. After select “ Add Port” of Virtual Serial Port Console program. II.
Page 39
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- III. Press the “Continue Anyway” button of Hardware Installation You will get a new COM port www.kguardsecurity.com...
Page 40
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- Press right key of mouse then choose “ Add Net” item of Virtual Serial Port console. After select “ Add Net “ item of Virtual Serial Port console. www.kguardsecurity.com...
Page 41
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- VII. Change “ Remote Address “ and “Remote Port” parameters same with IP address and socket port of converter VIII. Press “OK” button of Add Net. www.kguardsecurity.com...
Page 42
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- The successful screen of Virtual Serial Port Console. www.kguardsecurity.com...
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- 12. Appendix C – Console Command Getting started example: ※ Method 1: using serial commands: • Enable "Console command control" selection in the setup page. The socket mode can be either "TCP server" or "TCP client". •...
Page 44
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- Commands list (case insensitive) Device Settings: IP [ip_address] Description: set IP address Response: Err: invalid IP address Description: query IP address Response: four-digit device IP address (e.g. 192.168.1.1) Mask [subnet_mask] Description: set subnet mask Response: Err: invalid subnet mask ? Mask...
Page 45
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- Description: query gateway address Response: four-digit gateway IP address (e.g. 168.95.1.1) DHCP [1 | 0] Description: enable / disable DHCP client. 1 - enable 0- disable Response: There's no error message for this command. Any invalid value will be treated as 0. ?DHCP Description: query DHCP client setting...
Page 46
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- Response: There's no error message for this command. Any invalid value will be treated as 0 (no destination) ?HostPort Description: query host socket port Response: integer value of socket port (0 to 65535) AutoCon [1 | 0] Description: set auto connection of client mode 0 - manual control by console command...
Page 47
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- query HTTP setup port Response: 0 - port 80 1 - port 81 2 - disabled SioMode [0 | 1 | 2] Description: set serial port socket mode 0=TCP server 1=TCP client 2=UDP Response: Err: invalid mode ?SioMode Description:...
Page 48
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- Description: set serial port interface type. 0=RS232, no flow control 1=RS232 with RTS/CTS flow control 2=RS232 with RTS/CTS flow control and DSR/DTR socket control 3=RS485 half duplex 4=RS422 full duplex Response: There's no error message for this command. Any value less than 0 will be treated as 0, and any value larger than 4 will be treated as 4.
Page 49
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- ?SioBaud Description: query serial port baud rate Response: 0=300 bps 1=600 bps 2=1200 bps 3=2400 bps 4=4800 bps 5=9600 bps 6=19200 bps 7=38400 bps 8=57600 bps 9=115200 bps SioParity [parity] Description: set serial port parity 0=No parity 1=Even parity 2=Odd parity...
Page 50
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- 1=8 bit format Response: There's no error message for this command. Any value less than 0 will be treated as 0, and any value larger than 1 will be treated as 1. ?SioBits Description: query serial port data bits Response: 0=7 bit format...
Page 51
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- ?PktMode Description: query serial port packet mode Response: 1 - enabled 0 - disabled DioMode Description: set DIO socket mode 0=TCP server 1=TCP client 2=UDP Response: Err: invalid mode ?DioMode Description: query DIO socket mode Response: 0=TCP server 1=TCP client...
Page 52
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- DeviceId [device_id] Description: set device ID device_id: user defined integer value, 0 to 65535 Response: There's no error message for this command. ?DeviceID Description: query device ID Response: Integer value 0 to 65535 Password [password] Description: set setup password password: 0 to 16 characters...
Page 53
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- Response: access password string Data/Command Modes Description: switch from data mode to command mode. Before issuing this command, a 1000 ms silence is required, and after this command, 1000 ms silence is also required. Response: '>' command prompt Exit...
Page 54
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- ?OnLine Description: query if the socket connected Response: 1 - socket opened 0 - socket closed ?Version Description: query firmware version Response: firmware release date and time information. example: Jun 22 2005 01:22:03 TimeOut [1 | 0] Description: enable / disable inactive timeout.
TCP/IP CONVERTER (KGA400) User Manual ---------------------------------------------------------------------------------------------------------------------------------------------------- Ping [ip_address] Description: ping utility Response: Err: invalid IP address Err: no response 13. Appendix D – FAQ Q. Why can’t the ETM.exe detect the converter on the network? A. Please check . Power is properly plugged to the converter. ( Please refer “SYS’ LED ) .
Need help?
Do you have a question about the KGA-400 and is the answer not in the manual?
Questions and answers