Sidewalk issues on RAK4631

we are now deploying and flashed some of ours boards and we discovered another strange issue.
With this version, when it works, all is working fine (we may have a lockup on semtech communication after few hours of running on rare case but I will investigate later because it can be a side effect of the following issue)
That said, we have about 100 custom boards, with RAK4630 and approx 50% are not able to use LoRa or FSK, I mean same firmware, same config, and I activated cli so I can pass sid command for testing.

Our firmware is activating BLE + LoRa + FSK As you can see below the defect boards stick in BLE, even if I can see on power consumption that LoRa packet is fired, it looks like it does not receive response and thus does not mount LoRa or FSK

On the other side, boards that works are working fine, FSK is mounting quickly

I can't believe it is an harware issue on 50% of our boards, and we tested them with zephyr lorawan class_a sample and it works, so hardware is mostly working. I suspect a config issue on semtech and/or sidewalk

on Nordic Sidewalk SDK a dedicated branch for RAK4631 has been available and to make it works on branch RAK4631 1.0.0 you changed

#if defined(CONFIG_BOARD_RAK4631)
		.ctrl = SX126X_TCXO_CTRL_DIO3,
		.voltage = RADIO_SX126X_TCXO_CTRL_1_8V,
		.timeout = 10,
#else
		.ctrl = SX126X_TCXO_CTRL_NONE,
#endif /* CONFIG_BOARD_RAK4631 */

then

	.state_timings = {
		.sleep_to_full_power_us = 485,
		.full_power_to_sleep_us = 0,

and finally

struct sid_sub_ghz_links_config sub_ghz_link_config = {
	.enable_link_metrics = true,
	.metrics_msg_retries = 3,
	.sar_dcr = 100,

Would it be possible to have some precision on sar_dcr=100, sleep_to_full_power_us=485 and timeout=10?
Do you think playing with these parameters could do the stuff or it can be inside the stack?
I can do some testing if you can point me to the right direction to try to fix this.

Another point is that on some boards that are working, after some hours, board is freezing until reset.


Any help would be greatly appreciated, we're stuck because things are not going smooth, and I can't believe I'm the only one trying to deploy devices using RAK4631 and sidewalk.

Related