Skip to main content

Module firmware

Module firmware 

Source
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§

FirmwareUpdateResult
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; None if 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 with 0xFF; anything else (.gbl, .bin, .ota) is sent as it is.