FwUpdate binary: crc16 per chunk; a mangled chunk is dropped and asked for again
This commit is contained in:
1 parent
0c06994d1f
commit
b8ce87c6ff
2 files changed
+18
-9
No files matched your search
@@ -39,7 +39,8 @@
|
||||
|
||||
// Binary request carrying firmware data (over the mesh, admin only). Upstream
|
||||
// request types are 0x01..0x07; 0xF0 is far from them on purpose.
|
||||
// [0xF0]['w'][sid u16][offset u32 LE][len u8][data] chunk, no reply. The
|
||||
// [0xF0]['w'][sid u16][offset u32 LE][len u8][crc16 of data][data] chunk,
|
||||
// no reply; a bad crc is dropped. The
|
||||
// length is explicit (the node only sees
|
||||
// the decrypted size padded to 16 B); sid
|
||||
// is the session from `fw begin <bytes>
|
||||
@@ -116,7 +117,7 @@ private:
|
||||
uint8_t _mani[FW_OTA_MANIFEST_SIZE];
|
||||
uint16_t _sid = 0; // transfer session, 0 = none given (text-only senders)
|
||||
// diagnosis of the "wrong base image" hunt (13. 11. 2026): who wrote the manifest
|
||||
uint16_t _w_bin = 0, _w_drop = 0, _w_txt = 0;
|
||||
uint16_t _w_bin = 0, _w_drop = 0, _w_bad = 0, _w_txt = 0;
|
||||
char _mani_src = '-';
|
||||
uint32_t _mani_off = 0;
|
||||
bool _flash_diff = false;
|
||||
|
||||
Reference in new issue
Block a user