<?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>Checksum 0 after DFU init packet transfer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40370/checksum-0-after-dfu-init-packet-transfer</link><description>Hi! 
 Im trying to implement DFU but got stuck at sending the init packet. 
 The problem seems to be that the the init data doesn&amp;#39;t get transfered somehow, and the symptom is that the CRC32 and offset returned after the transfer is 0. 
 Any idea how to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Nov 2018 09:30:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40370/checksum-0-after-dfu-init-packet-transfer" /><item><title>RE: Checksum 0 after DFU init packet transfer</title><link>https://devzone.nordicsemi.com/thread/157241?ContentTypeID=1</link><pubDate>Wed, 14 Nov 2018 09:30:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7934c0b-94e5-4e26-98b4-b134308da37b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Thanks, good to know about the issue.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Checksum 0 after DFU init packet transfer</title><link>https://devzone.nordicsemi.com/thread/157183?ContentTypeID=1</link><pubDate>Tue, 13 Nov 2018 20:02:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7df8e4ad-8de7-4e84-8244-4a771c0f7ae3</guid><dc:creator>raindeer</dc:creator><description>&lt;p&gt;Realized the problem is a bug in the underlying ble lib and caused by this:&amp;nbsp;&lt;a href="https://github.com/aritchie/bluetoothle/issues/257"&gt;https://github.com/aritchie/bluetoothle/issues/257&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f629.svg" title="Weary"&gt;&amp;#x1f629;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Checksum 0 after DFU init packet transfer</title><link>https://devzone.nordicsemi.com/thread/157030?ContentTypeID=1</link><pubDate>Tue, 13 Nov 2018 09:49:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b1ac36e-3941-4823-b961-d1bb040fbf95</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Raindeer,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;There must be something wrong here. CRC must be calculated, unless there was no data received. I suspect somethign wrong with the write without response.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you capture a &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF-Sniffer/"&gt;sniffer trace&lt;/a&gt; ? If we can compare what you send and what our DFU library sends and find the difference.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Checksum 0 after DFU init packet transfer</title><link>https://devzone.nordicsemi.com/thread/156961?ContentTypeID=1</link><pubDate>Mon, 12 Nov 2018 18:17:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e43be0d3-909b-4491-b400-5a0a90f13c43</guid><dc:creator>raindeer</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Sorry for not being clear. Im implementing DFU in Xamarin (C#) using the ACR BLE lib (&lt;a href="https://github.com/aritchie/bluetoothle"&gt;https://github.com/aritchie/bluetoothle&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;I can use nRFConnect and also other implementations to do the DFU. So the problem is not on the device side.&lt;/p&gt;
&lt;p&gt;The log is from my implementation running on an iPhone.&lt;/p&gt;
&lt;p&gt;If followed the chart you link.&amp;nbsp;&lt;br /&gt;- I create the Command object with size 135 (&lt;span&gt;01-01-87-00-00-00). Get 06-01-01 back as a notification.&lt;br /&gt;- Transfer data to the packet characteristic in 20 bytes packets (WriteWithoutResponse)&lt;br /&gt;&lt;/span&gt;&lt;span&gt;- Then send 03 to get the checksum and get 60-03-01-00-00-00-00-00-00-00-00 (offset=0, CRC=0) back as if no data has been transfered.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If I ignore this problem and send Execute (04) then I get error code 08 back (Operation not permitted).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Somehow my data gets ignored. One&lt;/span&gt;&lt;span&gt;&amp;nbsp;question is this: if I send random data to the Command object and send 03 I still should get the CRC back, right? There is no validation of the init packet done before I actually execute it?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Checksum 0 after DFU init packet transfer</title><link>https://devzone.nordicsemi.com/thread/156948?ContentTypeID=1</link><pubDate>Mon, 12 Nov 2018 16:00:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d33bc38-8cc8-4126-8e53-52a48b910928</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Raindeer,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you give us more information on:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- What do you mean by implement DFU ? Are you using our&amp;nbsp;&lt;a href="https://github.com/NordicSemiconductor/IOS-Pods-DFU-Library"&gt;IOS-Pods-DFU-Librar&lt;/a&gt;y&amp;nbsp;?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- Can you use the nRFConnect or NRFToolbox app to do DFU of the same DFU package .zip file you used ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- I&amp;#39;m not very familiar with the log you sent, from which side did you capture the log (phone or nRF5 ) ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- Could you let me know where exactly in this&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/lib_dfu_transport_ble.html?cp=4_0_2_3_5_2_2_3#lib_dfu_transport_msc"&gt;sequence chart &lt;/a&gt;you have the issue ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Checksum 0 after DFU init packet transfer</title><link>https://devzone.nordicsemi.com/thread/156835?ContentTypeID=1</link><pubDate>Mon, 12 Nov 2018 09:51:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec7e37ef-7f54-471f-9dcb-dedc3894d09f</guid><dc:creator>raindeer</dc:creator><description>&lt;p&gt;Still have not been able to figure this one out. It is as if no data is sent to the packet characteristic. But everything looks correct for the control point characteristic so cant understand how this could be the case. Ive looked at many other implementations and I seem to be doing the exact same thing..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>