Page 3
International Headquarters B&B Electronics Mfg. Co. Inc. 707 Dayton Road Ottawa, IL 61350 USA Phone (815) 433-5100 -- General Fax (815) 433-5105 Website: www.bb-elec.com Sales e-mail: orders@bb-elec.com -- Fax (815) 433-5109 Technical Support e-mail: support@bb.elec.com -- Fax (815) 433-5104 European Headquarters B&B Electronics Ltd.
Page 5
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.
Introduction 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.
Introduction ESP904. The LAN becomes transparent to the serial device and the software running on the PC. Heart Beat Connection - selectable protocol ensures reliable 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.
Introduction 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 is also called serial tunneling. In this mode any two serial Paired Mode devices that can communicate with a serial link will be able to communicate using two ESP904s and the LAN.
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.
Obtain appropriate static addresses Netmask Gateway from your Network Administrator (recommended) Set the Console Mode property to RS-232 to match the serial device connected to the ESP904 serial port 1. , and to match Baud Rate Data/Parity/Stop Flow Control...
Introduction Install Virtual COM Ports on PC Step 1: From the Windows Start menu, run the Install Virtual COM Ports utility included with the VLINX software, Step 2: Search for all servers on the network Step 3: Select the first port (4000) and map it to an unused COM port (e.g. Port 15).
Making Hardware Connections Package Checklist is shipped with the following items ESP904 4-port serial server included: ESP904 Serial Server Module Power supply This manual CD-ROM disc with manual, VLINX ESP Manager and Virtual COM Driver software for Windows 98/ME/2000/2003/XP/NT 4.0/Vista ESP904 Connections, Indicators and Reset Switch The ESP904 has: ...
Making Hardware Connections Indicator Lights Light Indication Red - power is applied Power Yellow – 10BaseT Ethernet connection established Link Green – 100BaseTX Ethernet connection established Flashing Green – system is ready Ready Serial (4) When set up as a TCP server: Steady Green - client has made a connection, communications starting Flashing Green –...
Figure 4. Top View of the ESP904 Serial Ports The ESP904 has four serial ports, each configurable through software as RS- 232, 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. Serial Ports Figure 5.
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.
Making Hardware Connections Refer to Appendix B RS-422 connection pin-outs. RS-485 Mode the currently selected serial port is configured as an RS-485 Mode Mode 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.
Making Hardware Connections ESP904 Serial Port Connector Pin-outs Pin-outs for RS-232, RS-422 and RS-485 operation are shown below. DB-9M RS-232 RS-422 RS-485 Signal Name Carrier Detect RXDA (−) Receive Data RXDB (+) Transmit Data TXDB (+) Data B (+) Data Terminal Ready TXDA (−)
Installing the VLINX ESP Software The Windows-based ESP Manager 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 includes: VLINX ESP software ...
Page 24
Installing the VLINX ESP Software Figure 9. The Install Shield Wizard Window Step 2: When the window appears, click VLINX ESP Setup Next Figure 10. VLINX ESP Setup Window Figure 11. The Choose Destination Window Step 3: When appears, click Choose Destination Location Next The installation progress will be shown until complete.
Installing the VLINX ESP Software Figure 12. The Install Shield Wizard Complete Window Step 4: Click when the dialogue Finish Install Shield Wizard Complete appears. When finished, dialogue box will close. Updating an Existing Installation If an older version of the software is already installed, the ESP Manager Modify, repair or remove the program...
Installing the VLINX ESP Software The recommended procedure is to first Remove all installed components Once the software has been removed, the new software. Install Opening the ESP Manager Step 5: If the is not already connected to the network or to the ESP904 Ethernet port on the computer, connect it.
Using ESP Manager ESP Manager software allows: 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 ...
Using ESP Manager Figure 16. Direct Ethernet Connection using a Crossover Cable Use an Ethernet Crossover Cable if connecting directly to a computer LAN card. Step 2: Apply power. The Red Power indicator will light, the Link indicator lights when an Ethernet connection is made, and the Ready indicator will flash.
Using ESP Manager Figure 17. The VLINX ESP Manager Window Software Overview window provides the following information: VLINX ESP Manager (Server, View, Exit, Help) Menus (Firmware Upgrade, Virtual COM Configuration, Server Icons Searching Server, Uninstall Virtual COM, Monitor Port Status) ...
Page 30
Using ESP Manager Searching Server - Searches for Serial Servers on the network and brings back configuration information that will be displayed in the Server Properties window. - Allows virtual COM ports to be uninstalled Uninstall Virtual COM from the window.
Using ESP Manager View Provides three viewing options for the ESP Manager screen: – allows the toolbar (directly under the menu bar) to be Toolbar viewable or hidden – allows the Status Bar (at the bottom of the screen to be Status Bar viewable or hidden ...
Using ESP Manager COM Name - Displays the name of the computer COM port mapped to each Serial Server port. If no computer port has been mapped it displays Not mapped. - The Status indicates the mapped virtual COM port condition. Status Not Connected is shown when a program does not have the...
Using ESP Manager Figure 19. The Search Setup Window Enter the assigned to the ESP904 or click Step 5: IP Address Search all then is used to find ESP904 reachable servers, OK. IP Address units that are not on the same subnet. (Routers on the network will block the standard broadcast used to find servers if Search all is selected.) The user must set an IP address that...
Page 34
Using ESP Manager window is used to configure and store the Server Properties Server configuration settings. Details for setting Properties are shown in the next chapter. Figure 21. The Server Properties Window ESP Manager Navigation: Use the mouse to select the property and parameters or Tab to move to the next property Tab+Shift to move back to previous property Arrows to move between properties or change values or contents of the...
Page 35
Using ESP Manager Figure 23. The Restarting Dialogue Box After eight seconds a dialogue box will ask whether you want to search for all reachable servers again. Figure 24. The Server Search Dialogue Box While the Serial Server is searching for all reachable servers the following dialogue box appears: Figure 25.
Server Properties Configuration The VLINX Serial Server can be configured using any of four different user interfaces: the software, the ESP Manager Web Server Console Mode . The described in this chapter can be changed from Telnet Server Properties any of these user interfaces. Figure 26.
Server Properties Configuration Description of the Server Properties Figure 27. ESP Manager Server Properties Window Server Name This field displays the name that has been assigned to the Serial Server of up to 16 characters can be entered. If more than one Server Name is connected on the LAN it is recommended that a new name Serial Server...
Server Properties Configuration gateway to the ESP904. If a DHCP server is not available on the network the ESP904 will time out after 10 seconds and the default values will remain. A dynamic address assigned by the DHCP server may change if the ESP904 loses the Ethernet connection or power is removed.
Server Properties Configuration Netmask The default LAN netmask is configured for a Class C address. The user may change this. Default is 255.255.255.0 Gateway The Gateway IP address allows users to access the serial server from outside the LAN. MAC Address The MAC address is fixed and cannot be changed.
Server Properties Configuration Data/Parity/Stop Set this to match the data format used by the device connected when the Virtual COM mode is not being used. Flow Control The Flow Control setting must match the requirements of the device connected. Select None when setting ESP Port 1 as RS-485 or 4-wire RS-422. TCP/UDP Protocol Select TCP (Transmission Control Protocol) or UDP (User Datagram Protocol) protocol.
Server Properties Configuration Serial Timeout Default for the Timeout property is 0, or no timeout. Setting Timeout to any value between 1 and 65535 seconds activates it. If Timeout is set to 5 seconds and the is configured as a , the makes a Serial Server...
Server Properties Configuration Force Transmit This field allows the user to set a maximum time limit between transmissions of data. The value set in this field multiplied by 100 ms determines the Force Transmit time. When the elapsed time reaches the time configured in this field, the TCP/IP protocol will pack the data currently in the serial buffer into a packet and send it out the Ethernet port.
Server Properties Configuration – When this mode is selected and the server updated, the RS-232 selected serial port will become an RS-232 serial port on the server. – When this mode is selected and the server updated, the RS-422 selected serial port will become an RS-422 serial port on the server.
Page 45
Server Properties Configuration Figure 30. The Restart Dialogue Box The following dialogue box will appear: Figure 31. The Restarting Dialogue Box After eight seconds a dialogue box will ask whether you want to search for all reachable servers again. Figure 32. The Server Search Dialogue Box While the Serial Server is searching for all reachable servers the following dialogue box appears: Figure 33.
Page 46
Server Properties Configuration After that port has been updated you may want to re-enter Server Properties to verify the changes have taken effect, or to view/change the configuration of other ports. Each port must be configured separately. Saving Configuration Data in Console Mode or Telnet Saving (updating) server properties is done from the screen.
Server Properties Configuration Web Server Interface interface provides the same updating options as Web Server . These are located at the bottom of all three Console Mode Telnet pages. If a field is changed, you must click before Web Server Save leaving that page or the changes will be ignored.
Installing Virtual COM Port feature allows Windows platform software, using standard API Virtual COM Port calls, to be used in an Ethernet application. software adds an to the computer. Install Virtual COM port ESP904 (COM#) port This shows up in the .
Page 50
Installing Virtual COM Port The program searches the LAN for all available ESP901/ESP902/ESP904 Serial Servers. When complete, the window appears and Found Server displays a list of the servers that were found. Figure 37. The Found Server Window Step 3: Select the at the IP Address to be mapped to a virtual Serial Server COM port, then click...
Page 51
Installing Virtual COM Port Figure 39. The Windows Logo Testing Window This XP/Vista feature simply indicates that these drivers have not yet undergone the Microsoft testing procedures required to use the Windows XP/Vista Logo on the packaging. Driver compatibility is not affected. Step 4: Click to proceed with the installation.
Installing Virtual COM Port Matching the ESP904 and Virtual COM Port Settings The settings of the virtual COM ports in the Device Manager and the ESP904 Configuration menu must match. If the settings do not match, the virtual COM ports will not work. If these settings are changed in the Device Manager, it will only affect the operation of the virtual COM port.
Installing Virtual COM Port Figure 41. The VLINX ESP (COM3) Properties Window Step 4: Click the tab. This screen allows the Configuration Port Settings settings to be changed if necessary. Click to keep the Cancel existing settings. Step 5: Click to change the settings.
Page 54
Installing Virtual COM Port Chapter 6 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 B&B Electronics Ltd – Westlink Commercial Park – Oranmore, Galway, Ireland – Ph +353 91-792444 – Fax +353 91-792445 – www.bb-europe.com...
Removing Virtual COM Ports software feature will remove a ESP Manager Uninstall Virtual COM Port mapped COM port in the Device Manager of Windows 2000, 2003, XP and Vista operating systems. It may also be removed in the Device Manager of Windows 98, ME, NT, 2000, 2003, XP and Vista.
Removing Virtual COM Ports Step 3: Click button. The Manager will ask for Uninstall Virtual COM conformation. Click to complete the uninstall procedure. Figure 43. The vcomui Dialogue Box Removing the Virtual COM Port using Device Manager The screen shots were taken from a Windows XP operating system Step 1: From the Windows click: Desktop...
Page 57
Removing Virtual COM Ports Figure 44. The Control Panel Window Step 3: Click Device Manager in the Systems Properties window. In the Device Manager dialogue click the next to Ports (COM LPT) expand. Figure 45. The Device Manager Window Manual Documentation Number: ESP904-4513m Chapter 7 B&B Electronics Mfg Co Inc –...
Page 58
Removing Virtual COM Ports Step 4: Highlight to be removed and click the ESP904 (COM #) Action at the top of window, then click . A confirm Uninstall Device window will appear. Removal Figure 46. Confirm Device Removal Step 5: click to proceed.
PC connection via Port 1 of the ESP904, or using a virtual COM port mapped to Port 1. If connecting directly to a computer serial port, connect a null modem cable between the Computer RS-232 port and the ESP904 Port1 serial port. Preparing the Software Step 1: From the ESP Manager, in the...
Upgrading the ESP904 Firmware Upgrading the Firmware Step 5: Double-click the Firmware Upgrade icon (or click the Server menu Firmware Upgrade Step 6: In the window, click . The Open dialogue box will Upgrade Browse appear. Locate the folder that contains the firmware .hex file. Select the file and click .
Terminal emulation program (typically in Windows) open the computer COM port HyperTerminal connected to the ESP904 Port 1 (via an RS-232 crossover cable). Step 3: In the HyperTerminal window set: Port Settings Baud rate: 9600 Data bits: 8 Parity: None...
Using Console Mode Navigating the Configuration Menus There are six Console Mode screens: Server Network Serial Mode Operation Monitor Configuration Back Space arrow keys can be used to highlight the desired function on the screen list. Pressing moves the cursor to the first field with the current screen. The Enter configuration fields can be changed by pressing and selecting from the...
Using Console Mode Step 5: Once all the changes have been made move to the field and Save select Enter Figure 49. Saving and Restarting the Configuration The restart message will appear. Step 6: Select to save changes. This is necessary to write the settings to the server.
Using the Web Server The Web Server can be used to configure the ESP904 from any web browser software (such as Internet Explorer). Server properties can be set up using two browser pages. See Chapter 5 for details on Server Properties. Setting Server Properties In Internet Explorer type the IP Address of the ESP904 into the address field near the top of the window and press the...
Page 66
Using the Web Server Navigate and change properties as required using the mouse and keyboard. To change serial port properties, click on the left side of the Uart Port browser window. The following page will appear: Figure 51. The Web Server Serial Port Properties Page To change other operational properties, click on the left side of Operation...
Using the Web Server Figure 52. The Web Server Operation Page Click to store changes to the ESP904. Settings for each Port must be Save saved separately. If new property settings are not saved before leaving this page they will not take effect.
Page 68
Using the Web Server Chapter 10 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 B&B Electronics Ltd – Westlink Commercial Park – Oranmore, Galway, Ireland – Ph +353 91-792444 – Fax +353 91-792445 – www.bb-europe.com...
Figure 53. The Run dialogue box The Serial Server must be in RS-232, RS-422 or RS-485 mode before you can Telnet to it and access the configuration screens. If it was last configured in Console mode you may not be able to access it using Telnet. In this case use ESP Manager, Console Mode or Web Server for configuration.
Using Telnet Step 5. The window will open (unless the server is still in Console Telnet mode) and the screen will appear. Server Navigating the Configuration Menu There are six screens: Telnet Server Network Serial Mode Operation keys can be used Monitor Configuration Back Space...
Page 71
Using Telnet Step 5: Once all the changes have been made move to the Save field and select Enter . The restart message will appear. Figure 55. Saving and Restarting the Configuration Step 6: Select to save changes. This is necessary to write the settings to the server.
Flashing green LED when data present (see Ch. Ethernet: Single RJ-45 female Connectors Serial: Four - 9 pin D-type male (DB-9M) DTE (all ports are software selectable as RS-232, 422, or 485) DC Power: Ultra-miniature phone jack (2.5mm), Tip (+), Sleeve (−) RS-232(DTE):...
Page 74
10/100 Mbps Auto-detecting 10 BaseT or 100 Network BaseTX Communications Protocols TCP, IP, ARP, DHCP, Telnet, HTTP, UDP, ICMP Console Mode: Using RS-232 with VT100 emulation Configuration Options Telnet Mode: Using HyperTerminal with VT100 emulation ESP Manager: Using Windows 98/ME/2000/2003/XP/Vista/NT software...
Page 75
ESP904 Technical Data RJ-45 Reset 2.5 mm Tip (+) female 1.1 mm Reset DC - In Ethernet 10/100M ESP904 4-Port Serial Server Software Selectable RS-232/422/485 6.3 mm www.bb-elec.com 6.9 mm Port 4 Port 3 Port 2 Port 1 center hole 4.7 mm...
RS-232 Connections RS-232 Straight-through Cable Connections In the RS-232 mode, the ESP904’s ports are configured as DTEs like a computer. If the device connected to the ESP904 is configured as a DCE use a straight through cable wired as shown below:...
RS-232 Connections RS-232 DTE Loopback Connections Figure 62. Loopback Connections for RS-232 For Transmit and Receive loopback, connect only those lines. When Flow Control setting on the Serial Server is set for RTS/CTS, those lines must be looped. Usually DTR and DSR must also be looped. The Flow Control setting for the program must match the Server settings.
RS-422 Connections ESP904 DB-9 Pin-outs in RS-422 Mode RS-422 DB9M Signal Name Direction RS-422 Receive Data A (−) RXDA (−) Receive Data B (+) RXDB (+) Transmit Data B (+) TXDB (+) Transmit Data A (−) TXDA (−) Signal Ground Clear to Send A (−) CTSA (−) Clear to Send B (+)
Page 82
RS-422 Connections ESP904 pin-out RS-422 in RS-422 mode Device RS-422 Signal Names DB-9 Connections Signal Pin# Receive A (-) RXDA(-) TDA(-) Receive B (+) RXDB(+) TDB(+) Transmit B (+) TXDB(+) RDB(+) Transmit A (-) TXDA(-) RDA(-) Ground Clear to Send A (-) CTSA(-) RTSA(-) Clear to Send B (+)
Page 83
RS-422 Connections Figure 65. Loopback Connections for RS-422 The RS-485 Connections are half duplex, either Receive or Transmit, so another half duplex device must be used to check operation. Figure 66. RS-422 Connection with No Flow Control Manual Documentation Number: ESP904-4513m Appendix B B&B Electronics Mfg Co Inc –...
RS-485 Connections ESP904 DB-9 Pin-out in RS-485 Mode RS-485 Direction RS-485 DB9M Signal Name Data B (+) In/Out DATA B (+) Data A (−) In/Out DATA A (−) Signal Ground Figure 67. DB-9 Pin-out in RS-485 Mode Some RS-485 devices are marked opposite the RS-485 standard, which defines the Data B line as positive relative to Data A during a Mark state before enabling the transmitter, and after transmitting before tri-stating.
Page 86
RS-485 Connections To connect 4-Wire RS-485 devices, the RS-422 Mode can be used provided the ESP904 will be connected as a master in a single master system. If using multiple masters, the ESP904 cannot be used, as it does not tri-state the transmitter in RS-422 mode.
Network Connections Standard Ethernet Cable RJ-45 Pin-out RJ-45 Pin Signal Wire Color RJ-45 Pin White-Green Green White-Orange Not used Blue Not used White-Blue Orange Not used White-Brown Not used Brown Figure 69. Pin-out for a Standard Ethernet Cable Manual Documentation Number: ESP904-4513m Appendix D B&B Electronics Mfg Co Inc –...
Network Connections Crossover Ethernet Cable RJ-45 Pin-out RJ-45 Pin Signal Wire Color RJ-45 Pin White-Green Green White-Orange Not used Blue Not used White-Blue Orange Not used White-Brown Not used Brown Figure 70. Pin-out for a Crossover Ethernet Cable Appendix D Manual Documentation Number: ESP904-4513m B&B Electronics Mfg Co Inc –...
Page 89
International Headquarters B&B Electronics Mfg. Co. Inc. 707 Dayton Road Ottawa, IL 61350 USA Phone (815) 433-5100 -- General Fax (815) 433-5105 Website: www.bb-elec.com Sales e-mail: orders@bb-elec.com -- Fax (815) 433-5109 Technical Support e-mail: support@bb.elec.com -- Fax (815) 433-5104 European Headquarters B&B Electronics Ltd.
Need help?
Do you have a question about the RS-232 and is the answer not in the manual?
Questions and answers