This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

IO error when configuring modem

Hi,

I have a project where my nrf9160 is able to enable and get a fix with GPS and turn in on and off. I am trying to enable LTE when the GPS is off. Here is my procedure:

Enable GPS as is in the GPS sample.

Get GPS fix

Close GPS socket

Send AT command AT%XSYSTEMMODE=0,0,0,0

Send AT command AT%XSYSTEMMODE=1,0,0,0

call lte_lc_init_and_connect();

Upon the last  call, I get error code -5, and occasionally +CEREG: 5,"D113","03318501",7 as output.

What more must I do to deactivate GPS and activate LTE effectively?

Thanks.