USR-TCP232-302 User Manual
h.usriot.com
Jinan USR IOT Technology Limited
28 / 53
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
Not enabled,
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
Factory default :
send FF 13 0B 00 71 77 7C 42 2F 61 64 6D 69 6E 00 61 64 6D 69 6E 00 07;
Sum check: 07 = 13 + 0B+ ... + 6E + 00
From 4th to 9th is TCP232-302 MAC address,10th to 21th is user name and password , both is 6
byte ,if not , write 0.
Cloud function command
: send FF 13 0c 00 71 77 7c 42 2F 61 64 6d 69 6e 00 61 64 6d 69 6e 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 08;
Sum check
:
07 = 13 + 0c + ... + 6E + 00+...+00;
From 4th to 9th is TCP232-302 MAC address,10th to 21th is user name and password , both is 6
byte ,if not , write 0. The following is Cloud ID and password, the last one is check bit.
Heartbeat package function: send FF 13 21 00 71 77 7c 42 2F 61 64 6d 69 6e 00 61 64 6d 69 6e 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1d;
Sum check: 1d = 13 + 21 + ... + 6E + 00+...+00;
From 4th to 9th is TCP232-302 MAC address,10th to 21th is user name and
password, both is 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.