USR-TCP232-302 User Manual
h.usriot.com
Jinan USR IOT Technology Limited
37 / 53
Work mode
1
01
0:UDP Client, 1:TCP Client
2:UDP Server, 3:TCP Server
Baud rate
3
00 C2 01
Port baud rate
Port parameter bit
1
03
Data bit, stop bit, check bit
Independent ID
3
00 00 00
ID-H,ID-L,ID-type, if don’t need, write 0
(
ID type has addition meaning ,refer to
appendix
Ⅰ)
Subnet mask
4
00 FF FF FF
Subnet mask,Little Endian
Port parameter set : Port parameter set of similar T24 set protocol.
Read parameter command: send 55BC to TCP232, return message and set
Parameter command as follows:
Chart 3.7-12 -Read parameter return command
Name
Byte
Example
Instruction
Head of data
package
2
55 BC
Head of data package
Target IP
4
C9 00 A8 C0
Target IP
Target Port
2
2A 20
Target Port
Module IP
4
07 00 A8 C0
Module IP
Module Port
2
8C 4E
Module Port
Gateway
4
C9 00 A8 C0
Gateway IP
Work mode
1
01
0:UDP Client, 1:TCP Client
2:UDP Server, 3:TCP Server
Baud rate
3
00 C2 01
Port baud rate
Port parameter
bit
1
03
Data bit, stop bit, check bit
Independent ID
3
00 00 00
ID-H,ID-L,ID-type, if don’t need, write 0
(
ID type has addition meaning ,refer
to appendix
Ⅰ)
Subnet mask
4
00 FF FF FF
Subnet mask,Little Endian
Firmware version 1
58
Firmware version lowest byte
Sum Check
1
B9
Sum check, from target IP to sum
check (result keep low byte )
Chart 3.7- 13 - Set parameter command
Name
Byte
Example
Instruction
Head of data
package
2
55 BA
Head of data package
Target IP
4
C9 00 A8 C0
Target IP
Target Port
2
2A 20
Target Port