![background image](http://html1.mh-extra.com/html/rabbit/em1500/em1500_product-manual_3112140077.webp)
EM1500 User’s Manual
73
6. EM1500 E
XAMPLES
This chapter walks through two basic examples.
6.1 Example 1: Test Data Flow
This is an example of using two EM1500s connected serially to a PC to exercise the serial-to-Ethernet-
and-back-to-serial activity of the units.
You will need:
•
Two EM1500s
•
Two free COM ports on a PC running terminal emulation software.
•
Ethernet cross-over cable to connect the Ethernet ports of the two EM1500s
•
Two serial cables to connect the PC COM ports to the EM1500s. SER1 needs a
DE9 female null-modem cable, while SER2 requires a straight-through M-F cable.
First you must change the default settings on the EM1500s. The units must be configured with the follow-
ing goals:
•
to enable them to accept incoming connections from the PC COM ports
•
to talk to one another over Ethernet
Use your preferred configuration method to display the options for opening the serial port. Fill in the
“Remote host” field with the IP address of the other EM1500. For “Active open” check “When any char
received.” Make sure DHCP is disabled. Do this for both units.
Using serial cables, connect either SER1 or SER2 from each EM1500 to the free PC COM ports. Then
using the Ethernet cross-over cable, connect the Ethernet ports of the two units and supply power.
On the PC, open up two instances of a terminal emulator, one for each COM port. Each PC COM
port/EM1500 serial port pair must have matching serial port geometry, e.g., 8N1, as well as matching
speed and flow control settings. The settings for each port in the pair, while having to match with one
another, do not have to match the settings in the other pair of serial ports.
Now, whatever you type in one terminal emulator window travels out its COM port, through the serial port
of the EM1500, out its Ethernet port to the Ethernet port of the other EM1500, out through that EM1500’s
serial port, in through the second COM port and almost instantly is displayed in the other terminal emula-
tor window.
Even though this is a trivial example, one can extrapolate and see how it can be extended to something
useful. The data flowing across the Ethernet cross-over cable could just as well travel the company LAN
or the Internet.
Содержание EM1500
Страница 14: ...10 www rabbit com Introduction...
Страница 22: ...18 www rabbit com Getting Started...
Страница 76: ...72 www rabbit com EM1500 Configuration...
Страница 90: ...86 www rabbit com EM1500 Specifications...
Страница 104: ...100 www rabbit com Serial and TCP Protocols...
Страница 118: ...114 www rabbit com EM1500 FAQ...