<?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>Bonding Question</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16368/bonding-question</link><description>Hello, 
 I&amp;#39;m implementing bonding feature on nRF52 with SDK_0.9.2.
I found a tutorial which is devzone.nordicsemi.com/.../ .
I followed this tutorial and then tried to implement on hrs example. then I realized that hrs example already implemented bonding</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Sep 2016 12:06:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16368/bonding-question" /><item><title>RE: Bonding Question</title><link>https://devzone.nordicsemi.com/thread/62642?ContentTypeID=1</link><pubDate>Wed, 14 Sep 2016 12:06:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cd68e63-6414-4011-b333-c9f0806eb794</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;No problem :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding Question</title><link>https://devzone.nordicsemi.com/thread/62641?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2016 22:11:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fa32f6d-1889-436f-bdd3-7aa80da795b7</guid><dc:creator>Mich</dc:creator><description>&lt;p&gt;Hi Petter,&lt;/p&gt;
&lt;p&gt;Thanks for your reply. Yes, I&amp;#39;m using PCA10036. The reason I used SDK 0.9.2 is because I wanted to try the bonding example.
I have tried BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM. With this one, I can still see the raw data on my sniffer. Maybe it&amp;#39;s just because my sniffer can interpret it since it listens from the beginning. I&amp;#39;ll try BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM next time....&lt;/p&gt;
&lt;p&gt;Mich.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding Question</title><link>https://devzone.nordicsemi.com/thread/62640?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2016 13:55:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:450d82e7-3d06-454f-92d1-fcc6f7e23e39</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Why are you using SDK 0.9.2? Do you have preview development kit? PCA10036? ble_app_hrs supports bonding yes, but the accessing the CCCD of the heart rate characteristic doesn&amp;#39;t require the link to be encrypted. If you can see the data on the sniffer there are two possibilites, you haven&amp;#39;t bonded, so the link is not encrypted, or the sniffer sniffed the pairing process and got the encryption keys.&lt;/p&gt;
&lt;p&gt;If you want the CCCD to require the link to be encrypted you can change this in services_init(). Change BLE_GAP_CONN_SEC_MODE_SET_OPEN(&amp;amp;hrs_init.hrs_hrm_attr_md.cccd_write_perm); to&lt;/p&gt;
&lt;p&gt;BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM(&amp;amp;hrs_init.hrs_hrm_attr_md.cccd_write_perm); only require Just Works pairing to access the CCCD.&lt;/p&gt;
&lt;p&gt;or&lt;/p&gt;
&lt;p&gt;BLE_GAP_CONN_SEC_MODE_SET_ENC_WITH_MITM(&amp;amp;hrs_init.hrs_hrm_attr_md.cccd_write_perm); requre Passkey Entry or OOB pairing to access the CCCD.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>