SWL2001 icon indicating copy to clipboard operation
SWL2001 copied to clipboard

No DevUpgradeImageAns when the FW upgrade image is not valid

Open aajn opened this issue 1 year ago • 1 comments

Hi,

in v4.5.0, when FMP DevUpgradeImageReq is handled the DevUpgradeImageAns is only sent if the FW status is valid (UpImageStatus = 3). I think this is not in line with TS006-1.0.0 and the answer should be sent regardless of UpImageStatus. While the FW version should only be sent when UpImageStatus = 3.

This can be fixed by moving ctx->fmp_task_ctx_mask |= ANS_CMD_TASK_MASK; outside of the if

https://github.com/Lora-net/SWL2001/blob/d05dad5b4df9c0e5899008e43bfce48f5498abb5/lbm_lib/smtc_modem_core/lorawan_packages/firmware_management_protocol/lorawan_fmp_package.c#L717-L733

aajn avatar Jun 24 '24 15:06 aajn

Hi, Thank you very much for your feedback. Your remark is valid. We will fix it in the next coming release. Many thanks,

opeyrard avatar Jun 25 '24 08:06 opeyrard