<?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>is there any example about android to bond the ble device ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/3818/is-there-any-example-about-android-to-bond-the-ble-device</link><description>Hi experts, 
 I&amp;#39;m trying to bond device between my android phone and the Nordidc51822(S110 v7.0). but I found that it&amp;#39;s very difficult to achieve this function. Is there any android&amp;#39;s API to use in bonding? Is there any document to tell about bonding</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Oct 2014 08:56:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/3818/is-there-any-example-about-android-to-bond-the-ble-device" /><item><title>RE: is there any example about android to bond the ble device ?</title><link>https://devzone.nordicsemi.com/thread/13790?ContentTypeID=1</link><pubDate>Wed, 15 Oct 2014 08:56:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84b78547-44a4-4d2a-8000-5d4c50948da0</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Soft Manager? Do you mean Device Manager? Please see &lt;a href="https://devzone.nordicsemi.com/question/7407/bond-manager-or-device-manager/"&gt;&lt;strong&gt;this&lt;/strong&gt;&lt;/a&gt; question. If you have more questions, I suggest you add them separately. I would also appreciate if you could accept my answer by clicking the grey circle with a check mark, if you feel it answers your question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: is there any example about android to bond the ble device ?</title><link>https://devzone.nordicsemi.com/thread/13789?ContentTypeID=1</link><pubDate>Wed, 15 Oct 2014 01:05:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:594c304f-04b5-47ba-b564-86b3c22e5723</guid><dc:creator>long</dc:creator><description>&lt;p&gt;First thank you very much, your answer is very useful. but I&amp;#39;m still confused what the Nordic51822 should do when bonding. I found the Bond Manager had been changed to Soft Manager since S110 V7.0. Is there any applicantion note I can  reference ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: is there any example about android to bond the ble device ?</title><link>https://devzone.nordicsemi.com/thread/13788?ContentTypeID=1</link><pubDate>Wed, 01 Oct 2014 13:39:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8088ded1-5c31-4901-aa35-4e9e942f7527</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;The &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Core_5F00_v4.1.pdf"&gt;Bluetooth Specification 4.1&lt;/a&gt; explains bonding, see Vol. 3, Part C, Section 9.4 and Part H, Section 2.4.1. There is a couple of BLE books available, &lt;a href="http://www.amazon.com/Bluetooth-Low-Energy-Developers-Handbook/dp/013288836X"&gt;this&lt;/a&gt; and &lt;a href="http://www.amazon.com/Getting-Started-Bluetooth-Low-Energy/dp/1491949511/ref=sr_1_1?ie=UTF8&amp;amp;qid=1412167854&amp;amp;sr=8-1&amp;amp;keywords=Getting+Started+with+Bluetooth+Low+Energy"&gt;this&lt;/a&gt;. In addition, there are some training videos &lt;a href="https://developer.bluetooth.org/DevelopmentResources/Pages/Training-Videos.aspx"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;On Android API level 19 and above I believe you can use &lt;code&gt;public boolean createBond ()&lt;/code&gt;, see &lt;a href="http://developer.android.com/reference/android/bluetooth/BluetoothDevice.html#createBond%28%29"&gt;this&lt;/a&gt;, but I haven&amp;#39;t tested this myself.&lt;/p&gt;
&lt;p&gt;On lower API levels bonding must be triggered by accesing a characteristic that requires the link to be encrypted. The link requirement can be set with:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM(&amp;amp;attr_md.read_perm);
BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM(&amp;amp;attr_md.write_perm);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This corresponds to&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Security Mode 1 Level 2: Encrypted link required, MITM protection not necessary.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;See the &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Core_5F00_v4.1.pdf"&gt;Bluetooth Specification 4.1&lt;/a&gt;, Vol. 3, Part C, Section 10.2 for more information.&lt;/p&gt;
&lt;p&gt;The Glucose Meter example in our SDK uses  &lt;code&gt;BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM(&amp;amp;attr_md.read_perm);&lt;/code&gt;, please examine &lt;code&gt;glucose_feature_char_add(...)&lt;/code&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>