<?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>NRF52840 OTA for central and peripheral.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102169/nrf52840-ota-for-central-and-peripheral</link><description>Hi All, 
 I am using NRF52840 in my project. The architecture of the project includes the following :- 
 
 
 There are 2 peripheral devices which are connected to the central device via BLE. The central device is connected to the WIFI module via UART</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Aug 2023 14:23:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102169/nrf52840-ota-for-central-and-peripheral" /><item><title>RE: NRF52840 OTA for central and peripheral.</title><link>https://devzone.nordicsemi.com/thread/441419?ContentTypeID=1</link><pubDate>Tue, 15 Aug 2023 14:23:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f5217fc-8978-4c9c-8d13-0537641baadc</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Communication via UART should be possible. We do not have any samples that could show you how to do this UART transfer. You would need to implement desired functionality yourself. For general information you could take a look at&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-4-serial-communication-uart/"&gt;serial communication (UART)&lt;/a&gt;&amp;nbsp;from NCS Fundamentals course.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 OTA for central and peripheral.</title><link>https://devzone.nordicsemi.com/thread/441120?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2023 10:51:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06a85ec6-530d-4013-a61e-4ac6f70c0c55</guid><dc:creator>sne_333</dc:creator><description>&lt;p&gt;Regarding 3rd point..&lt;/p&gt;
&lt;blockquote class="quote"&gt;
&lt;div class="quote-content"&gt;3) How will the DFU OTA packages transferred in case 1 and 2? Do we have any better idea for this? While doing OTA upgrade via BLE through NRF connect app I saw that we need to give zip file of DFU package in order to do OTA. How will these zipped folders be transmitted via UART and BLE?&lt;/div&gt;
&lt;/blockquote&gt;
&lt;p&gt;Transmission of images is possible via either mobile or PC app over BLE. Image would need to be segmented and transferred over the air. Verification would also be needed in the application before switching to bootloader for image swapping.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can we transfer zipped folders&amp;nbsp;from wifi module to central device via uart??? The DFU packages are seen to be compressed folders. How to do such transfers via uart??&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards,&lt;br /&gt;Snehal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 OTA for central and peripheral.</title><link>https://devzone.nordicsemi.com/thread/440555?ContentTypeID=1</link><pubDate>Wed, 09 Aug 2023 15:21:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cd358ca-4a01-4b8c-be30-22c99a8774c6</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]1) The idea is to receive the OTA file&amp;nbsp;through&amp;nbsp;WIFI module via UART peripheral. Can we do OTA on central device via UART?&amp;nbsp;[/quote]
&lt;p&gt;This is possible but would depend on what you have on your wi-fi module. You would probably need to accept the image, store it in flash and then reboot to swap images. You would probably need to implement the side which sends the file.&lt;/p&gt;
[quote user=""]2) The peripheral 1 &amp;amp; peripheral 2 also need to do OTA via WIFI module. The WIFI module will transfer the OTA file via UART to the central device and the central device will then have to send the OTA file via BLE to the peripherals. Can the peripherals&amp;nbsp;perform OTA&amp;nbsp;via Central device&amp;nbsp;by BLE file transfers?&amp;nbsp;[/quote]
&lt;p&gt;This is similar to the first option where you could use BLE instead of UART.&lt;/p&gt;
[quote user=""]3) How will the DFU OTA packages transferred in case 1 and 2? Do we have any better idea for this? While doing OTA upgrade via BLE through NRF connect app I saw that we need to give zip file of DFU package in order to do OTA. How will these zipped folders be transmitted via UART and BLE?[/quote]
&lt;p&gt;Transmission of images is possible via either mobile or PC app over BLE. Image would need to be segmented and transferred over the air. Verification would also be needed in the application before switching to bootloader for image swapping.&amp;nbsp;&lt;/p&gt;
[quote user=""]4) If there are any existing application or examples please share to me the details.[/quote]
&lt;p&gt;Regarding examples, there are no official samples for sending side but for receiving side you could have a look at&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/examples_bootloader.html"&gt;DFU Bootloader examples&lt;/a&gt;.&amp;nbsp; Additionally, there is a sample provided by my colleague -&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/46994/background-dfu-application-source-code/187534"&gt;background DFU&lt;/a&gt;. Finally, there is documentation about&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_dfu_transport.html"&gt;DFU protocol&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 OTA for central and peripheral.</title><link>https://devzone.nordicsemi.com/thread/440218?ContentTypeID=1</link><pubDate>Tue, 08 Aug 2023 06:01:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32f50ed1-be97-4290-8cf2-cb1d3f0754fa</guid><dc:creator>sne_333</dc:creator><description>&lt;p&gt;Hi Dejans,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I checked the links you have shared. All the links are for nrf connect sdk or Zephyr RTOS. I am not using these. I am using SDK 17.0.2 for my project on all devices. Can you please suggest some relatable options?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards,&lt;/p&gt;
&lt;p&gt;Snehal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 OTA for central and peripheral.</title><link>https://devzone.nordicsemi.com/thread/438072?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2023 12:28:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e30a4e7b-9fed-43a5-833a-aeecd2119221</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;There are several guides and samples that you could have a look at -&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/ncs-dfu"&gt;add DFU to your application&lt;/a&gt;,&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/device-firmware-update-dfu-with-mcuboot-bootloader"&gt;DFU with MCUboot&lt;/a&gt;,&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.1/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html"&gt;SMP server sample&lt;/a&gt;,&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/nrf_desktop/README.html#bootloader"&gt;bootloader section of nRF Desktop&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/serial_recovery/mcuboot_serial_recovery_uart"&gt;MCUboot serial recovery over UART&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>