<?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>Ble pairing with linux - zero distribution flags</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122025/ble-pairing-with-linux---zero-distribution-flags</link><description>Hi! We are having problems pairing a nRF52840 against linux (ubuntu 25.04). Pairing fails instantly, before any passkey is shown on the host, returning with code 9. Short log is here: AI back and forths suggest that the host PC cancels pairing because</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Jun 2025 20:20:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122025/ble-pairing-with-linux---zero-distribution-flags" /><item><title>RE: Ble pairing with linux - zero distribution flags</title><link>https://devzone.nordicsemi.com/thread/540777?ContentTypeID=1</link><pubDate>Fri, 27 Jun 2025 20:20:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fefc9cb-6578-4293-9afb-d75febefe3d9</guid><dc:creator>Edvin</dc:creator><description>[quote user="kat829"]&lt;p&gt; i don&amp;#39;t think it&amp;#39;s a hardware issue. if the connection between the halves is stable, it should also be stable between the right half and any other peer. we&amp;#39;re using a proven 3rd party wireless module, and the module have been integrated into the uhk 80 according to the datasheet&lt;/p&gt;
&lt;p&gt;I would take it with a grain of salt though.&amp;nbsp;&lt;/p&gt;[/quote]
&lt;p&gt;Does that mean that you tested the same connection interval on the same device?&lt;/p&gt;
&lt;p&gt;Just in case the issue is also present on your HFXO, can you please try to use the internal RC Oscillator?&lt;/p&gt;
&lt;p&gt;USe this in prj.conf:&lt;/p&gt;
&lt;p&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y&lt;/p&gt;
&lt;p&gt;Also, you can experiment with all of the sources, and minmizing the accuracy of the LFCLK by setting:&lt;/p&gt;
&lt;p&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_500PPM=y&lt;/p&gt;
&lt;p&gt;And see if that changes anything.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble pairing with linux - zero distribution flags</title><link>https://devzone.nordicsemi.com/thread/540719?ContentTypeID=1</link><pubDate>Fri, 27 Jun 2025 12:53:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31ab8a76-4860-4074-aa17-d93ca47d0e0f</guid><dc:creator>kat829</dc:creator><description>&lt;p&gt;As for more logs, I have the hci_core and smp logs that I posted in the pack (right.log).&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Should I try gather more?&lt;br /&gt;&lt;br /&gt;(Generally, capturing logs at debug level is difficult, because there is too many logs and so the logging system keeps dropping messages.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble pairing with linux - zero distribution flags</title><link>https://devzone.nordicsemi.com/thread/540718?ContentTypeID=1</link><pubDate>Fri, 27 Jun 2025 12:51:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3292b7b-9c64-4f80-a777-3607036cc39b</guid><dc:creator>kat829</dc:creator><description>&lt;p&gt;Sorry, Laszlo Monda from us said it.&lt;br /&gt;&lt;br /&gt;&amp;gt;&amp;nbsp;Do you have the logs from the peripheral? Does it also see a disconnection? Or does it see an application reset?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;It sees a disconnection.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Furthermore, shortly before the disconnect, the code goes all the way through the true return path in should_stop_tx in `./subsys/bluetooth/host/conn.c`, suggesting that zephyr deliberately drops the connection:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static bool should_stop_tx(struct bt_conn *conn)
    ...
	if (atomic_get(&amp;amp;conn-&amp;gt;in_ll) &amp;lt; 3) {
	   ...
	   return false;
	}
    return true;
}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;(As noted above, enabling data length extension fixes this mode of failure.)&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble pairing with linux - zero distribution flags</title><link>https://devzone.nordicsemi.com/thread/540716?ContentTypeID=1</link><pubDate>Fri, 27 Jun 2025 12:38:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6c9ff21-b275-4130-a67a-781c75767f36</guid><dc:creator>Edvin</dc:creator><description>[quote user="kat829"]&amp;gt; i don&amp;#39;t think it&amp;#39;s a hardware issue. if the connection between the halves is stable, it should also be stable between the right half and any other peer. we&amp;#39;re using a proven 3rd party wireless module, and the module have been integrated into the uhk 80 according to the datasheet[/quote]
&lt;p&gt;Is that someone from us who said that? If so, do you have the link to the ticket where this is stated?&lt;/p&gt;
[quote user="kat829"]To be precise, it drops the connection.&amp;nbsp;[/quote]
&lt;p&gt;Do you have the logs from the peripheral? Does it also see a disconnection? Or does it see an application reset?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble pairing with linux - zero distribution flags</title><link>https://devzone.nordicsemi.com/thread/540704?ContentTypeID=1</link><pubDate>Fri, 27 Jun 2025 11:51:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:520e2ce3-2496-47fe-85d6-2b6dd80dd006</guid><dc:creator>kat829</dc:creator><description>&lt;p&gt;&amp;gt; Ok, so it looks like the peripheral application crashes/resets.&lt;br /&gt;&lt;br /&gt;To be precise, it drops the connection.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&amp;gt; I also noticed that there are a lot of retransmissions from the central, meaning the peripheral doesn&amp;#39;t reply to a lot of the messages. Is this a custom board? Did you have your design through a design review? If not, I recommend that you do that, to make sure that all the clocks are configured correctly.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Yes, it is a custom board.&lt;br /&gt;&lt;br /&gt;I have forwarded this question and got:&lt;br /&gt;&lt;br /&gt;&amp;gt; i don&amp;#39;t think it&amp;#39;s a hardware issue. if the connection between the halves is stable, it should also be stable between the right half and any other peer. we&amp;#39;re using a proven 3rd party wireless module, and the module have been integrated into the uhk 80 according to the datasheet&lt;/p&gt;
&lt;p&gt;I would take it with a grain of salt though.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&amp;gt; I suspect that all of the failed pairing attempts are caused by the devices not being able to maintain the BLE connection:&lt;br /&gt;&lt;br /&gt;As noted above, it looks like zephyr intentionally drops the connection in should_stop_tx.&lt;br /&gt;&lt;br /&gt;&amp;gt; CONFIG_CLOCK_CONTROL_NRF_K32SRC_SYNTH=y&lt;br /&gt;&lt;br /&gt;With this, I am getting slightly different results:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/wireshark_5F00_linux_5F00_pairing4_5F00_with_5F00_clock_5F00_control.pcapng"&gt;devzone.nordicsemi.com/.../wireshark_5F00_linux_5F00_pairing4_5F00_with_5F00_clock_5F00_control.pcapng&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble pairing with linux - zero distribution flags</title><link>https://devzone.nordicsemi.com/thread/539356?ContentTypeID=1</link><pubDate>Mon, 16 Jun 2025 10:22:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94142685-5bbd-42ee-ab15-51529c0c45fd</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok, so it looks like the peripheral application crashes/resets. Looking at the sniffer traces, you can see that from some point, all the messages are coming from the central, before the peripheral starts advertising.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I also noticed that there are a lot of retransmissions from the central, meaning the peripheral doesn&amp;#39;t reply to a lot of the messages. Is this a custom board? Did you have your design through a design review? If not, I recommend that you do that, to make sure that all the clocks are configured correctly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I suspect that all of the failed pairing attempts are caused by the devices not being able to maintain the BLE connection:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;inf&amp;gt; Bt: Received passkey pairing inquiry.
&amp;lt;inf&amp;gt; Bt: Type `uhk passkey xxxxxx` to pair, or `uhk passkey -1` to reject
&amp;lt;wrn&amp;gt; bt_conn: conn 0x20010498: not connected&#x1B;[0m
&amp;lt;dbg&amp;gt; bt_smp: bt_smp_disconnected: chan 0x20010b9c cid 0x0006
&amp;lt;dbg&amp;gt; bt_smp: smp_pairing_complete: got status 0x8
&amp;lt;dbg&amp;gt; bt_smp: bt_smp_encrypt_change: chan 0x20010b9c conn 0x20010498 handle 1 encrypt 0x00 hci status 0x1f 
&amp;lt;wrn&amp;gt; Bt: Bt security failed: n/a (n/a, 98:5f:41:d2:92:3a), level 1, err 9, disconnecting
&amp;lt;wrn&amp;gt; Bt: The connection (n/a (n/a, 98:5f:41:d2:92:3a)) isn&amp;#39;t even connected! Ignoring.&#x1B;[0m
&amp;lt;wrn&amp;gt; Bt: Pairing of auth conn failed because of 9
&amp;lt;wrn&amp;gt; Bt: Pairing failed: n/a (n/a, 98:5f:41:d2:92:3a), reason 9&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For a quick check, can you please try to set your LFCLKSRC to SYNTH (meaning it is derived from the HFXTAL). How to do it depends on what NCS version you are using. If you are using v2.x.x, you can set&amp;nbsp;&lt;/p&gt;
&lt;p&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_SYNTH=y&lt;/p&gt;
&lt;p&gt;And see if it is able to maintain the connection.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble pairing with linux - zero distribution flags</title><link>https://devzone.nordicsemi.com/thread/539196?ContentTypeID=1</link><pubDate>Fri, 13 Jun 2025 12:06:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14528e99-a900-4064-b20c-b9426b76c97d</guid><dc:creator>kat829</dc:creator><description>&lt;p&gt;Sure!&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1374.logs.zip"&gt;devzone.nordicsemi.com/.../1374.logs.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble pairing with linux - zero distribution flags</title><link>https://devzone.nordicsemi.com/thread/539192?ContentTypeID=1</link><pubDate>Fri, 13 Jun 2025 11:48:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61fff9b4-e430-4dd0-8da7-d0d6f76ad26b</guid><dc:creator>Edvin</dc:creator><description>[quote user="kat829"]What I meant is that we are using the default zephyr host implementation[/quote]
&lt;p&gt;Ok, yes. That is the intended way. You shouldn&amp;#39;t change anything in the bluetooth host implementation, so that is good.&lt;/p&gt;
&lt;p&gt;I know that DevZone has some hickups some times, but can you please try to upload your attachments again? I am still not able to see them.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble pairing with linux - zero distribution flags</title><link>https://devzone.nordicsemi.com/thread/539002?ContentTypeID=1</link><pubDate>Thu, 12 Jun 2025 10:42:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8dfcf355-4e3a-4d49-9127-d0daba09ba03</guid><dc:creator>kat829</dc:creator><description>&lt;p&gt;Oops, sorry. We are actually using the SoftDevice controller: i.e., CONFIG_BT_LL_SOFTDEVICE=y.&lt;br /&gt;&lt;br /&gt;What I meant is that we are using the default zephyr host implementation (by which I mean that we have not reimplemented or customized the zephyr/subsys/bluetooth functionality). Zephyr 3.7.99 to be specific.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble pairing with linux - zero distribution flags</title><link>https://devzone.nordicsemi.com/thread/538985?ContentTypeID=1</link><pubDate>Thu, 12 Jun 2025 09:31:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55211a99-8aa0-45aa-8bcc-f5ad29148d63</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok, I understand. So it is in fact not an HCI dongle. It is a peripheral application. A BLE keyboard.&lt;/p&gt;
&lt;p&gt;(An HCI dongle/device is the typical &amp;quot;bluetooth dongle&amp;quot; that you can buy and plug in your computer to give it Bluetooth capabilities, if your computer doesn&amp;#39;t have Bluetooth)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="kat829"]this device uses zephyr bluetooth stack[/quote]
&lt;p&gt;In that case, I recommend that you look into using the Nordic SoftDevice Controller instead of the Zephyr Bluetooth controller. I believe we (Nordic) were involved in the zephyr bluetooth controller at some point, but I am not sure it is maintained, or who maintains it. At least, we do not support that bluetooth controller.&lt;/p&gt;
&lt;p&gt;Check if the issue still persists if you change to the SoftDevice controller.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble pairing with linux - zero distribution flags</title><link>https://devzone.nordicsemi.com/thread/538971?ContentTypeID=1</link><pubDate>Thu, 12 Jun 2025 08:40:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:768ace2e-29c8-4e2a-a98c-2cd0b1601528</guid><dc:creator>kat829</dc:creator><description>&lt;p&gt;I am not sure what you mean by &amp;quot;HCI dongle&amp;quot;.&lt;/p&gt;
&lt;p&gt;The setup is as follows:&lt;br /&gt;&lt;br /&gt;- nRF52840 DevKit with the nrf sniffer - this is the source of wireshark/pcapng sniffs&lt;br /&gt;- ubuntu linux (the central) - this is where btmon log is from&lt;br /&gt;- uhk80 (a bluetooth keyboard; the peripheral) right half, which is a nRF52840-powered board. This acts as a peripheral. &lt;br /&gt;&amp;nbsp; - right.log comes from there (gathered over uart), with CONFIG_BT_SMP=y and CONFIG_BT_HCI_CORE_LOG_LEVEL_DBG=y if I am not mistaken&lt;br /&gt;&amp;nbsp; - this device uses zephyr bluetooth stack, with c2usb to handle USB HID and BLE HID. C2usb also provides the gatt service. It hooks in via udc_mac.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble pairing with linux - zero distribution flags</title><link>https://devzone.nordicsemi.com/thread/538898?ContentTypeID=1</link><pubDate>Wed, 11 Jun 2025 19:44:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2333dfdd-31c6-46b0-a02f-6eb76b107c11</guid><dc:creator>Edvin</dc:creator><description>[quote user="kat829"]&lt;p&gt;What exactly is the problem there? Tested multiple times...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;It won&amp;#39;t open. I guess it is the company firewall.&lt;/p&gt;
&lt;p&gt;Are you using the nRF52840 as a HCI dongle? This still isn&amp;#39;t clear to me. (I see that hci is mentioned in the log from your initial post, the one pasted into the added text box, but there is HCI logging in normal samples (not just HCI) running on our devices as well. HCI will always be the communication layer between the application and the Bluetooth Controller).&lt;/p&gt;
&lt;p&gt;So are the logs from your computer, or from the nRF? And what application is running on your nRF52840?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble pairing with linux - zero distribution flags</title><link>https://devzone.nordicsemi.com/thread/538518?ContentTypeID=1</link><pubDate>Sat, 07 Jun 2025 17:53:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e54bc9e-1471-4c78-b0e6-6957bc3baff8</guid><dc:creator>kat829</dc:creator><description>&lt;p&gt;Well:&lt;br /&gt;&lt;br /&gt;- (Earlier, I tried increasing various buffer counts, including the acl tx, without any success.)&lt;br /&gt;- I have traced the disconnect to an exhaustion of acl buffers. &lt;br /&gt;- After seeing a 69 byte message getting chunked into 3 packets / messages, I have realized that with default LE payload length of 27 bytes, running out of buffers isn&amp;#39;t all that surprising.&lt;br /&gt;- I have tried to enable the data length extension right after connection callback kicks in.&lt;br /&gt;- This did the trick.&lt;br /&gt;&lt;br /&gt;I am still not sure what a proper solution should be or what part of the stack and of development process is actually to be blamed.&lt;/p&gt;
&lt;p&gt;But I wonder, wouldn&amp;#39;t it be nice if zephyr logged a warn (or maybe an error!) in situations like these - when it decides to drop a connection because of an unexpected failure?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble pairing with linux - zero distribution flags</title><link>https://devzone.nordicsemi.com/thread/538493?ContentTypeID=1</link><pubDate>Fri, 06 Jun 2025 21:07:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c094cebe-afa8-41f1-973d-2173050021a3</guid><dc:creator>kat829</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8666.logs.zip"&gt;devzone.nordicsemi.com/.../8666.logs.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Works from android.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble pairing with linux - zero distribution flags</title><link>https://devzone.nordicsemi.com/thread/538491?ContentTypeID=1</link><pubDate>Fri, 06 Jun 2025 20:55:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9f1d68e-a44c-4a85-8c5b-79ac4472f75e</guid><dc:creator>kat829</dc:creator><description>&lt;p&gt;Actually, this chromium shows an &amp;quot;Upload file(s)&amp;quot; overlay on hover, but doesn&amp;#39;t do anything on dropping.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble pairing with linux - zero distribution flags</title><link>https://devzone.nordicsemi.com/thread/538489?ContentTypeID=1</link><pubDate>Fri, 06 Jun 2025 20:52:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33805b0f-f01c-4e81-b41b-72c506afd06a</guid><dc:creator>kat829</dc:creator><description>&lt;p&gt;Hi Edvin!&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;gt; I am not able to download your ktwebs.cz file&lt;/p&gt;
&lt;p&gt;What exactly is the problem there? Tested multiple times...&lt;/p&gt;
&lt;p&gt;File dropping doesn&amp;#39;t work very well for me.&lt;/p&gt;
&lt;p&gt;- Neither work laptop with firefox nor chromium on home laptop reacts to dropping files at all.&lt;br /&gt;- Home firefox reacts by showing an error that `The file at /home/me/mnt/www/upload/logs2/btmon.log is not readable.` which is not surprising given sandboxing policies of modern browsers.&lt;/p&gt;
&lt;p&gt;Also the reply button doesn&amp;#39;t actually open an editor in 9 of 10 tries. (Same problem in firefox 139.0.1 and chromium 137.0.7151.55 which are fairly up-to-date browsers. Finally managed to send this from the chromium, sadly without any files.)&lt;/p&gt;
&lt;p&gt;---------&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t get a pop-up. Connection is terminated within 420ms of the moment that packet arrives, so the pc doesn&amp;#39;t have much time to show it.&lt;/p&gt;
&lt;p&gt;The message actually says xxxxxx, but it is literally printed that way by our code. I don&amp;#39;t think there is any problem with that part - the procedure works fine with android.&lt;/p&gt;
&lt;p&gt;------------&lt;/p&gt;
&lt;p&gt;The project is &lt;a href="https://github.com/UltimateHackingKeyboard/firmware"&gt;github.com/.../firmware&lt;/a&gt; . If you want to take look, points of interest are `device/prj.conf.overlays/*` and `device/src/bt_*`, and also c2usb/c2usb/port/zephyr/bluetooth/hid.cp in &lt;a href="https://github.com/IntergatedCircuits/c2usb"&gt;github.com/.../c2usb&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;We have two related issues open:&lt;br /&gt;- macos issue &lt;a href="https://github.com/UltimateHackingKeyboard/firmware/issues/1228"&gt;github.com/.../1228&lt;/a&gt;&lt;br /&gt;- linux issue &lt;a href="https://github.com/UltimateHackingKeyboard/firmware/issues/999"&gt;github.com/.../999&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Notably, while I am testing pairing with linux, macos pairing has broken between two versions where we are not aware of doing any bluetooth-related changes, so as far as we can tell the most likely culprit is switching to deferred logging, which may have to do with cpu time and timing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble pairing with linux - zero distribution flags</title><link>https://devzone.nordicsemi.com/thread/538480?ContentTypeID=1</link><pubDate>Fri, 06 Jun 2025 19:58:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7e4faea-848e-406b-b610-b3feca59dd28</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Please add comments instead of adding new information as edits (from this point), because it is difficult to keep track of new information (I don&amp;#39;t have any changelog, just your final post, and I am not sure I will read it after replying now &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;)&lt;/p&gt;
&lt;p&gt;I am not able to download your ktwebs.cz files, can you please upload them here instead? Drag and drop, or hit the upload button in the text editor on DevZone (and then hit the gray text saying &amp;quot;upload&amp;quot; to browse to the file you want to upload).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So I am not sure what we are facing right now. The peripheral you are testing, is it one of our samples? If not, can you test with one of our samples to see if the issue is the same there?&lt;/p&gt;
[quote user=""]Short log is here:[/quote]
&lt;p&gt;From your log, I see:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;inf&amp;gt; Bt: Type `uhk passkey xxxxxx` to pair, or `uhk passkey -1` to reject&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Did you get a popup on the client/central side to enter this 6-digit number? And did your log actually say &amp;quot;xxxxxxxx&amp;quot;, or did you replace the numbers with X&amp;#39;es?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>