Cobox Dinrail: Installation Guide
Cobox Dinrail: Installation Guide
Installation Guide
Contents
INTRODUCTION
DINRAIL’S INTERFACES
SERIAL INTERFACE..........................................................................................2-1
NETWORK INTERFACE .....................................................................................2-1
HARDWARE ADDRESS .....................................................................................2-2
POWER REQUIREMENTS...................................................................................2-2
3 NETWORK PROTOCOLS
PACKING A LGORITHM .....................................................................................3-1
IP ADDRESS....................................................................................................3-1
PORT NUMBER ................................................................................................3-1
4 CONFIGURATION
NETWORK CONFIGURATION ............................................................................4-1
DINRAIL’S IP ADDRESS ..................................................................................4-1
Default IP Address .....................................................................................4-1
Assigning a New IP Address.......................................................................4-2
SERIAL CONFIGURATION .................................................................................4-3
CONFIGURATION PARAMETERS........................................................................4-3
BASIC PARAMETERS........................................................................................4-4
IP Address..................................................................................................4-4
Gateway IP Address ...................................................................................4-4
Netmask ...................................................................................................4-4
Telnet Configuration Password ...................................................................4-4
CHANNEL SPECIFIC PARAMETERS ....................................................................4-4
Baud Rate...................................................................................................4-4
Interface Mode ...........................................................................................4-5
Flow Control ..............................................................................................4-5
Port Number...............................................................................................4-6
Remote IP Address .....................................................................................4-6
Remote TCP Port .......................................................................................4-6
Connect Mode ............................................................................................4-7
Disconnect Mode........................................................................................4-9
Force Telnet Mode .....................................................................................4-9
Buffer Flushing ........................................................................................4-10
Inactivity Timeout ....................................................................................4-10
Pack Control.............................................................................................4-10
Send Characters........................................................................................4-11
Telnet Terminal Type 4-12
EXIT CONFIGURATION MODE ........................................................................4-12
FACTORY DEFAULT SETTINGS .......................................................................4-12
COM PORT REDIRECTOR ..............................................................................4-12
Installing the Redirector from the Lantronix CD........................................4-12
Redirector Setup for DinRail.....................................................................4-13
DinRail Configuration ..............................................................................4-13
5 MONITOR MODE AND FIRMWARE UPGRADE
MONITOR COMMANDS ....................................................................................5-1
FIRMWARE DOWNLOAD USING SERIAL PORT ...................................................5-2
FIRMWARE DISTRIBUTION ...............................................................................5-3
FIRMWARE DOWNLOAD USING A NETWORK HOST ...........................................5-4
6 SERIAL LINE INTERFACES
RJ45 CONNECTOR PINOUTS (RS-232)..............................................................6-1
SCREW BLOCK CONNECTOR PINOUTS AND OTHER COMPONENTS......................6-2
7 TECHNICAL DATA
CPU, MEMORY CONTROLLERS ........................................................................7-1
SERIAL INTERFACE..........................................................................................7-1
NETWORK INTERFACE .....................................................................................7-1
POWER SUPPLY (NOT INCLUDED) .....................................................................7-1
POWER CONSUMPTION ....................................................................................7-1
OPERATING TEMPERATURE .............................................................................7-1
LEDS .............................................................................................................7-2
CASE ..............................................................................................................7-2
DIMENSIONS ...................................................................................................7-2
WEIGHT..........................................................................................................7-2
WARRANTY
DECLARATIONS OF CONFORMITY
Introduction
1 Introduction
The CoBox DinRail Universal Thin Server brings network connectivity to
factory floors. It is designed to connect industrial devices with serial
interfaces to an Ethernet network using the TCP/IP protocol family (TCP
for transparent stream- and UDP for datagram applications). Various
devices can be interfaced, for example:
• terminals
• time/attendance and data collection devices
• CNC controllers
• industrial robots
• data display units
• instruments
Figure 1-1
RS-485 Multidrop with CoBox DinRail
1-1
DinRail Interfaces
2 DinRail’s Interfaces
2.1 Serial Interface
CoBox DinRail has RJ45 and screw block serial ports. The RJ45 port only
supports RS232, whereas the screw block port supports RS232 and
RS485/422. By setting the switch located on the face of the DinRail, RS232
or RS485/422 can be selected.
NOTE: CoBox DinRail is a single serial port device, meaning that only one port
can be used at a time. In the configuration menu, channel one refers to
either one of the ports being used. Channel two should be disregarded
(this channel applies to another type of product.)
Figure 2-1
The CoBox DinRail Front Panel
2-2
Network Protocols
3 Network Protocols
The DinRail product uses TCP/IP protocols for network communication.
The supported standards are: ARP, UDP, TCP, ICMP, Telnet, TFTP,
DHCP, and SNMP. For transparent connections, TCP/IP (binary stream) or
Telnet protocols are used. Firmware upgrades can be made with the TFTP
protocol.
The IP protocol defines addressing, routing and data block handling over
the network. The TCP (transmission control protocol) assures that no data is
lost or duplicated, and that everything sent into the connection on one side
arrives at the target exactly as it was sent.
3.2 IP Address
Every active device connected to the TCP/IP network must have a unique
IP address. This IP address is used to reference a specific device, for
example, to build a connection to DinRail’s serial port. See Appendix A for
a complete description of IP Addressing.
3-1
Network Protocols
In the DinRail, a port number can be configured on the channel (port). The
DinRail uses this port number for outgoing messages and incoming
connections or UDP datagrams, which are addressed to its port number.
Port 9999 (decimal) is used for remote configuration.
3-2
Configuration
4 Configuration
The DinRail can be configured using remote or local methods. Either use an
ASCII terminal or a terminal emulation program to locally access the serial
port, or use a Telnet connection to configure the unit over the network.
If you know the assigned IP address you can establish a Telnet connection to
port 9999. Under Windows 95/98/NT, open an MS-DOS command window and
type the command “telnet x.x.x.x 9999”, where x.x.x.x is an IP address already
configured in the DinRail and 9999 is the desired TCP/IP port. Make sure you
put a space between the x.x.x.x and 9999.
NOTE: Using the ARP command (see below) you can always override the IP
address given to the DinRail by your DHCP server.
4-1
Configuration
Set a static ARP with the desired IP address using the hardware address of
the CoBox DinRail, which is printed on the product label. The following
example shows the use of ARP in Win95/98/NT, (from the DOS prompt)
and UNIX environments when the hardware address of the CoBox DinRail
is 00-20-4A-01-64-0B.
NOTE: In order for the ARP command to work in Windows, the ARP table on
the PC must have at least one IP address defined other than its own.
Type “ARP –A” at the DOS command prompt to verify that there is at
least one entry in the ARP table. If there is no other entry beside the
local machine, ping another IP machine on your network to build the
ARP table. This has to be a host other than the machine on which you
are working. Once there is at least one entry in the ARP table, use the
following commands to ARP an IP address to the CoBox DinRail.
4-2
Configuration
Figure 4-1
DinRail Configuration Screen
4-3
Configuration
If the DinRail is given an address that is already in use it will not connect to
the network.
4.5.2 Gateway IP Address
The router/gateway address is needed to communicate to other LAN
segments. The default gateway must be set to the IP address of the router
that connects these segments. This address must be within the local
network.
4.5.3 Netmask
A netmask defines how many bits from the IP address are to be taken as the
network section and how many bits are to be taken as the host section (re
class A: 8/24 (net/host), class B: 16/16, class C: 24/8 bits). If set to 0, the
standard netmask for the actual IP address is used. Appendix A covers the
calculation of the right value in detail.
The DinRail prompts for the number of host bits, and then calculates the
netmask. It is shown in standard format “255.255.xxx.xxx” when saved
parameters are displayed.
4.5.4 Telnet Configuration Password
The telnet configuration password can be set to disable unauthorized access
to the setup menu via a Telnet connection to port 9999. To access the setup
menu through the serial port, it is not necessary to enter the password.
4-4
Configuration
Function 7 6 5 4 3 2 1 0
RS-232C 0 0
RS-422/485 0 1
RS-485 2-wire 1 1
7 Bit 1 0
8 Bit 1 1
No Parity 0 0
Even Parity 1 1
Odd Parity 0 1
1 Stop bit 0 1
2 Stop bit 1 1
Figure 4-2
Interface Mode Options
Common settings:
RS-232C, 8-bit, No Parity, 1 stop = 0x4C
RS-232C, 7-bit, Even Parity, 1 stop = 0x78
RS-485 2-Wire, 8-bit, No Parity, 1 stop = 0x4F
RS-422, 8-bit, Odd Parity, 2 stop = 0xDD
No flow control: 00
4-5
Configuration
If the UDP Datagram mode is selected, the port number is used as the UDP
source port number for outgoing datagrams; datagrams sent to the DinRail
with this port number are received to this channel.
This port number is also used as the UDP destination port number for
transmitted datagrams, provided the DinRail is used in UDP mode.
4-6
Configuration
Function 7 6 5 4 3 2 1 0
Connection Acceptance
-never accept incoming 0 0 0
-accept incoming with active DTR only 0 1 0
-accept unconditional (if not busy) 1 1 0
Response on Serial to Connect
-nothing (quiet) 0
-character response: (C=conn., D=disc., 1
N=not available/unreachable)
Active Connection Startup
-no active connection startup 0 0 0 0
-start connection with any character on 0 0 0 1
the serial line
-start connection with active-going 0 0 1 0
DTR line
-start connection with CR (0x0d) only 0 0 1 1
-manual connection startup 0 1 0 0
(‘C’ + address)
Datagram Mode 1 1 0 0
Modem Emulation Mode 0 1 1 0
Figure 4-3
Connect Mode Options
4-7
Configuration
4-8
Configuration
ATD0.0.0.0
If a remote IP address and port number are defined within the DinRail, this
command will force the DinRail into “monitor mode”.
ATDx.x.x.x
Without a port number, this will make a connection to the given IP address
(x.x.x.x) and the remote port number configured within the DinRail.
All other 'AT' commands with “connect mode” set to 0x16 will
acknowledge with an OK, but will not be acted upon.
If the DinRail is in modem emulation mode and the serial port is idle, the
DinRail can still accept network TCP connections to the serial ports if the
“connect mode” is set to 0xC6 (with no echo) or 0xD6 (with echo).
4-9
Configuration
Function 7 6 5 4 3 2 1 0
Clear input buffer (line to network)
- with active connection: 1
- with passive connection: 1
- at time of disconnect: 1
Clear output buffer (network to line)
- with active connection: 1
- with passive connection: 1
- at time of disconnect: 1
Alternate packing algorithm 1
Figure 4-4
Buffer Flushing Options
4-10
Configuration
Function 7 6 5 4 3 2 1 0
Idle time to force transmit: 12ms (avg.) 0 0
Idle time to force transmit: 52ms (avg.) 0 1
Idle time to force transmit: 250ms (avg.) 1 0
Idle time to force transmit: 5 secs (!) 1 1
No trailing chars after sendchar(s) 0 0
One trailing char after sendchar(s) 0 1
Two trailing chars after sendchar(s) 1 0
Sendchars define 2-Byte sequence 1
Send immediate after Sendchar 1
Figure 4-5
Pack Control Options
“Idle time to force transmit” defines the time period after which all
accumulated characters are sent, regardless of the recognition of send
characters.
If bit 5 is not set, any other characters already in the serial buffer will be
included in the transmission after a “transmit” condition is found. If the bit
is set, the DinRail will immediately send after recognizing the transmit
condition (sendchar or timeout).
NOTE: A transmission might occur if status information has to be exchanged or
an acknowledgement has to be sent.
If the terminal type option is enabled, DinRail also reacts to the EOR (end
of record) and binary options, which can be used for applications like
terminal emulation to IBM hosts.
If you are already familiar with installing and using the Redirector
application with other Lantronix products, please skip down to the
'Redirector setup for DinRail' section below.
The Redirector software can also be downloaded from our FTP site at
ftp://ftp.lantronix.com/pub/redirect/win_32
When you get back to the 'Change Setup' screen, select option 1 to
configure the serial port. Follow the prompts according to section 4.6,
Channel Specific Parameters, until you get to the “Port Number” field. The
port number needs to be 11000 higher than the “TCPPort” selected in the
Redirector setup. For example, if you chose 3005 in the Redirector setup
then the DinRail port number will be 14005. Follow the rest of the prompts
to configure the DinRail to communicate with your serial device. After you
complete the serial setup, select option 9 to save and exit.
You are now ready to use the Redirector to communicate with your serial
device connected to the DinRail.
When using the Redirector, unlike the Lantronix ETS, MSS, and LRS
products, the CoBox DinRail does not change its serial port configuration to
match the PC application's serial settings. You have to make sure that the
4-13
Configuration
Both RJ45 and screw block ports can be configured for, and used by the
Redirector one at a time, but not by the same redirected COM port.
4-14
Monitor Mode and Firmware Upgrade
To enter the monitor mode using a Telnet connection, after the Telnet
session is established, you will see the following messages:
At this point, type M (upper case.) If you see 0> prompt, it means that you
have entered the monitor mode successfully.
All commands must be given in capital letters; only blanks (spaces) are
accepted between parameters.
5-1
Monitor Mode and Firmware Upgrade
SI194.39.78.234:146.138.146.138
IP address = 194.39.78.234
0 OK, no error
1 No answer from remote device
2 Cannot reach remote device or does not answer
8 Wrong parameter(s)
9 Invalid command
5-2
Monitor Mode and Firmware Upgrade
The following figure displays a typical screen while programming the new
firmware. After a complete reprogramming, the DinRail restarts.
Figure 5-1
HyperTerminal Dialog Box
5-3
Monitor Mode and Firmware Upgrade
Figure 5-2
A TFTP Dialog Box
5-4
Serial Line Interfaces
Function
Pin Direction Function
1 Not Connected None
2 Hard-wired output DSR Data Set Ready
3 To DinRail RXD Received data
4 From DinRail TXD Transmitted Data
5 Ground
6 To DinRail CTS Clear to Send
7 From DinRail RTS Ready to Send
8 Not Connected None
Figure 6-1
Serial RJ45 (RS-232) Pinout Configuration
NOTE: Pin number 1 of the RJ45 serial connector is the first pin from the
bottom.
6-1
Serial Line Interfaces
Figure 6-2
Front Panel Layout
6-2
Serial Line Interfaces
Figure 6-5
Front Panel Components
NOTE: For RS-485 2-wire functionality, pins 1 & 4 and 2 & 3 of the screw
terminals must be connected together.
6-3
Technical Data
7 Technical Data
CPU, Memory Controllers
V.40 CPU, 10MHz clock
Serial Interface
RJ45 connector for RS232 interface
Network Interface
Integrated 10BaseT port (RJ45 connector)
Power Consumption
Maximum 3 Watt
Operating Temperature
0-60 degrees C (32-140 degrees F)
7-1
Technical Data
LEDs
Four LEDs for Ethernet channel, link, activities, and error.
Case
Plastic case for DIN rail mounting
Dimensions
90 x 60 x 36 mm
Weight
Approx. 150g (0.33 lb)
7-2
Appendix A
Example: 192.2.1.123
Only 127 different networks of this class exist. These have a very large
number of potential connected devices (up to 16,777,216)
These networks are used for large company networks. Every network can
consist of up to 65,534 devices.
A-1
Appendix A
These network addresses are most common and are often used in small
companies. These networks can consist of a maximum number of 254 hosts.
The addresses 240.x.x.x. - 254.x.x.x are defined as "class E" and are
reserved addresses.
Network and Broadcast addresses must not be used as a host address (e.g.
192.168.0.0 identifies the entire network, 192.168.0.255 identifies the
broadcast address).
A.7 IP Netmask
The netmask is used to divide the IP address differently from the standard
defined by the classes A, B, C. A netmask defines how many bits from the
IP address are to be taken as the network section and how many bits are to
be taken as the host section. When the number of host bits is entered, the
CoBox DinRail calculates the netmask. The netmask is displayed in
standard decimal-dot notation.
Figure A-1
Standard IP Network Netmask
A-2
Appendix A
Figure A-2
Netmask Examples
If you are not connected to the Internet and have plans to connect, or you
are connected to the Internet and want to operate your CoBox DinRails on
an Intranet you should use one of the sub-networks below. These network
numbers have been reserved for such networks. If you have any questions
about IP assignment consult your Network Administrator.
Class A 10.x.x.x
Class B 172.16.x.x
Class C 192.168.0.x
A-3
Appendix A
A-4
Appendix B
Figure B-1
B-1
Warranty
Warranty Statement
Lantronix warrants for a period of FIVE YEARS from the date of shipment
that each CoBox DinRail server supplied shall be free from defects in
material and workmanship. During this period, if the customer experiences
difficulties with a product and is unable to resolve the problem by phone
with Lantronix Technical Support, a Return Material Authorization (RMA)
will be issued. Following receipt of a RMA number, the customer is
responsible for returning the product to Lantronix, freight prepaid.
Lantronix, upon verification of warranty will, at its option, repair or replace
the product in question, and return it to the customer freight prepaid. No
services are handled at the customer's site under this warranty.
Lantronix warrants software for a period of sixty (60) days from the date of
shipment that each software package supplied shall be free from defects and
shall operate according to Lantronix specifications. Any software revisions
required hereunder cover supply of distribution media only and do not
cover, or include, any installation. The customer is responsible for return of
media to Lantronix and Lantronix for freight associated with replacement
media being returned to the customer.