Jinan USR IOT Technology USR-TCP232-410S User manual

USR-TCP232-410S User Manual
2 / 46
Contents
1. Quick Start.......................................................................................................................................................................4
1.1. Hardware Testing Environment........................................................................................................................ 4
1.2. Data Transmission Testing................................................................................................................................ 4
1.3. Default Parameter Test...................................................................................................................................... 5
2. Overview..........................................................................................................................................................................7
2.1. Brief Introduction.................................................................................................................................................7
2.2. Features............................................................................................................................................................... 7
2.3 Declaration of Compatibility with USR-TCP232-410.....................................................................................8
2.4 Basic Parameter.................................................................................................................................................. 8
3. Hardware......................................................................................................................................................................... 8
3.1 Dimension............................................................................................................................................................. 8
3.2 Indicators...............................................................................................................................................................9
4. Software Design Reference......................................................................................................................................... 9
4.1 Functions...............................................................................................................................................................9
4.1.1 TCP Client Mode....................................................................................................................................10
4.1.2 TCP Server Mode.................................................................................................................................. 13
4.1.3 UDP Client Mode....................................................................................................................................14
4.1.4 UDP Server Mode..................................................................................................................................16
4.1.5 TCP and UDP Comparison.................................................................................................................. 17
4.1.6 HTTPD Client..........................................................................................................................................17
4.1.7 USR-VCOM Application........................................................................................................................19
4.1.8 DHCP....................................................................................................................................................... 21
4.1.9 DNS.......................................................................................................................................................... 21
4.1.10 Webpage to serial................................................................................................................................21
4.1.11 KeepAlive...............................................................................................................................................25
4.1.12 Modbus RTU to Modbus TCP............................................................................................................25
4.1.13 Device ID...............................................................................................................................................25
4.1.14 Webpage Port.......................................................................................................................................26
4.1.15 Revise MAC..........................................................................................................................................26
4.1.16 Firmware Upgrade...............................................................................................................................26
4.1.17 Customized Webpage.........................................................................................................................26
4.1.18 Hardware Flow Control RTS/CTS.....................................................................................................27
4.1.19 Reload....................................................................................................................................................27
4.1.20 Flow Calculation...................................................................................................................................27
4.1.21 Synchronous baud rate (RFC2217)..................................................................................................27
4.2 Setting Protocol..................................................................................................................................................29
4.2.1 Network Setting Protocol...................................................................................................................... 29
4.2.2 Serial Setting Protocol...........................................................................................................................34
5. Parameter Configuration............................................................................................................................................ 34
5.1 Software Configuration.....................................................................................................................................34
5.2 Webpage Configuration....................................................................................................................................41

USR-TCP232-410S User Manual
3 / 46
5.3 Serial Configuration...........................................................................................................................................45
6. Contact ..................................................................................................................................................................... 46

USR-TCP232-410S User Manual
4 / 46
1. Quick Start
USR-TCP232-410S Serial Device Server is used to data bidirectional transparent transmission from
serial to Ethernet. User doesn't need to consider details because protocol conversion is made within the
server. The serial side is serial data and the Ethernet side is TCP/IP data packet, which works through simple
configuration on built-in webpage or setting software.
Any question during testing, please submit it on our technical support center: http://h.usriot.com
1.1. Hardware Testing Environment
Connect 410S (shorten for USR-TCP232-410S) ‘COM with PC’s via serial cable(or USB to serial cable).
Connect network interface between 410S’ and PC’s via network cable.
Then supply power for 410S with our AC adapter((make sure you can supply at least 200mA current at
DC5V) ).
The below picture will show you the connection.
Hardware Connection
Notes:
AC adapter and connection cable are provided by USR IOT.
RS232 is involved, no connection for RS485.
PCs in above picture is the same one.
1.2. Data Transmission Testing
Check PC setting after hardware connection.
1) Turn off PC Firewall and anti-virus software.
2) Disable the network card nothing to do with testing and just leave one local connection.
3) As for 410S connect PC directly, should set static IP for PC, which in the same network segment
with 410S, like 192.168.0.201.

USR-TCP232-410S User Manual
5 / 46
PC Local Connection Configuration
1.3. Default Parameter Test
Default parameter is as below excel:
User name
admin
Password
admin
IP address
192.168.0.7
Subnet Mask
255.255.255.0
Default Gateway
192.168.0.1
Default Work Mode
TCP Server
Default Local Port
23
Baud Rate
115200
Parity bit/Data bit/Stop bit
None/8/1
Data Transmission Test:
1) Open test software “USR-TCP232-Test.exe”, and do hardware connection according to Chapter 1.1
Hardware Testing Environment.
2) The right side is Network Settings: TCP Client, IP address: 192.168.0.7, port #: 23, click “Connect”
to build TCP connection.
The left side is Serial Settings: Baud Rate: 115200, Parity/Data bit/Stop bit: None/8/1,
Click “Open” to enable the COM.
Then we can test data transmission between COM and network.
Data from serial to network is: PC’ COM->410S’ COM->410S Ethernet port->PC Network;
Data from network to serial is: PC Network->410S Ethernet port->410S’ COM-> PC’s COM.

USR-TCP232-410S User Manual
7 / 46
2. Overview
2.1. Brief Introduction
USR-TCP232-410S is to transmit transparently between TCP/UDP data packet and RS232/RS485
interface. It carries ARM Processor, low power, fast speed, high stability.
2.2. Features
1. Multiple indicator lights for convenient debugging
2. Power-line terminal for industrial application
3. ARM kernel, Industrial operating temperature range and reliable TCP/IP protocol stack
4. Auto-MDI/MDIX,RJ45 port with 10/100Mbps
5. TCP Server,TCP Client,UDP,UDP Server and HTTPD Client work mode
3. Two ports can work independently at the same time
4. Distinguish connected serial ports via port#
5. Support virtual serial port and provide corresponding software USR-VCOM
6. Serial baud rate from 600bps to 230.4K bps; Check bit of None,Odd,Even,Mark and Space
7. Support static IP, DHCP and search devices within network through UDP broadcast.
8. Provide serial and network setting protocol, key codes explanation
9. Provide PC TCP/IP SOCKET programming example,VB,C++,Delphi,Android,IOS
10. Built-in webpage; also can customize webpage for VIP customers
11. Reload button,one key to restore default settings
12. RJ45 with Link/Data indicator light,built-in isolation transformer and 2 KV electromagnetic isolation
13. The global unique MAC address bought from IEEE, also user can define MAC address
14. Support upgrade firmware via network
15. Support DNS
16. Support web port revise (80 by default)
17. Support keepalive, detect dead links and reconnect rapidly
18. Support account and password, used to page log in and network settings safely
19. Support one channel Websocket,realize bidirectional transparent transmission between webpage
and serial.
20. Support Modbus RTU to Modbus TCP
21. Support UDP broadcast function, send and receive data from all IP in the network

USR-TCP232-410S User Manual
8 / 46
2.3 Declaration of Compatibility with USR-TCP232-410
410S’ software is fully compatible with 410, as well as power interface, RS485 interface, RS232
interface and network interface, not for outlook and size.
2.4 Basic Parameter
Parameter
Value
Input Voltage
DC5~36V
Working Current
90mA@5V
Operating Temp.
-40~+85°C
Power
<1W
Storage Temp.
-45~105°C, 5~95%RH
3. Hardware
3.1 Dimension

USR-TCP232-410S User Manual
9 / 46
3.2 Indicators
1) POWER: indicate power. It is on when power is supplied.
2) WORK: indicate working status. It twinkles when 410S works well. If it is on or off for a period, 410S
works improperly, you should cut the power and restart.
3) 232TX: It twinkles when 410S RS232 sends data.
4) 232RX: It twinkles when 410S RS232 receives data.
5) 485TX: It twinkles when 410S RS485 sends data.
6) 485RX: It twinkles when 410S RS485 receives data.
4. Software Design Reference
4.1 Functions

USR-TCP232-410S User Manual
10 / 46
410S Function Diagram
4.1.1 TCP Client Mode
1) Different from UDP mode, its connection can be disconnected and kept.
2) Identify disconnects. After connection built, it sends keepalive searching packet every 15 seconds.
Once there is an interrupt, it can be detected rapidly then make 410S disconnect from former
connection and reconnect.
3) It will connect to same source port when 410S try to connect server and local port is not “0”.
4) It supports USR Synchronous baud rate (Similar RCF2217), which can revise 410S’ serial
parameter as baud rate accordingly. This function should be combined with USR-VCOM.
5) Within same LAN, 410S must be in the same network segment then can communicate. If not, 410S
must be set with right one.
6) Support USR Cloud.

USR-TCP232-410S User Manual
11 / 46
7) Support Modbus TCP function.
8) When 410S work under TCP Client to connect to TCP server, Destination IP and port should be
cared. The IP can be device with same LAN, also can be different LAN or cross public network. If it
connects to server cross public network, the server should have public IP.
9) When 410S work under TCP Client, It connect to the port of destination IP actively, not accepting
other connection request.
10) When 410S work under TCP Client, need to set 410S’s local port# to be “0 then it can visit server
with randomized, so that it can solve in-successful re-connection in case server judge connection
status abnormally and shield 410S’ re-connection request.
11) TCP Client Test
1USR-TCP232-TEST software:
Need to connect to PC’s TCP Server, its IP: 192.168.0.95, Port#: 20108, Click “Listening”
TCP Client Test Screenshot
2
Open USR-TCP232-M4, E45 setup software
Set 410S as TCP Client, Destination IP: 192.168.0.95. Destination port:20108.
Click “Save COM1”, and search 410S. Then check the parameter when 410S is found.

USR-TCP232-410S User Manual
13 / 46
TCP Client Software Configuration
4.1.2 TCP Server Mode
1) Different from UDP, its connection can be disconnected and kept.
2) 410S listens to local port set firstly, respond and build connection when there is a request. COM
send data received to all devices connected with 410S at the same time.
3) It supports USR Synchronous baud rate (Similar RCF2217), which can revise 410S’ serial
parameter as baud rate accordingly. This function should be combined with USR-VCOM.
4) It support 8 clients connections at max. (32 clients will be improved in the following.)
5) Support Modbus TCP function.
6) Under TCP Server mode, 410S listens to local port actively and no monitoring for IP and port
connected. When the 9th client is connected, the oldest one will be ticked.
7) Test
Set 410S TCP Server Mode, local port 23, same as default.
Open USR-TCP232-TEST Software: set the mode: TCP Client, Destination IP and port. Click”Connect”
to test data transmission.

USR-TCP232-410S User Manual
14 / 46
TCP Server Test Screenshot
4.1.3 UDP Client Mode
1) It belongs to UDP protocol, no connection, just sending data.
2) 410S only communicate with destination port of IP. Otherwise, the data cannot be received.
3) Destination Address is 255.255.255.255, then it can make UDP broadcast and receive broadcast
data. Broadcast within segment as 192.168.0.255, it can be sent but cannot be received currently.
4) Under UDP Client and UDP Server mode, host PC allow data length 1460 bytes at max to 410S.
5) Test:
1Open USR-TCP232-M4, E45 Setup Software: build a UDP firstly. PC’s IP is 192.168.0.95. Port
to be listened is 20108.
2Open USR-TCP232-TEST Software: set 410S UDP Client, destination port: 20108.
3Click “Send” at serial side. Destination IP and port becomes 410S’ after receiving the data.
Then click “Send” in network part and send data to COM.

USR-TCP232-410S User Manual
16 / 46
4.1.4 UDP Server Mode
1) It doesn't verify source IP address. Every time 410S receive a UDP data packet, it revise destination
IP to where data comes and it replies to the IP and port which communicate latest.
2) Test:
1Open USR-TCP232-M4, E45 Setup Software: Set 410S UDP Server, local port: 23.
2Open USR-TCP232-TEST Software twice. Set work mode to be UDP, Destination IP and port same
with 410S’.
Click “Send” then the COM receive data.
Click “Send” at serial side, only the software communicate latest can receive the data.
UDP Server Test Screenshot

USR-TCP232-410S User Manual
17 / 46
UDP Server Test Screenshot
4.1.5 TCP and UDP Comparison
TCP
UDP
Advantages
Stable, no loss
Reliable connection mechanism
Resend after data sending fails
No connection mechanism, simple and
flexible
Suit for small packet and high frequency
Accurate data sending interval
Disadvantages
Long packet starting
Jam for small packet and high frequency
Inaccurate interval resulted from check
and resend mechanism
More loss under severe network
environment
4.1.6 HTTPD Client
It is used to transmit data collected by 410S to HTTP server or gain data from HTTP server.
410S handle complex HTTP protocol so user just do programming for serial, and not need to worry about
HTTP.
When 410S send data to HTTP server via serial, packet header needed is sent by 410S.

USR-TCP232-410S User Manual
18 / 46
And 410S totally transmit the data returned, the user need to take part the packets and analysis.
Test:
Open its webpage
1. Set 410S HTTPD Client.
2. Set HTTPD packet Header.
HTTPD Client Webpage Configuration Screenshot
1HTTPD Client only support GET to request HTTPD Server. POST will be available in the
following.
2GET/ is settled packet header.
31.php?data= is visit/submit the page
4$ is data sent by serial.
5HTTP/1.1 is protocol requested.
6Host is IP address/ domain requested.
7Enter twice

USR-TCP232-410S User Manual
19 / 46
3. Save the parameters and restart 410S.
4. Open serial to send data, then the data can be submitted onto our webpage server.
5. For more, please refer to Application Case on USR Website: www.usriot.com.
HTTPD Client Test Screenshot
4.1.7 USR-VCOM Application
It solve the transmission problem of traditional device PC software working as COM. USR-VCOM
support receiving data from set COM and send serial data out as network.
How to connect 410S with Visual COM.
1. Set 410S TCP Server
1) Open USR-VCOM software, click “Add COM” and select COM 2 (avoid existed COM),
Set protocol: TCP Client, Destination IP and port same with410S’, Note: fill the device name.
2) “OK” to check whether connection is built. “Connected” shows ready for data transmission.
2. More details, please refer to http://www.usriot.com/?s=vcom
Table of contents
Popular Server manuals by other brands

Avid Technology
Avid Technology Unity Media Engine Site preparation guide

ZyXEL Communications
ZyXEL Communications NSA325 v2 user guide

HP
HP D7171A - NetServer - LPr Installation

ICP DAS USA
ICP DAS USA PDS-220F Series user manual

Intel
Intel SC5650BCDP Technical product specification

Affirmative
Affirmative 2221 Specifications