
S erial to Ethernet module USR-TCP232-T24 series http://en.usr.cn
S
erial
S
erial
S
S erial
erial to
The USR- TCP232-T24 series is data transparent transmission e quipment for convert TCP or UDP
socket data to RS232 or RS485 or RS422 , easy to use, small size, low power, powered by ARM processors ,
high speed , high Stability.
Our concept: simple functions, stable performance, reasonable price.
Jinan USR IOT Technology Limited works on LAN and WAN and wireless for MCU to Ethernet Solutions,
Ethernet, WIFI, GPRS, Zigbee and Wireless modules, we can supply custom design for those usage, look ing
forward to cooperat e with you.
to
Ethernet
to
Ethernet
to Ethernet
Ethernet module
(USR-TCP232-T, USR-TCP232-2)
(USR-TCP232-S, USR-TCP232-D)
(USR-TCP232-24, USR-TCP232-200)
(USR-TCP232-300, USR-TCP232-442)
module
module
module
File version: V 3.0
Jinan USR IOT Technology Limited Page 1 of 53 tec@usr.cn

S erial to Ethernet module USR-TCP232-T24 series http://en.usr.cn
Content
Content
Content
Content
Serial to Ethernet module ............................................................................................................................................... 1
1 . Product introduce ............................................................................................................................................... 4
1.1 Introduction ................................................................................................................................................. 4
1.2 Function Features ...................................................................................................................................... 4
1.3 Product Features ....................................................................................................................................... 4
1.4 Applications Area ....................................................................................................................................... 5
1.5 Order information ....................................................................................................................................... 5
2. Hardware Description .......................................................................................................................................... 6
2.1 USR-TCP232-S ......................................................................................................................................... 6
2.1.1 Technical Specifications ................................................................................................................ 6
2 .1.2 Hardware Description .................................................................................................................... 7
2.1.21 Pin Description ..................................................................................................................... 7
2.1.22 Mechanical Dimensions ...................................................................................................... 8
2.1.23 Connection Diagram ............................................................................................................ 9
2.2 USR-TCP232-T ....................................................................................................................................... 10
2.2.1 Technical Specifications .............................................................................................................. 10
2.2.2 Hardware Description ..................................................................................................................
2.2.21 Pin description ....................................................................................................................
2.2.22 LED status ........................................................................................................................... 12
2.2.23 Mechanical Dimensions .................................................................................................... 12
2.2.24 Connection Diagram .......................................................................................................... 12
2.3 USR-TCP232-D ....................................................................................................................................... 13
2.3.1 Technical Specifications .............................................................................................................. 13
2. 3 .2 Hardware Description .................................................................................................................. 14
2.3 .21 Pin Description ................................................................................................................... 14
2.3.22 LED status ........................................................................................................................... 14
2.3.23 Mechanical Dimensions .................................................................................................... 15
2.4 USR-TCP232-2 ........................................................................................................................................ 16
2.4.1 Technical Specifications .............................................................................................................. 16
2.4. 2 Hardware Description .................................................................................................................. 17
2.4.21 Pin Description ................................................................................................................... 17
2.4.22 Interface Description .......................................................................................................... 17
2.4.23 Jumper usage Mechanical Dimensions ....................................................................... 18
2.5 USR-TCP232-200 ................................................................................................................................... 19
2.5.1 Technical Specifications .............................................................................................................. 19
2. 5.2 Hardware Description .................................................................................................................. 20
2.5.21 Pin Description ................................................................................................................... 20
2.5.22 Interface Description .......................................................................................................... 20
2.5.23 Jumper usage Mechanical Dimensions ....................................................................... 21
2.6 USR-TCP232-24 ..................................................................................................................................... 22
2.6.1 Technical Specifications .............................................................................................................. 22
2.6.2 Hardware Description .................................................................................................................. 23
11
11
Jinan USR IOT Technology Limited Page 2 of 53 tec@usr.cn

S erial to Ethernet module USR-TCP232-T24 series http://en.usr.cn
2.6.21 LED status ........................................................................................................................... 23
2.6.22 Interface Description .......................................................................................................... 23
2.6.23 Jumper usage Mechanical Dimensions ....................................................................... 25
2.7 USR-TCP232-300 ................................................................................................................................... 26
2.8 USR-TCP232-442 ................................................................................................................................... 27
2.8.1 Technical Specifications .............................................................................................................. 27
2.8.2 Hardware Description .................................................................................................................. 28
2.8.21 LED status ........................................................................................................................... 28
2.8.22 Interface Description .......................................................................................................... 28
2.8.23 Terminal functional specifications .................................................................................... 29
2.8 .24 Jumper usage Mechanical Dimensions ....................................................................... 29
3 . Work Mode ......................................................................................................................................................... 30
3.1 Block diagram .......................................................................................................................................... 30
3.2 TCP Client Mode ..................................................................................................................................... 30
3.3 UDP mode ................................................................................................................................................ 30
3 .4 UDP server Mode .................................................................................................................................... 31
3 .5 TCP server Mode .................................................................................................................................... 32
3.6 Special functions ..................................................................................................................................... 33
3.61 RS485 ............................................................................................................................................. 33
3.62 Link .................................................................................................................................................. 33
3.63 Reset ............................................................................................................................................... 33
3.64 ID ..................................................................................................................................................... 33
3.65 Index ................................................................................................................................................ 36
3.66 RFC2217 ........................................................................................................................................ 36
4. Configure ............................................................................................................................................................ 39
4.1 Configure command format ................................................................................................................... 39
4.2 Configure through RS232 ...................................................................................................................... 40
4.4 USR-TCP232-SETUP ............................................................................................................................. 41
5. Test Methods ...................................................................................................................................................... 41
5.1 General
Test
............................................................................................................................................. 41
5.2 Virtual COM .............................................................................................................................................. 45
6. Apps ..................................................................................................................................................................... 49
6.1 COM<->TCP/UDP<->server .................................................................................................................. 49
6.2 Virtual COM .............................................................................................................................................. 49
6.3 COM <-> TCP/UDP <-> COM ............................................................................................................... 50
6.4 many COM <-> UDP server <-> COM ................................................................................................. 50
6.5 COM<-> TCP/UDP<->proxy server <->TCP/UDP<->COM .............................................................. 51
6.6 COM <-> TCP/UDP <-> server ............................................................................................................. 52
7. Contact us ........................................................................................................................................................... 53
8. Doc History ......................................................................................................................................................... 53
Jinan USR IOT Technology Limited Page 3 of 53 tec@usr.cn

S erial to Ethernet module USR-TCP232-T24 series http://en.usr.cn
1
Product
.
1
Product
.
1
1
Product
Product introduce
.
.
1.1
Introduction
1.1
Introduction
1.1
1.1 Introduction
Introduction
USR-TCP232-T24 series is used to TCP network packet or UDP packet with the microcontroller /
RS232/RS485/RS422 interface data transparent transmission equipment. The product is equipped with ARM
processors, high speed, high stability. Module class of compact size, low power consumption; server refined
aluminum metal shell, compression, anti-drop, anti-interference performance .
USR-TCP232-T24 4 series is more functional embedded Ethernet serial port data conversion products, it
has built-in TCP/IP protocol stack, the user can use it easily to complete embedded devices network function,
save manpower material resources and development time, make our products faster to market, enhance
competitiveness.
There is 10/100M auto detected RJ45 interface, serial communication baud rate up to 230.4Kbps, can
work at TCP Server, TCP Client, UDP and UDP server mode, setup easily via series or RJ45.
1.2
Function
1.2
Function
1.2
1.2 Function
Function Features
introduce
introduce
introduce
Features
Features
Features
100M high speed Ethernet card, 10/100M auto detect interface;
�
support AUTO MDI/MDIX, Can use a crossover cable or parallel cable connection;
�
RS232 bound rate can set up from 300 to 256000 ;
�
RS485 bound rate can set up from 300 to 115200 ;
�
Work mode TCP Server, TCP Client, UDP , UDP Server ;
�
Working model related parameters can be set via a serial port or network ;
�
3.3 V and 5 V TTL level compatible (module products );
�
Virtual serial port supported;
�
Unique heartbeat package mechanism to ensure that the connection is reliable, put an end to connect
�
feign death ;
across the gateway, across switches, routers ;
�
Can work in LAN, also can work on the Internet (external network) ;
�
Transmission distance: RS232 - 15 meters, RS485 - 1000 meters, cable 200 meters (after the switches
�
together through the Internet, no distance limit) .
1.3
Product
1.3
Product
1.3
1.3 Product
Product Features
� 32 bits ARM CPU inside;
� LAN : 10/100Mbps; protect: Built-2KV isolated electromagnetic;
� serial port baud rate: from 2400 to 256 KBPS can be set up, and up to 3 MBPS ;
� network protocol: ETHERNET ARP IP UDP TCP ICMP;
� Software tool: configuration software, TCP/UDP test soft, RS232 debug soft ;
� Configuration method: RS232 or via Ethernet, free software available ;
� Operating temperature: -25~75 ° C ;
� Save the environment: -40~85 ° C, 5~95%RH.
Features
Features
Features
Jinan USR IOT Technology Limited Page 4 of 53 tec@usr.cn

S erial to Ethernet module USR-TCP232-T24 series http://en.usr.cn
1.4
Applications
1.4
Applications
1.4
1.4 Applications
Applications Area
Serial device server module for connecting serial industrial automation equipment such as PLC, sensors,
meters, motors, drives, bar code readers and displays and design. Serial server module is widely used in
attendance, access control systems, Canteen machines, POS systems, building control, fire control, the
banking system, engine room monitoring, UPS monitoring, power, oil, environmental monitoring, industrial
applications and other areas all need to serial devices Data network management where you can use a serial
device server solution.
1.5
Order
1.5
Order
1.5
1.5 Order
Order information
Model
Model
Model
Model number
information
information
information
number
number
number
Area
Area
Area
Powe
Powe
Powe
Powe r
DC
DC
DC
DC
r
supply
r
supply
r supply
supply
I
nterface
I
nterface
I
I nterface
nterface
Network
Network
Network
Network port
10/100Mbps
10/100Mbps
10/100Mbps
10/100Mbps
port
port
port
Package
Package
Package
Package Type
(
Module
(
Module
(
( Module
Module products
Type
Type
Type
products
products
products )
)
)
)
USR-TCP232- S 3.3V TTL
USR-TCP232-T 5V/3.3V TTL
USR-TCP232-D 5V/3.3V TTL
USR-TCP232-2
USR-TCP232-200
USR-TCP232- 2 4
USR-TCP232-300
USR-TCP232-442
Model Description: USR is our brand, TCP232 that TCPIP to serial module product, 2/4/T that serial-side
level in the form.
B USB/5V
terminal
5 V power
adapter/terminal
5 V power
adapter/terminal
5 V power
adapter/terminal
5 V power
adapter/terminal
RS232
RS232
RS232/R
S485
RS232/R
S485
RS485/R
S422
PHY chip network
interface
T
ake 2kv magnetic
isolation RJ45
W ith 1.5KV PHY signal
of electromagnetic
separation
Take 2 kv magnetic
isolation RJ45
Take 2 kv magnetic
isolation RJ45
Take 2 kv magnetic
isolation RJ45
Take 2 kv magnetic
isolation RJ45
Take 2 kv magnetic
isolation RJ45
Stamp Hole
Package
Pin package (DIP
package)
Pin package
(DIP package)
Jinan USR IOT Technology Limited Page 5 of 53 tec@usr.cn

S erial to Ethernet module USR-TCP232-T24 series http://en.usr.cn
2
.
Hardware
2
.
Hardware
2
2 .
. Hardware
Hardware Descriptio
2.1
USR-TCP232-S
2.1
USR-TCP232-S
2.1
2.1 USR-TCP232-S
USR-TCP232-S
USR-TCP232-S Model Stamp Hole Package TTL
serial port level, the PHY signal, the small size of the
TCPIP serial protocol module .
Descriptio
Descriptio
Descriptio n
n
n
n
2.1.1
2.1.1
2.1.1
2.1.1 Technical
Technical
Technical
Technical Specifications
M
ajor
M
M
M ajor
Package Type Stamp hole encapsulation (SMD encapsulation )
Schematic diagram
and PCB library
Power Supply
Serial port level TTL level
Network interface PHY signal
Physical Siz e :
Temperature and
humidity range
Warranty period 2 years
characteristic
ajor
characteristic
ajor characteristic
characteristic P
Specifications
Specifications
Specifications
P
arameter
P
arameter
P arameter
arameter
See the CD library file
VCC: 3.3 V DC typical values, minimum 3.15, the biggest 3.45
suitable for 3.3 V microcontroller system
PCB size : 33*20mm ( L*W )
Operating temperature: -25 to 75 ° C
Storage temperature: -40 to 80 ° C
Storage humidity: 5% to 95% RH
V,
Jinan USR IOT Technology Limited Page 6 of 53 tec@usr.cn

2
.1.2
2
2
2 .1.2
Hardware
.1.2
Hardware
.1.2 Hardware
Hardware Description
S erial to Ethernet module USR-TCP232-T24 series http://en.usr.cn
Description
Description
Description
2.1.21
2.1.21
2.1.21
2.1.21 Pin
Pin
Description
Pin
Description
Pin Description
Description
N
o.
N
N
N o.
Pin
o.
Pin
o. Pin
Pin Function
1 GND Signal ground GND
2 RST RESET
3 ISP Update pin
4 RXD
5 TXD Module data
6 CFG
Function
Function
Function Descrip
Module data is
received
transmission
Serial ports
Configuration pins
Descrip
Descrip
Descrip tions
Pin received 200ms low to reset the whole module.
If you do not use, can be suspended.
Note: The module is powered automatic reset, it is
recommended that connect the MCU IO port, reset the MCU
control module in a particular case.
This pin to ground to the module power module can be
upgraded.
If you do not use, can be suspended.
Data receiving end of the module, TTL level 5V or 3.3V
microcontroller
Data transmission end of the module, TTL level can be
connected to 5V or 3.3V microcontroller
Low, you can use the serial port module configuration.
Normal working hours left floating or tied HIGH.
Note: give the power module, and then pulled down the CFG
pin to enter the serial configuration state.
tions
tions
tions
7 LD2
8 LD1
9 2V5
10 RX+ Received signal + Receive Data+
11
RX- Received signal - Receive Data -
12 TX+ Transceiver Data+ Transceiver Data+
13 TX- Transceiver Data - Transceiver Data-
14 RTS the alternate pin Can be used as RS485 enable pin
15 CTS the alternate pin Can be used as a network connection status indicator pin
16 VCC Power supply Power supply : 3.3V @ 200mA
Network data
instructions
Network connection
status indicator
PHY chip
Output voltage
Network data indicator LED connected to VCC, without the
current limiting resistance (module existing)
Network connection status indicator LED connected to VCC,
without the current limiting resistor (module already)
PHY chip to control the voltage output, access networks
transformer center tap
Jinan USR IOT Technology Limited Page 7 of 53 tec@usr.cn

S erial to Ethernet module USR-TCP232-T24 series http://en.usr.cn
2.1.22
2.1.22
2.1.22
2.1.22 Mechanical
Mechanical
Mechanical
Mechanical Dimensions
Unit: mm
Dimensions
Dimensions
Dimensions
Jinan USR IOT Technology Limited Page 8 of 53 tec@usr.cn

S erial to Ethernet module USR-TCP232-T24 series http://en.usr.cn
2.1.23
2.1.23
2.1.23
2.1.23 Connection
Connection
Connection
Connection Diagram
Diagram
Diagram
Diagram
The network interface hardware connection diagram :
Jinan USR IOT Technology Limited Page 9 of 53 tec@usr.cn

S erial to Ethernet module USR-TCP232-T24 series http://en.usr.cn
2.2
USR-TCP232-T
2.2
USR-TCP232-T
2.2
2.2 USR-TCP232-T
USR-TCP232-T
USR-TCP232-T Model pin package, TTL serial port
level, of 2KV electromagnetic isolation RJ45 interface, small
size TCPIP serial protocol module.
2.2.1
2.2.1
2.2.1
2.2.1 Technical
Technical
Technical
Technical Specifications
M
ajor
M
M
M ajor
Package Type
Schematic diagram and
PCB library
Power Supply
W orking current 150 m A , the maximum 200 m A
Serial port level TTL level
Network interface PHY signal
Physical Siz e :
Temperature and
humidity range
characteristic
ajor
characteristic
ajor characteristic
characteristic P
Specifications
Specifications
Specifications
P
arameter
P
arameter
P arameter
arameter
Pin type package (DIP package )
See the CD library file
T he module adopts double power supply interfaces, either is ok .
VCC:
VCC:
VCC:
VCC: 3.3 V DC typical values, minimum 3.15, the biggest 3.45
suitable for 3.3 V microcontroller system
VDD:
VDD:
VDD:
VDD: 5 V DC typical values, minimum 4.5 , the biggest 5.5
suitable for 5 V microcontroller system
PCB size : 50.5*22.6mm ( L*W )
Module size: 55*23*23 mm ( L * W * H )
Operating temperature: -25 to 75 ° C
Storage temperature: -40 to 80 ° C
Storage humidity: 5% to 95% RH
V,
V,
Warranty period 2 years
Jinan USR IOT Technology Limited Page 10 of 53 tec@usr.cn

S erial to Ethernet module USR-TCP232-T24 series http://en.usr.cn
2.2.2
2.2.2
2.2.2
2.2.2 Hardware
2.2.21
2.2.21
2.2.21
2.2.21 Pin
Hardware
Hardware
Hardware Description
Pin
description
Pin
description
Pin description
description
P
in
P
in
P
P in
in N
VDD Power 1 4.5~5.5V
VCC Power 2 3.3V
GND GND Power and Communications Ground
RST Reset pin 200ms GND reset the module
TXD UART transmission pin 5v tolerance
RXD UART receive pin 5v tolerance
CFG Configure pin
Description
Description
Description
N
ame
N
ame
N ame
ame D
Configure mode when this pin GND, normal
mode when VCC or idle
D
escription
D
escription
D escription
escription
Module in the upper left four spare pins from
right to left :
Pin
Pin
Pin
Pin Name
LINK LINK a lternate p in Network connectivity status indicator pin
EN EN a lternate p i n RS485 enable pin
ISP Update pin
Name
Name
Name D
This pin to ground to the module power
module can be upgraded.
D
escription
D
escription
D escription
escription
Jinan USR IOT Technology Limited Page 11 of 53 tec@usr.cn

S erial to Ethernet module USR-TCP232-T24 series http://en.usr.cn
2.2.22
2.2.22
2.2.22
2.2.22 LED
2.2.23
2.2.23
2.2.23
2.2.23 Mechanical
LED
LED
LED status
There are two leds in RJ45 connector, one is green, and the other is yellow.
Mechanical
Mechanical
Mechanical Dimensions
Unit: mm
status
status
status
LED
LED
LED
LED N
green Link state Light when 100Mbps network linked
yellow Data transfer Blink when there is data in or out
N
ame
N
ame
N ame
ame D
Dimensions
Dimensions
Dimensions
D
escription
D
escription
D escription
escription
2.2.24
2.2.24
2.2.24
2.2.24 Connection
Jinan USR IOT Technology Limited Page 12 of 53 tec@usr.cn
Connection
Connection
Connection Diagram
Diagram
Diagram
Diagram
MCU
51
,
AVR
,
PIC
51
,
AVR
,
PIC
51
51
,
,
AVR
AVR
,
,
PIC
PIC
Tx
+
Tx
+
Tx
Tx
+
GND
GND
GND
GND
TXD
TXD
TXD
TXD
RXD
RXD
RXD
RXD
,
ARM
,
ARM
,
,
ARM
ARM
VCC
GND
GND
GND
GND
RXD
RXD
RXD
RXD
TXD
TXD
TXD
TXD
USR
-
TCP 232
RS
232
to Ethernet
- T
VCC
+
Tx
Tx
Tx
Tx
Rx
Rx
Rx
Rx
Rx
Rx
Rx
Rx
1
-
-
-
-
2
+
+
+
+
3
-
-
-
-
6

S erial to Ethernet module USR-TCP232-T24 series http://en.usr.cn
2.3
USR-TCP232-D
2.3
USR-TCP232-D
2.3
2.3 USR-TCP232-D
USR-TCP232-D
USR-TCP232-D models to pin package, TTL serial
port level, 1.5KV electromagnetic isolation PHY signal,
small size, TCPIP compatible weeks meritorious product
serial protocol module.
2.3.1
2.3.1
2.3.1
2.3.1 Technical
Technical
Technical
Technical Specifications
M
ajor
M
M
M ajor
Package Type
Schematic diagram and
PCB library
Power Supply
Serial port level TTL level
Network interface PHY signal with 1.5KV Ethernet signal
C haracteristic Pin compatible ZLG products
Physical Siz e :
Temperature and
humidity range
characteristic
ajor
characteristic
ajor characteristic
characteristic P
Specifications
Specifications
Specifications
P
arameter
P
arameter
P arameter
arameter
Pin type package (DIP package )
See the CD library file
T he module adopts double power supply interfaces, either is ok .
VCC:
VCC:
VCC:
VCC: 3.3 V DC typical values, minimum 3.15, the biggest 3.45
suitable for 3.3 V microcontroller system
VDD:
VDD:
VDD:
VDD: 5 V DC typical values, minimum 4.5 , the biggest 5.5
suitable for 5 V microcontroller system
PCB size: 44*32mm ( L*W )
Module size: 44* 32*15.4 mm ( L * W * H )
Operating temperature: -25 to 75 ° C
Storage temperature: -40 to 80 ° C
Storage humidity: 5% to 95% RH
V,
V,
Warranty period 2 years
Jinan USR IOT Technology Limited Page 13 of 53 tec@usr.cn

2.
3
.2
2.
2.
2. 3
2.
2.
2.
2. 3
Hardware
3
.2
Hardware
3 .2
.2 Hardware
Hardware Description
3
.21
3
.21
3 .21
.21 Pin
Pin Name Description Pin Name Description
Description
Description
Description
Pin
Description
Pin
Description
Pin Description
Description
S erial to Ethernet module USR-TCP232-T24 series http://en.usr.cn
1 TX+ Transceiver Data+
2 TX- Transceiver Data- 23 NC
3 RX+
4 RX-
5 Data_LED Link to yellow Led and
6 TXD Transmit data 19 NC
7 RXD Receive data 18 ISP For Update
8 RTS RS485 enable pin 17 NC
9 CFG Config enable port for
10 RST Reset pin, 200ms low
11
12 GND
GND
To
RJ45 Pin3 22 NC
To
RJ45 Pin6 21 NC
20 NC
through a resistance to
VCC
16 3.3V DC3.3V input and5V use
RS232 Config
15 LINK Link to green Led and
for reset
To
GND 14 5V DC5V input @200mA
To
GND 13 5V DC5V input @200mA
A
breach here
1 is ok.
Through a resistance to
VCC
2.3.22
2.3.22
2.3.22
2.3.22 LED
Jinan USR IOT Technology Limited Page 14 of 53 tec@usr.cn
LED
LED
LED status
USR-TCP232-D Red LED, If the indicator is energized, the module power input is correct .
status
status
status

S erial to Ethernet module USR-TCP232-T24 series http://en.usr.cn
2.3.23
2.3.23
2.3.23
2.3.23 Mechanical
Unit: mm
2.3.24
2.3.24
2.3.24
2.3.24 Connection
Mechanical
Mechanical
Mechanical Dimensions
Connection
Connection
Connection Diagram
Dimensions
Dimensions
Dimensions
Diagram
Diagram
Diagram
Note:
Note:
Note:
Note: Isolation transformer has been on this module, so you need not to add Isolation transformer in
your RJ45 port.
Jinan USR IOT Technology Limited Page 15 of 53 tec@usr.cn

S erial to Ethernet module USR-TCP232-T24 series http://en.usr.cn
2.4
USR-TCP232-
2.4
USR-TCP232-
2.4
2.4 USR-TCP232-
USR-TCP232- 2
USR-TCP232- 2 Model is RS232 level, 2KV electromagnetic isolation RJ45 connector, USB type B or
terminals powered serial server.
2
2
2
2.4.1
2.4.1
2.4.1
2.4.1 Technical
Technical
Technical
Technical Specifications
M
ajor
M
M
M ajor
Power Supply DC 5V @ 1A power adapter
Serial port level RS232
Network interface RJ45 ports with 2KV electromagnetic isolation
Physical Siz e :
Temperature and
humidity range
Warranty period 2 years
characteristic
ajor
characteristic
ajor characteristic
characteristic P
Specifications
Specifications
Specifications
P
P
P arameter
PCB size: 67.3*34mm(L*W)
P roduct size : 86.6 × 34 × 25 mm ( L * W * H )
Operating temperature: -25 to 75 ° C
Storage temperature: -40 to 80 ° C
Storage humidity: 5% to 95% RH
arameter
arameter
arameter
Jinan USR IOT Technology Limited Page 16 of 53 tec@usr.cn