Open zafersn opened 2 months ago
Hi, A porting of LBM on Zephyr OS is now available as a feature branch here. Many thanks, Best regards,
Hi,
I have been playing a bit with the LBM Zephyr port from Semtech on a RAK4631 module. My node is able to join also when I enable Zephyr Power Management for the kernel (CONFIG_PM=y
) as well as for devices (CONFIG_PM_DEVICE=y
).
Note that the CONFIG_PM_DEVICE
option is actually not implemented for the LoRa radio drivers. The sx1262 is put into sleep mode by the driver regardless of that option.
Hi @jakeru , indeed, the device is put in sleep mode by the LBM stack and not by the zephyr-side driver. This can be open to discussion, but IMHO the current behaviour is "sane" enough.
I’ve ported the Semtech LoRa Basic Modem library to Zephyr for my project. It works fine unless I enable CONFIG_PM. Does anyone have any insight into what might be causing this issue? I understand that the LoRa Basic Modem library isn’t officially part of Zephyr yet, but perhaps someone has encountered a similar problem and has a solution or idea.
I can see that the join request from the chip successfully reaches the gateway, and the gateway accepts it, but the LoRa device immediately generates a fail event due to modem returns RX Timeout flags. There is no problem with dev eui and app_key. if I disable the configuration. a join request will will be ok.
Here are the gateway LoRaWAN frames:
zephyr version: v3.6-branch sdk version: zephyr-sdk-0.16.6 MCU: STM32U575ZIQ SHIELD: semtech_lr1121mb1xxs Any workaround ideas? Can anyone shed some light on how to debug at least?
SUCCESFULL JOIN LOGS
JOIN REQUEST FAILS LOG
I created the same issue here too:
https://www.thethingsnetwork.org/forum/t/lora-join-request-fails-rx-timeout/69045/8