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

nrf_cloud_connect failed -111

I am attempting to do the LTE_Gateway example.  I have gotten all the code to build through Segger and upload to the DK.  The problem is when I'm watching the terminal for the 9160 it tries to boot but then it hits an error that says NRF_Cloud_Connect failed -111.

Here is a portion of the output of the trace.  Does anyone know what this error -111 means?


Secure Boot: configure peripherals
Secure Boot: MSP_NS 2002b1c0
Secure Boot: prepare to jump to Non-Secure image
***** Booting Zephyr OS v1.13.99-ncs1-4488-ga76f833d24 *****
Application started
LTE LC config ...
nrf_cloud_connect failed: -111

  • I was using this nRF52 code earlier:

    .\ncs\nrf\samples\bluetooth\central_uart

    I had better results with this nRF52 code, although it is not consistent:

    .\ncs\Zephyr\samples\bluetooth\hci_uart

    Secure Boot: prepare to jump to Non-Secure image
    ***** Booting Zephyr OS v1.13.99-ncs2 *****
    Application started
    Bluetooth initialized
    Scanning...
    [00:00:31.776,153] <inf> bt_hci_core.hci_vs_init: HW Platform: Nordic Semiconductor (0x0002)
    [00:00:31.776,153] <inf> bt_hci_core.hci_vs_init: HW Variant: nRF52x (0x0002)
    [00:00:31.776,153] <inf> bt_hci_core.hci_vs_init: Firmware: Standard Bluetooth controller (0x00) Version 1.13 Build 99
    [00:00:31.778,778] <inf> bt_hci_core.bt_dev_show_info: Identity: ce:d2:40:c8:ca:09 (random)
    [00:00:31.778,778] <inf> bt_hci_core.bt_dev_show_info: HCI: version 5.0 (0x09) revision 0x0000, manufacturer 0x05f1
    [00:00:31.778,808] <inf> bt_hci_core.bt_dev_show_info: LMP: version 5.0 (0x09) subver 0xffff
    NRF_CLOUD_EVT_TRANSPORT_CONNECTED
    NRF_CLOUD_EVT_USER_ASSOCIATED
    NRF_CLOUD_EVT_READY
    NRF_CLOUD_EVT_SENSOR_ATTACHED
    NRF_CLOUD_EVT_SENSOR_ATTACHED
    GPS device found
    

  • OK, so I finally answered my own question.  Apparently the connection was being refused because I had used all 10MB of data.  I must have left the card on over night with it sending GPS data and it used all 10MB.  It was strange because the cloud showed the 10MB as used but that is not what I saw in another spot (which is alluding me right now).  Anyways, I was able to top up the card with 10 more MB from the cloud site and immediately I could see it boot properly through the putty interface.

  • After I figured out the -111 issue was that I had no remaining data, I was able to get a connection to the cloud with my thingy connected over bluetooth and I pointed the usb connector up and it actually transmitted the data to the cloud!!!  Finally!  However, as soon as it did that it the DK rebooted and I'm still trying to get it to do that again.  It does seem that it is not very consistent.

  • This is what it spits out after it reboots on its own.

    ***** Booting Zephyr OS v1.13.99-ncs2 *****
    
    
    
    
    Application started
    
    
    
    
    [00:00:06.208,404] 
    
    
    [1;31m<err> bt_driver.h4_get_type: Unknown H:4 type 0x00
    
    
    [0m
    
    
    
    
    [00:00:06.208,404] 
    
    
    [1;31m<err> bt_driver.h4_get_type: Unknown H:4 type 0x20
    
    
    [0m
    
    
    
    
    [00:00:06.208,404] 
    
    
    [1;31m<err> bt_driver.h4_get_type: Unknown H:4 type 0x08
    
    
    [0m
    
    
    
    
    [00:00:06.208,435] 
    
    
    [1;31m<err> bt_driver.h4_get_type: Unknown H:4 type 0x00
    
    
    [0m
    
    
    
    
    [00:00:06.209,014] 
    
    
    [1;31m<err> bt_driver.h4_get_type: Unknown H:4 type 0x0c
    
    
    [0m
    
    
    
    
    [00:00:06.209,014] 
    
    
    [1;31m<err> bt_driver.h4_get_type: Unknown H:4 type 0x00
    
    
    [0m
    
    
    
    
    [00:00:06.209,045] 
    
    
    [1;33m<wrn> bt_hci_core.hci_event: Unhandled event 0x00 len 4: 0e040103
    
    
    [0m
    
    
    
    
    ASSERTION FAIL [err == 0] @ C:/Projects/ncs/zephyr/subsys/bluetooth/host/hci_core.c:272
    
    
    
    
    	
    k_sem_take failed with err -11
  • Ha! Good to know .. right now mine was working fine and I even experimented with different GPS locations but after attempting Uart over ble to cloud it seems not to work anymore. I restored the nRF52 to the released hex control file - Nordic, is that source not available? - but now I get the repeated reboot problem:

    Secure Boot: prepare to jump to Non-Secure image
    ***** Booting Zephyr OS v1.13.99-ncs2 *****
    Application started
    LTE LC config ...
    nrf_cloud_connect failed: 60
    ***** Booting Zephyr OS v1.13.99-ncs2 *****
    Secure Boot: configure flash
    Secure Boot: SPU: set region 0 as Secure
    

    My data usage is ok so far, at least. Update: Reprogramming with secure boot and application seems to have corrected the issue. Also all error numbers printed are printed as -ve for some reason, which is confusing at first (they are returned as -ERRORNUM).

    There may be a race hazard on the nRF91 and nRF52 startup causing one of the earlier reported errors, since if the nRF52 is not available there is a sync timeout

    k_sem_take failed with err -11

    Error -11 is not -11, it is 11 but reported as -11. Strange design ..

Related