Developing on Zephyr 1.2 and modem fw 1.2.
Developing a client LTE application. If I run the below sequence of commands periodically every 2 min:
eventually lte_lc_connect(); returns the errors below.
Could not get response prefix, error: -22 Could not get network registration status
After this the modem seems to be stuck in a bad state , as I can't get it to reconnect to the network running the above sequence.
Is there a good way to recover that modem, and what does that error mean excactly?
If I run the below sequence of commands periodically every 2 min:
How many times do you need to run this before the modem becomes unresponsive? The modem is supposed to lock if you try to reboot it too many times in rapid succession.
Around 5 times.
Is there a way to unlock it?
If I run the below sequence of commands periodically every 2 min
What do you do in between the intervals? Do you sleep or busy wait, or do you use timer interrupts?
We have an lte client thread that wakes up based on a timer interrupt. The thread is suspended when not active.
Our system also has a separate thread fro GPS.
Is there a "better" way to reconnect to the network? That doesn't cause this problem?
Or a way to unlock the modem?
I will need to reproduce this. This is most likely a bug and not intended behavior.