USR IOT USR-TCP232-ED2 User manual

Multifunctional serial to Ethernet module user manual www.usriot.com
Jinan USR IOT Technology Co., Ltd tec@usr.cnPage 1 /
/
/
/9
Multifunctional
Multifunctional
Multifunctional
Multifunctional S
S
S
S erial
erial
erial
erial to
to
to
to E
E
E
E thernet
thernet
thernet
thernet converter
converter
converter
converter
(USR-TCP232- E2 )
(USR-TCP232-ED2)
(USR-TCP232- 410 )
File version: V1. 0.7
Jinan USR IOT Technology Co., Ltd. works on LAN and WAN and wireless for MCU
to Ethernet Solutions, Ethernet, WIFI, GPRS, and Wireless modules, we can supply
custom design for those usage, look ing forward to cooperat e with you.

Multifunctional serial to Ethernet module user manual www.usriot.com
Jinan USR IOT Technology Co., Ltd tec@usr.cnPage 2 /
/
/
/9
Contents
Contents
Contents
Contents
Multifunctional S erial to E thernet converter ..................................................................................... 1
1. Introduction ................................................................................................................................... 4
1.1. Overview ........................................................................................................................... 4
1.2 Features ............................................................................................................................... 4
1.2. Applications ....................................................................................................................... 5
1.3. Order information .............................................................................................................. 5
1.4. Electrical c haracteristics .................................................................................................... 6
1.5. Difference between E45 series and M4 series ................................................................... 7
2. Module Test ................................................................................................................................... 7
2.1. Hardware connection ......................................................................................................... 7
2.2. Login .................................................................................................................................. 9
2.3. Default parameter test ...................................................................................................... 10
3. Work mode .................................................................................................................................. 12
3.1. UDP mode ........................................................................................................................ 12
3.2. TCP Client mode ............................................................................................................. 13
3.3. UDP Server mode ............................................................................................................ 15
3.4. TCP Server mode ............................................................................................................. 16
3.5. Httpd Client mode ............................................................................................................ 18
4. Hardware ..................................................................................................................................... 20
4.1. USR-TCP232-E2 ............................................................................................................. 21
4.1.1. Hardware ............................................................................................................... 21
4.1.2. Power and other pin ............................................................................................... 21
4.1.3. LED status ............................................................................................................. 23
4.1.4. Serial(TTL) interface ............................................................................................. 23
4.2. USR-TCP232-ED2 .......................................................................................................... 24
4.2.1. Hardware ............................................................................................................... 24
4.2.2. Power ..................................................................................................................... 24
4.2.3. LED status ............................................................................................................. 24
4.2.4. Serial(TTL) interface ............................................................................................. 25
4.2.5. hardware connection .............................................................................................. 27
4.3. USR-TCP232-410 ............................................................................................................ 28
4.3.1. Hardware ............................................................................................................... 28
4.3.2. Power ..................................................................................................................... 28
4.3.3. LED status ............................................................................................................. 29
4.3.4. RS232 interface ..................................................................................................... 29
4.3.5. RS485 interface ................................................................................................. 29
4.4. RJ45 interface .................................................................................................................. 30

Multifunctional serial to Ethernet module user manual www.usriot.com
Jinan USR IOT Technology Co., Ltd tec@usr.cnPage 3 /
/
/
/9
4.5. Reload .............................................................................................................................. 31
5. Paramters configuration .............................................................................................................. 31
5.1. Web page ......................................................................................................................... 31
5.2. Serial port ........................................................................................................................ 31
5.3. network command(setup software) .................................................................................. 31
6. Specific functions ........................................................................................................................ 32
6.1. ModbusRTU to ModbusTCP ........................................................................................... 32
6.2. Hardware flow control(RTS/CTS) ................................................................................... 34
6.3. MAC address ................................................................................................................... 34
6.4. Packet time and Packet length ......................................................................................... 34
6.5. Sync baud via net(2217) .................................................................................................. 35
6.6. Webserver port ................................................................................................................. 36
6.7. Module id and id type ...................................................................................................... 36
6.8. Device name .................................................................................................................... 36
6.9. Buffer data before connected ........................................................................................... 37
6.10. Reset timeout ................................................................................................................. 38
6.11. Local IP config ............................................................................................................... 38
6.11.1. Static IP ................................................................................................................ 39
6.11.2. DHCP ................................................................................................................... 39
6.12. DNS ............................................................................................................................... 39
6.13. Comm param ................................................................................................................. 40
6.14. Username and password ................................................................................................ 40
6.15. Firmware revision .......................................................................................................... 40
6.16. RS485 ............................................................................................................................ 40
6.17. Firmupdate ..................................................................................................................... 40
6.18. Common questions ........................................................................................................ 43
6.18.1. Work across network segment ............................................................................. 43
6.18.2. Ping is OK but can not open web pages .............................................................. 43
6.18.3. After firm update, can not open web page ........................................................... 43
6.18.4. When connection established, server received serval chars ................................ 43
6.18.5. Every serval seconds, module reconnect ............................................................. 43
7. C ontact us .................................................................................................................................... 44
8. Modified history .......................................................................................................................... 45

Multifunctional serial to Ethernet module user manual www.usriot.com
Jinan USR IOT Technology Co., Ltd tec@usr.cnPage 4 /
/
/
/9
1.
1.
1.
1. Introduction
Introduction
Introduction
Introduction
1.1.
1.1.
1.1.
1.1. Overview
Overview
Overview
Overview
The USR-TCP232- M4 product series i s an intelligent plug-and-play
RS232 /RS485/UART to Ethernet adapter that enables any device or machine with a serial
port, to become Ethernet network and Internet enabled , and have network data transmit
ability . It features a powerful built-in device server, so you can access your serial device
from anywhere in the world over internet! The USR-TCP232- M4 is easily configured via
local network, or through the serial port and web pages .
We Provide Network products and the best service to our customers.
• Chips • Modules • Software • Products
1.2
1.2
1.2
1.2 Features
Features
Features
Features
1. New Cortex-M 4 kernel, industrial working temperature range (-40~85 ℃) , elaborate
optimization TCPIP protocol stack, stable and reliable.
2. selectable RS232 /RS485/UART port, Different port can be used together, work
independently, distinguish the connected serial port via port number.
3. Auto-MIDX function, discretionarily connect cross-over or direct network cable,
automatic switching.
4. Support TCP Server, TCP Client, UDP, UDP Server, HTTPD Client ,websocket,
various of ethernet protocols .
5. Support virtual serial port, provide corresponding software.
6. Serial port highest baud rate from 600bps to 102 4 0 00 bps(COM0 only max
256000bps) .
7. wide voltage input, more applications.
8. Support DHCP , automatically access IP, can inquire the facility within network
through the UDP broadcast protocol (using software USR-TCP232-E45 Setup) .
9. Supply the protocol for VIP customers
10. Provide PC TCP/IP SOCKET programming example, VB , C++ , Delphi , Android , IOS.
11. A built-in web page, also parameter setting via web, can customize web pages for
users.
12. Can also set via UDP broadcast , provide the set up protocol.
13. Reload button, a key restore default Settings.
14. RJ45 status indicator light, RJ45 interface built-in isolation transformer, 2 KV
isolation.

Multifunctional serial to Ethernet module user manual www.usriot.com
Jinan USR IOT Technology Co., Ltd tec@usr.cnPage 5 /
/
/
/9
15. The global unique MAC address bought from IEEE, the user can define MAC
address (please state when you make order) .
16. Support upgrade firmware via network.
17. Support visit IP and domain name at the same time
18. Support up to 8 link from client when act as TCP Server, same data will be send to all
client.
19. Can modify http server port from default port 80 for module built-in http server.
20. Support Keepalive, detect a dead link quickly and make sure the connection more
stable.
1.2.
1.2.
1.2.
1.2. Applications
Applications
Applications
Applications
Fire and Security Panels
Vending Machines
Point of Sale Terminals
Remote equipment management
IT management services
Access Control
Industrial Control
Home Automation
Instrumentation
Building Control
Power Management
1.3.
1.3.
1.3.
1.3. Order
Order
Order
Order information
information
information
information
Type
Type
Type
Type Part
Part
Part
Part Numbers
Numbers
Numbers
Numbers Electric
Electric
Electric
Electric interface
interface
interface
interface
Serial to Ethernet Converter USR-TCP232- E2 2 * TTL 232
Serial to Ethernet Converter USR-TCP232- ED2 3 * TTL232
Serial to Ethernet Converter USR-TCP232- 410 1 * RS232 , 1 * RS485
Diagram 1 - 1 Order information
Note:
For webpages: PORT0, PORT1 and PORT2, represent below:
TCP232-E2: PORT0 represent UART0, PORT1 represent UART1, PORT2 not available in
hardware;
TCP232-ED2: PORT0 represent UART0, PORT1 represent UART1, PORT2 represent
UART2;
TCP232-410: PORT0 represent RS232 ,PORT1 represent RS485 ,PORT2 not available;

Multifunctional serial to Ethernet module user manual www.usriot.com
Jinan USR IOT Technology Co., Ltd tec@usr.cnPage 6 /
/
/
/9
1.4.
1.4.
1.4.
1.4. Electrical
Electrical
Electrical
Electrical c
c
c
c haracteristics
haracteristics
haracteristics
haracteristics
All the data is get at tempture 25 ℃, network cable plug in, max data transmittion(10ms, 20
byte, sending data constantly).
Working tempterature range: -40~85 ℃.
Unpowered storage temperature and humidity range: -65~150 ℃, 5~95%RH
Input Voltage
range
Current
cosumption at
3.3V
Current
cosumption at
5V
Current
cosumption at
12V
TCP232-E2 DC3.3 or 5V 120mA(115-12
5)
120mA(115-12
5)
Not available
TCP232-ED2 DC3.3 or 5V 120mA(115-12
5)
120mA(115-12
5)
Not available
TCP232-410 DC5~18V Not available 86.5mA(85-87.
9)
44.3mA(43.7-4
5.1)

Multifunctional serial to Ethernet module user manual www.usriot.com
Jinan USR IOT Technology Co., Ltd tec@usr.cnPage 7 /
/
/
/9
1.5.
1.5.
1.5.
1.5. Difference
Difference
Difference
Difference between
between
between
between E45
E45
E45
E45 series
series
series
series and
and
and
and M4
M4
M4
M4 series
series
series
series
The new M4 series is a function full-compatible product to the old E45 series product, but there
are still difference.
difference TCP232-E45 TCP232-M4
frequency 50MHz 120MHz
Flash size 256Kbyte 512Kbyte
RAM size 64Kbyte 256Kbyte
current 180~190mA (-E )120mA (-E2 )
485 connector 3.81-2 5.08-2
size ultra-tiny product USR-K3
LEDs No LED holder, more tight
webpage No change New web page style
Setup software Use V1.x.x.x setup software V2.x.x.x or higher
Comm number 3 3(have 1 and more Model)
2.
2.
2.
2. Module
Module
Module
Module Test
Test
Test
Test
If you have any question, please contact us the in the client support center:
http://h.usriot.com/index.php?c=frontTicket&m=sign
http://h.usriot.com/index.php?c=frontTicket&m=sign
http://h.usriot.com/index.php?c=frontTicket&m=sign
http://h.usriot.com/index.php?c=frontTicket&m=sign
2.1.
2.1.
2.1.
2.1. Hardware
Hardware
Hardware
Hardware connection
connection
connection
connection
The picture below is a serial device server of TCP232-410. It have 1 RS232 and 1 RS485,
they can work independently, now we are going to test it's RS232 function.

Multifunctional serial to Ethernet module user manual www.usriot.com
Jinan USR IOT Technology Co., Ltd tec@usr.cnPage 8 /
/
/
/9
Diagram 2 - 1 TCP232-410 with case
Power 410 with DC5V adaptor(make sure you can supply at least 200mA current at DC5V)
Connect 410's RJ45 to PC directly with network cable( No need to distinguish cross or direct
connect cable ), or connect the module and PC via switch or router and set the PC's ip address to
192.168.0.201(must be a format of 192.168.0.xxx), netmask 255.255.255.0.
Connect 410 and PC's comm port together, with a standard female-female extend
cable(default cross-over cable).
Here is TCP232-410's default net configuration ,
IP address: 192.168.0.7
Subnet mask: 255.255.255.0
The default gateway: 192.168.0.1

Multifunctional serial to Ethernet module user manual www.usriot.com
Jinan USR IOT Technology Co., Ltd tec@usr.cnPage 9 /
/
/
/9
2.2.
2.2.
2.2.
2.2. Login
Login
Login
Login
Open a browser, type and Login above IP address http://192.168.0.7 , you will enter module's
setup web pages.
User name and password are both “ admin ” , this can be modified after login into the system.
Default user name: admin
Default password: admin

Multifunctional serial to Ethernet module user manual www.usriot.com
Jinan USR IOT Technology Co., Ltd tec@usr.cnPage 10 /
/
/
/9
After you have login, you can see w ebpage as follow , this is config page for TCP232-410
Diagram 2 - 2 page after login
Current config and status: include display of firmware revision, ip address and mac address.
RS232: represent RS232 port config.
Port1 settings: represent RS485 port config.
Port2 settings: not available.
Web to serial: wesocket function which enable you send and receive data between webpage
and comm port 0(Port 0 only).
Miscellaneous s ettings : used to set key parameters such as module IP and module name , also
include reset and reload button in webpage.
2.3.
2.3.
2.3.
2.3. Default
Default
Default
Default parameter
parameter
parameter
parameter test
test
test
test
To test briefly in default working mode, on the foundation of the hardware connection, use
the matched software USR-TCP232-Test to make transmit t ing and receiving test. The left side is

Multifunctional serial to Ethernet module user manual www.usriot.com
Jinan USR IOT Technology Co., Ltd tec@usr.cnPage
11
/
/
/
/9
serial port, use software default settings, the right side is the network part, set to TCP Client and
server to be IP 192.168.0.7, port 23.
By default, the two COM port to be set as TCP Server mode, port is 23/26.
This illustration shows the 10 ms two-way simultaneous automatically transmit screenshots.
As the allocated memory of the display control is limited, in order to test large amount of data
transceiver, here will suspend the receive display, only statistical data. Below is the effect after
testing for a few hours, and transmit t ing millions of bytes. Stable and reliable, without a byte loss.

Multifunctional serial to Ethernet module user manual www.usriot.com
Jinan USR IOT Technology Co., Ltd tec@usr.cnPage 12 /
/
/
/9
Diagram 2 - 3 default working mode communication
3.
3.
3.
3. Work
Work
Work
Work mode
mode
mode
mode
3.1.
3.1.
3.1.
3.1. UDP
UDP
UDP
UDP mode
mode
mode
mode
When in UDP mode, after power on, module will connect to remote server's specific port.
When received data from the remote server, module will send it to serial port;otherwise,
when data is received from serial port, send it to ethernet.
The assist software can be download from link below:
http://www.usriot.com/Download/199.html
http://www.usriot.com/Download/199.html
http://www.usriot.com/Download/199.html
http://www.usriot.com/Download/199.html

Multifunctional serial to Ethernet module user manual www.usriot.com
Jinan USR IOT Technology Co., Ltd tec@usr.cnPage 13 /
/
/
/9
Diagram 3 - 1 UDP mode communication test
Note:
1) local port and remote port can be different.
2) Max UDP send length(ethernet to serial) is 1472 bytes. If you want to send more than 1472
Bytes, please div it into shorter packet.
3.2.
3.2.
3.2.
3.2. TCP
TCP
TCP
TCP Client
Client
Client
Client mode
mode
mode
mode
Open web pages and config module to
Telent Mode: TCP Client
Remote port number: 23
Telnet Server Addr: 192.168.0.131

Multifunctional serial to Ethernet module user manual www.usriot.com
Jinan USR IOT Technology Co., Ltd tec@usr.cnPage 14 /
/
/
/9
Diagram 3 - 2 TCP Client mode
Use USR-TCP232-Test,
Diagram 3 - 3 TCP Client communication test

Multifunctional serial to Ethernet module user manual www.usriot.com
Jinan USR IOT Technology Co., Ltd tec@usr.cnPage 15 /
/
/
/9
3.3.
3.3.
3.3.
3.3. UDP
UDP
UDP
UDP Server
Server
Server
Server mode
mode
mode
mode
Like the socket UDP server in pc API. Many to one data transfer supported, the data
from uart/232/485 part will be transformed to the last UDP packet
’
s address.
Here show 2 UDP client communicate with server, server send data to the last client
communicates with it.

Multifunctional serial to Ethernet module user manual www.usriot.com
Jinan USR IOT Technology Co., Ltd tec@usr.cnPage 16 /
/
/
/9
Diagram 3 - 4 Client 1 <-> server
Diagram 3 - 5 Client 2 <-> server
3.4.
3.4.
3.4.
3.4. TCP
TCP
TCP
TCP Server
Server
Server
Server mode
mode
mode
mode
TCP Server mode have max 8 client connected at max;
When act as TCP server, only local port matters,

Multifunctional serial to Ethernet module user manual www.usriot.com
Jinan USR IOT Technology Co., Ltd tec@usr.cnPage 17 /
/
/
/9
Diagram 3 - 6 select workmode TCP server

Multifunctional serial to Ethernet module user manual www.usriot.com
Jinan USR IOT Technology Co., Ltd tec@usr.cnPage 18 /
/
/
/9
Diagram 3 - 7 test result, we can establish more than 1 client to test
3.5.
3.5.
3.5.
3.5. Httpd
Httpd
Httpd
Httpd Client
Client
Client
Client mode
mode
mode
mode
This function is easier used for webpage developer. We establish one web server page, add
this:
[<?php echo $_GET['data']; ?>]
Means we can GET data from HTTP client
’
s request. Open this URL:
www.usr.cn/1.php?data=12345 , the web page is downbelow, we can see that the web server have
got the data(12345),
Diagram 3 - 8 Request www.usr.cn/1.php?
www.usr.cn/1.php?
www.usr.cn/1.php?
www.usr.cn/1.php? and upload data
Then we take another way, set module Work mode HTTPD Client, Target address
www.usr.cn,
www.usr.cn,
www.usr.cn,
www.usr.cn, Target port 80.

Multifunctional serial to Ethernet module user manual www.usriot.com
Jinan USR IOT Technology Co., Ltd tec@usr.cnPage 19 /
/
/
/9
Diagram 3 - 9 config HTTPD Client
Open USR-TCP232-Test, and type in a string such as "12345", then send via comm port to
TCP232-410, and see the response from www.usr.cn
www.usr.cn
www.usr.cn
www.usr.cn .

Multifunctional serial to Ethernet module user manual www.usriot.com
Jinan USR IOT Technology Co., Ltd tec@usr.cnPage 20 /
/
/
/9
Diagram 3 - 10 module act as HTTPD Client
In the response, all the data returned, but the http header from server will be returned, too. the
user may need to parse this to get your data.
4.
4.
4.
4. Hardware
Hardware
Hardware
Hardware
About the new PCB libraries file, we can download it from website
http://www.usriot.com/Download/221.html
http://www.usriot.com/Download/221.html
http://www.usriot.com/Download/221.html
http://www.usriot.com/Download/221.html .
Other manuals for USR-TCP232-ED2
1
This manual suits for next models
2
Table of contents
Other USR IOT Media Converter manuals

USR IOT
USR IOT USR-W600 User manual

USR IOT
USR IOT USR-C322 User manual

USR IOT
USR IOT USR-TCP232-302 User manual

USR IOT
USR IOT USR-CANET200 User manual

USR IOT
USR IOT USR-TCP232-E2 User manual

USR IOT
USR IOT USR-W630 User manual

USR IOT
USR IOT USR-N540 User manual

USR IOT
USR IOT USR-DR404 User manual

USR IOT
USR IOT USR-N520 User manual

USR IOT
USR IOT RS232 User manual