Circutor TPC2RS User Manual

RS232/485 –TCP/IP converter
TPC2RS
(7 70 029)
Ver. 01A- GB
----------- TCP2RS -------------- User’s manual -------------------- page 2/43
2
1: INTRODUCTION..................................................................................................5
1.1 N
ETWORK PROTOCOLS
......................................................................................5
1.1.1 Packing Algorithms................................................................................... 6
1.1.2 Ethernet (MAC) Address............................................................................ 6
1.1.4 Port Number..............................................................................................6
2: INSTALLATION...................................................................................................7
2.1 P
RODUCT DESCRIPTION
.....................................................................................7
2.1.1 Ser ial Int erface..........................................................................................7
2.1.2 Ne twor k Inter f ace......................................................................................7
2.1.3 LEDs.........................................................................................................7
2.1.4 Product Information Label.........................................................................8
2.2 I
NSTALLING THE
TCP2RS.................................................................................. 8
3: GETTING STARTED...........................................................................................9
3.1 D
EFAULT
IP A
DDRESS
.......................................................................................9
3.2 IP A
DDRESS CONFIGURATION
..........................................................................10
3.2.1 Network Port Login (1).............................................................................. 10
3.2.2 Network Port Login (2).............................................................................. 10
3.2.3 Serial Port Login..................................................................................... 11
4: CONFIGURATION............................................................................................. 13
4.1 N
ETWORK CONFIGURATION
.............................................................................13
4.1.1 Using a Web Browser .............................................................................. 13
4.1.2 Using a Telnet Connection.......................................................................14
4.2 S
ERIAL CONFIGURATION
..................................................................................14
4.3 C
ONFIGURATION PARAMETERS
........................................................................14
4.4 S
ERVER CONFIGURATION
.................................................................................16
4.4.1 IP Ad d ress...............................................................................................16
4.4.2 Gateway Address.....................................................................................16
4.4.3 Ne tm a sk .................................................................................................. 16
4.4.4 Telnet Configuration Password................................................................17
4.5 S
ERIAL CHANNEL (PORT
) C
ONFIGURATION
......................................................17
4.5.1 Baud Rate................................................................................................17
4.5.2 Interfac e Mode........................................................................................ 17
4.5.3 Flow Control........................................................................................... 18
4.5.4 Port Number............................................................................................18
4.5.5 Connect Mo d e......................................................................................... 18
4.5.6 Rem o te IP Address ..................................................................................21
4.5.7 Rem o te Port............................................................................................21
4.5.8 Disconnect Mode..................................................................................... 21
----------- TCP2RS -------------- User’s manual -------------------- page 3/43
3
4.5.9 Flush Mode (Buffer Flushing).................................................................. 21
4.5.10 Pa ck Contro l.........................................................................................22
4.5.11 Inactivity (Disconnect) Timeout.............................................................23
4.5.12 Send Char a cters.................................................................................... 23
4.5.13 Telnet Terminal Type.............................................................................23
4.5.14 Channel (Port) Password....................................................................... 23
4.6 F
ACTORY DEFAULT SETTINGS
..........................................................................24
4.7 E
XIT CONFIGURATION MODE
...........................................................................24
5: USING THE TCP2RS..........................................................................................25
5.1 C
OMM PORT REDIRECTOR
................................................................................25
5.1.1 Red irector Setup...................................................................................... 25
5.1.2 TCP2RS Configuration............................................................................ 25
5.2 M
ONITOR MODE
..............................................................................................26
5.2.1 Via the Serial Port................................................................................... 26
5.2.2 Via the Network ....................................................................................... 26
5.2.3 Monitor Mode Commands........................................................................27
A: CONTACT INFORMATION
...............................................................................29
A.1 P
ROBLEM REPORT PROCEDURE
.......................................................................29
A.2 F
ULL CONTACT INFORMATION
........................................................................30
B: B
INARY TO HEXADECIMAL CONVERSION
............................................................31
C: PINOUTS............................................................................................................32
C.1 E
THERNET CONNECTOR
..................................................................................32
C.2 S
ERIAL CONNECTOR
.......................................................................................32
C.3 S
ERIAL AND ETHERNET WIRES
........................................................................33
Standard Serial Wire.......................................................................................... 33
D: UPDATING FIRMWARE.................................................................................. 35
D.1 O
BTAINING FIRMWARE
...................................................................................35
D.2 R
ELOADING FIRMWARE
..................................................................................35
D.2.1 V
IA
TFTP....................................................................................................35
D.2.2 V
IA ANOTHER DEVICE SERVER
....................................................................36
D.2.3 V
IA THE SERIAL PORT
..................................................................................36
E: TECHNICAL SPECIFICATIONS..................................................................... 38
E.1 CPU, M
EMORY CONTROLLERS
........................................................................38
E.2 S
ERIAL INTERFACE
..........................................................................................38
E.3 N
ETWORK INTERFACE
.....................................................................................38
E.4 P
OWER SUPPLY
...............................................................................................38
E.5 D
IMENSIONS
...................................................................................................38
E.6 E
NVIRONMENTAL LIMITATIONS
.......................................................................38
E.6.1 Temperature............................................................................................38
E.6.2 Altitude ................................................................................................... 39
----------- TCP2RS -------------- User’s manual -------------------- page 4/43
4
E.6.3 Relative Humidity....................................................................................39
F: IP ADDRESSING................................................................................................ 40
F.1 C
LASS
A N
ETWORK
.........................................................................................40
F.2 C
LASS
B N
ETWORK
.........................................................................................40
F.3 C
LASS
C N
ETWORK
.........................................................................................41
F.4 C
LASS
D N
ETWORK
.........................................................................................41
F.5 C
LASS
E N
ETWORK
.........................................................................................41
F.6 N
ETWORK ADDRESS
........................................................................................41
F.7 B
ROADCAST ADDRESS
.....................................................................................41
F.8 IP N
ETMASK
...................................................................................................42
F.9 P
RIVATE
IP N
ETWORKS AND TH E INTERNET
.....................................................43
F.10 N
ETWORK
RFCS...........................................................................................43
----------- TCP2RS -------------- User’s manual -------------------- page 5/43
5
1: Introduction
The TCP2 RS Device Server connects seria l d evices to Ethernet networ ks using the IP protocol family (TCP for connection-oriented stream applications and UDP for datagram applications). A few of the different types of serial devices supported are listed below:
!"
Time/Attendance Clocks and Terminals
!"
ATM Machines
!"
CNC Controllers
!"
Data Collection Devices
!"
Universal Power Supply (UPS) Management Units
!"
Telecommunications Equipment
!"
Data Display Devices
!"
Security Alarms and Access Con trol Devices
!"
Handheld Instruments
!"
Modems
The TCP2 RS connect s these devices through a TC P da ta chann el or th rough a Telnet connection to comp u ters or an other Device Serv er. Data grams can be sent by UDP.
1.1 Network Protocols
The TCP2RS uses IP protocol for network communications. The supported protocols are ARP, UDP, TCP, ICMP, Telnet, TFTP, DHCP, HTTP, and SNMP. For connections to the serial port, TC P, UDP or Telnet protocols are used. Fir mwa re updates can be performed using TFTP.
The Internet Protocol (IP ) defines addres s i ng, routing, and data block handling over the network. The Transmi ssi on Control Protocol (TCP) assures tha t no data i s lost or duplicated, and th at everything sent to the connection arrives correct ly at the targ et.
For typical datagram applications in which devices interact with other devices without maintaining a point-to-p oi nt connection, User Datagr am Protocol (UDP) is used.
----------- TCP2RS -------------- User’s manual -------------------- page 6/43
6
1.1.1 Packing Algorithms
Two software select able packing algor ithms define how and when pa ck ets are sent to the network. The standard algorithm is optimized for applications in which the TCP2RS is used in a local environment, allowing for very small delays for single characters while keeping the pack et cou n t low. The al ternate packing algor ithm mini mizes the packet count on the network, and is especially usefu l in applications in a routed Wi de Area Network (WAN). Adjusting parameters in this mode can economize the network data stream.
1.1.2 Ethernet (MAC) Address
The Eth ernet addr es s is also referred to as the hardware address or the MAC address. The first three bytes of the Ethernet Address are fixed. The fourth, fifth, and sixth bytes are unique numbers assigned to each TCP2R S .
Table 1-1:
Sample Ethernet Address
00-20- 4A -1 4- 01-18 or 00: 20 :4A:14:0 1: 18
1.1.3 Internet Protocol (IP) Address
Every devi ce connected to an IP network must have a uniqu e IP ad dress. This ad dress is used to reference the specific TCP2RS. See A p p endix F for more information on IP Addressing.
1.1.4 Port Number
Every TCP connect ion and every UDP datagram is d efined by a desti n ation IP address and a por t n um ber. For example, a Telnet applicati on commonl y uses port number 23. A port number is similar to an extension on a PBX system.
----------- TCP2RS -------------- User’s manual -------------------- page 7/43
7
2: Installation
This chapter describes th e TC P 2 RS and shows h ow to install it on a basic n etwork.
2.1 Produc t Description
2.1.1 Serial Interface
The TCP2RS has a serial port that supports RS-232 and RS-485 serial standards (firmware selectable) up to 115.2 Kbps.
Figure 2-1:
Serial Inte rfa c e
2.1.2 Network Interface
The TCP2 RS’ s contains a reset switch , and an RJ45 ( 1 0Base-T) Ethernet port that supports up to 10 Mbps.
Figure 2-2:
Network Interface
2.1.3 LEDs
Six LED s ar e loca ted on the top of the unit. The following table explains their functions:
A F L R
TxB(RS-232)
(RS-485)
RxA(RS-232)
(RS-485)
GND
----------- TCP2RS -------------- User’s manual -------------------- page 8/43
8
Table 2-1:
TCP2RS LEDs
LED
Function
A (Yellow) Channel 2
If solid, ch annel 2 is idle. If blinking (1 sec cycle), the channel is conne cted
over the network. F (Red) Error and Diagnostic
This LED and LED 2 (Green) together indicate a series of diagnostic patterns.
L (Green) Network Link
Active if good li nk.
R (Green) Channel 1
It di splays the status of channel 1.
If solid, ch annel 1 is idle. If blinking (1 sec cycle), the channel is conne cted
over the network. This LED is also used for diagnostic and error detection
when com bined with LED 1 (Red) RX,TX
Seri al commun ications.
2.1.4 Product Information Label
A product information label is located on the underside of the TCP2RS, and contains the following information about your specific unit:
!"
Serial Number
!"
Product ID (name)
!"
Product Description
!"
Ethernet Addr e s s (als o refer red to as Har dwar e A ddress or MAC A ddres s )
2.2 Installing the TCP2RS
The following diagram shows a properly installed TCP2RS. To install the TCP2 RS, complete the foll owing step s in order. Refer to the n um bers in the
previous figure.
1
Connect a serial device to the TCP2RS.
2
Connect an Ethern et cable to th e 1 0 BAS E-T port.
----------- TCP2RS -------------- User’s manual -------------------- page 9/43
9
3
Supply power to the TCP2RS.
Note:
The required input voltage is 220VAC.
4
Supply power to the serial device.
3: Getting Started
This chapter cover s the required steps to g et the TCP2 RS on-line and work ing. Th ere are two basic methods used to log into the TCP2RS and setup the IP address:
!"
Network Port Login: Make a Telnet connection to the network port (port 9999).
!"
Serial Port Login: Connect a terminal or a P C running a terminal emul ation progr am directl y to the TCP2RS’s serial port.
It is important to consider the following points before logging into and configuring the TCP2RS:
!"
The TCP2 RS’ s I P address mu s t be con figur ed before a network connect i on is available.
!"
Only one person at a time may be logged into the configuration port (port 9999). This eliminates the possibility of several people simultaneously attempting to configu re the TC P 2 RS.
!"
Network port logins cannot be disabled. The system manager will always be able to access t he unit. Howe ver, thi s port can be passw ord protected.
!"
Only one terminal at a time can be connected to the serial port. (In RS-485 mode, the TCP2RS is capable of multidrop connections.)
3.1 Default IP Address
The TCP2RS ships with a default IP address of 192.168.0.25, if you want to use DHCP you have to config IP 0.0.0.0 which automatically enables DHCP within the TCP2RS.
Provided a DHCP server exists on the network, it will supply the TCP2RS with an IP address, gat e way address, and su bnet mask when the TCP2RS boots u p. (If no DHCP server exists, the TCP2RS will respond with a diagnostic error: the red Diagnostic LED
----------- TCP2RS -------------- User’s manual -------------------- page 10/43
10
blinks continuously and the green Status LED blinks five times). This address will not appear in the TCP2RS’s configuration screens; however, if you enter Monitor Mode from the serial port with network connection enabled (see Monitor Mode), and issue the NC command, you will see the TCP2RS’s IP configuration.
3.2 IP Address Configuration
The TCP2 RS’ s I P address mu s t be con figur ed before a network connect i on is availa bl e. If the IP address was not set automatically via DHCP, set it now using a network or serial port login and the setup (configuration) menu.
3.2.1 Network Port Login (1)
The easiest way for setting up the IP direction of the TCP2RS converter is using the little utility called TCP2RSSetup that comes with the converter.
First of all we will write down Ethernet address that comes printed on every device label. This address is unique and different from other network devices. It’s the hardware address that every interface has (something like 00-20-4A-61-05-19).
Into the “Extras” disc that comes with the converter, there is an Utility called TCP2RSSetup. This utility is made for configuring the IP address of the converter. Steps:
1- Star t the program 2- Insert the Hardware address that comes with the converter, and desired IP
address.
3- Click Configurar (This will assign temporarily an IP address to the converter
and opens an internet explor er page for configurin g it) 4- Click Connect and Server Properties 5- Enter desired IP and netmask ans click Update settings
Note: This utility only links IP address with hardware address, but it is not
stored in device’s memory, until we enters into config mode and update this settings.
3.2.2 Network Port Login (2)
The ARP method is ava ilable under UNI X and Windows-based systems. If the TCP2RS has no IP a d dress, it wil l s et its addr es s from the fir st directed TCP /IP packet it r eceives.
1
On a UNIX host, cr eate an entr y in the host’s ARP table using the inten d ed I P
----------- TCP2RS -------------- User’s manual -------------------- page 11/43
11
address and the hardwa re ad dress of t he TCP2RS, which is found on the product label.
Figure 3-1:
ARP on UNIX
arp -s 19 1.12.3.77 00:20:4a:xx:xx:xx
In order for the ARP command to work on Windows, th e ARP table on the PC must have at least on e IP addr e s s defined other th a n its own. If the ARP tabl e is empty, the comma nd w ill return an erro r message. Type
ARP -A
at the DOS command prompt to
verify that there is at least one entry in the ARP table. If the local machine is the only entry, ping another IP address on your network to build a
new entry in the ARP table; the I P address mus t be a h ost ot her than the machin e on which you are workin g. Once ther e is at least on e ad d itional en try in the ARP table, use the following command to ARP an IP address to the TCP2RS:
Figure 3-2:
ARP on Windows
arp -s 19 1.12.3.77 00-20-4a-xx-xx-xx
2
Now open a Telnet connection to port 1. The connection will fail quickly, but the TCP2RS will temporarily change its IP address to the one designated in this step.
Figure 3-3:
telnet 191.12.3.77 1
Telnet to Port 1
3
Finally, open a Telnet connection to port 9999 and set all required parameters.
Figure 3-4:
Telnet to Port 9999
telne t 191.12.3.77 9999
Note:
This IP address is temporary and will revert to the default value when the TCP2RS’s power is reset, unless you log into the TCP2RS and store the changes permanently. Refer to Chapter 4 for instructions on permanently configuring the IP address.
3.2.3 Serial Port Login
1
Connect a console t er minal or PC runn ing a terminal emulation progr am to the TCP2RS’s serial port. The default serial port settings are 9600 baud, 8 bits, no parity, 1 stop bit.
----------- TCP2RS -------------- User’s manual -------------------- page 12/43
12
2
To ent er Setup (con figuration) Mode, c ycle t he TCP2RS’s po wer (power of f and back on) . A ft er power-up the self-test begins and th e red D iag nostic LED starts blin king. You have on e s econd to ent er th ree lowercase "x" char acters.
Note:
The easiest way to enter Setup Mode is to hold down the “x” key at the terminal (or emulation) while powering up the TCP2RS.
3
Select 0 (Server Config urat ion) and follow th e prompts until you get to IP a ddres s.
4
Enter the new IP address.
5
Select 9 to save the configuration and exit Setup Mode. The TCP2RS performs a power reset.
----------- TCP2RS -------------- User’s manual -------------------- page 13/43
13
4: Configuration
Cer t ain parameters must be c onfig ured be fore the TCP2RS can func tion on a net work. The TCP2 RS can be local ly or remotely configured using the following proced u res:
!"
Use a standard Web brows er to access the TCP2RS’s intern al Web p ages and configu re the unit over the net work. Thi s i s the easiest an d preferr ed m ethod.
!"
Use a Telnet connection to con figure the unit over the network.
!"
Use a term inal or terminal emulation program to acces s the seria l p ort locall y.
The TCP2RS’s configuration is stored in nonvolatile memory (NVRam) and is retained withou t power. Th e configuration can be changed at an y time. The TCP2 RS p er forms a reset after the configuration has been changed and stored
.
4.1 Network Configuration
4.1.1 Using a Web Browser
If your TC P 2 RS already has an IP address ( s ee Chapter 3, Getting Started), you can log into it using a standard Web browser with Java enabled.
1
Type the TCP2RS’s IP addr ess into th e Web browser’s URL (Addr ess/ Loca t ion) field.
Once you have connected to the TCP2RS, you will see the device Web Manager interface.
2
Select Connect to login and gain access to the configuration menu.
3
Use th e men u t o n avigate to subp ages where you can confi gure server setting s .
Figure 4-1:
Web Manager Interface
Loading...
+ 30 hidden pages