Open
Description
Calling
smtc_modem_test_start();
auto ret = smtc_modem_test_tx_cw(868000000, 14);
if(ret != SMTC_MODEM_RC_OK)
{
LOG_ERR("Failed to start test mode: %d", ret);
return;
}
It always comes to error
[00:04:27.029,849] <err> lorawan_hal: Assert triggered. Crash log: smtc_cad_bt_launch_radio_callback_for_rp:359
[00:04:27.029,856] <wrn> lorawan_hal: Resetting the MCU
Seems in the function smtc_modem_test_tx_cw
, variable modem_test_context.bw
is not setted.
I did a simple fix in smtc_modem_test_tx_cw
, to make this test work :
if( frequency_hz >= 2400000000 )
{
modem_test_context.bw = RAL_LORA_BW_800_KHZ; //Added
lora_param.mod_params.bw = RAL_LORA_BW_800_KHZ;
lora_param.mod_params.cr = RAL_LORA_CR_LI_4_8;
lora_param.sync_word = 0x12;
}
else
{
modem_test_context.bw = RAL_LORA_BW_125_KHZ; //Added
lora_param.mod_params.bw = RAL_LORA_BW_125_KHZ;
lora_param.mod_params.cr = RAL_LORA_CR_4_5;
lora_param.sync_word = 0x34;
}
Could you verify this?
Metadata
Metadata
Assignees
Labels
No labels