<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>nRF9161 Cloud Auto-Provisioning / Onboarding</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116420/nrf9161-cloud-auto-provisioning-onboarding</link><description>Hello, 
 I&amp;#39;m trying to set up auto-provisioning and onboarding in my project as described in this sample: https://github.com/nrfconnect/sdk-nrf/blob/066ac6f61fe19ad91d805fd788d782e245f09a2e/samples/cellular/nrf_cloud_rest_device_message/README.rst#provisioning</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 28 Mar 2026 03:41:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116420/nrf9161-cloud-auto-provisioning-onboarding" /><item><title>RE: nRF9161 Cloud Auto-Provisioning / Onboarding</title><link>https://devzone.nordicsemi.com/thread/564220?ContentTypeID=1</link><pubDate>Sat, 28 Mar 2026 03:41:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d816429f-a0d4-4faa-bd5a-2e2dc6766701</guid><dc:creator>Monkeytronics</dc:creator><description>&lt;p&gt;I would like to have a go at enabling auto onboarding for my nrf9151 based product. What are the chances that the documentation you promised above is ready. It&amp;#39;s been over a year - presumably long enough to document this process as a step by step fool-proof process?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9161 Cloud Auto-Provisioning / Onboarding</title><link>https://devzone.nordicsemi.com/thread/517878?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2025 08:49:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bf09ced-23ef-4731-ad01-efb88d43f7c7</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Neil,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I checked with our nRF Cloud team to confirm whether there could be any differences between the FREE and Pro Plans, but the answer is no. To verify further, I created a new Free Plan account and repeated the steps&amp;nbsp;in&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/support-private/support/336139#permalink=1017931"&gt;https://devzone.nordicsemi.com/support-private/support/336139#permalink=1017931&lt;/a&gt;. I did not encounter any errors in the logs.&lt;/p&gt;
&lt;p&gt;I suspect there might be an issue with your account. Could you try creating a new account and testing again to confirm?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9161 Cloud Auto-Provisioning / Onboarding</title><link>https://devzone.nordicsemi.com/thread/517588?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2025 04:58:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f12cd51d-0679-4e79-9805-97d84d4c74d4</guid><dc:creator>nrao32</dc:creator><description>&lt;p&gt;Hi Charlie. The nRF Cloud validator says that my JWT is valid and it&amp;#39;s also able to give me the device ID from the JWT, but the nRF Cloud does not allow my device to execute any location APIs. The service eval token works however but I&amp;#39;m already&amp;nbsp;1/3 of the way through that trial and as you said is not recommended.&amp;nbsp;I will try upgrading to the Pro plan and see if that resolves the issue with the nRF Cloud, but I was hoping to stay on the free&amp;nbsp;tier during development. Let me see if the Pro plan fixes it. Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9161 Cloud Auto-Provisioning / Onboarding</title><link>https://devzone.nordicsemi.com/thread/517407?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2025 09:24:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3635cb0b-f200-4795-9183-0bca84cee4c7</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Neil,&lt;/p&gt;
&lt;p&gt;The Service Evaluation Token is only valid for 30 days. It is not recommended to use it for your product, even for development purposes.&lt;/p&gt;
&lt;p&gt;The JWT is automatically set up if you follow the steps provided in this discussion: &lt;a href="https://devzone.nordicsemi.com/support-private/support/336139#permalink=1017931"&gt;https://devzone.nordicsemi.com/support-private/support/336139#permalink=1017931&lt;/a&gt;, but this feature requires a Pro plan.&lt;/p&gt;
&lt;p&gt;I apologize for the lack of proper documentation on this matter. I will inform our nRF Cloud team to improve this section of the documentation.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9161 Cloud Auto-Provisioning / Onboarding</title><link>https://devzone.nordicsemi.com/thread/516535?ContentTypeID=1</link><pubDate>Mon, 30 Dec 2024 20:17:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5462bb87-66ef-4046-b228-03cd583c5f1a</guid><dc:creator>nrao32</dc:creator><description>&lt;p&gt;Update - I found this nRF Location Services evaluation thing in the Teams page:&amp;nbsp;&lt;a href="https://nrfcloud.com/#/teams"&gt;https://nrfcloud.com/#/teams&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1735589679537v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Using &lt;em&gt;that&lt;/em&gt; token worked! However, this is not ideal, since obviously I don&amp;#39;t want to use the same token for every device, and would rather have the device authenticate&amp;nbsp;itself instead. However the device&amp;#39;s JWT still returns error&amp;nbsp;40100 which on the docs says &amp;quot;Access denied error. The user making the request does not have access to the requested resource (device, SIM, invitation, etc.). Confirm your authorization is correct.&amp;quot;&lt;/p&gt;
&lt;p&gt;So, at least I&amp;#39;m unblocked for development, but not a viable option for production. Is this just because I&amp;#39;m on the developer plan? Do I need to upgrade to the pro plan to be able to authorize the devices themselves?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9161 Cloud Auto-Provisioning / Onboarding</title><link>https://devzone.nordicsemi.com/thread/516534?ContentTypeID=1</link><pubDate>Mon, 30 Dec 2024 19:58:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bed9575c-0d31-4031-9bc4-8d3d17957f86</guid><dc:creator>nrao32</dc:creator><description>&lt;p&gt;Hi Charlie, I&amp;nbsp;was able to get my device provisioned:&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:80px;max-width:177px;" height="80" src="https://devzone.nordicsemi.com/resized-image/__size/354x160/__key/communityserver-discussions-components-files/4/pastedimage1735588390761v1.png" width="176" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;I was also able to claim it:&lt;/p&gt;
&lt;p&gt;&lt;img style="height:314px;max-height:314px;max-width:200px;" height="314" src="https://devzone.nordicsemi.com/resized-image/__size/400x628/__key/communityserver-discussions-components-files/4/pastedimage1735588487975v3.png" width="200" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;However, I still get errors when trying to use nRF Cloud services like the location API:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:18.741,577] &amp;lt;err&amp;gt; nrf_cloud_codec_internal: REST error msg: Invalid JWT
[00:00:18.751,831] &amp;lt;err&amp;gt; nrf_cloud_rest: nRF Cloud REST error code: 40100
[00:00:18.761,627] &amp;lt;err&amp;gt; dev: Failed to send P-GPS request, error: -77&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I looked up error code&amp;nbsp;40100:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://api.nrfcloud.com/#section/Error-Codes"&gt;nRF Cloud REST API Documentation&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Looks to be an authorization issue, not an authentication issue (I validated that the JWT token is valid now):&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1735588682321v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I might be missing some kind of auth permission. How do I allow my device to access nRF cloud services?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9161 Cloud Auto-Provisioning / Onboarding</title><link>https://devzone.nordicsemi.com/thread/512306?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2024 10:50:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b574ee0-a94c-403c-9ee1-c2970b15d632</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Could you try recording a modem trace from the device? The instructions for enabling and capturing modem traces can be found here: &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.8.0/page/nrf/app_dev/device_guides/nrf91/nrf91_features.html#modem_trace" target="_new"&gt;&lt;span&gt;Modem&lt;/span&gt;&lt;span&gt; Trace&lt;/span&gt;&lt;span&gt; Guide&lt;/span&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This trace will help us better understand what might be causing the issues. Please also share the logs captured simultaneously, as they will provide additional context for the analysis.&lt;/p&gt;
&lt;p&gt;Let me know if you have any questions or run into any difficulties while capturing the trace and logs. I’m happy to assist further.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9161 Cloud Auto-Provisioning / Onboarding</title><link>https://devzone.nordicsemi.com/thread/511771?ContentTypeID=1</link><pubDate>Sat, 23 Nov 2024 21:51:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f0197e2-2615-432c-bf37-da072a8372e9</guid><dc:creator>nrao32</dc:creator><description>&lt;p&gt;Hi Charlie, I am using a developer account. However, I should be well within the free tier limits since I am merely trying to provision a device. This is the original, unmodified sample.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9161 Cloud Auto-Provisioning / Onboarding</title><link>https://devzone.nordicsemi.com/thread/511501?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2024 13:50:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee3c2d06-dd2a-46e2-aa78-183c48b23096</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I mean to test with the unmodified sample located in v2.8.0/nrf/samples/cellular/nrf_cloud_multi_service. If you confirm it is original sample, then we can exclude this cause.&lt;/p&gt;
&lt;p&gt;Are you using an free developer account with nRF Cloud? Pay attention that there are limitations for device and service usage.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9161 Cloud Auto-Provisioning / Onboarding</title><link>https://devzone.nordicsemi.com/thread/511342?ContentTypeID=1</link><pubDate>Wed, 20 Nov 2024 14:32:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2386141d-dfd3-4568-b62d-d37dcd09799e</guid><dc:creator>nrao32</dc:creator><description>&lt;p&gt;Can you please elaborate what you mean by original NCS 2.8.0 cellular multi service sample? I&amp;#39;m running an unmodified sample.&lt;/p&gt;
&lt;p&gt;My DK came with an Onomondo SIM. I&amp;#39;ve also tried to use an IoT DataWorks SIM which uses AT&amp;amp;T. I was able to confirm Internet connectivity on it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9161 Cloud Auto-Provisioning / Onboarding</title><link>https://devzone.nordicsemi.com/thread/511224?ContentTypeID=1</link><pubDate>Wed, 20 Nov 2024 08:03:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43c5f9fc-2576-4801-9b12-e4aa426a857a</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;No, I have only used the original nRF9161DK, specifically version v0.9.1. However, every version of the nRF9161DK released within the past year should work, as there have not been any significant changes.&lt;/p&gt;
&lt;p&gt;Did you also encounter the message &lt;code&gt;&amp;quot;&amp;lt;err&amp;gt; spi_nor: Device id 00 00 00 does not match config c8 65 19&amp;quot;&lt;/code&gt; when testing with the original NCS 2.8.0 &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.8.0/page/nrf/samples/cellular/nrf_cloud_multi_service/README.html#nrf-cloud-multi-service-provisioning-service"&gt;Cellular: nRF Cloud multi-service&lt;/a&gt;? I believe this should not impact the auto-provisioning process.&lt;/p&gt;
&lt;p&gt;Which network operator are you using? Please ensure that you have sufficient data available for your subscription. You can simply verify network connectivity and data access using the Serial LTE modem ping command.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Charlie&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9161 Cloud Auto-Provisioning / Onboarding</title><link>https://devzone.nordicsemi.com/thread/511207?ContentTypeID=1</link><pubDate>Wed, 20 Nov 2024 02:29:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0cf4189-1149-450b-ad7f-3a06691537e4</guid><dc:creator>nrao32</dc:creator><description>&lt;p&gt;Hi Charlie, I imagine I need to set up external flash in order for this to work, based on the first few logs I see. Can you elaborate on what component you had to buy and how you wired it to the nRF9161 DK?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting My Application v2.1.0-dev-4594a8693738 ***
*** Using nRF Connect SDK v2.8.0-a2386bfc8401 ***
*** Using Zephyr OS v3.7.99-0bc3393fb112 ***
I: Starting bootloader
I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Boot source: none
I: Image index: 0, Swap type: none
I: Bootloader chainload address offset: 0x18000
I: Jumping to the first image slot
[00:00:00.255,065] &amp;lt;err&amp;gt; spi_nor: Device id 00 00 00 does not match config c8 65 19
*** Booting nRF Connect SDK v2.8.0-a2386bfc8401 ***
*** Using Zephyr OS v3.7.99-0bc3393fb112 ***
[00:00:00.259,857] &amp;lt;inf&amp;gt; main: nRF Cloud multi-service sample has started, version: 1.0.0, protocol: MQTT
[00:00:00.259,887] &amp;lt;inf&amp;gt; application: Reset reason: 0x10001
[00:00:00.260,162] &amp;lt;inf&amp;gt; cloud_connection: Enabling connectivity...
[00:00:00.547,851] &amp;lt;inf&amp;gt; cloud_connection: Setting up nRF Cloud library...
[00:00:00.636,047] &amp;lt;inf&amp;gt; nrf_cloud_info: Device ID: 5033475&amp;lt;HIDDEN&amp;gt;917c
[00:00:00.636,596] &amp;lt;inf&amp;gt; nrf_cloud_info: IMEI:      35&amp;lt;HIDDEN&amp;gt;48
[00:00:00.722,473] &amp;lt;inf&amp;gt; nrf_cloud_info: UUID:      503&amp;lt;HIDDEN&amp;gt;17c
[00:00:00.722,961] &amp;lt;inf&amp;gt; nrf_cloud_info: Modem FW:  mfw_nrf91x1_2.0.1
[00:00:00.722,991] &amp;lt;inf&amp;gt; nrf_cloud_info: Protocol:          MQTT
[00:00:00.723,052] &amp;lt;inf&amp;gt; nrf_cloud_info: Download protocol: HTTPS
[00:00:00.723,052] &amp;lt;inf&amp;gt; nrf_cloud_info: Sec tag:           16842753
[00:00:00.723,083] &amp;lt;inf&amp;gt; nrf_cloud_info: Host name:         mqtt.nrfcloud.com
[00:00:00.823,089] &amp;lt;inf&amp;gt; nrf_cloud_credentials: Sec Tag: 16842753; CA: Yes, Client Cert: Yes, Private Key: Yes
[00:00:00.823,150] &amp;lt;inf&amp;gt; nrf_cloud_credentials: CA Size: 1188, AWS: Likely, CoAP: Unlikely
[00:00:00.823,181] &amp;lt;inf&amp;gt; cloud_connection: Waiting for network ready...
[00:00:11.632,110] &amp;lt;inf&amp;gt; cloud_connection: Network connectivity gained!
[00:00:12.632,385] &amp;lt;inf&amp;gt; cloud_provisioning: Initializing the nRF Provisioning library...
[00:00:12.632,568] &amp;lt;inf&amp;gt; cloud_connection: Network is ready
[00:00:12.671,844] &amp;lt;inf&amp;gt; nrf_provisioning: Checking for provisioning commands in 4s seconds
[00:00:16.671,966] &amp;lt;inf&amp;gt; cloud_provisioning: Provisioning is active.
[00:00:16.773,895] &amp;lt;inf&amp;gt; nrf_provisioning_http: Requesting commands
[00:00:19.105,072] &amp;lt;inf&amp;gt; nrf_provisioning_http: Connected
[00:00:19.105,102] &amp;lt;inf&amp;gt; nrf_provisioning_http: No more commands to process on server side
[00:00:19.105,194] &amp;lt;inf&amp;gt; nrf_provisioning: Checking for provisioning commands in 62s seconds
[00:00:24.105,224] &amp;lt;inf&amp;gt; cloud_provisioning: Provisioning is idle.
[00:00:24.105,285] &amp;lt;inf&amp;gt; cloud_connection: Connecting to nRF Cloud
[00:00:28.411,865] &amp;lt;err&amp;gt; nrf_cloud_transport: MQTT input error: -128
[00:00:28.411,926] &amp;lt;err&amp;gt; nrf_cloud_transport: Error disconnecting from cloud: -128
[00:00:28.411,956] &amp;lt;inf&amp;gt; cloud_connection: Disconnecting from nRF Cloud
[00:00:28.411,987] &amp;lt;err&amp;gt; cloud_connection: Could not connect to nRF Cloud
[00:00:28.412,017] &amp;lt;inf&amp;gt; cloud_connection: Retrying in 30 seconds...
[00:00:58.412,139] &amp;lt;inf&amp;gt; cloud_connection: Waiting for network ready...
[00:00:58.412,170] &amp;lt;inf&amp;gt; cloud_connection: Network is ready
[00:00:58.412,170] &amp;lt;inf&amp;gt; cloud_connection: Connecting to nRF Cloud
[00:01:03.047,119] &amp;lt;err&amp;gt; nrf_cloud_transport: MQTT input error: -128
[00:01:03.047,210] &amp;lt;err&amp;gt; nrf_cloud_transport: Error disconnecting from cloud: -128
[00:01:03.047,241] &amp;lt;inf&amp;gt; cloud_connection: Disconnecting from nRF Cloud
[00:01:03.047,271] &amp;lt;err&amp;gt; cloud_connection: Could not connect to nRF Cloud
[00:01:03.047,302] &amp;lt;inf&amp;gt; cloud_connection: Retrying in 30 seconds...
[00:01:21.105,316] &amp;lt;inf&amp;gt; cloud_provisioning: Provisioning is active.
[00:01:21.207,336] &amp;lt;inf&amp;gt; nrf_provisioning_http: Requesting commands
[00:01:23.649,322] &amp;lt;inf&amp;gt; nrf_provisioning_http: Connected
[00:01:23.649,353] &amp;lt;inf&amp;gt; nrf_provisioning_http: No more commands to process on server side
[00:01:23.649,444] &amp;lt;inf&amp;gt; nrf_provisioning: Checking for provisioning commands in 60s seconds
[00:01:28.649,475] &amp;lt;inf&amp;gt; cloud_provisioning: Provisioning is idle.
[00:01:33.047,393] &amp;lt;inf&amp;gt; cloud_connection: Waiting for network ready...
[00:01:33.047,424] &amp;lt;inf&amp;gt; cloud_connection: Network is ready
[00:01:33.047,424] &amp;lt;inf&amp;gt; cloud_connection: Connecting to nRF Cloud
[00:01:37.150,390] &amp;lt;err&amp;gt; nrf_cloud_transport: MQTT input error: -128
[00:01:37.150,451] &amp;lt;err&amp;gt; nrf_cloud_transport: Error disconnecting from cloud: -128
[00:01:37.150,512] &amp;lt;inf&amp;gt; cloud_connection: Disconnecting from nRF Cloud
[00:01:37.150,543] &amp;lt;err&amp;gt; cloud_connection: Could not connect to nRF Cloud
[00:01:37.150,543] &amp;lt;inf&amp;gt; cloud_connection: Retrying in 30 seconds...&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9161 Cloud Auto-Provisioning / Onboarding</title><link>https://devzone.nordicsemi.com/thread/511095?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2024 13:25:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d06630c3-d68c-42eb-9c01-4a6a751bec9b</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I played with NCS 2.8.0 &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.8.0/page/nrf/samples/cellular/nrf_cloud_multi_service/README.html#nrf-cloud-multi-service-provisioning-service"&gt;Cellular: nRF Cloud multi-service&lt;/a&gt;&amp;nbsp;to verfiy the&amp;nbsp;Auto-Provisioning / Onboarding today. Below is my process:&lt;/p&gt;
&lt;p&gt;I build the firmware with extra config&amp;nbsp;overlay-http_nrf_provisioning.conf and also set&amp;nbsp;&lt;span&gt;CONFIG_TEMP_ALERT_LIMIT&lt;/span&gt;&lt;span&gt;=5 to triger Alert easily.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:478px;max-width:800px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1600x956/__key/communityserver-discussions-components-files/4/pastedimage1732021394892v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Following&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/nrf-cloud/page/SecurityServices/ProvisioningService/ClaimingDevices/ClaimingDeviceOwnershipPortal.html"&gt;Managing claimed devices using the nRF Cloud portal&lt;/a&gt;&amp;nbsp;after programing&amp;nbsp;above firmware.&lt;/p&gt;
&lt;p&gt;I can see my device change from READY-&amp;gt;PROVISIONED, also the log from nRF9161DK says &amp;quot;cloud_provisioning: Provisiong completed&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:19.702,301] &amp;lt;inf&amp;gt; cloud_connection: Network connectivity gained!
[00:00:20.702,789] &amp;lt;inf&amp;gt; nrf_provisioning_http: Sending response to server
[00:00:21.540,985] &amp;lt;inf&amp;gt; cloud_provisioning: Provisioning completed.
[00:00:21.541,015] &amp;lt;inf&amp;gt; sample_reboot: Rebooting in 10s...
[00:00:26.541,046] &amp;lt;inf&amp;gt; cloud_provisioning: Provisioning is idle.
[00:00:26.550,506] &amp;lt;inf&amp;gt; cloud_connection: Connecting to nRF Cloud
[00:00:28.194,549] &amp;lt;inf&amp;gt; cloud_connection: Connected to nRF Cloud
[00:00:28.655,029] &amp;lt;inf&amp;gt; shadow_config: Sending reported configuration
[00:00:29.340,179] &amp;lt;inf&amp;gt; application: Waiting for modem to determine current date and time
[00:00:29.351,654] &amp;lt;inf&amp;gt; application: Current date and time determined
[00:00:29.361,450] &amp;lt;inf&amp;gt; nrf_cloud_log: Changing cloud logging enabled to:1
[00:00:29.372,802] &amp;lt;inf&amp;gt; cloud_connection: Reducing provisioning check interval to 30 minutes
[00:00:29.390,014] &amp;lt;inf&amp;gt; application: Temperature is 24 degrees C&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The nRF Cloud-&amp;gt;Device Management-&amp;gt; Device-&amp;gt; 50363953-3234-4ab4-8025-0e085exxxx management apge shows one alert for &amp;quot;&lt;span&gt;Temperature over limit!&lt;/span&gt;&amp;quot;.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:101px;max-width:460px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/920x202/__key/communityserver-discussions-components-files/4/pastedimage1732021810754v4.png" /&gt;&lt;/p&gt;
&lt;p&gt;Then I start to run&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.8.0/page/nrf/samples/cellular/nrf_cloud_rest_device_message/README.html"&gt;Cellular: nRF Cloud REST Device Message&lt;/a&gt;&amp;nbsp;sample, since the nRF9161DK has already been provisioned to nRF Cloud. I do not need to claim it again, but I sitll need to&amp;nbsp;add&amp;nbsp;&lt;span&gt;extra config&amp;nbsp;overlay-http_nrf_provisioning.conf&amp;nbsp;since it has other configuration the device going to use for connection, like JWT support.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;After program the firmware and run, I can find the REST Messages appear on the device terminal on nRF Cloud.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:147px;max-width:480px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x294/__key/communityserver-discussions-components-files/4/pastedimage1732022709241v5.png" /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9161 Cloud Auto-Provisioning / Onboarding</title><link>https://devzone.nordicsemi.com/thread/510792?ContentTypeID=1</link><pubDate>Sat, 16 Nov 2024 15:52:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2cc9ac9-afed-46fe-8170-319c1867b23a</guid><dc:creator>nrao32</dc:creator><description>&lt;p&gt;So, one of the&amp;nbsp;issues was just how I was dumping it into&amp;nbsp;stdout, as it was&amp;nbsp;missing some lines. When I got all the lines in properly, I now get a valid result:&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1731772097025v2.png" alt=" " /&gt;&lt;br /&gt;However, the nrf code still errors out:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:17.306,854] &amp;lt;err&amp;gt; nrf_cloud_codec_internal: REST error msg: Invalid JWT
[00:00:17.306,945] &amp;lt;err&amp;gt; nrf_cloud_rest: nRF Cloud REST error code: 40100
[00:00:17.307,037] &amp;lt;err&amp;gt; nrf_cloud_alert: Error sending alert via REST: -77&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The code I&amp;#39;m referring to is here:&lt;br /&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/066ac6f61fe19ad91d805fd788d782e245f09a2e/samples/cellular/nrf_cloud_rest_device_message/src/main.c#L581"&gt;sdk-nrf/samples/cellular/nrf_cloud_rest_device_message/src/main.c at 066ac6f61fe19ad91d805fd788d782e245f09a2e &amp;middot; nrfconnect/sdk-nrf&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9161 Cloud Auto-Provisioning / Onboarding</title><link>https://devzone.nordicsemi.com/thread/510791?ContentTypeID=1</link><pubDate>Sat, 16 Nov 2024 08:33:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a51a6dca-4c54-4c62-bfc2-9982eadb59be</guid><dc:creator>nrao32</dc:creator><description>&lt;p&gt;I tried generating a JWT token myself to test:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;char jwt_buf[512];
	char buf[64 + 1];

	struct jwt_data jwt = { .audience = NULL,
				.sec_tag = CONFIG_NRF_PROVISIONING_JWT_SEC_TAG,
				.key = JWT_KEY_TYPE_CLIENT_PRIV,
				.alg = JWT_ALG_TYPE_ES256,
				.jwt_buf = jwt_buf,
				.jwt_sz = sizeof(jwt_buf),
				/* The UUID is present in the iss claim */
				.subject = NULL };

	/* Check if modem time is valid */
	err = nrf_provisioning_at_time_get(buf, sizeof(buf));
	if (err != 0) {
		LOG_ERR(&amp;quot;Modem does not have valid date/time, JWT not generated&amp;quot;);
		return -ETIME;
	}

	jwt.exp_delta_s = CONFIG_NRF_PROVISIONING_JWT_MAX_VALID_TIME_S;

	LOG_INF(&amp;quot;Generating JWT&amp;quot;);
	err = modem_jwt_generate(&amp;amp;jwt);
	if (err) {
		LOG_ERR(&amp;quot;modem_jwt_generate failed to generate, error: %d&amp;quot;, err);
	}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I get a token back, but something seems to be wrong with it. When I plug in the token to jwt.io for example, it says that the token has an invalid signature:&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:225px;max-width:525px;" height="225" src="https://devzone.nordicsemi.com/resized-image/__size/1050x450/__key/communityserver-discussions-components-files/4/pastedimage1731745947721v2.png" width="525" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The nRF cloud&amp;#39;s JWT validator also says it&amp;#39;s invalid:&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:180px;max-width:554px;" height="180" src="https://devzone.nordicsemi.com/resized-image/__size/1108x360/__key/communityserver-discussions-components-files/4/pastedimage1731745995580v3.png" width="554" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9161 Cloud Auto-Provisioning / Onboarding</title><link>https://devzone.nordicsemi.com/thread/510787?ContentTypeID=1</link><pubDate>Sat, 16 Nov 2024 07:26:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed5606f9-a385-4385-ac91-755a661913c4</guid><dc:creator>nrao32</dc:creator><description>&lt;p&gt;I&amp;#39;ve been following along the device alerts and added in the relevant config to prj.conf. Now I get a new error:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:13.953,491] &amp;lt;inf&amp;gt; iotr: Initializing the nRF Provisioning library...
[00:00:13.997,375] &amp;lt;err&amp;gt; nrf_cloud_codec_internal: REST error msg: Invalid JWT
[00:00:13.997,497] &amp;lt;err&amp;gt; nrf_cloud_rest: nRF Cloud REST error code: 40100
[00:00:13.997,589] &amp;lt;err&amp;gt; nrf_cloud_alert: Error sending alert via REST: -77
[00:00:13.997,619] &amp;lt;err&amp;gt; iotr: Error sending alert to cloud: -77
[00:00:14.177,886] &amp;lt;inf&amp;gt; iotr: nRF Cloud credentials detected
[00:00:14.794,708] &amp;lt;err&amp;gt; nrf_cloud_codec_internal: REST error msg: Invalid JWT
[00:00:14.794,799] &amp;lt;err&amp;gt; nrf_cloud_rest: nRF Cloud REST error code: 40100
[00:00:14.794,860] &amp;lt;err&amp;gt; nrf_cloud_log: Error sending message:-77
[00:00:14.794,952] &amp;lt;err&amp;gt; nrf_cloud_log: Data: [{&amp;quot;appId&amp;quot;:&amp;quot;LOG&amp;quot;,&amp;quot;dom&amp;quot;:0,&amp;quot;lvl&amp;quot;:1,&amp;quot;src&amp;quot;:&amp;quot;nrf_cloud_alert&amp;quot;,&amp;quot;ts&amp;quot;:1731741735293,&amp;quot;seq&amp;quot;:0,&amp;quot;msg&amp;quot;:&amp;quot;Error sending alert via REST: -77&amp;quot;},{&amp;quot;appId&amp;quot;:&amp;quot;LOG&amp;quot;,&amp;quot;dom&amp;quot;:0,&amp;quot;lvl&amp;quot;:1,&amp;quot;src&amp;quot;:&amp;quot;iotr&amp;quot;,&amp;quot;ts&amp;quot;:1731741735293,&amp;quot;seq&amp;quot;:1,&amp;quot;msg&amp;quot;:&amp;quot;Error sending alert to cloud: -77&amp;quot;}], len: 240
[00:00:14.895,111] &amp;lt;err&amp;gt; nrf_cloud_log: Error -77 ret 0 processing ring buffer
[00:00:14.895,111] &amp;lt;inf&amp;gt; nrf_cloud_log: Sent lines:0, bytes:0
[00:00:14.895,446] &amp;lt;inf&amp;gt; nrf_cloud_log: Sent lines:0, bytes:0
[00:00:15.457,275] &amp;lt;inf&amp;gt; nrf_provisioning_http: Connected
[00:00:15.457,305] &amp;lt;inf&amp;gt; nrf_provisioning_http: No more commands to process on server side
[00:00:15.457,305] &amp;lt;inf&amp;gt; iotr: Provisioning stopped&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll keep digging in to see if it&amp;#39;s something else I&amp;#39;m missing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9161 Cloud Auto-Provisioning / Onboarding</title><link>https://devzone.nordicsemi.com/thread/510677?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2024 12:29:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66d66484-7775-4e25-9b35-12f777480d17</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for checking with use about this issue.&lt;/p&gt;
&lt;p&gt;nRF9161DK deoes not&amp;nbsp;&lt;span&gt;support j&lt;span&gt;ust-in-time provisioning (JITP). Please follow&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.8.0/page/nrf/samples/cellular/nrf_cloud_rest_device_message/README.html"&gt;Cellular: nRF Cloud REST Device Message&lt;/a&gt;&amp;nbsp;document and pay attention to HW and NCS versions.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;You nRF9161DK should be avaliable on nRF Cloud now. Please check if other basic function works or not with &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.8.0/page/nrf/samples/cellular/nrf_cloud_multi_service/README.html"&gt;Cellular: nRF Cloud multi-service&lt;/a&gt;. Learn about&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/MessagesAndAlerts/AlertsAndLogs/UsingAlerts.html#using-device-alerts"&gt;Using device alerts&lt;/a&gt;&amp;nbsp;about how alert is triggered.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;Charlie&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>