<?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>[nRF Connect SDK] Pairing failure</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93515/nrf-connect-sdk-pairing-failure</link><description>Target nRF52832(nrf52dk_nrf52832) SDK NCS v2.0.0 original case (+) [nRF Connect SDK]Force to make pairing(bonding) - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone (nordicsemi.com) Here is my test step. (Nordic: peripheral role) 
 1) Nordic begins advertising</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Dec 2022 23:16:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93515/nrf-connect-sdk-pairing-failure" /><item><title>RE: [nRF Connect SDK] Pairing failure</title><link>https://devzone.nordicsemi.com/thread/402476?ContentTypeID=1</link><pubDate>Wed, 28 Dec 2022 23:16:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3142fa33-3d9d-4cca-bce9-f4324df9ecaa</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Tim,&lt;/p&gt;
&lt;p&gt;Thanks for letting us know. Good luck with your future endeavors.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK] Pairing failure</title><link>https://devzone.nordicsemi.com/thread/402343?ContentTypeID=1</link><pubDate>Wed, 28 Dec 2022 05:01:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6379bf89-0102-4319-a78d-196c0742a299</guid><dc:creator>Tim Hwang</dc:creator><description>&lt;p&gt;Hello.&lt;br /&gt;&lt;br /&gt;Now we got solution from MTK HQ.&lt;br /&gt;We should change firmware in MTK&amp;#39;s BT chipset.&lt;br /&gt;BLE pairing works well with new SW.&lt;/p&gt;
&lt;p&gt;Thanks for your support.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK] Pairing failure</title><link>https://devzone.nordicsemi.com/thread/398235?ContentTypeID=1</link><pubDate>Wed, 30 Nov 2022 06:59:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5c45e07-8837-449e-9f01-6719565258ed</guid><dc:creator>Tim Hwang</dc:creator><description>&lt;p&gt;I hope you get better.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I sent Nordic&amp;nbsp;Evaluation&amp;nbsp;board to my partner in China, and they can reproduce this issue.&lt;br /&gt;Further analysis is delayed due to covid19 in China. I will ask you again&amp;nbsp;when&amp;nbsp;MTK request is arrived.&lt;br /&gt;I&amp;#39;ll hold this case until then.&lt;br /&gt;&lt;br /&gt;Thank you.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK] Pairing failure</title><link>https://devzone.nordicsemi.com/thread/398192?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2022 18:23:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4c48f08-d605-4ebe-8362-6c6affc145e2</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Tim,&lt;/p&gt;
&lt;p&gt;My apology for the long wait with no follow up.&lt;/p&gt;
&lt;p&gt;I am having some health issues and will likely be out of office for a few more days.&lt;/p&gt;
&lt;p&gt;I will let you know when I can reply to your question as soon as possible.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK] Pairing failure</title><link>https://devzone.nordicsemi.com/thread/395668?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2022 03:11:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:360e282c-d093-4617-8c8b-373ecdfd6213</guid><dc:creator>Tim Hwang</dc:creator><description>&lt;p&gt;&lt;span&gt;6. CONFIG_BT_SMP_ENFORCE_MITM=n&lt;/span&gt;&lt;br /&gt;&lt;span&gt;-&amp;gt; It seems that there was no difference.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK] Pairing failure</title><link>https://devzone.nordicsemi.com/thread/395667?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2022 03:11:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb05dc03-3f7e-46d2-a96c-54ea9302a775</guid><dc:creator>Tim Hwang</dc:creator><description>&lt;p&gt;Thank you for your kind response.&lt;br /&gt;&lt;br /&gt;0.&amp;nbsp;For app log:&amp;nbsp;&lt;br /&gt;&lt;span style="color:#0000ff;font-size:75%;"&gt;nRF Connect, 2022-11-14&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;font-size:75%;"&gt;Nordic_UART_Service (00:16:7F:11:22:36)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;font-size:75%;"&gt;V 14:27:21.563 Connecting to 00:16:7F:11:22:36...&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;font-size:75%;"&gt;D 14:27:21.564 gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE, preferred PHY = LE 1M)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;font-size:75%;"&gt;D 14:27:22.357 [Callback] Connection state changed with status: 133 and new state: DISCONNECTED (0)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;font-size:75%;"&gt;E 14:27:22.357 Error 133 (0x85): GATT ERROR&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;font-size:75%;"&gt;I 14:27:22.357 Disconnected&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. Can your Android app or device consistently successfully pair with any BLE device? A BLE mouse, for example?&lt;br /&gt;-&amp;gt; Pairing failed at first time after reboot or Bluetooth turned on. I try again, pairing works.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;2. Can your current nRF52 device consistently successfully pair with any Android/iOS/Windows device?&lt;br /&gt;-&amp;gt; If &lt;span&gt;nRF52 device means my project, the answer is&amp;nbsp;&lt;/span&gt;Yes.&lt;br /&gt;&lt;br /&gt;3. Are you working in an environment with a lot of 2.4GHz signals?&lt;br /&gt;-&amp;gt; It is noisy somehow. But other Androids work well. Noise does not matter, I guess.&lt;br /&gt;&lt;br /&gt;4. Is there any reason why you push aside my request for sniffer logs with the pairing procedure?&lt;br /&gt;-&amp;gt; I spent lots of time for taking sniffer log. But I could not get air log well. so I asked logging know-how.&lt;br /&gt;&lt;br /&gt;5. Can you also zip up and send us the modified peripheral_uart project which you are using? You can use west build -t clean to remove all build artifacts to keep the file light.&lt;br /&gt;-&amp;gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/peripheral_5F00_uart_5F00_1114_5F00_MTK.case.7z"&gt;devzone.nordicsemi.com/.../peripheral_5F00_uart_5F00_1114_5F00_MTK.case.7z&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;6. CONFIG_BT_SMP_ENFORCE_MITM=n&lt;/span&gt;&lt;br /&gt;-&amp;gt; It seems that there was no difference.&lt;br /&gt;----------------------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;1. &amp;quot;hci status 0x1f&amp;quot;&lt;br /&gt;12 days ago, I had no idea about &amp;quot;hci status 0x1f&amp;quot; so I made this case&lt;br /&gt;&lt;strong&gt;D: chan 0x20001f54 conn 0x20001c90 handle 0 encrypt 0x00 hci status &lt;span style="color:#ff0000;"&gt;0x1f&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Now I understand where 0x1f is from. And you told me what 0x5 is too.&lt;br /&gt;And I could get event 0x5 with unexpected Android disconnection (for example I put it shield box)&lt;br /&gt;&lt;strong&gt;00&amp;gt; [00:02:19.647,460] &amp;lt;dbg&amp;gt; sdc_hci_driver: event_packet_process: Event (&lt;span style="color:#ff0000;"&gt;0x05&lt;/span&gt;) len 4&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;2. &amp;quot;No pairing reponse&amp;quot;&lt;br /&gt;1) Nordic sent security request, &lt;br /&gt;2) MTK send pairing request, &lt;br /&gt;3) but Nordic did not send pairing response.&lt;br /&gt;&lt;br /&gt;In sf650_error_03Nov2022.pcapng, we could see this symptom in this log.&lt;br /&gt;(Unfortunately, Sniff logs are different every time with Nordic sniffer, Lots of packets are dropped)&lt;br /&gt;In this case, RTT log had Event(0x5) but air log shows MTK send packets to Nordic.&lt;br /&gt;What do you think about that?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5466.sf650_5F00_error_5F00_03Nov2022.pcapng"&gt;devzone.nordicsemi.com/.../5466.sf650_5F00_error_5F00_03Nov2022.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1668478433373v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;3. Work with MTK&lt;br /&gt;This issue already reported to MTK and I provided Nordic nRF52 DK Ev board with my code&lt;br /&gt;(peripheral_uart_1114_MTK.7z)&amp;nbsp;They will get it soon. And test it by themselves.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK] Pairing failure</title><link>https://devzone.nordicsemi.com/thread/395557?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2022 13:00:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef7c4fc3-1e24-4ba8-bbb3-a22c57ec4b45</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;One more question:&lt;/p&gt;
&lt;p&gt;6. If you add&amp;nbsp;CONFIG_BT_SMP_ENFORCE_MITM=n to your app, can pairing consistently work?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK] Pairing failure</title><link>https://devzone.nordicsemi.com/thread/395549?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2022 12:48:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3eca1071-089e-44e6-9940-58af8d057cb3</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Tim,&lt;/p&gt;
&lt;p&gt;Regarding your nRF Connect app log&lt;/p&gt;
&lt;p&gt;As you can see, in the log, the connection didn&amp;#39;t even happen successfully. So that log shows an entirely new kind of failure compared to the ones you have shown me...&lt;/p&gt;
&lt;p&gt;For your reference of what normal looks like, here are a few logs I quickly created myself. Just my Android phone, and a peripheral_uart sample modified just like you described.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/c297913_5F00_android_5F00_pairing_5F00_successful_5F00_221114_5F00_01.txt"&gt;devzone.nordicsemi.com/.../c297913_5F00_android_5F00_pairing_5F00_successful_5F00_221114_5F00_01.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/c297913_5F00_rtt_5F00_pairing_5F00_timeout_5F00_221114_5F00_01.txt"&gt;devzone.nordicsemi.com/.../c297913_5F00_rtt_5F00_pairing_5F00_timeout_5F00_221114_5F00_01.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/c297913_5F00_rtt_5F00_pairing_5F00_successful_5F00_221114_5F00_01.txt"&gt;devzone.nordicsemi.com/.../c297913_5F00_rtt_5F00_pairing_5F00_successful_5F00_221114_5F00_01.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/c297913_5F00_android_5F00_pairing_5F00_timeout_5F00_221114_5F00_01.txt.txt"&gt;devzone.nordicsemi.com/.../c297913_5F00_android_5F00_pairing_5F00_timeout_5F00_221114_5F00_01.txt.txt&lt;/a&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Regarding&amp;nbsp;my comment:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/93515/nrf-connect-sdk-pairing-failure/395213"&gt;devzone.nordicsemi.com/.../395213&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have explained&amp;nbsp;there what I observed, and why I request &lt;span&gt;at least one&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_sniffer_ble/UG/sniffer_ble/action_paired.html"&gt;sniffer log with the pairing procedure&lt;/a&gt;, if not two or three.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Regarding your following statement:&amp;nbsp;&lt;/p&gt;
[quote user="Tim Hwang"]I repeated this test and found reason was 0x5 or 0x28.&amp;nbsp;[/quote]
&lt;p&gt;Do you mean HCI event 0x5, or do you mean HCI event 0x5 and the reason is also 0x5?&lt;/p&gt;
&lt;p&gt;HCI Event 0x5 means&amp;nbsp;BT_HCI_EVT_DISCONN_COMPLETE. It just means a disconnection. It doesn&amp;#39;t say why there was a disconnection.&lt;/p&gt;
&lt;p&gt;If you see both reason 0x5 (BT_HCI_ERR_AUTH_FAIL) and reason 0x28 (BT_HCI_ERR_INSTANT_PASSED),&amp;nbsp;&lt;em&gt;&lt;strong&gt;and&lt;/strong&gt;&lt;/em&gt; you have the above&amp;nbsp;nRF Connect app log, then your system is showing &lt;em&gt;&lt;strong&gt;at least three different kinds of failure with the same setup&lt;/strong&gt;&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;That is&amp;nbsp;going to be extremely complicated to analyze.&lt;/p&gt;
&lt;p&gt;In this situation, we will need a lot more data, you will have to be very methodical in recording your logs. You need to record both&lt;/p&gt;
&lt;p&gt;- Android log&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;- Device RTT log&lt;br /&gt;- Sniffer traces &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;And they need to be organized so both you and I can tell which is what.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Before you send more logs, I have a few questions/requests&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Can your Android app or device &lt;em&gt;&lt;strong&gt;consistently&lt;/strong&gt;&lt;/em&gt; successfully pair with any BLE device? A BLE mouse, for example?&lt;/li&gt;
&lt;li&gt;Can your current nRF52 device &lt;em&gt;&lt;strong&gt;consistently&lt;/strong&gt;&lt;/em&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;successfully pair with any Android/iOS/Windows device?&lt;/li&gt;
&lt;li&gt;Are you working in an environment with a lot of 2.4GHz&amp;nbsp;signals?&lt;/li&gt;
&lt;li&gt;Is there any reason why you push aside my request for&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_sniffer_ble/UG/sniffer_ble/action_paired.html"&gt;sniffer logs with the pairing procedure&lt;/a&gt;?&lt;/li&gt;
&lt;li&gt;Can you also zip up and send us the modified peripheral_uart project which you are using? You can use &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;west build -t clean&lt;/span&gt; to remove all build artifacts to keep the file light.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If you send more data, please try to categorize them by the kind of failure (disconnect reasons), group both Android, RTT, and sniffer trace together for each test/each failure.&lt;/p&gt;
&lt;p&gt;There is just nothing much I can do with fragmented info...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK] Pairing failure</title><link>https://devzone.nordicsemi.com/thread/395460?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2022 05:40:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3548ab55-0253-4333-8401-86e6f6903736</guid><dc:creator>Tim Hwang</dc:creator><description>&lt;p&gt;1.&amp;nbsp;&lt;span&gt;nRF Connect app log&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nRF Connect, 2022-11-14
Nordic_UART_Service (00:16:7F:11:22:36)
V	14:27:21.563	Connecting to 00:16:7F:11:22:36...
D	14:27:21.564	gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE, preferred PHY = LE 1M)
D	14:27:22.357	[Callback] Connection state changed with status: 133 and new state: DISCONNECTED (0)
E	14:27:22.357	Error 133 (0x85): GATT ERROR
I	14:27:22.357	Disconnected
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;2.&amp;nbsp;&lt;br /&gt;&lt;span&gt;Just in case, you also saw my longer reply where I ask if you can see if more reproductions of the issues result in the same disconnect reason 0x28, and where I asked for the sniffer trace again, right?&lt;br /&gt;&lt;/span&gt;-&amp;gt; Can you please explain your mention?&amp;nbsp;&lt;br /&gt;I repeated this test and found reason was 0x5 or 0x28.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK] Pairing failure</title><link>https://devzone.nordicsemi.com/thread/395455?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2022 05:23:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89c39077-4d79-49e1-9dfe-80c2902f072e</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Just in case, you also saw my longer reply where I ask if you can see if more reproductions of the issues result in the same disconnect reason 0x28, and where I asked for the sniffer trace again, right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK] Pairing failure</title><link>https://devzone.nordicsemi.com/thread/395446?ContentTypeID=1</link><pubDate>Sun, 13 Nov 2022 23:42:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fac7872c-68b6-441c-8915-cdd683b39a7b</guid><dc:creator>Tim Hwang</dc:creator><description>&lt;p&gt;Thanks for updating.&lt;br /&gt;I&amp;#39;ll upload&amp;nbsp;&lt;span&gt;the nRF Connect app log as soon as it is ready.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK] Pairing failure</title><link>https://devzone.nordicsemi.com/thread/395214?ContentTypeID=1</link><pubDate>Thu, 10 Nov 2022 22:18:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa1e9de7-5607-47f8-890f-14de9d857a34</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;P.s: Could you also try using the nRF Connect app to perform the pairing? The app can produce some potentially helpful logs from the phone side.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK] Pairing failure</title><link>https://devzone.nordicsemi.com/thread/395213?ContentTypeID=1</link><pubDate>Thu, 10 Nov 2022 22:15:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2634a26-75cf-4b9d-be27-06ab8c930879</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Tim,&lt;/p&gt;
&lt;p&gt;Regarding the long RTT Log posted on 7 Nov, here are what I found:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;00&amp;gt; [00:01:11.915,771] &amp;lt;dbg&amp;gt; bt_hci_core: hci_disconn_complete_prio: hci_disconn_complete_prio status 0x00 handle 0 reason 0x28
...
00&amp;gt; [00:01:11.916,229] &amp;lt;dbg&amp;gt; bt_hci_core: hci_event: event 0x05
00&amp;gt; [00:01:11.916,259] &amp;lt;dbg&amp;gt; bt_hci_core: hci_disconn_complete: status 0x00 handle 0 reason 0x28&lt;/pre&gt;These lines indicate that the connection was terminated with reason 0x28, which is BLE_HCI_INSTANT_PASSED.&lt;br /&gt;This means some time sensitive event didn&amp;#39;t happen when it should. There are many root causes. Some possible ones are too much radio-noises&amp;nbsp;or logging too much.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;00&amp;gt; [00:01:11.917,785] &amp;lt;wrn&amp;gt; peripheral_uart: Security failed: 47:95:91:6C:DF:D7 (random) level 1 err 9
00&amp;gt; [00:01:11.918,029] &amp;lt;inf&amp;gt; peripheral_uart: Pairing failed conn: 47:95:91:6C:DF:D7 (random), reason 9&lt;/pre&gt;These lines indicate that Pairing/Security failed with reason 9, which is&amp;nbsp;&lt;span&gt;&lt;/span&gt;BT_SECURITY_ERR_UNSPECIFIED.&lt;br /&gt;The error code&amp;nbsp;means that Security did &lt;em&gt;&lt;strong&gt;not&lt;/strong&gt;&lt;/em&gt;&amp;nbsp;fail due to any of these reasons:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;	/** Authentication failed. */
	BT_SECURITY_ERR_AUTH_FAIL,

	/** PIN or encryption key is missing. */
	BT_SECURITY_ERR_PIN_OR_KEY_MISSING,

	/** OOB data is not available.  */
	BT_SECURITY_ERR_OOB_NOT_AVAILABLE,

	/** The requested security level could not be reached. */
	BT_SECURITY_ERR_AUTH_REQUIREMENT,

	/** Pairing is not supported */
	BT_SECURITY_ERR_PAIR_NOT_SUPPORTED,

	/** Pairing is not allowed. */
	BT_SECURITY_ERR_PAIR_NOT_ALLOWED,

	/** Invalid parameters. */
	BT_SECURITY_ERR_INVALID_PARAM,

	/** Distributed Key Rejected */
	BT_SECURITY_ERR_KEY_REJECTED,&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The above symptoms and diagnoses also match quite well with your 8 Nov comment.&lt;/p&gt;
&lt;p&gt;Overall, what I derived are:&lt;br /&gt;- Some key time-sensitive packet missed its&amp;nbsp;&amp;quot;instant&amp;quot; and&amp;nbsp;the pairing process failed.&lt;/p&gt;
&lt;p&gt;-&amp;nbsp;&lt;span&gt;BLE_HCI_INSTANT_PASSED is pretty rare in development environment, where the devices&amp;nbsp;in a connection are usually physically close. If possible, please observe several more&amp;nbsp;reproduction of the issue to see if the same disconnection reason happens.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- If BLE_HCI_INSTANT_PASSED&amp;nbsp;happens consistently, at least one&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_sniffer_ble/UG/sniffer_ble/action_paired.html"&gt;sniffer log with the pairing procedure&lt;/a&gt;, preferably two or three logs,&amp;nbsp;are required to pinpoint the exact problem.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- A sniffer log captured when the device RTT log is turned down to normal (info) level is also helpful&amp;nbsp;(to rule out the possibility that the&amp;nbsp;log processing caused the timing issue).&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK] Pairing failure</title><link>https://devzone.nordicsemi.com/thread/394571?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2022 06:04:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf716d5c-9c08-4400-9e95-04962ad248bb</guid><dc:creator>Tim Hwang</dc:creator><description>&lt;p&gt;Hello.&lt;span&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;1. ...How do you enter the passkey in your device?...&lt;br /&gt;device (Nordic BLE) already disconnected&amp;nbsp;before BLE(Nordic) have chance to check passkey.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. RTT log: new log&lt;/span&gt;&lt;span style="font-size:75%;"&gt;&lt;span style="font-size:inherit;"&gt;&lt;/span&gt;&lt;br /&gt;00&amp;gt; [00:00:12.557,952] &amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_send_sync: rsp 0x2000cba0 opcode 0x2032 len 0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:75%;"&gt;00&amp;gt; [00:00:&lt;span style="color:#800000;"&gt;&lt;span style="background-color:#00ff00;"&gt;12.557&lt;/span&gt;,952&lt;/span&gt;] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_unref: handle 0 ref 3 -&amp;gt; 2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:75%;"&gt;00&amp;gt; [00:00:&lt;span style="color:#0000ff;"&gt;&lt;span style="background-color:#00ff00;"&gt;17.624&lt;/span&gt;,084&lt;/span&gt;] &amp;lt;dbg&amp;gt; sdc_hci_driver: event_packet_process: &lt;span style="color:#ff0000;"&gt;Event (0x05)&lt;/span&gt; len 4&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:75%;"&gt;00&amp;gt; [00:00:17.624,176] &amp;lt;dbg&amp;gt; bt_hci_core: bt_recv: buf 0x2000ca88 len 6&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;hci.h&lt;br /&gt;&lt;img style="max-height:22px;max-width:352px;" height="22" src="https://devzone.nordicsemi.com/resized-image/__size/704x44/__key/communityserver-discussions-components-files/4/pastedimage1667883574664v1.png_2D00_640x480.png" width="352" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I think I foun&lt;span style="color:#000000;"&gt;d reason of &lt;span&gt;hci status value 0x1f.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;&lt;br /&gt;&amp;quot;Event&amp;nbsp;(0x05)&amp;quot; in HCI log means that BT_HCI_EVT_DISCONN_COMPLETE.&lt;br /&gt;What kind of this disconnection? It seems it is link loss timeout (12.557 ~ 17.624).&lt;br /&gt;In my test, many of failure case had around 5 seconds delay.&lt;br /&gt;&lt;br /&gt;How can we know about that? What is your opinion?&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK] Pairing failure</title><link>https://devzone.nordicsemi.com/thread/394550?ContentTypeID=1</link><pubDate>Mon, 07 Nov 2022 20:49:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0a2eeb6-2fe3-4ab4-b81b-140c177730ac</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Tim,&lt;/p&gt;
[quote user="Tim Hwang"]1. NFC&lt;br /&gt;I could reproduce this issue without NFC tagging. Let&amp;#39;s discuss later. It is not root reason; I think.[/quote]
&lt;p&gt;You misunderstood.&amp;nbsp;I mentioned NFC as an example of an out-of-band (OOB) verification method.&amp;nbsp;NFC should not be the problem here.&lt;/p&gt;
[quote user="Tim Hwang"]If Key exchange is a matter, we always see this issue. But it is not.&amp;nbsp;What do you think about that?[/quote]
&lt;p&gt;The problem is exactly that: I don&amp;#39;t know what to think about that.&lt;/p&gt;
&lt;p&gt;Please take a look back at your videos. What I see are&lt;/p&gt;
&lt;p&gt;-&amp;nbsp;Incorrect passkey error&amp;nbsp;message from the &amp;quot;not-good&amp;quot; video.&lt;br /&gt;- Passkey pop-up in the &amp;quot;okay&amp;quot; video&lt;br /&gt;- Very short time between passkey pop-up and the&amp;nbsp;connection is made in the &amp;quot;okay&amp;quot; video. Too short for actual passkey to be entered by a normal human.&lt;/p&gt;
&lt;p&gt;The combination of those makes no sense at all.&lt;/p&gt;
&lt;p&gt;That is why I hope a sniffer log containing the encrypted pairing packets would help me see what is wrong here.&lt;/p&gt;
&lt;p&gt;I might guess that your Android device asks for passkey, but doesn&amp;#39;t&amp;nbsp;handle the passkey well, sometime consider &amp;quot;no&amp;quot; passkey as good, sometime doesn&amp;#39;t.&amp;nbsp;Without a sniffer, I can&amp;#39;t be sure.&lt;/p&gt;
&lt;p&gt;Therefore, if possible, please look into getting me that &lt;a href="https://infocenter.nordicsemi.com/topic/ug_sniffer_ble/UG/sniffer_ble/action_paired.html"&gt;sniffer log with the pairing procedure&lt;/a&gt;. Preferably one&amp;nbsp;of a success case, and one of a failure case.&lt;/p&gt;
&lt;p&gt;I will look at your RTT log&amp;nbsp;Tue and Wed.&amp;nbsp;Unfortunately, I am partially out of office both days, so my follow-up might be delayed until end of Thursday.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK] Pairing failure</title><link>https://devzone.nordicsemi.com/thread/394323?ContentTypeID=1</link><pubDate>Mon, 07 Nov 2022 08:22:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05c2c461-31bd-4474-afaa-d1d007e7c6a4</guid><dc:creator>Tim Hwang</dc:creator><description>&lt;p&gt;I test again with more log option.&lt;/p&gt;
&lt;p&gt;1. Pairing request was received after 5 seconds.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1667807167206v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;2. RTT log at failure log.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;00&amp;gt; [00:01:02.722,015] &amp;lt;dbg&amp;gt; bt_hci_core: bt_recv: buf 0x2000ca88 len 33
00&amp;gt; [00:01:02.722,381] &amp;lt;dbg&amp;gt; bt_hci_core: rx_work_handler: Getting net_buf from queue
00&amp;gt; [00:01:02.722,412] &amp;lt;dbg&amp;gt; bt_hci_core: rx_work_handler: buf 0x2000ca88 type 1 len 33
00&amp;gt; [00:01:02.722,412] &amp;lt;dbg&amp;gt; bt_hci_core: hci_event: event 0x3e
00&amp;gt; [00:01:02.722,442] &amp;lt;dbg&amp;gt; bt_hci_core: hci_le_meta_event: subevent 0x0a
00&amp;gt; [00:01:02.722,869] &amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_le_enh_conn_complete: bt_hci_le_enh_conn_complete status 0x00 handle 0 role 1 peer 47:95:91:6C:DF:D7 (random) peer RPA 00:00:00:00:00:00
00&amp;gt; [00:01:02.723,052] &amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_le_enh_conn_complete: local RPA 00:00:00:00:00:00
00&amp;gt; [00:01:02.723,297] &amp;lt;dbg&amp;gt; bt_keys: bt_keys_find_irk: 47:95:91:6C:DF:D7 (random)
00&amp;gt; [00:01:02.723,541] &amp;lt;dbg&amp;gt; bt_keys: bt_keys_find_irk: No IRK for 47:95:91:6C:DF:D7 (random)
00&amp;gt; [00:01:02.723,602] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_ref: handle 0 ref 1 -&amp;gt; 2
00&amp;gt; [00:01:02.723,632] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_unref: handle 0 ref 2 -&amp;gt; 1
00&amp;gt; [00:01:02.723,663] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_ref: handle 0 ref 1 -&amp;gt; 2
00&amp;gt; [00:01:02.723,724] &amp;lt;dbg&amp;gt; bt_adv: bt_le_adv_resume: Host cannot resume connectable advertising (-12)
00&amp;gt; [00:01:02.723,754] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_set_state: connecting-adv -&amp;gt; connected
00&amp;gt; [00:01:02.723,785] &amp;lt;dbg&amp;gt; bt_l2cap: l2cap_accept: conn 0x20005870 handle 0
00&amp;gt; [00:01:02.723,846] &amp;lt;dbg&amp;gt; bt_l2cap: bt_l2cap_chan_add: conn 0x20005870 chan 0x20006174
00&amp;gt; [00:01:02.723,876] &amp;lt;dbg&amp;gt; bt_l2cap: l2cap_connected: ch 0x20006174 cid 0x0005
00&amp;gt; [00:01:02.723,876] &amp;lt;dbg&amp;gt; bt_smp: bt_smp_accept: bt_smp_accept 5811 conn 0x20005870 handle 0
00&amp;gt; [00:01:02.723,907] &amp;lt;dbg&amp;gt; bt_l2cap: bt_l2cap_chan_add: conn 0x20005870 chan 0x20005b2c
00&amp;gt; [00:01:02.723,907] &amp;lt;dbg&amp;gt; bt_smp: bt_smp_connected: bt_smp_connected: chan 0x20005b2c cid 0x0006
00&amp;gt; [00:01:02.724,029] &amp;lt;dbg&amp;gt; bt_l2cap: bt_l2cap_chan_add: conn 0x20005870 chan 0x2000c124
00&amp;gt; [00:01:02.724,273] &amp;lt;dbg&amp;gt; bt_keys: bt_keys_find_addr: 47:95:91:6C:DF:D7 (random)
00&amp;gt; [00:01:02.724,395] &amp;lt;dbg&amp;gt; bt_smp: smp_send_security_req: smp_send_security_req enter
00&amp;gt; [00:01:02.724,639] &amp;lt;dbg&amp;gt; bt_keys: bt_keys_get_addr: 47:95:91:6C:DF:D7 (random)
00&amp;gt; [00:01:02.724,884] &amp;lt;dbg&amp;gt; bt_keys: bt_keys_get_addr: created 0x20006274 for 47:95:91:6C:DF:D7 (random)
00&amp;gt; [00:01:02.725,006] &amp;lt;dbg&amp;gt; bt_hci_core: process_events: count 2
00&amp;gt; [00:01:02.725,067] &amp;lt;dbg&amp;gt; bt_hci_core: process_events: ev-&amp;gt;state 0
00&amp;gt; [00:01:02.725,097] &amp;lt;dbg&amp;gt; bt_hci_core: process_events: ev-&amp;gt;state 1
00&amp;gt; [00:01:02.725,128] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_prepare_events: bt_conn_prepare_events
00&amp;gt; [00:01:02.725,189] &amp;lt;dbg&amp;gt; bt_conn: conn_prepare_events: Adding conn 0x20005870 to poll list
00&amp;gt; [00:01:02.725,219] &amp;lt;dbg&amp;gt; bt_hci_core: hci_tx_thread: Calling k_poll with 3 events
00&amp;gt; [00:01:02.725,494] &amp;lt;dbg&amp;gt; bt_smp: smp_init: smp_init prnd c4ab98dceec5db2f0c4f768e84dcd8be
00&amp;gt; [00:01:02.725,585] &amp;lt;dbg&amp;gt; bt_l2cap: bt_l2cap_send_cb: conn 0x20005870 cid 6 len 2
00&amp;gt; [00:01:02.725,616] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_send_cb: conn handle 0 buf len 6 cb (nil) user_data (nil)
00&amp;gt; [00:01:02.725,708] &amp;lt;dbg&amp;gt; bt_smp: smp_send_security_req: smp_send_security_req exit
00&amp;gt; [00:01:02.725,952] &amp;lt;inf&amp;gt; peripheral_uart: ####Connected 47:95:91:6C:DF:D7 (random)
00&amp;gt; [00:01:02.725,952] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_ref: handle 0 ref 2 -&amp;gt; 3
00&amp;gt; [00:01:02.725,982] &amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_create: opcode 0x2016 param_len 2
00&amp;gt; [00:01:02.726,043] &amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_create: buf 0x2000cba0
00&amp;gt; [00:01:02.726,074] &amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_send_sync: buf 0x2000cba0 opcode 0x2016 len 5
00&amp;gt; [00:01:02.726,165] &amp;lt;dbg&amp;gt; bt_hci_core: process_events: count 3
00&amp;gt; [00:01:02.726,165] &amp;lt;dbg&amp;gt; bt_hci_core: process_events: ev-&amp;gt;state 4
00&amp;gt; [00:01:02.726,196] &amp;lt;dbg&amp;gt; bt_hci_core: send_cmd: calling net_buf_get
00&amp;gt; [00:01:02.726,196] &amp;lt;dbg&amp;gt; bt_hci_core: send_cmd: calling sem_take_wait
00&amp;gt; [00:01:02.726,226] &amp;lt;dbg&amp;gt; bt_hci_core: send_cmd: Sending command 0x2016 (buf 0x2000cba0) to driver
00&amp;gt; [00:01:02.726,287] &amp;lt;dbg&amp;gt; bt_hci_core: bt_send: buf 0x2000cba0 len 5 type 0
00&amp;gt; [00:01:02.726,348] &amp;lt;dbg&amp;gt; bt_hci_core: process_events: ev-&amp;gt;state 0
00&amp;gt; [00:01:02.726,348] &amp;lt;dbg&amp;gt; bt_hci_core: process_events: ev-&amp;gt;state 4
00&amp;gt; [00:01:02.726,409] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_process_tx: conn 0x20005870
00&amp;gt; [00:01:02.726,440] &amp;lt;dbg&amp;gt; bt_conn: send_buf: conn 0x20005870 buf 0x2000cbd8 len 6
00&amp;gt; [00:01:02.726,470] &amp;lt;dbg&amp;gt; bt_conn: send_frag: conn 0x20005870 buf 0x2000cbd8 len 6 flags 0x02
00&amp;gt; [00:01:02.726,470] &amp;lt;dbg&amp;gt; bt_hci_core: bt_send: buf 0x2000cbd8 len 10 type 2
00&amp;gt; [00:01:02.726,654] &amp;lt;dbg&amp;gt; bt_hci_core: bt_recv: buf 0x2000cba0 len 6
00&amp;gt; [00:01:02.726,684] &amp;lt;dbg&amp;gt; bt_hci_core: hci_cmd_status: opcode 0x2016
00&amp;gt; [00:01:02.726,684] &amp;lt;dbg&amp;gt; bt_hci_core: hci_cmd_done: opcode 0x2016 status 0x00 buf 0x2000cba0
00&amp;gt; [00:01:02.726,959] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_prepare_events: bt_conn_prepare_events
00&amp;gt; [00:01:02.727,020] &amp;lt;dbg&amp;gt; bt_conn: conn_prepare_events: Adding conn 0x20005870 to poll list
00&amp;gt; [00:01:02.727,050] &amp;lt;dbg&amp;gt; bt_hci_core: hci_tx_thread: Calling k_poll with 3 events
00&amp;gt; [00:01:02.727,081] &amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_send_sync: rsp 0x2000cba0 opcode 0x2016 len 0
00&amp;gt; [00:01:02.727,142] &amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_create: opcode 0x2032 param_len 7
00&amp;gt; [00:01:02.727,172] &amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_create: buf 0x2000cba0
00&amp;gt; [00:01:02.727,203] &amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_send_sync: buf 0x2000cba0 opcode 0x2032 len 10
00&amp;gt; [00:01:02.727,294] &amp;lt;dbg&amp;gt; bt_hci_core: process_events: count 3
00&amp;gt; [00:01:02.727,325] &amp;lt;dbg&amp;gt; bt_hci_core: process_events: ev-&amp;gt;state 4
00&amp;gt; [00:01:02.727,325] &amp;lt;dbg&amp;gt; bt_hci_core: send_cmd: calling net_buf_get
00&amp;gt; [00:01:02.727,386] &amp;lt;dbg&amp;gt; bt_hci_core: send_cmd: calling sem_take_wait
00&amp;gt; [00:01:02.727,416] &amp;lt;dbg&amp;gt; bt_hci_core: send_cmd: Sending command 0x2032 (buf 0x2000cba0) to driver
00&amp;gt; [00:01:02.727,416] &amp;lt;dbg&amp;gt; bt_hci_core: bt_send: buf 0x2000cba0 len 10 type 0
00&amp;gt; [00:01:02.727,539] &amp;lt;dbg&amp;gt; bt_hci_core: process_events: ev-&amp;gt;state 0
00&amp;gt; [00:01:02.727,539] &amp;lt;dbg&amp;gt; bt_hci_core: process_events: ev-&amp;gt;state 0
00&amp;gt; [00:01:02.727,630] &amp;lt;dbg&amp;gt; bt_hci_core: bt_recv: buf 0x2000cba0 len 6
00&amp;gt; [00:01:02.727,661] &amp;lt;dbg&amp;gt; bt_hci_core: hci_cmd_status: opcode 0x2032
00&amp;gt; [00:01:02.727,661] &amp;lt;dbg&amp;gt; bt_hci_core: hci_cmd_done: opcode 0x2032 status 0x00 buf 0x2000cba0
00&amp;gt; [00:01:02.727,935] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_prepare_events: bt_conn_prepare_events
00&amp;gt; [00:01:02.727,996] &amp;lt;dbg&amp;gt; bt_conn: conn_prepare_events: Adding conn 0x20005870 to poll list
00&amp;gt; [00:01:02.728,027] &amp;lt;dbg&amp;gt; bt_hci_core: hci_tx_thread: Calling k_poll with 3 events
00&amp;gt; [00:01:02.728,057] &amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_send_sync: rsp 0x2000cba0 opcode 0x2032 len 0
00&amp;gt; [00:01:02.728,149] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_unref: handle 0 ref 3 -&amp;gt; 2
00&amp;gt; [00:01:06.699,066] &amp;lt;dbg&amp;gt; bt_hci_core: bt_recv: buf 0x2000ca18 len 7
00&amp;gt; [00:01:06.699,096] &amp;lt;dbg&amp;gt; bt_hci_core: hci_num_completed_packets: num_handles 1
00&amp;gt; [00:01:06.699,127] &amp;lt;dbg&amp;gt; bt_hci_core: hci_num_completed_packets: handle 0 count 1
00&amp;gt; [00:01:06.699,127] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_ref: handle 0 ref 2 -&amp;gt; 3
00&amp;gt; [00:01:06.699,340] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_unref: handle 0 ref 3 -&amp;gt; 2
00&amp;gt; [00:01:06.943,115] &amp;lt;dbg&amp;gt; bt_hci_core: bt_recv: buf 0x2000ca88 len 15
00&amp;gt; [00:01:06.943,389] &amp;lt;dbg&amp;gt; bt_hci_core: rx_work_handler: Getting net_buf from queue
00&amp;gt; [00:01:06.943,450] &amp;lt;dbg&amp;gt; bt_hci_core: rx_work_handler: buf 0x2000ca88 type 3 len 15
00&amp;gt; [00:01:06.943,450] &amp;lt;dbg&amp;gt; bt_hci_core: hci_acl: buf 0x2000ca88
00&amp;gt; [00:01:06.943,481] &amp;lt;dbg&amp;gt; bt_hci_core: hci_acl: handle 0 len 11 flags 2
00&amp;gt; [00:01:06.943,511] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_ref: handle 0 ref 2 -&amp;gt; 3
00&amp;gt; [00:01:06.943,572] &amp;lt;dbg&amp;gt; bt_conn: tx_notify: conn 0x20005870
00&amp;gt; [00:01:06.943,603] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_recv: handle 0 len 11 flags 02
00&amp;gt; [00:01:06.943,603] &amp;lt;dbg&amp;gt; bt_conn: bt_acl_recv: First, len 11 final 7
00&amp;gt; [00:01:06.943,634] &amp;lt;dbg&amp;gt; bt_conn: bt_acl_recv: Successfully parsed 11 byte L
00&amp;gt; [00:01:10.160,369] &amp;lt;dbg&amp;gt; bt_hci_core: bt_recv: buf 0x2000ca88 len 15
00&amp;gt; [00:01:10.160,827] &amp;lt;dbg&amp;gt; bt_hci_core: rx_work_handler: Getting net_buf from queue
00&amp;gt; [00:01:10.160,827] &amp;lt;dbg&amp;gt; bt_hci_core: rx_work_handler: buf 0x2000ca88 type 3 len 15
00&amp;gt; [00:01:10.160,888] &amp;lt;dbg&amp;gt; bt_hci_core: hci_acl: buf 0x2000ca88
00&amp;gt; [00:01:10.160,919] &amp;lt;dbg&amp;gt; bt_hci_core: hci_acl: handle 0 len 11 flags 2
00&amp;gt; [00:01:10.160,919] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_ref: handle 0 ref 2 -&amp;gt; 3
00&amp;gt; [00:01:10.160,949] &amp;lt;dbg&amp;gt; bt_conn: tx_notify: conn 0x20005870
00&amp;gt; [00:01:10.160,949] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_recv: handle 0 len 11 flags 02
00&amp;gt; [00:01:10.161,010] &amp;lt;dbg&amp;gt; bt_conn: bt_acl_recv: First, len 11 final 7
00&amp;gt; [00:01:10.161,041] &amp;lt;dbg&amp;gt; bt_conn: bt_acl_recv: Successfully parsed 11 byte L2CAP packet
00&amp;gt; [00:01:10.161,041] &amp;lt;dbg&amp;gt; bt_l2cap: bt_l2cap_recv: Packet for CID 6 len 7
00&amp;gt; [00:01:10.161,071] &amp;lt;dbg&amp;gt; bt_l2cap: l2cap_chan_recv: chan 0x20005b2c len 7
00&amp;gt; [00:01:10.161,132] &amp;lt;dbg&amp;gt; bt_smp: bt_smp_recv: Received SMP code 0x01 len 6
00&amp;gt; [00:01:10.161,163] &amp;lt;dbg&amp;gt; bt_smp: smp_pairing_req: smp_pairing_req
00&amp;gt; [00:01:10.161,163] &amp;lt;dbg&amp;gt; bt_smp: smp_pairing_req: smp_pairing_req #2
00&amp;gt; [00:01:10.161,193] &amp;lt;dbg&amp;gt; bt_smp: smp_pairing_req: smp_pairing_req #3
00&amp;gt; [00:01:10.161,224] &amp;lt;dbg&amp;gt; bt_smp: smp_pairing_req: smp_pairing_req #4
00&amp;gt; [00:01:10.161,285] &amp;lt;dbg&amp;gt; bt_smp: smp_pairing_req: smp_pairing_req #5
00&amp;gt; [00:01:10.161,285] &amp;lt;dbg&amp;gt; bt_smp: smp_pairing_req: smp_pairing_req #6
00&amp;gt; [00:01:10.161,285] &amp;lt;dbg&amp;gt; bt_smp: smp_pairing_req: smp_pairing_req #7
00&amp;gt; [00:01:10.161,315] &amp;lt;dbg&amp;gt; bt_smp: send_pairing_rsp: send_pairing_rsp enter
00&amp;gt; [00:01:10.161,376] &amp;lt;dbg&amp;gt; bt_l2cap: bt_l2cap_send_cb: conn 0x20005870 cid 6 len 7
00&amp;gt; [00:01:10.161,407] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_send_cb: conn handle 0 buf len 11 cb (nil) user_data (nil)
00&amp;gt; [00:01:10.161,437] &amp;lt;dbg&amp;gt; bt_smp: send_pairing_rsp: send_pairing_rsp exit
00&amp;gt; [00:01:10.161,529] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_unref: handle 0 ref 3 -&amp;gt; 2
00&amp;gt; [00:01:10.161,560] &amp;lt;dbg&amp;gt; bt_hci_core: process_events: count 3
00&amp;gt; [00:01:10.161,560] &amp;lt;dbg&amp;gt; bt_hci_core: process_events: ev-&amp;gt;state 0
00&amp;gt; [00:01:10.161,621] &amp;lt;dbg&amp;gt; bt_hci_core: process_events: ev-&amp;gt;state 0
00&amp;gt; [00:01:10.161,651] &amp;lt;dbg&amp;gt; bt_hci_core: process_events: ev-&amp;gt;state 4
00&amp;gt; [00:01:10.161,651] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_process_tx: conn 0x20005870
00&amp;gt; [00:01:10.161,682] &amp;lt;dbg&amp;gt; bt_conn: send_buf: conn 0x20005870 buf 0x2000cbd8 len 11
00&amp;gt; [00:01:10.161,712] &amp;lt;dbg&amp;gt; bt_conn: send_frag: conn 0x20005870 buf 0x2000cbd8 len 11 flags 0x02
00&amp;gt; [00:01:10.161,773] &amp;lt;dbg&amp;gt; bt_hci_core: bt_send: buf 0x2000cbd8 len 15 type 2
00&amp;gt; [00:01:10.161,865] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_prepare_events: bt_conn_prepare_events
00&amp;gt; [00:01:10.161,895] &amp;lt;dbg&amp;gt; bt_conn: conn_prepare_events: Adding conn 0x20005870 to poll list
00&amp;gt; [00:01:10.161,895] &amp;lt;dbg&amp;gt; bt_hci_core: hci_tx_thread: Calling k_poll with 3 events
00&amp;gt; [00:01:11.915,283] &amp;lt;dbg&amp;gt; bt_hci_core: bt_recv: buf 0x2000ca18 len 7
00&amp;gt; [00:01:11.915,313] &amp;lt;dbg&amp;gt; bt_hci_core: hci_num_completed_packets: num_handles 1
00&amp;gt; [00:01:11.915,466] &amp;lt;dbg&amp;gt; bt_hci_core: hci_num_completed_packets: handle 0 count 1
00&amp;gt; [00:01:11.915,496] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_ref: handle 0 ref 2 -&amp;gt; 3
00&amp;gt; [00:01:11.915,527] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_unref: handle 0 ref 3 -&amp;gt; 2
00&amp;gt; [00:01:11.915,771] &amp;lt;dbg&amp;gt; bt_hci_core: bt_recv: buf 0x2000ca88 len 6
00&amp;gt; [00:01:11.915,771] &amp;lt;dbg&amp;gt; bt_hci_core: hci_disconn_complete_prio: hci_disconn_complete_prio status 0x00 handle 0 reason 0x28
00&amp;gt; [00:01:11.915,832] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_ref: handle 0 ref 2 -&amp;gt; 3
00&amp;gt; [00:01:11.915,863] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_set_state: connected -&amp;gt; disconnect-complete
00&amp;gt; [00:01:11.915,893] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_unref: handle 0 ref 3 -&amp;gt; 2
00&amp;gt; [00:01:11.916,137] &amp;lt;dbg&amp;gt; bt_hci_core: rx_work_handler: Getting net_buf from queue
00&amp;gt; [00:01:11.916,229] &amp;lt;dbg&amp;gt; bt_hci_core: rx_work_handler: buf 0x2000ca88 type 1 len 6
00&amp;gt; [00:01:11.916,229] &amp;lt;dbg&amp;gt; bt_hci_core: hci_event: event 0x05
00&amp;gt; [00:01:11.916,259] &amp;lt;dbg&amp;gt; bt_hci_core: hci_disconn_complete: status 0x00 handle 0 reason 0x28
00&amp;gt; [00:01:11.916,259] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_ref: handle 0 ref 2 -&amp;gt; 3
00&amp;gt; [00:01:11.916,320] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_set_state: disconnect-complete -&amp;gt; disconnected
00&amp;gt; [00:01:11.916,351] &amp;lt;dbg&amp;gt; bt_conn: tx_notify: conn 0x20005870
00&amp;gt; [00:01:11.916,381] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_unref: handle 0 ref 3 -&amp;gt; 2
00&amp;gt; [00:01:11.916,473] &amp;lt;dbg&amp;gt; bt_hci_core: process_events: count 3
00&amp;gt; [00:01:11.916,503] &amp;lt;dbg&amp;gt; bt_hci_core: process_events: ev-&amp;gt;state 0
00&amp;gt; [00:01:11.916,503] &amp;lt;dbg&amp;gt; bt_hci_core: process_events: ev-&amp;gt;state 1
00&amp;gt; [00:01:11.916,503] &amp;lt;dbg&amp;gt; bt_hci_core: process_events: ev-&amp;gt;state 0
00&amp;gt; [00:01:11.916,595] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_prepare_events: bt_conn_prepare_events
00&amp;gt; [00:01:11.916,625] &amp;lt;dbg&amp;gt; bt_hci_core: hci_tx_thread: Calling k_poll with 2 events
00&amp;gt; [00:01:11.916,717] &amp;lt;dbg&amp;gt; bt_conn: deferred_work: conn 0x20005870
00&amp;gt; [00:01:11.916,748] &amp;lt;dbg&amp;gt; bt_l2cap: bt_l2cap_chan_del: conn 0x20005870 chan 0x20006174
00&amp;gt; [00:01:11.916,748] &amp;lt;dbg&amp;gt; bt_l2cap: l2cap_disconnected: ch 0x20006174 cid 0x0005
00&amp;gt; [00:01:11.916,809] &amp;lt;dbg&amp;gt; bt_l2cap: bt_l2cap_chan_del: conn 0x20005870 chan 0x20005b2c
00&amp;gt; [00:01:11.916,839] &amp;lt;dbg&amp;gt; bt_smp: bt_smp_disconnected: bt_smp_disconnected chan 0x20005b2c cid 0x0006
00&amp;gt; [00:01:11.916,839] &amp;lt;dbg&amp;gt; bt_smp: smp_pairing_complete: smp.c 1863 status 0x8
00&amp;gt; [00:01:11.917,083] &amp;lt;dbg&amp;gt; bt_keys: bt_keys_clear: 47:95:91:6C:DF:D7 (random) (keys 0x0000)
00&amp;gt; [00:01:11.917,358] &amp;lt;dbg&amp;gt; bt_keys: bt_keys_clear: Deleting key bt/keys/4795916cdfd71
00&amp;gt; [00:01:11.917,449] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_security_changed: conn.c #1 1986 hci_err(0x1f) bt_security_err(9)
00&amp;gt; [00:01:11.917,480] &amp;lt;dbg&amp;gt; bt_l2cap: bt_l2cap_security_changed: l2cap.c #1 hci_status(1f)
00&amp;gt; [00:01:11.917,510] &amp;lt;dbg&amp;gt; bt_smp: bt_smp_encrypt_change: chan 0x20005b2c conn 0x20005870 handle 0 encrypt 0x00 hci status 0x1f
00&amp;gt; [00:01:11.917,785] &amp;lt;wrn&amp;gt; peripheral_uart: Security failed: 47:95:91:6C:DF:D7 (random) level 1 err 9
00&amp;gt; [00:01:11.918,029] &amp;lt;inf&amp;gt; peripheral_uart: Pairing failed conn: 47:95:91:6C:DF:D7 (random), reason 9
00&amp;gt; [00:01:11.918,273] &amp;lt;dbg&amp;gt; bt_keys: bt_keys_clear: 00:00:00:00:00:00 (public) (keys 0x0000)
00&amp;gt; [00:01:11.918,518] &amp;lt;dbg&amp;gt; bt_keys: bt_keys_clear: Deleting key bt/keys/0000000000000
00&amp;gt; [00:01:11.918,670] &amp;lt;dbg&amp;gt; bt_l2cap: bt_l2cap_chan_del: conn 0x20005870 chan 0x2000c124
00&amp;gt; [00:01:11.919,006] &amp;lt;dbg&amp;gt; bt_keys: bt_keys_find_addr: 47:95:91:6C:DF:D7 (random)
00&amp;gt; [00:01:11.919,250] &amp;lt;dbg&amp;gt; bt_keys: bt_keys_find_addr: 47:95:91:6C:DF:D7 (random)
00&amp;gt; [00:01:11.919,525] &amp;lt;inf&amp;gt; peripheral_uart: Disconnected: 47:95:91:6C:DF:D7 (random) (reason 40)
00&amp;gt; [00:01:11.919,525] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_unref: handle 0 ref 2 -&amp;gt; 1
00&amp;gt; [00:01:11.919,555] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_unref: handle 0 ref 1 -&amp;gt; 0
00&amp;gt; [00:01:11.919,616] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_unref: -bt_le_adv_resume
00&amp;gt; [00:01:11.919,677] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_set_state: disconnected -&amp;gt; connecting-adv
00&amp;gt; [00:01:11.919,677] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_ref: handle 0 ref 1 -&amp;gt; 2
00&amp;gt; [00:01:11.919,738] &amp;lt;dbg&amp;gt; bt_adv: bt_le_adv_resume: Resuming connectable advertising
00&amp;gt; [00:01:11.919,769] &amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_create: opcode 0x200a param_len 1
00&amp;gt; [00:01:11.919,799] &amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_create: buf 0x2000cba0
00&amp;gt; [00:01:11.919,799] &amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_send_sync: buf 0x2000cba0 opcode 0x200a len 4
00&amp;gt; [00:01:11.919,921] &amp;lt;dbg&amp;gt; bt_hci_core: process_events: count 2
00&amp;gt; [00:01:11.919,921] &amp;lt;dbg&amp;gt; bt_hci_core: process_events: ev-&amp;gt;state 4
00&amp;gt; [00:01:11.919,982] &amp;lt;dbg&amp;gt; bt_hci_core: send_cmd: calling net_buf_get
00&amp;gt; [00:01:11.920,013] &amp;lt;dbg&amp;gt; bt_hci_core: send_cmd: calling sem_take_wait
00&amp;gt; [00:01:11.920,013] &amp;lt;dbg&amp;gt; bt_hci_core: send_cmd: Sending command 0x200a (buf 0x2000cba0) to driver
00&amp;gt; [00:01:11.920,043] &amp;lt;dbg&amp;gt; bt_hci_core: bt_send: buf 0x2000cba0 len 4 type 0
00&amp;gt; [00:01:11.920,288] &amp;lt;dbg&amp;gt; bt_hci_core: process_events: ev-&amp;gt;state 0
00&amp;gt; [00:01:11.920,379] &amp;lt;dbg&amp;gt; bt_hci_core: bt_recv: buf 0x2000cba0 len 6
00&amp;gt; [00:01:11.920,410] &amp;lt;dbg&amp;gt; bt_hci_core: hci_cmd_complete: opcode 0x200a
00&amp;gt; [00:01:11.920,410] &amp;lt;dbg&amp;gt; bt_hci_core: hci_cmd_done: opcode 0x200a status 0x00 buf 0x2000cba0
00&amp;gt; [00:01:11.920,715] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_prepare_events: bt_conn_prepare_events
00&amp;gt; [00:01:11.920,745] &amp;lt;dbg&amp;gt; bt_hci_core: hci_tx_thread: Calling k_poll with 2 events
00&amp;gt; [00:01:11.920,776] &amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_send_sync: rsp 0x2000cba0 opcode 0x200a len 1
00&amp;gt; [00:01:11.920,837] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_unref: handle 0 ref 2 -&amp;gt; 1&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:65px;max-width:671px;" alt=" " height="65" src="https://devzone.nordicsemi.com/resized-image/__size/1342x130/__key/communityserver-discussions-components-files/4/pastedimage1667807269992v2.png" width="671" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;It seems Pairing response was sent but Android did not receive it.&lt;br /&gt;Can you please review rtt log?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK] Pairing failure</title><link>https://devzone.nordicsemi.com/thread/394286?ContentTypeID=1</link><pubDate>Mon, 07 Nov 2022 00:09:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ca3450b-c5a5-43d3-9b9b-5b35ff3ced4e</guid><dc:creator>Tim Hwang</dc:creator><description>&lt;p&gt;Hello Hieu.&lt;br /&gt;&lt;br /&gt;1. NFC&lt;br /&gt;I could reproduce this issue without NFC tagging. Let&amp;#39;s discuss later. It is not root reason; I think.&lt;br /&gt;&lt;br /&gt;2. Just works (key exchange)&lt;br /&gt;1)We do need authenticated/LE secure connection. l&lt;span&gt;et&amp;#39;s discuss later as well.&lt;/span&gt;&lt;br /&gt;If Key exchange is a matter, we always see this issue. But it is not.&amp;nbsp;What do you think about that?&lt;/p&gt;
&lt;p&gt;2)&amp;nbsp;Here is pairing sequence in success&amp;nbsp;case.&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1667785738581v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Here is failure case.&lt;br /&gt;Nordic sent security request.&lt;br /&gt;MTK sent &amp;quot;Pairing request&amp;quot;, but Nordic did not send &amp;quot;Pairing response&amp;quot;&amp;nbsp;&lt;br /&gt;No&amp;nbsp;&lt;span&gt;&amp;quot;Pairing response&amp;quot;, No user confirmation.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1667785909070v2.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3. &amp;quot;&lt;span&gt;hci status value 0x1f&amp;quot;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:inherit;"&gt;Let&amp;#39;s&amp;nbsp;focus it first.&amp;nbsp;I believe you can give me any explanation.&lt;br /&gt;then&amp;nbsp;I&amp;#39;ll forward it to MTK.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK] Pairing failure</title><link>https://devzone.nordicsemi.com/thread/394186?ContentTypeID=1</link><pubDate>Fri, 04 Nov 2022 14:03:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26629656-7e2e-4ef9-9097-e5a5385636b6</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Tim,&lt;/p&gt;
[quote user="Tim Hwang"]5.&amp;nbsp;Pairing at&amp;nbsp;Security Level 4 like you are trying to do also require an out of band verification method. On your RTT log I don&amp;#39;t see signs of this happened. What did you do to achieve this?&lt;br /&gt;-&amp;gt; I cannot understand &amp;quot;out of band verification method&amp;quot;.[/quote]
&lt;p&gt;I mean an exchange of passkey or NFC tag scan.&amp;nbsp;Basically, it is a non-BLE channel to show the devices involved that they are talking to the right device, and to prevent MITM attacks.&lt;br /&gt;In your videos, I see you are already using the passkey method.&lt;/p&gt;
&lt;p&gt;The passkey check seems to pass very quick in your OKAY video.&lt;br /&gt;But in&amp;nbsp;your&amp;nbsp;NG video it also&amp;nbsp;quite quickly fails.&lt;br /&gt;How do you enter the passkey in your device?&lt;/p&gt;
&lt;p&gt;To pinpoint whether the passkey exchange is the problem, could you switch to using Just Works pairing following the steps discussed in this DevZone quesion:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/77391/allow-lesc-just-works-pairing-bonding-with-nrf-connect-sdk-zephyr-after-pressing-button"&gt;Allow LESC &amp;quot;Just Works&amp;quot; Pairing/Bonding with NRF Connect SDK (Zephyr) after pressing Button&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please let me know if it works.&lt;/p&gt;
[quote user="Tim Hwang"]6. &amp;quot;chan 0x20001f4c conn 0x20001c88 handle 0 encrypt 0x00 hci status 0x1f&amp;quot;&lt;br /&gt;You though it&amp;#39;s normal. But, in smp.c if hci_status is not zero, it is error. (please see hci_err.h)[/quote][quote user="Tim Hwang"]Where is from &amp;quot;hci status value 0x1f&amp;quot; ? Is it from MTK?&lt;br /&gt;Can you please explain it? Without it, we cannot go proceed.[/quote]
&lt;p&gt;You are right that it is indicative of an error. I&amp;#39;m sorry about missing the bad hci_status.&lt;/p&gt;
&lt;p&gt;As you can already see, the error state name is not very descriptive. I will need more time to check on this.&lt;br /&gt;What I can tell you now is that it most likely comes from the internal working of the HCI layer in the nRF device. What triggers the device to go into this state is the part that need more investigation.&lt;/p&gt;
[quote user="Tim Hwang"]We should provide MTK an air log to show their error. Then we can close this case.[/quote]
&lt;p&gt;Nothing in the sniffer trace indicates what is wrong yet, unfortunately.&lt;/p&gt;
&lt;p&gt;It seems encrypted message of the pairing exchange was not there.&lt;/p&gt;
&lt;p&gt;Could you capture one more time following the guide on this page. We need to see the pairing packages if we want to analyze through the sniffer trace.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_sniffer_ble%2FUG%2Fsniffer_ble%2Faction_paired.html"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_sniffer_ble%2FUG%2Fsniffer_ble%2Faction_paired.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK] Pairing failure</title><link>https://devzone.nordicsemi.com/thread/394058?ContentTypeID=1</link><pubDate>Fri, 04 Nov 2022 08:11:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90c69087-8e82-4c55-ad02-5a65eaa42bc0</guid><dc:creator>Tim Hwang</dc:creator><description>&lt;p&gt;I review Bluetooth core spec 5.3 regarding LE pairing sequence.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1667548066787v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;As I mentioned, MTK(Android) connect my project (Nordic), Nordic send security request when connected. (My project requires&amp;nbsp;secure connection).&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:96px;max-width:602px;" height="96" src="https://devzone.nordicsemi.com/resized-image/__size/1204x192/__key/communityserver-discussions-components-files/4/pastedimage1667547968546v3.png" width="602" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/sf650_5F00_error_5F00_03Nov2022.pcapng"&gt;devzone.nordicsemi.com/.../sf650_5F00_error_5F00_03Nov2022.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1667548163557v5.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1667548828533v6.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;But Nordic did not send &amp;quot;pairing response&amp;quot; And send &amp;quot;time out error&amp;quot; (7 seconds&amp;nbsp; later after connected)&lt;br /&gt;Where is from &amp;quot;hci status value 0x1f&amp;quot; ? Is it from MTK?&lt;br /&gt;Can you please explain it? Without it, we cannot go proceed.&lt;br /&gt;&lt;br /&gt;00&amp;gt; HS connected&lt;br /&gt;00&amp;gt; HS Connected 00:16:7F:40:1E:D0 (public)&lt;br /&gt;00&amp;gt; D: &lt;br /&gt;00&amp;gt; D: 00:16:7F:40:1E:D0 (public)&lt;br /&gt;00&amp;gt; D: prnd 7d93ec3b4828ce3b4210d054f903653a&lt;br /&gt;00&amp;gt; D: chan 0x20001f54 cid 0x0006&lt;br /&gt;00&amp;gt; D: status 0x8&lt;br /&gt;00&amp;gt; D: chan 0x20001f54 conn 0x20001c90 handle 0 encrypt 0x00 &lt;span style="color:#ff0000;"&gt;hci status 0x1f&lt;/span&gt;&lt;br /&gt;00&amp;gt; Security failed: 00:16:7F:40:1E:D0 (public) &lt;span style="color:#ff0000;"&gt;level 1 err 9&lt;/span&gt;&lt;span style="font-size:75%;"&gt;&lt;span style="color:#ff0000;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK] Pairing failure</title><link>https://devzone.nordicsemi.com/thread/394029?ContentTypeID=1</link><pubDate>Fri, 04 Nov 2022 00:44:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a83dd2b2-d0e4-424e-bb40-a7377ad8f221</guid><dc:creator>Tim Hwang</dc:creator><description>&lt;p&gt;1. The link was wrong.&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/91671/nrf-connect-sdk-force-to-make-pairing-bonding"&gt;[nRF Connect SDK]Force to make pairing(bonding)&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In original case, I did lots of test to know root reason. Now it made us confused.&lt;br /&gt;In this case, I will do test one scenario to make it simple.&lt;br /&gt;Here is NG video and normal operation video clip.&lt;br /&gt;(Android reboot-App launch-connect-failed: NG.mp4, most of time it fails)&lt;br /&gt;then I retry to connect, it will be okay : OKAY.mp4, &lt;span&gt;most of time it&amp;nbsp;&lt;/span&gt;succeeds)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/SF650_5F00_NG.mp4"&gt;devzone.nordicsemi.com/.../SF650_5F00_NG.mp4&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/SF650_5F00_OKAY.mp4"&gt;devzone.nordicsemi.com/.../SF650_5F00_OKAY.mp4&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. Does MTK mean MediaTek? Yes&lt;br /&gt;&lt;br /&gt;3.&amp;nbsp;What reasoning ...&lt;br /&gt;Because they initiate paring process, but they believe Nordic made timeout error.&lt;br /&gt;&lt;br /&gt;4.&amp;nbsp;On my end, I attempted to ...&lt;br /&gt;Of course, you did. We have this issue with MTK.&lt;br /&gt;&lt;br /&gt;5.&amp;nbsp;Pairing at&amp;nbsp;Security Level 4 like you are trying to do also require an out of band verification method. On your RTT log I don&amp;#39;t see signs of this happened. What did you do to achieve this?&lt;br /&gt;-&amp;gt; I cannot understand &amp;quot;out of band verification method&amp;quot;.&lt;br /&gt;&lt;br /&gt;6. &amp;quot;chan 0x20001f4c conn 0x20001c88 handle 0 encrypt 0x00 hci status 0x1f&amp;quot;&lt;br /&gt;You though it&amp;#39;s normal. But, in smp.c if hci_status is not zero, it is error. (please see hci_err.h)&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1667519425737v1.png" /&gt;&lt;img alt=" " height="113" src="https://devzone.nordicsemi.com/resized-image/__size/714x226/__key/communityserver-discussions-components-files/4/pastedimage1667519508787v3.png" width="357" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;00&amp;gt; D: conn 0x20001c90 handle 0
00&amp;gt; D: chan 0x20001f54 cid 0x0006
00&amp;gt; D: 00:16:7F:40:1E:D0 (public)
00&amp;gt; Notification has been turned on
00&amp;gt; bt_send_enabled 0 
00&amp;gt; negoDone 0 txEnable 1
00&amp;gt; Connected secmode 4
00&amp;gt; HS connected
00&amp;gt; HS Connected 00:16:7F:40:1E:D0 (public)
00&amp;gt; D: 
00&amp;gt; D: 00:16:7F:40:1E:D0 (public)
00&amp;gt; D: prnd a19413734643c439e2bad8f3f921846a
00&amp;gt; Connection parameters updated.
00&amp;gt;  interval: 6, latency: 0, timeout: 500
00&amp;gt; Conn params updated: interval 7 ms, latency 0, timeout: 5000 ms
00&amp;gt; Connection parameters updated.
00&amp;gt;  interval: 39, latency: 0, timeout: 500
00&amp;gt; Conn params updated: interval 48 ms, latency 0, timeout: 5000 ms
00&amp;gt; D: Received SMP code 0x01 len 6
00&amp;gt; D: 
00&amp;gt; pairing_accept conn: 00:16:7F:40:1E:D0 (public) 
00&amp;gt; io_capability: 4 
00&amp;gt; auth_req: 2d 
00&amp;gt; D: Received SMP code 0x0c len 64
00&amp;gt; D: 
00&amp;gt; D: u d541501fd159ed3e4bd76b7b042c91733dfc7eadb9a01e8c7eef0d3d43b126ec
00&amp;gt; D: v 8d0dd29fd4da1ff910e55ff44e5b686380ce8177005d16ef098fa57f5ecd35c8
00&amp;gt; D: x a19413734643c439e2bad8f3f921846a z 0x0
00&amp;gt; D: res 79124ee59ce77d61a5d284cdd5b357e1
00&amp;gt; D: 0x2000a5ad
00&amp;gt; D: Received SMP code 0x04 len 16
00&amp;gt; D: 
00&amp;gt; D: u 8d0dd29fd4da1ff910e55ff44e5b686380ce8177005d16ef098fa57f5ecd35c8
00&amp;gt; D: v d541501fd159ed3e4bd76b7b042c91733dfc7eadb9a01e8c7eef0d3d43b126ec
00&amp;gt; D: x 3cea4ad0b9d700877bb03726c5cc6b87
00&amp;gt; D: y a19413734643c439e2bad8f3f921846a
00&amp;gt; D: res ec01b336020cb1e5929e2860548e3ca3
00&amp;gt; D: passkey 607779
00&amp;gt; Passkey for 00:16:7F:40:1E:D0 (public): 607779 
00&amp;gt; Press Button 1 to confirm, Button 2 to reject.
00&amp;gt; hs_pair_accept 1
00&amp;gt; Numeric Match, conn 0x20001c90
00&amp;gt; D: Received SMP code 0x0d len 16
00&amp;gt; D: 
00&amp;gt; D: w ea925ab44684d77e5708f05b1f955fe49ad1732bb218016f606d899e8197dfe7
00&amp;gt; D: n1 3cea4ad0b9d700877bb03726c5cc6b87
00&amp;gt; D: n2 a19413734643c439e2bad8f3f921846a
00&amp;gt; D: t f523ab78aa4b5bb443afd804a6e9efa8
00&amp;gt; D: mackey 5e7f9fc30f9c3deee8a4b0b7cd431e0d
00&amp;gt; D: ltk f928202406cbac3dcf53dc240639a032
00&amp;gt; D: w 0d1e43cdb7b0a4e8ee3d9c0fc39f7f5e
00&amp;gt; D: n1 a19413734643c439e2bad8f3f921846a
00&amp;gt; D: n2 3cea4ad0b9d700877bb03726c5cc6b87
00&amp;gt; D: r 00000000000000000000000000000000
00&amp;gt; D: io_cap 01000d
00&amp;gt; D: a1 006415417f1600
00&amp;gt; D: a2 012e1ed387dc42
00&amp;gt; D: res 93a1ff538a2a8802ce3c90ceb014324d
00&amp;gt; D: w 0d1e43cdb7b0a4e8ee3d9c0fc39f7f5e
00&amp;gt; D: n1 3cea4ad0b9d700877bb03726c5cc6b87
00&amp;gt; D: n2 a19413734643c439e2bad8f3f921846a
00&amp;gt; D: r 00000000000000000000000000000000
00&amp;gt; D: io_cap 04002d
00&amp;gt; D: a1 012e1ed387dc42
00&amp;gt; D: a2 006415417f1600
00&amp;gt; D: res a0f3e47af5b51c5892c01ae535d8d1e0
00&amp;gt; D: 
00&amp;gt; D: 00:16:7F:40:1E:D0 (public) (keys 0x0022)
00&amp;gt; D: Deleting key bt/keys/00167f401ed00
00&amp;gt; D: 00:16:7F:40:1E:D0 (public)
00&amp;gt; D: created 0x200029e4 for 00:16:7F:40:1E:D0 (public)
00&amp;gt; D: chan 0x20001f54 conn 0x20001c90 handle 0 encrypt 0x01 hci status 0x00
00&amp;gt; Security changed: 00:16:7F:40:1E:D0 (public) level 4 
00&amp;gt; connect_done secmode(4)
00&amp;gt; D: 00:16:7F:40:1E:D0 (public)
00&amp;gt; param_update_handler 1
00&amp;gt; ## phy(0) dl(0) int(0) mtu(0)
00&amp;gt; reschedule param_work
00&amp;gt; param_update in_pairing(1)
00&amp;gt; negoDone 0 txEnable 1 
00&amp;gt; D: Received SMP code 0x08 len 16
00&amp;gt; D: 
00&amp;gt; D: type 2 00:16:7F:40:1E:D0 (public)
00&amp;gt; D: type 2 00:16:7F:40:1E:D0 (public)
00&amp;gt; D: 00:16:7F:40:1E:D0 (public)
00&amp;gt; D: Received SMP code 0x09 len 7
00&amp;gt; D: identity 00:16:7F:40:1E:D0 (public)
00&amp;gt; D: type 2 00:16:7F:40:1E:D0 (public)
00&amp;gt; D: type 2 00:16:7F:40:1E:D0 (public)
00&amp;gt; D: status 0x0
00&amp;gt; I: SC LTK: 0xf928202406cbac3dcf53dc240639a032
00&amp;gt; D: Stored keys for 00:16:7F:40:1E:D0 (public) (bt/keys/00167f401ed00)
00&amp;gt; Pairing completed: 00:16:7F:40:1E:D0 (public), bonded: 1 
00&amp;gt; param_update_handler 1
00&amp;gt; ## phy(0) dl(0) int(0) mtu(0)
00&amp;gt; reschedule param_work
00&amp;gt; param_update in_pairing(0)
00&amp;gt; Connection parameters update requested (err: 0)
00&amp;gt; Phy update requested
00&amp;gt; MTU exchange pending
00&amp;gt; data_len requested
00&amp;gt; negoDone 0 txEnable 1 
00&amp;gt; LE data len updated: TX (len: 251 time: 2120) RX (len: 247 time: 2120)
00&amp;gt; MTU exchange done. 244
00&amp;gt; D: 00:16:7F:40:1E:D0 (public)
00&amp;gt; Connection parameters updated.
00&amp;gt;  interval: 15, latency: 0, timeout: 400
00&amp;gt; Conn params updated: interval 18 ms, latency 0, timeout: 4000 ms
00&amp;gt; LE PHY updated: TX PHY LE 2M, RX PHY LE 2M
00&amp;gt; param_update_handler 1
00&amp;gt; ## phy(2) dl(251) int(15) mtu(244)
00&amp;gt; negoDone 1 txEnable 1 
00&amp;gt; connect_done secmode(4)&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is the log it paired and connected well. And hci status 0x0&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;00&amp;gt; D: chan 0x20001f54 conn 0x20001c90 handle 0 encrypt 0x01 &lt;strong&gt;hci status 0x00&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;7.&amp;nbsp;What module did you ...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2783.prj.conf.txt"&gt;devzone.nordicsemi.com/.../2783.prj.conf.txt&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;span&gt;8. Is there a specific sample ...&lt;/span&gt;&lt;br /&gt;&lt;span&gt;As I mentioned, I use peripheral_uart with custom UUID.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;I could reproduce this issue with original sample&amp;nbsp;&lt;/span&gt;&lt;span&gt;peripheral_uart with&lt;/span&gt;&lt;br /&gt;&lt;span&gt;adding two lines when connected.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;bt_set_bondable(true);&lt;/span&gt;&lt;br /&gt;&lt;span&gt;bt_conn_set_security(conn, BT_SECURITY_L4);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;9.&amp;nbsp;What SDK version ..&lt;br /&gt;&lt;/span&gt;&lt;span&gt;As I mentioned, I use NCS 2.0.0&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;-------------------------------------------------------------------------------------&lt;br /&gt;We should provide MTK an air log to show their error. Then we can close this case.&lt;br /&gt;Thanks!&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK] Pairing failure</title><link>https://devzone.nordicsemi.com/thread/393995?ContentTypeID=1</link><pubDate>Thu, 03 Nov 2022 16:44:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cef6fbc9-7a7b-45ec-8e82-61c58a51bf37</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Tim,&lt;/p&gt;
&lt;p&gt;Sorry but I feel confused a bit about your situation here.&lt;/p&gt;
[quote user=""]original case&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/93255/nrf-connect-sdk-how-to-force-to-wake-up-not-to-go-sleep-mode"&gt;[nRF Connect SDK] How to force to wake up (not to go sleep mode) - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone (nordicsemi.com)&lt;/a&gt;[/quote]
&lt;p&gt;I am not sure how that case is related to this current question. Could you please elaborate?&lt;/p&gt;
[quote user=""]Much of case my Android (MTK) failed to make pairing. (Especially right after android rebooted)&amp;nbsp;&lt;br /&gt;&lt;br /&gt;MTK have told me Nordic should provide solution to resolve this issue.[/quote]
&lt;p&gt;Does MTK mean MediaTek?&lt;/p&gt;
&lt;p&gt;What reasoning did they give to believe Nordic should provide the solution to resolve this issue?&lt;/p&gt;
&lt;p&gt;On my end, I attempted to pair using bt_conn_set_security() as you did, and both my Android phone and my Windows PC can&amp;nbsp;bond with the device without any problem.&lt;br /&gt;Pairing at&amp;nbsp;Security Level 4 like you are trying to do also require an out of band verification method. On your RTT log I don&amp;#39;t see signs of this happened. What did you do to achieve this?&lt;/p&gt;
[quote user="Tim Hwang"]I have no idea what made following error. Can you please find in sniff log?&lt;br /&gt;&lt;span style="color:rgba(255, 0, 0, 1);"&gt;00&amp;gt; D: chan 0x20001f4c conn 0x20001c88 handle 0 encrypt 0x00 hci status 0x1f&lt;/span&gt;[/quote]
&lt;p&gt;That is not&amp;nbsp;an error. It is&amp;nbsp;most likely just a log from smp.c. See&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.1.99-ncs1/subsys/bluetooth/host/smp.c#L4681"&gt;sdk-zephyr/smp.c&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Finally, I would like to ask for a few pieces of information to understand the situation better:&lt;/p&gt;
&lt;p&gt;What is your current setup? &lt;br /&gt;What module did you enable logging to acquire the RTT log you shared?&lt;br /&gt;Is there a specific sample&amp;nbsp;are you experimenting on?&lt;br /&gt;What SDK version are you on?&lt;br /&gt;These pieces of information help making sense out of the&amp;nbsp;logs you provided.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK] Pairing failure</title><link>https://devzone.nordicsemi.com/thread/393788?ContentTypeID=1</link><pubDate>Thu, 03 Nov 2022 07:35:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf59f54f-a9b6-448b-9c6d-c76d05b9b0de</guid><dc:creator>Tim Hwang</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
00&amp;gt; HS:Advertising successfully started
00&amp;gt; D: 55:A6:42:65:6B:D0 (random)
00&amp;gt; D: No IRK for 55:A6:42:65:6B:D0 (random)
00&amp;gt; D: conn 0x20001c88 handle 0
00&amp;gt; D: chan 0x20001f4c cid 0x0006
00&amp;gt; D: 55:A6:42:65:6B:D0 (random)
00&amp;gt; Connected secmode 4
00&amp;gt; HS connected
00&amp;gt; HS Connected 55:A6:42:65:6B:D0 (random)
00&amp;gt; D: 
00&amp;gt; D: 55:A6:42:65:6B:D0 (random)
00&amp;gt; D: created 0x200029dc for 55:A6:42:65:6B:D0 (random)
00&amp;gt; D: prnd 23a14c89ca6eb11b5c0c56610146bb35
00&amp;gt; Connection parameters updated.
00&amp;gt;  interval: 6, latency: 0, timeout: 500
00&amp;gt; Conn params updated: interval 7 ms, latency 0, timeout: 5000 ms
00&amp;gt; W: Ignoring unexpected request
00&amp;gt; W: Ignoring unexpected request
00&amp;gt; D: chan 0x20001f4c cid 0x0006
00&amp;gt; D: status 0x8
00&amp;gt; D: 55:A6:42:65:6B:D0 (random) (keys 0x0000)
00&amp;gt; D: Deleting key bt/keys/55a642656bd01
00&amp;gt; D: chan 0x20001f4c conn 0x20001c88 handle 0 encrypt 0x00 hci status 0x1f
00&amp;gt; Security failed: 55:A6:42:65:6B:D0 (random) level 1 err 9 
00&amp;gt; D: 55:A6:42:65:6B:D0 (random)
00&amp;gt; D: 00:00:00:00:00:00 (public) (keys 0x0000)
00&amp;gt; D: Deleting key bt/keys/0000000000000
00&amp;gt; D: 55:A6:42:65:6B:D0 (random)
00&amp;gt; D: 55:A6:42:65:6B:D0 (random)
00&amp;gt; Disconnected: 55:A6:42:65:6B:D0 (random) (reason 19) 
00&amp;gt; HS:Advertising successfully started&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/sniff.7z"&gt;devzone.nordicsemi.com/.../sniff.7z&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;sniff log is uploaded as well as rtt log.&lt;br /&gt;Your message will be forwarded to MTK HQ again.&lt;br /&gt;&lt;br /&gt;I have no idea what made following error. Can you please find in sniff log?&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;00&amp;gt; D: chan 0x20001f4c conn 0x20001c88 handle 0 encrypt 0x00 hci status 0x1f&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>