<?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>nrfutil v0.52 dfu serial / ble - HCI packet in terminal</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16696/nrfutil-v0-52-dfu-serial-ble---hci-packet-in-terminal</link><description>Hi, 
 I&amp;#39;m using nrfutil to update my nRF52832. 
 I change target from nRF51822 to nRF52832 and I want be able to bootload my target through own master. 
 In past, I used hci_dfu_send_hex.py in verbose mode to convert hex file in HCI packet frame. </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 Mar 2017 09:13:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16696/nrfutil-v0-52-dfu-serial-ble---hci-packet-in-terminal" /><item><title>RE: nrfutil v0.52 dfu serial / ble - HCI packet in terminal</title><link>https://devzone.nordicsemi.com/thread/63893?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2017 09:13:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87c74639-4457-4d26-859c-4703a6bc5b0a</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;@vicnet: This is probably why DFU over BLE was not supported in the v0.5.2 release, i.e. the implementation of the BLE trasnport layer was incomplete.
My suggestion is that you take a look at the dfu_transport_ble.c file in the v1.5.0 and v2.1.0 releases of nrfutil. You will probably have to port it from the newer versions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil v0.52 dfu serial / ble - HCI packet in terminal</title><link>https://devzone.nordicsemi.com/thread/63892?ContentTypeID=1</link><pubDate>Mon, 27 Feb 2017 07:28:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7efe548d-72a1-4bb9-82d4-b00bebdc62ed</guid><dc:creator>Vicnet</dc:creator><description>&lt;p&gt;Hi Bjørn,
Somes methods in dfu_transport_ble.c are absctract (not implemented ?) :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;send_control_data&lt;/li&gt;
&lt;li&gt;get_received_response&lt;/li&gt;
&lt;li&gt;send_packet_data&lt;/li&gt;
&lt;li&gt;clear_received_response&lt;/li&gt;
&lt;li&gt;....&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Do you know where I can find the implementation of these methods ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil v0.52 dfu serial / ble - HCI packet in terminal</title><link>https://devzone.nordicsemi.com/thread/63890?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2017 15:09:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb6f7b13-8a1d-4eff-852f-6d785d57f935</guid><dc:creator>Vicnet</dc:creator><description>&lt;p&gt;I have tried to use the &amp;quot;dfu_transport_ble.py&amp;quot; but without success. I&amp;#39;m not familiar with Python.&lt;/p&gt;
&lt;p&gt;I will try this. If you have any information about incompatibility, please keep me in touch.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil v0.52 dfu serial / ble - HCI packet in terminal</title><link>https://devzone.nordicsemi.com/thread/63889?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2017 14:55:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7a3ff86-2629-492d-b358-f639c1d2afff</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Ok,so you&amp;#39;re using the Master Emulator DLL to perform DFU of a device via a relay device. I see that there is a ble transport layer in the nrfutil v0.5.2 source code  (pc-nrfutil-0_5_2\nordicsemi\dfu\dfu_transport_ble.py), but I do not know if it is functional since the dfu ble option was not added in the release.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil v0.52 dfu serial / ble - HCI packet in terminal</title><link>https://devzone.nordicsemi.com/thread/63888?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2017 13:56:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f033179-60d5-4881-b150-175bf3d0a709</guid><dc:creator>Vicnet</dc:creator><description>&lt;p&gt;I would to &amp;quot;generate&amp;quot; the HCI frame based on my hex file (as *.51b attached).
After generating,  I parse these packets with &amp;quot;Data sent on pipe number x:&amp;quot; and send it to my relay which forward to my device&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil v0.52 dfu serial / ble - HCI packet in terminal</title><link>https://devzone.nordicsemi.com/thread/63887?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2017 13:29:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:971f1682-0ce3-4523-b370-2ce4a183b294</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Do you mean generating a firmware packet(i.e. zip-file) for BLE OTA DFU? If so, then you can do that with nrfutil v0.5.2, but you cannot perform the actual update using nrfutil. You have to use our nRF Connect or nRF Toolbox apps  for Android/iOS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil v0.52 dfu serial / ble - HCI packet in terminal</title><link>https://devzone.nordicsemi.com/thread/63891?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2017 13:04:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61b6154d-1713-4850-8e90-3b6570d48561</guid><dc:creator>Vicnet</dc:creator><description>&lt;p&gt;Do you have any suggestion to generate HCI packet for BLE OTA? My code is based on legacy DFU (SDK 11.0).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil v0.52 dfu serial / ble - HCI packet in terminal</title><link>https://devzone.nordicsemi.com/thread/63884?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2017 11:39:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eacc192c-060b-42b6-a6ad-be864b34397b</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Yes it does not support legacy DFU, this is stated on the pc-nrfutil github page, &lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil"&gt;here&lt;/a&gt; is the link.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Version 0.5.2 generates legacy firmware packages compatible with nRF SDK 11.0 and older.
Versions 1.5.0 and later generate modern firmware packages compatible with nRF SDK 12.0 and newer
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil v0.52 dfu serial / ble - HCI packet in terminal</title><link>https://devzone.nordicsemi.com/thread/63886?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2017 11:20:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c842bf94-af28-4c4c-8218-0da789c8329c</guid><dc:creator>Vicnet</dc:creator><description>&lt;p&gt;In 1.5.0 version, the BLE is not legacy ?
Only for &amp;quot;modern firmware packages&amp;quot; ? BLE Secure?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil v0.52 dfu serial / ble - HCI packet in terminal</title><link>https://devzone.nordicsemi.com/thread/63885?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2017 10:40:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:240085c6-f157-42d8-9728-7e571e524d24</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;No, pc-nrfutil v0.5.2 supports legacy BLE and serial DFU packet generation, but you can only perform serial DFU with v0.5.2. The ble option was not added until v1.5.0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil v0.52 dfu serial / ble - HCI packet in terminal</title><link>https://devzone.nordicsemi.com/thread/63883?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2017 14:40:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8fcda95-fc3e-4995-8e08-a3bb401214b7</guid><dc:creator>Vicnet</dc:creator><description>&lt;p&gt;Could tell me if the nrfutil v0.52 is able to make DFU BLE OTA ?&lt;/p&gt;
&lt;p&gt;When I get help with command: &lt;em&gt;nrfutil dfu ble --help&lt;/em&gt;. The ble command is not available.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/HCI-packet-generated.51b"&gt;HCI packet generated.51b&lt;/a&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;I modify the nrfutil code v0.52 to add BLE OTA DFU functionality.&lt;/p&gt;
&lt;p&gt;I have an error during &amp;quot;compilation&amp;quot;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;  File &amp;quot;nordicsemi/__main__.py&amp;quot;, line 346, in ble
    ble_backend = DfuTransportBle(serial_port=str(port),target_device_addr=str(a
ddress))
TypeError: Can&amp;#39;t instantiate abstract class DfuTransportBle with abstract method
s get_last_error, get_received_response, is_waiting_for_notification, send_contr
ol_data, send_packet_data
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/_5F005F00_main_5F005F00_.py"&gt;&lt;strong&gt;main&lt;/strong&gt;.py&lt;/a&gt;&lt;br /&gt;
Any idea?&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;I found the solution to generate HCI packet. I have removed the communication protocol BLE / UART and replace sending abstract method by printing packet in terminal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil v0.52 dfu serial / ble - HCI packet in terminal</title><link>https://devzone.nordicsemi.com/thread/63882?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2016 08:25:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6caff4f8-dc47-4217-b270-4588f383a831</guid><dc:creator>Vicnet</dc:creator><description>&lt;p&gt;Yes, I want to print the HCI packet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil v0.52 dfu serial / ble - HCI packet in terminal</title><link>https://devzone.nordicsemi.com/thread/63881?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2016 08:18:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:275f81cb-e339-4fc5-bd43-3df1e3a6b16f</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;You just want to print the content of the HCI packet in the terminal?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>