<?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>nRF52840, Pairing through passkey</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104472/nrf52840-pairing-through-passkey</link><description>Hello, 
 I have the peripheral BLE device. It is always had different mac addresses on disconnection/on reboot. 
 I use my mobile phone with Android OS to initiate pairing. On the device I can see passkey - 6 digits. So I use them on my mobile phone to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Jul 2024 19:26:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104472/nrf52840-pairing-through-passkey" /><item><title>RE: nRF52840, Pairing through passkey</title><link>https://devzone.nordicsemi.com/thread/492122?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2024 19:26:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c44f58c8-2bd9-46d2-b81a-9734aece0726</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Please create a new support case for the new issue.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840, Pairing through passkey</title><link>https://devzone.nordicsemi.com/thread/491960?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2024 05:50:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ce8c57a-b1f5-40dc-bc5b-f33cec929570</guid><dc:creator>valeriy_simakov</dc:creator><description>&lt;p&gt;I&amp;#39;m using&amp;nbsp;bt_conn_le_create&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840, Pairing through passkey</title><link>https://devzone.nordicsemi.com/thread/491956?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2024 05:17:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c003c1b0-107a-4168-8640-2f6a6e5837c3</guid><dc:creator>valeriy_simakov</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;For some reason, I got&amp;nbsp;&lt;span&gt;BT_HCI_ERR_UNKNOWN_CONN_ID during the connection. Could you please help me?&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840, Pairing through passkey</title><link>https://devzone.nordicsemi.com/thread/482116?ContentTypeID=1</link><pubDate>Mon, 06 May 2024 16:53:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eaa3ff22-db6f-4c42-bde3-ec43f651d068</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can refer to&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/central_uart/README.html"&gt;Bluetooth: Central UART&lt;/a&gt;&amp;nbsp;which can work with&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/peripheral_uart/README.html"&gt;Peripheral UART&lt;/a&gt;&amp;nbsp;that requires the&amp;nbsp;&lt;span&gt;passkey.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840, Pairing through passkey</title><link>https://devzone.nordicsemi.com/thread/481864?ContentTypeID=1</link><pubDate>Sat, 04 May 2024 05:21:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53d02ced-91f1-46c9-8159-462d7d216ea7</guid><dc:creator>valeriy_simakov</dc:creator><description>&lt;p&gt;H &lt;a href="https://devzone.nordicsemi.com/members/amanda"&gt;Amanda Hsieh&lt;/a&gt;&amp;nbsp;&lt;br /&gt;This is an example for peripheral device.&amp;nbsp;&lt;br /&gt;The project was on pause for some time and now it&amp;nbsp;continues.&lt;br /&gt;So, my device is central device and I couldn&amp;#39;t get stable pairing with peripheral device with display which provides passkey code.&amp;nbsp;&lt;br /&gt;The scenario:&amp;nbsp;&lt;br /&gt;1. From the start, I get a successful pairing (34931_pairing_OK_212.txt &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/34931_5F00_pairing_5F00_OK_5F00_212.txt"&gt;devzone.nordicsemi.com/.../34931_5F00_pairing_5F00_OK_5F00_212.txt&lt;/a&gt;).&lt;br /&gt;2. If I reboot my device and try to reconnect, I get a &lt;span&gt;pairing&amp;nbsp;&lt;/span&gt;error (34931_pairing_fail2_212.txt&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/34931_5F00_pairing_5F00_fail2_5F00_212.txt"&gt;devzone.nordicsemi.com/.../34931_5F00_pairing_5F00_fail2_5F00_212.txt&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;So, I get event &amp;#39;BT_HCI_EVT_DISCONN_COMPLETE&amp;#39; for some reason.&amp;nbsp;&lt;br /&gt;I get the handler there from the function &amp;#39;bt_recv&amp;#39; (hci_core.c).&amp;nbsp;&lt;br /&gt;And I couldn&amp;#39;t understand the reason. Could you please help with that issue?&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840, Pairing through passkey</title><link>https://devzone.nordicsemi.com/thread/460594?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2023 14:34:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b95d7c1-61a4-446c-b771-9bfafa6c9652</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would suggest taking a look at this tutorial&lt;/p&gt;
&lt;p&gt;&lt;a href="https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/lessons/lesson-5-bluetooth-le-security-fundamentals/topic/blefund-lesson-5-exercise-1/"&gt;https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/lessons/lesson-5-bluetooth-le-security-fundamentals/topic/blefund-lesson-5-exercise-1/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840, Pairing through passkey</title><link>https://devzone.nordicsemi.com/thread/460475?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2023 07:30:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4e17976-92d5-42b0-86e9-ee44b16d6454</guid><dc:creator>valeriy_simakov</dc:creator><description>&lt;div&gt;
&lt;div&gt;&lt;span&gt;Hi,&amp;nbsp;&lt;br /&gt;I have a problem with pairing. For some reason, a got an issue in callback &amp;#39;security_changed&amp;nbsp;&amp;#39;.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;static&lt;/span&gt;&lt;span&gt; bt_conn_cb conn_cb{&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .security_changed &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; OnSecurityChanged,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;};&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;void&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;Ble&lt;/span&gt;&lt;span&gt;::&lt;/span&gt;&lt;span&gt;OnSecurityChanged&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;bt_conn&lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;conn&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;bt_security_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;level&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;bt_security_err&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;err&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;char&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;addr&lt;/span&gt;&lt;span&gt;[BT_ADDR_LE_STR_LEN];&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;bt_addr_le_to_str&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;bt_conn_get_dst&lt;/span&gt;&lt;span&gt;(conn), addr, &lt;/span&gt;&lt;span&gt;sizeof&lt;/span&gt;&lt;span&gt;(addr));&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span&gt;!&lt;/span&gt;&lt;span&gt;err)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;printk&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&amp;quot;Security is changed: &lt;/span&gt;&lt;span&gt;%s&lt;/span&gt;&lt;span&gt; level &lt;/span&gt;&lt;span&gt;%u&lt;/span&gt;&lt;span&gt;\n&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;, addr, level);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;else&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;printk&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&amp;quot;Security is failed: &lt;/span&gt;&lt;span&gt;%s&lt;/span&gt;&lt;span&gt; level &lt;/span&gt;&lt;span&gt;%u&lt;/span&gt;&lt;span&gt; err &lt;/span&gt;&lt;span&gt;%d&lt;/span&gt;&lt;span&gt;\n&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;, addr, level, err);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;So, I got in the log&lt;br /&gt;&amp;#39;Security is failed: 5A:B2:93:34:7A:61 (random) level 1 err 9.&amp;#39;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;But sometimes I didn&amp;#39;t get that issue and&amp;nbsp;pairing ends successfully.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/strong&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;ncs&amp;nbsp;&lt;/span&gt;&lt;span&gt;v2.1.2&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840, Pairing through passkey</title><link>https://devzone.nordicsemi.com/thread/449498?ContentTypeID=1</link><pubDate>Tue, 10 Oct 2023 09:36:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2e7c72a-f7df-4efe-8998-c8d8a23d08de</guid><dc:creator>valeriy_simakov</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;Thanks, I will take a look&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840, Pairing through passkey</title><link>https://devzone.nordicsemi.com/thread/449404?ContentTypeID=1</link><pubDate>Mon, 09 Oct 2023 16:19:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e787985b-5b91-4fe5-bce5-2e78150dcead</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can take a look at this example &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/central_uart/README.html"&gt;Central UART&lt;/a&gt;&amp;nbsp;and test with&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/peripheral_uart/README.html"&gt;Peripheral UART&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840, Pairing through passkey</title><link>https://devzone.nordicsemi.com/thread/449388?ContentTypeID=1</link><pubDate>Mon, 09 Oct 2023 14:53:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14a15fd5-04df-49fd-a8b9-891e29764b9f</guid><dc:creator>valeriy_simakov</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;But my case isn&amp;#39;t about a static passkey. It&amp;#39;s a dynamic passkey)&lt;br /&gt;Actually, I did pairing.&lt;br /&gt;I used bt_conn_auth_passkey_entry() to enter the passkey for the corresponding connection. But it would be better to see an example..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840, Pairing through passkey</title><link>https://devzone.nordicsemi.com/thread/449385?ContentTypeID=1</link><pubDate>Mon, 09 Oct 2023 14:42:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ba9daf6-e792-4b14-9bde-f61d9d4c5e52</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;My colleague Kenneth explains how you can enable static passkey pairing on the peripheral and central in this thread:&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/69202/zephyr-ble-static-passkey-between-central-and-peripheral-on-two-nrf52840s"&gt;Zephyr BLE static passkey between central and peripheral on two nrf52840s&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>