<?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>nRF51 OTA DFU: cannot write to DFU control point attribute</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6578/nrf51-ota-dfu-cannot-write-to-dfu-control-point-attribute</link><description>I am trying to do over-the-air (OTA) device firmware update (DFU) on a device with bootloader same to the &amp;quot;dfu_dual_bank_ble_s110&amp;quot; example in the latest nRF51 SDK . On the other end, I am using a BLE central module. To my naive understanding (please correct</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Apr 2015 21:55:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6578/nrf51-ota-dfu-cannot-write-to-dfu-control-point-attribute" /><item><title>RE: nRF51 OTA DFU: cannot write to DFU control point attribute</title><link>https://devzone.nordicsemi.com/thread/22977?ContentTypeID=1</link><pubDate>Wed, 29 Apr 2015 21:55:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:676d1a6a-7180-4362-8106-8b18989fc8f5</guid><dc:creator>diode</dc:creator><description>&lt;p&gt;Hi Hung, I just sent you a private message.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 OTA DFU: cannot write to DFU control point attribute</title><link>https://devzone.nordicsemi.com/thread/22976?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2015 15:32:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8de90fbe-2402-4f41-8c49-be2d1a374b8c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Diode: PCA10000 dongle contains XLR2 chip when the PCA100031 has XLR3 chip. The SDK and S110 v.8.0 was made for the XLR3 chip.
Now I&amp;#39;m kind of lost of what is working and what is not on your side.&lt;/p&gt;
&lt;p&gt;Could you please summarize on what is working and what is not , and if not what was showed ? a sniffer trace is recommended.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Test with PCA100028 (what my bootloader compiled for) with MCP on PC and MCP on Android&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Test with PCA100031 with MCP on PC and MCP on Android&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Test with PCA10001 on MCP PC and MCP on Android.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 OTA DFU: cannot write to DFU control point attribute</title><link>https://devzone.nordicsemi.com/thread/22975?ContentTypeID=1</link><pubDate>Sun, 26 Apr 2015 02:23:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b72a75c-58f0-4d12-b201-4f6ebfb7c6dd</guid><dc:creator>diode</dc:creator><description>&lt;p&gt;Hi Hung, the diff output showed your bootloader and mine (that was compiled from the nRF51 SDK example without modification) were different. This time I gave it another try with PCA10000 dongle, and OTA DFU worked for both your image and my image. However, I still couldn&amp;#39;t got it working with the Master Control Panel app (version 2.1.1) on my Android in either case. Previously, it didn&amp;#39;t work with PCA10031 dongle either. However, I could see &amp;quot;DfuTarg&amp;quot; service and could connect to it in all cases. Why is it different on Nordic supported hardware/software?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 OTA DFU: cannot write to DFU control point attribute</title><link>https://devzone.nordicsemi.com/thread/22974?ContentTypeID=1</link><pubDate>Fri, 24 Apr 2015 08:00:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7709ef23-4125-4bc8-b3d1-cf617948ab53</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@diode: I&amp;#39;m seeing from the log that after the bootloader received the image size it didn&amp;#39;t response. After 10 seconds, the MCP timed out and disconnect (packet 851 at 19:48:00).
I suspect there could be smth wrong with the bootloader firmware you compiled. I attached my bootloader hex file. Could you try to:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Erase the chip&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Program softdevice&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Program the provided bootloader hex file using &amp;quot;Program Bootloader&amp;quot;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Make sure you updated the firmware on the dongle/DK to use with MCP to v0.11&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf51422_5F00_xxac_5F00_bootloader.hex"&gt;nrf51422_xxac_bootloader.hex&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 OTA DFU: cannot write to DFU control point attribute</title><link>https://devzone.nordicsemi.com/thread/22966?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2015 16:18:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07131ee9-1e37-4a5d-a796-d2f0d08e0e2b</guid><dc:creator>diode</dc:creator><description>&lt;p&gt;Hi Hung, the 3rd-party BLE central device was based on BL620 from Laird. I used it as nothing too complex other than reading from and writing to BLE peripheral. It worked for other BLE devices. Everything was in command line, so I am no sure if a screenshot made a difference. For your second comment, I was using an unmodified bootloader from nRF51 SDK 8.0.0 on nRF51-DK, and followed the instructions on &lt;a href="http://developer.nordicsemi.com/nRF51_SDK/nRF51_SDK_v8.x.x/doc/8.0.0/s110/html/a00091.html"&gt;developer.nordicsemi.com/.../a00091.html&lt;/a&gt; exactly. As for the log on my Android Master Control Panel app, I saw &amp;quot;Connected to XXXXXX&amp;quot; and &amp;quot;Services Discovered&amp;quot; after I connected to the DfuTarg service. However, once I hit the &amp;quot;DFU&amp;quot; log to upload a zip file (&amp;quot;dfu_test_app_hrm.zip&amp;quot;), the log showed &amp;quot;Disconnected&amp;quot;. And in the next time when I retried, it showed the same behavior. And I also notice the VDD on board was ~2.9V instead of 3.3V.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 OTA DFU: cannot write to DFU control point attribute</title><link>https://devzone.nordicsemi.com/thread/22973?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2015 12:55:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a67c0b9-5a2a-4e39-853f-ad199c6ef570</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Diode:
For the first issue, please provide more information on your 3rd party BLE central device. A screenshot would be great.
For the second issue, I&amp;#39;m seeing a timeout. Have you tested with an unmodified bootloader ?
Which bootloader project did you use ?&lt;/p&gt;
&lt;p&gt;Please provide sniffer trace for both cases.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 OTA DFU: cannot write to DFU control point attribute</title><link>https://devzone.nordicsemi.com/thread/22972?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2015 03:00:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cef95310-10e7-476e-a23d-88f3a2dbd408</guid><dc:creator>diode</dc:creator><description>&lt;p&gt;Hi Hung, so there are actually two related problems here. For the first problem, I can still not write to the 0x10 to start DFU with my 3rd-party BLE central device. For the second problem, OTA DFU with Master Control Panel Android app doesn&amp;#39;t work either, since I cannot see &amp;quot;Dfu_HRM&amp;quot; after that. The log.txt of the Windows version Master Control Panel is pasted here &lt;a href="http://pastebin.com/PEsbxGVs"&gt;http://pastebin.com/PEsbxGVs&lt;/a&gt; . Please let me know what sniffing traces you need.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 OTA DFU: cannot write to DFU control point attribute</title><link>https://devzone.nordicsemi.com/thread/22971?ContentTypeID=1</link><pubDate>Wed, 22 Apr 2015 08:01:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07d069e3-9457-4e7d-a4d8-8f495f0de089</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@diode: Could you confirm the issue you mentioned earlier was fixed ?&lt;/p&gt;
&lt;p&gt;I can see that the DFU Control Point has Write property which meant it can be written.&lt;/p&gt;
&lt;p&gt;Regarding the issue you are experiencing, have you tried to do DFU with the nRFToolbox app on iOS or Android ?
Could you send the log file on Master Control panel when the error occurs ( you can find the log in File menu)&lt;/p&gt;
&lt;p&gt;For better debugging, I would need a &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF-Sniffer/(language)/eng-GB"&gt;sniffer trace&lt;/a&gt; to see what happened over the air. You would need an extra PCA10028 or PCA10031 or PCA10001 to act as the sniffer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 OTA DFU: cannot write to DFU control point attribute</title><link>https://devzone.nordicsemi.com/thread/22970?ContentTypeID=1</link><pubDate>Wed, 22 Apr 2015 03:36:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cec87f6c-fd0d-4ad4-8de6-37d195e81db2</guid><dc:creator>diode</dc:creator><description>&lt;p&gt;I have followed the instructions on &lt;a href="http://developer.nordicsemi.com/nRF51_SDK/nRF51_SDK_v8.x.x/doc/8.0.0/s110/html/a00091.html"&gt;developer.nordicsemi.com/.../a00091.html&lt;/a&gt; exactly, with an unmodified bootloader. I am using nRF51-DK (PCA10028), and the version of Master Control Panel x64 program I am using is 3.8.0.7. I can see the DFU service (named &amp;quot;DfuTarg&amp;quot;). However, I still cannot do OTA DFU and get errors like &amp;quot;timeout while waiting for response from device&amp;quot;. You can see a screenshot of this problem in this link &lt;a href="http://i.imgur.com/VQH0MS6.png"&gt;http://i.imgur.com/VQH0MS6.png&lt;/a&gt; . What am I missing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 OTA DFU: cannot write to DFU control point attribute</title><link>https://devzone.nordicsemi.com/thread/22969?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2015 12:55:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0173a972-1bfb-4efa-8164-eb0f71da592b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Have you made sure you haven&amp;#39;t modified the bootloader example? Could you take a screen  shot when the error occurs ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 OTA DFU: cannot write to DFU control point attribute</title><link>https://devzone.nordicsemi.com/thread/22968?ContentTypeID=1</link><pubDate>Sat, 18 Apr 2015 02:45:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e42fab1a-4f36-4a3f-9e5d-01619e968bba</guid><dc:creator>diode</dc:creator><description>&lt;p&gt;I tried writing 01-04 to DFU control point, and still got the same error. I am using a 3rd-party gatttool-like application on the BLE central. But at the same time, after downloading the bootloader, I tried to OTA flash the &amp;quot;dfu_test_app_hrm.zip&amp;quot; in nRF51 SDK doc (&lt;a href="http://developer.nordicsemi.com/nRF51_SDK/nRF51_SDK_v8.x.x/doc/8.0.0/s110/html/a00091.html)"&gt;developer.nordicsemi.com/.../a00091.html)&lt;/a&gt; via Nordic&amp;#39;s Master Control Panel Android app, but could not see the new &amp;quot;Dfu_HRM&amp;quot; service after it finished. I assume that test application was on SoftDevice 8.0.0. What was I missing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 OTA DFU: cannot write to DFU control point attribute</title><link>https://devzone.nordicsemi.com/thread/22967?ContentTypeID=1</link><pubDate>Sat, 18 Apr 2015 02:05:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a0f653d-2815-460f-adec-7a6afea08723</guid><dc:creator>Bobby B</dc:creator><description>&lt;p&gt;Are you using the latest Master Control Panel (3.8.0.7) to do this? Upgrade if not. Also, try to write 01-04 to the DFU Control Point after writing 01-00 to the CCCD. The 04 signals application (you could also signal bootloader, softdevice, or all). Also, try the iOS app if you haven&amp;#39;t yet, it can make this a bit easier.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>