USR-TCP232-S2 User Manual................................................................................................................................1
1.4. Data Transmission Testing........................................................................................................................6
3.1. Work mode.................................................................................................................................................11
3.4. Special Function.......................................................................................................................................21
3.4.3. Link Function................................................................................................................................. 21
3.4.6. ID Function.....................................................................................................................................22
3.4.7. Index Function...............................................................................................................................22
3.4.8. Similar RFC2217 Function.......................................................................................................... 22
3.5. New Function............................................................................................................................................ 22
3.5.1. AT Command.................................................................................................................................22
3.5.2. Display IP and Data......................................................................................................................22
3.5.3. Set Client Number in TCP Server Mode...................................................................................23
3.5.4. Defined MAC Address..................................................................................................................23
3.5.5. Defined DNS Server IP................................................................................................................23
3.5.6. Defined Registration Package....................................................................................................23
3.5.7. Defined Heartbeat Package........................................................................................................23
4.3. State Configuration.................................................................................................................................. 26
4.4. Local IP...................................................................................................................................................... 26
4.5. Serial Port Parameter..............................................................................................................................27
USR-TCP232-S2 is used for data bidirectional transparent transmission between TTL and Ethernet. S2
module itself complete protocol conversion, parameter can be set by built-in webpage or software. Once set
permanent preservation.
This chapter is quick start for using USR-TCP232-S2 module,we advice users to read it carefully and
operate personally, it can help you know about module generally.
To test S2 conversion function, user should connect S2 UART to computer by USB to TTL serial line, then
connect S2 LAN port to computer LAN port by internet cable. If you want to use S2 evaluation board, use USB
to RS232 serial line instead of USB to TTL serial line.
Here is schematic diagram for hardware link .
Diagram 1Hardware Link
Computer should be set as follows:
1) Shut down firewall and anti-virus software .
Jinan USR IOT Technology Limitedwww.usriot.com
Page 5
USR-TCP232-S2 User Manualh.usriot.com
5
/ 34
Diagram 2-1
2) Shut down unrelated network card, just use one local connection.
Diagram 2-2
3) If you want connect module to PC directly, user should set static IP for computer which is in the
same network segment with module.
Jinan USR IOT Technology Limitedwww.usriot.com
Page 6
USR-TCP232-S2 User Manualh.usriot.com
6
/ 34
1.3. Default Parameter
Item
Content
User name
admin
Password
admin
IP address
192.168.0.7
Subnet mask
255.255.255.0
Default gateway
192.168.0.1
Serial baud rate
115200
Serial parameter
None, 8 ,1
Local port
20108
Target IP
192.168.0.201
Target port
8234
1.4. Data Transmission Testing
Diagram 2-3
Table 1S2 Module Default Parameter
Steps for network communication parameters:
1) Install USR-TCP232-Test.exe .
2) Connect UART to PC, LAN to PC.
3) Protocol: TCP Server
Server IP: 192.168.201 ( PC Static IP )
Server Port No: 8234
Jinan USR IOT Technology Limitedwww.usriot.com
Page 7
USR-TCP232-S2 User Manualh.usriot.com
7
/ 34
2. Overview
2.1. Brief Introduction
2.2. Features
Diagram 3 Port to LAN Test
TCP232-S2 is a new and tiny size serial to Ethernet module which realizes data bidirectional transparent
transmission between TTL Port and RJ45 Port, it can also used in RS232/ RS485 by level shift circuit.
S2 is equipped with Cortex-M0 core. It has characters of low power, fast speed, high efficiency, strong
●Working mode related parameters can be set via a serial port or network;
Jinan USR IOT Technology Limitedwww.usriot.com
Page 8
USR-TCP232-S2 User Manualh.usriot.com
8
/ 34
2.3. Parameters
Parameter
Parameter Value
Voltage
VCC: DC typical value 3.3V, 3.0V~3.6 V
Current
150mA(aver)/200mA(max)
Serial Level
TTL(3.3V)
Network interface
PHY signal
Packing
SMD package
Size
PCB:33.0*20.3 mm(L*W)
Temperature
Working temp: -25 ~ 75 °C
Storage temp: -40 ~ 105 °C
Storage humidity: 5% ~ 95% RH
2.4. Hardware Information
Number
Pin
Function
Instruction
1
GND
Ground signal
Connect to ground
2
RST
Reset
Pin receive current below 200ms ,it can reset module.
If unneeded, don’t connect the pin .
(Power on , reset means restart the module. Advice connect
I/O of MCU, MCU can control the module .)
3
ISPNCDon’t connect the pin
4
RXD
Receive data
TTL connect to 3.3v MUC
(For 5V, refer to Diagram 4)
●Support virtual serial port, self-developed USR-VCOM software;
●Heartbeat package mechanism to ensure connection is reliable, put an end to connect feign death;
●User-defined registration package mechanism, check the status of connection;
●Under TCP Server mode, Client number rangefrom1 to 16, default value is 4;
●Support User-defined MAC address;
●Restore factory default;
●Across the gateway, switches, routers;
●Across the gateway, across switches, routers;
●Provide(socket), VB, C++, Delphi, Android, IOS;
●Download application cases;
●Support customization;
Table 2USR-TCP232-S2 Parameter
Table 3 USR-TCP232-S2 Pin
Jinan USR IOT Technology Limitedwww.usriot.com
Page 9
USR-TCP232-S2 User Manualh.usriot.com
9
/ 34
5
TXD
Send data
TTL connect to 3.3v MCU
(For 5V, refer to Diagram 4)
6
CFG(Reloa
d)
Formodule
configuration
and restore
factory default
When normal working , don’t connect the pin or connect to
high level. Under low level, the pin is used for module
Configuration. When configuration, pull down Reload pin,
enter into port Configuration. If choose “Reload” in webpage
or setting software, it is used to restore factory default
7
LD2
Network data
indication
Network data indication light, connect VCC by LED, don’t
need to connect current-limiting resistance.
8
LD1
Network
connection
indication
Network connection indication light, connect VCC by LED,
don’t need to connect current-limiting resistance.
9
AVDD
PHYoutput
voltage
PHY control voltage output, connect network transformer
center tap.
10
RX+
Receive
signal +
Receive Data+ ,shorten the line if connect
11
RX-
Receive
signal +
Receive Data- ,shorten the line if connect
12
TX+
Send signal+
Transceiver Data+ ,shorten the line if connect
13
TX-
Send signal-
Transceiver Data- ,shorten the line if connect
14
RS_485
Reserved
RS485 reserved pin
15
Link
Reserved
Used as indication pin for TCP connection status.
16
VCC
Power supply
Typical value 3.3V @ 200mA
Diagram 43.3V to 5V voltage conversion circuit
Jinan USR IOT Technology Limitedwww.usriot.com
Page 10
USR-TCP232-S2 User Manualh.usriot.com
10
/ 34
2.5. Pin Dimension
Diagram 5S2 Dimension
Jinan USR IOT Technology Limitedwww.usriot.com
Page 11
USR-TCP232-S2 User Manualh.usriot.com
11
/ 34
3. Module Function
3.1.Work mode
3.1.1. TCP Client mode
1) In TCP Client Mode,TCP232-S2 connects TCP Server actively, establish a connection to transmit date
2) In TCP Client Mode, It has function of identifying disconnected link. When connected, it will send
3) When TCP232-S2 try to connect remote server ,if the local port number is not “0" ,it will establish a
4) It has synchronizing function of baud rate, user should install USR VCOM Software.
5) When local port number is “0” , it means local port is random.
keepalive package every 15s. If unconnected ,it can be detected timely and enforceTCP232-S2 to disconnect
the former link to establish a new one.
connection with the same source port every time.
Jinan USR IOT Technology Limitedwww.usriot.com
Page 12
USR-TCP232-S2 User Manualh.usriot.com
12
/ 34
3.1.2. TCP Server mode
TCP Client Setting
TCP Client mode
1) It has to be connected before transferring data.
2 ) In TCP Server Mode, S2 monitors local port, it will response and establish a connection when there
is a request. Up to 4 links at the same time. Once received data, S2 serial port will send data to all the devices
Jinan USR IOT Technology Limitedwww.usriot.com
Page 13
USR-TCP232-S2 User Manualh.usriot.com
13
/ 34
4) In TCP Server Mode, The maximum number can be configured by user. TCP Client number is from 1
which connect to TCP232-S2.
3 ) It has synchronizing function of baud rate, user should install USR VCOM Software.
to 16, default value 4. When the Client link is more than 16, the new link will replace the former link from Link 1
If the Client link is more than 4, send and receive data at same time , the data flow should be within 2.5 KB/s
TCP Server Setting
TCP Server mode
Jinan USR IOT Technology Limitedwww.usriot.com
Page 14
USR-TCP232-S2 User Manualh.usriot.com
14
/ 34
3.1.3. UDP Client mode
3.1.4. UDP Server mode
1) UDP Server is based on normal UDP, it doesn’t validate the source of IP address. Once received UDP
2) In UDP Server Mode, TCP232-S2 records an IP, Once it receives data, it will send data to record IP.
1) The mode belongs to UDP Protocol.
2) In UDP Client Mode, TCP232-S2 won’t establish the connection actively. It can only communicate with
the target port whose IP has been set. When serial port receive data, it send data to target IP and port. If data
doesn’t come from this channel, it will not be accepted by TCP232-S2.
3) In UDP Client Mode, if target IP is set as 255.255.255.255, it can realize function of entire network
broadcast, also can receive broadcast data. If broadcast in network segment ,eg.192.168.0.255, it can only
send data ,can’t receive data.
4) Under UDP Client, maximum data length sent from MCU to TCP232-S2 is 1460.
UDP Client mode
data, it convert target IP to data source IP, similar to TCP Server.
TCP232-S2 also works as a server, can receive data from Ethernet and convert target IP to data source IP.
Jinan USR IOT Technology Limitedwww.usriot.com
Page 15
USR-TCP232-S2 User Manualh.usriot.com
15
/ 34
3.1.5. HTTPD Client
1) Module S2 send data to HTTP Server or receive from HTTP Server, complex HTTP protocol will be
3.1.6. TCP and UDP mechanism
TCP
UDP
Advantages
Stable;
Not easy to lose data package;
Reliable connection mechanism;
Transmission interval is accurate;
No connection mechanism;
Easy and flexible;
Disadvantage
Easy to block up Information;
Because of check and resend
mechanism, interval isn’t accurate
Under bad network condition, it is
high risky to losing data package
3.2. DHCP and DNS Function
UDP Server Setting
This function is used for developer.
done by S2, it is convenient for user to programming.
2) S2 received data from HTTP Server will send to serial port without process.
3) According to demand, user can define HTTP content.
Table 4 TCP and UDP mechanism
DHCP: Dynamic Host Configuration Protocol
Jinan USR IOT Technology Limitedwww.usriot.com
Page 16
USR-TCP232-S2 User Manualh.usriot.com
16
/ 34
When S2 connects to remote server, it can obtain an IP address automatically which router or gateway
distributed. If you don’t know how to set IP address or it can’t connect because of the set IP is not in the same
segment, the function is helpful for you.
Diagram 7DHCP
DNS: Domain Name System
e.g. domain name sever is cloud usr.cn, when we don’t know Server IP or Server IP changed, this function
plays an important role.
Note: when use NDS function, S2 gateway must be same as router IP or choose DHCP function.
If user’s upper computer and device are all connect by serial port, user can create a COM which has TCP/
IP to realize remote control by USR-VCOM software.
1) Turn off firewall and anti-virus software.
2) Install USR-VCOM.
I advise user to choose “Search”or “Smart vcom” to create virtual port. Please refer to 4.3.3
1) Set module parameters. S2 work mode: TCP Client.
2) Open USR-VCOM, set virtual port as follows :
Jinan USR IOT Technology Limitedwww.usriot.com
Page 18
USR-TCP232-S2 User Manualh.usriot.com
18
/ 34
3.3.2. Module Works as Server
Diagram 10Create Server Virtual Port
Diagram 11 VCOM software monitor function
1) Set S2 work mode: TCP Server.
2) Set virtual port as follows:
Jinan USR IOT Technology Limitedwww.usriot.com
Page 19
USR-TCP232-S2 User Manualh.usriot.com
19
/ 34
3.3.3. Create VCOM
Diagram 12 Create Client Virtual Port
1) Create VCOM by “search” button.
Jinan USR IOT Technology Limitedwww.usriot.com
Page 20
USR-TCP232-S2 User Manualh.usriot.com
20
/ 34
2) Automatically Create
Diagram 13 Search Function
Jinan USR IOT Technology Limitedwww.usriot.com
Page 21
USR-TCP232-S2 User Manualh.usriot.com
21
/ 34
3.4. Special Function
3.4.1. RS485 Function
3.4.2. Transparent transmission cloud
3.4.3. Link Function
3.4.4. Factory Reset
1) Hardware: At first, check “Reload” in webpage or software, then Reload can only used to restore
Diagram 14 Smart VCOM
S2 reserved 485 pin, this function can be set by software, won’t effect RS232 communication.
This function is used to get communication between module and MCU, transmit remote
data transparently .http://cloud.usr.cn/en
Cloud user name and password can be set through software.
Link pin can be used as indication pin for TCP connection status.
When connected, it output low level; When unconnected, high level.
When S2 is under TCP mode, Link pin will pull down, otherwise, it stays in high level.
When S2 is under DUP mode, Link pin will always pull down. By default ,it is not checked .
factory settings. After setting then module will reset, pull “ Reload “ down to 0 V level for 5 seconds then pull
CFG( Reload) up to 3.3 V or don’t connect it, factory reset is finished.
Jinan USR IOT Technology Limitedwww.usriot.com
Page 22
USR-TCP232-S2 User Manualh.usriot.com
22
/ 34
3.4.5. Reset Function
3.4.6. ID Function
3.4.7. Index Function
3.4.8. Similar RFC2217 Function
3.5. New Function
3.5.1. AT Command
3.5.2. Display IP and Data
2) Software: finish it by set-up software.
3) AT Command: After entering into AT Command, then send AT+ clear.
When S2 works as TCP Client, S2 connects to TCP Server actively. When start Reset function, S2 try to
connect to TCP Server for 30 times. If failed, S2 will restart automatically. By default, it won’t be chose.
When S2 works as TCP Client, it send module ID when establishing connection or carry ID when in
communication, S2 ID is decimal .1-65535 ( ID function and transparent transmission can’t work at same time )
When S2 works as TCP Server, it can establish 16 links simultaneously at most. The max number can
be set from 1 to 16. Default is 4. Take 16 link as example, Server send data to 16 Client simultaneously or
Server can’t distinguish the data source, Index can realize the choice of data source of sending or receiving.
Index function can be set by software or web-page.
This function is used to change USR-TCP232-S2 serial port parameter through network.
E.g: change baud rate from 115200bps to 9600bps. It can be set by software or webpage.By default ,
it is in open state.
When using VCOM software, this function also works, the baud rate of software in PC will match
Autonomic with the baud rate of USR-TCP232-S2, don’t need to focus on serial port baud rate .After
restart, it is default parameter .
According to AT Command protocol , TCP232-S2 enter into AT Command mode and set parameter
More details ,please refer to 《USR-TCP232-S2 software manual》
When pull low CFG(Reload)Pin firstly, S2 will set parameter by port , AT Command is invalid.
When enter into AT Command Mode, then pull down CFG(Reload), S2 will set parameter by port firstly,
AT Command is invalid. User pull up or don’t connect CFG(Reload), it enter into AT Command Mode again.
On the web page of TCP232-S2, it can display the IP of device and sent/received data byte, and the total
data byte of TCP232-S2.
In TCP Mode, it can display the TOP 5 device IP and sent/received data byte. In UDP Mode, it only
display sent/received data byte,don’t display connection IP.
Jinan USR IOT Technology Limitedwww.usriot.com
Page 23
USR-TCP232-S2 User Manualh.usriot.com
23
/ 34
3.5.3. Set Client Number in TCP Server Mode
3.5.4. Defined MAC Address
3.5.5. Defined DNS Server IP
3.5.6. Defined Registration Package
3.5.7. Defined Heartbeat Package
3.5.8. HTTPD Client
3.6. Firmware Upgrade
In TCP Server Mode, The maximum number can be configured by user. TCP Client number is from 1
to 16, default value 4. When the Client link is more than 16, the new link will replace the former link from Link 1
When the Client link is more than 4, send and receive data at same time , the data flow should be within
2.5 KB/s.
Mac address can be modified.Factory Mac address is exclusive.
To resolve server domain name, user should send data by gateway or router, then gateway or router
Distributes IP address, it can show IP in the webpage. User can set specific domain name resolution IP,
to specific gateway or router to resolve domain name.
The content of registration package can be defined, 40 bytes at most.
It includes sending registration package when connecting and carrying registration package when sending
data. It can be used singly or together.
It is set by webpage, support decimal input and hexadecimal input. By default ,this function isn’t open..
The content of heartbeat package can be defined, 40 bytes at most. Time set from 1s to 255s
It can ensure connection is reliable, put an end to connect feign death; It can send to LAN Port or Serial
Port singly or at same time.
TCP232-S2 has HTTPD Client , it support GET and POST. In HTTPD Client, package head and end can
be modified . In GET Mode, package head data is replaced by “$’. In POST Mode, put port data in the end,
“$” means data length in package head, TCP232-S2 will assign a value, user don’t need to modify. The
Parameter can be set in webpage.
Jinan USR IOT Technology Limitedwww.usriot.com
Page 24
USR-TCP232-S2 User Manualh.usriot.com
24
/ 34
4. Parameter Setting
1)TCP232-S2 connect PC by Lan cable, user should set parameter for PC. When TCP232-S2 connects
2)TCP232-S2 connects PC by router, one PC can connect several modules or one module connects
Diagram 17 Firmware upgrade
At first, user should connect PC to TCP232-S2 Lan port ,then set parameter by webpage or software.
TCP232-S2 connects Auto-MDI/MDIX RJ45 port with 10/100Mbps. It support Router connection
and direct connection.
to power supply and PC, module will connect PC directly. (Module IP and PC IP should in the same
Network segment )
Several PC (When modules works as TCP Server , at most it can connect 16 clients )
The document provides information about USR-TCP232-S2 module, it doesn’t grant any license to the
intellectual property rights. Except the responsibility declared in the product sale clause, USR does not assure
any other responsibilities. In addition, USR does not make any warranties for the sale and use of this product,
including the suitability of products for a particular purpose, merchant ability or fitness for any patent, copyright
or other intellectual property infringement.USR may make changes to specifications and products description
without notice.
Jinan USR IOT Technology Limitedwww.usriot.com
Page 34
34
/ 34
7. Undated History
V 1.0 2016-4-29First Version
USR-TCP232-S2 User Manualh.usriot.com
Jinan USR IOT Technology Limitedwww.usriot.com
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.