<?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>bounding with pc-ble-driver</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14986/bounding-with-pc-ble-driver</link><description>I&amp;#39;m using pc-ble-driver on Windows7 (from master as I&amp;#39;m using a s130v2 programmed dongle) to connect a BLE device ( developer.nordicsemi.com/.../a00053.html). 
 This device supports bounding and I could find no example explaining how this should be handled</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Jun 2017 08:00:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14986/bounding-with-pc-ble-driver" /><item><title>RE: bounding with pc-ble-driver</title><link>https://devzone.nordicsemi.com/thread/57190?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2017 08:00:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:202365d3-2443-4e17-b5be-b888a27496f1</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;@HangBui: I see you released v2.0.0 of pc-ble_driver. Is that supposed to support bounding smartly?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bounding with pc-ble-driver</title><link>https://devzone.nordicsemi.com/thread/57189?ContentTypeID=1</link><pubDate>Wed, 13 Jul 2016 13:38:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa39c0a3-e9be-42b0-9076-71e943943df5</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;@Hungbui: Done: &lt;a href="https://www.nordicsemi.com/eng/supportcase/view/30404"&gt;www.nordicsemi.com/.../30404&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bounding with pc-ble-driver</title><link>https://devzone.nordicsemi.com/thread/57188?ContentTypeID=1</link><pubDate>Wed, 13 Jul 2016 13:31:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ad2f543-d906-44ce-bb1b-3cb56fbb64b1</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@jpo: Yes, you can create one but it&amp;#39;s the same system as devzone. I talked with the developers, about the request. It doesn&amp;#39;t seem we will have something soon as we&amp;#39;re focusing on finishing the nRFConnect now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bounding with pc-ble-driver</title><link>https://devzone.nordicsemi.com/thread/57186?ContentTypeID=1</link><pubDate>Wed, 13 Jul 2016 09:28:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9212678-6676-49ff-a8a2-8f429158bd8b</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;@Hungbui: Thanks. Should I create an official support ticket (on nordicsemi.no) for &amp;quot;please add examples&amp;quot; (even if it cannot be covered for next release)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bounding with pc-ble-driver</title><link>https://devzone.nordicsemi.com/thread/57187?ContentTypeID=1</link><pubDate>Wed, 13 Jul 2016 08:30:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c75c5044-3ed3-4efa-b0e7-6456cfb030e3</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@jpo: I&amp;#39;m sorry that our resource for the pc_ble_driver is not as much as we have on the nRF5 SDK. However, you can also have a look at the nRF_Connect project &lt;a href="https://devzone.nordicsemi.com/blogs/922/nrf-connect-v10-release-candidate/"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The project uses the pc_ble_driver_js as the base. It&amp;#39;s open source, you can actually find some reference code for your project by looking at the source on github.&lt;/p&gt;
&lt;p&gt;Regarding your questions, I would suggest you to create another case to ask. Most of it related to how BLE works. There are some books covered them. I would suggest &lt;a href="http://shop.oreilly.com/product/0636920033011.do"&gt;this&lt;/a&gt; and &lt;a href="https://www.amazon.com/Bluetooth-Low-Energy-Developers-Handbook/dp/013288836X"&gt;this&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bounding with pc-ble-driver</title><link>https://devzone.nordicsemi.com/thread/57185?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2016 17:30:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8172361-3bd9-48fb-a33b-293065426c21</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;@HangBui: By the way the example should also cover many other questions I&amp;#39;ll have next (How to make keys persistent between two sessions? How to know if a device is already bonded upon search process? How to clear all bonding keys on the driver side?...)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bounding with pc-ble-driver</title><link>https://devzone.nordicsemi.com/thread/57184?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2016 17:27:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ed20552-0898-4c7f-8cd7-e4f54a2b608e</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;@HangBui: Thanks for the answer. It would be really great if you could consider adding an example for the coming release. This bonding process does not seem to be very obvious and it would really help to have a working example to adapt. I&amp;#39;m already using the driver from github (as I use s130v2). I&amp;#39;ll probably try to move to the latest version and try again. Could you provide me a link to the example doing bonding as the central (firmware team members are on vacation....I&amp;#39;m alone to try to work this out ;-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bounding with pc-ble-driver</title><link>https://devzone.nordicsemi.com/thread/57183?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2016 14:15:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b0b8668-acbd-4c45-b321-aa4cb29f6e5e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@jpo: Unfortunately we don&amp;#39;t have an example. We do have example for central device which handle bonding but it uses devicemanager/peermanager. You may need to look into those example to figure out.
In addition, I just checked with the developer, if you are using the pc-ble-driver v0.5 downloaded from our website. Bonding may not work. We had some issue with that.&lt;/p&gt;
&lt;p&gt;You may need to use the one on &lt;a href="https://github.com/NordicSemiconductor/"&gt;our github.&lt;/a&gt;
You have two option, either you compile &lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver"&gt;this&lt;/a&gt; to get the dll, or you use &lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver-py"&gt;this&lt;/a&gt; and get the dll precompiled by callling &amp;quot;pip install pc-ble-driver-py&amp;quot;&lt;/p&gt;
&lt;p&gt;I would suggest you test and make sure things work by directly use S130/S132 as the central(without the driver, you write code on the nRF5 chip) so you know how bonding is handled, after that you can move to the driver.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bounding with pc-ble-driver</title><link>https://devzone.nordicsemi.com/thread/57182?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2016 13:01:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b6cee47-87b5-4da6-bc2f-87f013f21c6a</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;@HungBui: See edited question, I&amp;#39;m having a hard time finding the appropriate parameters for sd_ble_gap_authenticate (and it will likely be the same later when I&amp;#39;ll have to call &lt;code&gt;sd_ble_gap_sec_params_reply&lt;/code&gt;). Could you and/or link me to a working example? I&amp;#39;m surprised there is no example establishing connection with &amp;quot;Nordic Mouse&amp;quot; as there is one for &amp;quot;Nordic HRM&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bounding with pc-ble-driver</title><link>https://devzone.nordicsemi.com/thread/57192?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2016 13:00:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af135802-2106-4eee-a239-f7c363618b90</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;@metch: See edited question, I&amp;#39;m having a hard time finding the appropriate parameters for sd_ble_gap_authenticate (and it will likely be the same later when I&amp;#39;ll have to call &lt;code&gt;sd_ble_gap_sec_params_reply&lt;/code&gt;). Could you and/or link me to a working example? I&amp;#39;m surprised there is no example establishing connection with &amp;quot;Nordic Mouse&amp;quot; as there is one for &amp;quot;Nordic HRM&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bounding with pc-ble-driver</title><link>https://devzone.nordicsemi.com/thread/57180?ContentTypeID=1</link><pubDate>Fri, 08 Jul 2016 11:38:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b2c0362-0ece-4a21-8ede-8c700c0c4e40</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Thanks metch,
@Jpo: Please follow the message sequence chart that metch pointed to.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bounding with pc-ble-driver</title><link>https://devzone.nordicsemi.com/thread/57193?ContentTypeID=1</link><pubDate>Fri, 08 Jul 2016 06:32:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e20f097-cdd4-49f2-b19d-ae7354a7e9a4</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;Thanks metch&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bounding with pc-ble-driver</title><link>https://devzone.nordicsemi.com/thread/57191?ContentTypeID=1</link><pubDate>Thu, 07 Jul 2016 21:22:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9efa3c96-42dc-446a-aeaa-9cc81e4675a9</guid><dc:creator>Christopher</dc:creator><description>&lt;p&gt;To complete the @hungbui&amp;#39;s answer, you should have a look at some sequences diagrams available here: &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s130.api.v1.0.0%2Fgroup___b_l_e___g_a_p___c_e_n_t_r_a_l___b_o_n_d_i_n_g___j_w___m_s_c.html"&gt;infocenter.nordicsemi.com/index.jsp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;For instance, the &amp;quot;GAP Central Bonding: Just Works&amp;quot; sequence chart (for S130 as central device) describes how to use the &lt;code&gt;sd_ble_gap_authenticate&lt;/code&gt; function when the connection is established.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bounding with pc-ble-driver</title><link>https://devzone.nordicsemi.com/thread/57181?ContentTypeID=1</link><pubDate>Thu, 07 Jul 2016 17:31:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70e5a501-28ca-4918-9200-429c9573f761</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;Thanks for the reply, I&amp;#39;ll look into that. Should sd_ble_gap_authenticate be called before or after device is connected?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bounding with pc-ble-driver</title><link>https://devzone.nordicsemi.com/thread/57179?ContentTypeID=1</link><pubDate>Thu, 07 Jul 2016 10:29:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:711179cc-d156-4c3b-996f-aa3ffc835774</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi jpo38,&lt;/p&gt;
&lt;p&gt;To initialize bonding, you do it the same way you do as a central device, please have a look at our device_manager_central.c library.&lt;/p&gt;
&lt;p&gt;You need to call sd_ble_gap_authenticate() to initialize bonding, store bonding information (the keys) and then call sd_ble_gap_encrypt() to re-encrypt the link based on the keys you stored.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>