05 - Serial To Ethernet Data Gateway
05 - Serial To Ethernet Data Gateway
Gateway
Agenda
Why use this module? (The Limitations of Serial
Ports)
Transparent Gateway v.s. Universal Gateway
Configuration and Mapping
Universal Gateway Operating Modes (Polling, Peer-
to-peer, Event-handling)
Startup of Wireless Ethernet Data Gateway
Infrastructure and Ad-Hoc mode
Device Server Applications
New Serial Device Server
Why use this module?
(The Limitations of Serial Ports)
The Limitations of Serial Ports
- Dedicated connections only
– Typically one PC or host per serial device
- Distance limitations
– RS-232: ~ 15 m
– RS-422/485: ~ 1200 m
- Installation cost
– Separate and dedicated cable per serial device
What if You Could …
Quickly and easily replace direct serial connections
with an anywhere/anytime network connection
Ethernet
RS-232
Device
Server
RS-232 RS-232
Why EDG Series ? Easy to Use…
Local
PC
Auto-reconnection.
Transparent Mode: PC COM ports extension
Host Windows
Computer Legacy Application Software
Windows PC had
installed EDG port Native COM Virtual COM
mapping Utility Port Driver Port
Ethernet
Device
Server
RS-232
Universal Serial Device
Gateway
EDG for Universal O/S, Network
The ADAM-4577/79/77W/79W
Pair Configuration (Peer-to-Peer)
TCP Server (Polling Mode)
TCP Client (Event Handling
Modem emulation (Control mode)
Modbus gateway (Modbus/TCP to ASCII and RTU)
Configuration and Port Mapping
Configuration Utility-Search
1.Auto-detect
1.Auto-detectall
allADAM-4570/4571/EDG-4504s
ADAM-4570/4571/EDG-4504s
2.Configure
2.Configureall
alldevices
devicesin
inone
onestep
step
Configuration Utility-Find
1.1.Find
Findone
oneADAM-4570
ADAM-4570or orall
allADAM-4570
ADAM-4570or or all
allEDG
EDGseries
series
2.2.When
Whenyou
youselect
selectone,
one,then
thenclick
click“Locate”
“Locate”button.
button.
Then
ThenLEDLEDwill
willturn
turnon
on
3.3.Easy
Easytotofind
findwhere
wherethethedevices
devicesare
are
Configuration Utility --Network
Network
1.Auto-detect
1.Auto-detectSpeed
Speed(10/100M)
(10/100M)&&Duplex
Duplextypes
types
2.2.Key-in
Key-inFixed
FixedIP
IPaddress
address
Configuration Utility-Port
1.Select
1.SelectRS-232,RS-422,RS-485
RS-232,RS-422,RS-485&&PortPort
2.Select
2.Selectthe
thevalues
valuesatatrandom,
random,because
because“Parity,Flow
“Parity,Flowcontrol…”
control…”
will
willchange
changeby
byyour
yourapplication
application
EDG Comport Mapping Utility
1.Assign
1.Assignunused
unusedhost
hostPC’s
PC’sCOMport
COMporttotoEDG’s
EDG’sport
port
2.Select
2.SelectADAM-4570/4571/EDG-4504
ADAM-4570/4571/EDG-4504
Port Mapping Utility-Port Mapping
1.Key-in
1.Key-inIPIPaddress
addressofofspecific
specificdevice
device
2.Select
2.Selectport
port
3.Click
3.Click“Add”
“Add”button
button
Port Mapping Utility-Test
1.Select
1.Selectwhich
whichport
porttotobe
betested
tested
2.Click
2.Click“Test”
“Test”button
button
Port Mapping Utility-Test
Connect
Connectaaloopback
loopbackon
onthe
theport
port
1.Signal
1.Signaltest:
test:
DSRÆ
DSRÆDTR, DSRÆRI,
DTR,DSR DSRÆDCD,
ÆRI,DSR RTSÆCTS
ÆDCD,RTS ÆCTS
2.Communication
2.CommunicationParameter
Parametertest:
test:
Stop/Data
Stop/Databits,
bits,Parity,
Parity,Baud
Baudrate.
rate.
Hands on
Objective : Install a virtual COMport in a Windows PC
Module : ADAM-4571/70, EDG-4504
Testing : Using virtual COMport to get data from a RS-485
device to
Universal Gateway Operating Modes
Mode: Peer-to-Peer
- Connection is initiated by either Device Server
- The IP address of each unit must be specified at
setup time
- Applications: extended serial over LAN/WAN
(Old devices have no RJ-45 interface)
Ethernet
Device Device
Server Server
RS-232 RS-232
How to set in 1st ADAM-4579 ?
For the first one, Choose prot1, set the com port as ‘DATA’ mode,
‘Listen on TCP Port’ as 5200. Then put the IP of the second ADAM-
4579 and the TCP port number of the com port you want to
communicate with into the ‘Peer for receiving Data’
How to set in 2nd ADAM-4579 ?
In the second ADAM-4579, you need well define the ‘Port’, and ‘Listen
on TCP port. However, for ‘Peer for Receiving Date’, we need to map it
to the first ADAM-4579
How to wiring ?
How to test
Step1 : After completing the Peer-to-peer Settings of two ADAM-4577
modules, you could open two Hyper-Terminal on both PCs.
Step2 : If you edit some characters on PC1's Hyper-Terminal , then
the PC2's Hyper-Terminal can get the same result.
Hand on
Objective : Utilize Peer-to-peer mode to send data to each
other
Module : ADAM-4579
Step : 1. Wiring
2. Configuration for Peer-to-peer Mode
3. Using HyperTerminal to send/receive data
Mode: Polling
Host
Computer
Ethernet
Device
Server
RS-232
How to set in polling mode?
Since in ‘Polling mode’ the network socket is controlled by PC,
the RS-232 on ADAM-4579 is used to pass data, so please
choose ‘Data’ mode for the serial port.
Since the TCP Port setting here is 5200, then the TCP port of
serial port1 is ‘5201’.
Set COMport as RS-232
Set the serial ports on the ADAM-4579. Since we are going to use the loop-back
function to test the polling mode, make sure you are choosing RS-232 mode
here.
Run “Polling” example
Connect a loop back connector on the port1 of ADAM-4579.
Please found the polling example in following
folder: ’ ..\Program_Files\Advantech\EDG Serial\Download and
Test Utility\Examples\Vc\Polling\Release\polling’. Executing
the ‘.exe’ file, it will send a string ‘123456789’ to the port1 of
ADAM-4579 and get it back. You can see the result on the
screen:
Mode: Event Handling
In this mode, you can connect the network socket form the PC
side and then the ADAM-4579 will transmit all the data received
form com port to the PC
Applications: barcode/RFID scanner, GPS receiver, etc.
Host
Computer
Ethernet
Device
Server
RS-232
How to set in Event-Handling mode?
Set the ‘Peer for Receiving Data’. If you want the ADAM-4579 to work as event
mode, it is necessary to set this option. Since the ADAM-4579 will
automatically connect to the host, you need to assign the IP and the TCP port
of the host PC here.
The TCP port ‘5301’ here is to match the TCP port which was declared in
program which is waiting for the ADAM-4579’s connection.
Run “Event” example
Run the following example: ‘..\Program Files\Advantech\EDG
Serial\Download and Test
Utility\Examples\Vc\Event\Release\Event.exe’. If you see the black
screen, that means the PC is now stand-by, and ready for the data
Mode: Controlling
.In controlling mode, the ADAM-4579 presents a modem
interface to the attached serial device: it accepts AT-style Serial line
modem commands to connect / disconnect to other LAN cable
networking device.
Connection 1
Connection 2
#3 Adam-4579
Ethernet
Device
Server
Modbus ACSII/RTU
Note: 8 devices max. RS-232/422/485
Startup of Wireless Ethernet Data
Gateway
Features
Protocol: TCP/IP
Network: 802.11b/g
Ports: ADAM-4571W: 1 RS-232/422/485 port
ADAM-4570W: 2 independent RS-232/422/485 ports
Connector: Serial: RJ-48 (RJ-48 to DB9 male cable
provided)
Transmission Speeds: 50 bps ~ 230 kbps (Baud rate)
Parity Bits: Odd, even, none, space, mark
Data Bits: 5, 6, 7, 8
Stop Bits: 1, 1.5, 2
Diagnostic LEDs: WLAN (Active, Quality), Serial (TX/RX)
and System (Status, Power)
Surge Protection: 15 kVESD
Infrastructure and Ad-Hoc mode
No more wiring for Ethernet Connection
- Two different wireless mode for option: Infrastructure mode (Basic
Service Set)/Ad hoc mode
- Easy for extending new devices
Router Ethernet
Internet
Access Point
BSS
(Basic Service Set)
RS-232 RS-422/485
Wireless
Communication
RS-422/485 BSS
Lap Top
PLC HMI
Device Server Apps: OEM Telematics
Fleet management via local 802.11b wireless
Host
Computer
802.11b
Access Point
Ethernet
ADAM-4571W
Wireless Device Server
Benefits
• Rapid Time to Market – Quickly add wireless
access to any device with a serial port
• Time Savings – replace manual record keeping
keeping (fares, mileage, etc.) with automatic
download on returning to the depot
• Reduced Cost – optimize maintenance with
better access to vehicle performance data
Diagnostic Mode of Default Setting
Examination:
How to change the two
mode via SWITCH?
Configuration Utility-Network
General tab(1) – TCP/IP for Wireless module
1.1. Key-in
Key-inFixed
FixedIP
IPaddress
address
2.
2. Had
Hadconnected
connectedAP AP
Port Mapping Utility-Port Mapping
1.Assign
1.Assignunused
unusedhost
hostPC’s
PC’sCOMport
COMporttotoADAM-
ADAM-
4571W’s
4571W’sport
port
2.Select
2.SelectADAM-4570W/4571W
ADAM-4570W/4571W
Hands On
Try to use Infrastructure mode to communicate with
each other by using Hyper Terminal.
The Serial Device Server Configuration
Utility
Serial Device Server Configuration Utility
Host Computer
with COM Port
Redirection
Ethernet
Benefits
• Time Savings – remote access from
your desktop or laptop (via VPN) ADAM-4571
• Increased Flexibility – access any Device Server
SCADA
System
Ethernet (Modbus/TCP)
Benefits
• Reduced Cost – replace costly ADAM-4572
dedicated leased-line modems Modbus Gateway
HMI with
COM Port
Redirection
Ethernet
Section #1 Section #2
Benefits
• Reduced Cost – replace
dedicated serial cables
with no HMI changes
• Increased Flexibility – ADAM-4571 ADAM-4571
RS-232
Device Server RS-232
Device Server
position HMI for optimum
usage, and tie controls
together with Ethernet
Device Server Apps: OEM Display Mfgr.
Network enable serial-based information displays
Host Computer
with COM Port
Redirection
Ethernet
Benefits
• Increased Revenue – incremental
sales opportunity to extend the ADAM-4571
product line with add-on functionality Device Server
Wireless
802.11b
Wired
Device Dual 10/100 Ethernet Dual 10/100 Ethernet
Servers 1x / 2x RS-232/422/485 4x RS-232/422/485
VCOM & TCP/UDP VCOM & TCP/UDP