TCP232-302 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-302 ,we advice users to read it carefully and operate personally, it can help you know about module generally.
Page 5
2) Shut down unrelated network card, just use one local connection. 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. 5 / 53 Jinan USR IOT Technology Limited www.usriot.com...
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 6 / 53 Jinan USR IOT Technology Limited www.usriot.com...
●Serial port baud rate 600 bps ~230.4 Kbps, and None, Odd, Even, Mark, Space, five check bits; ●Work mode: TCP Server, TCP Client, UDP Client, UDP Server, HTTPD Client; ●Working model related parameters can be set via a serial port or network, setting protocol is available; 7 / 53 Jinan USR IOT Technology Limited www.usriot.com...
3) When TCP232-302 try to connect remote server ,if the local port number is not “0" ,it will establish a connection with the same source port every time. 4) It has synchronizing function of baud rate, user should install USR VCOM Software. 10 / 53 Jinan USR IOT Technology Limited www.usriot.com...
Up to 4 links at the same time. Once received data, 302 serial port will send data to all the devices which connect to TCP232-302. 3 ) It has synchronizing function of baud rate, user should install USR VCOM Software. 11 / 53 Jinan USR IOT Technology Limited www.usriot.com...
Page 12
4) 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 Diagram 3.1.2-1 TCP Server Setting 12 / 53 Jinan USR IOT Technology Limited www.usriot.com...
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-302 is 1460. 13 / 53 Jinan USR IOT Technology Limited www.usriot.com...
2) In UDP Server Mode, TCP232-302 records an IP, Once it receives data, it will send data to record IP. TCP232-302 also works as a server, can receive data from Ethernet and convert target IP to data source IP. Diagram 3.1.4-1 UDP Server Setting 14 / 53 Jinan USR IOT Technology Limited www.usriot.com...
Transmission interval is accurate; Disadvantage Easy to block up Information; Under bad network condition, it is Because of check and resend high risky to losing data package mechanism, interval isn’t accurate 15 / 53 Jinan USR IOT Technology Limited www.usriot.com...
Server IP or Server IP changed, this function plays an important role, it can connect remote server by resolving server domain name Note: when use NDS function, gateway must be same as router IP or choose DHCP function. 16 / 53 Jinan USR IOT Technology Limited www.usriot.com...
I advise user to select “Search”or “Smart vcom” to create virtual port. Please refer to 3.3.3 3.3.1. TCP232-302 Works as Client 1) Set module parameters. T2 work model: TCP Client. 2) Open USR-VCOM, set virtual port as follows : 17 / 53 Jinan USR IOT Technology Limited www.usriot.com...
“Monitor”. It is used to check whether the data is correct . Diagram 3.3.1-2 Monitor Date 3.3.2. TCP232-302 Works as Server 1) Set TCP232-302 work mode: TCP Server. 2) Set virtual port as follows: 18 / 53 Jinan USR IOT Technology Limited www.usriot.com...
When TCP232-302 works as TCP Client, it connects to TCP Server actively. When start Reset function, TCP232-302 try to connect TCP Server for 30 times, if failed, TCP232-302 will restart automatically. By default, this function is not checked. 21 / 53 Jinan USR IOT Technology Limited www.usriot.com...
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, 22 / 53 Jinan USR IOT Technology Limited www.usriot.com...
User can set the parameter in webpage, it can work in TCP Client and TCP Server .It support decimal input and sixteen input , doesn’t support character input. By default, heartbeat package turns off. User can turn on it as follows: 23 / 53 Jinan USR IOT Technology Limited www.usriot.com...
USR-TCP232-302 User Manual h.usriot.com 3.6. Firmware Upgrade When Module T2 IP and PC IP is in the same segment , click here, then click “firmware upgrade” 24 / 53 Jinan USR IOT Technology Limited www.usriot.com...
Chart 3.7-1 - Query command Head of data Length User name Check Function package (command- Command address and (12 Parameter 1 bite) ( 6 bite) bite) (sum) Search Restart [MAC] [usrname] 25 / 53 Jinan USR IOT Technology Limited www.usriot.com...
Page 26
From 4th to 9th is TCP232-302 MAC address,10th to 22th is user name and password .The following byte is basic setting parameter,the last byte is sum check byte. Chart 3.7 -2 - basic setting command Name Byte Example Instruction ucSequenceNum Reserve package head 26 / 53 Jinan USR IOT Technology Limited www.usriot.com...
Page 27
+1 byte and check bit . Chart 3.7-3 - Port setting command Name Byte Example Instruction ulBaudRate 00 C2 01 00 Serial port baud rate ucDataSize Serial port data bite (0X05/0x06/0x07/0x08) ucParity Serial port check bite 27 / 53 Jinan USR IOT Technology Limited www.usriot.com...
Page 28
6 byte ,if not , write 0. The following is heartbeat and registration Sending direction,heartbeat time, heartbeat package length,registration package length,heartbeat package,registration package,heartbeat package and registration package are both 40 byte, if not,write 0, the last one is check bit. 28 / 53 Jinan USR IOT Technology Limited www.usriot.com...
Page 30
FF 01 05 50 If password is wrong 50 ='P' Return result of serial port parameter setting : If correct, it return FF 01 06 4B If password is correct 4B = 'K' 30 / 53 Jinan USR IOT Technology Limited www.usriot.com...
Protocol .TCP232-302 setting commands are as follows. User can also use set up Software , there is no limit for baud rate of sending data, 9600 and 115200 is high recommend. Package head is as follows: 55 BD read M0 series parameter configuration. 31 / 53 Jinan USR IOT Technology Limited www.usriot.com...
Page 32
01 00 A8 C0 DNS address(only support query) ucReserved 00 00 00 00 Unused Port setting command: it include 65 byte, sum check method . Send 55 BF+basic parameter + check bit. If 32 / 53 Jinan USR IOT Technology Limited www.usriot.com...
Page 33
Reserve package head ucVersion Reserve package head 8th 0:DHCP; 1:Static IP ucFlags 7th 0:Turn off factory default function 1:Turn on factory default function usLocationURLPor 00 00 Not enabled, reserved protocol 33 / 53 Jinan USR IOT Technology Limited www.usriot.com...
Target IP Target IP Target Port 2A 20 Target Port 07 00 A8 C0 Module IP Module IP 8C 4E Module Port Module Port C9 00 A8 C0 Gateway IP Gateway 36 / 53 Jinan USR IOT Technology Limited www.usriot.com...
Chart 3.7- 13 - Set parameter command Name Byte Example Instruction Head of data 55 BA Head of data package package C9 00 A8 C0 Target IP Target IP Target Port 2A 20 Target Port 37 / 53 Jinan USR IOT Technology Limited www.usriot.com...
Overflow : (support notwork is in good station ,network data transmission time is negligible ) If data won’t overflow , m byte data can be finished in n seconds. M byte data transmission time : 38 / 53 Jinan USR IOT Technology Limited www.usriot.com...
4) IP and Server setting Note : After setting parameter, please save and restart. 4.2. Log in Open a browser, type 192.168.07 , Name and password:admin User can also log in by software. 39 / 53 Jinan USR IOT Technology Limited www.usriot.com...
Static IP: don’t set it the same as local network IP Submask: aims to distinguish network segment, default is 255.255.255.0 Gateway: Router IP DNS Gateway: default IP is module gateway when gateway or router is resolving domain name 40 / 53 Jinan USR IOT Technology Limited www.usriot.com...
5) Local Port Number : Fixed port number by default, It can be set “0” when router is connecting Extranet 6) Remote Port number 7)Work Mode: TCP Client/ TCP Server/ UDP Client/ UDP Server/ HTTPD Client 8)Remote Server Address: IP address or Domain name. 9)HTTPD: HTTPD Get or HTTPD Post 41 / 53 Jinan USR IOT Technology Limited www.usriot.com...
USR-TCP232-302 User Manual h.usriot.com Diagram 4.5-1 Serial Port 4.6. Expand Function Defined registration package and Defined registration package 42 / 53 Jinan USR IOT Technology Limited www.usriot.com...
Page 45
USR-TCP232-302 User Manual h.usriot.com Diagram 4.9-1 Search 2) Set parameters Diagram 4.9-2 Parameter setting 3) Check data Click “Hex Stream” , it’s helpful to understand the protocol and check data by observing data. 45 / 53 Jinan USR IOT Technology Limited www.usriot.com...
Page 46
USR-TCP232-302 User Manual h.usriot.com Diagram 4.9-3 Check Streams 4) Press CFG (Reload) and click “operate via COM” → select serial port→ Read Configuration, user can also set parameters by this way. 46 / 53 Jinan USR IOT Technology Limited www.usriot.com...
1 bit stop bit Stop bit 2 bit stop bit Unable check bit Check bit enable Enable check bit ODD check EVEN check Check bit type Set 1 Zero Clearing Undefined Write 0 47 / 53 Jinan USR IOT Technology Limited www.usriot.com...
USR-TCP232-302 User Manual h.usriot.com 8. Undated History V 1.0 2016-5-13 First Version V 1.1 2016-6-27 update 53 / 53 Jinan USR IOT Technology Limited www.usriot.com...
Need help?
Do you have a question about the USR-TCP232-302 and is the answer not in the manual?
Questions and answers