USR-K1 User Manual www.usriot.com
Jinan USR IOT Technology Limited 24 / 29 [email protected]
Diagram5-8
RFC2217
select it by default
The command length is 8 bits, detail as follow table. The demo bytes are in hex mode:
Name
Packet header
Band rate
UART bits setting
Check sum
Bytes
3
3
1
1
Description
Three bytes
Band rate in hex
mode, High byte first.
Parity/data/stop settings,
see follow table.
Check sum of
last 4 bytes
For example
(115200,N,8,1)
55 AA 55
01 C2 00
83
83
For example
(9600,N,8,1)
55 AA 55
00 25 80
83
83
Diagram5-9
RFC2217 introduce
Appendix:
UART bits setting detail.
Bit
Description
Value
Description
1:0
Data bits
00
5 bits
01
6 bits
10
7 bits
11
8 bits
2
Stop bits
0
1 bits
1
2 bits
3
Parity enable
0
Not enable Parity
1
Enable Parity
5:4
Parity type
00
ODD
01
EVEN
10
Mark
11
Clear
8:6
Not used
000
Please fill 0
Diagram5-10
UART bits setting detail
Test bits
55AA5501C2008346 For 115200 N,8,1
55AA550025808328 For 9600 N,8,1
Those two data is not transferred to serial, but the packet not conform will be transferred and revealed.