<?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>Buttonless DFU with bonds</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99902/buttonless-dfu-with-bonds</link><description>nRF5_SDK_17.1.0 
 nRF52840DK 
 SES 5.42a 
 
 I&amp;#39;ve been comparing the ble_app_buttonless_dfu and ble_app_hrs example projects in order to be able to test out DFU with bonding and encryption enabled. I&amp;#39;ve recreated the project-folder hierarchy from the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 02 Jun 2023 14:07:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99902/buttonless-dfu-with-bonds" /><item><title>RE: Buttonless DFU with bonds</title><link>https://devzone.nordicsemi.com/thread/429039?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2023 14:07:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2124eaf-f651-4325-971b-c30aaaa70237</guid><dc:creator>kurtovic</dc:creator><description>&lt;p&gt;I ended up referencing ble_app_gls since it appeared to match more closely with my requirements (pairing and mitm with pseudo-static passkey).&lt;br /&gt;Thanks again&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU with bonds</title><link>https://devzone.nordicsemi.com/thread/428268?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 18:52:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14ea76e7-7611-41e4-8d40-4384731299e0</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Since the&amp;nbsp;ble_app_uart example doesn&amp;#39;t support peer manager/bond, so you have to include the related files for peer manager.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1685471253668v2.png" alt=" " /&gt;&lt;/p&gt;
[quote user="kurtovic"]I&amp;#39;m assuming I have to look into the ble_app_hrs example.[/quote]
&lt;p&gt;&lt;span&gt;ble_app_hrs is a good start which already includes the peer manager library.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you do need encryption (bonding) when doing DFU, set NRF_DFU_BLE_REQUIRES_BONDS to 1 for the bootloader and set NRF_DFU_BLE_BUTTONLESS_SUPPORTS_BONDS to 1 in the application.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU with bonds</title><link>https://devzone.nordicsemi.com/thread/427328?ContentTypeID=1</link><pubDate>Wed, 24 May 2023 18:36:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07cad10d-2101-4b57-b6d2-f403da731204</guid><dc:creator>kurtovic</dc:creator><description>&lt;p&gt;Thanks, following the procedure in the linked post helped me get to a point where I can compile and flash an application with buttonless DFU added in.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to incorporate bonding now, but I&amp;#39;m getting an error when I enable&amp;nbsp;NRF_DFU_BLE_REQUIRES_BONDS in the application which buttonless DFU was added into.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/0456.Untitled.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m assuming this is to be expected due to the change requiring additional code to be added. Is there an example which would be relevant to this?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is a high level overview of what I&amp;#39;m trying to accomplish:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;nrf52840 operates as peripheral and advertises&amp;nbsp;&lt;/li&gt;
&lt;li&gt;external MCU&amp;#39;s scans for, and then establishes connection to found nrf52840&amp;#39;s&lt;/li&gt;
&lt;li&gt;have some form of security to reject unauthorized central connections, and encrypt communication&lt;/li&gt;
&lt;li&gt;setup external MCU&amp;#39;s as authorized devices to connect&lt;/li&gt;
&lt;li&gt;incorporate secure DFU which only can be initiated by authorized MCU&amp;#39;s&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I&amp;#39;ve got steps 1, 2, and partially 5 working, but&amp;nbsp;would like to have everything secured. Any advice on how to achieve steps 3&amp;amp;4 would be appreciated, I&amp;#39;m assuming I have to look into the ble_app_hrs example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU with bonds</title><link>https://devzone.nordicsemi.com/thread/426659?ContentTypeID=1</link><pubDate>Mon, 22 May 2023 16:08:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abefddc2-b8fe-4283-9593-cbdb0899eb4b</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would suggest you take a look at&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/80396/nrf52-dk-failed-to-add-ble-ota-dfu-to-the-example-project-ble_app_uart/333881#333881"&gt; this post&lt;/a&gt; on how to add&amp;nbsp;&lt;span&gt;buttonless_dfu to the application.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;To enable or disable the support of bonds, modify the configuration parameters in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;sdk_config&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file. For details on editing the SDK configurations, see&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/sdk_config.html"&gt;SDK configuration header file&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;sdk_config.h&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;#ifndef NRF_DFU_BLE_REQUIRES_BONDS
#define NRF_DFU_BLE_REQUIRES_BONDS 1
#endif&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU with bonds</title><link>https://devzone.nordicsemi.com/thread/426277?ContentTypeID=1</link><pubDate>Fri, 19 May 2023 11:48:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a97c22c6-45de-4b3e-ae70-9ba4b71d6863</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am sorry, but we are short staffed this week due to Public Holidays in Norway. We will be back on Monday 22nd and hope to be able to answer all incoming requests within a couple of days, depending on the backlog. I am sorry for the inconvenience.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Best regards,&lt;/p&gt;
&lt;p&gt;Swathy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>