USR-TCP232-302 User Manual
h.usriot.com
Jinan USR IOT Technology Limited
30 / 53
Packet_length
1
24
Fixed number
CMD_DISCOVER_TARGET
2
01
Fixed number
Board_type
3
00
Fixed number
Board_ID
4
00
Fixed number
Client_IP_address
5~8
C0 A8 00 07
Device IP
(
big-endian
)
MAC_address
9~14
AC CF 23 20 FE 3D
Device MAC
(
big-endian
)
Firemware_version
15~18
01 00 00
Firmware version
Application_title
19~34
55 53 52 2D 4B 32
00 00 00 00 00 00
00 00 00 00
Device name
checksum
35
F0
Initial value is 0x00, subtract
TAG_STATUS byte in sequence
u until the last byte. Result is
checksum
Return result of restart command
: (4 byte )
FF 01 02 4B ,if user name and password is correct 4B = 'K'
FF 01 02 50 ,user name and password is wrong 50
=
'P'
Return result of read command:
return result is all parameters of TCP232-302 ,264 byte
Not include check and protocol ,return parameter directly. Refer to Chart 2-4. Return result
In 3 package. 130 byte, 50 byte, 84 byte.
e.g.: 95 63 03 00 00 00 50 00 00 07 00 A8 C0 01 00 A8 C0 00 FF FF FF 55 53 52 2D 54 43 50 32 33 32
2D 33 31 30 00 00 61 64 6D 69 6E 00 61 64 6D 69 6E 00 00 01 00 A4 AC CF 23 20 FE 10 00 00 00 00 00
00 00 00 80 25 00 00 08 01 01 01 00 00 00 00 8C 4E 2A 20 31 39 32 2E 31 36 38 2E 31 2E 31 33 33 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 85 01 A8 C0 00 01 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 30 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;
If password is wrong ,it returns
FF 01 03 50.
Return result of basic parameter setting :
If correct ,it return
FF 01 05 4B.
If password is correct 4B = 'K'
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'