Hi!
Since I do not have a SIM card that provides support PSM or eRDX I need to switch the system mode manually.
In my config I have CONFIG_LTE_NETWORK_MODE_LTE_M=y
I do this as follows:
// To lte mode
gps_stop(device);
lte_lc_offline();
lte_lc_connect();
// To GPS mode
lte_lc_offline();
lte_lc_system_mode_set(LTE_LC_SYSTEM_MODE_GPS);
lte_lc_normal();
gps_start(device, &config);
With some additional error handling and stuff, but this is the essence of it. But when I stop the GPS and then try to enable LTE mode the modem never manages to connect to LTE.
I have seen from some other posts about the need to close all sockets before trying to connect, so I have tried both with and without closing the GPS socket after disabling the GPS, but I end up with the same issue.
Switching from LTE to GPS works fine.
I use v1.3.0 of the SDK and have a modem running firmware v1.2.0.
Is there something I am missing that makes the connect not work?