CommFront DVS-232-2 User Manual

CommFront DVS-232-2 User Manual

Compact industrial rs-232 device server
Hide thumbs Also See for DVS-232-2:

Advertisement

Quick Links

COMPACT INDUSTRIAL
RS-232 DEVICE SERVER
(RS-232 TO ETHERNET / MODBUS RTU
TO MODBUS TCP CONVERTER)
CommFront
Revision: 1.0
USER MANUAL
Model: DVS-232-2

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DVS-232-2 and is the answer not in the manual?

Questions and answers

Summary of Contents for CommFront DVS-232-2

  • Page 1 COMPACT INDUSTRIAL RS-232 DEVICE SERVER (RS-232 TO ETHERNET / MODBUS RTU TO MODBUS TCP CONVERTER) CommFront Revision: 1.0 USER MANUAL Model: DVS-232-2...
  • Page 2: Table Of Contents

    3.5.7 Allow Settings via Serial Port ........................27 3.6 Preferences ..........................27 3.6.1 Device Name and Web Server Port ......................27 3.6.2 User Name and Password .......................... 28 3.6.3 Maximum Number of Client Connections ....................28 3.6.4 Auto-Restart Timeout ..........................29 TROUBLESHOOTING ......................30 CommFront User Manual...
  • Page 3 4.2.6 Test with the 232Analyzer software ......................37 Appendix: AT COMMANDS SET ....................39 1. Introduction ..........................39 2. Syntax ............................39 Command syntax ..............................39 Response syntax ..............................39 3. Software Tools and Examples ..................40 4. AT Commands Set ........................41 CommFront User Manual...
  • Page 4: Introduction

    The unit supports TCP and UDP for both server and client modes, and it features static IP and DHCP for minimizing configuration errors caused by manual entries. The DVS-232-2 features auto-negotiation for 10 or 100M data rates, and it also supports MDI and MDI-X (auto-crossover); no DIP switch or jumper settings are required.
  • Page 5: Factory Settings

    1x 3-Way Terminal Block (TX, RX, GND) Connectors (Power): 2-way terminal block Dimensions (L x W x H): 4.3x1.1x2.6 in (110x28x65 mm) Weight: 0.2 lb (90 g) Operating Temperature: -40ºF to 185ºF (-40ºC to 85ºC) Operating Humidity: 5% to 95% Non-condensing CommFront User Manual...
  • Page 6: Connections

    OFF: Serial port is idle RX Indicator Flashing: Serial port is receiving data OFF: Serial port is idle 1.4 Typical Applications CommFront device servers are designed for harsh industrial applications and provide a simple yet reliable solution for the following applications: − IIoT −...
  • Page 7: Device Server

    APPLICATION 1: DEVICE SERVER 1.4.2 Serial over Ethernet The DVS-232-2 supports one channel bi-directional RS-232 to Ethernet conversion which can be used to transmit serial data over Ethernet and TCP/IP network. “Serial over Ethernet” allows you to make use of an existing Ethernet network and extend the distance across a facility or to other facilities all over the globe.
  • Page 8: Modbus Gateway

    The DVS-232-2 can act as a Modbus gateway that encapsulates Modbus packets in standard TCP/IP packets. This enables the filed Modbus devices to connect and communicate over existing Ethernet and fiber networks instantly.
  • Page 9: Converting Rs-232 Network Into Tcp/Ip

    By using device servers, you can convert existing RS-232/RS-485 field devices such as PLC and RTU into TCP/IP devices, which can directly be controlled by the TCP/IP control software. With CommFront’s Serial-TCP software (an advanced serial to TCP/IP bridging software), you can also convert conventional serial control software into TCP/IP software instantly and seamlessly without a need of software modifications.
  • Page 10: Remote Control And Monitor

    From award-winning 232Analyzer Protocol Analyzer to Advanced Serial to TCP/IP Bridging Software, and from industrial Serial Converters, Isolators, Repeaters, and Hubs to the compact Device Servers, CommFront offers a complete hardware and software solution for controlling and monitoring conventional serial and modern TCP/IP communications.
  • Page 11: Setting Up The Device Server

    2.0 Setting Up the Device Server 2.0 SETTING UP THE DEVICE SERVER The DVS-232-2 offers two easy ways for configuration: AT commands via COM port or Web Management via the built-in web server (see “Web Management”). 2.1 AT Commands (optional) Assume that your PC is at the same sub network of “172.16.0.x”.
  • Page 12: Web Management

    10) The DVS-232-2 responds with a confirmation code: +ok 11) Restart the DVS-232-2 for the new settings to take effect: AT+Z<CR> 12) The DVS-232-2 is now at the same sub network of your PC. Proceed to web management for further configurations (see “Web...
  • Page 13: Web Management

    Note: For server mode, the number of remote TCP connections are indexed and can be used for identifying the source of TCP packets (see “Index” feature). CommFront User Manual...
  • Page 14: Local Ip Settings

    Subnet Mask: 255.255.255.0 Gateway: 192.168.1.254 DNS Server 8.8.8.8 Notes: Remote IP Address and Port Mapping are to be set at “Serial Port” web page. Please consult with your network administrator for IP and Port settings, if necessary. CommFront User Manual...
  • Page 15: Serial Port Settings

    Operating Mode: TCP Client 3.4.1 COM Port Settings The COM port settings must match with the RS-232 device to which the DVS-232-2 is connected, COM port settings include the following parameters: Baud Rate: 600bps to 460.8Kbps Data Bit: 7 or 8...
  • Page 16: Operating Mode

    HTTPD follows a classical client-server model, which means requests are initiated by the client, usually a web browser. There are a total of five operating modes in CommFront’s device servers. CommFront User Manual...
  • Page 17 3.0 Web Management 1) TCP Client: Under TCP client mode, the DVS-232-2 automatically initiates a TCP network connection request to the remote server. If the connection is successful, client’s IP address will be displayed under server’s “current status”, and if the connection is unsuccessful, the DVS-232-2 will keep on sending connection requests until it is successful.
  • Page 18 3.0 Web Management 2) TCP Server: Under TCP server mode, the DVS-232-2 will monitor its local port and establish connections whenever there is a new TCP connection request. TCP server allows a maximum of 8 client connections concurrently. If the number of client...
  • Page 19 Local Port: Enter local port number. If the number is 0, the device will use a random number. Note: Serial data received on the UDP client’s COM port will be forwarded to remote UDP server only. Other clients will not receive the same serial data. CommFront User Manual...
  • Page 20 Local Port: Enter local port number for the server. 0 is not allowed. Note: UDP server does not have any destination IP and port to forward its serial data and therefore, communications must be initiated from UDP client. CommFront User Manual...
  • Page 21 3.0 Web Management 5) HTTPD Client: The DVS-232-2 uses HTTPD client (or HTTP client), typically used to communicate with Apache HTTP server, to create a virtual connection between its serial port and a HTTP server, which can be used for posting or fetching serial data to / from HTTP server.
  • Page 22: Reset

    3.0 Web Management 3.4.3 Reset When the “Reset” function is enabled, the DVS-232-2 will automatically restart after 30 unsuccessful connection attempts. This performs the same function as AT command “AT+CLIENTRST”. 3.4.4 Link When the “Link” function is enabled, the “Link” pin will output a low-level voltage whenever there is a TCP connection.
  • Page 23: Rfc2217

    Byte 4 to 6 is to convert the decimal number directly to a hexadecimal number, e.g. 9600 = 002580; 119200 = 004B00; 115200 = 01C200 ** Byte 8 is to add together byte 4, 5, 6, and byte 7, e.g. 00+25+80+03=A8; 00+4B+00+03=4E; 01+C2+00+03 = C6 CommFront User Manual...
  • Page 24 Sending RFC2217 commands from CommFront’s Serial-TCP software: 1) Set the device as TCP server. 2) Launch CommFront’s Serial-TCP free software and type in the Device Server’s IP address and Port number. Then choose “TCP Client” mode and click the “Activate” button.
  • Page 25: Advanced Settings

    Unchecked 3.5.1 Modbus RTU to Modbus TCP When selected, it will turn the DVS-232-2 into a Modbus RTU to Modbus TCP gateway or a Modbus RTU to Modbus TCP protocol converter. Modbus RTU data received from the serial port will be converted to Modbus TCP and transmitted over TCP/IP network.
  • Page 26: Registry Packet

    Registry packets are used for establishing connections or identifying data sources for IIoT cloud applications. Registry Packet is used for TCP client mode. Registry Packet Type: None, MAC address, User-Defined, CF Cloud Registry Packet Contained in: Connection String, Data String, Both User-Defined Packet: ASCII string or HEX code CommFront User Manual...
  • Page 27: Short Connection

    (range from 1 to 8, to be set under “Preferences”), there are two ways to handle existing and new connections: disable old connections or deny new connections. If the “Disable Old Connections” checkbox is selected, the oldest connection will be killed if there is a new client connection request. CommFront User Manual...
  • Page 28: Clear Cached Serial Data Upon Tcp/Ip Connection

    Prior to a successful TCP connection, data received from a serial port will be cached in DVS-232-2’s serial buffer (up to 2KB). The user can choose to clear or keep this cached serial data. Note: This feature does not work for Httpd Client mode or TCP Client mode with the “short...
  • Page 29: User Name And Password

    4 (default), it is recommended to limit the overall data throughput to 2.5KB/s for smooth operations (e.g. reduce the serial port’s baud rate to 9,600bps for TCP clients or apply the “short connection” feature). Maximum Number of Client Connections: 1 to 8 CommFront User Manual...
  • Page 30: Auto-Restart Timeout

    This feature allows the user to set the “Auto-Restart” timeout. The device will automatically restart when timeout is reached, which helps to prevent dead links due to long idle time. Auto-Restart Timeout: 0 or 60 to 65,535 seconds (0 = no auto-restart) CommFront User Manual...
  • Page 31: Troubleshooting

    4.0 Troubleshooting 4.0 TROUBLESHOOTING 4.1 Software Tools CommFront offers two software tools for testing and troubleshooting the device server: the awarding-winning 232Analyzer protocol analyzer software and the advanced Serial to TCP/IP bridging software. From the simplest ping and loopback tests, to a more complicated Modbus RTU and Modbus TCP tests, and to the most...
  • Page 32: Self Tests

    (e.g. Modbus RTU) into TCP/IP networks (e.g. Modbus TCP). The Serial- TCP supports all major Windows OS including Windows 10, 8, 7, Vista, and XP, both 32 and 64 bits. 4.2 Self Tests 4.2.1 Connecting the Power and Host PC CommFront User Manual...
  • Page 33: Ping Test

    A ping measures the round-trip time for packets to be sent from the local host to a destination device (e.g. a computer or a device server) and back. Use the Windows CMD tools or CommFront Serial-TCP software to perform a ping test. A ping test with Windows’ CMD tools A ping test with CommFront’s Serial-TCP software...
  • Page 34: Setting Up A Device Server With At Commands

    Send ASCII command: +++ The DVS-232-2 responds with an ASCII code: a Send ASCII command within 3 seconds: a The DVS-232-2 responds with an ASCII code, and it now enters into “AT Command” mode: +ok Check current network settings: AT+WANN<CR>...
  • Page 35: Setting Up Device Sever With Web Management Tools

    10) The DVS-232-2 responds with a confirmation code: +ok 11) Restart the DVS-232-2 for the new settings to take effect: AT+Z<CR> 12) The DVS-232-2 is now at the same sub network as your PC. Note: Settings below are illustrated with the default IP settings. You may also go to web management for further configuration (see “Web...
  • Page 36 COM port settings must match with the RS-232 device to which the DVS- 232-2 is connected. Set the device server as TCP Server and port number as 502. The device server becomes a TCP Sever now. Note: For more detailed information about Web Management tools, please refer “Web Management”. CommFront User Manual...
  • Page 37: Test With The Serial-Tcp Software

    COM port or TCP/UDP port, which is very useful for testing the device server. Download and install the free version of CommFront’s Serial-TCP software (download link: https://www.commfront.com/pages/downloads). Set Serial-TCP as a TCP client and connect to device server’s TCP port (assume that the device server is set as a TCP server).
  • Page 38: Test With The 232Analyzer Software

    Similarly, when commands are sent from the Serial-TCP software, the 232Analyzer software should receive the same commands. Download and install the free version of CommFront’s 232Analyzer software (download link: https://www.commfront.com/pages/downloads). Set Serial-TCP as a TCP client and connect to the device server’s TCP port (assume that the device server is set as a TCP server).
  • Page 39 4.0 Troubleshooting CommFront User Manual...
  • Page 40: Appendix: At Commands Set

    1. Introduction AT commands are used for controlling modem, GSM, and many other types of communication equipment that come with a serial port. CommFront’s device servers use AT commands for querying or setting parameters such as COM port and IP parameters.
  • Page 41: Software Tools And Examples

    Appendix: AT Commands Set 3. Software Tools and Examples CommFront’s 232Analyzer software provides an easy and fast way for sending AT commands (download link: https://www.commfront.com/pages/downloads). Run the 232Analyzer software and set the COM port settings to 115.2Kbps, 8, N, 1. Then select “ASCII” for both TX and RX data formats.
  • Page 42: At Commands Set

    Response AT+RELD<CR> Require device restart for factory settings to take effect Query MAC address Command Response AT+MAC<CR> +OK=<MAC> Example: +OK=D8C561010001 Query or set Network parameters Command (type=DHCP/STATIC) Response AT+WANN<CR> +OK=<type,IP_address,subnet_m ask,gateway> AT+WANN=<type,IP_address,subn et_mask,gateway><CR> Example: AT+WANN=STATIC, 192.168.1.200,255.255.255.0,192.168 .1.254<CR> CommFront User Manual...
  • Page 43 (for client) Example 1: AT+SOCK=TCPS, 192.168.1.211,502<CR> Example 2: AT+SOCK=TCPC, 192.168.1.211,20000<CR> 10) Query TCP connection status Command Response AT+SOCKLK<CR> +OK=<status> Status: CONNECT – TCP connection has been established DISCONNECT – TCP connection has not been established Example: +OK=CONNECT CommFront User Manual...
  • Page 44 Example: AT+REGTCP=FIRST<CR> 15) Query or set Device ID and cloud key for cloud connection Command Response AT+REGCLOUD<CR> +OK=<deviceID,cloudKey> AT+REGCLOUD=<deviceID,cloudKe y><CR> Device ID – Device ID for cloud connection Cloud Key – Cloud key for cloud connection Example: AT+REGCLOUD=00000001,0001<CR> CommFront User Manual...
  • Page 45 AT+HTPHEAD=<data><CR> Header: Less than 200 characters Example: AT+HTPHEAD=User_Agent: Mozila/4.0<CR> 20) Enable or disable Remove HTTP request header Command Response AT+HTPCHD<CR> +OK=<status> AT+HTPCHD=<status><CR> Status: ON – Remove HTTP request header OFF – Keep HTTP request header Example: AT+HTPCHD=OFF<CR> CommFront User Manual...
  • Page 46 25) Enable or disable Restart after 30 times of unsuccessful connection attempts (TCP client mode) Command Response AT+CLIENTRST<CR> +OK=<status> AT+CLIENTRST=<status><CR> Status: ON – Enable restart after 30 times of unsuccessful TCP connection attempts OFF – Disable restart after 30 times of unsuccessful TCP connection attempts Example: AT+CLIENTRST=ON<CR> CommFront User Manual...
  • Page 47 29) Enable or disable Short connection function Command Response AT+SOCKSL<CR> +OK=<status> AT+SOCKSL=<status><CR> Status: ON – Enable short connection function OFF – Disable short connection function Example: AT+SOCKSL=ON<CR> 30) Query or set Short connection timeout Command Response AT+SHORTO<CR> +OK=<time> AT+SHORTO=<time><CR> Time: 2-255s Example: AT+SHORTO=3<CR> CommFront User Manual...
  • Page 48 OFF – Disable Modbus RTU to Modbus TCP conversion Example: AT+MODTCP=ON<CR> 34) Query or set Device name Command Response AT+MID<CR> +OK=<name> AT+MID=<name><CR> Name: Up to 14 characters Example: AT+MID=DVS-232-2<CR> 35) Query or set Web port Command Response AT+WEBPORT<CR> +OK=<port> AT+WEBPORT=<port><CR> Example: AT+WEBPORT=80<CR> CommFront User Manual...
  • Page 49 39) Query or set No data auto-restart timeout Command Response AT+RSTIM<CR> +OK=<time> AT+RSTIM=<time><CR> Time: 0 – No auto-restart 60-65535s – Auto-restart timeout if no data received from serial or network port Example: AT+RSTIM=3600<CR> 40) Get Help information Command Response AT+H<CR> +OK=<info> CommFront User Manual...

Table of Contents