<?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>Statickey authentication problem with pc-ble-driver-py</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95586/statickey-authentication-problem-with-pc-ble-driver-py</link><description>Hello everyone, I&amp;#39;m not able to perform the authentication process with statickey and bonding using the pc-ble-driver-py. 
 My setup is the following: 
 
 Central : Devkit nRF52832 controlled with pc-ble-driver-py. 
 Peripheral : Proteus III with base</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Jan 2023 09:16:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95586/statickey-authentication-problem-with-pc-ble-driver-py" /><item><title>RE: Statickey authentication problem with pc-ble-driver-py</title><link>https://devzone.nordicsemi.com/thread/404745?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2023 09:16:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e853a3a3-f573-4321-9b85-96b1ea2d1c61</guid><dc:creator>Jakub Janusz</dc:creator><description>&lt;p&gt;Thank you very much for your answer, it helped me to find the solution!&lt;/p&gt;
&lt;p&gt;In the end my problem was a combination of two problems:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The&amp;nbsp;&amp;quot;BLEGapIOCaps&amp;quot; has to be configured as &amp;quot;keyboard_display&amp;quot;, for the Central in my case&amp;quot;(I discarded it at first because I did not get a bonded flag correctly).&lt;/li&gt;
&lt;li&gt;The type of the KEY has to be a bytestring and not an integer.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Thanks again for your help.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;best regards,&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Jakub&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Statickey authentication problem with pc-ble-driver-py</title><link>https://devzone.nordicsemi.com/thread/404548?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2023 12:27:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ba46974-4866-4359-8a4f-df374ae7e4d5</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]I have detected that for some reason the event&amp;nbsp;&amp;quot;BLEEvtID.gap_evt_auth_key_request&amp;quot; is not captured, the callback is not executed and therefore the Central does not send the PassKey to the peripheric. This means that any action&amp;nbsp;like the activation of the notifications&amp;nbsp;or&amp;nbsp;the writing of a Characteristic,&amp;nbsp;generates this error : &amp;quot;BLEGattStatusCode.insuf_authentication&amp;quot;.[/quote]
&lt;p&gt;So the pc-ble-driver-py program is the central here. I see that you have io_caps=BLEGapIOCaps.display_only. Then you need to lock at this MSC,&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.3.0/group___b_l_e___g_a_p___c_e_n_t_r_a_l___b_o_n_d_i_n_g___p_k___p_e_r_i_p_h___m_s_c.html"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.3.0/group___b_l_e___g_a_p___c_e_n_t_r_a_l___b_o_n_d_i_n_g___p_k___p_e_r_i_p_h___m_s_c.html&lt;/a&gt;&amp;nbsp;, &amp;quot;Bonding: Passkey Entry, Central displays&amp;quot;. So you will get the passkey display event, not&amp;nbsp;&lt;span&gt;gap_evt_auth_key_request&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>