Sub-IoT-Stack icon indicating copy to clipboard operation
Sub-IoT-Stack copied to clipboard

Board resets when sending message using default access class at index 1 set to normal rate.

Open Dond96 opened this issue 3 years ago • 6 comments

I ran into a bug where the B-L072Z-LRWAN1 board would reset when sending a message using access class 1 to normal rate. the code below would cause the board to reset using access class 0x11 in the session config.

dae_access_profile_t profile;
d7ap_fs_read_access_class(1, &profile);
profile.channel_header = (channel_header_t)
{
  .ch_class = PHY_CLASS_NORMAL_RATE,
  .ch_coding = PHY_CODING_FEC_PN9,
  .ch_freq_band = PHY_BAND_868
};
d7ap_fs_write_access_class(1, &profile);

d7ap_send(args); 

Dond96 avatar Dec 07 '21 09:12 Dond96

do you have any logs of this? did the board assert somewhere?

LOorts-Aloxy avatar Dec 07 '21 10:12 LOorts-Aloxy

Nope didn't get an assert the board would just reset and print the logs from the bootstrap function again.

Dond96 avatar Dec 07 '21 10:12 Dond96

hmmm ok, normal rate is automatically being tested, but these tests are very basic. We're not testing low power listening (which is default for access class 0x11) combined with normal rate at this time. Could be that there's still an issue there.

LOorts-Aloxy avatar Dec 07 '21 11:12 LOorts-Aloxy

and what is the reboot reason when the device reboots?

LOorts-Aloxy avatar Dec 07 '21 12:12 LOorts-Aloxy

It didn't show a reason it just rebooted. But I just switched to lo-rate for the background message now because I don't need to increased data speed for that.

Dond96 avatar Dec 07 '21 12:12 Dond96

normally one of the first messages when booting is "rebooted with reason X" which should show you the reboot reason. but if it's fixed like this for now, that's also great :)

LOorts-Aloxy avatar Dec 07 '21 12:12 LOorts-Aloxy