User Manual
pg. 24
Copyright © 2017- www.SingleTact.com
Figure 16 Serial packet structure (sent to Arduino)
BYTE
FROM PC TO ARDUINO
0
Header = 0xFF
1
Header = 0xFF
2
Header = 0xFF
3
Header = 0xFF
4
I
2
C address of sensor
5
Timeout (in 100ms increments)
6
ID (echoed in reply)
7
Read (0x01) or Write (0x02)
8
Read/ write location
9
N bytes to read/ write (max 32)
10-> (10 + N-1)
Data to write
0 bytes for read request
11 + N
0xFF – signifies end of packet
12 + N
Footer = 0xFF
13 + N
Footer = 0xFF
14 + N
Footer = 0xFF
15 + N
Footer = 0xFF