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

cloud_connect failed: -111 error

Hello,

I'm trying to set up my nrf9160 Dev Kit and I'm having problems connecting it to the nrfCloud.

Since I'm using it in Austria, I'm using a different sim card on LTE NB which I got working using some AT- Commands. 

The only problem is, that as soon the LTE connenction is established it throws the cloud_connect failed: -111  error and reboots.

I'm using the latest asset tracker and modem firmware and the same build runs fine on a different nrf9160 DK board. The sim card also works and has not run out of data.

The board I'm using may have been linked to a different nrfCloud account before but im not sure if that could cause the issue I'm getting.

I've tried some different builds and a  different board contoller firmware but the error remained.

I would appreciate if somebody could help me with this situation!

here is my LTE link monitor log:

2019-08-29T11:15:10.759Z INFO Modem port is opened
2019-08-29T11:15:18.420Z DEBUG modem << ***** Booting Zephyr OS build v1.14.99-ncs3-snapshot2-1270-g1df8e74cc4ad *****\x0D\x0A
2019-08-29T11:15:18.469Z DEBUG modem << Flash region\x09\x09Domain\x09\x09Permissions\x0D\x0A
2019-08-29T11:15:18.470Z DEBUG modem << 00 0x00000 0x08000 \x09Secure\x09\x09rwxl\x0D\x0A
2019-08-29T11:15:18.472Z DEBUG modem << 01 0x08000 0x10000 \x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.475Z DEBUG modem << 02 0x10000 0x18000 \x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.478Z DEBUG modem << 03 0x18000 0x20000 \x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.480Z DEBUG modem << 04 0x20000 0x28000 \x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.482Z DEBUG modem << 05 0x28000 0x30000 \x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.486Z DEBUG modem << 06 0x30000 0x38000 \x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.488Z DEBUG modem << 07 0x38000 0x40000 \x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.490Z DEBUG modem << 08 0x40000 0x48000 \x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.491Z DEBUG modem << 09 0x48000 0x50000 \x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.493Z DEBUG modem << 10 0x50000 0x58000 \x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.495Z DEBUG modem << 11 0x58000 0x60000 \x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.498Z DEBUG modem << 12 0x60000 0x68000 \x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.500Z DEBUG modem << 13 0x68000 0x70000 \x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.501Z DEBUG modem << 14 0x70000 0x78000 \x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.503Z DEBUG modem << 15 0x78000 0x80000 \x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.504Z DEBUG modem << 16 0x80000 0x88000 \x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.523Z DEBUG modem << 17 0x88000 0x90000 \x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.526Z DEBUG modem << 18 0x90000 0x98000 \x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.529Z DEBUG modem << 19 0x98000 0xa0000 \x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.532Z DEBUG modem << 20 0xa0000 0xa8000 \x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.533Z DEBUG modem << 21 0xa8000 0xb0000 \x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.535Z DEBUG modem << 22 0xb0000 0xb8000 \x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.538Z DEBUG modem << 23 0xb8000 0xc0000 \x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.540Z DEBUG modem << 24 0xc0000 0xc8000 \x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.542Z DEBUG modem << 25 0xc8000 0xd0000 \x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.544Z DEBUG modem << 26 0xd0000 0xd8000 \x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.553Z DEBUG modem << 27 0xd8000 0xe0000 \x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.554Z DEBUG modem << 28 0xe0000 0xe8000 \x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.556Z DEBUG modem << 29 0xe8000 0xf0000 \x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.558Z DEBUG modem << 30 0xf0000 0xf8000 \x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.560Z DEBUG modem << 31 0xf8000 0x100000 \x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.561Z DEBUG modem << Non-secure callable region 0 placed in flash region 0 with size 32.\x0D\x0A\x0D\x0A\x0D\x0A
2019-08-29T11:15:18.563Z DEBUG modem << SRAM region\x09\x09Domain\x09\x09Permissions\x0D\x0A
2019-08-29T11:15:18.566Z DEBUG modem << 00 0x00000 0x02000\x09Secure\x09\x09rwxl\x0D\x0A
2019-08-29T11:15:18.567Z DEBUG modem << 01 0x02000 0x04000\x09Secure\x09\x09rwxl\x0D\x0A
2019-08-29T11:15:18.568Z DEBUG modem << 02 0x04000 0x06000\x09Secure\x09\x09rwxl\x0D\x0A
2019-08-29T11:15:18.569Z DEBUG modem << 03 0x06000 0x08000\x09Secure\x09\x09rwxl\x0D
2019-08-29T11:15:18.578Z DEBUG modem << 04 0x08000 0x0a000\x09Secure\x09\x09rwxl\x0D\x0A
2019-08-29T11:15:18.579Z DEBUG modem << 05 0x0a000 0x0c000\x09Secure\x09\x09rwxl\x0D\x0A
2019-08-29T11:15:18.581Z DEBUG modem << 06 0x0c000 0x0e000\x09Secure\x09\x09rwxl\x0D\x0A
2019-08-29T11:15:18.583Z DEBUG modem << 07 0x0e000 0x10000\x09Secure\x09\x09rwxl\x0D\x0A
2019-08-29T11:15:18.584Z DEBUG modem << 08 0x10000 0x12000\x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.585Z DEBUG modem << 09 0x12000 0x14000\x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.586Z DEBUG modem << 10 0x14000 0x16000\x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.589Z DEBUG modem << 11 0x16000 0x18000\x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.590Z DEBUG modem << 12 0x18000 0x1a000\x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.591Z DEBUG modem << 13 0x1a000 0x1c000\x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.595Z DEBUG modem << 14 0x1c000 0x1e000\x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.596Z DEBUG modem << 15 0x1e000 0x20000\x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.597Z DEBUG modem << 16 0x20000 0x22000\x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.607Z DEBUG modem << 17 0x22000 0x24000\x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.608Z DEBUG modem << 18 0x24000 0x26000\x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.610Z DEBUG modem << 19 0x26000 0x28000\x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.613Z DEBUG modem << 20 0x28000 0x2a000\x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.614Z DEBUG modem << 21 0x2a000 0x2c000\x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.616Z DEBUG modem << 22 0x2c000 0x2e000\x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.617Z DEBUG modem << 23 0x2e000 0x30000\x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.619Z DEBUG modem << 24 0x30000 0x32000\x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.620Z DEBUG modem << 25 0x32000 0x34000\x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.621Z DEBUG modem << 26 0x34000 0x36000\x09Non-Secure\x09rwxl\x0D
2019-08-29T11:15:18.630Z DEBUG modem << 27 0x36000 0x38000\x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.631Z DEBUG modem << 28 0x38000 0x3a000\x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.634Z DEBUG modem << 29 0x3a000 0x3c000\x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.636Z DEBUG modem << 30 0x3c000 0x3e000\x09Non-Secure\x09rwxl\x0D\x0A
2019-08-29T11:15:18.638Z DEBUG modem << 31 0x3e000 0x40000\x09Non-Secure\x09rwxl\x0D\x0A\x0D\x0A
2019-08-29T11:15:18.640Z DEBUG modem << Peripheral\x09\x09Domain\x09\x09Status\x0D\x0A
2019-08-29T11:15:18.643Z DEBUG modem << 00 NRF_P0\x09\x09Non-Secure\x09OK\x0D\x0A
2019-08-29T11:15:18.651Z DEBUG modem << 01 NRF_CLOCK\x09\x09Non-Secure\x09OK\x0D\x0A
2019-08-29T11:15:18.653Z DEBUG modem << 02 NRF_RTC1\x09\x09Non-Secure\x09OK\x0D\x0A
2019-08-29T11:15:18.655Z DEBUG modem << 03 NRF_NVMC\x09\x09Non-Secure\x09OK\x0D\x0A
2019-08-29T11:15:18.656Z DEBUG modem << 04 NRF_UARTE1\x09\x09Non-Secure\x09OK\x0D\x0A
2019-08-29T11:15:18.658Z DEBUG modem << 05 NRF_UARTE2\x09\x09Secure\x09\x09SKIP\x0D\x0A
2019-08-29T11:15:18.661Z DEBUG modem << 06 NRF_TWIM2\x09\x09Non-Secure\x09OK\x0D\x0A
2019-08-29T11:15:18.669Z DEBUG modem << 07 NRF_SPIM3\x09\x09Non-Secure\x09OK\x0D\x0A
2019-08-29T11:15:18.670Z DEBUG modem << 08 NRF_TIMER0\x09\x09Non-Secure\x09OK\x0D\x0A
2019-08-29T11:15:18.672Z DEBUG modem << 09 NRF_TIMER1\x09\x09Non-Secure\x09OK\x0D\x0A
2019-08-29T11:15:18.674Z DEBUG modem << 10 NRF_TIMER2\x09\x09Non-Secure\x09OK\x0D\x0A
2019-08-29T11:15:18.675Z DEBUG modem << 11 NRF_SAADC\x09\x09Non-Secure\x09OK\x0D\x0A
2019-08-29T11:15:18.677Z DEBUG modem << 12 NRF_PWM0\x09\x09Non-Secure\x09OK\x0D\x0A
2019-08-29T11:15:18.678Z DEBUG modem << 13 NRF_PWM1\x09\x09Non-Secure\x09OK\x0D\x0A
2019-08-29T11:15:18.685Z DEBUG modem << 14 NRF_PWM2\x09\x09Non-Secure\x09OK\x0D\x0A
2019-08-29T11:15:18.687Z DEBUG modem << 15 NRF_PWM3\x09\x09Non-Secure\x09OK\x0D\x0A
2019-08-29T11:15:18.689Z DEBUG modem << 16 NRF_IPC\x09\x09Non-Secure\x09OK\x0D\x0A
2019-08-29T11:15:18.691Z DEBUG modem << 17 NRF_VMC\x09\x09Non-Secure\x09OK\x0D\x0A
2019-08-29T11:15:18.699Z DEBUG modem << 18 NRF_FPU\x09\x09Non-Secure\x09OK\x0D\x0A
2019-08-29T11:15:18.700Z DEBUG modem << 19 NRF_EGU1\x09\x09Non-Secure\x09OK\x0D\x0A
2019-08-29T11:15:18.701Z DEBUG modem << 20 NRF_EGU2\x09\x09Non-Secure\x09OK\x0D
2019-08-29T11:15:18.705Z DEBUG modem << 21 NRF_GPIOTE1\x09\x09Non-Secure\x09OK\x0D\x0A\x0D\x0A
2019-08-29T11:15:18.706Z DEBUG modem << SPM: NS image at 0xc000\x0D\x0A
2019-08-29T11:15:18.707Z DEBUG modem << SPM: NS MSP at 0x2002c4c0\x0D\x0A
2019-08-29T11:15:18.708Z DEBUG modem << SPM: NS reset vector at 0x14715\x0D\x0A
2019-08-29T11:15:18.717Z DEBUG modem << SPM: prepare to jump to Non-Secure image.\x0D\x0A
2019-08-29T11:15:18.954Z DEBUG modem << ***** Booting Zephyr OS build v1.14.99-ncs3-snapshot2-1270-g1df8e74cc4ad *****\x0D\x0A
2019-08-29T11:15:18.975Z DEBUG modem << [00:00:00.246,368] \x1B[0m<dbg> nrf9160_gps.init: MAGPIO set: AT%XMAGPIO=1,0,0,1,1,1574,1577\x1B[0m\x0D\x0A
2019-08-29T11:15:18.980Z DEBUG modem << Asset tracker started\x0D\x0A
2019-08-29T11:15:18.987Z DEBUG modem << [00:00:00.257,598] \x1B[0m<dbg> nrf_cloud_transport.nct_client_id_get: client_id = nrf-352656100049124\x1B[0m\x0D\x0A
2019-08-29T11:15:18.991Z DEBUG modem << [00:00:00.266,998] \x1B[0m<dbg> nrf_cloud_transport.nct_topics_populate: shadow_base_topic: $aws/things/nrf-352656100049124/shadow\x1B[0m\x0D
2019-08-29T11:15:19.044Z DEBUG modem << [00:00:00.278,839] \x1B[0m<dbg> nrf_cloud_transport.nct_topics_populate: accepted_topic: $aws/things/nrf-352656100049124/shadow/get/accepted\x1B[0m\x0D\x0A
2019-08-29T11:15:19.046Z DEBUG modem << [00:00:00.291,595] \x1B[0m<dbg> nrf_cloud_transport.nct_topics_populate: rejected_topic: $aws/things/nrf-352656100049124/shadow/get/rejected\x1B[0m\x0D\x0A
2019-08-29T11:15:19.047Z DEBUG modem << [00:00:00.304,321] \x1B[0m<dbg> nrf_cloud_transport.nct_topics_populate: update_delta_topic: $aws/things/nrf-352656100049124/shadow/update/delta\x1B[0m\x0D\x0A
2019-08-29T11:15:19.049Z DEBUG modem << [00:00:00.317,413] \x1B[0m<dbg> nrf_cloud_transport.nct_topics_populate: update_topic: $aws/things/nrf-352656100049124/shadow/update\x1B[0m\x0D\x0A
2019-08-29T11:15:19.051Z DEBUG modem << [00:00:00.329,437] \x1B[0m<dbg> nrf_cloud_transport.nct_topics_populate: shadow_get_topic: $aws/things/nrf-352656100049124/shadow/get\x1B[0m\x0D\x0A
2019-08-29T11:15:19.055Z DEBUG modem << Connecting to LTE network. This may take several minutes.\x0D\x0A
2019-08-29T11:15:22.950Z DEBUG modem >> AT+CFUN=4\x0D\x0A
2019-08-29T11:15:22.980Z DEBUG modem << OK\x0D
2019-08-29T11:15:22.988Z DEBUG modem << [00:00:04.272,613] \x1B[0m<dbg> lte_lc.at_handler: recv: +CEREG: 0,"0000","FFFFFFFF",7\x0D\x0A
2019-08-29T11:15:22.996Z DEBUG modem << \x1B[0m\x0D\x0A
2019-08-29T11:15:32.196Z DEBUG modem >> AT%XSYSTEMMODE=0,1,1,2\x0D\x0A   //Here I manually Set the modem to NB
2019-08-29T11:15:32.212Z DEBUG modem << OK\x0D\x0A\x00
2019-08-29T11:15:37.293Z DEBUG modem >> AT+CFUN=1\x0D\x0A
2019-08-29T11:15:37.337Z DEBUG modem << OK\x0D\x0A\x00
2019-08-29T11:15:38.882Z DEBUG modem << [00:00:20.165,832] \x1B[0m<dbg> lte_lc.at_handler: recv: +CEREG: 2,"C360","000F16CF",9\x0D\x0A
2019-08-29T11:15:38.891Z DEBUG modem << \x1B[0m\x0D\x0A
2019-08-29T11:15:42.232Z DEBUG modem << [00:00:23.517,059] \x1B[0m<dbg> lte_lc.at_handler: recv: +CEREG: 1,"C360","000F16CF",9\x0D\x0A
2019-08-29T11:15:42.256Z DEBUG modem << \x1B[0m\x0D\x0A
2019-08-29T11:15:42.259Z DEBUG modem << Connected to LTE network\x0D\x0A        //at that point the board has LTE connention and all lights are green
2019-08-29T11:15:43.839Z DEBUG modem << [00:00:25.122,802] \x1B[0m<dbg> nrf_cloud_transport.nct_connect: IPv4 Address 0xc410e103\x1B[0m\x0D\x0A
2019-08-29T11:15:45.083Z DEBUG modem << cloud_connect failed: -111\x0D\x0A            //after this error the board reboots
2019-08-29T11:15:45.104Z DEBUG modem << LTE link disconnect\x0D\x0A
2019-08-29T11:15:47.669Z DEBUG modem << Shutdown modem\x0D
2019-08-29T11:15:47.693Z DEBUG modem << ***** Booting Zephyr OS build v1.14.99-ncs3-snapshot2-1270-g1df8e74cc4ad *****\x0D\x0A
2019-08-29T11:15:47.703Z DEBUG modem << Flash region\x09\x09Domain\x09\x09Permissions\x0D\x0A
2019-08-29T11:15:47.709Z DEBUG modem << 00 0x00000 0x08000 \x09Secure\x09\x09rwxl\x0D\x0A
2019-08-29T11:15:47.713Z DEBUG modem << 01 0x08000 0x10000 \x09Non-Secure\x09rwxl\x0D\x0A

Thanks in advance!

Related