<?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>nRF91 and nRF52 FOTA using the nRF Cloud</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105038/nrf91-and-nrf52-fota-using-the-nrf-cloud</link><description>Hi, 
 I am working on a project that uses nRF9160 SICA B1 and nRF52833 MCUs and currently we are researching possible Cloud providers that would ease the integration of FOTA. 
 We are using NCS 2.4.2 for development and nRF9160 modem firmware mfw_nrf9160_1</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Mar 2025 10:57:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105038/nrf91-and-nrf52-fota-using-the-nrf-cloud" /><item><title>RE: nRF91 and nRF52 FOTA using the nRF Cloud</title><link>https://devzone.nordicsemi.com/thread/529263?ContentTypeID=1</link><pubDate>Thu, 27 Mar 2025 10:57:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ac01261-45d9-4d98-8b24-304149217aab</guid><dc:creator>JackT</dc:creator><description>&lt;p&gt;I am working on a custom hardware project similar to this with the nRF9151 and nRF54L15. Who can I contact to discuss this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF91 and nRF52 FOTA using the nRF Cloud</title><link>https://devzone.nordicsemi.com/thread/452392?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2023 01:24:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d57bccca-1d3a-4bf9-b038-3079deafc7d9</guid><dc:creator>justin</dc:creator><description>[quote userid="129395" url="~/f/nordic-q-a/105038/nrf91-and-nrf52-fota-using-the-nrf-cloud"]Is the nRF Cloud suitable for a project that would include thousands of connected devices?[/quote]
&lt;p&gt;Yes it is.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="129395" url="~/f/nordic-q-a/105038/nrf91-and-nrf52-fota-using-the-nrf-cloud"]&lt;span style="font-family:inherit;"&gt;I don&amp;#39;t see any options on the Cloud that would enable me to add the custom device which doesn&amp;#39;t have a HWID.&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:inherit;"&gt;Can HWID be set by the application connecting to the cloud or the nRF9160 development-kit HWID is already saved on the nRF Cloud?&lt;/span&gt;[/quote]
&lt;p&gt;The device ID is set when you provision your device with nRF Cloud.&lt;br /&gt;&lt;a id="" href="https://docs.nrfcloud.com/Devices/Properties/DeviceId.html"&gt;https://docs.nrfcloud.com/Devices/Properties/DeviceId.html&lt;/a&gt;&lt;br /&gt;See the nrf_cloud firmware library options: &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/networking/nrf_cloud.html#configuration-options-for-device-id"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/networking/nrf_cloud.html#configuration-options-for-device-id&lt;/a&gt;&lt;br /&gt;You can use any unique ID you want, however a&amp;nbsp;UUID format is recommended.&lt;br /&gt;For nRF91 devices, it is also recommended to use the device&amp;#39;s internal UUID.&lt;br /&gt;The HWID/PIN is only used for JITP credentials, which are not recommended for custom devices.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="129395" url="~/f/nordic-q-a/105038/nrf91-and-nrf52-fota-using-the-nrf-cloud"]I have gone through many documentation for provisioning the custom device to nRF Cloud, but I am not sure which one to use and what would be the correct steps.[/quote][quote userid="129395" url="~/f/nordic-q-a/105038/nrf91-and-nrf52-fota-using-the-nrf-cloud"]Is there a way of automating the provisioning process and adding the provisioned devices to the nRF Cloud?[/quote]
&lt;p&gt;&lt;a id="" href="https://docs.nrfcloud.com/Devices/Associations/Provisioning.html"&gt;https://docs.nrfcloud.com/Devices/Associations/Provisioning.html&lt;/a&gt;&lt;br /&gt;You should use the Preconnect provisioning method.&lt;br /&gt;This allows you to provision your devices to the cloud in bulk, up to 1000 at a time.&lt;/p&gt;
&lt;p&gt;Please see the example python scripts in the nRF Cloud utils repo:&lt;br /&gt;&lt;a id="" href="https://github.com/nRFCloud/utils/tree/master/python/modem-firmware-1.3%2B"&gt;https://github.com/nRFCloud/utils/tree/master/python/modem-firmware-1.3%2B&lt;/a&gt;&lt;br /&gt;The &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;device_credentials_installer.py&lt;/span&gt; script generates and installs device credentials. &lt;br /&gt;It can create a provisioning CSV file that can be uploaded to the cloud using the &lt;a href="https://api.nrfcloud.com/v1#tag/IP-Devices/operation/ProvisionDevices"&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;ProvisionDevices&lt;/span&gt;&lt;/a&gt; endpoint.&lt;br /&gt;See the &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;nrf_cloud_provision.py&lt;/span&gt; script for an example use of the ProvisionDevices endpoint.&lt;br /&gt; The CSV provisioning file can also be uploaded through the website:&amp;nbsp;&lt;a href="https://nrfcloud.com/#/provision-devices"&gt;https://nrfcloud.com/#/provision-devices&lt;br /&gt;&lt;/a&gt;Let us know if you have specific provisioning questions.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="129395" url="~/f/nordic-q-a/105038/nrf91-and-nrf52-fota-using-the-nrf-cloud"]I tried generating my own certificates following nRF Cloud documentation, but wasn&amp;#39;t able to connect to cloud using the nRF Cloud REST FOTA sample.[/quote]
&lt;p&gt;The credentials provisioned on your device must match the credentials provisioned to nRF Cloud.&amp;nbsp; If they do not match, nRF Cloud will not be able to authenticate your device&amp;#39;s REST call.&lt;br /&gt;An overview of the process:&lt;br /&gt;nRF Cloud receives the device&amp;#39;s public certificate during the cloud provisioning process.&lt;br /&gt;The JWT used for each REST call is signed&amp;nbsp;with the device&amp;#39;s private key.&lt;br /&gt;The cloud verifies the JWT&amp;#39;s signature using the device&amp;#39;s public certificate.&lt;br /&gt;If you are having issues with this process, please open a separate ticket so we can better support you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="129395" url="~/f/nordic-q-a/105038/nrf91-and-nrf52-fota-using-the-nrf-cloud"]What would you recommend is the best way of communicating to implement for not frequent communication and mostly only FOTA performance?[/quote]
&lt;p&gt;REST or CoAP would be the best options if you only plan to use nRF Cloud for FOTA.&lt;br /&gt;The choice might depend on how frequently your device checks for FOTA updates. &lt;br /&gt;With REST, the overhead is in the TLS connection and for each REST call, the JWT.&lt;br /&gt;So, if your device checks for FOTA updates once or twice a week, REST is probably fine.&lt;br /&gt;For more frequent checks or other cloud activities, CoAP might be more efficient.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="129395" url="~/f/nordic-q-a/105038/nrf91-and-nrf52-fota-using-the-nrf-cloud"]Could you provide me with best starting points and NCS samples to achieve FOTA over BLE using nRF Cloud?[/quote]
&lt;p&gt;I don&amp;#39;t believe we have a complete or up-to-date sample for BLE FOTA.&lt;br /&gt;You can view the docs for &lt;a href="https://docs.nrfcloud.com/Devices/FirmwareUpdate/FOTAOverview.html?__hstc=8439722.a3546f540b38f552602670f2520ad3f2.1688142650598.1698267537813.1698279779048.185&amp;amp;__hssc=8439722.4.1698279779048&amp;amp;__hsfp=4084710121#mqtt-job-execution-notifications"&gt;MQTT-based BLE FOTA&lt;/a&gt;. And also &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/6dbafd2b725b39348481b7f382cadaab6fa12fb6/subsys/net/lib/nrf_cloud/Kconfig.nrf_cloud_fota#L38"&gt;configuration&lt;/a&gt;&amp;nbsp;and &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/6dbafd2b725b39348481b7f382cadaab6fa12fb6/subsys/net/lib/nrf_cloud/include/nrf_cloud_fota.h#L190"&gt;handling&lt;/a&gt;&amp;nbsp;in the nrf_cloud FW library.&lt;br /&gt;We will get back to you regarding a sample/documentation for your use case.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="129395" url="~/f/nordic-q-a/105038/nrf91-and-nrf52-fota-using-the-nrf-cloud"]&lt;span style="font-family:inherit;"&gt;nd the last thing, we want the nRF9160 to be able to update itself and also to download the binary for nRF52833 over LTE and update nRF52833 manually. Also we would like for the nRF52833 to be able to download the binary for nRF9160 over BLE and update the nRF9160 manually.&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:inherit;"&gt;Does the nRF Cloud support those kinds of updates and can you recommend starting points and sample?&lt;/span&gt;[/quote]
&lt;p&gt;See the&amp;nbsp;&lt;a id="" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/cellular/smp_svr/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/cellular/smp_svr/README.html&lt;/a&gt; sample for updates between nRF91 and nRF52 devices.&amp;nbsp; &lt;br /&gt;nRF Cloud should be able to support those type of updates, however&amp;nbsp;it expects the&amp;nbsp;nRF91 (IP device)&amp;nbsp;to be the&amp;nbsp;primary device.&amp;nbsp; The nRF52 would be a secondary/auxiliary device that wouldn&amp;#39;t interact directly with the cloud.&amp;nbsp; &lt;br /&gt;We will discuss your use case and get back to you with additional information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>