A technical guide explaining the structure of TinyOS serial packets, including frame synchronization, packet types, and decoding specific Surge message…
This document serves as a beginner's guide to deciphering TinyOS serial packets. It details the structure of raw data packets, including frame synchronization bytes (0x7E), escape bytes (0x7D), and byte-swapping conventions used on XP machines.
The text further breaks down the internal structure of TinyOS messages (TOS_Msg) and Multihop messages. It specifically defines the format for Surge messages (AMTYPE_SURGE_MSG = 0x11), detailing fields such as sensor readings, parent address, sequence numbers, and raw data from light, temperature, magnetometer, and accelerometer sensors.
A TinyOS data packet has a maximum length of 255 bytes.
The frame synchronization byte is always 0x7E.
The default Group ID value is 125.