Expand description
Firmware updates over the air (Firmware Update Meta Data command class).
The controller offers an image; the node asks for it in numbered fragments, each carrying a CRC-16, checks the whole image’s CRC-16, and reports the outcome. Images may need activation afterwards.
Structs§
- Firmware
Update Result - How an update ended.
Constants§
- FRAGMENT_
TIMEOUT - How long the node may take between fragment requests.
- MAX_
IMAGE - Largest image accepted.
- STATUS_
TIMEOUT - How long the node may take to report the result after the last fragment.
Functions§
- fragment
- A Firmware Update Meta Data Report command (a fragment) with its CRC.
- parse_
fragment - Splits a received fragment command into number, last flag and data,
checking its CRC;
Noneif it does not check out. - read_
image - Reads a firmware file: Intel HEX (
.hex, or text starting with:) is turned into a binary image from its lowest address with gaps filled with0xFF; anything else (.gbl,.bin,.ota) is sent as it is.