SocketServer is integrated in the firmware that comes installed on your DeviceMaster AIR, DeviceMaster PRO, DeviceMaster RTS, DeviceMaster Serial Hub, and some DeviceMaster UP models.
![]() |
|
To use a DeviceMaster DeviceMaster UP for a specific industrial protocol, use PortVision Plus to load the appropriate firmware, which replaces SocketServer.
DeviceMaster ports can be configured for TCP/IP socket access from other hosts or for serial tunneling using SocketServer. The default operation of the DeviceMaster SocketServer is to buffer network-bound data and transmit the buffered data to the network once every 50ms. This is intended to provide a reasonable trade-off between latency and network utilization. If more control is desired when the serial port receive data is transmitted to the network, there are two user configurable features that can be used: EOL Detect and Serial Rx Timeout (Input Timeout field) on the Edit Port Configuration page.
When you open SocketServer, you can review information about the DeviceMaster on the Server Configuration page and then you can access these configuration pages:
If you want to use any of the ports as COM or tty ports, you should install the NS-Link driver and then follow the procedures in this help system to configure the ports that you want to use as TCP/IP sockets.
If you install and enable an NS-Link device driver on your PC, an NS-Link version of SocketServer loads on the DeviceMaster. The versions can be distinguished by what is displayed in the Software field on the Server Configuration page (NS-Link or SocketServer).
![]() |
|
SocketServer provides three configuration modes:
TCP/IP socket mode operation is used to connect serial devices with an application that supports TCP/IP socket communications addressing.
Serial tunneling mode is used to establish a socket connection between two DeviceMasters through an ethernet network.
![]() |
UDP mode is designed for applications that need faster data transmission, or that make use of UDP’s broadcast capabilities. UDP differs from TCP in that a UDP transmission does not first require a connection to be opened before sending data and the receiving device does not issue acknowledgements to the sender.
SocketServer provides a telnet command line interface that provides the following commands:
Telnet/SSH Command | Description |
---|---|
auth | Sets the authentication method used by web server. |
help | help [cmd] - Displays the help information. |
ip | Sets the IP configuration. |
mac | Shows the MAC address. |
model | Views the Model ID. |
monitor | Monitors the serial port data. |
password | Sets the password. |
reset | Resets the device. |
secureconf | Enables/disables encryption for configuration. |
securedata | Enables/disables encryption for data. |
securemon | Enables/disables monitoring of the secure data via telnet. |
setbaud | Sets the baud on any or all ports. |
snmp | Enables/disables SNMP. |
telnet | Enables/disables telnet. |
teltimeout | Sets the telnet timeout period (seconds). |
timeout | Sets the time (seconds) until default application loads automatically. |
ver | Displays the firmware revision. |
quit | Exits the session. |
The following table provides information about the fields on the Server Configuration page.
Field or Area | Description |
---|---|
Software | This displays the version of the software, which can be the default firmware, SocketServer or the NS-Link driver version. The functionality of the SocketServer is the same as NS-Link. If NS-Link driver is running on the DeviceMaster, NS-Link appears when you open a web browser session. If the NS-Link driver is not running (not installed or not enabled), SocketServer displays when you open a web browser session. Download and install the NS-Link device driver for your operating system, if you want to use any of the ports as COM or tty ports before any configuration. You can download the latest version of SocketServer for the DeviceMaster. |
IP Config | This field displays one of the following IP configuration types.
|
IP Address | The IP address programmed into the DeviceMaster after applying the changes and rebooting the device. See your network administrator for a valid IP address. The default IP address programmed from the factory is 192.168.250.250. |
IP Netmask | The IP netmask is a 32-bit value (255.x.x.x) that enables IP packets to distinguish the network ID and host ID portions of the IP address. The default subnet mask programmed from the factory is 255.255.0.0. |
IP Gateway | The IP Gateway is a TCP/IP configuration item that is the IP address of a directly reachable IP router. The default IP Gateway programmed from the factory is 192.168.250.1. |
Configure Network | This link opens the Edit Network Configuration page. You can use Edit Network Configuration page to change network settings after the initial DeviceMaster network configuration has been programmed. |
Configure Security | This link opens the Edit Security Configuration page, which you can use to enable or disable DeviceMaster security for Telnet and SNMP. |
Configure Email Messages | This link opens the Edit Email Message Configuration page, which you can use to configure event notification through email from the DeviceMaster. |
Configure RFC1006 (ISO over TCP) | This link opens the Edit RFC1006 (ISO over TCP) Configuration page. The RFC1006 protocol provides an additional transport layer on top of TCP/IP. RFC1006 connections to the DeviceMaster are made to a single TCP/IP port (default is 102). If the port number configured is negative, no incoming RFC1006 connections are allowed. |
Port 1 (and Port x if there is more than one port; where x is the number of the port that corresponds to a physical port on the DeviceMaster) | Selecting the hyperlink for a port opens the corresponding Edit Port Configuration page for that port. Use the Edit Port Configuration page to configure the following values for the port. |
TCP Connection Status | These values are configured in the Edit Port Configuration pages. |
Serial Status | These values are configured in the Edit Port Configuration pages. |
TCP Connection Configuration | These values are configured in the Edit Port Configuration pages. |
Reboot | Click this button to reboot the DeviceMaster. Additionally, you can reset the serial port settings to the factory default values by clicking Reboot, Set configuration for all ports to factory default settings, and then Yes, Reboot. |
You can verify operation of your connection by reviewing the Connection Status report on the Server Configuration page. The following table explains the sample connection status shown below.
To access the Edit Port Configuration page, click the Port that you want to configure on the Server Configuration page.
See the SocketServer Configuration Methods discussion for configuration procedures on how to configure the Edit Port Configuration page.
![]() |
|
The following table explains the Serial Configuration portion of the Edit Port Configuration page. You can also refer to procedures on configuring the DeviceMaster for socket mode, serial tunneling, or UDP mode.
Serial Configuration | Description (Default in Bold) | ||||
---|---|---|---|---|---|
Mode | Mode of the device: RS-232 (default), RS-422, or RS-485 (2-port selections, see below) that you plan on connecting to the port. 2-Port Models, only: RS-485 Mode provides these choices:
| ||||
Baud Rate | Available device baud rates are: 300, 600, 1200, 2400, 4800, 9600 (default), 19200, 38400, 57600, 115200, and 230400. | ||||
Parity | Available choices are None (default), Even, or Odd. | ||||
Data Bits | Available choices are 5, 6, 7, and 8 (default). | ||||
Stop Bits | Available choices are 1 (default) or 2. | ||||
Flow Control | Available choices are None (default), RTS/CTS, XON/XOFF, and half-duplex. | ||||
DTR | Available choices are: DTR ON all the time, OFF all the time, or on when a connection is established on this port (Socketon). Use Socketon if you want DTR turned on when a connection is established on this port. | ||||
RTS | Available choices are: RTS ON all the time, OFF all the time,
on when a connection is established on this port (Socketon), or on when data is being transmitted (Toggle).
Use Socketon if you want RTS turned on when a connection is established on this port.
Use Toggle if you want RTS turned on when data is being transmitted and turned off upon completion of data transmission.
| ||||
Pre/Post RTS Hold Time | If the RTS Toggle feature is enabled, SocketServer will turn RTS on and wait for the Pre RTS Hold Time before starting data transmission. RTS will remain turned on for the Post RTS Hold Time after data transmission completes. The Pre/Post RTS Hold Time can be configured to values from 0 ms to 4,294,967,295 ms (approximately 49 days). The default is 0 ms. | ||||
EOL† | If EOL detect is enabled (1-byte or 2-bytes), the DeviceMaster buffers receive serial data until the configured 1- or 2-byte EOL sequence is received. When that sequence has been received, the buffered data (including the EOL sequence) is written to the network. The default is Disabled. | ||||
Input Timeout† | If the Serial Rx Timeout feature is enabled (Input Timeout), the DeviceMaster buffers receive serial data until a gap in the serial receive data stream has been detected. This gap can be configured to values from 1 ms to 4,294,967,295 ms (approximately 49 days). The default is 0ms. | ||||
Rx FIFO Disable (DeviceMaster RTS 1-Port only) | This option allows a parity conflict on a DeviceMaster RTS 1-port. It may be necessary to use this option after you have determined that the cabling is correct and you are able to transmit data but not receive proper data. | ||||
Tx Complete After Close | When unchecked, any buffered data will be discarded when the TCP connection is closed. When checked SocketServer will finish sending any buffered data after the TCP connection is closed. | ||||
† If desired, the EOL and Input Timeout fields can be enabled at the same time: receive data is buffered until either an EOL or a timeout is detected. In any case, the maximum amount of receive data that is buffered is 8KB. If the 8KB receive buffer is filled, the buffered data is written to the network even though an EOL or timeout has not been detected. |
The following table explains the TCP Connection Configuration portion of the Edit Port Configuration page. You can also refer to procedures on configuring the DeviceMaster for socket mode, serial tunneling, or UDP mode.
TCP Connection Configuration | Description | |||||||
---|---|---|---|---|---|---|---|---|
Enable | Not checked by default. Enable must be checked if you want to use this port as a socket or to enable security for the secure COM port redirector. | |||||||
Listen/Port | Select the Listen check box (default) so that the DeviceMaster listens for incoming TCP/IP socket connections on the port number specified in the Port box. You can change the default TCP port number on which the DeviceMaster listens for connections in the Port box. This is the actual socket value used for this physical serial port. This number must not be duplicated under this IP address. | |||||||
Connect To/To Port/From Port | The IP address 0.0.0.0 is the default with Port 0 for the To Port and From Port fields. This option is generally used in serial tunneling. Enter an IP address and port number to which the DeviceMaster should initiate a TCP connection in the Connect To and Port fields. | |||||||
Connect On | You must select the Connect On conditions under which the DeviceMaster
should initiate a TCP connection (it only initiates a connection when a connection is not already established):
| |||||||
Disconnect On | Select the Disconnect On conditions under which the DeviceMaster should close the TCP connection:
| |||||||
Idle Timer | The default value is 300. The Idle Timer is the number of seconds in the Idle Timer box before a disconnect occurs if you selected a Disconnect On value. | |||||||
Telnet Com Port Control Option (RFC 2217) | Select this option to enable RFC 2217 extensions to Telnet for full serial communication over a TCP connection. The ports are configured in the client by specifying the IP address of the DeviceMaster and the port number (for example, 8000-80xx). |
The following table explains the UDP Connection Configuration portion of the Edit Port Configuration page. You can refer to the procedures in configuring the DeviceMaster in UDP mode.
UDP Connection Configuration | Description |
---|---|
Enable Serial to Ethernet | This enables data, from a serial port, to be sent to the list of IP addresses and/or port numbers. When Enable Serial to Ethernet is selected, it allows data from the serial side to be forwarded on to the Ethernet side of the DeviceMaster. When Enable Serial to Ethernet is NOT selected, this option prevents the data from the serial side being forwarded on to the Ethernet side of the DeviceMaster. |
Enable Ethernet to Serial | This options allows data from the IP addresses, specified in the list, or any IP address. When Enable Ethernet to Serial is selected, it allows data from the Ethernet side to be forwarded to the serial side of the DeviceMaster. When Enable Ethernet to Serial is NOT selected, it prevents data from the Ethernet side being forwarded on to the serial side of the DeviceMaster. |
Enable Ethernet Receive From Any IP Address | This options permits data reception from any IP address rather than limiting it to the list of IP addresses. This option is used in conjunction with the Target IP Address Port (serial- >eth) fields. When Enable Ethernet Receive from Any IP Address is selected, it requires you to enter the IP address of the sending unit, the IP address of the DeviceMaster that the data is expected from, in the following examples. The IP address is now serving double-duty. It is indicating that both the device the data is to be set to and received from when both Enable Serial to Ethernet and Enable Ethernet to Serial are enabled. The only time the IP address needs to be entered in this case is if the data needs to be responded to so that the DeviceMaster knows where to send the replies back to. If the receive from any is checked, it accepts it form any address. If just can't reply to that address automatically. So the first line should not say it requires an IP address of the sending unit. When Enable Ethernet Receive from Any IP Address is selected, it requires us to enter the IP address of the sending unit, the IP of the DeviceMaster that the data is expected from, in the following examples. The IP address is now serving double duty. It is indicating both the device that data is to be set to and received from when both Enable Serial to Ethernet and Enable Ethernet to Serial are enabled. In the event that some incoming data from specific units may not need an acknowledgement (while other sending units do need acknowledgement) where the IP address of that sending unit is not included in the list, but the incoming data is needed, then this would be the time to enable this option. Remember that to send data back to the originating unit, that the Port number must also be used in addition to the IP address. |
Target IP Address Port/Target Port (serial -> eth) / Source Port (serial ->eth) | Enter the Target IP Address Port (serial -> eth) for each port, which is a list of destination IP addresses and port numbers to which you are going to send the serial data received as UDP packets. When there has been no IP address indicated, there is no data sent. This address can also indicate that data is allowed to be received from the network when it has originated at the IP address specified in this list. |
UDP Listen Port | Enter the value of the UDP Listen Port, which is the specified port number to be used to listen for UDP data coming in on the Ethernet line. This is the port number assigned to this particular port. This is used in the same manner as the TCP Port number assignments. |
The following table explains the fields at the bottom of the Edit Port Configuration page.
Edit Port Configuration Management | Description |
---|---|
Clone | Click Clone to propagate the serial configuration parameters for this port to all of the ports on a multi-port DeviceMaster. |
Undo Changes | Allows you to undo the changes that you have made in this screen during this session. |
Save | Saves the changes that you have made on this page and the DeviceMaster is updated. |
Help | Opens the help file. |
You can use the Edit Network Configuration page to configure the DeviceMaster network configuration after you have initially changed the default network information (IP address, subnet mask, and IP gateway) from the default values to appropriate values for your network.
In addition, you can change the TCP Keepalive Timeout, Rx Polling Period, or Bootloader Timeout values to fit your environment.
Click Configure Network to access the Edit Network Configuration page.
Field or Area | Description | |||
---|---|---|---|---|
IP Configuration | The following IP configuration types are available.
| |||
TCP Keepalive Timeout | This option allows you to set the amount of time in seconds that the DeviceMaster waits until it closes this connection and frees all the ports associated with it. The TCP protocol has an optional keepalive feature where the two network stacks periodically ping each other to make sure the connection is still up. In the UNIX world, this feature is usually known as the SOKEEPALIVE socket option. By default, this keepalive feature is not enabled, and the only time you know a connection is down is when you try to write something and the other end does not acknowledge you. The potential issue with the DeviceMaster occurs when data flow was mostly one-way, and the receiver of the data was configured to initiate the TCP connection. If the sender of the data was rebooted, it would wait for the initiation a connection, discarding data. The receiver would wait forever for data and never realize that the other end wasn't connected any more and that the TCP connection needed to be re-established. Enabling the TCP keepalive feature for a connection solves this problem: the TCP stack periodically pings the other end. If the connection has gone away, the DeviceMaster is notified, so that it can attempt to re-establish the TCP connection. | |||
Rx Polling Period | This option controls the frequency with which the DeviceMaster transmits serial port data across the TCP connection. The default value is 50ms. | |||
Bootloader Timeout | Allows you to change the bootloader time-out value before the default application, typically, SocketServer loads. You may need to increase this time-out value to 45 for compatibility with spanning tree devices (normally switches). If you change the time-out value to 0, this prevents SocketServer from loading. | |||
Undo Changes | Allows you to undo the changes that you have made in this screen during this session. | |||
Save | Saves the changes that you have made on this page and the DeviceMaster is updated with the network information and reboots during the process. | |||
Help | Opens the help file. |
Use the following steps to change network settings in the DeviceMaster after initially configuring the network values. For initial configuration, you must use PortVision Plus, an NS-Link driver, or the serial method discussed in the DeviceMaster User Guide.
PortVision Plus is the easiest and recommended configuration method. PortVision Plus is available on the product CD or you can download PortVision Plus.
Enter the IP address of the DeviceMaster in the Address field of your web browser and press the Enter key.
Click the Configure Network link.
Click the appropriate IP configuration type for your environment.
If you selected Use static configuration, enter the IP Address, Netmask (subnet mask), and IP Gateway values.
If necessary, change the TCP Keepalive Timeout value.
If necessary, change the Rx Polling Period.
If necessary, change the Bootloader Timeout value.
After making any changes, click Save.
![]() |
|
You can use this page to change DeviceMaster security configuration, and key and certificate management.
The following subsections provide detailed information about the Edit Security Configuration area:
If Secure Data mode is enabled TCP connections which carry data to/from the serial ports will be encrypted using SSL or TLS security protocols. This includes the following:
TCP connections to the per-serial-port TCP ports (default is 8000, 8001, 8002, ...) are encrypted using SSL/TLS.
TCP connections to TCP port 4606 on which the DeviceMaster implements the Comtrol proprietary serial driver protocol are encrypted using SSL/TLS.
Since SSL/TLS can not be used for either UDP data streams or for the Comtrol proprietary MAC mode Ethernet driver protocol, both UDP and MAC mode serial data transport features are disabled.
In order to minimize possible security problems e-mail and RFC1006 features are also disabled in Secure Data mode.
In addition to encrypting the data streams, it is possible to configure the DeviceMaster so that only authorized client applications can connect using SSL/TLS. See the Client Authentication section for details.
If Secure Config mode is enabled, unencrypted access to administrative and diagnostic functions is disabled. Secure Config mode changes DeviceMaster behavior as follows:
Telnet access to administrative and diagnostic functions is disabled. SSH access is still allowed.
Unencrypted access to the web server via port 80 (http:// URLs) is disabled. Encrypted access to the web server via port 443 (https:// URLs) is still allowed.
Administrative commands that change configuration or operating state which are received using the Comtrol proprietary TCP driver protocol on TCP port 4606 are ignored.
Administrative commands that change configuration or operating state that are received using the Comtrol MAC mode proprietary Ethernet protocol number 0x11FE are ignored.
If desired, controlled access to SSL/TLS protected features can be configured by uploading a client authentication certificate to the DeviceMaster. By default, the DeviceMaster is shipped without a CA (Certificate Authority) and therefore allows connections from any SSL/TLS client.
If a CA certificate is uploaded, the DeviceMaster only allows SSL/TLS connections from client applications that provide to the DeviceMaster an identity certificate that has been signed by the CA certificate that was uploaded to the DeviceMaster.
This uploaded CA certificate that is used to validate a client's identity is sometimes referred to as a "trusted root certificate", a "trusted authority certificate", or a "trusted CA certificate". This CA certificate might be that of a trusted commercial certificate authority or it may be a privately generated certificate that an organization creates internally to provide a mechanism to control access to resources that are protected by the SSL/TLS protocols.
To control access to the DeviceMaster's SSL/TLS protected resources you should create your own custom CA certificate and then configure authorized client applications with identity certificates signed by the custom CA certificate.
This table discusses Telnet/ssh and SNMP.
Option | Description |
---|---|
Telnet/ssh | This option enables or disables the telnet security feature after you click Save and the DeviceMaster has been rebooted. This option is enabled by default. |
Enable Monitoring Secure Data via telnet | When checked, this allows the monitor command to be used while Secure Data Mode is enabled. When unchecked, the monitor command can only be used if Secure Data Mode is not enabled. You must click Save and reboot the DeviceMaster for the change to affect. This option is disabled by default. |
SNMP | This option enables or disables the SNMP security feature after you click Save and the DeviceMaster has been rebooted. This option is enabled by default. |
The Enable Monitoring Secure Data via Telnet feature allows you to monitor serial data being sent/received on a serial port (either via NS-Link or SocketServer). The monitoring is done by telnetting to the DeviceMaster and using the following commands:
monitor [-ac] portnumber
Display a live hex dump of tx/rx data for the specified serial port. You can only monitor one port at a time. The live dump will continue until [Enter] is pressed. See the following detailed description and examples. The data is logged when it is written/read to/from the serial port driver's tx/rx buffers -- as such, the relative timing between rx/tx bytes is not precise, but it should be sufficient to debug most problems (especially frame-oriented, command/response serial protocols).
Note that monitoring serial data via a telnet connection does generate extra network traffic and may have small effects on the timing of DeviceMaster operations when large amounts of data are being logged at high baud rates.
securemon [enable|disable]
By default, monitoring of tx/rx data when in Secure Data Mode is not allowed via telnet (an insecure protocol). This command allows the you to override that default when securemon is enabled it will allow monitoring of secure data via an insecure protocol like telnet.
This setting is also accessible on the Edit Security Configuration web page where it is labeled Enable Monitoring Secure Data via Telnet.
Currently, because of issues with the DeviceMaster's ssh implementation, monitoring serial port data via the ssh command-line interface is not supported. It is expected that it will be supported in the future. Once it is supported, the securemon setting will not affect the ability to monitor secure data via ssh (which will always be allowed).
The command usage is
monitor [-ac] portnumber
This command will display a hex dump of tx/rx data with each line preceded by a direction marker of > for tx and > for rx. Pressing [Enter] terminates monitor mode.
Here is the monitor output using a loopback plug and a program that repeatedly sends the string abcABC123 to Port 1:
dm> monitor 1 Serial monitoring started for port 1 -- press [Enter] to stop. > 61 62 63 41 42 43 31 32 33 < 61 62 63 41 42 43 31 32 33 > 61 62 63 41 42 43 31 32 33 < 61 62 63 41 42 43 31 32 33 > 61 62 63 41 42 43 31 32 33 < 61 62 63 41 42 43 31 32 33 > 61 62 63 41 42 43 31 32 33 < 61 62 63 41 42 43 31 32 33
There are two available options, -a and -c:
-a
Enable display of ASCII representation of data in a column to the right the hex representation:
dm> monitor -a 1 Serial monitoring started for port 1 -- press [Enter] to stop. > 61 62 63 41 42 43 31 32 33 > abcABC123 < 61 62 63 41 42 43 31 32 33 < abcABC123 > 61 62 63 41 42 43 31 32 33 > abcABC123 < 61 62 63 41 42 43 31 32 33 < abcABC123 > 61 62 63 41 42 43 31 32 33 > abcABC123 < 61 62 63 41 42 43 31 32 33 < abcABC123 > 61 62 63 41 42 43 31 32 33 > abcABC123 < 61 62 63 41 42 43 31 32 33 < abcABC123 > 61 62 63 41 42 43 31 32 33 > abcABC123 < 61 62 63 41 42 43 31 32 33 < abcABC123 > 61 62 63 41 42 43 31 32 33 > abcABC123 < 61 62 63 41 42 43 31 32 33 < abcABC123
-c
Enable use of color instead of < and > to indicate the data flow direction. Tx is green and Rx is red.
![]() |
|
dm> monitor -c 1 Serial monitoring started for port 1 -- press [Enter] to stop. 61 62 63 41 42 43 31 32 33 61 62 63 41 42 43 31 32 33 61 62 63 41 42 43 31 32 33 61 62 63 41 42 43 31 32 33 61 62 63 41 42 43 31 32 33 61 62 63 41 42 43 31 32 33 61 62 63 41 42 43 31 32 33 61 62 63 41 42 43 31 32 33 61 62 63 41 42 43 31 32 33 61 62 63 41 42 43 31 32 33 61 62 63 41 42 43 31 32 33 61 62 63 41 42 43 31 32 33 61 62 63 41 42 43 31 32 33 61 62 63 41 42 43 31 32 33 61 62 63 41 42 43 31 32 33 61 62 63 41 42 43 31 32 33
The -a and -c options can be used together:
dm> monitor -ac 1 Serial monitoring started for port 1 -- press [Enter] to stop. 61 62 63 41 42 43 31 32 33 61 62 63 41 42 43 31 | abcABC123abcABC1 32 33 61 62 63 41 42 43 31 32 33 61 62 63 41 42 | 23abcABC123abcAB 43 31 32 33 61 62 63 41 42 43 31 32 33 61 62 63 | C123abcABC123abc 41 42 43 31 32 33 61 62 63 41 42 43 31 32 33 61 | ABC123abcABC123a 62 63 41 42 43 31 32 33 61 62 63 41 42 43 31 32 | bcABC123abcABC12 33 61 62 63 41 42 43 31 32 33 61 62 63 41 42 43 | 3abcABC123abcABC 31 32 33 61 62 63 41 42 43 31 32 33 61 62 63 41 | 123abcABC123abcA 42 43 31 32 33 61 62 63 41 42 43 31 32 33 61 62 | BC123abcABC123ab 63 41 42 43 31 32 33 61 62 63 41 42 43 31 32 33 | cABC123abcABC123
For secure operation, the DeviceMaster uses a set of four keys and certificates. These keys and certificates may be configured by the user.
Option | Description | ||||
---|---|---|---|---|---|
RSA Key pair used by LLS and SSH servers |
This is a private/public key pair that is used for two purposes: It is used by some cipher suites to encrypt the SSL/TLS handshaking messages. Possession of the private portion of this key pair allows an eavesdropper to both decrypt traffic on SSL/TLS connections that use RSA encryption during handshaking.
| ||||
RSA Server Certificate used by SSL servers |
This is the RSA identity certificate that the DeviceMaster uses during SSL/TLS handshaking to identify itself. It is used most frequently by SSL server code in the DeviceMaster when clients open connections to the DeviceMaster's secure web server or other secure TCP ports. If a DeviceMaster serial port configuration is set up to open (as a client) a TCP connection to another server device, the DeviceMaster also uses this certificate to identify itself as an SSL client if requested by the server. In order to function properly, this certificate must be signed using the Server RSA Key. This means that the server RSA certificate and server RSA key must be replaced as a pair. | ||||
DH Key pair used by SSL servers |
This is a private/public key pair that is used by some cipher suites to encrypt the SSL/TLS handshaking messages.
| ||||
Client Authentication Certificate used by SSL servers |
If configured with a CA certificate, the DeviceMaster requires all SSL/TLS clients to present an RSA identity certificate that has been signed by the configured CA certificate. As shipped, the DeviceMaster is not configured with a CA certificate and all SSL/TLS clients are allowed. |
![]() |
|
Use the following steps to change security settings in the DeviceMaster.
Enter the IP address of the DeviceMaster in the Address field of your web browser and press the Enter key.
Click Configure Security link.
Click the appropriate check boxes in the Edit Security Configuration area to enable or disable security accordingly. Refer to the DeviceMaster Edit Security Configuration Area subsection for detailed information.
After making changes to the Edit Security Configuration area, you must click Save and then OK.
![]() |
|
Use the following steps to update security keys and certificates in the DeviceMaster.
Enter the IP address of the DeviceMaster in the Address field of your web browser and press the Enter key.
Click Configure Security link.
Click Set for the appropriate key or certificate option in the Keys and Certificate Management area to configure security keys and certificates. Refer to the Key and Certificate Management subsection for detailed information.
Click Browse to locate the key or certificate file, highlight the file, and click Open.
Click Upload when you return to the Key and Certificate Management area.
The key or certificate notation changes from factory or none to User when the DeviceMaster is secure.
You do not need to click Save, but changes will not take effect until the DeviceMaster is rebooted.
Use the following tables for field definitions. The first table illustrates the Server Configuration fields and the second table provides information about the Message Configuration fields.
Server Configuration | Description |
---|---|
SMTP Server IP Address | The IP address of the SMTP server. |
SMTP Sender Host Name | The host name of the SMTP sender. A common format for host names is mail.domainname.com. (For example, mail.Comtrol.com .) |
Email Recipient | The address of the administrator of the network or DeviceMaster. The DeviceMaster will send notifications to this address. Multiple email recipients are not supported. Use the normal email address format, for example, Support@Comtrol.com . |
Email Sender | A name that you can assign to the DeviceMaster. For example, DeviceMaster1@Comtrol.com . This is only what is displayed in the senders address and cannot be replied to. |
This table provides information about the Message Configuration fields.
Message Configuration | Description |
---|---|
Enable DeviceMaster Boot Up Message | The unit boots up. This includes when the unit resets or when the power is cycled. |
Enable TCP Connection Message | When someone makes a TCP connection to the unit, for example when the NS-Link driver connects using IP mode. |
Enable TCP Timeout Message | When the TCP Time-out activates during an idle time-out or when the unit disconnects. |
Enable TCP Host Disconnect Message | When the server causes a disconnect, for example when NS-Link stops. |
Enable MAC Connection Message | When someone makes a MAC connection to the unit, for example when NS-Link starts up. |
Enable MAC Timeout Message | When the MAC Time-out activates during an idle time-out or when the unit disconnects. |
Enable Port Opened (Driver) Message | When someone opens a serial port using NS-Link. The message states which port is being used. NS-Link is a port connection. |
Enable Port Closed (Driver) Message | When the port is closed. The message states which port is being used. NS-Link is a port connection. |
Enable Port Opened (Socket) Message | When someone opens a port through a TCP/IP connection to the DeviceMaster. The message states which port is being used. |
Enable Port Closed (Socket) Message | When the port is closed. The message states which port is being used. |
Enable Web Server Login Message | This triggers when the password access is successful. |
Enable Web Server Login Error Message | When someone tries to enter the DeviceMaster Web server unsuccessfully. |
Enable Telnet Login Message | Triggers when someone successfully logs into a DeviceMaster Telnet session. The password is the same as the Web server password. |
Enable Telnet Login Error Message | When someone tries to enter a DeviceMaster Telnet session unsuccessfully. |
Enable Telnet Connection Closed Message | When someone closes the port. This provides a time stamp if desired. |
Undo Changes | Allows you to undo the changes that you have made in this screen during this session. |
Save | Saves the changes that you have made on this page and the DeviceMaster is updated. |
Help | Opens the help file for this page. |
Use the following procedure to setup the parameters for email message delivery.
Enter the DeviceMaster IP address in your web browser.
Click the Configure Email Messages link.
Enter the IP address of the SMTP server.
Enter the Host Name of the SMTP server. The common format for host names is mail.domainname.com. (For example, mail.Comtrol.com.)
Enter a valid Email Recipient. This is the address of the administrator of the network or DeviceMaster. The DeviceMaster will send notifications to this address. Multiple email recipients are not supported.
Use the normal email address format, for example, Support@Comtrol.com.
Enter a valid Email sender. This is a name that you can assign to the DeviceMaster. For example, DM1@Comtrol.com.
This is only what is displayed in the sender's address and cannot be replied to.
Select the desired check boxes to have the DeviceMaster send a message when the appropriate events occur.
The RFC1006 protocol provides an additional transport layer on top of TCP/IP. RFC1006 connections to the DeviceMaster are made to a single TCP/IP port (default is 102). If the port number configured is negative, no incoming RFC1006 connections are allowed.
To determine the desired destination for incoming connections, the RFC1006 protocol contains an endpoint name (TSAP) field in the connection request frame. Each serial port on the DeviceMaster has a TSAP endpoint name (defaults are PORT01 through PORT32). If a port’s TSAP name is configured as blank, connections to that port are not allowed. Incoming connections are also refused for serial ports that are busy (in use by either SocketServer or NS-Link).
RFC1006 is a datagram service and to get useful results you may have to configure the DeviceMaster so that it can determine where the RxSerial data stream is to be divided into datagrams. The buffering description determines how to do this.
Connections initiated by the DeviceMaster are RFC1006 connections if the Connect To TSAP field on the RFC1006 Configuration page is not blank. If that field is blank, then outbound connections are raw TCP/IP connections.
Field | Description |
---|---|
Listen on TCP Port | RFC1006 connections to the DeviceMaster are made to a single TCP/IP port (default is 102). If the port number configured is negative, no incoming RFC1006 connections are allowed. |
Port # | The physical port on the device. |
Local TSAP | Each serial port on the DeviceMaster has a local TSAP endpoint name (defaults are PORT01 through PORT32 ). |
Connect to/IP | The IP address to which connections are initiated when the Connect On conditions are true for the serial port in the Connect To IP field. This is the same as the Connect To address field on the Edit Port Configuration page. |
Connect to/Port | The TCP port number to which connections are initiated when the Connect On conditions are true for the serial port in the Port field. This is the same as the Connect To Port field on the Edit Port Configuration page. |
Connect to/TSAP | The local endpoint name for the serial port. To determine the desired destination for incoming connections, the RFC1006 protocol contains an endpoint name (TSAP) field in the connection request frame. If a port’s TSAP name is configured as blank, connections to that port are not allowed and then outbound connections are raw TCP/IP connections. Incoming connections are also refused for serial ports that are busy (in use by either SocketServer or NS-Link). |
Undo Changes | Allows you to undo the changes that you have made in this screen during this session. |
Save | Saves the changes that you have made on this page and the DeviceMaster is updated. |
Help | Opens the help file for this page. |
To configure DeviceMaster ports for the RFC1006 protocol, use the following procedure.
Make sure that you have configured the network information into the DeviceMaster and it is connected to the network.
Enter the IP address of the DeviceMaster in the Address field of your web browser and press the Enter key.
Click the Configure RFC1006 (ISO over TCP) link.
If necessary, change the Listen on TCP Port to the TCP/IP port number upon which the DeviceMaster accepts incoming RFC1006 connections. The default value is 102. Any negative value disables all incoming RFC1006 connections.
Enter the local endpoint name for the serial port in the Local TSAP field. A blank value disables incoming RFC1006 connections for that port.
Enter the IP address to which connections are initiated when the Connect On conditions are true for the serial port in the Connect To IP field. This is the same as the Connect To address field on the Edit Port Configuration page.
Enter the TCP port number to which connections are initiated when the Connect On conditions are true for the serial port in the Connect To Port field. This is the same as the Connect To port field on the Edit Port Configuration page.
Enter the RFC1006 endpoint name (at the above IP/port) to which connections are initiated when the Connect On conditions are true for the serial port in the Connect To TSAP field. If this field is blank, a raw TCP/IP connection are initiated. If the field contains a value the RFC1006 protocol is used to connect to the TSAP name given.
Click Save when you have completed the Edit RFC1006 (ISO over TCP) Configuration page.
Click OK, when the Configuration Updated page appears.
Use the following procedure to set up DeviceMaster ports for use through TCP/IP socket connections.
Make sure that you have configured the network information into the DeviceMaster and it is connected to the network.
![]() |
|
Enter the IP address of the DeviceMaster in the Address field of your web browser and press the Enter key. The Server Configuration page appears.
Select the port number on the DeviceMaster that you want to configure. The Edit Port Configuration page appears.
Configure the serial characteristics for this port.
![]() |
|
Configure the connection characteristics for this port.
Click Enable so that SocketServer uses this port.
Click the Listen check box so that the DeviceMaster listens for incoming TCP/IP socket connections on the port number specified in the Enable on Port box for this port.
Optionally, change the default TCP port number on which the DeviceMaster listens for connections in the Enable on Port box. This is the actual socket value used for this physical serial port. This number must not be duplicated under this IP address.
You must select the Connect On conditions under which the DeviceMaster should initiate a TCP connection (it only initiates a connection when a connection is not already established).
Optionally, select the Disconnect On conditions under which the DeviceMaster should close the TCP connection.
Optionally, enter the number of seconds in the Idle Timer box before a disconnect occurs if you selected a Disconnect On value.
After verifying that the value for each item for the selected port is suitable, select Save. When the Configuration Updated page appears, select OK.
Repeat Steps 3 through 6 for each port that you want to configure on the DeviceMaster or clone the port.
If you select Clone, only the Serial Configuration parameters are cloned, not the Connection Configuration values.
To configure any ports for RFC1006, go to Configuring RFC1006 (ISO Over TCP) to complete configuration.
You can verify the operation of your application and connections by checking for a change in the receive and transmit bytes on the Connection Status report in the Server Configuration page.
Use the following procedure to set up two DeviceMasters for serial tunneling.
Make sure that you have configured the network information into the DeviceMaster and it is connected to the network.
![]() |
|
Enter the IP address of the DeviceMaster in the Address field of your web browser and press the Enter key. The Server Configuration page appears. After you configure the ports, use this page to monitor your devices.
Select the port number on DM#1 that you want to configure. The Edit Port Configuration page appears.
Configure the serial characteristics for this port.
Select the mode of the device (RS-232, RS-422, or RS-485) that you plan on connecting to this port.
![]() |
|
Select the baud rate of the device.
Select the parity, number of data bits, flow control, and stop bits for this port.
Select whether you want DTR ON all the time, OFF all the time, or on when a connection is established on this port (socketon). Use socketon if you want DTR turned on when a connection is established to this port.
If EOL detect is enabled (1-byte or 2-bytes), the DeviceMaster buffers received serial data until the configured 1 or 2 byte EOL sequence is received. When that sequence has been received, the buffered data (including the EOL sequence) is written to the network.
If the Serial Rx Timeout feature is enabled (Input Timeout field), the DeviceMaster buffers receive serial data until a gap in the serial receive data stream has been detected. This gap can be configured to values from 1 ms to 4,294,967,295 ms (approximately 49 days).
![]() |
|
Configure the connection characteristics for this port.
Select Enable for SocketServer to use this port.
Select the Listen check box so that the DeviceMaster listens for incoming TCP/IP socket connections on the port number specified in the Enable on Port box for this port.
Optionally, change the default TCP port number on which the DeviceMaster listens for connections in the Enable on Port box.
Enter the IP address and port number to which the DeviceMaster should initiate a TCP connection in the Connect To and Port boxes.
You must select the Connect On conditions under which the DeviceMaster should initiate a TCP connection (it only initiates a connection when a connection is not already established):
Always: Initiate a connection always and maintain a persistent connection. |
Data: Initiate a connection when data is received. |
DSR: Initiate a connection when DSR is active. |
CD: Initiate a connection when CD is active |
Optionally, select the Disconnect On conditions under which the DeviceMaster should close the TCP connection:
Idle: Close the connection if no data has been transmitted or received for the number of seconds specified by Idle Timer. |
No DSR: Close the connection when DSR goes inactive. |
No CD: Close the connection when CD goes inactive. |
![]() |
|
Optionally, enter the number of seconds in the Idle Timer box before a disconnect occurs if you selected a Disconnect On value.
After verifying that the value for each item for the selected port is suitable, select Save. The Configuration Updated page appears. Select OK.
Repeat Steps 3 through 6 for each port you want to configure on DM#1 or clone the port. If you select Clone, only the Serial Configuration parameters are cloned, not the Connection Configuration values.
Enter the IP address of DM#2 in the Address box of the web browser, and press the Enter key.
Configure the serial characteristics for this port on DM#2, if necessary, use Step 4.
Configure the connection characteristics.
Select Enable so that SocketServer uses this port.
Select the Listen check box so that the DeviceMaster listens for incoming TCP/IP socket connections on the port number specified in the Enable on Port box for this port.
Optionally, change the default TCP port number on which the DeviceMaster listens for connections in the Enable on Port box. This must match the value entered in Step 5d.
It is not necessary to enter an IP address for this unit to connect to as the first unit programmed is initiating the connection.
After verifying that the value for each item is correct, select Save. When the Configuration Updated page appears, select OK.
Repeat Steps 9 through 12 for each port you want to configure on DM#2.
To configure any ports for RFC1006, go to Configuring RFC1006 (ISO Over TCP) to complete configuration.
Connect your serial devices to the DeviceMasters.
You can verify operation of your connection by reviewing the Connection Status report on the Server Configuration page.
UDP mode is designed for applications that need faster data transmission, or that make use of UDP’s broadcast capabilities. UDP differs from TCP in that a UDP transmission does not first require a connection to be opened before sending data and the receiving device does not issue acknowledgements to the sender.
This section provides procedures for the following UDP configuration procedures:
The following procedure is a general procedure that provides basic descriptions and definitions. See the UDP Configuration Overview for detailed examples about each type of UDP configuration.
Make sure that you have configured the network information into the DeviceMaster and it is connected to the network.
![]() |
|
Enter the IP address of the DeviceMaster in the Address field of your web browser and press the Enter key. The Server Configuration page appears. After you configure the ports, you can use this page to monitor the serial activity.
Select the port number on the DeviceMaster that you want to configure. The Edit Port Configuration page appears.
Configure the serial characteristics for this port.
Select the mode of the device (RS-232, RS-422, or RS-485) that you plan on connecting to this port.
![]() |
|
Select the baud rate of the device.
Select the parity, number of data bits, flow control, and stop bits for this port.
Select whether you want DTR ON all the time, OFF all the time, or on when a connection is established on this port (socketon). Use socketon if you want DTR turned on when a connection is established to this port.
If EOL detect is enabled (1-byte or 2-bytes), the DeviceMaster buffers received serial data until the configured 1 or 2 byte EOL sequence is received. When that sequence has been received, the buffered data (including the EOL sequence) is written to the network.
If the Serial Rx Timeout feature is enabled (Input Timeout field), the DeviceMaster buffers receive serial data until a gap in the serial receive data stream has been detected. This gap can be configured to values from 1 ms to 4,294,967,295 ms (approximately 49 days).
![]() |
|
Configure the UDP connection characteristics. See the UDP Configuration Examples section, if you are unsure how to configure UDP for your environment.
Select Enable Serial to Ethernet to enable data, from a serial port, to be sent to the list of IP addresses and/or port numbers.
When Enable Serial to Ethernet is NOT selected, it allows data from the serial side to be forwarded on to the Ethernet side of the DeviceMaster.
When Enable Serial to Ethernet is NOT selected, this option prevents the data from the serial side being forwarded on to the Ethernet side of the DeviceMaster.
Select Enable Ethernet to Serial to allow data from the IP addresses, specified in the list, or any IP address. See Step c if you want the data to be sent out as serial data.
When Enable Ethernet to Serial is selected, it allows data from the Ethernet side to be forwarded to the serial side of the DeviceMaster.
When Enable Ethernet to Serial is NOT selected, it prevents data from the Ethernet side being forwarded on to the serial side of the DeviceMaster.
Select Enable Ethernet Receive from Any IP Address to permit data reception from any IP address rather than limiting it to the list of IP addresses.
This option is used in conjunction with the Target IP Address Port (serial- >eth) fields.
When Enable Ethernet Receive from Any IP Address is selected, it accepts incoming data from a sending unit where the sending unit has entered the IP address of this unit. There still must be an IP address installed in the list for data to be returned to the originating point.
For example, if using these ports in a One-Way mode, and this is the unit receiving the data, instead of entering in the IP addresses of all of the sending units, select this option.
When Enable Ethernet Receive from Any IP Address is selected, it requires us to enter the IP address of the sending unit, the IP of the DeviceMaster that the data is expected from, in the following examples. The IP address is now serving double duty. It is indicating both the device that data is to be set to and received from when both Enable Serial to Ethernet and Enable Ethernet to Serial are enabled.
In the event that some incoming data from specific units may not need an acknowledgement (while other sending units do need acknowledgement) where the IP address of that sending unit is not included in the list, but the incoming data is needed, then this would be the time to enable this option. Remember that to send data back to the originating unit, that the Port number must also be used in addition to the IP address.
Enter the Target IP Address (serial- >eth) for each port, which is a list of destination IP addresses and port numbers for sending the serial data received as UDP packets.
When there has been no IP address indicated, there is no data sent. This address can also indicate that data is allowed to be received from the network when it has originated at the IP address specified in this list.
Enter the value of the UDP Listen Port, which is the specified port number to be used to listen for UDP data coming in on the Ethernet line.
This is the port number assigned to this particular port. This is used in the same manner as the TCP Port number assignments.
After verifying that the value for each item for the selected port is suitable, select Save. When the Configuration Updated page appears, select OK.
Repeat Steps 3 through 6 for each port that you want to configure on the DeviceMaster.
To configure any ports for RFC1006, go to Configuring RFC1006 (ISO Over TCP) to complete configuration.
You can verify the operation of your application and connections by checking for a change in the receive and transmit bytes on the Connection Status report in the Server Configuration page.
The UDP Configuration Overview section provides you with detailed information about how to use the different types of UDP configuration methods.
The following examples use a DeviceMaster 1-port (DM1) and a DeviceMaster 4-port. The following information is static in all of the examples.
DM1 is configured to these network settings:
IP Address = 192.168.11.11 |
Mask = 255.255.255.0 |
Gateway = 192.168.11.1 |
DM4 is configured to these network settings:
IP Address = 192.168.11.41 |
Mask = 255.255.255.0 |
Gateway = 192.168.11.1. |
In the examples, you can use this procedure to configure the serial portion of the DM1 and DM4.
Make sure that you have configured the network information into the DeviceMaster unit and it is connected to the network.
![]() |
|
Enter the IP address of the DeviceMaster in the Address field of your web browser and press the Enter key.
Select the appropriate port and configure it accordingly.
Serial Configuration:
Mode: RS-232
Baud Rate: 115200
Parity: None
Data bits: 8
Stop bits: 1
Flow Control: None
DTR: off
EOL: Disabled
Timeout: 0
TCP Connection Configuration:
Make sure that Enable is NOT checked and all other options at default.
In this example an DeviceMaster 1-port (DM1) forwards its incoming serial data out Ethernet to an DeviceMaster 4-port (DM4) to all four serial ports. Those four serial ports may connect to four different PCs, etc.
There are several steps in the procedure:
Example Application: A scale connected to an DM1 that sends its data to multiple monitoring PCs. Each PC receives the data at the same time and has no need to acknowledge the receipt of the data from the scale.
Use this procedure to configure one-to-many, one-way UDP data transfer. This example represents one serial port out to four serial ports.
Configure the DM1 serial characteristics as shown in the Overview in Step 3.
Configure the UDP Connection Configuration as follows:
Select Enable Serial to Ethernet. This allows data from the serial side, to be forwarded on to the Ethernet side, of the DM.
Do not Enable Ethernet to Serial. This prevents data from the Ethernet side to be forwarded on to the serial side of the DM.
Do not Enable Ethernet Receive From Any IP Address. This prevents any data from being accepted from any undesired UDP origination point.
Enter in Target IP Addresses and Port numbers of the DM4 destination ports.
192.168.11.41 7000
192.168.11.41 7001
192.168.11.41 7002
192.168.11.41 7003
Select Save and then Ok to save the configuration and return to the Server Configuration page.
Configure Port 1 of the DM4 serial characteristics as shown in Step 3
Configure the UDP Connection Configuration as follows:
Do not Enable Serial to Ethernet. This prevents data from the serial side, to be forwarded on to the Ethernet side, of the DM.
Select Enable Ethernet to Serial. This allows data from the Ethernet side to be forwarded on to the serial side of the DM.
Do not Enable Ethernet Receive From Any IP Address. Leaving this disabled requires us to enter the IP address of the Sending unit, in this case, the IP of the DM1 in the Target IP Address field.
Enter the DM1 IP address of 192.168.11.11 in the Target IP Address field.
![]() |
|
Select Save and then Ok to save the configuration and return to the Server Configuration page.
Configure Port 2 of the DM4 serial characteristics as shown in Step 3.
Configure the UDP Connection Configuration as follows:
Do not Enable Serial to Ethernet. This prevents data from the serial side, to be forwarded on to the Ethernet side, of the DM.
Select Enable Ethernet to Serial. This allows data from the Ethernet side to be forwarded on to the serial side of the DM.
Select Enable Ethernet Receive From Any IP Address. With this enabled, it prevents the requirement for us to enter the IP address of the sending unit, in this case the IP of the DM1 in the Target IP Address field. If this option is enabled, any UDP packets are accepted regardless of the origination point, as long as the origination point includes this address as a destination. This does create possible security issues and is not recommend as a general course. Since the previous option is selected, it is NOT necessary to enter the IP of the DM in the Target IP field.
![]() |
|
Select Save and then Ok to save the configuration and return to the Server Configuration page.
Repeat the options from either Port 1 or Port 2 as desired for remaining ports
Use this procedure to test this configuration. This procedure uses Test Terminal, which is included in PortVision Plus.
![]() |
|
Attach a null-modem cable from COM2 on PC#1 to DM1 RS-232 port.
Use one of the methods below.
Install a multiport serial adapter into PC and connect each port of the DM4 to a port on the multiport serial adapter. This test has used a DeviceMaster 8-port (DM8) to create additional ports in the same PC that COM2 is being used in.
Attach a null-modem cable from COM2 on each PC to each DM4 RS-232 serial port.
Attach a null-modem cable from COM2 on PC#2 to DM4 Port#1
Attach a null-modem cable from COM2 on PC#3 to DM4 Port#2.
Attach a null-modem cable from COM2 on PC#4 to DM4 Port#3.
Attach a null-modem cable from COM2 on PC#5 to DM4 Port#4.
Open Test Terminal and Open COM2, setting the port parameters to match the DM1.
Open a second copy of Test Terminal and open four ports (in this example COMs3, 4, 5, and 6) set the port parameters to match the DM4.
Attach a null-modem cable from Port 1 of the DM4 to Port 1 of the DM8 (COM3).
Attach a null-modem cable from Port 2 of the DM4 to Port 2 of the DM8 (COM4).
Attach a null-modem cable from Port 3 of the DM4 to Port 3 of the DM8 (COM4).
Attach a null-modem cable from Port 4 of the DM4 to Port 4 of the DM8 (COM5).
In the COM2 window, type any character. This character should appear in COMs3, 4, 5, and 6 in the second copy of Test Terminal.
![]() |
|
In this example a DM 1-port (DM1) forwards its incoming serial data out Ethernet to an all four serial ports of a DM 4-port (DM4). The DM4 serial ports may connect to four different PCs, etc. Data is returned from the four ports to the DM1.
There are several steps in the procedure:
Example Application: A milling machine connected to an DM1 sends its data to multiple monitoring PCs. Each PC receives the data at the same time. One PC needs to acknowledge the receipt of the data and all PCs need the capability to send new instruction sets to the milling machine. In the situation of all PCs responding at the same time, all of the data is intermingled. There is NO means to differentiate the data to indicate the sending party. It is imperative that only one PC at a time send data.
Use this procedure to configure one-to-many, bi-directional UDP data transfer. This example represents one serial port out to four serial ports with a data reply.
Configure the DM1 serial characteristics as shown in Step 3.
Configure the UDP Connection Configuration as follows:
Select Enable Serial to Ethernet. This allows data from the serial side, to be forwarded on to the Ethernet side, of the DM.
Select Enable Ethernet to Serial. This allows data from the Ethernet side to be forwarded on to the serial side of the DM.
Do NOT Enable Ethernet Receive From Any IP Address. Leaving this disabled requires us to enter the IP address of the sending unit, in this case the IP of the DM4 that the reply is expected from. The IP address is now serving double duty. It is indicating both the device that data is to be set to and received from.
Enter the Target IP Addresses and port numbers of the DM4 destination ports.
192.168.11.41 7000
192.168.11.41 7001
192.168.11.41 7002
192.168.11.41 7003
Here we are setting the IP addresses and individual port addresses to enable the data to be sent to all four ports. The port value is required only for outbound data. Since this is two-way data transferring, the port value is required. Inbound data only would require that the IP address be added once.
Select Save and then Ok to save the configuration and return to the Server Configuration page.
Configure Port 1 of the DM4 serial characteristics as shown in Step 3.
Configure the UDP Connection Configuration as follows:
Select Enable Serial to Ethernet. This allows data from the serial side, to be forwarded on to the Ethernet side, of the DM.
Select Enable Ethernet to Serial. This allows data from the Ethernet side to be forwarded on to the serial side of the DM.
Do NOT Enable Ethernet Receive From Any IP Address. Leaving this disabled requires us to enter the IP address of the Sending unit, in this case the IP of the DM1 in the Target IP Address field.
Enter the IP address of 192.168.11.11 and Port 7000 for the DM1 in the Target IP Address field.
![]() |
|
Select Save and then Ok to save the configuration and return to the Server Configuration page.
Configure Port 2 of the DM4 serial characteristics as shown in Step 3.
Configure the UDP Connection Configuration as follows:
Select Enable Serial to Ethernet. This allows data from the serial side, to be forwarded on to the Ethernet side, of the DM.
Select Enable Ethernet to Serial. This allows data from the Ethernet side to be forwarded on to the serial side of the DM.
Select Enable Ethernet Receive From Any IP Address. When enabled, this prevents the requirement for us to enter the IP address of the sending unit, in this case the IP of the DM1 in the Target IP Address field. If this option is enabled any UDP packets are accepted, regardless of the origination point. This does create possible security issues and is not recommend as a general course.
Since the previous option is selected, it is NOT necessary to enter the IP of the DM in the Target IP field.
![]() |
|
Select Save and then Ok to save the configuration and return to the Server Configuration page.
Repeat the options from either Port 1 or Port 2 as desired for remaining ports.
This test procedure is slightly different from the test procedure illustrated in the previous subsection.
Follow Steps 1 through 5 in the Testing this Configuration discussion to start the test procedure.
In the COM3 (or COM4, 5, 6) type any character. This character should appear in COM2 in the first copy of Test Terminal.
To test that the data is not differentiated, place loopback plugs on the DM4.
Open COM2 and enter a character. This character should be repeated four times (once for each port) with no indication of which port sent which character.
![]() |
|
In this example an DM 4-port (DM4), using all four serial ports, forwards its incoming serial data from all four ports out through Ethernet to an DM1 connected to the PC COM2 by means of a null-modem cable. The four serial ports may connect to four different PCs, scales, etc.
There are several steps in the procedure:
Example Application: A scale is connected to each of the DM4 ports and sends its data to a single monitoring PC (COM2). Each scale sends its data in sequence and no two scales send data at the same time. This is critical as there is no means by which data can be identified as to the sending port, and the data is intermingled. For example: Port 1 sends ABCD and Port 2 sends 1234, both at the same time. The data seen in COM2 may be A1B2CD34.
Use this procedure to configure many-to-one, one-way UDP data transfer. This example represents four serial ports out to one serial port.
Configure the DM1 serial characteristics as shown in Step 3.
Configure the UDP Connection Configuration as follows:
Do NOT Enable Serial to Ethernet. This prevents data from the serial side, to be forwarded on to the Ethernet side, of the DM.
Select Enable Ethernet to Serial. This allows data from the Ethernet side to be forwarded on to the serial side of the DM.
Do NOT Enable Ethernet Receive From Any IP Address. Leaving this disabled requires us to enter the IP address of the sending unit, in this case the IP of the DM4 in the Target IP Address field.
Enter the IP address of 192.168.11.41 as the DM4 in the Target IP Address field. Since all four ports are in the same DM, all on the same IP address, it is not necessary to enter the IP address more than once. The receiving side does not know the sending port nor does it need to know the sending port value (7000, 7001, etc.).
![]() |
|
Select Save and then Ok to save the configuration and return to the Server Configuration page.
Configure Port 1 of the DM4 serial characteristics as shown in Step 3.
Configure the UDP Connection Configuration as follows:
Select Enable Serial to Ethernet. This allows data from the serial side, to be forwarded on to the Ethernet side, of the DM.
Do NOT Enable Ethernet to Serial. This prevents data from the Ethernet side to be forwarded on to the serial side of the DM.
Do not Enable Ethernet Receive From Any IP Address. This prevents any data from being accepted from any UDP origination point. We are not setting this unit up to accept any data.
Enter the IP address of 192.168.11.11 and Port 7000 for the DM1 in the Target IP Address field.
![]() |
|
Select Save and then Ok to save the configuration and return to the Server Configuration page.
Repeat the port configuration options for the remaining ports.
This test procedure is slightly different from the test procedure illustrated in the previous subsection.
Follow Steps 1 through 5 in the Testing this Configuration discussion (One-to-Many, One-Way UDP Data Transfer Configuration) to start the test procedure.
In the COM3, 4, 5, and 6 windows, type any character. This character should appear in COM2 in Test Terminal. If two or more, of COMs3, 4, 5, or 6 sends data at the same time, the data is merged in COM2 with no way to tell which device sent which information. COMs3, 4, 5, and 6 must use a round-robin approach so that the data may be properly evaluated.
![]() |
|
In this example an DM 4-port (DM4), using all four serial ports, forwards its incoming serial data from all four ports out through Ethernet to an DM1 connected to the PC COM2 by means of a null-modem cable. The four serial ports may connect to four different PCs, scales, etc. Data is returned from the DM1 to the four ports.
There are several steps in the procedure:
Example Application: A scale is connected to each of the DM4 ports and it sends data to a single monitoring PC (COM2). Each scale sends its data in sequence and no two scales send data at the same time. This is critical as there is no means by which data can be identified as to the sending port, and the data is intermingled. For example: Port 1 sends ABCD and Port 2 sends 1234, both at the same time. The data seen in COM2 may be A1B2CD34. Once data has been received from all four ports, the application needs to send an acknowledgment so that the scale can reset in preparation for the next measurement.
Use this procedure to configure many-to-one, one-way UDP data transfer. This example represents four serial ports out to out serial port with data reply.
Configure the DM1 serial characteristics as shown in Step 3.
Configure the UDP Connection Configuration as follows:
Select Enable Serial to Ethernet. This allows data from the serial side, to be forwarded on to the Ethernet side, of the DM.
Select Enable Ethernet to Serial. This allows data from the Ethernet side to be forwarded on to the serial side of the DM.
Do NOT Enable Ethernet Receive From Any IP Address. Leaving this disabled requires us to enter the IP address of the sending unit, in this case the IP of the DM4 in the Target IP Address field.
Enter the IP address of 192.168.11.41 as the DM4 in the Target IP Address field. Since we want replies to be sent to each of the four ports on the DM4 unit, we must enter the IP addresses and port values of each port.
192.168.11.41 7000
192.168.11.41 7001
192.168.11.41 7002
192.168.11.41 7003
Configure Port 1 of the DM4 serial characteristics as shown in Step 3.
Configure the UDP Connection Configuration as follows:
Select Enable Serial to Ethernet. This allows data from the serial side, to be forwarded on to the Ethernet side, of the DM.
Select Enable Ethernet to Serial. This allows data from the Ethernet side to be forwarded on to the serial side of the DM.
Do NOT Enable Ethernet Receive From Any IP Address. This prevents any data from being accepted from any UDP origination point.
Enter the IP address of 192.168.11.11 and Port 7000 for the DM1 in the Target IP Address field.
![]() |
|
Repeat the Port Configuration options for the remaining ports.
Follow Steps 1 through 5 in the Testing this Configuration discussion (One-to-Many, One-Way UDP Data Transfer Configuration) to start the test procedure.
In the COM3, 4, 5, and 6 windows, type any character. This character should appear in COM2 in Test Terminal. If two or more of COM3, 4, 5, or 6 sends data at the same time, the data is merged in COM2 with no way to tell which device sent which information. COMs3, 4, 5, and 6 must use a round-robin approach so that the data may be properly evaluated.
![]() |
|
Generated on 05/17/2011 H:M:S Terms/Conditions | Contact Us | Site Index Send any comments or questions regarding this Web site to the webmaster. ![]() Minneapolis, Minnesota 55311-3646 1-800-926-6876 |