Issue setting up SIM on Thingy:91 / adding device on nRF Cloud

Hello,

I have been following the steps in Exercise 1 of Lesson 1 of the Cellular IoT Fundamentals course. I have a Thingy:91. I have followed the steps so far

- flashed the modem firmware (1.3.5)

- programmed the application firmware (Asset Tracker v2)

- made an nRF Cloud account and added the iBasis SIM 

- I have run the instructions in Cellular Monitor. After a lot of trial and error I managed to get to this stage, where supposedly everything is working. 

However, in nRF Cloud, when I go to add the device using IMEI in the format nrf-123456789012345, I get "There was an error adding your device: No device found for this id. The device has not yet been just-in-time provisioned." The device continues to blink in green three times with a short pause in between.

Looking at the troubleshooting steps for this error code:

  1. Verify the values and try again. For Nordic Semiconductor products, please see the solution for nRF Code 40411, above. <- done, it's nrf- + a 15-digit code
  2. Ensure that the device's SIM card or eSIM is activated and functioning. If using an iBasis SIM card that is packaged with a Nordic Semiconductor product such as a Development Kit, activate the card on nrfcloud.com and then (re-)boot the device to connect. <- I have successfully activated the SIM followed by a reboot
  3. Check the LED status indicators to ensure the device indicates it has connected. <- unclear what this means
  4. (Re-)flash the latest modem firmware. <- I have flashed the modem firmware
  5. Flash new device certificates obtained from the CreateDeviceCertificateendpoint. <- not sure how to do this or whether it would help?
  6. Move to a location with a better LTE connection. <- Cellular Monitor indicates an LTE connection

I've attached the Wireshark capture file.241120 Thingy 91 Wireshark.pcapng

Any ideas?

Parents
  • Here are the device logs:

    *** Booting Zephyr OS build v3.2.99-ncs2 ***
    [00:00:01.512,695] <inf> at_host: UART check failed: 12. Dropping buffer and retrying.
    [00:00:01.523,284] <inf> app_event_manager: APP_EVT_START
    [00:00:01.526,824] <inf> app_event_manager: MODEM_EVT_INITIALIZED
    [00:00:01.600,036] <inf> app_event_manager: MODEM_EVT_LTE_CONNECTING
    [00:00:02.544,372] <inf> app_event_manager: DATA_EVT_CONFIG_INIT
    [00:00:04.296,966] <inf> app_event_manager: SENSOR_EVT_MOVEMENT_ACTIVITY_DETECTED
    %CESQ: 52,2,4,0
    +CEREG: 2,"10C0","07AE5196",7
    %CESQ: 54,2,17,2
    +CSCON: 1
    %CESQ: 55,2,11,1
    [00:00:12.157,073] <inf> app_event_manager: MODEM_EVT_LTE_CELL_UPDATE
    +CGEV: ME PDN ACT 0,0
    +CNEC_ESM: 50,0
    %MDMEV: SEARCH STATUS 2
    +CEREG: 5,"10C0","07AE5196",7,,,"00001010","11000010"
    +CGEV: NW DETACH
    +CGEV: ME PDN DEACT 0
    +CEREG: 2,"10C0","07AE5196",7
    [00:00:14.731,414] <inf> app_event_manager: MODEM_EVT_LTE_CONNECTED
    [00:00:14.732,574] <inf> app_event_manager: CLOUD_EVT_CONNECTING
    [00:00:14.744,506] <inf> app_event_manager: MODEM_EVT_LTE_PSM_UPDATE
    [00:00:14.828,155] <inf> app_event_manager: MODEM_EVT_LTE_DISCONNECTED
    [00:00:14.828,918] <err> nrf_cloud_integration: nrf_cloud_disconnect, error: -13
    +CSCON: 0
    %CESQ: 255,0,255,0
    +CEREG: 2
    [00:00:16.485,229] <inf> app_event_manager: MODEM_EVT_LTE_CELL_UPDATE
    %CESQ: 52,2,4,0
    [00:00:18.484,558] <inf> app_event_manager: CLOUD_EVT_CONNECTING
    %CESQ: 53,2,12,1
    %CESQ: 47,2,11,1
    %CESQ: 44,2,16,2
    %CESQ: 44,2,11,1
    %CESQ: 255,0,255,0
    %CESQ: 62,3,28,4
    +CEREG: 2,"B7F3","003E8217",9
    +CSCON: 1
    +CEREG: 2,"B7F3","003E8217",9,0,11
    +CSCON: 0
    [00:01:30.250,518] <inf> app_event_manager: MODEM_EVT_LTE_CELL_UPDATE
    %CESQ: 61,3,34,4
    %CESQ: 255,0,255,0
    +CEREG: 2
    %CESQ: 45,2,16,2
    [00:01:46.426,483] <inf> app_event_manager: MODEM_EVT_LTE_CELL_UPDATE
    %CESQ: 43,2,10,1
    [00:02:02.545,013] <inf> app_event_manager: APP_EVT_DATA_GET_ALL
    [00:02:02.545,715] <inf> app_event_manager: APP_EVT_DATA_GET - Requested data types (MOD_DYN, BAT, ENV, MOD_STAT, LOCATION)
    [00:02:02.646,545] <inf> app_event_manager: LOCATION_MODULE_EVT_AGPS_NEEDED
    [00:02:02.646,911] <inf> app_event_manager: LOCATION_MODULE_EVT_ACTIVE
    [00:02:02.647,735] <inf> app_event_manager: SENSOR_EVT_ENVIRONMENTAL_DATA_READY
    [00:02:02.676,025] <err> modem_info_params: Link data not obtained: 5 -22
    [00:02:02.676,055] <err> modem_module: modem_info_params_get, error: -22
    [00:02:02.676,116] <inf> app_event_manager: MODEM_EVT_MODEM_STATIC_DATA_NOT_READY
    [00:02:02.682,464] <err> modem_info_params: Link data not obtained: 5 -22
    [00:02:02.682,495] <err> modem_module: modem_info_params_get, error: -22
    [00:02:02.682,556] <inf> app_event_manager: MODEM_EVT_MODEM_DYNAMIC_DATA_NOT_READY
    [00:02:02.771,942] <err> modem_info_params: Link data not obtained: 5 -22
    [00:02:02.771,972] <err> modem_module: modem_info_params_get, error: -22
    [00:02:02.772,064] <inf> app_event_manager: MODEM_EVT_BATTERY_DATA_NOT_READY
    %CESQ: 43,2,17,2
    > at AT
    ERROR
    %CESQ: 255,0,255,0
    %NCELLMEAS: 1
    [00:03:32.667,816] <wrn> location: GNSS timed out possibly due to too short GNSS time windows
    [00:03:32.702,545] <wrn> location: Current cell ID not valid
    [00:03:32.702,575] <wrn> location: No cellular neighbor cells or Wi-Fi access points found
    [00:03:32.702,606] <err> location: Location acquisition failed and fallbacks are also done
    [00:03:32.702,636] <wrn> location_module: Getting location failed
    [00:03:32.702,728] <inf> app_event_manager: LOCATION_MODULE_EVT_DATA_NOT_READY
    [00:03:32.703,155] <inf> app_event_manager: LOCATION_MODULE_EVT_INACTIVE
    [00:03:32.703,735] <inf> app_event_manager: DATA_EVT_DATA_READY
    %CESQ: 42,2,9,1
    %CESQ: 44,2,16,2
    [00:04:02.545,013] <inf> app_event_manager: APP_EVT_DATA_GET_ALL
    [00:04:02.545,715] <inf> app_event_manager: APP_EVT_DATA_GET - Requested data types (MOD_DYN, BAT, ENV, MOD_STAT, LOCATION)
    [00:04:02.646,575] <inf> app_event_manager: LOCATION_MODULE_EVT_AGPS_NEEDED
    [00:04:02.646,942] <inf> app_event_manager: LOCATION_MODULE_EVT_ACTIVE
    [00:04:02.647,674] <inf> app_event_manager: SENSOR_EVT_ENVIRONMENTAL_DATA_READY
    [00:04:02.674,072] <err> modem_info_params: Link data not obtained: 5 -22
    [00:04:02.674,102] <err> modem_module: modem_info_params_get, error: -22
    [00:04:02.674,163] <inf> app_event_manager: MODEM_EVT_MODEM_STATIC_DATA_NOT_READY
    [00:04:02.680,297] <err> modem_info_params: Link data not obtained: 5 -22
    [00:04:02.680,328] <err> modem_module: modem_info_params_get, error: -22
    [00:04:02.680,389] <inf> app_event_manager: MODEM_EVT_MODEM_DYNAMIC_DATA_NOT_READY
    [00:04:02.769,805] <err> modem_info_params: Link data not obtained: 5 -22
    [00:04:02.769,836] <err> modem_module: modem_info_params_get, error: -22
    [00:04:02.769,927] <inf> app_event_manager: MODEM_EVT_BATTERY_DATA_NOT_READY
    %CESQ: 44,2,11,1
    %CESQ: 49,2,11,1
    %CESQ: 54,2,13,1
    %CESQ: 55,2,18,2
    %CESQ: 53,2,12,1
    %CESQ: 255,0,255,0
    [00:05:32.665,832] <wrn> location: GNSS timed out possibly due to too short GNSS time windows
    %NCELLMEAS: 1
    [00:05:43.768,585] <wrn> location: Current cell ID not valid
    [00:05:43.768,615] <err> location: Location acquisition failed and fallbacks are also done
    [00:05:43.768,707] <inf> app_event_manager: LOCATION_MODULE_EVT_TIMEOUT
    [00:05:43.769,165] <inf> app_event_manager: LOCATION_MODULE_EVT_INACTIVE
    [00:05:43.769,683] <inf> app_event_manager: DATA_EVT_DATA_READY
    %CESQ: 52,2,7,1
    %CESQ: 54,2,14,2
    [00:06:02.545,013] <inf> app_event_manager: APP_EVT_DATA_GET_ALL
    [00:06:02.545,684] <inf> app_event_manager: APP_EVT_DATA_GET - Requested data types (MOD_DYN, BAT, ENV, MOD_STAT, LOCATION)
    [00:06:02.646,514] <inf> app_event_manager: LOCATION_MODULE_EVT_AGPS_NEEDED
    [00:06:02.646,881] <inf> app_event_manager: LOCATION_MODULE_EVT_ACTIVE
    [00:06:02.647,705] <inf> app_event_manager: SENSOR_EVT_ENVIRONMENTAL_DATA_READY
    [00:06:02.674,804] <err> modem_info_params: Link data not obtained: 5 -22
    [00:06:02.674,835] <err> modem_module: modem_info_params_get, error: -22
    [00:06:02.674,896] <inf> app_event_manager: MODEM_EVT_MODEM_STATIC_DATA_NOT_READY
    [00:06:02.684,906] <err> modem_info_params: Link data not obtained: 5 -22
    [00:06:02.684,906] <err> modem_module: modem_info_params_get, error: -22
    [00:06:02.684,997] <inf> app_event_manager: MODEM_EVT_MODEM_DYNAMIC_DATA_NOT_READY
    [00:06:02.786,407] <err> modem_info_params: Link data not obtained: 5 -22
    [00:06:02.786,437] <err> modem_module: modem_info_params_get, error: -22
    [00:06:02.786,529] <inf> app_event_manager: MODEM_EVT_BATTERY_DATA_NOT_READY
    %CESQ: 53,2,9,1
    %CESQ: 54,2,14,2
    %CESQ: 255,0,255,0
    [00:07:32.665,771] <wrn> location: GNSS timed out possibly due to too short GNSS time windows

Reply
  • Here are the device logs:

    *** Booting Zephyr OS build v3.2.99-ncs2 ***
    [00:00:01.512,695] <inf> at_host: UART check failed: 12. Dropping buffer and retrying.
    [00:00:01.523,284] <inf> app_event_manager: APP_EVT_START
    [00:00:01.526,824] <inf> app_event_manager: MODEM_EVT_INITIALIZED
    [00:00:01.600,036] <inf> app_event_manager: MODEM_EVT_LTE_CONNECTING
    [00:00:02.544,372] <inf> app_event_manager: DATA_EVT_CONFIG_INIT
    [00:00:04.296,966] <inf> app_event_manager: SENSOR_EVT_MOVEMENT_ACTIVITY_DETECTED
    %CESQ: 52,2,4,0
    +CEREG: 2,"10C0","07AE5196",7
    %CESQ: 54,2,17,2
    +CSCON: 1
    %CESQ: 55,2,11,1
    [00:00:12.157,073] <inf> app_event_manager: MODEM_EVT_LTE_CELL_UPDATE
    +CGEV: ME PDN ACT 0,0
    +CNEC_ESM: 50,0
    %MDMEV: SEARCH STATUS 2
    +CEREG: 5,"10C0","07AE5196",7,,,"00001010","11000010"
    +CGEV: NW DETACH
    +CGEV: ME PDN DEACT 0
    +CEREG: 2,"10C0","07AE5196",7
    [00:00:14.731,414] <inf> app_event_manager: MODEM_EVT_LTE_CONNECTED
    [00:00:14.732,574] <inf> app_event_manager: CLOUD_EVT_CONNECTING
    [00:00:14.744,506] <inf> app_event_manager: MODEM_EVT_LTE_PSM_UPDATE
    [00:00:14.828,155] <inf> app_event_manager: MODEM_EVT_LTE_DISCONNECTED
    [00:00:14.828,918] <err> nrf_cloud_integration: nrf_cloud_disconnect, error: -13
    +CSCON: 0
    %CESQ: 255,0,255,0
    +CEREG: 2
    [00:00:16.485,229] <inf> app_event_manager: MODEM_EVT_LTE_CELL_UPDATE
    %CESQ: 52,2,4,0
    [00:00:18.484,558] <inf> app_event_manager: CLOUD_EVT_CONNECTING
    %CESQ: 53,2,12,1
    %CESQ: 47,2,11,1
    %CESQ: 44,2,16,2
    %CESQ: 44,2,11,1
    %CESQ: 255,0,255,0
    %CESQ: 62,3,28,4
    +CEREG: 2,"B7F3","003E8217",9
    +CSCON: 1
    +CEREG: 2,"B7F3","003E8217",9,0,11
    +CSCON: 0
    [00:01:30.250,518] <inf> app_event_manager: MODEM_EVT_LTE_CELL_UPDATE
    %CESQ: 61,3,34,4
    %CESQ: 255,0,255,0
    +CEREG: 2
    %CESQ: 45,2,16,2
    [00:01:46.426,483] <inf> app_event_manager: MODEM_EVT_LTE_CELL_UPDATE
    %CESQ: 43,2,10,1
    [00:02:02.545,013] <inf> app_event_manager: APP_EVT_DATA_GET_ALL
    [00:02:02.545,715] <inf> app_event_manager: APP_EVT_DATA_GET - Requested data types (MOD_DYN, BAT, ENV, MOD_STAT, LOCATION)
    [00:02:02.646,545] <inf> app_event_manager: LOCATION_MODULE_EVT_AGPS_NEEDED
    [00:02:02.646,911] <inf> app_event_manager: LOCATION_MODULE_EVT_ACTIVE
    [00:02:02.647,735] <inf> app_event_manager: SENSOR_EVT_ENVIRONMENTAL_DATA_READY
    [00:02:02.676,025] <err> modem_info_params: Link data not obtained: 5 -22
    [00:02:02.676,055] <err> modem_module: modem_info_params_get, error: -22
    [00:02:02.676,116] <inf> app_event_manager: MODEM_EVT_MODEM_STATIC_DATA_NOT_READY
    [00:02:02.682,464] <err> modem_info_params: Link data not obtained: 5 -22
    [00:02:02.682,495] <err> modem_module: modem_info_params_get, error: -22
    [00:02:02.682,556] <inf> app_event_manager: MODEM_EVT_MODEM_DYNAMIC_DATA_NOT_READY
    [00:02:02.771,942] <err> modem_info_params: Link data not obtained: 5 -22
    [00:02:02.771,972] <err> modem_module: modem_info_params_get, error: -22
    [00:02:02.772,064] <inf> app_event_manager: MODEM_EVT_BATTERY_DATA_NOT_READY
    %CESQ: 43,2,17,2
    > at AT
    ERROR
    %CESQ: 255,0,255,0
    %NCELLMEAS: 1
    [00:03:32.667,816] <wrn> location: GNSS timed out possibly due to too short GNSS time windows
    [00:03:32.702,545] <wrn> location: Current cell ID not valid
    [00:03:32.702,575] <wrn> location: No cellular neighbor cells or Wi-Fi access points found
    [00:03:32.702,606] <err> location: Location acquisition failed and fallbacks are also done
    [00:03:32.702,636] <wrn> location_module: Getting location failed
    [00:03:32.702,728] <inf> app_event_manager: LOCATION_MODULE_EVT_DATA_NOT_READY
    [00:03:32.703,155] <inf> app_event_manager: LOCATION_MODULE_EVT_INACTIVE
    [00:03:32.703,735] <inf> app_event_manager: DATA_EVT_DATA_READY
    %CESQ: 42,2,9,1
    %CESQ: 44,2,16,2
    [00:04:02.545,013] <inf> app_event_manager: APP_EVT_DATA_GET_ALL
    [00:04:02.545,715] <inf> app_event_manager: APP_EVT_DATA_GET - Requested data types (MOD_DYN, BAT, ENV, MOD_STAT, LOCATION)
    [00:04:02.646,575] <inf> app_event_manager: LOCATION_MODULE_EVT_AGPS_NEEDED
    [00:04:02.646,942] <inf> app_event_manager: LOCATION_MODULE_EVT_ACTIVE
    [00:04:02.647,674] <inf> app_event_manager: SENSOR_EVT_ENVIRONMENTAL_DATA_READY
    [00:04:02.674,072] <err> modem_info_params: Link data not obtained: 5 -22
    [00:04:02.674,102] <err> modem_module: modem_info_params_get, error: -22
    [00:04:02.674,163] <inf> app_event_manager: MODEM_EVT_MODEM_STATIC_DATA_NOT_READY
    [00:04:02.680,297] <err> modem_info_params: Link data not obtained: 5 -22
    [00:04:02.680,328] <err> modem_module: modem_info_params_get, error: -22
    [00:04:02.680,389] <inf> app_event_manager: MODEM_EVT_MODEM_DYNAMIC_DATA_NOT_READY
    [00:04:02.769,805] <err> modem_info_params: Link data not obtained: 5 -22
    [00:04:02.769,836] <err> modem_module: modem_info_params_get, error: -22
    [00:04:02.769,927] <inf> app_event_manager: MODEM_EVT_BATTERY_DATA_NOT_READY
    %CESQ: 44,2,11,1
    %CESQ: 49,2,11,1
    %CESQ: 54,2,13,1
    %CESQ: 55,2,18,2
    %CESQ: 53,2,12,1
    %CESQ: 255,0,255,0
    [00:05:32.665,832] <wrn> location: GNSS timed out possibly due to too short GNSS time windows
    %NCELLMEAS: 1
    [00:05:43.768,585] <wrn> location: Current cell ID not valid
    [00:05:43.768,615] <err> location: Location acquisition failed and fallbacks are also done
    [00:05:43.768,707] <inf> app_event_manager: LOCATION_MODULE_EVT_TIMEOUT
    [00:05:43.769,165] <inf> app_event_manager: LOCATION_MODULE_EVT_INACTIVE
    [00:05:43.769,683] <inf> app_event_manager: DATA_EVT_DATA_READY
    %CESQ: 52,2,7,1
    %CESQ: 54,2,14,2
    [00:06:02.545,013] <inf> app_event_manager: APP_EVT_DATA_GET_ALL
    [00:06:02.545,684] <inf> app_event_manager: APP_EVT_DATA_GET - Requested data types (MOD_DYN, BAT, ENV, MOD_STAT, LOCATION)
    [00:06:02.646,514] <inf> app_event_manager: LOCATION_MODULE_EVT_AGPS_NEEDED
    [00:06:02.646,881] <inf> app_event_manager: LOCATION_MODULE_EVT_ACTIVE
    [00:06:02.647,705] <inf> app_event_manager: SENSOR_EVT_ENVIRONMENTAL_DATA_READY
    [00:06:02.674,804] <err> modem_info_params: Link data not obtained: 5 -22
    [00:06:02.674,835] <err> modem_module: modem_info_params_get, error: -22
    [00:06:02.674,896] <inf> app_event_manager: MODEM_EVT_MODEM_STATIC_DATA_NOT_READY
    [00:06:02.684,906] <err> modem_info_params: Link data not obtained: 5 -22
    [00:06:02.684,906] <err> modem_module: modem_info_params_get, error: -22
    [00:06:02.684,997] <inf> app_event_manager: MODEM_EVT_MODEM_DYNAMIC_DATA_NOT_READY
    [00:06:02.786,407] <err> modem_info_params: Link data not obtained: 5 -22
    [00:06:02.786,437] <err> modem_module: modem_info_params_get, error: -22
    [00:06:02.786,529] <inf> app_event_manager: MODEM_EVT_BATTERY_DATA_NOT_READY
    %CESQ: 53,2,9,1
    %CESQ: 54,2,14,2
    %CESQ: 255,0,255,0
    [00:07:32.665,771] <wrn> location: GNSS timed out possibly due to too short GNSS time windows

Children
No Data
Related