<?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>Using custom BLE image on nRF52840 Dongle with Softdevice API on PC?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111884/using-custom-ble-image-on-nrf52840-dongle-with-softdevice-api-on-pc</link><description>Hi, 
 according to my system architect it should be possible to use a standard https://github.com/NordicSemiconductor/pc-ble-driver on the nRF52840 Dongle for implementing a BLE CDC on the dongle just by adjusting the relevant windows code. 
 What we</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Jun 2024 07:14:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111884/using-custom-ble-image-on-nrf52840-dongle-with-softdevice-api-on-pc" /><item><title>RE: Using custom BLE image on nRF52840 Dongle with Softdevice API on PC?</title><link>https://devzone.nordicsemi.com/thread/488226?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2024 07:14:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a74848c-b437-4215-b633-545d7f24bf35</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;A development board is much more suited for development since it comes with an onboard Jlink debugger, so it is a good idea to use that. If you get a &lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf52840_dk/page/UG/dk/intro.html"&gt;nRF52840 DK&lt;/a&gt;,&amp;nbsp;you can use the second USB port on the side of the board if you later want to test the nRF USB, unless you plan to use a UART-to-USB bridge on your custom board as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using custom BLE image on nRF52840 Dongle with Softdevice API on PC?</title><link>https://devzone.nordicsemi.com/thread/488221?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2024 07:06:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63b21aad-4846-4a39-a430-d60b694a8025</guid><dc:creator>Andreas Schurz</dc:creator><description>&lt;p&gt;Thanks for the response. That makes it all clear. We&amp;#39;re planning to use a custom HW rather than the Dongle later, because the missing bridge is making it somehow more complicated. Therefore I will just develop it on a development board using the UART-to-USB bridge in the first step.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using custom BLE image on nRF52840 Dongle with Softdevice API on PC?</title><link>https://devzone.nordicsemi.com/thread/488113?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2024 11:41:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a28d286-26bf-4a49-a65e-7857d5e45a62</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;&lt;br /&gt;The nRF Connect SDK, which you can use to develop the firmware (FW), is primarily written in C. We recommend using it with VS Code and our nRF Connect extension. The hex file from&amp;nbsp;your SDK project can then be programmed to the dongle using nrfutil, the programmer app in nRF Connect for Desktop, or an external debugging probe. Segger embedded studio is not supported in this SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using custom BLE image on nRF52840 Dongle with Softdevice API on PC?</title><link>https://devzone.nordicsemi.com/thread/487851?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2024 08:09:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2bd3aa0-4e41-41a3-9d83-47405327c75d</guid><dc:creator>Andreas Schurz</dc:creator><description>&lt;p&gt;Thanks for the information but I am still confused.&lt;/p&gt;
&lt;p&gt;Could you outine how the actual process from coding till the deployment works then? Which steps have to be taken and which tools have to be used from implementation to deployment?&lt;/p&gt;
&lt;p&gt;So I do have to implement the code for the dongle using VS Code or Segger in C?&lt;/p&gt;
&lt;p&gt;Using the trigger library to force DFU mode?&lt;/p&gt;
&lt;p&gt;Then deploying via nrfutil?&lt;/p&gt;
&lt;p&gt;Is this how it works then?&lt;/p&gt;
&lt;p&gt;What does FW stand for? Firmware?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using custom BLE image on nRF52840 Dongle with Softdevice API on PC?</title><link>https://devzone.nordicsemi.com/thread/487849?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2024 08:03:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21d5d5bb-e36c-42b6-974b-aba4650b0de9</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes, with this approach you will have the BLE application running on the dongle instead of the PC, as you would if you were using the pc-ble-driver. Therefore, any changes to the BLE functionality will require the dongle&amp;#39;s FW to be updated. The FW does not have to be based on the Central UART, but I think this sample is the Bluetooth sample that most closely resembles your use case with the relaying of BLE data to the COM port.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/sdk_nrf5_v17.1.0/page/lib_dfu_trigger_usb.html"&gt;DFU Trigger Library (USB)&lt;/a&gt;&amp;nbsp;(Note: this has not been ported to the nRF Connect SDK) can be used to force the dongle into DFU mode without physical access to the device. When in DFU mode, you can use the &amp;#39;nrfutil&amp;#39; tool from the command line to perform the DFU.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using custom BLE image on nRF52840 Dongle with Softdevice API on PC?</title><link>https://devzone.nordicsemi.com/thread/487790?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 15:55:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a09aa467-16c9-4390-bb50-ab06319c59b0</guid><dc:creator>Andreas Schurz</dc:creator><description>&lt;p&gt;Ok. Thanks so far. This solution should be used in production later on. So pc-ble-driver is NO option then.&lt;/p&gt;
&lt;p&gt;So what I understood is then:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;We will have to create our own implementation based on the Central UART example for the Dongle bei either using new (VS Code) or old (SEGGER) SDK&lt;/li&gt;
&lt;li&gt;It is not possible to change just a Windows EXE on the PC in order to fully change the Dongle BLE implementation&lt;/li&gt;
&lt;li&gt;We can reprogram it via DFU - so basically deploy the HEX or DFU.zip&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Questions:&lt;/p&gt;
&lt;p&gt;Did I get it right?&lt;/p&gt;
&lt;p&gt;So the basic assumption from my system architect was that we can implement the complete Nordic BLE functionality in a windows exe without touching the Dongle implentation (no flashing and no-reprogramming). There would be an intial image and all updating in terms of Dongle functionality would be done by changing the windows exe.&lt;/p&gt;
&lt;p&gt;In case this is not possible: can the re-programming then be automated, e. g. by using the command line while the dongle is connected. Idea here is to rollout images on a large number of PC-Based self-service machines all across the country and update the BLE implementation if needed. The Dongle will be plugged in all the time so the flash must be triggered remotely while the Dongle is connected. There is no one around who could replug the Dongle...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using custom BLE image on nRF52840 Dongle with Softdevice API on PC?</title><link>https://devzone.nordicsemi.com/thread/487728?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 12:38:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cd731ee-c25b-44b9-ba96-6fed64346fc3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I would not recommend using the pc-ble-driver for production, but it should be fine for testing purposes. In that case, the UART client sample should be a good starting point (&lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver/tree/master/examples/nordic_uart_client"&gt;https://github.com/NordicSemiconductor/pc-ble-driver/tree/master/examples/nordic_uart_client&lt;/a&gt;)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You mention not wanting to re-flash the dongle, but would it be ok to re-program with DFU over USB? This can be performed without user intervention after they have plugged in the dongle and enable you to use a FW based on the nRF Connect SDK (see&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/getting-started/posts/nrf52840-dongle-programming-tutorial"&gt;nRF52840 Dongle Programming Tutorial&lt;/a&gt;).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I posted a modified version of the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/central_uart/README.html"&gt;Central UART&lt;/a&gt;&amp;nbsp;sample that works with the nRF52840 Dongle here:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/110322/device-tree-proj-conf-and-strange-uart-behaviour/479429"&gt;RE: Device Tree, proj.conf and strange uart behaviour&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This can be modified to use a custom GATT Client for your service and to support multiple connections.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>