golioth / golioth-zephyr-sdk

Golioth SDK For Zephyr
https://www.golioth.io
Apache License 2.0
66 stars 19 forks source link

samples: common: introduce lte_monitor for nRF91 #340

Closed mniestroj closed 1 year ago

mniestroj commented 1 year ago

It is hard to know what is the reason of nRF91 taking sometimes so long to boot. As the LTE registration/attachment happens all in Zephyr OS boot phase (before main() is executed), there are no logs printed and nothing really indicates what is the reason of hang.

Add LTE monitor module specifically for nRF91 modem. This will log events related to LTE Link Control, such as:

<inf> lte_monitor: Network: Searching

and after connecting:

<inf> lte_monitor: RRC: Connected
<inf> lte_monitor: Network: Registered (roaming)

which will give user a hint about what happens and why doesn't the application continue to run as expected.

This also should catch all the disconnections when device has weak LTE signal and give a hint about LTE being the reason of disconnection (or reconnection) from Golioth.

github-actions[bot] commented 1 year ago

Visit the preview URL for this PR (updated for commit 720c0ca):

https://golioth-zephyr-sdk-doxygen-dev--pr340-nrf91-lte-monito-yxx8389v.web.app

(expires Tue, 21 Feb 2023 18:25:11 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: a389eefadf4b4b68a539327b3459dd66c142cf49