<?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>pc-ble-driver binding</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32116/pc-ble-driver-binding</link><description>Configuration Serialized Bluetooth application. Host: Pc running Linux. Host application: -Custom application linking pc-ble-driver from github.com/.../pc-ble-driver -Implements a peripheral with 3 custom services. Only 1 service requires binding for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Mar 2018 10:00:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32116/pc-ble-driver-binding" /><item><title>RE: pc-ble-driver binding</title><link>https://devzone.nordicsemi.com/thread/125119?ContentTypeID=1</link><pubDate>Tue, 20 Mar 2018 10:00:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a419764c-3e51-4caf-887f-c31081479476</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;I just updated my answer, because my first one was not correct.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pc-ble-driver binding</title><link>https://devzone.nordicsemi.com/thread/124620?ContentTypeID=1</link><pubDate>Thu, 15 Mar 2018 14:46:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d16a132e-9e77-4ae9-a95a-8df0287b42aa</guid><dc:creator>adrianco</dc:creator><description>&lt;p&gt;Hi Kristin,&lt;/p&gt;
&lt;p&gt;I am using the architecture described a serialized Bluetooth application, not writing a program/project to be downloaded into the nRF52832.&lt;/p&gt;
&lt;p&gt;My application is running on a host running Linux and is linking pc-ble-driver library.&lt;/p&gt;
&lt;p&gt;It is connected over serial line with the connectivity chip (nRF52832) loaded with the connectivity firmware connectivity_2.0.1_115k2_with_s132_5.0.hex.&lt;/p&gt;
&lt;p&gt;In my host application:&lt;/p&gt;
&lt;p&gt;-create an adapter with sd_rpc_adapter_create(transport_layer);&lt;/p&gt;
&lt;p&gt;-open the adapter with sd_rpc_open(m_ble_adapter.m_adapter, status_handler, ble_evt_dispatch, log_handler);&lt;/p&gt;
&lt;p&gt;where the ble_evt_dispatch is the handler for all the ble events.&lt;/p&gt;
&lt;p&gt;Everything works fine for my application running on the linux host that inplements a peripheral, i create my custom profile(services), advertise, the central can connect to me and access the services that do not require binding. The only missing piece is doing the binding that is a mandatory requirement for one of our custom service.&lt;/p&gt;
&lt;p&gt;Can you please be more specific on where the peer manager module should be added?&lt;/p&gt;
&lt;p&gt;Into the pc-ble-driver library and recompile the library?(i am using the latest from github)&lt;/p&gt;
&lt;p&gt;Is the connectivity firmware suporting the binding process or must be also updated/recompiled.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Adrian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pc-ble-driver binding</title><link>https://devzone.nordicsemi.com/thread/124597?ContentTypeID=1</link><pubDate>Thu, 15 Mar 2018 13:37:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4aa711a-0aeb-4e69-8c0b-e86a6bf3d03f</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;&lt;em&gt;1. Where i can get the keys the peer sent?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The parameters to provide to sd_ble_gap_sec_params_reply() is only struct&amp;#39;s for where the keys will be stored. And it should not contain the keys. When passing them to sd_ble_gap_sec_params_reply(), the value can be &amp;#39;0&amp;#39;. The p_sec_keyset struct will contain the generated (and shared) key when the bonding process is finished, upon the event BLE_GAP_EVT_AUTH_STATUS(BLEEvtID.gap_evt_auth_status), see &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v3.0.0%2Fgroup___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html&amp;amp;cp=2_3_1_1_2_2_1_2_32&amp;amp;anchor=ga7b23027c97b3df21f6cbc23170e55663"&gt;sd_ble_gap_sec_params_reply() documentation&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;em&gt;2. Is that a API to generate own keys?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Yes, the softdevice will generate the keys.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;em&gt;3. Are the keys stored in the connectivity chip and are they &amp;quot;power cycle&amp;quot; safe?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;No, the keys are not stored in the connectivity chip. Storing of the keys is something that your application has to take care of.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;em&gt;4. Is the binding possible in the serialized Bluetooth architecture?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Yes, to my knowledge, it should be possible to use bonding, the API for doing so is there.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It can also be useful to have a look at &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/18984/pc-ble-driver-py---sd_ble_gap_sec_params_reply-fails/73369#73369"&gt;this &lt;/a&gt;tread regarding sd_ble_gap_sec_params_reply().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>