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

nRF 9160 DK - Asset Tracker (and NTP) not working (nrf_cloud_connect_failed: 22)

Hello!

I'm trying to make the asset_tracker sample working on the nRF9160 DK. The at_client worked just fine and I was able to connect to the base station (I'm using NBiOT). Now I'm planning to send/receive some data through UDP and first I wanted to try to connect to the nRF Cloud and then try some other sample programs, such as NTP. Here's the problem:

I changed the network mode in SES to NBIoT and it works as I checked it with %XSYSTEMMODE (it returns 0,1,0,0). But as soon as the system boots I'm getting an error:

***** Booting Zephyr OS v1.14.99-ncs1 *****
Application started
LTE LC config ...
nrf_cloud_connect failed: 22

and then it just reboots. With network set as default (LTE-M) it won't "fail" but won't connect either obviously. Now i've looked for a solution online but none of it worked (even custom .hex files targeted specifically at this problem). I've tried the AT%XEPCO=0 and AT%XBANDLOCK=1, "10010101" (this one doesn't work, returns an error).

Firmware: 1.0.0
Board v0.7.0
SES V4.16 Nordic Edition (64-bit)

I've had similar experience with other example programs trying to connect to the network. They work in LTE-M mode (trying to connect), but after changing it to NBIoT they're just crashing.

NTP for example:

***** Booting Zephyr OS v1.14.99-ncs1 *****
getaddrinfo err: 22

Exception occurred in Secure State
***** HARD FAULT *****
  Fault escalation (see below)
***** BUS FAULT *****
  Precise data bus error
  BFAR Address: 0x50008120
***** Hardware exception *****
Current thread ID = 0x20020134
Faulting instruction address = 0xe380
Fatal fault in ISR! Spinning...

Again, the at_client works fine as some of the other samples (like gps), so i believe the programming procedure isn't the problem. I'm guessing there's an additional configuration procedure needed which i don't know about.

merged.hex

Parents Reply Children
  • Here's the log:

    2019-07-12T07:44:12.005Z DEBUG modem << ***** Booting Zephyr OS v1.14.99-ncs1 *****\x0D
    2019-07-12T07:44:12.009Z DEBUG modem << \x0A
    2019-07-12T07:44:12.012Z DEBUG modem << Flash region\x09\x09Domain\x09\x09Permissions\x0D
    2019-07-12T07:44:12.024Z DEBUG modem << \x0A
    2019-07-12T07:44:12.035Z DEBUG modem << 00 0x00000 0x08000 \x09Secure\x09\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.065Z DEBUG modem << 01 0x08000 0x10000 \x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.069Z DEBUG modem << 02 0x10000 0x18000 \x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.074Z DEBUG modem << 03 0x18000 0x20000 \x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.079Z DEBUG modem << 04 0x20000 0x28000 \x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.083Z DEBUG modem << 05 0x28000 0x30000 \x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.085Z DEBUG modem << 06 0x30000 0x38000 \x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.088Z DEBUG modem << 07 0x38000 0x40000 \x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.090Z DEBUG modem << 08 0x40000 0x48000 \x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.092Z DEBUG modem << 09 0x48000 0x50000 \x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.097Z DEBUG modem << 10 0x50000 0x58000 \x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.100Z DEBUG modem << 11 0x58000 0x60000 \x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.117Z DEBUG modem << 12 0x60000 0x68000 \x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.120Z DEBUG modem << 13 0x68000 0x70000 \x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.126Z DEBUG modem << 14 0x70000 0x78000 \x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.129Z DEBUG modem << 15 0x78000 0x80000 \x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.133Z DEBUG modem << 16 0x80000 0x88000 \x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.135Z DEBUG modem << 17 0x88000 0x90000 \x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.137Z DEBUG modem << 18 0x90000 0x98000 \x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.139Z DEBUG modem << 19 0x98000 0xa0000 \x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.143Z DEBUG modem << 20 0xa0000 0xa8000 \x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.146Z DEBUG modem << 21 0xa8000 0xb0000 \x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.151Z DEBUG modem << 22 0xb0000 0xb8000 \x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.152Z DEBUG modem << 23 0xb8000 0xc0000 \x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.154Z DEBUG modem << 24 0xc0000 0xc8000 \x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.155Z DEBUG modem << 25 0xc8000 0xd0000 \x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.157Z DEBUG modem << 26 0xd0000 0xd8000 \x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.158Z DEBUG modem << 27 0xd8000 0xe0000 \x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.160Z DEBUG modem << 28 0xe0000 0xe8000 \x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.180Z DEBUG modem << 29 0xe8000 0xf0000 \x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.183Z DEBUG modem << 30 0xf0000 0xf8000 \x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.187Z DEBUG modem << 31 0xf8000 0x100000 \x09Non-Secure\x09rwxl\x0D\x0A\x0D\x0A
    2019-07-12T07:44:12.191Z DEBUG modem << SRAM region\x09\x09Domain\x09\x09Permissions\x0D\x0A
    2019-07-12T07:44:12.194Z DEBUG modem << 00 0x00000 0x02000\x09Secure\x09\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.197Z DEBUG modem << 01 0x02000 0x04000\x09Secure\x09\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.199Z DEBUG modem << 02 0x04000 0x06000\x09Secure\x09\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.200Z DEBUG modem << 03 0x06000 0x08000\x09Secure\x09\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.201Z DEBUG modem << 04 0x08000 0x0a000\x09Secure\x09\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.205Z DEBUG modem << 05 0x0a000 0x0c000\x09Secure\x09\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.206Z DEBUG modem << 06 0x0c000 0x0e000\x09Secure\x09\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.208Z DEBUG modem << 07 0x0e000 0x10000\x09Secure\x09\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.210Z DEBUG modem << 08 0x10000 0x12000\x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.211Z DEBUG modem << 09 0x12000 0x14000\x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.214Z DEBUG modem << 10 0x14000 0x16000\x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.216Z DEBUG modem << 11 0x16000 0x18000\x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.217Z DEBUG modem << 12 0x18000 0x1a000\x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.219Z DEBUG modem << 13 0x1a000 0x1c000\x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.220Z DEBUG modem << 14 0x1c000 0x1e000\x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.241Z DEBUG modem << 15 0x1e000 0x20000\x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.243Z DEBUG modem << 16 0x20000 0x22000\x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.246Z DEBUG modem << 17 0x22000 0x24000\x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.248Z DEBUG modem << 18 0x24000 0x26000\x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.250Z DEBUG modem << 19 0x26000 0x28000\x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.252Z DEBUG modem << 20 0x28000 0x2a000\x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.255Z DEBUG modem << 21 0x2a000 0x2c000\x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.258Z DEBUG modem << 22 0x2c000 0x2e000\x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.261Z DEBUG modem << 23 0x2e000 0x30000\x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.264Z DEBUG modem << 24 0x30000 0x32000\x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.266Z DEBUG modem << 25 0x32000 0x34000\x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.268Z DEBUG modem << 26 0x34000 0x36000\x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.269Z DEBUG modem << 27 0x36000 0x38000\x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.271Z DEBUG modem << 28 0x38000 0x3a000\x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.273Z DEBUG modem << 29 0x3a000 0x3c000\x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.275Z DEBUG modem << 30 0x3c000 0x3e000\x09Non-Secure\x09rwxl\x0D\x0A
    2019-07-12T07:44:12.277Z DEBUG modem << 31 0x3e000 0x40000\x09Non-Secure\x09rwxl\x0D\x0A\x0D\x0A
    2019-07-12T07:44:12.279Z DEBUG modem << Peripheral\x09\x09Domain\x09\x09Status\x0D\x0A
    2019-07-12T07:44:12.280Z DEBUG modem << 00 NRF_P0\x09\x09Non-Secure\x09OK\x0D\x0A
    2019-07-12T07:44:12.299Z DEBUG modem << 01 NRF_CLOCK\x09\x09Non-Secure\x09OK\x0D\x0A
    2019-07-12T07:44:12.302Z DEBUG modem << 02 NRF_RTC1\x09\x09Non-Secure\x09OK\x0D\x0A
    2019-07-12T07:44:12.306Z DEBUG modem << 03 NRF_NVMC\x09\x09Non-Secure\x09OK\x0D\x0A
    2019-07-12T07:44:12.308Z DEBUG modem << 04 NRF_UARTE1\x09\x09Non-Secure\x09OK\x0D\x0A
    2019-07-12T07:44:12.310Z DEBUG modem << 05 NRF_UARTE2\x09\x09Secure\x09\x09SKIP\x0D\x0A
    2019-07-12T07:44:12.312Z DEBUG modem << 06 NRF_IPC\x09\x09Non-Secure\x09OK\x0D\x0A
    2019-07-12T07:44:12.314Z DEBUG modem << 07 NRF_VMC\x09\x09Non-Secure\x09OK\x0D\x0A
    2019-07-12T07:44:12.315Z DEBUG modem << 08 NRF_FPU\x09\x09Non-Secure\x09OK\x0D\x0A
    2019-07-12T07:44:12.316Z DEBUG modem << 09 NRF_EGU1\x09\x09Non-Secure\x09OK\x0D\x0A
    2019-07-12T07:44:12.317Z DEBUG modem << 10 NRF_EGU2\x09\x09Non-Secure\x09OK\x0D\x0A
    2019-07-12T07:44:12.318Z DEBUG modem << 11 NRF_TWIM2\x09\x09Non-Secure\x09OK\x0D\x0A
    2019-07-12T07:44:12.320Z DEBUG modem << 12 NRF_SPIM3\x09\x09Non-Secure\x09OK\x0D\x0A
    2019-07-12T07:44:12.321Z DEBUG modem << 13 NRF_TIMER0\x09\x09Non-Secure\x09OK\x0D\x0A
    2019-07-12T07:44:12.322Z DEBUG modem << 14 NRF_TIMER1\x09\x09Non-Secure\x09OK\x0D\x0A
    2019-07-12T07:44:12.324Z DEBUG modem << 15 NRF_TIMER2\x09\x09Non-Secure\x09OK\x0D\x0A
    2019-07-12T07:44:12.325Z DEBUG modem << 16 NRF_SAADC\x09\x09Non-Secure\x09OK\x0D\x0A
    2019-07-12T07:44:12.326Z DEBUG modem << 17 NRF_GPIOTE1\x09\x09Non-Secure\x09OK\x0D\x0A\x0D\x0A
    2019-07-12T07:44:12.327Z DEBUG modem << SPM: NS image at 0x8000\x0D\x0A
    2019-07-12T07:44:12.330Z DEBUG modem << SPM: NS MSP at 0x200236d8\x0D\x0A
    2019-07-12T07:44:12.332Z DEBUG modem << SPM: NS reset vector at 0xa2f5\x0D\x0A
    2019-07-12T07:44:12.333Z DEBUG modem << SPM: prepare to jump to Non-Secure image.\x0D\x0A
    2019-07-12T07:44:13.815Z DEBUG modem << ***** Booting Zephyr OS v1.14.99-ncs1 *****\x0D\x0A
    2019-07-12T07:44:36.594Z DEBUG modem << The AT host sample started\x0D\x0A
    2019-07-12T07:44:46.038Z INFO Modem port is closed
    2019-07-12T07:44:46.048Z INFO Modem port is opened
    2019-07-12T07:44:46.055Z DEBUG modem >> AT+CFUN?\x0D\x0A
    2019-07-12T07:44:46.086Z DEBUG modem << +CFUN: 1\x0D\x0A
    2019-07-12T07:44:46.089Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:46.129Z DEBUG modem >> AT+CGSN=1\x0D\x0A
    2019-07-12T07:44:46.161Z DEBUG modem << +CGSN: "352656100002867"\x0D\x0A
    2019-07-12T07:44:46.163Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:46.168Z DEBUG modem >> AT+CGMI\x0D\x0A
    2019-07-12T07:44:46.199Z DEBUG modem << Nordic Semiconductor ASA\x0D\x0A
    2019-07-12T07:44:46.202Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:46.207Z DEBUG modem >> AT+CGMM\x0D\x0A
    2019-07-12T07:44:46.233Z DEBUG modem << nRF9160-SICA\x0D\x0A
    2019-07-12T07:44:46.237Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:46.242Z DEBUG modem >> AT+CGMR\x0D\x0A
    2019-07-12T07:44:46.264Z DEBUG modem << mfw_nrf9160_1.0.0\x0D\x0A
    2019-07-12T07:44:46.266Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:46.269Z INFO Nordic Semiconductor ASA nRF9160-SICA [mfw_nrf9160_1.0.0] SerNr: 352656100002867
    2019-07-12T07:44:46.271Z DEBUG modem >> AT+CEMODE?\x0D\x0A
    2019-07-12T07:44:46.299Z DEBUG modem << +CEMODE: 0\x0D\x0A
    2019-07-12T07:44:46.304Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:46.331Z DEBUG modem >> AT%XCBAND=?\x0D\x0A
    2019-07-12T07:44:46.356Z DEBUG modem << %XCBAND: (1,2,3,4,5,8,12,13,17,19,20,25,26,28,66)\x0D\x0A
    2019-07-12T07:44:46.359Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:46.387Z DEBUG modem >> AT+CMEE?\x0D\x0A
    2019-07-12T07:44:46.417Z DEBUG modem << +CMEE: 0\x0D\x0A
    2019-07-12T07:44:46.419Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:46.422Z DEBUG modem >> AT+CMEE=1\x0D\x0A
    2019-07-12T07:44:46.448Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:46.453Z DEBUG modem >> AT+CNEC?\x0D\x0A
    2019-07-12T07:44:46.478Z DEBUG modem << +CNEC: 0\x0D\x0A
    2019-07-12T07:44:46.505Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:46.510Z DEBUG modem >> AT+CNEC=24\x0D\x0A
    2019-07-12T07:44:46.529Z DEBUG modem << OK\x0D\x0A
    2019-07-12T07:44:46.551Z DEBUG modem >> AT+CGEREP?\x0D\x0A
    2019-07-12T07:44:46.575Z DEBUG modem << +CGEREP: 0,0\x0D\x0A
    2019-07-12T07:44:46.577Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:46.598Z DEBUG modem >> AT+CGDCONT?\x0D\x0A
    2019-07-12T07:44:46.621Z DEBUG modem << +CGDCONT: 0,"IP","aiut.nbiot","10.12.0.2",0,0\x0D\x0A
    2019-07-12T07:44:46.624Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:46.660Z DEBUG modem >> AT+CGACT?\x0D\x0A
    2019-07-12T07:44:46.684Z DEBUG modem << +CGACT: 0,1\x0D
    2019-07-12T07:44:46.707Z DEBUG modem << \x0A
    2019-07-12T07:44:46.709Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:46.738Z DEBUG modem >> AT+CGEREP=1\x0D\x0A
    2019-07-12T07:44:46.760Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:46.783Z DEBUG modem >> AT+CIND=1,1,1\x0D\x0A
    2019-07-12T07:44:46.804Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:46.826Z DEBUG modem >> AT+CEREG=2\x0D\x0A
    2019-07-12T07:44:46.853Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:46.876Z DEBUG modem >> AT+CEREG?\x0D\x0A
    2019-07-12T07:44:46.905Z DEBUG modem << +CEREG: 2,1,"A9D1","0204556F",9\x0D\x0A
    2019-07-12T07:44:46.909Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:46.937Z DEBUG modem >> AT+COPS=3,2\x0D\x0A
    2019-07-12T07:44:46.963Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:46.987Z DEBUG modem >> AT+COPS?\x0D\x0A
    2019-07-12T07:44:47.016Z DEBUG modem << +COPS: 0,2,"26002",9\x0D\x0A
    2019-07-12T07:44:47.023Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:47.058Z DEBUG modem >> AT%XCBAND\x0D\x0A
    2019-07-12T07:44:47.084Z DEBUG modem << %XCBAND: 20\x0D
    2019-07-12T07:44:47.110Z DEBUG modem << \x0A
    2019-07-12T07:44:47.114Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:47.142Z DEBUG modem >> AT+CGDCONT?\x0D\x0A
    2019-07-12T07:44:47.169Z DEBUG modem << +CGDCONT: 0,"IP","aiut.nbiot","10.12.0.2",0,0\x0D\x0A
    2019-07-12T07:44:47.172Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:47.199Z DEBUG modem >> AT+CGACT?\x0D\x0A
    2019-07-12T07:44:47.229Z DEBUG modem << +CGACT: 0,1\x0D\x0A
    2019-07-12T07:44:47.233Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:47.243Z DEBUG modem >> AT%CESQ=1\x0D\x0A
    2019-07-12T07:44:47.266Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:47.291Z DEBUG modem >> AT+CESQ\x0D\x0A
    2019-07-12T07:44:47.320Z DEBUG modem << +CESQ: 99,99,255,255,255,52\x0D\x0A
    2019-07-12T07:44:47.323Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:47.351Z DEBUG modem >> AT%XSIM=1\x0D\x0A
    2019-07-12T07:44:47.375Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:47.401Z DEBUG modem >> AT%XSIM?\x0D\x0A
    2019-07-12T07:44:47.426Z DEBUG modem << %XSIM: 1\x0D\x0A
    2019-07-12T07:44:47.451Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:47.481Z DEBUG modem >> AT+CPIN?\x0D\x0A
    2019-07-12T07:44:47.510Z DEBUG modem << +CPIN: READY\x0D\x0A
    2019-07-12T07:44:47.513Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:47.547Z DEBUG modem >> AT+CPINR="SIM PIN"\x0D\x0A
    2019-07-12T07:44:47.574Z DEBUG modem << +CPINR: "SIM PIN",3\x0D\x0A
    2019-07-12T07:44:47.577Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:47.603Z DEBUG modem >> AT+CIMI\x0D\x0A
    2019-07-12T07:44:47.629Z DEBUG modem << 260021171774100\x0D\x0A
    2019-07-12T07:44:47.631Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:47.633Z INFO IMSIdentity: 260021171774100
    2019-07-12T07:44:52.540Z DEBUG modem >> at+cesq\x0D\x0A
    2019-07-12T07:44:52.559Z DEBUG modem << +CESQ: 99,99,255,255,255,52\x0D\x0A
    2019-07-12T07:44:52.574Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:53.568Z DEBUG modem << +CEREG: 1,"A9DB","0203B571",9\x0D\x0A\x00
    2019-07-12T07:44:53.592Z DEBUG modem >> AT+COPS=3,2\x0D\x0A
    2019-07-12T07:44:53.616Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:53.640Z DEBUG modem >> AT+COPS?\x0D\x0A
    2019-07-12T07:44:53.664Z DEBUG modem << +COPS: 0,2,"26002",9\x0D\x0A
    2019-07-12T07:44:53.668Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:53.676Z DEBUG modem >> AT%XCBAND\x0D\x0A
    2019-07-12T07:44:53.703Z DEBUG modem << %XCBAND: 20\x0D\x0A
    2019-07-12T07:44:53.706Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:53.737Z DEBUG modem >> AT+CGDCONT?\x0D\x0A
    2019-07-12T07:44:53.763Z DEBUG modem << +CGDCONT: 0,"IP","aiut.nbiot","10.12.0.2",0,0\x0D\x0A
    2019-07-12T07:44:53.766Z DEBUG modem << OK\x0D\x0A\x00
    2019-07-12T07:44:53.792Z DEBUG modem >> AT+CGACT?\x0D\x0A
    2019-07-12T07:44:53.819Z DEBUG modem << +CGACT: 0,1\x0D\x0A
    2019-07-12T07:44:53.821Z DEBUG modem << OK\x0D\x0A\x00

  • Hi,

     

    Thank you for the log.

    Do you have a iBasis SIM card you can try with nb-iot to see if this works better?

    Have you contacted your current local carrier and asked about the issues you are seeing? DNS does not seem to be provided by the network, and I would also recommend asking if they have any restriction in TCP based traffic on NB-IoT.

     

    Kind regards,

    Håkon

  • No, I don't have the iBasis SIM. I'm trying to use different APN now. I'm able to do that manually in at_client and it does connect successfully:

    at+cgdcont?
    +CGDCONT: 0,"IP","test.nbiot","100.88.198.213",0,0

    However, after restarting the module it just insists to use the old APN (aiut.nbiot), even when I didn't specify it. I guess the same is happening when loading a program and it connects to the network automatically (like the ftp you've sent me to test). Is there a way to stop it from connecting to the old APN?

  • Set the APN manually, then issue "AT+CFUN=0" to store it persistently.

    When you reboot, it should now have the APN that you set.

     

    Kind regards,

    Håkon

  • Well, it doesn't work. The APN is remembered after changing the mode to offline (4), but power off just resets it to the default one.

    at+cgdcont?
    +CGDCONT: 0,"IP","aiut.nbiot","10.12.0.2",0,0
    OK
    at+cfun=0
    OK
    AT+CFUN?
    +CFUN: 4
    OK
    at+cgdcont=0,"IP","test.nbiot",,,,0
    OK
    AT+CFUN=1
    OK
    at+cgdcont?
    +CGDCONT: 0,"IP","test.nbiot","100.120.208.204",0,0
    OK
    at+cgcontrdp=0
    +CGCONTRDP: 0,,"test.nbiot","","","213.158.199.1","213.158.199.5",,,,,1500
    OK
    at+cfun=4
    OK
    AT+CFUN?
    +CFUN: 4
    OK
    AT+CFUN=1
    OK
    at+cgdcont?
    +CGDCONT: 0,"IP","test.nbiot","100.120.208.206",0,0
    OK
    at+cfun=0
    OK
    at+cfun=1
    OK
    AT+CFUN?
    +CFUN: 1
    OK
    at+cgdcont?
    +CGDCONT: 0,"IP","aiut.nbiot","10.12.0.2",0,0
    OK

Related