Atmel AVR2052
61
8200M-AVR-11/11
15 Appendix B-2: WSNMonitor serial protocol
This appendix describes the protocol and message format used over the serial
connection between the network coordinator and the WSNMonitor application running
on the PC. The
messages
sent on the serial connection are basically the messages
wrapped as defined below:
Table 15-1.
Serial message format.
Offset
Length
Description
0
2 bytes
Start sequence: 0x10 0x02
2
N bytes
Variable-length payload: the message received from the
end device or router, or generated by the coordinator, in
the format described in Section
All 0x10 bytes in this payload are duplicated to avoid
confusion with a start sequence or end sequence
N+2
2 bytes
End sequence: 0x10 0x03
N+4
1 byte
Checksum: Sum of the bytes [0..N+3] mod 256