You are on page 1of 40

TCP/IP Converter EX-9132 Operation Manual for 8051 Series

First Edition, March 2005

Table of Contents
1. Introduction
Overview ……………………………………………… ………………………………………………… …………………………………………… …………………………………… 3 4 6 7 8 10

Package Checklist Block Diagram Features

………………………………………… 5

……………………………………………………

Product Specifications Product Panel Views Top Side Left Side Right Side Rear Side Reset

2. Converter Description & Installation ………………

……………………………………… 10 11 12 13 13 14 14 16 16

…………………………………………………… 10 ………………………………………………… ………………………………………………… …………………………………………………… 12

………………………………………………………

LED Indicators …………………………………………… Wiring Architecture RS-422/RS-485 RS-232 …………………………………………………… …………………………………………… …………………………… …………………………………

……………………………………… 14

3. Converter Configuration
Initial IP Configuration Menu “Refresh” Menu “Config” Controller Status

Device Management Utility of ExpertDAQETM

………… 17 18 20 21

…………………………………………… 18 …………………………………………… …………………………………………

Web Console Configuration ……………………………

1

Controller Setup ………………………………………… Controller Updated ……………………………………… ………………………………… ………………… Factory Default Setting

23 29 30 31 32 35 36 37 38 38 38 38 39 39 39 39

4. Self-Testing

………………………………………………… …………………………

Hyper Terminal for TCP/IP WinSock Hyper Terminal for COM Port Data Transmission

………………………………………

Appendix A - FAQ ………………………………………… Appendix B - Pin Outs and Cable Wiring …………
DC Power Outlet ………………………………………… RJ-45 Pin Assignment RS-232 Pin Assignment RS-232 Wiring Diagram RS-422 Pin Assignment RS-422 Wiring Diagram RS-485 Wiring Diagram …………………………………… ………………………………… ………………………………… ………………………………… ………………………………… …………………………………

2

Introduction

1

Tops CCC Products Co., Ltd. is providing new ways of connecting legacy serial devices to a Local Area Network (LAN) or Wide Area Network (WAN). TCP/IP converters are designed to operate serial ports over 10/100M Ethernet networks. The data is transmitted via TCP/IP protocol. Therefore control is available via Ethernet, Intranet and Internet. TCP/IP converters are packaged in a plastic case well suited for industrial environments. All serial ports operate in common RS-232 mode , industrial RS-422 and RS-485 modes configuration. TCP/IP converter series is a low-cost, high performance design. By careful selecting high quality with competitive prices components in the world, EX-9132 product made network connectivity possible with affordable cost for virtually all kinds of devices. The 8051 Series of TCP/IP converters consists of 2 models: EX-9132 (1 port for RS-232/422/485) is a ready set product and the other EX-9132-M (1 port for RS-232/422/485) is a module product for developing purpose by customers. This operation manual will guide you step by step for the various functions of the TCP/IP converter. The following topics are covered in this chapter: □ □ Overview □ □ Package Checklist □ □ Block Diagram □ □ Product Features □ □ Product Specifications

3

TCP Client Mode. DHCP. software that works with COM port can be set up to work over a TCP/IP network in no time. 4 . ICMP. meters. HTTP. They are the best solution to network your serial devices. making it possible for your software to access serial devices anywhere and anytime over a local LAN or the Internet. and ARP. and sensors—to an IP-based Ethernet LAN. IP. 8051 Series converters ensure the compatibility of network software that uses a standard network API (Winsock or BSD Sockets) by providing TCP Server Mode. 8051 Series converters support manual configuration via the handy web browser console and many protocols including TCP.Overview TCP/IP converters are designed to make your serial devices Internet ready instantly. 8051 Series of TCP/IP converters makes them the ideal choice for connecting your RS-232 or RS-422/485 serial devices—such as PLCs. 8051 Series’ Virtual COM driver. and UDP Mode. This excellent feature preserves your software investment and lets you enjoy the benefits of networking your serial devices instantly. UDP.

5 .Package Checklist 8051 products are shipped with the following items: □ □ 1 unit of EX-9132 TCP/IP converter □ □ Documentation & Software CD □ □ Quick Installation Guide NOTE: Notify your sales representative if any of the above items is missing or damaged.

8051 Series is a low cost while providing high performance network solution by converting data stream between network TCP/IP and popular serial port signals. 6 .Block Diagram Low-cost devices usually are equipped with low speed processors and limited memories. devices need only deal with those interface signals. which greatly simplifies the complexity of TCP/IP network in linkage. they are neither having the capability nor practicality to manage complicated network TCP/IP protocols. In reality. In stead of processing TCP/IP packets directly.

In the client mode. RS-422. RS-485) data/signal into the TCP/IP package data/signal and send them out with the Ethernet DataStream. □ □ Server / Client Dual Modes 8051 Series can be configured as network server or network client. it can be installed in network which is protected by NAT router or firewall. □ □ Web-based Setup Parameters setup are based on HTTP protocol by using standard browsers (IE and Netscape). Please contact your sales representative for □ □ Dynamic IP Configuration Support DHCP client mode. simplifying network address configuration and management. □ □ Digital I/O Activating (For OEM only) Convert the sensors’ statuses into the TCP/IP package data and send them out with the Ethernet DataStream. or use the TCP/IP package data to activate/deactivate the specified digital outputs / inputs.Product Features □ □ Data Conversion between RS-232/422/485 and Ethernet Convert serial device (RS-232. further information. □ □ Dual LAN Speed Support 10/100 Mbps Ethernet. □ □ Built-in Security Control Protected by both setup password and access password to prevent intruders. □ □ Firmware Remote Update Firmware can be updated directly via Ethernet network to keep up with latest network standards. No special software would be required. Note: This function is for OEM only. without the need of a real IP address. or convert the TCP/IP package data/signal into serial device data/signal. 7 . auto-detected.

Tx. Tx . TCP. GND . RTS .864 MHz RAM : 32K Bytes SRAM ROM : 64 K Bytes Ethernet ● Port Type : RJ-45 Connector ● Speed : 10 /100 M bps ( Auto Detecting ) ● Protocol : ARP. UDP. RS-232 Console ● Security : Setup Password & Connecting Password ● Protection : Built-in 1.2k bps ● Parity : None . DSR . 2 ● RS-232 Signals : Rx . UDP ● Setup : HTTP Browser Setup (IE & Netscape). Odd . IP. Data. of Ports : RS-232 / RS-422/RS-485 * 1 Port ● Port Type : DB9 male for RS-232 and Terminal Block for RS-422/485 ● Speed : 300 bps∼115.(Surge Protection) ● Built-in RS422/RS485 Terminal Resistor Digital I/O Port TTL Digital I/O * 7 15KV ESD for all signal 8 . CTS .. DCD ● RS-422 Signals : Rx+ .Product Specifications CPU : 8-bits 8051 .(Surge Protection) ● RS-485 Signals : Data+ . Rx. Even ● Data Bit : 7 . ICMP. DHCP ● Mode : TCP Server/Client . 8 ● Stop Bit : 1 . Tx+ . DTR .5KV Magnetic Isolation Serial Port ● No. HTTP. 36.

CE Class A 9 . 500mA LED Lamp : Model EX-9132 PWR (Green) DATA (Red-Blink during data transferring and receiving) LAN (Red) SYS (Red-Blink) Environment : Operating Temperature : 0℃∼60℃ Storage Temperature : -10℃∼70℃ Dimensions : EX-9132 : 90 * 90 * 25 mm ( W * D * H ) WEIGHT : 110 gm RoHS :Compliant with RoHS Regulatory Approvals : EMC : WARRANTY : 1 year FCC Class A.Watch Dog Function Firmware On-line Updated Via Ethernet Power : DC 9 – 12 V .

2 Converter Description & Installation Product Panel Views Top Side DC-In Power Outlet LAN Reset Serial I/O Port RS-485/RS-422 Serial I/O Port RS-232 LED Indicators 10 .

If power is properly supplied. the LAN LED indicator will light. 11 .Left Side Power Supply EX-9132 TCP/IP supports 9 ~ 12V DC input voltage at a current of 500 mA. Simply connect it to your network switch or Hub. DC-In Power Outlet LAN Reset Button LAN Port The connector for network is the usual RJ45. the green LED labeled with “PWR” will be on. When the connection is made. Connect the power line into the power connector (inner terminal positive/outer terminal negative) of EX-9132 TCP/IP converter and insert the power adapter into the socket. When data traffic occurs on the network. red DATA LED indicator will blink during data transferring and receiving.

Second. or have incorrect settings making EX-9132 TCP/IP converter inoperable. First. 12 .Reset Button Right Side RS-485/RS-422 RS-232 Serial I/O Port of RS-232/RS-422/RS-485 Connect the serial data cable between the converter and the serial device.Reset Button If by any chance. turn off the power. All the parameters will be reset to the factory default. use any point tip to push this button and hold it to turn on the power at the same time for 5 second. you forget the setup password. Follow the parameter setup procedures to configure the converter (see the following chapters ).

the LED will be on. LAN (Red): Device statues indicator (When EX-9132 TCP/IP converter is operated in normal statues.) DATA (Red): Data sent & received indicator (When data are sending and receiving to the network.) 10/100 (Green): Network signal indicator. the LED will be on.) 13 .LED Indicators PWR (Green): Power indicator (When the power is on. the LED will blink once per second. when the LAN signal is detected and then. the LED will blink.

Wiring Architecture RS-232 Wiring Architecture RS-422/RS-485 Wiring Architecture 14 .

When you finish the steps mentioned above and the LED indicators are as shown.exe” to setup the IP Address. 15 . the converter is installed correctly. To proceed the advanced parameter setup. You can use the Setup Tool “ExpertDAQETM . please use a web browser (IE or Netscape) to continue the detailed settings.

For quick and easy start . the first thing you should do is configure the IP address. see “Web Console Configuration”. We suggest you to reference “Quick Installation Guide” manual.3 Converter Configuration Initial IP Configuration When setting up your converter for the first time. The following topics are covered in this chapter: □ □ Device Management Utility □ □ Refresh □ □ Exit □ □ ExpertDAQETM Config 16 . in next sub section. This chapter introduces the method to configure the device server’s IP address. For more details about network settings.

When you activate the tool. query and configure converters on the network. please shut down or disconnect other converters.Device Management Utility On PC we provide a Device Management Utility named ExpertDAQETM which is an executable program in Windows 32 bit environments. used to detect and setup the installed converters. it will detect the existence of the installed converters and depict the converters’ status such as IP address. ExpertDAQETM can only be used to monitor devices with computer running ExpertDAQETM in the same segment of local area network ExpertDAQETM Setup Tool is It uses UDP broadcast packets to 17 . Even if the IP address of the converters and the computer running ExpertDAQETM do not belong to the same subnet. Other similar issues. Otherwise the ExpertDAQETM can not detect the converter. Due to the nature of broadcast UDP packets.1). and Device ID (see Figure 3. MAC Address. The Setup Tool only can setup one converter at a time. Thus if there are more than one converter on the network. ExpertDAQETM has following characteristics: □ □ Broadcast packets aren’t limited by subnet. Subnet Mask. it still works fine. you may reference to Q&A in Appendix A. □ □ Broadcast packets can not pass routers.

Refresh Refresh the status. ExpertDAQETM will send another query to get updated information. Note: Always run the “View-> Refresh” after any data change. Exit Exit from the program ExpertDAQETM Config Moving the mouse cursor onto the desired device that displaying in information window Clicking the left button of mouse to invoke the ExpertDAQETM Config. 18 .

for the sake of security. it allows configuration only when device's setup password is empty. avoiding any IP conflict with other network devices. 19 .Note : Because ExpertDAQETM uses broadcast UDP packets. the IP address will be refreshed in 2~3 seconds. When you press [Setup] button. Assign an IP Address with the same Subnet Mask of your computer.

if the IP address of the converter is already known. Setup of the converters is as easy as surfing on WWW. will open a new window in browser to login into the device. menu. e. specific device settings can be set through HTTP protocol with popular browsers.Web Console Configuration In addition to basic IP address and subnet mask. etc. Internet Explorer. Alternatively. no special software Press [Alt]+[Enter] or select [Device Settings] in the [Config] will be required. you can connect to the converter directly by providing its IP address in the URL field of browsers. The following topics are covered in this chapter: □ □ Controller Status ● ● The Login Page Field Description □ □ Controller Setup ● ● The Setup Page Field Description □ □ Controller Updated □ □ Factory Default Setting 20 . Netscape.g.

set the IP address of device directly. Popular Browsers. please follow the steps below.) □ □ The “Controller Status” page will be shown (see Figure 3. can easily do the setup process. type the IP address of the converter directly and press ENTER. no special software will be required. or Netscape. To enter the “Controller Status” page.6) 21 . □ □ In the browser URL field. (Figure 3. In the browser URL field. such as IE.Controller Status The Login Page Setup of EX-9132 TCP/IP converter is as easy as surfing on WWW. (The IP address is what you set using the Device Management Utility.6). This chapter will use IE as an example. □ □ Open your browser.

The password will be reset to the factory default as “empty”. even if you supply correct password. If you do not know the password you can turn off the power and then use any point tip to push “Reset” button and hold it to turn on the power at the same time for 5 seconds. However. the login function will be disabled for “15 minutes”. 22 . If you could not login. This prevents intruders from finding the password by computer generated program. This information will be EX-9132 TCP/IP converter uses the same password protection mechanism commonly used in Windows NT or UNIX.Field Description □ □ System time elapsed The time elapsed since start of this device in [Day Hour : Minute : Second] format. it is not recommended to leave it empty in field operation. □ □ Serial number Converter is consisted “Type Number (5 digits) and an unique MAC (Media Access Control) address used by Ethernet in hex format. required in looking for technical support. This information can be useful in identifying the reliability of system. □ □ Firmware version Converter firmware is identified by date code. 8 digits. login will not proceed. During this 15 minutes period. If there are more than “3 consecutive failures” in password check during login. Factory default is “empty”. it means you have to key in the password. □ □ Password(Setup Login) This field is the administration password for authentication.

7).Controller Setup □ □ The Setup Page Type the correct password in the “Password” field and click the [Login] button in the “Controller Status” page. (Figure 3. Note: If you forget the password or can’t login successfully. then the “Controller Setup” page will appear (see Figure 3.7) 23 . please contact the manufacturer directly.

0” is usually used for small network. just or your device owns a real IP address on the internet.□ □ Field Description □ □ IP Address The IP address of EX-9132 TCP/IP converter. please inquire of them that information and type it correctly.0. Don’t 'Gateway' is a device which connects local If you need to communicate with other networks If there's no gateway on the network. “255.255. this field will be assigned by DHCP server automatically. network to external network. 4 digits separated by '. “255.' If your IP address is provided by an ISP or the internal network administrator. If DHCP client mode is enabled and there's a DHCP server on the network. leave it as “0.255.0” for larger network.0. If DHCP client mode is enabled and there's a DHCP server on the network. □ □ Subnet mask Subnet mask of the network EX-9132 TCP/IP converter has connected to. If DHCP client mode is enabled and there's a DHCP server on the network. please inquire of them that information and type it correctly. □ □ Gateway address Gateway or Router IP address.' let it conflict with the other devices on the network. 4 digits separated by '.0”.255.0. 24 . this field will be assigned by DHCP server automatically. this field will be assigned by DHCP server automatically.

x.x. To enter the browser setup page.g. and Gateway address] should be manually assigned. there should be a DHCP server on the network. connectionless 25 . 80 is for HTTP protocol). passive open. we suggest you use the numbers larger than 1000. Normally. active open. connect to the TCP server. UDP : UDP protocol. where “x.. □ □ Socket port of HTTP setup The socket port used to conduct the browser setup. [IP address]. “Auto” means the speed is automatically You can also specify “10Mbps” or “100Mbps” to □ □ DHCP client DHCP client mode could be enabled/disabled statues. If the field is changed to “81”. HTTP protocol use TCP port “80” for communication.x” is the converter’s IP address. It’s a 16-bit number . □ □ Socket port of serial I/O (RS-232/422/485) □ □ Port number A socket port assigned for the serial port. different port number for each serial port.x:81” should be typed for socket port “81” and “http://x. TCP Client: TCP protocol. the port “80” will be reserved for user's own Web. to be connected from the TCP clients. If DHCP is disabled.x. “http://x.x. selected by the converter.x. □ □ Socket type TCP Server: TCP protocol. [Subnet mask]. If DHCP is enabled. match the speed of the HUB. used for the serial communication. ranging from 1 to 65535.□ □ Network link speed Ethernet physical link speed.x” for socket port “80”.x. Because the numbers below 1000 are used Generally the port number 4660 is However you should specify for specific purposes (e.

stop bits Baud Rate: 300 ~ 115200 bps Parity: None.g.□ □ Socket port of Digital I/O □ □ Port number A socket port assigned for the serial port. to be connected from the TCP clients. □ □ Destination socket port The server socket port would be connected in TCP Client and UDP Client mode for a certain serial port. □ □ Serial I/O setting □ □ Baud rate. connect to the TCP server. It’s a 16-bit number . □ □ Connection The connection can be selected in 2 modes. used for the serial communication. ranging from 1 to 65535. 8 Stop Bit: 1 or 2 26 . passive open. Because the numbers below 1000 are used Generally the port number 4660 is However you should specify for specific purposes (e. 80 is for HTTP protocol). “Auto” or “Manual”. TCP Client: TCP protocol. we suggest you use the numbers larger than 1000. active open. connectionless □ □ Destination setting □ □ Destination IP address The server IP address and socket port would be connected in TCP Client and UDP Client mode for a certain server IP address. data bits. Even. parity. Odd Data Bits: 7. UDP: UDP protocol. □ □ Socket type TCP Server: TCP protocol. different port number for each serial port.

□ □ Device ID User assigned ID number for the converter. EX-9132 TCP/IP converter will immediately report its device ID in the following formats: Serial #1 Serial #2 Digital I/O nnnnnA[LF][CR] nnnnnB[LF][CR] nnnnnC[LF][CR] The total length is 8 bytes. 27 .□ □ Interface of serial I/O RS232: TxD. where “nnnnn” is a 5-digit device ID assigned by the user. [LF] is decimal 10. RTS/CTS for flow control RS232 (RTS/CTS. [CR] is decimal 13. DTR/DSR): TxD. RxD for data stream. DTR for socket status. every time when the socket is connected. Available ID is “0 ~ 65535”. RTS/CTS for flow control. no flow control RS232 (RTS/CTS): TxD. If packet mode is enabled. □ □ Report device ID when connected In TCP mode. or the converter detects a 10-character packet gap and no more character arrived. RxD for data stream. RxD for data stream. the data input from UART will be deferred until the input buffer is full. if this parameter is enabled. DSR for socket open/close control RS485 (Half duplex): Half duplex RS-485 interface RS422 (Full duplex): Full duplex RS-422 interface □ □ Packet mode of serial input Packet mode could be in enabled/disabled mode. The block waiting time is extended to avoid the splitting of the complete packet.

If the authentication fails or Otherwise. the authentication is disabled. Authentication password may be empty or up to 15 characters long. the socket will be closed. □ □ Access password During socket connection. 28 . If “Access password” is empty. It may be empty or up to 15 characters long.□ □ Setup password Administration password used to login the “Controller Setup” page. the authentication will be conducted. no password is supplied within 10 seconds.

Controller Updated Press “Update” Button After you finish the detailed parameter setting. (Figure 3. If everything is ok.. you can close the browser now. It takes about 5 seconds to complete the whole process.8) You can re-login and check if all parameters have been correctly saved.8). and a new login page will be presented (see Figure 3.1). The converter will save all parameters into internal non-volatile memory and then reboot (see Figure 3. Note : If the domain of the converter is different from that of the computer running the browser. 29 . the login page won’t appear unless the converter’s “Gateway Address” has been correctly set.

you can turn off the power and then use any point tip to push “Reset” button and hold it to turn on the power at the same time for 5 seconds. you forget the setup password. 2. Use a pin or any point tip to push the screw driver or any conductor to short DTR and CTS (pin 4 and pin 8 in DB9) of RS232 connector. 30 . B: 1. Remove screwed driver or conductor. Turn off the power of the converter. there are two ways to reset the setting and the following procedures can be used to reset all settings to factory default: A: 1. 3. 4.Factory Default Setting If by chance. or have incorrect settings making the converter inoperable. Turn on the power of the converter and wait 5 seconds. The password will be reset to the factory default.

The following topics are covered in this chapter: □ □ Hyper Terminal for TCP/IP WinSock □ □ Hyper Terminal for COM Port □ □ Data Transmission 31 . ME.4 Self-Testing After completing the wiring and parameter setting. This chapter will introduce how to use a single computer to test if the converter behaves well. XP. 98. The wiring architecture is similar to “RS-232 Wiring” in chapter 2. The “Hyper Terminal” utility should be installed on your PC (see Figure 4. It can be found in your Windows installation CD. The operating system can be Windows 95. and the “Serial Device” is replaced by the PC’s COM 1. The same PC also plays the roll of the Remote Host. we should verify if the setting is correct or not. 2000.1).

choose an icon. give a terminal name.2).1) (Figure 4.2) 32 .1).Hyper Terminal for TCP/IP WinSock Initiate a Hyper Terminal from the Start Menu in Windows (see Figure 4. (Figure 4. and press “OK” button (see Figure 4.

) (The Socket type of the Serial Port 1 (Figure 4.g 4660). Figure 4.4) 33 . should be “TCP Server”. 192. and the Socket port number set for the Serial Port 1 at the “Port number:” field (e.0.3) After “OK” button is pressed.168.Select “TCP/IP(Winsock)” option at the “Connect using:” field (see Figure 4.4 appears.3) .g. Enter the converter’s IP address (e.10) at the “Host address:” field. (Figure 4.

After “OK” button is pressed.5 appears. (Figure 4. If the Hyper Terminal connects with the converter successfully. the time clock at the “left lower” corner “Connected hh:mm:ss” will start counting.5) 34 . Figure 4.

Set the COM port Properties to be the same as those set for the Serial Port of the converter.3.3) 35 .Hyper Terminal for COM Port Initiate another Hyper Terminal as a COM Port Terminal (in Figure 4. select COM 1 or other COM port instead of “TCP/IP (Winsock)”). (Figure 4.

Data Transmission When all steps described above are finished. Alternatively. If yes. 36 . then all settings are correct and the converter can operate properly. check if the characters typed on the TCP/IP Winsock Terminal are also displayed on the COM Port Terminal. type any characters on the COM Port Terminal and check if the typed characters are also displayed on the TCP/IP Winsock Terminal.

After finishing the parameters settings. □ □ If your computer OS is Windows XP version which means “WINDOWS Firewall” function in OS is activated. You have to temperately disable “WINDOWS Firewall” function. You can restart “WINDOWS Firewall” function. However ExpertDAQETM. Please check if the network domain of your PC is the same as that of the converter. Q. Please check □ □ if the power is properly plugged to the converter. □ □ if the network cable is properly connected between the converter and the Hub.Appendix A FAQ Q. Why can’t I use IE to setup the converter? A. 37 . Refer to the “Hardware Installation” steps in Chapter 3. therefore.exe wouldn’t detect the converter’s IP address. Why can’t the ExpertDAQETM.exe detect the converter on the network? A.

PIN 1 : DCD PIN 5 : GND PIN 9 : NONE PIN 2 : RXD PIN 6 : DSR 38 PIN 3 : TXD PIN 7 : RTS PIN 4 : DTR PIN 8 : CTS .Appendix B Pin outs and Cable Wiring □ □ DC Power outlet □ □ RJ-45 Pin Assignment □ □ RS-232 Pin Assignment The pin assignment scheme for a 9-pin male connector on a DTE is given below.

□ □ RS-232 Wiring Diagram Serial Device 2 RX 3 TX 5 GND 7 RTS 8 CTS EX-9132 Converter 3 2 5 8 7 TX RX GND CTS RTS (Flow Control) (Flow Control) □ □ RS-422 Pin Assignment The pin assignment scheme for a 4-pin RS-422 is given below. 1 2 3 4 PIN 1 : T+ PIN 2 : T- PIN 3 : R+ PIN 4 : R- □ □ RS-422 Wiring Diagram Serial Device RR+ TT+ EX-9132 TCP/IP Converter 2 T1 T+ 4 R3 R+ □ □ RS-485 Wiring Diagram Serial Device DD+ EX-9132 TCP/IP Converter 1 D2 D+ 39 .