Unable to connect new NRF9151DK to NRF Cloud

Hello,

I am trying to get some basic examples working with my new NRF9151DK and running into quite a few issues.  Note that this is using a onomondo sim card that came with the DK. 

First, I went through the quick start program and flashed the Asset Tracker example from the NRF Connect Desktop Quick Start Application. This gave me a slew of error messages but one of them had a claim code so I went to nrf cloud and claimed the device. Next, it has been unable to provision itself. First I had a really hard time load the JITP Certificates using the Certicate Manager built into the Cellur Monitor app. I may open a seperate ticket for that. Now that I have certificates on the device. It is still giving me errors related to auth, provisioning, coap.

I have attached my serial terminal output for the Asset Tracker App trying to connect. Any help would be greatly appreciated.

[00:04:04.356,048] <dbg> cloud: state_connecting_provisioned_entry: state_connecting_provisioned_entry
[00:04:04.356,140] <inf> cloud: Connecting to nRF Cloud CoAP with client ID: 50343956-3037-4ef3-805e-250bec299076
[00:04:09.984,497] <err> nrf_cloud_coap_transport: Could not connect to nRF Cloud CoAP server coap.nrfcloud.com, port: 13334. err:
-111
[00:04:09.984,527] <wrn> cloud: nrf_cloud_coap_connect, error: -111
[00:04:09.984,527] <wrn> cloud: nRF Cloud CoAP connection failed, unauthorized or invalid credentials
[00:04:09.984,771] <dbg> cloud: state_connecting_provisioning_entry: state_connecting_provisioning_entry
[00:04:09.985,260] <dbg> nrf_provisioning: nrf_provisioning_trigger_manually: Externally initiated provisioning
[00:04:09.985,504] <dbg> location_module: handle_location_chan: Location search cancel received, cancelling location request
[00:04:09.985,565] <dbg> location_module: handle_location_chan: Location request cancelled successfully
[00:04:09.986,022] <dbg> nrf_provisioning: nrf_provisioning_work: nrf_provisioning_work() called
[00:04:09.986,083] <dbg> nrf_provisioning: wait_for_valid_datetime: Valid date time obtained
[00:04:09.986,114] <dbg> nrf_provisioning_coap: socket_connect: CoAP host: coap.nrfcloud.com
[00:04:09.987,548] <dbg> nrf_provisioning_coap: socket_connect: getaddrinfo status: 0
[00:04:09.987,579] <dbg> nrf_provisioning_coap: socket_connect: fd: -1
[00:04:09.987,640] <dbg> nrf_provisioning_coap: socket_connect: getaddrinfo() 34.200.153.177
[00:04:09.988,006] <inf> nrf_provisioning_coap: DTLS setup
[00:04:35.780,578] <inf> nrf_provisioning_coap: Connected
[00:04:35.781,555] <dbg> nrf_provisioning_jwt: nrf_provisioning_jwt_generate: Generating JWT
[00:04:35.884,368] <dbg> nrf_provisioning_coap: authenticate: Authenticate
[00:04:35.885,131] <dbg> nrf_provisioning_coap: authenticate: Path: p/auth-jwt?mver=nrf91x1_2.0.2&cver=3.1.99
[00:04:40.726,837] <dbg> nrf_provisioning_coap: coap_callback: Callback code 65
[00:04:40.726,867] <dbg> nrf_provisioning_coap: coap_callback: Operation successful
[00:04:40.726,898] <dbg> nrf_provisioning_coap: coap_callback: Last packet received
[00:04:40.727,020] <dbg> nrf_provisioning_coap: authenticate: Response code 65
[00:04:40.727,020] <inf> nrf_provisioning_coap: Requesting commands
[00:04:40.727,050] <dbg> nrf_provisioning_coap: request_commands: Get commands
[00:04:40.727,111] <dbg> nrf_provisioning_coap: request_commands: Path: p/cmd?after=&rxMaxSize=4096&txMaxSize=4096&limit=5
[00:04:42.268,005] <dbg> nrf_provisioning_coap: coap_callback: Callback code 69
[00:04:42.268,035] <dbg> nrf_provisioning_coap: coap_callback: Operation successful
[00:04:42.268,035] <dbg> nrf_provisioning_coap: coap_callback: Last packet received
[00:04:42.268,157] <dbg> nrf_provisioning_coap: nrf_provisioning_coap_req: Response code 69
[00:04:42.268,157] <inf> nrf_provisioning_coap: No commands to process on server side
[00:04:42.270,446] <dbg> nrf_provisioning: check_return_code_and_notify: No commands to process
[00:04:42.270,477] <wrn> cloud: No commands from the nRF Provisioning Service to process
[00:04:42.270,477] <wrn> cloud: Treating as provisioning finished
[00:04:52.270,843] <dbg> cloud: state_connecting_provisioned_entry: state_connecting_provisioned_entry
[00:04:52.270,935] <inf> cloud: Connecting to nRF Cloud CoAP with client ID: 50343956-3037-4ef3-805e-250bec299076
[00:04:52.293,304] <err> nrf_cloud_coap_transport: Could not connect to nRF Cloud CoAP server coap.nrfcloud.com, port: 13334. err:
-111
[00:04:52.293,304] <wrn> cloud: nrf_cloud_coap_connect, error: -111
[00:04:52.293,334] <wrn> cloud: nRF Cloud CoAP connection failed, unauthorized or invalid credentials
[00:04:52.293,579] <dbg> cloud: state_connecting_provisioning_entry: state_connecting_provisioning_entry
[00:04:52.294,036] <dbg> nrf_provisioning: nrf_provisioning_trigger_manually: Externally initiated provisioning
[00:04:52.294,250] <dbg> location_module: handle_location_chan: Location search cancel received, cancelling location request
[00:04:52.294,311] <dbg> location_module: handle_location_chan: Location request cancelled successfully
[00:04:52.294,769] <dbg> nrf_provisioning: nrf_provisioning_work: nrf_provisioning_work() called
[00:04:52.294,860] <dbg> nrf_provisioning: wait_for_valid_datetime: Valid date time obtained
[00:04:52.294,891] <dbg> nrf_provisioning_coap: socket_connect: CoAP host: coap.nrfcloud.com
[00:04:52.296,051] <dbg> nrf_provisioning_coap: socket_connect: getaddrinfo status: 0
[00:04:52.296,081] <dbg> nrf_provisioning_coap: socket_connect: fd: -1
[00:04:52.296,142] <dbg> nrf_provisioning_coap: socket_connect: getaddrinfo() 34.200.153.177
[00:04:52.296,905] <inf> nrf_provisioning_coap: DTLS setup
[00:05:10.252,441] <dbg> nrf_provisioning: l4_event_handler: Disconnected from network
[00:05:10.252,471] <inf> network: Network connectivity lost
[00:05:10.253,112] <dbg> network: state_disconnected_entry: state_disconnected_entry
[00:05:10.253,112] <dbg> network: state_disconnected_searching_entry: state_disconnected_searching_entry
[00:05:14.213,043] <dbg> nrf_provisioning: l4_event_handler: Connected to network
[00:05:14.213,073] <inf> network: Network connectivity established
[00:05:14.213,897] <dbg> network: state_connected_entry: state_connected_entry
[00:06:49.003,845] <inf> nrf_provisioning_coap: Connected
[00:06:49.004,821] <dbg> nrf_provisioning_jwt: nrf_provisioning_jwt_generate: Generating JWT
[00:06:49.096,923] <dbg> nrf_provisioning_coap: authenticate: Authenticate
[00:06:49.097,686] <dbg> nrf_provisioning_coap: authenticate: Path: p/auth-jwt?mver=nrf91x1_2.0.2&cver=3.1.99
[00:07:19.102,203] <err> nrf_provisioning_coap: Failed to send CoAP request
[00:07:19.104,583] <err> nrf_provisioning: Provisioning failed, error: -11
[00:07:19.104,614] <err> cloud: Provisioning failed
[00:07:19.104,949] <dbg> cloud: state_connecting_backoff_entry: state_connecting_backoff_entry
[00:07:19.104,980] <dbg> cloud: calculate_backoff_time: Backoff time: 60 seconds
[00:07:19.104,980] <wrn> cloud: Connection attempt failed, backoff time: 60 seconds
[00:08:19.105,346] <dbg> cloud: state_connecting_backoff_exit: state_connecting_backoff_exit
[00:08:19.105,407] <dbg> cloud: state_connecting_attempt_entry: state_connecting_attempt_entry
[00:08:19.105,468] <dbg> cloud: state_connecting_provisioning_entry: state_connecting_provisioning_entry
[00:08:19.105,895] <dbg> nrf_provisioning: nrf_provisioning_trigger_manually: Externally initiated provisioning
[00:08:19.106,079] <dbg> location_module: handle_location_chan: Location search cancel received, cancelling location request
[00:08:19.106,140] <dbg> location_module: handle_location_chan: Location request cancelled successfully
[00:08:19.106,536] <dbg> nrf_provisioning: nrf_provisioning_work: nrf_provisioning_work() called
[00:08:19.106,567] <dbg> nrf_provisioning: wait_for_valid_datetime: Valid date time obtained
[00:08:19.106,628] <dbg> nrf_provisioning_coap: socket_connect: CoAP host: coap.nrfcloud.com
[00:08:29.107,543] <dbg> nrf_provisioning_coap: socket_connect: getaddrinfo status: 0
[00:08:29.107,574] <dbg> nrf_provisioning_coap: socket_connect: fd: -1
[00:08:29.107,635] <dbg> nrf_provisioning_coap: socket_connect: getaddrinfo() 23.22.110.24
[00:08:29.108,123] <inf> nrf_provisioning_coap: DTLS setup
[00:11:09.120,941] <err> nrf_provisioning_coap: Failed to connect UDP socket 116
[00:11:09.121,398] <wrn> nrf_provisioning: Provisioning timed out
[00:11:09.121,398] <err> cloud: Provisioning failed
[00:11:09.121,643] <dbg> cloud: state_connecting_backoff_entry: state_connecting_backoff_entry
[00:11:09.121,673] <dbg> cloud: calculate_backoff_time: Backoff time: 120 seconds
[00:11:09.121,673] <wrn> cloud: Connection attempt failed, backoff time: 120 seconds
[00:13:09.121,978] <dbg> cloud: state_connecting_backoff_exit: state_connecting_backoff_exit
[00:13:09.122,009] <dbg> cloud: state_connecting_attempt_entry: state_connecting_attempt_entry
[00:13:09.122,070] <dbg> cloud: state_connecting_provisioning_entry: state_connecting_provisioning_entry
[00:13:09.122,558] <dbg> nrf_provisioning: nrf_provisioning_trigger_manually: Externally initiated provisioning
[00:13:09.122,772] <dbg> location_module: handle_location_chan: Location search cancel received, cancelling location request
[00:13:09.122,802] <dbg> location_module: handle_location_chan: Location request cancelled successfully
[00:13:09.123,260] <dbg> nrf_provisioning: nrf_provisioning_work: nrf_provisioning_work() called
[00:13:09.123,321] <dbg> nrf_provisioning: wait_for_valid_datetime: Valid date time obtained
[00:13:09.123,352] <dbg> nrf_provisioning_coap: socket_connect: CoAP host: coap.nrfcloud.com
[00:13:22.922,027] <dbg> nrf_provisioning_coap: socket_connect: getaddrinfo status: 0
[00:13:22.922,058] <dbg> nrf_provisioning_coap: socket_connect: fd: -1
[00:13:22.922,119] <dbg> nrf_provisioning_coap: socket_connect: getaddrinfo() 54.145.71.75
[00:13:22.922,607] <inf> nrf_provisioning_coap: DTLS setup
[00:16:02.937,591] <err> nrf_provisioning_coap: Failed to connect UDP socket 116
[00:16:02.938,018] <wrn> nrf_provisioning: Provisioning timed out
[00:16:02.938,049] <err> cloud: Provisioning failed
[00:16:02.938,262] <dbg> cloud: state_connecting_backoff_entry: state_connecting_backoff_entry
[00:16:02.938,262] <dbg> cloud: calculate_backoff_time: Backoff time: 180 seconds
[00:16:02.938,293] <wrn> cloud: Connection attempt failed, backoff time: 180 seconds
[00:19:02.938,598] <dbg> cloud: state_connecting_backoff_exit: state_connecting_backoff_exit
[00:19:02.938,629] <dbg> cloud: state_connecting_attempt_entry: state_connecting_attempt_entry
[00:19:02.938,690] <dbg> cloud: state_connecting_provisioning_entry: state_connecting_provisioning_entry
[00:19:02.939,178] <dbg> nrf_provisioning: nrf_provisioning_trigger_manually: Externally initiated provisioning
[00:19:02.939,392] <dbg> location_module: handle_location_chan: Location search cancel received, cancelling location request
[00:19:02.939,422] <dbg> location_module: handle_location_chan: Location request cancelled successfully
[00:19:02.939,788] <dbg> nrf_provisioning: nrf_provisioning_work: nrf_provisioning_work() called
[00:19:02.939,819] <dbg> nrf_provisioning: wait_for_valid_datetime: Valid date time obtained
[00:19:02.939,880] <dbg> nrf_provisioning_coap: socket_connect: CoAP host: coap.nrfcloud.com
[00:19:07.597,290] <dbg> nrf_provisioning_coap: socket_connect: getaddrinfo status: 0
[00:19:07.597,320] <dbg> nrf_provisioning_coap: socket_connect: fd: -1
[00:19:07.597,381] <dbg> nrf_provisioning_coap: socket_connect: getaddrinfo() 34.200.153.177
[00:19:07.597,869] <inf> nrf_provisioning_coap: DTLS setup
[00:19:19.357,543] <inf> nrf_provisioning_coap: Connected
[00:19:19.358,489] <dbg> nrf_provisioning_jwt: nrf_provisioning_jwt_generate: Generating JWT
[00:19:19.456,085] <dbg> nrf_provisioning_coap: authenticate: Authenticate
[00:19:19.456,817] <dbg> nrf_provisioning_coap: authenticate: Path: p/auth-jwt?mver=nrf91x1_2.0.2&cver=3.1.99
[00:19:19.456,909] <err> nrf_provisioning_coap: Failed to send CoAP request
[00:19:19.459,014] <err> nrf_provisioning: Provisioning failed, error: -120
[00:19:19.459,045] <err> cloud: Provisioning failed
[00:19:19.459,259] <dbg> cloud: state_connecting_backoff_entry: state_connecting_backoff_entry
[00:19:19.459,289] <dbg> cloud: calculate_backoff_time: Backoff time: 240 seconds
[00:19:19.459,320] <wrn> cloud: Connection attempt failed, backoff time: 240 seconds
uart:~$

Parents
  • Okay, I was finally able to connect my device to nRF cloud. Personally I feel like there is almost too much documentation out there for "getting started" with these kits. There are multiple entry points, examples, and documents some of which are out of date and others that contradict each other. The winning combination for me was flashing the Asset Tracker (Asset Tracker Template not the Legacy Asset Tracker or Asset Tracker V2) then following  this Getting Started Guide for the Asset Tracker Template Sample which then led me to this Manual Provisioning tutorial (which was updated today btw, so things are clearly in flux).

    Was hoping for a slightly smoother introduction to cellular, but we made it there eventually. Hopefully this is useful to someone getting started and I hope the documentation gets cleaned and pared down a bit.

Reply
  • Okay, I was finally able to connect my device to nRF cloud. Personally I feel like there is almost too much documentation out there for "getting started" with these kits. There are multiple entry points, examples, and documents some of which are out of date and others that contradict each other. The winning combination for me was flashing the Asset Tracker (Asset Tracker Template not the Legacy Asset Tracker or Asset Tracker V2) then following  this Getting Started Guide for the Asset Tracker Template Sample which then led me to this Manual Provisioning tutorial (which was updated today btw, so things are clearly in flux).

    Was hoping for a slightly smoother introduction to cellular, but we made it there eventually. Hopefully this is useful to someone getting started and I hope the documentation gets cleaned and pared down a bit.

Children
No Data
Related