4.3. DHCP and DNS Function............................26 4.4. VCOM..................................28 4.4.1. Module Work as Client........................... 28 4.4.2. Module Work as Server..........................29 4.4.3. Create VCOM..............................30 4.5. Serial port function..............................31 4.5.1. Basic parameters............................31 4.5.2. Serial port framing............................32 Jinan USR IOT Technology Limited www.usriot.com...
Page 3
5.2. Webpage setting parameters.............................46 5.2.3. Serial port............................... 49 5.3. AT comment................................52 5.3.1. AT command overview............................52 5.3.2. AT command error code..........................53 5.3.3. AT command..............................53 5.3.4. AT command..............................54 6.Contact us....................................67 7.Disclaimer....................................67 Jinan USR IOT Technology Limited www.usriot.com...
Once set permanent preservation. This chapter is quick start for using USR-TCP232-T2 module,we advice users to read it carefully and operate personally, it can help you know about module generally.
Page 5
USR-TCP232-T2 user manual www.usriot.com Diagram 1.2-1 2) Shut down network card none-related, reserve one connect. Diagram 1.2-2 Jinan USR IOT Technology Limited www.usriot.com...
IP address 192.168.0.7 Subnet masks 255.255.255.0 Default gateway 192.168.0.1 Work mode TCP client Target port 8234 Local port 20108 Target IP 192.168.0.201 Serial port baud 115200 Serial parameter None/8/1 Diagram 1.3-1 T2 Module Default Parameter Jinan USR IOT Technology Limited www.usriot.com...
_> T2 ethernet port_>PC. The direction from net work to serial is: PC network _> T2 ethernet port_> T2 serial port _> serial port of PC The diagram as below: Diagram 1.4-1 Port to LAN Test Jinan USR IOT Technology Limited www.usriot.com...
2. Overview 2.1. Brief Introduction USR-TCP232-T2 is TTL to Ethernet module, which can realize the bi-direct data transparent transmission between RJ45 port and TTL serial port. It can be applied to interface 232 and 485 by level conversion circuit. Equipped with Cortex-M0 core, fast speed and high efficiency. Support several function meet more need.
Under low level, the pin is restore used for module configuration, access to power factory default then pull down“Reload” pin Refer to 4.4.3 Factory Reset Form 3.1.1-1 T2 Pin Definition Jinan USR IOT Technology Limited www.usriot.com...
Page 11
Reserved Pin 485-en Reserve pin RS485 enable pin Link Reserve pin Used as indication pin for TCP connection status. Refer to 4.4.2 Link Function Reserve pin Hasn’t use Form 3.1.1-2 T2 Reserved Pin Definition Jinan USR IOT Technology Limited www.usriot.com...
4) UART_TXD/RXD: data rend/ receive signal(10K pull-up resistor inside) 3.2.2. Power Interface USR-TCP232-T2 has dual power supply interface, 5.5 v and 3.3 v (only choose one) Working current 150 mA, max current 200mA . VCC: typical value DC 3.3V, 3.15V~3.45 V. It is used for 3.3 V MCU.
If communicated with MCU (3.3V TTL), connect module’s TXD to MCU’S RXD, modules’ RXD to MCU’S TXD. If MCU 5V TTL, need voltage conversion circuit, as follows: Diagram 3.2.3-2 UART Level Switch Design 4. Module function Here are the function of T2, below is the overall block diagram. Jinan USR IOT Technology Limited www.usriot.com...
IP is the router IP, if there is some thing wrong with setting, can not access the external net. If no need to connect the router, keeping default is ok. 4. Reference AT command Jinan USR IOT Technology Limited www.usriot.com...
Open the browser, fill the IP of T2, e.g.:192.168.0.7(IP address and PC in the same net.) Fill the user name and key word in the login webpage, default is admin, click the sure and enter. Then there is the status webpage: Jinan USR IOT Technology Limited www.usriot.com...
USR support or ask firmware from supply. The way to upgrade please refer the 5.1.1. 4.2. Socket function The work mode for T2 divide into five: TCP Client、TCP Server、UDP Client、UDP Server、Httpd Client. You can use webpage and setting software. The page is as fellows: Diagram 4.2-1 Socket Jinan USR IOT Technology Limited www.usriot.com...
5) In a LAN, if the T2 is static IP, please keep T2 IP stay in the same network segment with gateway, and setting the gateway IP, otherwise can not work as normal. 6) Note: keepalive, synchronizing baud rate and USR-cloud are more on the below. Jinan USR IOT Technology Limited www.usriot.com...
Same as the TCP client ,there are different between connect and disconnect. 3) Support synchronizing baud rate. TCP Client number is from 1 to 16, default value 4. the port is fixed., can not be set to 0. Diagram 4.2.2-1 TCP Server Setting Jinan USR IOT Technology Limited www.usriot.com...
4) 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. 4015and the later vision support broadcast. e.g.xxx.xxx.xxx.255 Diagram 4.2.3-1 UDP Client Model Jinan USR IOT Technology Limited www.usriot.com...
IP into data resource IP and port. When sending data, sending to the least IP and port. 2) Usually this mode, several net device communicate with module and do not want to use TCP for high frequency. Diagram 4.2.4-1 UDP Server Setting Jinan USR IOT Technology Limited www.usriot.com...
4.2.5. Httpd Client In this mode , users’ terminal device can send required data to assigned HTTPD server via USR-TCP232-T2, and when TCP232-T2 receives the data from HTTP server, analyzes the data and sends the result back to the serial port.
Page 25
Diagram 4.2.5-1HTTPD client Webpage 1.Setting USR-TCp232-T2 as Httpd Client mode via webpage, and setting corresponded remote port and remote IP. 2.Configure HTTPD request method ( Httpd chose such as Get or Post), Httpd URL(request packet URL) and Httpd header ( packet header information) by webpage 3.The return data whether drop the package header can be set by webpage: remove HTTPD head...
When T2 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. Jinan USR IOT Technology Limited www.usriot.com...
Page 27
Server IP or Server IP changed, this function plays an important role. Note: when use NDS function, T2 gateway must be same as router IP or choose DHCP function. Diagram 4.3-2 Jinan USR IOT Technology Limited www.usriot.com...
I advise user to choose “Search”or “Smart vcom” to create virtual port. Please refer to 4.4.3 4.4.1. Module Work as Client 1) Set module parameters. T2 work model: TCP Client. 2) Open USR-VCOM, set virtual port as follows : Diagram 4.4.1-1 Create Server Virtual Port Jinan USR IOT Technology Limited www.usriot.com...
USR-TCP232-T2 user manual www.usriot.com Diagram 4.4.1-2 Monitor Date 4.4.2. Module Work as Server 1) Set T2 work model: TCP Server. 2) Set virtual port as follows: Diagram 4.4.2-1 Create Client Virtual Port Jinan USR IOT Technology Limited www.usriot.com...
Serial port package length: default package length is 400 bytes 4.5.3. RFC2217 This function is used to change USR-TCP232-T2 serial port parameter through network. E.g: change baud rate from 115200bps to 9600bps. It can be set by software or webpage.
The connection setting and sending registration package is mainly used to connect the server that needs to be registered. By default, this function is not checked. Data carries the registration package: sending data in the front of the data access to the registration package,mainly for protocol transmission application. Jinan USR IOT Technology Limited www.usriot.com...
Device ID: It is assigned to device by cloud software Communications Code: Pass word generated after adding the device to cloud software The following is test account of USR-Cloud: Account: jin321_ Password: 1987322 Jinan USR IOT Technology Limited www.usriot.com...
Page 35
USR-TCP232-T2 user manual www.usriot.com Also can be set in the webpage as fellows: Jinan USR IOT Technology Limited www.usriot.com...
Diagram 4.6.4-1 webpage package Upgrade webpage need to note that, destination IP set to be the IP address of T2, the final name of file is “fs”,product choose the”M0”, then click the upgrade. Diagram 4.6.4-2 upgrade Jinan USR IOT Technology Limited www.usriot.com...
4.6.8. The number of the connected client Then the USR-TCP232-T2 work in the TCP server mode, the max number of client to connect is 16, default is 4,the max number can be configuring as you want, which is be convenient for use. When the the number connecting clients more than 4, we should control the total data flow in 2.5KB/s if we need to send and receive meanwhile(not more than 200...
4.6.9. State In the webpage of the USR-TCP232-T2, there is the state config page, which can show the current IP and the each connection sends data and the number of bytes of connection data, along with the total number of bytes sent and received by the T2 server on the page.
The normal work time of this function set 60~65535s, default is 3600s. if setting time less than 60s, default to be 0 and turn off this function. The setting is as fellow: Jinan USR IOT Technology Limited www.usriot.com...
5.1.1. Setting software setting parameter Open the software and click search, searching all the T2 in the LAN. The information you need to search including current IP, device name, MAC address and the vision of T2. (download: https://www.usriot.com/support/downloads/usr-m0-setup-software-v224287.html). Jinan USR IOT Technology Limited www.usriot.com...
Page 41
If the password is wrong, the software will pop-up a window for username and password. Fill in the right one and click enter. The default name and password are admin), so if all thing are default, the setting software will not pop-out the widow of username and password. Jinan USR IOT Technology Limited www.usriot.com...
Page 42
Click the searching device and you can see the basic parameters needed to set, combined with the function introduction of the third chapter, setting the parameter you need, then click the save. All the parameters you need have been set successfully, others keep default, no modify. Jinan USR IOT Technology Limited www.usriot.com...
Page 43
Module Static IP: the static IP of T2, please put it in the same LAN when setting it. Subnet masks: default is 255.255.255.0 Gateway: usually is the router IP, after correct setting you can communicate across the LAN and do the domain name resolution. 3. Serial parameter Jinan USR IOT Technology Limited www.usriot.com...
Page 44
Remote IP: when T2 works in TCP client, UDP client and HTTPD client mode as a client, the IP or domain name of the server that it connected. Similar RFC2217: ussed if need to change the serial port in transport. Use with V-COM or you can reference the software manual. 4. Check data Jinan USR IOT Technology Limited www.usriot.com...
Page 45
USR-TCP232-T2 user manual www.usriot.com Diagram 5.1.1-5 Check Streams 5. Press CFG (Reload) and click “operate via COM” Diagram 5.1.1-6 Port setting Jinan USR IOT Technology Limited www.usriot.com...
5.1.2. Protocol configuring to setting parameters Achieve it: searching→ setting→ save→ restore using protocol, which is convenient for user to make their setting software, details you can find the “USR-TCP232-T2 software manual” 5.2. Webpage setting parameters Open the browser and enter the IP of T2, default is 192.168.0.7 or you can click right on the T2 and open web, filled the user name: admin and password: admin, then login and you can enter the login page.
Page 47
USR-TCP232-T2 user manual www.usriot.com Diagram 5.2-1 Open Web Diagram 5.2-2 Username and pass word Click the English or Chinese on the right upper to switch the language. 5.2.1. State Configuration Jinan USR IOT Technology Limited www.usriot.com...
Page 48
USR-TCP232-T2 user manual www.usriot.com Diagram 5.2.1-1 State Configuration This page show some information of the T2 Module name: default is USR-TCP232-T2 Current IP address: default is 192.168.0.7 MAC address: the unique in the world Remote IP /TX/RX: the device has connected and the data number of receive and send. TX means send and RX means ...
Parity: including: including None, Odd, Even, Mark and Space. Default none Stop bits Local port: can be change from 0 to 65535. Default is 20108 Remote port: can be change from 0 to 65535.Default is 8234 Jinan USR IOT Technology Limited www.usriot.com...
Page 50
Short connection: enable under the TCP client and the time can be customize Clear buffer data: whether or not TCP server-kick off old connection Serial port parameter setting: open with webpage and setting with serial port parameter 5.2.5. Misc configuration Jinan USR IOT Technology Limited www.usriot.com...
Page 51
USR-TCP232-T2 user manual www.usriot.com Diagram 5.2.5-1 Misc Setting Module name: default is USR-TCP232-T2 and can be modify here Webserver port number: default is 80 Module ID: use for identify module USR-cloud number and password: default is admin ...
3. After the module receive “a, send “ok”to the device, and enter “AT”command 4. After the device receive “+ok” and know the module enter the AT command mode, then send AT command. The order change into transparent transport mode from AT command mode: Jinan USR IOT Technology Limited www.usriot.com...
Save the current parameters as the default parameters AT+PING Ping automatically Form5.3.3-1 AT Command 5.3.4. AT command 5.3.4.1. AT+E Function: query/ setting module echo of the AT command setting Format: query: A+E<CR> <CR><LF>+OK=< on/off ><CR><LF> Setting: A+E=< on/off ><CR> <CR><LF>+OK<CR><LF> Jinan USR IOT Technology Limited www.usriot.com...
Page 55
<note>: after perform this command correctly, module change into command mode from transparent transmission mode. 5.3.4.5. AT+RELD Function: module reset Format: setting AT+RELD<CR> <CR><LF>+OK<CR><LF> Parameters: none. 5.3.4.6. AT+MAC Function: query module MAC Format: query: AT+MAC<CR> <CR><LF>+OK=< MAC ><CR><LF> Parameters: mac: MAC address of the module( e.g.00020K2050A ) Jinan USR IOT Technology Limited www.usriot.com...
Page 57
, default setting to be the NFC ) NFC: none: hardware flow control E.g.: AT+UART=115200,8,1,NONE,NFC 5.3.4.13. AT+SOCK Function: setting /query web protocol parameters format Format: query: AT+SOCK<CR> <CR><LF>+OK=< protocol,IP,port ><CR><LF> setting: Jinan USR IOT Technology Limited www.usriot.com...
Page 58
Function: query whether the TCP has connected Format: query: AT+ SOCKLK<CR> <CR><LF>+OK=< sta ><CR><LF> Parameters: Sta: built the TCP connection or not Connect: TCP connected Disconnect: TCP not connected 5.3.4.16. AT+SOCKPORT Function: setting /query local socket port Jinan USR IOT Technology Limited www.usriot.com...
Page 59
Format: query: AT+PDTIME<CR> <CR><LF>+OK=< time ><CR><LF> Parameters: time: produce time, E.g.: 2016-10-18 11:20:02 5.3.4.19. AT+REGEN Function: setting query registration package mechanism Format: query: AT+REGEN<CR> <CR><LF>+OK=< status ><CR><LF> setting: AT+REGEN =< status ><CR> <CR><LF>+OK<CR><LF> Parameters: Jinan USR IOT Technology Limited www.usriot.com...
Page 61
AT+HTPHEAD<CR> <CR><LF>+OK=< data ><CR><LF> setting: AT+ HTPHEAD =< data ><CR> <CR><LF>+OK<CR><LF> Parameters: data: customize package message, less than 199 bytes. And using <<CRLF>> translating the characters in stead of the enter. E.g.: AT+HTPHEAD=Accept:text<<CRLF>> Jinan USR IOT Technology Limited www.usriot.com...
Page 62
Format: query: AT+ HEARTTP <CR> <CR><LF>+OK=< type ><CR><LF> setting: AT+ HEARTTP =< type ><CR> <CR><LF>+OK<CR><LF> Parameters: Status: NET: send heartbeat package to server COM: send heartbeat package to serial port E.g.: AT+HEARTTP=NET Jinan USR IOT Technology Limited www.usriot.com...
Page 63
OFF: disable link function E.g.: AT+ SCSLINK=ON 5.3.4.32. AT+ CLIENTRST Function: setting /query TCP Client mode filed to connect several time and reset ( repeat 30 times connection failed, module restart ) Format: query: Jinan USR IOT Technology Limited www.usriot.com...
Page 64
ON: enable short connection function OFF: disable short connection function E.g.: AT+SOCKSL =ON 5.3.4.35. AT+ SHORTO Function: setting /query short connection time Format: query: AT+ SHORTO <CR> <CR><LF>+OK=< time ><CR><LF> setting: AT+ SHORTO =< time ><CR> Jinan USR IOT Technology Limited www.usriot.com...
Page 65
<CR><LF>+OK<CR><LF> Parameters: num: the maximum number of the client that TCP Server connected, range from 1 to 16 E.g.: AT+MAXSK =4 5.3.4.39. AT+ MID Function: setting /query module name Format: query: AT+ MID <CR> Jinan USR IOT Technology Limited www.usriot.com...
Page 66
Parameters: sta: saved: saved 5.3.4.42. AT+PING Function: ping automatically. Format: ping successful AT+ PING=< IP ><CR> <CR><LF>+OK=SUCCESS<CR><LF> Ping out time AT+ PING=< IP ><CR> <CR><LF>+ERR=TIMEOUT<CR><LF> Parameters: IP: remote IP or the domain name E.g.: AT+PING=www.baidu.com Jinan USR IOT Technology Limited www.usriot.com...
7.Disclaimer The document provides information about USR-TCP232-T2 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.
Need help?
Do you have a question about the USR-TCP232-T2 and is the answer not in the manual?
Questions and answers