background image

PortStore5 Manual

HW group

www.HW-group.com

35

Basic types of communication

Very brief overview of basic concepts. For a detailed version with a list of abbreviations etc., see our
website (under “Support, Download”).

TCP Server (passive mode)

When the device is turned on, it listens at the specified port and waits for a client to connect. When
the client connects, data from the Ethernet are sent over the serial line, and vice versa, data from the
serial line are sent over the Ethernet. When no client is connected and there are incoming data from
the serial line, the data are stored to the buffer (configurable size) and sent immediately after
reconnection (unless the option to clear the buffer when a client connects is configured in SETUP).

TCP Client (active mode)

The device acts as a server (described above). In addition, when there are incoming data from the
serial line, it actively tries to establish a connection as a client with a specified remote IP address and
transfer the data.
If that fails, data are stored into the buffer and transferred whenever a connection is established
(regardless of whether the converter is a client or a server).

UDP

Data from the Ethernet are sent to the serial line. Incoming data from the RS232 serial line are
assembled into packets according to configured rules and sent to the configured IP address. In UDP
mode, there are no acknowledgment checks; the application itself must tolerate data loss.
The advantage is a somewhat faster response time, which is particularly useful for RS-485 lines.

NVT (Network Virtual Terminal)

When using TCP/IP communication, the device capabilities include a NVT (RFC2217) compliant
control stream that can be used e.g. to change the serial port baudrate, control inputs and outputs or
clear the buffer. These control commands are included in the data stream and prefixed with “FF”
(data bytes of this value must then be doubled). For a detailed NVT description, see the
“Programming Ethernet applications” guide (which also describes the freely supplied communication
subroutines) or a separate article at our website.

VSP (virtual serial port)

The device is in the TCP Server mode and the PC behaves as a TCP client. The

HW VSP

 software is

installed at the PC in order to create a virtual serial port (e.g. COM6). The serial port at the device
then acts as a physical port at your PC, even though it may be far away.
When buffering is enabled, data are again stored to the internal buffer whenever the TCP connection
is disconnected, and transferred after the connection is established.

If, in your scenario, it is more advantageous to initiate the connection by the device and per-packet
data charges apply (e.g. GPRS), it is possible to configure the device as a TCP Client/Server and
switch the VSP to the TCP Server mode. Connection (bidirectional of course) is then established
whenever data are received at the serial port.

Summary of Contents for PortStore5

Page 1: ...PortStore5 Manual HW group www HW group com 1 PortStore5 MANUAL...

Page 2: ...ing safety and maintenance instructions The device must not be used in particular under any of the following conditions The device is noticeably damaged The device does not function properly Unfastene...

Page 3: ...hen the connection is established stored data are sent as a continuous RAW TCP stream The remote port can be controlled with a virtual driver for Windows just like for example COM 5 a Windows XP Vista...

Page 4: ...data Buffer overflow signaling Network None RS 232 HW or SW handshake if buffer is full Buffer type Linear FIFO data space Buffer data readout format RAW binary TCP IP stream Ethernet port Interface...

Page 5: ...PortStore5 Manual HW group www HW group com 5...

Page 6: ...ort mode OFF ON RS 485 serial port mode check the R and H parameters recommended R3 H1 LEDs Power green External power connected LINK amber Ethernet activity Status green Device starting up firmware u...

Page 7: ...UDP Setup tab click Find modules The MAC address of the device appears in the left column Single click the MAC address and set the required parameters at least the IP address mask and gateway Make su...

Page 8: ...up com 8 Configuring the device over WWW In the UDP Setup tab click the correct MAC address and press Open in the WEB browser You need to log in to access the configuration The default credentials are...

Page 9: ...e R for Reboot and press Disconnect to disconnect from the device The device restarts Note TCP Setup can be disabled with the Enable TCP setup option When unchecked the device refuses connections to p...

Page 10: ...When using a RS485 converter configure I1 or I2 and remember to turn on HALF DUPLEX using H1 I need to supply power to a RS 232 application If you don t need to control data flow HW handshake but nee...

Page 11: ...sure to restart your PC Make sure that NVT is enabled at the UDP Setup tab in the Hercules utility If not enable NVT and save the settings Start HW VSP and find the device at the UDPsetup tab Select...

Page 12: ...l port activity to C serialport log TCP server mode Activates VSP as a TCP IP server The driver then behaves as a TCP Client Server device the first side to receive any data switches to Client mode an...

Page 13: ...and description The description of the settings combines WWW based configuration and TCP setup or Serial setup Some functions are only available in Serial setup TCP setup TEA security settings QUIET m...

Page 14: ...PortStore5 Manual HW group www HW group com 14 Network parameters...

Page 15: ...owed to communicate with the device This value must be the result of a bitwise AND of the remote IP address and the restriction mask option N otherwise the device does not react N Mask 0 0 0 0 This ma...

Page 16: ...101 6 15 min n 124 7 30 min n 144 8 1 h n 179 9 2 h n 249 The timeout can be fine tuned by specifying a value from 10 to 255 according to this formula n 16 n 0 2 s n 32 n 15 0 8 s 3 0 s n 64 n 31 3 2...

Page 17: ...PortStore5 Manual HW group www HW group com 17 TCP mode settings...

Page 18: ...gh to serial port 1 On accept telnet control codes K Keep connection Off Keeps TCP connections alive to avoid automatic termination upon timeout specified by the B IP protocol retry time parameter Whe...

Page 19: ...Store5 Manual HW group www HW group com 19 UDP IP mode settings If you select T IP mode UDP the device will communicate with the remote side using UDP packets Also the following menu appears in the Se...

Page 20: ...tart Trigger Pattern For example to start the transfer with any ASCII control character 0 31d use 0 0 0 0 for the trigger pattern 224 0 0 0 for the mask and 1 for the length If you set the character t...

Page 21: ...he serial line Any speed from 50 to 115 200 Bd can be set To set 9600 Bd enter B9600 The resolution depends on the speed Up to about 1000 Bd 1 Bd steps can be used At 10 kBd only 100 Bd steps are stil...

Page 22: ...nce to set up 9 bit communication with a majority of data having space parity enter PS V1 space parity variable parity on M Multidrop mask 0 N Multidrop network addres 0 S Stop bits 2 Number of stop b...

Page 23: ...r of characters defining the timeout stays the same 10 characters means about 11 ms at 9600 Bd or 5 7 ms at 19200 Bd G Char Transmit Delay 0 Off When controlling devices with a small RS232 buffer it i...

Page 24: ...are sent according to defined conditions If there was a power failure PortStore sends a device restart notification to the specified e mail address as soon as the power is restored The U and X paramet...

Page 25: ...ect PortStore Power Up init Defines e mail address and subject to be sent when the device is turned on after a power failure Buffer Full e mail V To e mail address ResponsiblePerson company com Y e ma...

Page 26: ...saved settings 0 Restores settings from slot 1 1 Restores settings from slot 2 2 Stores current settings to slot 1 3 Stores current settings to slot 2 R Reboot Software restart Necessary e g when the...

Page 27: ...the last 4 bytes to the value shown above use K3 0D 0E 0F 10 The key is used to verify one time passwords OTP when authenticating the remote side Other device parameters Q Quiet Batch mode Quiet mode...

Page 28: ...PortStore5 Manual HW group www HW group com 28 What s new in the WEB interface Firmware upgrade Upgrades the current device firmware This operation may change some settings...

Page 29: ...T IP mode TCP V NetworkVirtualTerminal On K Keep connection Off E Erase buffer on None Press Enter to continue Serial Setup B Speed 9600 D Data bits 8 P Parity None V Variable Parity Off S Stop bits 1...

Page 30: ...ed 8V A DTR Output unasserted 8V T Serial Line Timeout 0 Off G Char Transmit Delay 0 Off H Tx Control Tx FULL duplex I RS485 RS422 control Off Security Setup A TCP autorisation Off K TEA key 0 01 02 0...

Page 31: ...both devices If security is an essential requirement and the device should only communicate within the local network use the following settings In this case only communication within the LAN segment...

Page 32: ...if the receiving device shuts down PortStore5 is used to receive this data over RS 232 and store it into the internal Flash buffer Once in a while the special software downloads the data over the Eth...

Page 33: ...ur extension is not standardized however when we implemented this extension in 2001 no such standard was known to us How does it work The commands are control sequences in the TCP IP data stream the F...

Page 34: ...al value the value directly indicates the communication speed in Bauds Outgoing sequence FF FA 2C 01 00 00 00 00 FF F0 PortStore5 returns FF FA 2C 65 00 00 25 80 FF F0 Converting 00 00 25 80 to decima...

Page 35: ...In UDP mode there are no acknowledgment checks the application itself must tolerate data loss The advantage is a somewhat faster response time which is particularly useful for RS 485 lines NVT Networ...

Page 36: ...PortStore5 Manual HW group www HW group com 36 Contact HW group s r o Rumunsk 26 122 Praha 2 120 00 Czech republic Tel 420 222 511 918 Fax 420 222 513 833 http www HW group com...

Reviews: