<?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>Enabling authentication before connecting to DFU service from nRF master control panel/toolbox app?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10234/enabling-authentication-before-connecting-to-dfu-service-from-nrf-master-control-panel-toolbox-app</link><description>On the dfu bootloader example given on nrf51 SDK 8.1.0, how can I enable the pairing before connecting to it using the nRF toolbox Android app?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 16 Nov 2015 08:06:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10234/enabling-authentication-before-connecting-to-dfu-service-from-nrf-master-control-panel-toolbox-app" /><item><title>RE: Enabling authentication before connecting to DFU service from nRF master control panel/toolbox app?</title><link>https://devzone.nordicsemi.com/thread/37999?ContentTypeID=1</link><pubDate>Mon, 16 Nov 2015 08:06:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55f54940-a3e1-480e-8c80-05993cdcd35d</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;It is not possible to do pairing while in DFU mode in the current SDK bootloader example because it does not implement handling of pairing requests (&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk51.v10.0.0/lib_device_manager.html?cp=4_1_0_3_1_2"&gt;Device manager&lt;/a&gt;). Support for pairing/bonding can be implemented as @shibshab mentioned, but it would likely require you to allocate more flash space for the bootloader.&lt;/p&gt;
&lt;p&gt;Instead of implementing this in the bootlaoder, I think it&amp;#39;s better to use the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk51.v10.0.0/bledfu_appbonding.html?cp=4_1_0_4_3_1_2_3"&gt;bond sharing&lt;/a&gt; in your application. You can then change the security requirements in you application to make pairing a requirement to perform butonless DFU.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling authentication before connecting to DFU service from nRF master control panel/toolbox app?</title><link>https://devzone.nordicsemi.com/thread/37998?ContentTypeID=1</link><pubDate>Mon, 16 Nov 2015 07:01:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76c1f260-c2a9-4f60-bc02-408b4449435e</guid><dc:creator>shibshab</dc:creator><description>&lt;p&gt;You can modify the permissions of the characteristics that make out the DFU service to require pairing. This will trigger the appropriate security procedures, which you need to add handling to. See &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s130.api.v1.0.0%2Fgroup___b_l_e___g_a_p___p_e_r_i_p_h___p_a_i_r_i_n_g___j_w___m_s_c.html&amp;amp;cp=2_7_2_1_0_2_1_0_5"&gt;this&lt;/a&gt; message sequence chart.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure about the nRF toolbox android app. It depends on whether the android BLE API will automatically perform the required security procedures (which I assume it will).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>