<?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 BLE with bonding is unsuccessful</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44287/dfu-ble-with-bonding-is-unsuccessful</link><description>Hi all 
 nrf52840 Development board,sdk is nRF5_SDK_15.2.0_9412b96 ,PC is windows 10 .My testing master device is cell phone(Huawei HTC and so on,android system),and using &amp;quot;nrf connect &amp;quot;APP and &amp;quot;nrf toolbox&amp;quot; APP. 
 The dfu will stop in bootloader when</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 Mar 2019 14:52:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44287/dfu-ble-with-bonding-is-unsuccessful" /><item><title>RE: DFU BLE with bonding is unsuccessful</title><link>https://devzone.nordicsemi.com/thread/174053?ContentTypeID=1</link><pubDate>Mon, 04 Mar 2019 14:52:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f334d69-bbb1-483a-a84b-3594f948f89f</guid><dc:creator>Edvin</dc:creator><description>[quote user="mijiale"]However,the bonds information must be stored because it&amp;#39;s not a good experience to pair up every time when users update firmware.[/quote]
&lt;p&gt;&amp;nbsp;Of course not. But it may be that bonding information from another application was stored on the phone, but you have erased the bonding on the nRF while reprogramming it. Bonding information will not be deleted during the DFU update, so this is not something that will happen out in the field, but may happen when developing.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Another question:&lt;/p&gt;
&lt;p&gt;Is this application (buttonless dfu) running on your DK? Did you program it together with the bootloader_settings page? Or are you trying to update from a blank chip only containing a bootloader?&lt;/p&gt;
&lt;p&gt;That is, what are you connected to? The bootloader or the application?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU BLE with bonding is unsuccessful</title><link>https://devzone.nordicsemi.com/thread/173958?ContentTypeID=1</link><pubDate>Mon, 04 Mar 2019 12:25:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b86a0b0f-3233-4de3-bda6-df5add166faf</guid><dc:creator>mijiale</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;I haven&amp;#39;t changed anything inside ble_dfu_bonded.c&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;uint32_t ble_dfu_buttonless_char_add(ble_dfu_buttonless_t * p_dfu)
{
    ble_add_char_params_t add_char_params;

    memset(&amp;amp;add_char_params, 0, sizeof(add_char_params));
    add_char_params.uuid                = BLE_DFU_BUTTONLESS_BONDED_CHAR_UUID;
    add_char_params.uuid_type           = p_dfu-&amp;gt;uuid_type;
    add_char_params.char_props.indicate = 1;
    add_char_params.char_props.write    = 1;
    add_char_params.is_defered_write    = true;
    add_char_params.is_var_len          = true;
    add_char_params.max_len             = BLE_GATT_ATT_MTU_DEFAULT;

    add_char_params.cccd_write_access = SEC_JUST_WORKS;
    add_char_params.write_access      = SEC_JUST_WORKS;
    add_char_params.read_access       = SEC_OPEN;

    return characteristic_add(p_dfu-&amp;gt;service_handle, &amp;amp;add_char_params, &amp;amp;p_dfu-&amp;gt;control_point_char);
}
&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;The SDK version is 15.2.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;If I erase the bonds from my phone and the nRF,it needs serval times to try to update my firmware and it can success.&lt;/span&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;However,the bonds information must be stored because it&amp;#39;s not a good experience to pair up every time when users update firmware.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;span style="background-color:#ffffff;"&gt;Best regards,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;span style="background-color:#ffffff;"&gt;mijiale&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU BLE with bonding is unsuccessful</title><link>https://devzone.nordicsemi.com/thread/173947?ContentTypeID=1</link><pubDate>Mon, 04 Mar 2019 11:51:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b5ac38c-3526-4345-8765-c194a7a161b0</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I see. Have you changed anything inside ble_dfu_bonded.c? Especially in ble_dfu_buttonless_char_add(ble_dfu_buttonless_t * p_dfu):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;uint32_t ble_dfu_buttonless_char_add(ble_dfu_buttonless_t * p_dfu)
{
    ble_add_char_params_t add_char_params;

    memset(&amp;amp;add_char_params, 0, sizeof(add_char_params));
    add_char_params.uuid                = BLE_DFU_BUTTONLESS_BONDED_CHAR_UUID;
    add_char_params.uuid_type           = p_dfu-&amp;gt;uuid_type;
    add_char_params.char_props.indicate = 1;
    add_char_params.char_props.write    = 1;
    add_char_params.is_defered_write    = true;
    add_char_params.is_var_len          = true;
    add_char_params.max_len             = BLE_GATT_ATT_MTU_DEFAULT;

    add_char_params.cccd_write_access = SEC_JUST_WORKS;
    add_char_params.write_access      = SEC_JUST_WORKS;
    add_char_params.read_access       = SEC_OPEN;

    return characteristic_add(p_dfu-&amp;gt;service_handle, &amp;amp;add_char_params, &amp;amp;p_dfu-&amp;gt;control_point_char);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;What are your add_char_params.write_access and add_char_params.cccd_write_access?&lt;/p&gt;
&lt;p&gt;What SDK version do you use?&lt;/p&gt;
&lt;p&gt;Can you try to erase the bonds from your phone and the nRF (nrfjprog -e) and try again? Maybe there are some issues with bonding information being stored from an old application on the same chip?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU BLE with bonding is unsuccessful</title><link>https://devzone.nordicsemi.com/thread/173834?ContentTypeID=1</link><pubDate>Sun, 03 Mar 2019 14:27:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39db80b1-3473-44ca-b859-22addbb2a4a6</guid><dc:creator>mijiale</dc:creator><description>&lt;p style="color:#11171a;font-style:normal;font-weight:400;letter-spacing:normal;line-height:1.5em;margin:0px 0px 0.65em;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;Hi Edvin,&lt;/p&gt;
&lt;p style="color:#11171a;font-style:normal;font-weight:400;letter-spacing:normal;line-height:1.5em;margin:0px 0px 0.65em;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;&lt;span style="background-color:#ffffff;"&gt;Thank you very much for your reply.&lt;span&gt;I&amp;#39;m sorry I didn&amp;#39;t describe it very clearly.&lt;/span&gt;&amp;nbsp;&lt;span&gt;I am very clear about the upgrade process.&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="color:#11171a;font-style:normal;font-weight:400;letter-spacing:normal;line-height:1.5em;margin:0px 0px 0.65em;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;span class="high-light-bg"&gt;A few points need to be explained.&lt;/span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p style="color:#11171a;font-style:normal;font-weight:400;letter-spacing:normal;line-height:1.5em;margin:0px 0px 0.65em;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;&lt;span style="background-color:#ffffff;"&gt;First,&lt;span&gt;I have implemented this upgrade process in unbonding mode and there is n&lt;span class="high-light-bg"&gt;o problem at all.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="color:#11171a;font-style:normal;font-weight:400;letter-spacing:normal;line-height:1.5em;margin:0px 0px 0.65em;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;span&gt;&lt;span class="high-light-bg"&gt;Second,I have problems about upgrade process in bonding mode and I think I&amp;#39;m following the designated steps,but&amp;nbsp;the DFU doesn&amp;#39;t work&amp;nbsp;even if I use official examples for testing which is &amp;quot;&lt;span style="background-color:#ffffff;color:#000111;"&gt;&lt;span style="font-family:Verdana;"&gt;sd_s140_bootloader_buttonless_with_setting_page_dfu_secure_ble_debug_with_bonds.hex&lt;/span&gt;&lt;/span&gt;&amp;quot;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="color:#11171a;font-style:normal;font-weight:400;letter-spacing:normal;line-height:1.5em;margin:0px 0px 0.65em;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;span&gt;&lt;span class="high-light-bg"&gt;Third,The error will happen when I use cell phone to test the DFU(bonding mode).However there is no problem when I use PC to test the DFU (bonding mode)with &amp;quot;nrf connect&amp;quot;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="color:#11171a;font-style:normal;font-weight:400;letter-spacing:normal;line-height:1.5em;margin:0px 0px 0.65em;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;span&gt;&lt;span class="high-light-bg"&gt;I don&amp;#39;t know if I&amp;#39;ve made it clear enough. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="color:#11171a;font-style:normal;font-weight:400;letter-spacing:normal;line-height:1.5em;margin:0px 0px 0.65em;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;span&gt;&lt;span class="high-light-bg"&gt;The logs are as follows :&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="color:#11171a;font-style:normal;font-weight:400;letter-spacing:normal;line-height:1.5em;margin:0px 0px 0.65em;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1551622720779v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p style="color:#11171a;font-style:normal;font-weight:400;letter-spacing:normal;line-height:1.5em;margin:0px 0px 0.65em;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1551622743931v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU BLE with bonding is unsuccessful</title><link>https://devzone.nordicsemi.com/thread/173726?ContentTypeID=1</link><pubDate>Fri, 01 Mar 2019 13:56:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a66718d-81c5-4d80-9f94-11ba64f5339e</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It sounds like you are trying to perform a DFU to a device with a bootloader that requires bonding, without being bonded. Is that correct?&lt;/p&gt;
&lt;p&gt;If you are new to the nRF bootloader, may I suggest you start with this guide on how to set up and perform the DFU:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader"&gt;https://devzone.nordicsemi.com/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>