2008 B&B Electronics. No part of this publication may be reproduced or transmitted in any form or by any means, electronic or
mechanical, including photography, recording, or any information storage and retrieval system without written consent. Information
in this manual is subject to change without notice, and does not represent a commitment on the part of B&B Electronics.
B&B Electronics shall not be liable for incidental or consequential damages resulting from the furnishing, performance, or use of
this manual.
All brand names used in this manual are the registered trademarks of their respective owners. The use of trademarks or other
designations in this publication is for reference purposes only and does not constitute an endorsement by the trademark holder.
Manual Documentation Number: ESP904-4513m
B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 – www.bb-elec.com
The VLINX Model ESP904 Quad-Port Ethernet Serial Server provides
Ethernet to Serial connections for RS-232, RS-422 or RS-485 devices. The
serial ports can be accessed over a LAN/WAN using Direct IP Mode, Virtual
COM Port, or Paired Mode connections. The 10/100 Mbps Ethernet
connection auto-selects 10BaseT or 100BaseTX and indicates the type of
connection with a bi-color link light.
Features
4 multi-interface serial ports - RS-232, RS-422, RS-485; software
selectable connections
10/100 Mbps Ethernet with Auto Selection
LAN and WAN Communications
TCP or UDP Client or Server operation - configurable
Software Support - Windows 98/ME/2000/2003/NT 4.0/XP and Vista
Firmware Upload for future revisions/upgrades
Configuration of Ethernet and serial port settings can be accomplished
using any of four methods:
Virtual COM Driver Software for Windows - installs a virtual COM
port, viewable in the Windows Device Manager under Ports (COM &
LPT). Virtual COM port provides access to any of the ports on the
ESP904, like any other serial port (legacy, PCI, USB or PCMCIA) on
the computer. Any program running on the computer and using
Windows-based COM ports can access the serial devices attached to the
oVLINX ESP Manager Software for Windows allows
configuration via a network connection or directly from the
Ethernet port of a computer (using an Ethernet crossover cable).
oWeb Server allows configuration via the network using any
web browser.
oTelnet allows configuration via the network by accessing the
setup configuration menu.
oConsole Mode allows configuration through an RS-232 serial
port in using a VT100 Terminal Emulation program and an RS232 crossover cable.
communications in Virtual COM Port or Paired Connection modes. This
feature restores the connections if communications are temporarily lost
at either end due to loss of power or the Ethernet connection.
Communication Modes
The ESP904 enables communication with serial devices over a LAN or
WAN. Serial devices no longer are limited to a physical connection to the PC
COM port. They can be installed anywhere on the LAN using TCP/IP or
UDP/IP communications. This allows traditional Windows PC software
access to serial devices anywhere on the LAN/WAN network.
Direct IP Mode
Direct IP connections allow applications using TCP/IP or UDP/IP socket
programs to communicate with the asynchronous serial ports on the ESP904.
In this type of application the ESP904 is configured as a TCP or UDP server.
The socket program running on the PC establishes a communication
connection with the ESP904. The data is sent directly to and from the serial
port on the server. When using UDP protocol the server can be configured to
broadcast data to and receive data from multiple IP addresses.
Virtual COM Mode
Use Install Virtual COM to add a driver, to provide a virtual COM port on
the computer. The new COM port shows up in the Device Manager.
Windows programs using standard Windows API calls are able to interface
to virtual COM ports. When a program on the PC opens the new COM port,
it communicates with the remote serial device connected to one of the ports
on the ESP904.
After connection, the LAN is transparent to the program and serial device.
Applications are able to work just as if the serial device is connected directly
to a physical COM port on the computer. The virtual COM port software
converts the application’s data into IP packets, sends it across the network to
the ESP904, which converts the IP packet back to serial data and sends the
data out a serial port located on the ESP904.
To use this mode, the ESP904 must be set to either TCP/server or
UDP/server with a designated communication port number. The virtual COM
driver is the TCP or UDP client.
Paired Mode
Paired Mode is also called serial tunneling. In this mode any two serial
devices that can communicate with a serial link will be able to communicate
using two ESP904s and the LAN.
Two ESP904s are connected to a network, one configured as a TCP or UDP
client and the other as a TCP/UDP server. When setting up the server the
remote IP address section must contain the address of the client. This will
allow the client’s IP address to pass the IP address-filtering feature of the
server. Conversely, the Remote IP address of the client must contain the
server’s IP address. Both communication port numbers must be the same.
Heart Beat
The Heart Beat protocol connection provides a reliable communications
connection in Virtual COM Port Mode or withPaired Connection Mode.
This feature restores the connection if communications are temporarily lost at
either end due to loss of power or Ethernet connection.
Without this feature a device that loses a connection and stops
communicating would not be able to reconnect without human intervention.
A TCP data connection can be lost when there is a power failure or
temporary loss of an Ethernet connection on either the client or server. If a
loss occurs the Heart Beat feature will try to reconnect the TCP data
connection every five seconds until communications is established again. The
Heart Beat feature is available for use in Virtual COM PortMode and Paired
Connection Mode. This is not available when using a UDP application.
For descriptive purposes this Quick Start Guide considers a typical
configuration consisting of a PC connected via an Ethernet LAN to an
ESP904 Serial Server connected to the RS-232 port of a serial device.
Hardware Setup
Figure 1. Quick Start Hardware Setup
Step 1: Connect the ESP904 to the network using a standard network cable
Step 2: Connect the ESP904 to the RS-232 serial device.
If the serial device is configured as a DCE use a straight-through serial cable. If
the serial device is configured as a DTE use a crossover (null modem) cable.
Step 3: Apply power to the Serial Server.
Software Installation
Using the CD included with the ESP904, install the VLINX ESP Manager
software on the configuring computer.
Yellow – 10BaseT Ethernet connection established
Green – 100BaseTX Ethernet connection established
Ready
Flashing Green – system is ready
Serial (4)
When set up as a TCP server:
Steady Green - client has made a connection,
communications starting
Flashing Green – data present at serial port
Light off – connection closed
When setup in UDP mode:
Steady Green (all ports)
Flashing Green – data is being transmitted
NNoottee::
Indicator Lights
Ethernet Connector
The ESP904 has a standard RJ-45 receptacle mounted in the top edge of the
chassis. The ESP904 can be connected to an Ethernet hub, switch, or wall
plate using a standard straight-through RJ-45 (male) Ethernet cable. To
connect directly to an RJ45 Ethernet port on a PC or laptop a crossover
Ethernet cable must be used.
Refer to Appendix D for details on Network Cables
Power Connector
Plug the ultra-miniature phone plug from the included power supply into the
power jack and then plug the supply in. When power is applied the Red
power light will illuminate. The tip of the power plug is positive; the sleeve
is negative.
Reset Button
This switch resets the unit, similar to the effect of removing/applying power.
The Reset switch is recessed to avoid accidental operation. To reset the unit,
insert a small plastic tool, press lightly and hold for 3 seconds. The Link and
Ready lights will go out and then come back on.
B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 – www.bb-elec.com
The ESP904 has four serial ports, each configurable through software as RS232, RS-422 or RS-485 interfaces. When in RS-232 mode the interfaces are
configured as DTEs (Data Terminal Equipment).The connectors are DB-9M.
Figure 5. The ESP904 Serial Port Connectors
Serial Server/Port Operational Modes
Using the ESP Manager the ESP904 Serial Server can be put into Console
Mode, Default Mode or Upgrade Mode. The serial ports can be configured
for RS-232, RS-422 or RS-485 operation.
Default Mode
When Default Mode is selected and the Server Properties are Updated
(Saved) all the configuration settings return to their default values. The
default settings for the ESP904 serial ports are: Console Mode for Port 1;
RS-232 mode for Ports 2, 3 and 4.
Refer to Chapter 5 for details on Server Configuration settings Refer to Chapter
12 for Serial Server default parameters.
In Console Mode the ESP904 Configuration Menu can be accessed from a
PC by connecting its RS-232 serial port to Port 1. Since the PC is a DTE
device, and the ESP904 serial ports are configured as DTEs (with DB-9M
connectors), a null modem crossover cable must be used.
In Console Mode the default serial port settings are: 9600 baud, 8 data bits,
No parity, and 1 stop bit. From Windows, HyperTerminal with VT100
terminal emulation can be used for Console Mode configuration.
Upgrade Mode
In Upgrade Mode firmware can be uploaded from a PC via its serial port to
the ESP904 Port 1, using RS-232. Upgrading also can be via the network
connection, using the ESP Manager software and a virtual COM port mapped
to the ESP904 Port 1.
RS-232 Mode
In RS-232 Mode the currently selected serial port is configured as an RS-232
interface supporting eight RS-232 signal lines plus Signal Ground and is
configured as DTE like a computer. Signals are single ended and referenced
to Ground. To use handshaking, Flow Control must be set to RTS/CTS
during Configuration.
RS-422 Mode
Refer to Chapter 9 for details on Console Mode
Refer to Chapter 8 for details on Upgrade Mode
Refer to Appendix A for RS-232 connection pin-outs.
In RS-422 Mode the currently selected serial port is configured as an RS-422
interface supporting four RS-422 signal channels with full duplex operation
for Receive, Transmit, RTS (Request To Send) and CTS (Clear To Send).
The data lines are differential pairs (A & B) in which the B lines positive
relative to the A lines in the idle (mark) state. Ground provides a common
mode reference. To use handshaking Flow Control must be set to RTS/CTS
during configuration.
In RS-485 ModeMode the currently selected serial port is configured as an
RS-485 interface supporting transmit (TX) and receive (RX) signal channels
using 2-wire, half-duplex operation. The data lines are differential with the
Data B line positive relative to Data A in the idle (mark) state. Ground
provides a common mode reference.
RS-485 Receiver Biasing can be implemented from the ESP904 if the
network does not supply it. Remove the two side-cover screws of the
ESP904, slide the cover off and re-position the bias jumpers (shown open in
the figure below) to enable biasing (shorting).
Refer to Appendix B RS-422 connection pin-outs.
Refer to Appendix C for RS-485 connection pin-outs.
Figure 6. Internal Setting to Select RS-485 Bias
(For more information on RS-485 Receiver Biasing, see B&B Electronics RS422/485 Application Note available at www.bb-elec.com)
The Windows-based ESP Manager and Virtual COM Port software makes
configuration fast and easy. If using Windows, installing the ESP Manager
software and setting up virtual COM ports to configure the ESP904 is
recommended.
Software Installation
The VLINX ESP software includes:
ESP Manager
Install Virtual COM Ports
Uninstall Virtual COM Ports
Automatic Installation
Step 1a: Inserting the VLINX CD in the CD-ROM should automatically
launch the Install Shield Wizard.
Manual Installation
Step 1b: To manually start the software installation, from the Windows
Destop, click Start button. At the Run command line type
D:start.exe. Then select OK. (D: is the drive letter for the CD
ROM.)
Figure 8. The Run Dialogue Box
The Install Shield Wizard window will be displayed.
The recommended procedure is to Remove all installed components first
Once the software has been removed, Install the new software.
Opening the ESP Manager
Step 5: If the ESP904 is not already connected to the network or to the
Ethernet port on the computer, connect it. Apply power.
The Power indicator should light red, the Link light should indicate
which type of Ethernet connection has been made and the Ready
LED will flash indicating configuration can begin.
Step 6: Start the ESP Manager software. From the Windows Desktop, click:
Searching for servers connected to the network
Displaying and changing the configuration of those servers
Installing virtual COM ports on a computer
Displaying and configuring virtual COM ports
Uninstalling virtual COM ports on a computer
Upgrading the ESP904 firmware
Monitoring Port Status
Saving and Loading Configuration Files
Hardware Setup
Step 1: Connect the ESP904 to the LAN or to a computer Ethernet port.