<?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>Is there an nRF51822 DFU master source code ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16243/is-there-an-nrf51822-dfu-master-source-code</link><description>I&amp;#39;m trying to upload via DFU from one nRF51822 to another nRF51822 via DFU 
 The receiving side is not a problem as there there are loads of examples. 
 But I can&amp;#39;t find any code where the nRF51822 acting in a central role sends data to a DFU device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Sep 2016 09:02:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16243/is-there-an-nrf51822-dfu-master-source-code" /><item><title>RE: Is there an nRF51822 DFU master source code ?</title><link>https://devzone.nordicsemi.com/thread/62056?ContentTypeID=1</link><pubDate>Mon, 12 Sep 2016 09:02:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f7c7000-3e1a-463e-b47c-4d3bf86fcd17</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;No problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there an nRF51822 DFU master source code ?</title><link>https://devzone.nordicsemi.com/thread/62060?ContentTypeID=1</link><pubDate>Mon, 12 Sep 2016 08:54:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9600adb-2581-4219-8191-52f2d96cbd6c</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll take a look&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there an nRF51822 DFU master source code ?</title><link>https://devzone.nordicsemi.com/thread/62059?ContentTypeID=1</link><pubDate>Mon, 12 Sep 2016 08:50:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfc66a0f-babe-40f1-aaf4-f25b5d0e2fa4</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;You can also take a look at nrfutil which can be used to initiate DFU from the PC side, see &lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil/tree/0_5_2"&gt;this&lt;/a&gt; Gitnug repo. I think you should be able to run two debug sessions on on computer, atleast with two nRF51 DKs and their Segger OB JLink chip.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there an nRF51822 DFU master source code ?</title><link>https://devzone.nordicsemi.com/thread/62057?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2016 22:21:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bb9e7dd-c499-4b02-bbbc-640aaf78b3d2</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;Thanks Bjorn&lt;/p&gt;
&lt;p&gt;I think the DFU profile is what I was looking for. But I was hoping that there was an example of the master (central) side of this transfer.&lt;/p&gt;
&lt;p&gt;I will search the web e.g. github in case someone has already written some code to do this, as it looks very hard to debug. as I&amp;#39;d need to run debuggers on both the Master and Slave side&lt;/p&gt;
&lt;p&gt;(I have 2 JLink&amp;#39;s but it would still not be easy to setup, as I suspect I would end up needing to use 2 difference PCs for debugging - one where the DFU bootloader code had been compiled and flashed and one where the master / central DFU code had been compiled)&lt;/p&gt;
&lt;p&gt;Perhaps I should look at the Android or iOS toolbox code, as this seems to be the only source code for the master / central side of things - even though I want that code to run on the nRF51822 its self&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there an nRF51822 DFU master source code ?</title><link>https://devzone.nordicsemi.com/thread/62063?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2016 11:45:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:742de946-3385-4291-b5a1-838861dff942</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Oh, I was of the impression that you wanted to update a device using smartphone via another device. We dont have an example for what you mentioned in your last comment, but you can use our existing DFU Profile to achieve this. Which charactersitics that should be written to and when they should be written to is explained &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/bledfu_transport_bleprofile.html?cp=4_0_1_4_3_1_4_0"&gt;here&lt;/a&gt; Infocenter page.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there an nRF51822 DFU master source code ?</title><link>https://devzone.nordicsemi.com/thread/62062?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2016 11:39:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6ca8f10-5a4a-496f-80b5-5dbfa0139479</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure what you mean by forwarding DFU packets&lt;/p&gt;
&lt;p&gt;I was hoping to develop a device that enumerated as USB Mass Storage, which would search for devices in DFU mode then upload the data from the mass storage via DFU&lt;/p&gt;
&lt;p&gt;The USB device could be a DFU device, but I don&amp;#39;t know if there is a standardisation for a USB DFU device, like there is for HID or Mass Storage&lt;/p&gt;
&lt;p&gt;Mass Storage is the easiest to implement, as I already have code to implement this on a STM32F103&lt;/p&gt;
&lt;p&gt;So I would just need to add some code to send the incoming mass storage data to the nRF51 which re-transmits it to the device waiting for DFU data.&lt;/p&gt;
&lt;p&gt;But, I was hoping not to need to write the DFU transmission code from scratch on the nRF51 (DFU master)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there an nRF51822 DFU master source code ?</title><link>https://devzone.nordicsemi.com/thread/62061?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2016 11:14:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1c0e14e-d2b6-472a-af1d-6e81e35be79b</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;No, as I mentioned in my answer you only have to forward the DFU packets, but I agree that it would be convenient if one could use the same protocol. Unfortunatley, that is something that we do not have at the moment.&lt;/p&gt;
&lt;p&gt;Yes, &lt;a href="https://github.com/NordicSemiconductor/nRF51-ble-bcast-mesh"&gt;github.com/.../nRF51-ble-bcast-mesh&lt;/a&gt; is correct. I forgot to add the link in my answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there an nRF51822 DFU master source code ?</title><link>https://devzone.nordicsemi.com/thread/62058?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2016 22:37:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7c36124-7516-4538-a770-31cca99c6356</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;OK.
Thanks for the answer.&lt;/p&gt;
&lt;p&gt;I guess I do not need to be the same DFU protocol that the Nordic App sends, but it would have been better if it was, as it would be more flexible.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll take a look at the OpenMesh code - is it this &lt;a href="https://github.com/NordicSemiconductor/nRF51-ble-bcast-mesh"&gt;github.com/.../nRF51-ble-bcast-mesh&lt;/a&gt; ?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;PS.I may investigate Serial DFU instead, as that may be another option for the device I am working with (a Smartband)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there an nRF51822 DFU master source code ?</title><link>https://devzone.nordicsemi.com/thread/62055?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2016 12:28:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c8a8068-bbde-4550-9a65-278292491028</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;I am afraid that we do not have an example where another Nordic device that sends DFU data to another Nordic device.&lt;/p&gt;
&lt;p&gt;I think the closest thing we have is the &lt;a href="https://github.com/NordicSemiconductor/nRF51-ble-bcast-mesh"&gt;nRF OpenMesh&lt;/a&gt;, but this uses a custom DFU implementation and not the Nordic DFU Service.&lt;/p&gt;
&lt;p&gt;If you want to use the Nordic DFU Service and the Nordic apps to perform the DFU, then you will have to create an application that forwards packets sent to the DFU Control Point and the DFU Packet characteristics.&lt;/p&gt;
&lt;p&gt;-Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>