HW Group IP Relay User Manual

IP Relay
2x Relay controlled over Ethernet
+ RS-232 / Ethernet converter (Terminal server)
EN 900 478a
IP Relay – 2x relay + RS-232 / Ethernet converter
HW group
June 2006 www.HW-group.com
Page 2 / 28
Shipment contents
Complete shipment of the IP Relay contains following items:
IP Relay in a metal box and mechanic version corresponding to the ordering number
A 1:1 serial prolonging cable (DB9F - DB9M) for the device setup via RS-232
Power adaptor in European version
Printed manual + datasheet
CD with the necessary software
o IPRC (IP Relay Controller) o HW VSP (HW Virtual Serial Port) o Hercules utility
IP Relay – 2x relay + RS-232 / Ethernet converter
HW group
June 2006 www.HW-group.com
Page 3 / 28
Table of contents
Shipment contents...........................................................................................................................2
Table of contents..............................................................................................................................3
Characteristics and basic properties .............................................................................................4
Features .........................................................................................................................................4
Connection topology ....................................................................................................................... 5
Connector descriptions...................................................................................................................7
Using the device...............................................................................................................................8
Quick setup..................................................................................................................................... 8
Controlling the IP Relay with the IP Relay Control 1.2 software .....................................................9
Controlling the IP Relay with HW Virtual Serial Port..................................................................... 10
SETUP troubleshooting ................................................................................................................ 10
Controlling the Relay and LED diodes .......................................................................................... 11
Setting other parameters of the device ......................................................................................... 13
HW VSP - Virtual Serial Port..........................................................................................................15
IPRC – IP Relay Control.................................................................................................................17
Basic characteristics of IPRC .......................................................................................................17
Description of configuration parameters.....................................................................................19
Default device configuration .........................................................................................................19
Device network parameters .......................................................................................................... 20
Parameters of TCP and UDP connection .....................................................................................21
Serial port parameters .................................................................................................................. 22
Other device parameters .............................................................................................................. 23
Application hints............................................................................................................................25
Free application software.............................................................................................................. 26
Basic types of communication .....................................................Chyba! Záložka není definována.
Mechanical dimensions.................................................................................................................27
Device versions..............................................................................................................................28
Contact............................................................................................................................................28
IP Relay – 2x relay + RS-232 / Ethernet converter
HW group
June 2006 www.HW-group.com
Page 4 / 28
Characteristics and basic properties
IP Relay combines two relays controlled over Ethernet and RS­232 / Ethernet converter. The device can reset a remote device via Ethernet or switch its power supply on or off. IP relay can be also used as a remote serial port.
Features
Ethernet - RJ45 (10BASE-T - IEEE 802.3)
RS-232 Serial port (RxD, TxD, CTS, RTS, GND)
o 7, 8, or 9 data bits; o baudrate: 50..115200Bd; o HW/SW handshaking
Testing software and virtual serial port for Windows 2000/XP available on a CD
The examples of remote control by Java, VisualBasic, Delphi and PHP commands
available
Two independent relays controlled via Ethernet by NVT commands (M2M protocol).
Standard relay configuration:
o Relay 1: Controls breaking contact
leading out the power supply, output clips can be connected directly as a power supply for an IP camera, microwave modem or a power relay.
o Relay 2: Switching contact can be
connected to any RESET button
Other possible contact configurations can be found in the table at the end of this manual.
DIP2 switch intended for free use e.g. for identification of service works.
Possible ways of device configuration
o RS-232 Setup (over serial port using any RS-232 terminal - 9600 8N1) o UDP Setup (configuration of basic network parameters) o TCP Setup (remote configuration in the terminal via TCP)
Access security and relay control:
o You can limit access to the device only from a predefined IP address range o TCP connection can be secured using a 128-bit TEA algorithm
Metal box dimensions: 25 x 82 x 90 [mm]
The device can be fitted on a DIN molding. We can supply side brackets for wall-mounting
upon request.
IP Relay – 2x relay + RS-232 / Ethernet converter
HW group
June 2006 www.HW-group.com
Page 5 / 28
Connection topology
TCP/IP - NVT
After powering up, the device listens on the given port and awaits TCP client connection. When the client connects, data from the Ethernet are sent to the serial line and vice versa. If the client is not connected and data are coming from the serial line, they are stored in a buffer (cca 16 kB) and transmitted immediately after establishing a connection.
Both relays can be controlled by NVT type M2M protocol. The protocol extends the implemented RFC 2217 (controlling the serial port via Ethernet). The device does not
have a WWW interface. To control the device you can also use a IPRC program,
Hercules Utility or programmer examples for JAVA, Delphi, Borland C++, Visual Basic, PHP and others.
TCP/IP Client/Server mode - IP Relay keeps the TCP server function but when any data
are received from the serial line, it is stored into the buffer, the IP relay switches into a TCP Client mode and tries to establish a TCP connection on the predefined IP address of the opposite side.
HW VSP
With the help of HW VSP (version 1.9 and higher) you can create a virtual serial port (e.g. COM 5), which will be redirected to a relay’s RS-232 port. Both output relays are then controlled from the “IP Relay” tab of the HW VSP program.
UDP
UDP connection allows the data transfer to the RS-232 only, not controlling the device
IP Relay – 2x relay + RS-232 / Ethernet converter
HW group
June 2006 www.HW-group.com
Page 6 / 28
Technical parameters
Ethernet port
+ Interface
RJ45 (10BASE-T / 100BASE-Tx)
+ Compatibility
Ethernet: Version 2.0/IEEE 802.3
+ Supported protocols
IP: ARP, TCP/IP, NVT, RFC2217, UDP/IP
+ Network modes
TCP/IP server, TCP/IP client/server, UDP/IP
+ Communication security
128-bit TEA cipher, predefined range of IP addresses
Serial port 1 DB9F
+ Data bits
7, 8 or 9
+ Stop bits
1 or 2
+ Parity
None / Odd / Even / Mark / Space
+ RS-232 interface
RxD,TxD,RTS,CTS,GND
+ Communication speed
Adjustable in the range of 50..115200 Bd
Channel configuration possibilities
PO (Power On) When device switched on, the external supply voltage is lead out over (A = +,
B = GND) Max current 100mA (50mA/Channel).
PF (Power Off) When device switched on, the pins A and B are unpowered (A = +, B = GND)
Max current 100mA (50mA/Channel).
NO (normally open) Switching contact remains open when the power supply is turned on. NC (normally close) Break contact remains closed when the power supply is turned on. + Max. load of the contacts
max. 50V / 1A DC
Environment parameters
+ Temperature
Operation : -5 to +50 °C , Storage : -5 to +75 °C
+ Relative humidity (non-condensing)
5 to 95 %
LED diodes
+ POWER (green) GREEN – power supply turned on + LINK & Activity (green) GREEN - Ethernet connection + LED3 - D0 (yellow) Controlled via NVT as a D0 output
In the combination with HW VSP or IP Relay Control, tied with Channel 1
+ LED4 - D1 (red) Controlled via NVT as a D1 output + LED4 - D7 (green) Controlled via NVT as a D7 output
In the combination with HW VSP or IP Relay Control, tied with Channel 2
DIP switches
+ DIP1 - RS-232 Setup
ON = RS-232 Setup mode (9600 8N1) OFF = Ethernet mode
+ DIP2 - Remote Input
ON = D4 remote input = Log. 1 OFF = D4 remote input = Log. 0
+ DIP3, DIP4
Not used
Other parameters
+ Supply voltage
12-15 V/ 150 mA DC- coaxial connector (barrel), GND on the shield
+ Dimensions
25 x 82 x 90 [mm] (H x W x D )
+ Mounting method
Separate box, “L” plates or DIN molding attachment
+ Weight
450 g
IP Relay – 2x relay + RS-232 / Ethernet converter
HW group
June 2006 www.HW-group.com
Page 7 / 28
Connector descriptions
Port 1 - DB9F
RS-232 Interface
1 - unused 2
TxD
-->
Transmit Data
3
RxD
<--
Receive Data
4
-
unused
5
GND
---
System Ground 6 - unused 7
CTS
<--
Clear to Send 8
RTS
-->
Request to Send 9 - unused
Note: Connector is wired for using the prolong cable with PC, check careful connector pinout for your cabling.
Relay pin descriptions
Pin Contact
1
CH1 A
2
CH1 B
3
CH2 A
4
CH2 B
Function of the contacts depends on the supplied configuration. For more about the contact types see the end of this manual.
DIP switch descriptions
DIP 1
ON = RS-232 SETUP mode OFF = Ethernet mode
DIP 2
PD4 input, ON = Log. 1
DIP 3
unused
DIP 4
unused
IP Relay – 2x relay + RS-232 / Ethernet converter
HW group
June 2006 www.HW-group.com
Page 8 / 28
Using the device
In the following chapter you will learn how to connect the device easily to your PC or company network, configuring it according to your requirements and setting into service. At the end of this document we describe controlling the device via NVT commands or IP Relay Control - the controlling software.
Quick setup
The following process is recommended for a quick setup. For detailed description of all parameters and commands see chapter called “Parameter description”.
Cable connection
Set DIP1 - DIP4 into OFF position Connect the IP Relay into Ethernet 10 Mbit or 10/100 Mbit. For direct connection to a PC use a crossed TP cable. For a connection to a hub/switch/router use classic TP patch cable. If you wish to connect any RS-232 device to the IP Relay, connect it now, using the supplied Laplink cable (RS-232 interface is at the DB9F connector). Connect supplied power adaptor to the grid and plug the connector of the power adaptor into the IP Relay’s power connector. If the power supply is OK, the green Power indicator should light up. If the connection to the Ethernet network is OK, the LINK indicator should light up and go down according to the rhythm of the data transfer to the Ethernet network (Activity signalization).
Searching the device in a network
Run the application „HerculesSetup.exe“ which can be found in the root directory of the supplied CD or at www.HW-group.com
1) Click the “Find modules” button in the “UDP Setup” tab, you can see the MAC address of the device in the left column.
2) Click on the MAC address
3) Set the desired parameters (you must at least set the IP address, Mask and GateWay).
4) Check the “Enable TCP Setup” box and click on the “Set module”. This will save the network parameters.
Note: If you wish to change these basic parameters (it is necessary to set at least IP address, port,
mask and GateWay), fill the parameters in the proper fields and press the “Set module”.
The device’s IP address and network parameters are now set and you can work with the device.
IP Relay – 2x relay + RS-232 / Ethernet converter
HW group
June 2006 www.HW-group.com
Page 9 / 28
Controlling the IP Relay with the IP Relay Control 1.2 software
IP Relay Control is software intended for easy testing and using the IP relay, which allows controlling the relay’s contacts by NVT commands through a graphic environment. IPRC is a simple utility, which does not require installation and besides the device controlling it also allows easy management of more devices and realization of the Reset function.
Using the IPRC
Run the program “IPRelayControl.exe” which can be found in the “IP Relay” directory of the supplied CD or
downloaded from www.HW-group.com.
1) Press the “Search” button from the “UDP Search” section.
2) Click on he MAC address.
3) The fields beneath the Search button will be filled with the configured parameters: IP address, port and the device name (if configured).
4) Pressing the “Use This” button will transfer the IP address and port to the “Connection” section.
5) If the required IP relay is not available in the local network, its IP address and port can be set manually in the “Connection” section.
6) By pressing the “Connect” button set up the connection.
7) Set the proper relay configuration of the corresponding device using the “Channel 1” and “Channel 2” switches (see the chapter “Device Versions” at the end of this document). With changing the channels the pictures representing the relay connection change as well (only if relay’s connected).
8) You can control the relay contacts by pressing the “Turn On”, “Turn Off”, “Close Contact” and “Open Contact” (depending on the configuration used and the relay status).
9) Pressing the Reset button can change, for a short period of time (30 sec), the relay’s default state. (The default state means default HW configuration of the IP relay).
Loading...
+ 19 hidden pages