<?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>dfu removes bonds</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47864/dfu-removes-bonds</link><description>Hello, 
 
 I am using secure dfu with bonds (SDKv15.3, Segger, nrF52832), it works fine however after each dfu (application only) I lose the bond information. 
 
 I have search about it and found that there are several variables that can affect to it</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 31 Jul 2019 15:32:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47864/dfu-removes-bonds" /><item><title>RE: dfu removes bonds</title><link>https://devzone.nordicsemi.com/thread/201668?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2019 15:32:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fafb6959-f2a2-43db-9092-39e4ee048c6e</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;If the nRF device has issued a Service Changed Indication and the Android device is not performing a new Service Discovery then Yes I would say it is a phone issue. No, not really, the Android DFU library which is used by nRF Connect&amp;nbsp; will&amp;nbsp;try to refresh the cache if it cannot find the DFU service at the location it expects it to be in the GATT table.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dfu removes bonds</title><link>https://devzone.nordicsemi.com/thread/201036?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2019 15:11:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:882c692b-62c1-4139-a15f-7b712c0e2ec5</guid><dc:creator>Carlos</dc:creator><description>&lt;p&gt;Thank you Bjorn,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Do you mean that this is a phone issue? I checked several Android phones and all have same issue.&lt;/p&gt;
&lt;p&gt;If this is the case, it should happen to everybody using DFU with bonds, do you have any other claim about it?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regading HID, I am not sure about the meaning, but I guess no, I am usin Nordic Android App nRF Toolbox / nRf Connect.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dfu removes bonds</title><link>https://devzone.nordicsemi.com/thread/199965?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2019 09:12:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:578f6b73-8416-4ecc-94c9-b4781c40361f</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;HI Carlos,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I apologize for the late reply. I have been on vacation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I took another look at the sniffer trace you attached in case &lt;a href="https://devzone.nordicsemi.com/support-private/support/229977"&gt;229977&lt;/a&gt;&amp;nbsp;(&lt;a href="https://devzone.nordicsemi.com/support-private/support/229977"&gt;https://devzone.nordicsemi.com/support-private/support/229977&lt;/a&gt;) and I see that after the DFU completes the nRF device is issuing a Service Changed notification that is confirmed by the central. So the GATT table on the phone should be up to date at that point.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-6c2f16c7b9b841b0affa0106d81aedfe/pastedimage1563872743337v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The issue in in case 39184 was related to HID reports not being available to a custom application due to these being controlled by the&amp;nbsp;&lt;span&gt;Android Settings App. are you using HID in your application?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dfu removes bonds</title><link>https://devzone.nordicsemi.com/thread/196917?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2019 23:00:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae987a85-ceb9-4f59-81e1-af30e601b2d1</guid><dc:creator>Carlos</dc:creator><description>&lt;p&gt;Thank you Bjorn&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Since its been a long time and if you only read the last question I guess you may lose the background I made a short summary.&lt;/p&gt;
&lt;p&gt;The DFU with bonds is working fine, so yes&amp;nbsp;&lt;span&gt;NRF_DFU_BLE_REQUIRES_BONDS&amp;nbsp;and&amp;nbsp;NRF_DFU_BLE_BUTTONLESS_SUPPORTS_BONDS are set to 1.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regarding&amp;nbsp;&lt;span&gt;NRF_SDH_BLE_SERVICE_CHANGED, yes it is set to 1 in both, as I already wrote above.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;And also I provided you full logs and traces.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So the issue is why service cache refresh is needed?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I guess it may be related to Android as states in what I think is a similar issue:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/39184/refreshing-cached-services-on-bonded-peer-after-dfu"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/39184/refreshing-cached-services-on-bonded-peer-after-dfu&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Can you please confirm it is same? And do you have any news about how to fix it or if Google will fix it (if I understood well it seems an Android issue)?&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dfu removes bonds</title><link>https://devzone.nordicsemi.com/thread/196858?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2019 13:34:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1bd04aa-21ad-4a64-a7e9-ae57f9b12f86</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;If&amp;nbsp;&lt;span&gt;NRF_SDH_BLE_SERVICE_CHANGED is set to 1 in both the bootloader and application, then the bootloader should issue a Service Changed notification.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Did you compile the bootloader with&amp;nbsp;NRF_DFU_BLE_REQUIRES_BONDS set to 1 in the bootloader&amp;#39;s sdk_config.h file and did you compile your application with NRF_DFU_BLE_BUTTONLESS_SUPPORTS_BONDS set to 1 in the application&amp;#39;s sdk_config.h file?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dfu removes bonds</title><link>https://devzone.nordicsemi.com/thread/194731?ContentTypeID=1</link><pubDate>Tue, 25 Jun 2019 21:35:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc8bc0b3-1086-4e1f-a10b-1ff8a30d2c86</guid><dc:creator>Carlos</dc:creator><description>&lt;p&gt;Regarding my last question below:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;Can you please tell me a bit more...&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;Is this expected behavior or is it due to I miss something in my code?&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is is there any advice?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dfu removes bonds</title><link>https://devzone.nordicsemi.com/thread/191890?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2019 21:23:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33944926-3698-4b0e-a3ab-ae01a1f888eb</guid><dc:creator>Carlos</dc:creator><description>&lt;p&gt;Thank you Bjorn,&lt;/p&gt;
&lt;p&gt;regarding you questions;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;gt;&amp;gt;Does the DFU update increase or modify the GATT table of the application compared to the application &amp;gt;&amp;gt;that was replaced? OItherwise,the GATT attribute table handles should be the same as before the &amp;gt;&amp;gt;DFU.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;No, application is exactly same before and after because dfu, after compile I generate hex and app_package. I write hex files in the board and then I update app to the same version, so no change in the application.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;gt;&amp;gt;Can you check if the&amp;nbsp;NRF_SDH_BLE_SERVICE_CHANGED define in sdk_config.h is set in the &amp;gt;&amp;gt;bootloader project? Could you also check if this is set in the applicaiton as well?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Yes, it is defined on both application and bootloader.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;gt;&amp;gt;We do have a &amp;quot;refresh device cache&amp;quot; feature in nRF Connect. Connect to the device, then press the &amp;gt;&amp;gt;three vertical dots in the upper-right corner and then press &amp;quot;R&lt;/span&gt;&lt;span&gt;efresh device cache&amp;quot;. Does the Android &amp;gt;&amp;gt;device perform a new service discovery and display the services and characteristics after doing this?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;And here comes the good news, by doing &amp;#39;refresh services&amp;#39; when fRF is connected or &amp;#39;refresh device cache&amp;#39; when it is disconnected and the connect it all services appear again and it work normally.&lt;/p&gt;
&lt;p&gt;The option name in nRF Connect changes when it is connected or disconnected but it seems to have same effect.&lt;/p&gt;
&lt;p&gt;Can you please tell me a bit more about this option and how would it be possible to make it work without the user need to do this refresh?&lt;/p&gt;
&lt;p&gt;Is this expected behavior or is it due to I miss something in my code?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dfu removes bonds</title><link>https://devzone.nordicsemi.com/thread/191811?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2019 10:49:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a89925ad-cd5f-47df-97cb-b5d5a76434df</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Carlos,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Looking at the sniffer trace and the last connection I cannot see anything wrong with regards to the reencryption using the bonding data( i.e. stored encryption key). The link layer packets(i.e. LL_ENC_REQ/RSP, LL_START_ENC_REQ/RSP) are all send in the correct order and the parameters look good.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-6c2f16c7b9b841b0affa0106d81aedfe/pastedimage1560162804867v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;So the bonding data must be preserved during the DFU otherwise you should have gotten a LL_REJECT_IND or LL_REJECT_EXT_IND packet in return.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The sniffer trace does not show any LL activity nor ATT activity after the link is encrypted. If the nRF device was bonded with the Android device, then it should have cached the GATT table of the application. However, it could be that you simply have to update the GATT attribute&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Does the DFU update increase or modify the GATT table of the application compared to the application that was replaced? OItherwise,the GATT attribute table handles should be the same as before the DFU.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you check if the&amp;nbsp;NRF_SDH_BLE_SERVICE_CHANGED define in sdk_config.h is set in the bootloader project? Could you also check if this is set in the applicaiton as well?&lt;/p&gt;
&lt;p&gt;We do have a &amp;quot;refresh device cache&amp;quot; feature in nRF Connect. Connect to the device, then press the three vertical dots in the upper-right corner and then press &amp;quot;R&lt;span&gt;efresh device cache&amp;quot;. Does the Android device perform a new service discovery and display the services and characteristics after doing this?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Bjørn&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dfu removes bonds</title><link>https://devzone.nordicsemi.com/thread/191203?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2019 22:21:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13ce3755-a0a3-4282-8c11-8838ae3141c7</guid><dc:creator>Carlos</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I uploaded full sniffer for all proces normal condition, dfu and post-dfu normal condition&amp;nbsp;&lt;span&gt;on private case:&amp;nbsp;&lt;/span&gt;&lt;span&gt;Case ID: 229977&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I hope you can have a look and help me to fix the issue.&lt;/p&gt;
&lt;p&gt;Here I paste the log from the board corresponding to the sniffer trace&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;**********First launch of phone app and nRf board, fails to bond*****************&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x10&lt;br /&gt;&amp;lt;info&amp;gt; app: Connected&lt;br /&gt;&amp;lt;info&amp;gt; peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Encryption, error: 4102&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x14&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x13&lt;br /&gt;&amp;lt;info&amp;gt; peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Bonding, error: 132&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x19&lt;br /&gt;&amp;lt;info&amp;gt; app: BLE_GAP_EVT_AUTH_STATUS: status=0x84 bond=0x0 lv4: 0 kdist_own:0x0 kdist_peer:0x0&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x12&lt;br /&gt;&amp;lt;info&amp;gt; app: Fast advertising.&lt;br /&gt;&amp;lt;info&amp;gt; app: PLX on_disconnect&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x11&lt;br /&gt;&amp;lt;info&amp;gt; app: Disconnected, reason 0x13.&lt;br /&gt;&amp;lt;info&amp;gt; app: Disconnected, reason BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Switch off and on nRF board&lt;br /&gt;**********Second launch of phone app and nRf board, everything goes fine, all sucessive uses works fine always from this point*****************&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x10&lt;br /&gt;&amp;lt;info&amp;gt; app: Connected&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x12&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x12&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x13&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x12&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x1A&lt;br /&gt;&amp;lt;info&amp;gt; peer_manager_handler: Connection secured: role: Peripheral, conn_handle: 0, procedure: Bonding&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x19&lt;br /&gt;&amp;lt;info&amp;gt; app: BLE_GAP_EVT_AUTH_STATUS: status=0x0 bond=0x1 lv4: 0 kdist_own:0x3 kdist_peer:0x3&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x35&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x36&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x50&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x53&lt;br /&gt;&amp;lt;info&amp;gt; app: Fast advertising.&lt;br /&gt;&amp;lt;info&amp;gt; app: PLX on_disconnect&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x11&lt;br /&gt;&amp;lt;info&amp;gt; app: Disconnected, reason 0x13.&lt;br /&gt;&amp;lt;info&amp;gt; app: Disconnected, reason BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Switch off and on nRF board&lt;br /&gt;**********Second launch of phone app and nRf board, everything goes fine*****************&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x10&lt;br /&gt;&amp;lt;info&amp;gt; app: Connected&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x14&lt;br /&gt;&amp;lt;info&amp;gt; peer_manager_handler: Connection secured: role: Peripheral, conn_handle: 0, procedure: Encryption&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x1A&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x50&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x53&lt;br /&gt;&amp;lt;info&amp;gt; app: Fast advertising.&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x11&lt;br /&gt;&amp;lt;info&amp;gt; app: Disconnected, reason 0x13.&lt;br /&gt;&amp;lt;info&amp;gt; app: Disconnected, reason BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Switch off and on nRF board&lt;br /&gt;**********Made secure dfu bonded to the same application, everything goes fine*****************&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x10&lt;br /&gt;&amp;lt;info&amp;gt; app: Connected&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x14&lt;br /&gt;&amp;lt;info&amp;gt; peer_manager_handler: Connection secured: role: Peripheral, conn_handle: 0, procedure: Encryption&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x1A&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x50&lt;br /&gt;&amp;lt;info&amp;gt; app: Received indication state 1&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x50&lt;br /&gt;&amp;lt;info&amp;gt; app: Writing peer data to the bootloader...&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x51&lt;br /&gt;&amp;lt;info&amp;gt; app: Device is preparing to enter bootload&amp;atilde;[info&amp;gt; app: Device is preparing to enter bootloader mode.&lt;br /&gt;&amp;lt;info&amp;gt; app: Disconnected 1 links.&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x53&lt;br /&gt;&amp;lt;info&amp;gt; app: Device will enter bootloader mode.&lt;br /&gt;&amp;lt;info&amp;gt; pwr_mgmt: Shutdown request 2&lt;br /&gt;&amp;lt;info&amp;gt; pwr_mgmt: Shutdown started. Type 2&lt;br /&gt;&amp;lt;info&amp;gt; app: Power management wants to reset to DFU mode.&lt;br /&gt;&amp;lt;info&amp;gt; app: Power management allowed to reset to DFU mode.&lt;br /&gt;&amp;lt;info&amp;gt; pwr_mgmt: SysOff handler 0x0002C405 =&amp;gt; ready&lt;br /&gt;&amp;lt;info&amp;gt; pwr_mgmt: Shutdown complete.&lt;br /&gt;&amp;lt;info&amp;gt; pwr_mgmt: NVIC_SystemReset&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;**********First start after DFU, connects to phone but no services are displayed. From this point all sucesive trials are same until we remove bonds on both phone and nRF and then we go to step1 and we got the system working fine forever (till next dfu)*****************&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x10&lt;br /&gt;&amp;lt;info&amp;gt; app: Connected&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x54&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x14&lt;br /&gt;&amp;lt;info&amp;gt; peer_manager_handler: Connection secured: role: Peripheral, conn_handle: 0, procedure: Encryption&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x1A&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x12&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dfu removes bonds</title><link>https://devzone.nordicsemi.com/thread/191092?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2019 12:10:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c50f8bf8-8e33-4546-a889-67bb6ddd8e43</guid><dc:creator>Carlos</dc:creator><description>&lt;p&gt;I will try to get full sniffer, before dfu (bond and normal operation) -&amp;gt; dfu -&amp;gt; normal operation after dfu (mobile app reports &amp;#39;cannot subscribe to event&amp;#39; and if I check with nRF connect I can connect but cannot see any service like bas, dis, dfu...).&lt;/p&gt;
&lt;p&gt;Would it help&amp;nbsp; this trace or do you already have an idea to check? Please tell me how to proceeed. I guess issue is related with service change... but learning and understanding the full SDK is hard without your support.&lt;/p&gt;
&lt;p&gt;Thks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dfu removes bonds</title><link>https://devzone.nordicsemi.com/thread/190593?ContentTypeID=1</link><pubDate>Mon, 03 Jun 2019 15:27:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18f3f98f-c3e1-4c09-bb52-46d100eb486f</guid><dc:creator>Carlos</dc:creator><description>&lt;p&gt;Sorry, may be my explanation was not&amp;nbsp;precise, I can connect but cannot see services that are SEC_JUST_WORKS after the dfu.&lt;/p&gt;
&lt;p&gt;The only way to see again the resources is to remove bonds on all sides (phone and nRf) and connect again.&lt;/p&gt;
&lt;p&gt;I guess is similar issue as stated in:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/36346/a-problem-on-buttonless-dfu-bonding-valid"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/36346/a-problem-on-buttonless-dfu-bonding-valid&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;That after dfu resources are lost and only way to see them again is to remove bonds.&lt;/p&gt;
&lt;p&gt;Thks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dfu removes bonds</title><link>https://devzone.nordicsemi.com/thread/190580?ContentTypeID=1</link><pubDate>Mon, 03 Jun 2019 14:59:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e2e7e71-4138-4fe1-8411-f7c3a0ec5d34</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Looking up the event IDs from the debug log:&lt;/p&gt;
&lt;p&gt;Event ID 0x10 =&amp;nbsp;BLE_GAP_EVT_CONNECTED&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Event ID 0x12 =&amp;nbsp;&lt;/span&gt;BLE_GAP_EVT_CONN_PARAM_UPDATE/**&amp;lt; Connection Parameters updated.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Event ID 0x14 =&amp;nbsp;&lt;/span&gt;BLE_GAP_EVT_SEC_INFO_REQUEST&amp;nbsp;&amp;nbsp;/**&amp;lt; Request to provide security information.&lt;/p&gt;
&lt;p&gt;Event ID 0x1A = BLE_GAP_EVT_CONN_SEC_UPDATE&amp;nbsp;/**&amp;lt; Connection security updated.&lt;/p&gt;
&lt;p&gt;Event ID 50 =&amp;nbsp;BLE_GATTS_EVT_WRITE&amp;nbsp;/**&amp;lt; Write operation performed.&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Event ID 51 = BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST&amp;nbsp;&amp;nbsp;/**&amp;lt; Read/Write Authorization request.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Event ID 53 =&lt;/span&gt;&lt;span&gt; BLE_GATTS_EVT_HVC&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/**&amp;lt; Handle Value Confirmation.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Event ID 54&amp;nbsp;= BLE_GATTS_EVT_SC_CONFIRM&amp;nbsp;/**&amp;lt; Service Changed Confirmation.&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I cannot see anything abnormal in the sniffer trace you attached. The nRF device responding with the LL_ENC_RSP and the LL_START_ENC_REQ and after that the link is secured.&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You say that:&amp;nbsp;&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user="ca.itech"]After that only works if I delete bond on both nrf and phone...[/quote]
&lt;p&gt;Do you mean that you are not able to connect to the device again if you disconnect after this point? If so did you also capture a sniffer trace when try to reconnect?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dfu removes bonds</title><link>https://devzone.nordicsemi.com/thread/190390?ContentTypeID=1</link><pubDate>Sun, 02 Jun 2019 21:04:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79730374-6769-417e-8aad-c61980698e3b</guid><dc:creator>Carlos</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I found a similar case&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/36346/a-problem-on-buttonless-dfu-bonding-valid"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/36346/a-problem-on-buttonless-dfu-bonding-valid&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The effect I have is same as described here, however I didn&amp;#39;t change MTU size...&lt;/p&gt;
&lt;p&gt;Anyway, do you know if this issues was fixed?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;During the dfu I see this logs:&lt;/p&gt;
&lt;p&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x10&lt;br /&gt;&amp;lt;info&amp;gt; app: Connected.&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x14&lt;br /&gt;&amp;lt;info&amp;gt; peer_manager_handler: Connection secured: role: Peripheral, conn_handle: 0, procedure: Encryption&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x1A&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x50&lt;br /&gt;&amp;lt;info&amp;gt; app: Received indication state 1&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x50&lt;br /&gt;&amp;lt;info&amp;gt; app: Writing peer data to the bootloader...&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x51&lt;br /&gt;&amp;lt;info&amp;gt; app: Device is preparing to enter bootload&amp;iuml;[info&amp;gt; app: Device is preparing to enter bootloader mode.&lt;br /&gt;&amp;lt;info&amp;gt; app: Disconnected 1 links.&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x53&lt;br /&gt;&amp;lt;info&amp;gt; app: Device will enter bootloader mode.&lt;br /&gt;&amp;lt;info&amp;gt; pwr_mgmt: Shutdown request 2&lt;br /&gt;&amp;lt;info&amp;gt; pwr_mgmt: Shutdown started. Type 2&lt;br /&gt;&amp;lt;info&amp;gt; app: Power management wants to reset to DFU mode.&lt;br /&gt;&amp;lt;info&amp;gt; app: Power management allowed to reset to DFU mode.&lt;br /&gt;&amp;lt;info&amp;gt; pwr_mgmt: SysOff handler 0x0002C401 =&amp;gt; ready&lt;br /&gt;&amp;lt;info&amp;gt; pwr_mgmt: Shutdown complete.&lt;br /&gt;&amp;lt;info&amp;gt; pwr_mgmt: NVIC_SystemReset&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When I connect same phone after dfu I see this logs I print event on evt_handler(this should correspond to the sniffer I sent you):&lt;/p&gt;
&lt;p&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x10&lt;br /&gt;&amp;lt;info&amp;gt; app: Connected.&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x54&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x14&lt;br /&gt;&amp;lt;info&amp;gt; peer_manager_handler: Connection secured: role: Peripheral, conn_handle: 0, procedure: Encryption&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x1A&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler 0x12&lt;/p&gt;
&lt;p&gt;Could you look at the sniffer log?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;After that only works if I delete bond on both nrf and phone...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Carlos&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dfu removes bonds</title><link>https://devzone.nordicsemi.com/thread/189986?ContentTypeID=1</link><pubDate>Wed, 29 May 2019 21:54:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19a1bd16-78bb-42fa-b85e-15cbea5a3e1c</guid><dc:creator>Carlos</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;using nRF Connect has the same problem.&lt;/p&gt;
&lt;p&gt;I have attached the sniffer log on private case:&amp;nbsp;&lt;span&gt;Case ID: 229977&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thks,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Carlos&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dfu removes bonds</title><link>https://devzone.nordicsemi.com/thread/189944?ContentTypeID=1</link><pubDate>Wed, 29 May 2019 14:55:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6768ef8e-7056-4906-9864-875bf375bd8b</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;HI Carlos,&lt;/p&gt;
&lt;p&gt;I agree that the&amp;nbsp;&lt;span&gt;NRF_DFU_APP_DATA_AREA_SIZE&amp;nbsp; looks correct.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user=""]Can you btw tell me what is doing exactly this option and how is this setting is transfered to the secure dfu code to remove or not the bonds?[/quote]
&lt;p&gt;The &amp;quot;keep bonds&amp;quot; in the nrf Toolbox app refers to the bonding information on the Android device. No bonding data is transferred to the nRF device by the nRF Toolbox app.&lt;/p&gt;
&lt;p&gt;Could you try to use the nRF Connect app to perform the DFU instead of nRF Toolbox? Do you see the same behavior there?&lt;/p&gt;
&lt;p&gt;If you do, could you capture a sniffer trace using our &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Sniffer"&gt;nRF Sniffer&amp;nbsp;v2&lt;/a&gt;? It will make it easier to see which peer, i.e. the nRF or the Android, that does not have the correct bonding data.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>