forked from Ezurio/UwTerminalX
-
Notifications
You must be signed in to change notification settings - Fork 14
Image upload data-match #64
Copy link
Copy link
Closed
Labels
area: MCUmgr pluginRelates to MCUmgr pluginRelates to MCUmgr pluginbugSomething isn't workingSomething isn't workingtimeframe: shortPlanned for completion in the short term futurePlanned for completion in the short term future
Description
Metadata
Metadata
Assignees
Labels
area: MCUmgr pluginRelates to MCUmgr pluginRelates to MCUmgr pluginbugSomething isn't workingSomething isn't workingtimeframe: shortPlanned for completion in the short term futurePlanned for completion in the short term future
Hi,
looking at the file upload implementation in: https://github.com/thedjnK/AuTerm/blob/main/plugins/mcumgr/smp_group_img_mgmt.cpp , and in particular at the
matchfield in the file-upload response parsing:I believe that this logic is wrong, or at least doesn't match the Zephyr implementation, where the
matchfield is set totruewhen the SHA verification passes: https://github.com/zephyrproject-rtos/zephyr/blob/44bbc13394d334862995bb58a3c64da1bdd6d00d/subsys/mgmt/mcumgr/grp/img_mgmt/src/img_mgmt.c#L889-L913Is the AuTerm implementation simply wrong, or there is more to it?