Module name and password After setting parameter then reset the module . 2.2. Work mode USR-TCP232-S2 work mode : TCP Client, TCP Server, UDP Client, UDP Server, HTTPD Client. Work mode can be changed by webpage or software. 4 / 41 Jinan USR IOT Technology Limited www.usriot.com...
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. 5 / 41 Jinan USR IOT Technology Limited www.usriot.com...
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 6 / 41 Jinan USR IOT Technology Limited www.usriot.com...
2) In UDP Server Mode, TCP232-S2 records an IP, Once it receives data, it will send data to record IP. TCP232-S2 also works as a server, can receive data from Ethernet and convert target IP to data source IP. 8 / 41 Jinan USR IOT Technology Limited www.usriot.com...
Transmission interval is accurate; Advantages Not easy to lose data package; No connection mechanism; Reliable connection mechanism; Easy and flexible; Disadvantage Easy to block up Information; Under bad network condition, it is 10 / 41 Jinan USR IOT Technology Limited www.usriot.com...
From 4th to 9th is TCP232-T2 MAC address. The last 12 byte before check bit is user name and password, both is 6 byte, if not, write 0 (the last byte of user name and password should be 0 , the 11 / 41 Jinan USR IOT Technology Limited www.usriot.com...
Page 12
Not enabled, reserved protocol uiId 01 00 Device ID bit0(1): send ID when connecting ; bit1(2): send ID when sending data; bit2(4): RS485; ucIdType bit4(16): Reset; bit5(32):Link-state; bit6(64): index function; bit7(128):Similar RFC2217 function, 12 / 41 Jinan USR IOT Technology Limited www.usriot.com...
Return result of read command: return result is all parameters of TCP232-T2 ,264 byte Not include check and protocol ,return parameter directly. Refer to Table 2-4. Return result In 3 package. 130 byte, 50 byte, 84 byte. 15 / 41 Jinan USR IOT Technology Limited www.usriot.com...
If user name and password is wrong , it return FF 01 CMD ’P’ Other is wrong ,it returns FF 01 CMD’E’ 2.3.3. Monitor function If user want to monitor message, please do as follows with USR-M0 software. 16 / 41 Jinan USR IOT Technology Limited www.usriot.com...
Basic configuration : It includes some serial port parameter configuration. Total 67 byte, check bit xx= 00 + 00 +00+80 ... + 00. Send 55 BE+basic parameter+check bit, If configuration is right ,it returns BE 4B, otherwise ,it returns BE 45. 17 / 41 Jinan USR IOT Technology Limited www.usriot.com...
Page 18
Table 8 - 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) Serial port check bite ucParity 1:no, 2:odd, 3:even, 4:mark, 5:space 18 / 41 Jinan USR IOT Technology Limited www.usriot.com...
Page 20
Write the read data as it is . ucReserved 00 00 00 00 00 Write 00 00 00 00 00. For extension use Current IP 07 00 A8 C0 Current module IP address 20 / 41 Jinan USR IOT Technology Limited www.usriot.com...
Page 22
Independent ID (ID type has addition meaning ,refer to appendix 2) 00 FF FF FF Subnet mask,Little Endian Subnet mask Port parameter set : Port parameter set of similar T24 set protocol. 22 / 41 Jinan USR IOT Technology Limited www.usriot.com...
Page 23
C9 00 A8 C0 Gateway IP Gateway 0:UDP Client, 1:TCP Client Work mode 2:UDP Server, 3:TCP Server 00 C2 01 Port baud rate Baud rate Port parameter Data bit, stop bit, check bit 23 / 41 Jinan USR IOT Technology Limited www.usriot.com...
M byte data transmission time : If n> 2T ,data won’t overflow, TCP232-T2 work well. 2.5. Special Function 2.5.1. RS485 Function S2 reserved 485 pin, this function can be set by software, won’t effect RS232 communication. 24 / 41 Jinan USR IOT Technology Limited www.usriot.com...
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 .
2.6.1. AT Command 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.
“$” 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. 2.7. Firmware Upgrade Diagram 17 Firmware upgrade 3. Webpage By default, user name and password : admin . IP :192.168.0.201 27 / 41 Jinan USR IOT Technology Limited www.usriot.com...
Open a browser, type 192.168.07 , Name and password:admin User can also log in by software. 3.2. State Configuration Module name , Current IP address , Mac address, Remote IP/TX/RX , TX Count/ RX Count. 28 / 41 Jinan USR IOT Technology Limited www.usriot.com...
4)Gateway: Router IP address, it should be set correctly when used for domain name resolution. 5)DNS Gateway : Server IP of domain name resolution , by default it is module gateway. Diagram 19 Local IP 29 / 41 Jinan USR IOT Technology Limited www.usriot.com...
6) Remote: Remote server port 7) Work mode :TCP Server, TCP Client,UDP Client,UDP Server,HTTPD Client. 8) Remote Server address: it can be IP address or server domain name. 9) HTTPD:HTTPD GET or HTTPD POST. 30 / 41 Jinan USR IOT Technology Limited www.usriot.com...
Function: turn on /off DHCP Format: Query: AT+DHCPEN<CR> <CR><LF>+OK=<Type><CR><LF> Set:AT+DHCPGW=<Type><CR> <CR><LF>+OK<CR><LF> Parameter : Type: on means turn on DHCP , off means turn off DHCP. 4.3.10. AT+WANN Function: set/query WAN IP Format: Query: AT+WANN<CR> <CR><LF>+OK=<mode,address,mask,gateway><CR><LF> 35 / 41 Jinan USR IOT Technology Limited www.usriot.com...
Reset; bit5(32) Link-state; bit6(64) tcp server index; bit7(128) baud rate synchronization, similar RFC2217. When each bit is 1, it means related function is invalid. Otherwise, it is valid, default is 36 / 41 Jinan USR IOT Technology Limited www.usriot.com...
Email: sales@usr.cn 7. Disclaimer 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...
Need help?
Do you have a question about the USR-TCP232-S2 and is the answer not in the manual?
Questions and answers