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

nrf9160 at_write() Failed to send AT command (err:22)

Hi 
  We use INCE sim card in both Denmark and Sweden on our custom product. My main thread basically doing this:

lte_lc_offline();
lte_lc_init();
lte_lc_connect_async(lte_handler);
send socket to server;
go to sleep for x minutes;
and loop
This logic can work fine for 2 or 3 days without any problems; Then suddenly, the at_write() function starts to print "Failed to send AT command (err:22)" out and same thing happen to all the following ademptions of giving AT commands. And the Sim card can never registered again. Only resetting can make everything work normal again. But after another 2 or 3 days, this at_write() failure will happen again. Can you help?
 
nrf sdk version: 1.3.0; modem version: mfw_nrf9160_1.2.1; Device: happens on both 9160DK board and our custom board;

Related