USR-TCP232-302 User Manual
h.usriot.com
Jinan USR IOT Technology Limited
33 / 53
correct ,it returns
BE 4B. Otherwise,
it returns
BE 45.
Chart 3.7-7 - Port setting command
Name
Byte
Example
Instruction
ulBaudRate
4
00 C2 01 00
Serial port baud rate
ucDataSize
1
08
Serial port data bite (0X05/0x06/0x07/0x08)
ucParity
1
01
Serial port check bite
1:no, 2:odd, 3:even, 4:mark, 5:space
ucStopBits
1
01
Serial port stop bite (0x01/0x02)
ucFlowControl
1
00
Not enabled, reserved protocol
ulTelnetTimeout
4
00 00 00 00
Not enabled, reserved protocol
usTelnetLocalPort
2
8C 4E
Local port
usTelnetRemotePort 2
2a 20
Remote port
uiTelnetURL
30
31 39 32 2E 31 36 38
2E 30 2E 31 00 00 00
00 00 00 00 00 00 00
00 00 00 00 00 00 00
00 00
IP address or domain name send by ASCll
E.g.: 192.168.0.1
ulTelnetIPAddr
4
00 00 00 00
Invalid byte , arbitrary configuration
ucFlags
1
00
Cloud function: For 5th ,
0: turn off cloud
1: turn on cloud
ucWorkMode
1
01
Work mode :
0: UDP, 1:TCP Client, 2: UDP Server,
3: TCP Server 4: HTTPD Client
HTPucFlags
1
00
0
:
HTTPD GET; 1:HTTPD POST
tc_number
1
04
Client number that TCP Server can connect
uiPackLen
2
00 00
Not enabled, reserved protocol
ucPackTime
1
0A
Serial port packing time
ucTimeCount
1
91
Write the read data as it is .
ucReserved
5
00 00 00 00 00
Write 00 00 00 00 00. For extension use
Read configuration command : TCP232-302 send 55 BD, return value is 137 byte, there is
no check bit. TCP232-302 return parameter is as follows.
Chart 3.7- 8 - Read configuration command
Name
Byte
Example
Instruction
ucSequenceNum
2
55 bd
Reserve package head
ucCRC
1
00
Reserve package head
ucVersion
1
00
Reserve package head
ucFlags
1
80
8th 0:DHCP
;
1:Static IP
7th 0:Turn off factory default function
1:Turn on factory default function
usLocationURLPor
t
2
00 00
Not enabled, reserved protocol