<?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>Can&amp;#39;t bond from pc-ble-driver-py: &amp;quot;Creating invalid shared secret to make LESC fail&amp;quot;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57730/can-t-bond-from-pc-ble-driver-py-creating-invalid-shared-secret-to-make-lesc-fail</link><description>Device: nRF52832, SD132v7.0.1, NRFSDK 16.0.0 
 Host: nRF52840 USB BLE dongle, pc-ble-driver-py 0.14.1, Python script, Linux 
 
 We&amp;#39;re developing a device that&amp;#39;s a BLE Peripheral, with one characteristic for IO that requires Just Works pairing with LESC</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Feb 2020 09:55:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57730/can-t-bond-from-pc-ble-driver-py-creating-invalid-shared-secret-to-make-lesc-fail" /><item><title>RE: Can't bond from pc-ble-driver-py: "Creating invalid shared secret to make LESC fail"</title><link>https://devzone.nordicsemi.com/thread/234593?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2020 09:55:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c0570c7-cbd7-4708-af0e-4d888e002941</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;It is unfortunate that you had to spend all this time just to find out it is not supported.&amp;nbsp;I have created an internal JIRA ticket for this suggestion. Thanks for your feedback.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't bond from pc-ble-driver-py: "Creating invalid shared secret to make LESC fail"</title><link>https://devzone.nordicsemi.com/thread/234452?ContentTypeID=1</link><pubDate>Fri, 14 Feb 2020 14:40:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6410481-132e-4112-888f-63181449f7b5</guid><dc:creator>charles</dc:creator><description>&lt;p&gt;Thanks for the response and clarification. It&amp;#39;s frustrating that I have to open a Devzone ticket for this, when simple documentation on the pc-ble-driver / pc-ble-driver-py GitHub project landing pages would have saved us days of struggle.&lt;/p&gt;
&lt;p&gt;Please consider documenting known shortcomings like this clearly to save&amp;nbsp;both my time and yours.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't bond from pc-ble-driver-py: "Creating invalid shared secret to make LESC fail"</title><link>https://devzone.nordicsemi.com/thread/234400?ContentTypeID=1</link><pubDate>Fri, 14 Feb 2020 12:35:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ca7c038-a029-4eb5-a136-3987332df46f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Charles,&lt;/p&gt;
&lt;p&gt;As can be seen from the message sequence chart here: &lt;span&gt;&lt;a title="Pairing: Just Works" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.0.1/group___b_l_e___g_a_p___c_e_n_t_r_a_l___l_e_s_c___p_a_i_r_i_n_g___j_w___m_s_c.html?cp=4_5_2_1_2_1_5_5_1_4"&gt;Pairing: Just Works&lt;/a&gt;&lt;/span&gt;, the application is expected to respond with the public key when it is receiving the BLE_GAP_EVT_LESC_DHKEY_REQUEST event from the Softdevice. Unfortunately, that event is currently not being handled in the official pc-ble-driver/pc-ble-driver-py release. So the application needs to include a crypto library and perform the ECC computations for the Softdevice in order to support LESC.&lt;/p&gt;
&lt;p&gt;Please take a look at this patch made by one of my colleagues for an older version of pc-ble-driver-py and see if it&amp;#39;s something you can use as a reference: &lt;a href="https://github.com/stianrh/ble_driver/compare/113c183...6f7079d"&gt;https://github.com/stianrh/ble_driver/compare/113c183...6f7079d&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;nRF desktop uses the JS wrapper around the pc-ble-driver and is not yet updated to use v5.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't bond from pc-ble-driver-py: "Creating invalid shared secret to make LESC fail"</title><link>https://devzone.nordicsemi.com/thread/234270?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2020 18:17:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ae4bfa6-eb6d-418c-98dd-d80188c7cbd3</guid><dc:creator>charles</dc:creator><description>&lt;p&gt;A colleague of mine noticed that the nRF Connect desktop app flashes the nrf52840 USB dongle that uses v3 of the SoftDevice 132 api. The pc-ble-driver-py version uses v5 of the SoftDevice 132 api. We can&amp;#39;t figure out a way to do an apples-to-apples test where the exact same firmware&amp;nbsp; and SoftDevice on the nRF52840 dongle succeeds in nRF Connect but fails in pc-ble-driver-py.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>