Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lost Connection ERROR #5

Closed
eabase opened this issue Jun 10, 2023 · 3 comments
Closed

Lost Connection ERROR #5

eabase opened this issue Jun 10, 2023 · 3 comments

Comments

@eabase
Copy link

eabase commented Jun 10, 2023

I managed to successfully connect an Nordic Thingy:91 with the latest Anjay LwM2M Client stack to the CoioteDM platform.

But then it suddenly lost the connection with the following error.

<wrn> anjay_zephyr_gps_nrf: GPS was interrupted multiple times by the LTE modem when producing a fix
	<inf> anjay_zephyr_lwm2m: Anjay is now offline
	<inf> anjay: [anjay] servers reloaded
<wrn> anjay: [anjay] transport required for protocol coaps is not supported or offline

After rebooting the device, the connection worked again, but I would like to know what happened and if this is reliable?

I'm using: A coaps URI, with PSK, and no bootstrap with default GNSS settings:

anjay config set lifetime 50
anjay config set bootstrap n
anjay config set security_mode psk
anjay config set gps_prio_mode_timeout 300
anjay config set gps_prio_mode_cooldown 1800

Any ideas of potential issues?

Maybe it would be a good idea to be able to disable BT and GPS from anjay when not in use?

@eabase
Copy link
Author

eabase commented Jun 10, 2023

I just found this text about nRF9160 connection loss.

nRF9160 uses the same radio for GPS and LTE connectivity. GPS signal is
caught between LTE transmissions and in case GPS "cold" fix acquisition takes
too much time, Anjay turns off LTE transmissions for the time of fix acquisition.
It can be seen by the following warning:
gps_nrf: GPS was interrupted multiple times by the LTE modem when producing a fix.
Anjay is notified by it, enters offline mode and reconnects when the first fix is acquired and LTE is enabled back.

This was also added to the Thingy:91 documentation as they use the same baseband.

@Mierunski
Copy link

Hi,
As mentioned by the NRF documentation - this is intended behaviour to allow GPS to catch fix.
You can also disable GPS completely through KConfig options during compilation, or set timeout and cooldown values during runtime to different values

Best Regards
Mieszko

@eabase
Copy link
Author

eabase commented Jun 19, 2023

@Mierunski

You can also disable GPS completely through KConfig options during compilation,

Yes, I know, and my point of #4 was exactly that. Add this functionality to the client so you don't need to recompile the entire client, just to turn on/off the GPS etc.

@eabase eabase closed this as completed Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants