<?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>DFU from mobile to peripheral via a central device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74072/dfu-from-mobile-to-peripheral-via-a-central-device</link><description>I have setup a 1-1 paired central(+peripheral) &amp;lt;=&amp;gt; peripheral Central is a 52832, SDK 16.0, SD s132 v7.0.1 peripheral is a 52811, SDK 16.0, SD s112 v7.0.1 I can perform a DFU on each of them independently from a mobile phone, with zips built for each</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Apr 2021 11:21:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74072/dfu-from-mobile-to-peripheral-via-a-central-device" /><item><title>RE: DFU from mobile to peripheral via a central device</title><link>https://devzone.nordicsemi.com/thread/305815?ContentTypeID=1</link><pubDate>Tue, 20 Apr 2021 11:21:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e348f8d-2fa0-4ca9-a92f-52fb67019bde</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It would honestly require a bit work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You first have to create a DFU master, that sends the image from the central to the peripheral. You could either store the image on central, and then make the central send it to the peripheral. Or you could just use the central as a relay and and just send the image to the peripheral. The latter would probably be the easiest and would require you to implement the middle man as both a central and peripheral. We already have an example that does this in the SDK, called &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ble_sdk_app_rscs_relay.html?cp=7_1_4_2_1_2"&gt;relay example&lt;/a&gt;. You can try merging that with the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/examples_bootloader.html?cp=7_1_4_4"&gt;DFU example&lt;/a&gt; for a good starting point.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The relay example would require you too implement a big enough buffer, in case the peripheral that receives the image is busy writing it to flash etc. Packet notifications might come in handy here.&lt;/p&gt;
&lt;p&gt;Good luck!!&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU from mobile to peripheral via a central device</title><link>https://devzone.nordicsemi.com/thread/305604?ContentTypeID=1</link><pubDate>Mon, 19 Apr 2021 14:27:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6cd458f-1319-4ba9-be70-37fa5f6919f2</guid><dc:creator>QuentinFarizon</dc:creator><description>&lt;p&gt;I think&amp;nbsp;I could write a &amp;quot;Peripheral Secure DFU Service&amp;quot;, mimicking the standard &amp;quot;Secure DFU Service&amp;quot;, that would transmit all received data to the connected peripheral.&lt;br /&gt;&lt;br /&gt;Is this the good way to go ? Will it be possible to transfer the zip without even writing it on the central storage ?&lt;br /&gt;&lt;br /&gt;How would your rate the difficulty to implement that ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU from mobile to peripheral via a central device</title><link>https://devzone.nordicsemi.com/thread/305463?ContentTypeID=1</link><pubDate>Mon, 19 Apr 2021 09:22:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a10cea0-6450-4f30-a90b-0d0622118eba</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]What I want is the mobile phone to connect only to the central, and to be able to send the peripheral_dfu.zip to the central, and make the central&amp;nbsp; perform DFU on the peripheral.&lt;br /&gt;[/quote]
&lt;p&gt;&amp;nbsp;We don&amp;#39;t have such an example.&lt;/p&gt;
[quote user=""]Is that possible at all ?[/quote]
&lt;p&gt;Yes, it&amp;#39;s possible to implement a DFU master. The doc on infocenter specifies what is needed to implement it, you can read it&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_dfu_transport.html?cp=7_1_3_5_2"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>