DigiTech XC4134 User Manual

Page 1
1
Serial To Ethernet Converter
XC4134
User Manual
Page 2
2
Table of Contents
Introduction ……………………………………………....………………………4
Overview ………………………………………………………………………….. 5
Package Checklist ……………………………………………………………… 6
Block Diagram ……………………………………………………………………7
Product Features ………………………………………………………………...8
Product Specifications ………………………………………………………… 9
Converter Description & Installation …………………………………11
Product Panel Views …………………………………………………………...11
Left Side …………………………………………………………………………. 12
Right Side ……………………………………………………………………….. 13
LED Indicators …………………………………………………………………..1 4
Wiring Architecture …………………………………………………………… 15
RS-232 …………………………………………………………......................... 15
RS-422/RS-485 …………………………………………………………………..16
Converter Configuration ………………………………………………..17
Initial IP Configuration .………………………………….…………………….17
Device Management Utility of ETM.…………………………………………18
Menu View”……………………………………………………………………….19
Page 3
3
Menu Config …………………………………………………………………19
Web Console Configuration …………………………………………………19
Controller Status ………………………………………………………………22
Controller Setup ……………………………………………………………….24
Controller Updated ……………………………………………………………30
Factory Default Setting ……………………………………………………….31
Self-Testing …………………………………………………………………..32
Hyper Terminal for TCP/IP WinSock …………………………………………33
Hyper Terminal for COM Port ……………………………………………….36
Data Transmission …………………………………………………………….36
Appendix A - FAQ …………………………………………………………37 Appendix B - Pin Outs and Cable Wiring ………………………..38
DC Power Outlet ……………………………………………………………….38
RJ-45 Pin Assignment ………………………………………………………..38
RS-232 Pin Assignment ……………………………………………………...38
RS-422 Pin Assignment ……………………………………………………...39
RS-485 Pin Assignment ……………………………………………………...39
Page 4
4
Introduction
We are provides new ways of connecting serial devices to Local Area Network (LAN) or Wide Area Network (WAN). XC4134 TCP/IP converter is designed to operate serial ports over 10/100M Ethernet networks. The data transmitted via TCP/IP protocol. Therefore, control is available via Ethernet, Intranet and Internet. XC4134 TCP/IP converter packaged in plastic case well suites for industrial environments. All serial ports operate in common RS-232 mode, industrial RS-422 and RS-485 modes configuration.
XC4134 TCP/IP converter series is low-cost and high performance design. By careful selecting high quality with competitive prices components in the world, XC4134 makes network connectivity possible with affordable cost for virtually all kinds of serial devices.
The following topics are covered in this chapter:
Overview
Package Checklist
Block Diagram
Product Features
Product Specifications
Page 5
5
Overview
XC4134 TCP/IP converter is designed to make your serial devices Internet ready instantly. 8051 Series of XC4134 TCP/IP converter makes ideal choice for connecting your RS-232 or RS-422/485 serial devicessuch as PLCs, meters and sensorsto IP-based Ethernet LAN making possible for your software to access serial devices anywhere and anytime over local LAN or Internet.
8051 Series converters ensure the compatibility of network software that uses standard network API (Winsock or BSD Sockets) by providing TCP Server Mode, TCP Client Mode and UDP Mode. 8051 Series’ Virtual COM driver, software that works with COM port can set up to work over TCP/IP network in no time. This excellent feature preserves your software investment and let you enjoy the benefits of networking your serial devices instantly.
8051 Series converters support manual configuration via the handy web browser console and many protocols including TCP, IP, UDP, HTTP, DHCP, ICMP and ARP. They are the best solution to network your serial devices.
Page 6
6
Package Checklist
8051 products are shipped with the following items:
1 unit of XC4134 TCP/IP converter
1 unit of Power Adaptor ( Input :100-240V AC 500mA )
(Output :12V DC 1000mA )
Documentation & Software CD
NOTE: Please notify your sales representative if any of the above items are
missing or damaged.
Page 7
7
Block Diagram
Low-cost devices are usually equipped with low speed processors and limited memories. In reality, neither having the capability nor practicality to manage complicated the TCP/IP network protocols. 8051 Series is 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 need only deal with those interface signal which greatly simplifies the complexity of TCP/IP network in linkage.
Product Features
Data Conversion between RS-232/422/485 and Ethernet
Convert serial device (RS-232, RS-422, RS-485) data/signal into TCP/IP packet data/signal and send out with Ethernet data stream or convert the TCP/IP packet data/signal into serial device data/signal.
Page 8
8
Dynamic IP Configuration
Support DHCP client mode, simplifying network address configuration and management.
Dual LAN Speed
Support 10/100 Mbps Ethernet, auto-detected.
Server / Client Dual Modes
8051 Series can be configured as network server or network client. In the client mode can be installed network which protected by NAT router or firewall, without need a real IP address.
Web-based Setup
Parameters setup based on HTTP protocol by using standard browsers (IE and Netscape). No special software would be required.
Built-in Security Control
Protected setup the password to prevent intruders.
Firmware Remote Update
Firmware can be updated directly via Ethernet network to keep up with latest network standards.
Product Specifications
l CPU : 8-bits 8051 , 36.864 MHz l RAM : 32K Bytes SRAM l ROM : 64 K Bytes
Page 9
9
l Ethernet
Port Type : RJ-45 Connector
Speed : 10 /100 M bps ( Auto Detecting )
Protocol : ARP, IP, ICMP, UDP, TCP, HTTP, DHCP
Mode : TCP Server ,TCP Client , UDP
Setup : HTTP Browser Setup (IE & Netscape) RS-232 Console
Security : Setup Password
Protection : Built-in 1.5KV Magnetic Isolation
l Serial Port
No. of Ports : RS-232 / RS-422 / RS-485 x 1 Port
Port Type : DB9 male
Speed : 300 bps115.2K bps
Parity : None , Odd , Even
Data Bit : 7 , 8
Stop Bit : 1 , 2
RS-232 Signals : Rx , Tx , GND , RTS , CTS , DTR , DSR , DCD
RS-422 Signals : Rx+ , Rx- , Tx+ , Tx- (Surge Protection)
RS-485 Signals : Data+ , Data- (Surge Protection)
Built-in RS422/RS485 Terminal Resistor
l 15KV ESD for all signals l Watch Dog Function l Firmware On-line Updated Via Ethernet
Page 10
10
l Power : Input : DC 9 – 12 V l LED Lamp : PWR (Green) l DATA (Red-Blink during data transferring and receiving) l LAN (Red) l SYS (Red-Blink) l Environment : Operating Temperature : 060
Storage Temperature : -1070
l Dimensions : 85 x 75 x 25 mm ( W x D x H ) l WEIGHT : 110 gm l RoHS :Compliant with RoHS l Regulatory Approvals : EMC : FCC Class A, CE Class A l WARRANTY : 1 year
Page 11
11
Converter Description
Product Panel Views
LAN
DC-In
Power Outlet
Serial Port
RS-485/RS-422
Serial Port
RS-232
Reset Button
Terminator
LED Indicators
Page 12
12
Left Side
Power Supply
The XC4134 TCP/IP converter powered by single 9~12V DC(Inner positive/outer negative) power supply and 500mA of current. A suitable power supply adapter is in part of the package. Connect power line to power outlet at right side of XC4134 TCP/IP converter and put adapter into socket. If the power properly is supplied, the PWR” green color LED will blink each time in one second.
LAN Port
The connector for network is usual RJ45. Simply connect to your network switch or Hub. When made the connection, the LAN LED indicator will light. When data traffic occurs on the network, red DATA LED indicator will blink during transferring and receiving data.
Resent Button
Press button to turn on the power and waiting for 3 seconds. Converter will reset to factory default.
DC-In
Power Outlet
LAN
Reset Button
Page 13
13
Right Side
Serial I/O Port of RS-232/RS-422/RS-485
Connect the serial data cable between converter and serial device. Please follow the parameter setup procedures to configure the converter (see the following chapters).
Terminator
There is terminator resistor built in. If switch 1 & 2 are set in ON position, 120 Ohm resistor connected between the signals.
Serial Port
RS-
232 Serial
Port
RS-485/RS
-
422 Terminator
Page 14
14
LED Indicators
SYS Red LED” : Power indicator
(When power on, LED will flash each time in one second.)
LAN Green LED : On-line indicated (When converter is link to LAN then LED will keep on.) 100M- Green LED10M- Red LED
DATA Red LED : Data sending & receiving indicator
(When sending and receiving data to network, LED will blink.)
PWR Green LED : Power indicator
(When power on, LED will flash all the time.)
Page 15
15
Wiring Architecture
RS-232 Wiring Architecture
RS-232 Wiring
Serial Device Converter
RS-232 (RTS / CTS) Wiring
Serial Device Converter
RS-232 (RTS / CTS, DSR / DTR) Wiring
Serial Device Converter
HUB
RX TX
GND
TX TX
GND
RX
TX GND RTS CTS
TX
RX GND CTS RTS
HUB
RX
TX GND RTS CTS DTR DSR
TX
RX GND CTS RTS DSR DTR
HUB
Page 16
16
RS-422 / RS-485 Wiring Architecture
RS-422 Wiring Serial Device Converter
RS-485 Wiring Serial Device Converter
When you finish the steps mentioned above and LED indicators as shown, installed converter correctly. You can use Setup Tool ETM.exe to setup the IP Address.
For proceed setup advanced parameters, please use web browser (IE or Netscape) to continue setting the details.
T+ T­R+ R-
R+
R­ T+
T-
HUB
D+ D-
D+ D-
HUB
Page 17
17
Converter Configuration
Initial IP Configuration
When first setting up your converter, the first thing you should do is to configure the IP address. This chapter introduces the method to configure the device servers IP address. For more details about settings network, please see Web Console Configuration (In the next sub section).
For quickly and easier to start, we suggest you to refer to Quick Installation Guide manual.
The following topics are covered in this chapter:
Device Management Utility
Menu View
Menu Config
Page 18
18
Device Management Utility of ETM
On PC we provide Device Management Utility named ETM.exe which is executable program in Windows 32 bit environments. ETM Setup Tool is used to detect and setup the installed converters. It uses UDP broadcast packets to query and configure converters on the network.
When you activate tool, it will detect existence of installed converters and depict the converters status such as IP address, Subnet Mask, MAC Address and Device ID (see Figure 3.1).
If your computer OS is Windows XP version which means WINDOWS Firewall function in OS activated. However, ETM.exe wouldn’t detect the converter IP address, you have to temperately disable WINDOWS Firewall function. After finishing setting the parameters, you can restart WINDOWS Firewall function.
Due to nature of broadcast UDP packets, ETM has following characteristics:
Broadcast packets arent limited by subnet. Even if IP address of the converters and computer running ETM do not belong to the same subnet, it still works fine.
Broadcast packets can not pass routers. ETM can only used to monitor devices with computer running ETM in the same segment of local area network.
(Figure 3.1)
Page 19
19
Menu View
View -> Refresh F5 Refresh the status. ETM will send another query to get updated information
(see the Figure 3.2). Note: Always run the View-> Refresh after change any data.
(Figure 3.2)
(
(Figure 3.2)
View -> Exit Alt+F4 Exit from the program (see Figure 3.2).
Menu Config
Config -> IP Address (see Figure3.3)
(Figure 3.3)
(Figure3.3)
Page 20
20
Press ENTER or select [IP Address] in the [Config] menu, dialog will be shown (see Figure 3.4). Note: Because ETM uses broadcast UDP packets for sake of security, it allows configuration only when devices setup password is empty.
(Figure 3.4)
(Figure 3.4)
Assign IP Address with the same Subnet Mask of your computer, avoiding any IP conflict with other network devices. When you press [Ok] button, the IP address will be refreshed in 2~3 seconds (see the Figure 3.5).
(Figure 3.5)
Page 21
21
Web Console Configuration
In addition to basic IP address and subnet mask, specific device setting can be set through HTTP protocol with popular browsers, e.g. Internet Explorer, Netscape, etc. Setup converter as easy as surfing on WWW, no special software will be required. Press [Alt] + [Enter] or select [Device
Settings] in [Config] menu, it will open new window in browser to login the device. Alternatively, if IP address of converter already known,
you can connect to converter directly by providing IP address in URL field of browser.
The following topics are covered in this chapter:
Controller Status
Login Page
Field Description
Controller Setup
Setup Page
Field Description
Controller Updated
Factory Default Setting
Page 22
22
Controller Status
The Login Page
Setup the XC4134 TCP/IP converter as easy as surfing on WWW, no special software will be required. Popular Browsers such as IE or Netscape can easily setup process. In the browser URL field, set the IP address of device directly, to enter the Controller Status page, please follow the steps below.
Open your browser. This chapter will use IE as example.
In the browser URL field, type IP address of converter directly and
press ENTER. (The IP address is what you set using the Device Management Utility.)
The Controller Status page will be shown (see Figure 3.6).
(Figure 3.6)
Page 23
23
Field Description
System time elapsed The time elapsed since start of this device in [Day Hour: Minute: Second] format. This information can be useful to identify the reliability of system.
Firmware version Converter firmware identified by date code. This information will be required looking for technical support.
Serial number Converter consisted Type Number (5 digits) and the unique MAC (Media Access Control) address used by Ethernet in hex format 8 digits.
Password (Setup Login) This field is administration password for authentication. Factory is default empty”. However, it is not recommended to leave it empty in field operation. If you could not login, it means you have to key the password. If you do not know the password you can turn off the power and then use any tip point to press Reset button with hold it and turn on the power. The password will be reset to the factory default as empty.
XC4134 TCP/IP converter uses the same password protection mechanism commonly used in Windows NT or UNIX. If there are more than 3 consecutive failures” in the password check during login, the login function will be disabled for 15 minutes. During this 15 minutes period, if you supply correct password, login will not proceed. This prevent intruder from finding the password by computer generated program.
Page 24
24
Controller Setup
The Setup Page Type the correct password in the Password field and click [Login] button in the Controller Status page, then the Controller Setup page will appear (see the Figure 3.7).
Note: If you forget the password or cant login successfully, please contact the manufacturer directly.
(Figure 3.7)
Page 25
25
Field Description
IP Address The IP address of XC4134 TCP/IP converter, separate by 4 digits do not allow conflict with other devices on the network.
If DHCP client mode enabled and there's DHCP server on the network, this field will be assigned by DHCP server automatically.
Subnet mask Subnet mask of the network XC4134 TCP/IP converter has been connected. 255.255.255.0 is usually used for small network and 255.255.0.0 is for larger network and separated by 4 digits'.'
If your IP address provides by ISP or internal network administrator, please inquire of their information and type it correctly.
If DHCP client mode enabled and there's DHCP server on the network, this field will be assigned by DHCP server automatically.
Gateway address Gateway or Router IP address. 'Gateway' is device which connects local network to external network. If you need to communicate with other networks or your device owns a real IP address on the internet, please inquire the information and type it correctly. If there's no gateway on the network, just leave it as 0.0.0.0.
If DHCP client mode enabled and there's DHCP server on the network, this field will be assigned by DHCP server automatically.
Page 26
26
Network link speed The Physical Ethernet of speed links. Auto means the speed is automatically selected by the converter. You can also specify 10Mbps or
100Mbps” to match the speed of HUB.
DHCP client DHCP client mode could be enabled/disabled statues. If DHCP enabled, there should be DHCP server on the network. If DHCP disabled, [IP address], [Subnet mask] and [Gateway address] should be manually assigned.
Socket port of HTTP setup The socket port used to setup conduct the browser. Normally, HTTP protocol use TCP port 80 for communication. If the field changes to 81, the port 80 will be reserved for user's own Web.
To enter the browser setup page, http://x.x.x.x: 81 should be typed for socket port 81 and http://x.x.x.x for socket port 80, where x.x.x.x. is converter IP address.
Socket port of serial I/O
Port number
A socket port assigned for serial port. Its 16-bit number, ranging from 1 to
65535. Because the number below 1000 are used for specific purposes (e.g. 80 for HTTP protocol), we suggest you use the number larger than 1000. Generally the port number 4660 is used for the serial communication. However, you should specify different port number for each serial port.
Page 27
27
Socket type
TCP Server: Protocol TCP, open passive to be connected from TCP clients. TCP Client: Protocol TCP, open active to connect the TCP server. UDP: Protocol UDP, connectionless.
Socket port of digital I/O
Port number
A socket port assigned for the serial port. Its 16-bit number, ranging from 1 to 65535. Because the numbers below 1000 are used for specific purposes (e.g. 80 is for HTTP protocol), we suggest you use the number larger than
1000. Generally the port number 4660 is used for the serial communication. However you should specify different port number for each serial port.
Socket type
TCP Server: Protocol TCP, open passive to be connected from TCP clients. TCP Client: Protocol TCP, open active to connect the TCP server. UDP: Protocol UDP, connectionless
Destination IP address The server IP address and socket port would be connected in TCP Client and UDP mode for IP address of certain server.
Destination socket port The server socket port would be connected in TCP Client and UDP mode for
certain socket port.
Connection The connection can be selected in 2 modes.
Auto function for connect Automatic of converter” Manual function for control program of converter
Page 28
28
TCP socket inactive timeout ( minutes ) We add mechanism - "inactive timeout" to identify whether the socket active or dead. If there is no any data transferred (send / receive) within the timeout defined period (1 to 99 minutes), then it is probably a dead socket and the socket will be closed automatically, thus a new connection can be accepted again. The timeout period can be set by user to fit different kinds of application.
Serial I/O setting baud rate , parity , data bits , stop bits Baud Rate: 300 ~ 115200 bps Parity: None, Even, Odd Data Bits: 7, 8 Stop Bit: 1 or 2
Interface of serial I/O RS232: TxD, RxD for data stream, no flow control. RS232 (RTS/CTS): TxD, RxD for data stream, RTS/CTS to control the flow. RS232 (RTS/CTS, DTR/DSR): TxD, RxD for data stream, RTS/CTS to control the flow. For DTR status socket, DSR socket to control open/close. 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 enabled or disabled. If packet mode enabled, the data input from UART will be deferred until the input buffer is full or the converter detect 10-character packet gap and no more character will arrive. The block waiting time extend to avoid the splitting of the complete packet.
Page 29
29
Device ID
User assigned ID number for the converter. Available ID is 0 ~ 65535.
Report device ID when connected
In TCP mode, if this parameter enabled, every time when the socket connected, XC4134 TCP/IP converter will immediately report its device ID in the following formats:
Serial #1 nnnnnA[LF][CR] Serial #2 nnnnnB[LF][CR] Digital I/O nnnnnC[LF][CR]
The total length is 8 bytes, assigned ID where nnnnn for the 5-digit device by the user; [LF] is decimal 10; [CR] is decimal 13.
Setup password
Administration password is used to login the Controller Setup page. It may be empty or long up to 15 characters.
Page 30
30
Controller Updated
Press Update Button after finishing setting the detailed parameter. The converter will save all parameters into internal non-volatile memory and then reboot (see Figure 3.8). It takes about 5 seconds to complete the whole process and a new login page will be presented (see Figure 3.1).
You can re-login and check if all parameters have been saved correctly. If everything is ok, you can close the browser now.
Note: If domain of the converter different running the browser from computer, the login page wont appear unless the converters Gateway Address has been set correctly.
(Figure 3.8)
Page 31
31
Factory Default Setting
By the chance, if you forget the setup password or setting incorrect the converter inoperable, there are two ways to reset the setting and the following procedures can be used to reset all settings to factory default:
A:
1. Turn off the power of converter.
2. Press the reset button of converter.
3. Turn on the power of converter and wait for 3 seconds.
4. The password will reset to the factory default (empty).
B:
1. Log in the web page.
2. Press the reset button of converter.
3. Select the update button.
4. After Tx & Rx light flashing then unclasp the reset button.
5. The password will reset to the factory default (empty).
Page 32
32
Self-Testing
After completing setting the wiring and parameter, we should verify if setting correct or not. This chapter will introduce how to use single computer to test if the converter behaves well.
The operating system can be Windows 95, 98, ME, XP, 2000. The Hyper Terminal utility should be installed on your PC (see Figure 4.1). It can be found in your Windows installation CD.
The wiring architecture similar to RS-232 Wiring in chapter 2 and Serial Device replaced by PCs COM 1. The same PC also plays roll of Remote Host.
The following topics are covered in this chapter:
Hyper Terminal for TCP/IP WinSock
Hyper Terminal for COM Port
Data Transmission
TCP/IP
IP address:
192.168.0.20
IP address:
192.168.0.10
COM 1
COM Port (RS 232)
Page 33
33
Hyper Terminal for TCP/IP WinSock
Initiate Hyper Terminal from Start Menu in Windows (see Figure 4.1), give terminal name choose an icon and press OK button (see Figure 4.2).
(Figure 4.1)
(Figure 4.2)
Select TCP/IP (Winsock) option at Connect using: field (see Figure 4.3).
Page 34
34
.
(Figure 4.3)
After pressing OK button, Figure 4.4 appears. Enter the converters IP address (e.g. 192.168.0.10) at Host address: field and set socket port number for Serial Port 1 at Port number: field (e.g. 4660). (The Socket type of the Serial Port 1 should be TCP Server.)
(Figure 4.4)
Page 35
35
After pressing OK button, Figure 4.5 appears. If Hyper Terminal connects with converter successfully, the time clock at left lower corner connect of hh:mm:ss will start counting.
(Figure 4.5)
Page 36
36
Hyper Terminal for COM Port
Initiate another Hyper Terminal as COM Port Terminal (in Figure 4.3, select COM 1 or other COM port instead of TCP/IP (Winsock)). To set the COM port Properties will as same as Serial Port of converter.
(Figure 4.3)
Data Transmission
When all steps described above are finished, type any characters on the COM Port Terminal and check if the typed characters are also displayed on the TCP/IP Winsock Terminal. Alternatively, check if the characters typed on the TCP/IP Winsock Terminal are also displayed on the COM Port Terminal. If yes, then all settings are correct and converter can operate properly.
Page 37
37
A
Appppeennddiixx
A
A
FAQ
Q. Why cant ETM.exe detect the converter on network?
A. Please check
1
1
1
.
.. Power properly plugged to the converter (Please refer SYS’ LED).
2
2
2
.
.
.
Network cable properly connected between the converter and Hub (Please
refer LAN LED).
3. Close Windows or antivirus program firewall
(Please refer Device Management Utility of ETM).
Q. Why cant I use IE to setup the converter?
A. Please check if the network domain of PC is the same as converter.
Page 38
38
A
Appppeennddiixx
B
B
Pin outs and Cable Wiring
DC Power outlet
RJ-45 Pin Assignment
RS-232 Pin Assignment
The pin assignment scheme for 9-pin male connector on DTE is as show below.
PIN 1 : DCD PIN 2 : RXD PIN 3 : TXD PIN 4 : DTR PIN 5 : GND PIN 6 : DSR PIN 7 : RTS PIN 8 : CTS PIN 9 : X
Page 39
39
1 2 3 4
RS-422 Pin Assignment
The pin assignment scheme for 4-pin RS-422 is as show below.
PIN 1 : T+ PIN 2 : T- PIN 3 : R+ PIN 4 : R-
RS-485 Pin Assignment
The pin assignment scheme for 4-pin RS-485 is as show below.
PIN 1 : X PIN 2 : X PIN 3 : D+ PIN 4 : D-
1 2 3 4
Loading...