<?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 with the builtin BLE interface?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57641/nrfutil-with-the-builtin-ble-interface</link><description>I am trying to determine if it is possible to implement a &amp;quot;OS native&amp;quot; BLE transport layer for nrfutil. That is, use the Bluetooth interface the machine and remove the need for a &amp;quot;nrf dongle&amp;quot;. (On Linux to begin with). Before I waste to much time on it</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Apr 2020 14:17:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57641/nrfutil-with-the-builtin-ble-interface" /><item><title>RE: nrfutil with the builtin BLE interface?</title><link>https://devzone.nordicsemi.com/thread/247383?ContentTypeID=1</link><pubDate>Wed, 29 Apr 2020 14:17:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43340849-e93e-49f0-8dd5-c815e4bc6ccf</guid><dc:creator>sfrank</dc:creator><description>&lt;p&gt;Hello! The os_ble branch is currently in a rather dirty state and commands not implemented. You can try the following:&lt;/p&gt;
&lt;p&gt;```&lt;/p&gt;
&lt;p&gt;cd pc-nrfutil&lt;/p&gt;
&lt;p&gt;python3 nordicsemi/bleak_dfu_cli.py $DFU_ADDR $NRF_ZIP_PKG_PATH&lt;/p&gt;
&lt;p&gt;```&lt;/p&gt;
&lt;p&gt;where `$DFU_ADDR` is the BLE address (assumes device already in DFU.) &lt;br /&gt;you also might need to append `pwd` to PYTHONPATH.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil with the builtin BLE interface?</title><link>https://devzone.nordicsemi.com/thread/246911?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2020 14:58:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8a13fbc-4261-4710-a967-a77190f5ce51</guid><dc:creator>Mimmo</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am also interested to have nrfutil running with native BLE on Linux, on my MAC that use BCM2046 running Ubuntu 18.04 and on my raspberry that use Debian Buster.&lt;/p&gt;
&lt;p&gt;On both the bluetooth interface available is hci0.&lt;/p&gt;
&lt;p&gt;I installed your pc-nrfutil (os_ble-6.1.0) branch on my linux but I have some questions:&lt;/p&gt;
&lt;p&gt;which is the port that need to be used on nrfutil command?&lt;/p&gt;
&lt;p&gt;Bluetooth is associated the hci0 interface. If i run the command:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;nrfutil -v dfu ble -ic NRF52 -a &amp;quot;D2B307388F02&amp;quot; -p hci0 -pkg pkg_app_v1_1_5.zip&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Traceback (most recent call last):&lt;br /&gt;&amp;nbsp; File &amp;quot;/usr/local/bin/nrfutil&amp;quot;, line 8, in &amp;lt;module&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sys.exit(cli())&lt;br /&gt;&amp;nbsp; File &amp;quot;/usr/local/lib/python3.6/dist-packages/click/core.py&amp;quot;, line 829, in __call__&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return self.main(*args, **kwargs)&lt;br /&gt;&amp;nbsp; File &amp;quot;/usr/local/lib/python3.6/dist-packages/click/core.py&amp;quot;, line 782, in main&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rv = self.invoke(ctx)&lt;br /&gt;&amp;nbsp; File &amp;quot;/usr/local/lib/python3.6/dist-packages/click/core.py&amp;quot;, line 1259, in invoke&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return _process_result(sub_ctx.command.invoke(sub_ctx))&lt;br /&gt;&amp;nbsp; File &amp;quot;/usr/local/lib/python3.6/dist-packages/click/core.py&amp;quot;, line 1259, in invoke&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return _process_result(sub_ctx.command.invoke(sub_ctx))&lt;br /&gt;&amp;nbsp; File &amp;quot;/usr/local/lib/python3.6/dist-packages/click/core.py&amp;quot;, line 1066, in invoke&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return ctx.invoke(self.callback, **ctx.params)&lt;br /&gt;&amp;nbsp; File &amp;quot;/usr/local/lib/python3.6/dist-packages/click/core.py&amp;quot;, line 610, in invoke&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return callback(*args, **kwargs)&lt;br /&gt;&amp;nbsp; File &amp;quot;/usr/local/lib/python3.6/dist-packages/nordicsemi/__main__.py&amp;quot;, line 1155, in ble&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; is_jlink = port_is_jlink(port)&lt;br /&gt;&amp;nbsp; File &amp;quot;/usr/local/lib/python3.6/dist-packages/nordicsemi/__main__.py&amp;quot;, line 1092, in port_is_jlink&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise NordicSemiException(&amp;#39;Board not found&amp;#39;)&lt;br /&gt;pc_ble_driver_py.exceptions.NordicSemiException: Board not found&lt;/p&gt;
&lt;p&gt;If I run the command using the nrf52840 dongle, it works fine:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;nrfutil -v dfu ble -ic NRF52 -a &amp;quot;D2B307388F02&amp;quot; -p /dev/ttyACM0 -pkg pkg_app_v1_1_5.zip&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Thanks for any sugestions&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil with the builtin BLE interface?</title><link>https://devzone.nordicsemi.com/thread/234732?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2020 16:19:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe0eda89-67d8-4d8a-b334-b7910e350edd</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for sharing!&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil with the builtin BLE interface?</title><link>https://devzone.nordicsemi.com/thread/234524?ContentTypeID=1</link><pubDate>Sun, 16 Feb 2020 10:29:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:678a5524-1e40-4225-8697-aea4234e1652</guid><dc:creator>sfrank</dc:creator><description>&lt;p&gt;If this is of interest to anyone you can follow the progress here: &lt;a href="https://github.com/5frank/pc-nrfutil"&gt;https://github.com/5frank/pc-nrfutil&lt;/a&gt; in the branch &amp;#39;os_ble&amp;#39;.&lt;/p&gt;
&lt;p&gt;I just made a successful DFU upgrade on linux. The BLE lib used is crossplattform so should work on windows and MacOS but this not (yet) tested.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil with the builtin BLE interface?</title><link>https://devzone.nordicsemi.com/thread/233989?ContentTypeID=1</link><pubDate>Wed, 12 Feb 2020 13:25:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:705268c2-4b9b-4412-b26b-7812ced73eeb</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;HI,&lt;/p&gt;
&lt;p&gt;I see. For BLE transport for DFU, nrfutil builds on &lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver-py"&gt;pc-ble-driver-py&lt;/a&gt;, which is serialization of our SoftDevice (BLE stack.) Therefore what you see is the SoftDevice API.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil with the builtin BLE interface?</title><link>https://devzone.nordicsemi.com/thread/233821?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2020 16:59:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9dda179f-7b53-4c91-bf0d-6d7b69fb4e1d</guid><dc:creator>sfrank</dc:creator><description>&lt;p&gt;Thanks for the reply! I have already checked the source, but there was some things I couldn&amp;#39;t&amp;nbsp; directly translate to simple BLE communication (like the SoftDevice triggered events) and that&amp;#39;s why I&amp;#39;m asking. Will dive further in to the source then.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil with the builtin BLE interface?</title><link>https://devzone.nordicsemi.com/thread/233710?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2020 12:11:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63071959-4852-46b4-bf23-b606b978b113</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It should be possible, yes, if you change the &lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil/tree/master/nordicsemi/dfu"&gt;nrfutil source code&lt;/a&gt; from communicating with an nRF dongle over serial to using the native BLE support of the OS. As long as the OS supports BLE 4 there should be no technical restrictions that prevents you from doing something like that. As for the amount of work required it is difficult to say.&lt;/p&gt;
&lt;p&gt;The reason for nrfutil not using native OS support for BLE, is mainly that the project was started at a time when such support was virtually non-existing. Still today there are systems out there that lack native support, and we are using the proven and tested transport relying on dongles.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>