-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Potential Bug: FMP Unresponsiveness after Receiving multiple FMP_DEV_REBOOT_TIME_REQ msg's #48
Comments
Hi MpmTwtg,
After received your FMP_DEV_REBOOT_TIME_REQ downlink with a valid time can you check if the mask is correctly set with and that a new task is scheduled with fmp_add_task() Best |
Hi lbm-team the ctx->fmp_task_ctx_mask |= ANS_CMD_TASK_MASK; is set see output log |
Hi MpmTwtg, I understand your point, the modem received a new downlink that request the same answer the current answering command. your proposition is correct to remove line 321: case ANS_CMD_TASK_MASK: {
// ctx->fmp_task_ctx_mask &= ~( ANS_CMD_TASK_MASK );
break;
} and to check the output of lorawan_api_send() if( lorawan_api_payload_send(
FMP_PORT, true, ctx->fmp_tx_payload_ans, ctx->fmp_tx_payload_ans_size, UNCONF_DATA_UP,
smtc_modem_hal_get_time_in_ms( ) + smtc_modem_hal_get_random_nb_in_range( 0, ctx->fmp_ans_delay ),
ctx->stack_id ) == OKLORAWAN )
{
ctx->fmp_task_ctx_mask &= ~( ANS_CMD_TASK_MASK );
ctx->fmp_tx_payload_ans_size = 0;
} |
FMP does not respond after it got a valid FMP_DEV_REBOOT_TIME_REQ.
The first time it responds with an answer and after that not.
SWL2001/lbm_lib/smtc_modem_core/lorawan_packages/firmware_management_protocol/lorawan_fmp_package.c
Line 307 in ffca226
my proposal is to remove this from line 321:
And implant it with:
or
This seems to works, would this be a correct fix and are am i missing something?
The text was updated successfully, but these errors were encountered: