<?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>hci_usb, zephyr and bluez</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107659/hci_usb-zephyr-and-bluez</link><description>Hi, 
 There seems to be an issue somewhere between the hci_usb sample , zephyr , and bluez on linux . It &amp;#39;s really easy to recreate the issue for me : 
 
 Flash an nrf52840 dongle with the hci_usb sample 
 flash any nordic board with a ble sample like</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 Jan 2024 14:03:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107659/hci_usb-zephyr-and-bluez" /><item><title>RE: hci_usb, zephyr and bluez</title><link>https://devzone.nordicsemi.com/thread/466779?ContentTypeID=1</link><pubDate>Tue, 30 Jan 2024 14:03:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7dfaba69-e155-4be9-a068-d04d2030feac</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I don&amp;#39;t see any problem configuring 7.5ms interval and 2Mbps phy, however whether you will be able to push max data (one-way or bidirectional) for all the potentially serial interfaces is (afaik) not something we have tested in specific no.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hci_usb, zephyr and bluez</title><link>https://devzone.nordicsemi.com/thread/466741?ContentTypeID=1</link><pubDate>Tue, 30 Jan 2024 11:54:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97d82bb2-7289-49e0-bff3-d3e76bf7185c</guid><dc:creator>john23094</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;Yes that&amp;#39;s correct. I learned that hci_uart is ok to flash to nrf52840 dongle as I saw it has USB CDC enabled if you target that board.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I still unsure whether this means I am able&amp;nbsp;to get&lt;span&gt;&amp;nbsp;2MB PHY and 7.5ms conn. interval with this setup. If USB CDC speed is much higher than I thought this should work. Is there any other KConfig options I need to define in&amp;nbsp;hci_uart to get this?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hci_usb, zephyr and bluez</title><link>https://devzone.nordicsemi.com/thread/466365?ContentTypeID=1</link><pubDate>Sun, 28 Jan 2024 21:45:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6f8009c-0c5d-40f4-b865-fbc9ef256435</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;From my understanding you already have a chat on zephyr discord about this, I suggest to continue there, but please update here any findings that may potentially be helpful for others.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hci_usb, zephyr and bluez</title><link>https://devzone.nordicsemi.com/thread/466345?ContentTypeID=1</link><pubDate>Sun, 28 Jan 2024 00:01:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbeda7c0-f503-4afb-a5b9-e2cede3aeec0</guid><dc:creator>john23094</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve had success moving to a&amp;nbsp;&lt;span&gt;nrf52840dk, using&amp;nbsp;HCI UART example. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I think I&amp;#39;m starting to get it that the transport for HCI needs to be fast or it will not be able to keep up and cause issues like I&amp;#39;ve seen. I guess USB transport on the dongle is too slow.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This made me realise also, the UART speed on the dk is still limited to 1mbps.&lt;/p&gt;
&lt;p&gt;On a side note, what would be the best approach for getting a bluetooth controller using NRF52 which bluez can use that can reliably achieve 2MB PHY and 7.5ms conn. interval? USB to SPI? USB to UART? Using CDC UART?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hci_usb, zephyr and bluez</title><link>https://devzone.nordicsemi.com/thread/466206?ContentTypeID=1</link><pubDate>Fri, 26 Jan 2024 12:12:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4adc110-34c5-434f-b15a-217e7c67e85a</guid><dc:creator>john23094</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;Sorry got pulled aside by some other priorities.&lt;/p&gt;
&lt;p&gt;That&amp;#39;s interesting I didn&amp;#39;t know that. I only used the nrf52840 dongle purely for convenience. I can switch to using an nrf52840dk that I also have, with the HCI UART example and report back if there is any improvement.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hci_usb, zephyr and bluez</title><link>https://devzone.nordicsemi.com/thread/465881?ContentTypeID=1</link><pubDate>Wed, 24 Jan 2024 21:04:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c9032e0-3ebb-4341-ac85-e27c556d2ae0</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have spoken to the developers, maybe I should have done so earlier, but I get the impression that hci over usb as a transport layer is slightly&amp;nbsp;unstable by design; for simple use cases where transfer is not stressed then hci_usb is functional, but for stability you should use uart or spi as&amp;nbsp;hci transport. It seems as most vendors use&amp;nbsp;uart hci transport due to this, e.g. in phones, laptops etc. We plan to add a disclaimer to the hci_usb sample. A suggested workaround is to use compile hci_uart with the cdc uart driver instead (if you need to use usb, and cant use uart or spi directly).&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hci_usb, zephyr and bluez</title><link>https://devzone.nordicsemi.com/thread/465799?ContentTypeID=1</link><pubDate>Wed, 24 Jan 2024 12:57:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:367ada4e-0daf-4554-8997-bad797ca7872</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thanks for all the details, I can&amp;#39;t find anything wrong, but let me check with the developers what and if they have any comment.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hci_usb, zephyr and bluez</title><link>https://devzone.nordicsemi.com/thread/465749?ContentTypeID=1</link><pubDate>Wed, 24 Jan 2024 10:19:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3211736-13ae-4ff7-8c5c-def03bab40b3</guid><dc:creator>john23094</dc:creator><description>&lt;p&gt;Hi Kenneth,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sure thing. Here is the&amp;nbsp;btmon log for when I delete all device cache from&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/var/lib/bluetooth/static-XX:XX:XX:XX:XX:XX&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt; HCI Command: LE Set Random Address (0x08|0x0005) plen 6                                                                                                   #636 [hci0] 22.534586
        Address: C2:1B:F6:8A:19:72 (Static)
&amp;gt; HCI Event: Command Complete (0x0e) plen 4                                                                                                                 #637 [hci0] 22.536541
      LE Set Random Address (0x08|0x0005) ncmd 1
        Status: Success (0x00)
&amp;lt; HCI Command: LE Add Device To Accept List (0x08|0x0011) plen 7                                                                                            #638 [hci0] 22.538022
        Address type: Random (0x01)
        Address: E4:05:AA:E4:7B:4E (Static)
&amp;gt; HCI Event: Command Complete (0x0e) plen 4                                                                                                                 #639 [hci0] 22.540766
      LE Add Device To Accept List (0x08|0x0011) ncmd 1
        Status: Success (0x00)
&amp;lt; HCI Command: LE Set Scan Parameters (0x08|0x000b) plen 7                                                                                                  #640 [hci0] 22.541309
        Type: Passive (0x00)
        Interval: 60.000 msec (0x0060)
        Window: 60.000 msec (0x0060)
        Own address type: Random (0x01)
        Filter policy: Ignore not in accept list (0x01)
&amp;gt; HCI Event: Command Complete (0x0e) plen 4                                                                                                                 #641 [hci0] 22.543977
      LE Set Scan Parameters (0x08|0x000b) ncmd 1
        Status: Success (0x00)
&amp;lt; HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2                                                                                                      #642 [hci0] 22.544203
        Scanning: Enabled (0x01)
        Filter duplicates: Enabled (0x01)
&amp;gt; HCI Event: Command Complete (0x0e) plen 4                                                                                                                 #643 [hci0] 22.547272
      LE Set Scan Enable (0x08|0x000c) ncmd 1
        Status: Success (0x00)
&amp;gt; HCI Event: LE Meta Event (0x3e) plen 33                                                                                                                   #644 [hci0] 22.558118
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Connectable undirected - ADV_IND (0x00)
        Address type: Random (0x01)
        Address: E4:05:AA:E4:7B:4E (Static)
        Data length: 21
        Flags: 0x06
          LE General Discoverable Mode
          BR/EDR Not Supported
        128-bit Service UUIDs (complete): 1 entry
          Vendor specific
        RSSI: -54 dBm (0xca)
&amp;lt; HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2                                                                                                      #645 [hci0] 22.558734
        Scanning: Disabled (0x00)
        Filter duplicates: Disabled (0x00)
&amp;gt; HCI Event: Command Complete (0x0e) plen 4                                                                                                                 #646 [hci0] 22.560328
      LE Set Scan Enable (0x08|0x000c) ncmd 1
        Status: Success (0x00)
&amp;lt; HCI Command: LE Create Connection (0x08|0x000d) plen 25                                                                                                   #647 [hci0] 22.560563
        Scan interval: 60.000 msec (0x0060)
        Scan window: 60.000 msec (0x0060)
        Filter policy: Accept list is not used (0x00)
        Peer address type: Random (0x01)
        Peer address: E4:05:AA:E4:7B:4E (Static)
        Own address type: Random (0x01)
        Min connection interval: 30.00 msec (0x0018)
        Max connection interval: 50.00 msec (0x0028)
        Connection latency: 0 (0x0000)
        Supervision timeout: 420 msec (0x002a)
        Min connection length: 0.000 msec (0x0000)
        Max connection length: 0.000 msec (0x0000)
&amp;gt; HCI Event: Command Status (0x0f) plen 4                                                                                                                   #648 [hci0] 22.562509
      LE Create Connection (0x08|0x000d) ncmd 1
        Status: Success (0x00)
&amp;gt; HCI Event: LE Meta Event (0x3e) plen 31                                                                                                                   #649 [hci0] 22.669880
      LE Enhanced Connection Complete (0x0a)
        Status: Success (0x00)
        Handle: 0
        Role: Central (0x00)
        Peer address type: Random (0x01)
        Peer address: E4:05:AA:E4:7B:4E (Static)
        Local resolvable private address: 00:00:00:00:00:00 (Non-Resolvable)
        Peer resolvable private address: 00:00:00:00:00:00 (Non-Resolvable)
        Connection interval: 50.00 msec (0x0028)
        Connection latency: 0 (0x0000)
        Supervision timeout: 420 msec (0x002a)
        Central clock accuracy: 0x00
@ MGMT Event: Device Connected (0x000b) plen 34                                                                                                         {0x0001} [hci0] 22.670060
        LE Address: E4:05:AA:E4:7B:4E (Static)
        Flags: 0x00000008
          Connection Locally Initiated
        Data length: 21
        Flags: 0x06
          LE General Discoverable Mode
          BR/EDR Not Supported
        128-bit Service UUIDs (complete): 1 entry
          Vendor specific
&amp;gt; HCI Event: LE Meta Event (0x3e) plen 4                                                                                                                    #650 [hci0] 22.673147
      LE Channel Selection Algorithm (0x14)
        Handle: 0
        Algorithm: #2 (0x01)
&amp;lt; HCI Command: LE Read Remote Used Features (0x08|0x0016) plen 2                                                                                            #651 [hci0] 22.690059
        Handle: 0
&amp;gt; HCI Event: Command Status (0x0f) plen 4                                                                                                                   #652 [hci0] 22.691466
      LE Read Remote Used Features (0x08|0x0016) ncmd 1
        Status: Success (0x00)
&amp;gt; HCI Event: LE Meta Event (0x3e) plen 11                                                                                                                   #653 [hci0] 22.780370
      LE Data Length Change (0x07)
        Handle: 0
        Max TX octets: 27
        Max TX time: 2120
        Max RX octets: 27
        Max RX time: 2120
&amp;gt; HCI Event: LE Meta Event (0x3e) plen 12                                                                                                                   #654 [hci0] 22.834449
      LE Read Remote Used Features (0x04)
        Status: Success (0x00)
        Handle: 0
        Features: 0x2d 0x41 0x00 0x00 0x00 0x00 0x00 0x00
          LE Encryption
          Extended Reject Indication
          Peripheral-initiated Features Exchange
          LE Data Packet Length Extension
          LE 2M PHY
          Channel Selection Algorithm #2
= bluetoothd: src/device.c:load_gatt_db() No cache for E4:05:AA:E4:7B:4E                                                                                                22.838793
&amp;lt; ACL Data TX: Handle 0 flags 0x00 dlen 7                                                                                                                   #655 [hci0] 22.838264
      ATT: Exchange MTU Request (0x02) len 2
        Client RX MTU: 517
&amp;gt; HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                      #656 [hci0] 22.888721
        Num handles: 1
        Handle: 0
        Count: 1
&amp;lt; HCI Command: Disconnect (0x01|0x0006) plen 3                                                                                                              #657 [hci0] 54.958014
        Handle: 0
        Reason: Remote User Terminated Connection (0x13)
&amp;gt; HCI Event: Command Status (0x0f) plen 4                                                                                                                   #658 [hci0] 54.961438
      Disconnect (0x01|0x0006) ncmd 1
        Status: Success (0x00)
&amp;gt; HCI Event: Disconnect Complete (0x05) plen 4                                                                                                              #659 [hci0] 55.062179
        Status: Success (0x00)
        Handle: 0
        Reason: Connection Terminated By Local Host (0x16)
@ MGMT Event: Device Disconnected (0x000c) plen 8                                                                                                       {0x0001} [hci0] 55.062295
        LE Address: E4:05:AA:E4:7B:4E (Static)
        Reason: Connection terminated by local host (0x02)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And here is the btmon log now on the 2nd connection attempt, keeping the device cache now:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt; HCI Command: LE Set Random Address (0x08|0x0005) plen 6                                                                                                 #1008 [hci0] 178.408369
        Address: C2:1B:F6:8A:19:72 (Static)
&amp;gt; HCI Event: Command Complete (0x0e) plen 4                                                                                                               #1009 [hci0] 178.410590
      LE Set Random Address (0x08|0x0005) ncmd 1
        Status: Success (0x00)
&amp;lt; HCI Command: LE Set Scan Parameters (0x08|0x000b) plen 7                                                                                                #1010 [hci0] 178.410656
        Type: Passive (0x00)
        Interval: 60.000 msec (0x0060)
        Window: 60.000 msec (0x0060)
        Own address type: Random (0x01)
        Filter policy: Ignore not in accept list (0x01)
&amp;gt; HCI Event: Command Complete (0x0e) plen 4                                                                                                               #1011 [hci0] 178.413844
      LE Set Scan Parameters (0x08|0x000b) ncmd 1
        Status: Success (0x00)
&amp;lt; HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2                                                                                                    #1012 [hci0] 178.413918
        Scanning: Enabled (0x01)
        Filter duplicates: Enabled (0x01)
&amp;gt; HCI Event: Command Complete (0x0e) plen 4                                                                                                               #1013 [hci0] 178.417104
      LE Set Scan Enable (0x08|0x000c) ncmd 1
        Status: Success (0x00)
&amp;gt; HCI Event: LE Meta Event (0x3e) plen 33                                                                                                                 #1014 [hci0] 178.487598
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Connectable undirected - ADV_IND (0x00)
        Address type: Random (0x01)
        Address: E4:05:AA:E4:7B:4E (Static)
        Data length: 21
        Flags: 0x06
          LE General Discoverable Mode
          BR/EDR Not Supported
        128-bit Service UUIDs (complete): 1 entry
          Vendor specific
        RSSI: -55 dBm (0xc9)
&amp;lt; HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2                                                                                                    #1015 [hci0] 178.487664
        Scanning: Disabled (0x00)
        Filter duplicates: Disabled (0x00)
&amp;gt; HCI Event: Command Complete (0x0e) plen 4                                                                                                               #1016 [hci0] 178.490795
      LE Set Scan Enable (0x08|0x000c) ncmd 1
        Status: Success (0x00)
&amp;lt; HCI Command: LE Create Connection (0x08|0x000d) plen 25                                                                                                 #1017 [hci0] 178.490891
        Scan interval: 60.000 msec (0x0060)
        Scan window: 60.000 msec (0x0060)
        Filter policy: Accept list is not used (0x00)
        Peer address type: Random (0x01)
        Peer address: E4:05:AA:E4:7B:4E (Static)
        Own address type: Random (0x01)
        Min connection interval: 30.00 msec (0x0018)
        Max connection interval: 50.00 msec (0x0028)
        Connection latency: 0 (0x0000)
        Supervision timeout: 420 msec (0x002a)
        Min connection length: 0.000 msec (0x0000)
        Max connection length: 0.000 msec (0x0000)
&amp;gt; HCI Event: Command Status (0x0f) plen 4                                                                                                                 #1018 [hci0] 178.494044
      LE Create Connection (0x08|0x000d) ncmd 1
        Status: Success (0x00)
&amp;gt; HCI Event: LE Meta Event (0x3e) plen 31                                                                                                                 #1019 [hci0] 178.710815
      LE Enhanced Connection Complete (0x0a)
        Status: Success (0x00)
        Handle: 0
        Role: Central (0x00)
        Peer address type: Random (0x01)
        Peer address: E4:05:AA:E4:7B:4E (Static)
        Local resolvable private address: 00:00:00:00:00:00 (Non-Resolvable)
        Peer resolvable private address: 00:00:00:00:00:00 (Non-Resolvable)
        Connection interval: 50.00 msec (0x0028)
        Connection latency: 0 (0x0000)
        Supervision timeout: 420 msec (0x002a)
        Central clock accuracy: 0x00
@ MGMT Event: Device Connected (0x000b) plen 34                                                                                                        {0x0001} [hci0] 178.710935
        LE Address: E4:05:AA:E4:7B:4E (Static)
        Flags: 0x00000008
          Connection Locally Initiated
        Data length: 21
        Flags: 0x06
          LE General Discoverable Mode
          BR/EDR Not Supported
        128-bit Service UUIDs (complete): 1 entry
          Vendor specific
&amp;gt; HCI Event: LE Meta Event (0x3e) plen 4                                                                                                                  #1020 [hci0] 178.713131
      LE Channel Selection Algorithm (0x14)
        Handle: 0
        Algorithm: #2 (0x01)
&amp;lt; HCI Command: LE Read Remote Used Features (0x08|0x0016) plen 2                                                                                          #1021 [hci0] 178.730017
        Handle: 0
&amp;gt; HCI Event: Command Status (0x0f) plen 4                                                                                                                 #1022 [hci0] 178.731280
      LE Read Remote Used Features (0x08|0x0016) ncmd 1
        Status: Success (0x00)
&amp;gt; HCI Event: LE Meta Event (0x3e) plen 11                                                                                                                 #1023 [hci0] 178.821351
      LE Data Length Change (0x07)
        Handle: 0
        Max TX octets: 27
        Max TX time: 2120
        Max RX octets: 27
        Max RX time: 2120
&amp;gt; HCI Event: LE Meta Event (0x3e) plen 12                                                                                                                 #1024 [hci0] 178.875574
      LE Read Remote Used Features (0x04)
        Status: Success (0x00)
        Handle: 0
        Features: 0x2d 0x41 0x00 0x00 0x00 0x00 0x00 0x00
          LE Encryption
          Extended Reject Indication
          Peripheral-initiated Features Exchange
          LE Data Packet Length Extension
          LE 2M PHY
          Channel Selection Algorithm #2
= bluetoothd: src/device.c:load_gatt_db() No cache for E4:05:AA:E4:7B:4E                                                                                               178.876464
&amp;lt; ACL Data TX: Handle 0 flags 0x00 dlen 7                                                                                                                 #1025 [hci0] 178.877312
      ATT: Exchange MTU Request (0x02) len 2
        Client RX MTU: 517
&amp;gt; HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                    #1026 [hci0] 178.928551
        Num handles: 1
        Handle: 0
        Count: 1
&amp;gt; ACL Data RX: Handle 0 flags 0x02 dlen 7                                                                                                                 #1027 [hci0] 179.036965
      ATT: Exchange MTU Response (0x03) len 2
        Server RX MTU: 498
&amp;lt; ACL Data TX: Handle 0 flags 0x00 dlen 11                                                                                                                #1028 [hci0] 179.037497
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0001-0xffff
        Attribute type: Server Supported Features (0x2b3a)
&amp;gt; HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                    #1029 [hci0] 179.092234
        Num handles: 1
        Handle: 0
        Count: 1
&amp;gt; ACL Data RX: Handle 0 flags 0x02 dlen 9                                                                                                                 #1030 [hci0] 179.145242
      ATT: Error Response (0x01) len 4
        Read By Type Request (0x08)
        Handle: 0x0001
        Error: Attribute Not Found (0x0a)
&amp;lt; ACL Data TX: Handle 0 flags 0x00 dlen 11                                                                                                                #1031 [hci0] 179.146071
      ATT: Read By Group Type Request (0x10) len 6
        Handle range: 0x0001-0xffff
        Attribute group type: Primary Service (0x2800)
&amp;gt; HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                    #1032 [hci0] 179.254730
        Num handles: 1
        Handle: 0
        Count: 1
&amp;gt; ACL Data RX: Handle 0 flags 0x02 dlen 18                                                                                                                #1033 [hci0] 179.307787
      ATT: Read By Group Type Response (0x11) len 13
        Attribute data length: 6
        Attribute group list: 2 entries
        Handle range: 0x0001-0x0008
        UUID: Generic Attribute Profile (0x1801)
        Handle range: 0x0009-0x000f
        UUID: Generic Access Profile (0x1800)
&amp;lt; ACL Data TX: Handle 0 flags 0x00 dlen 11                                                                                                                #1034 [hci0] 179.308215
      ATT: Read By Group Type Request (0x10) len 6
        Handle range: 0x0010-0xffff
        Attribute group type: Primary Service (0x2800)
&amp;gt; HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                    #1035 [hci0] 179.363051
        Num handles: 1
        Handle: 0
        Count: 1
&amp;gt; ACL Data RX: Handle 0 flags 0x02 dlen 26                                                                                                                #1036 [hci0] 179.416189
      ATT: Read By Group Type Response (0x11) len 21
        Attribute data length: 20
        Attribute group list: 1 entry
        Handle range: 0x0010-0x0013
        UUID: Vendor specific (8d53dc1d-1db7-4cd3-868b-8a527460aa84)
&amp;lt; ACL Data TX: Handle 0 flags 0x00 dlen 11                                                                                                                #1037 [hci0] 179.416630
      ATT: Read By Group Type Request (0x10) len 6
        Handle range: 0x0014-0xffff
        Attribute group type: Primary Service (0x2800)
&amp;gt; HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                    #1038 [hci0] 179.471264
        Num handles: 1
        Handle: 0
        Count: 1
&amp;gt; ACL Data RX: Handle 0 flags 0x02 dlen 9                                                                                                                 #1039 [hci0] 179.524255
      ATT: Error Response (0x01) len 4
        Read By Group Type Request (0x10)
        Handle: 0x0014
        Error: Attribute Not Found (0x0a)
&amp;lt; ACL Data TX: Handle 0 flags 0x00 dlen 11                                                                                                                #1040 [hci0] 179.524596
      ATT: Read By Group Type Request (0x10) len 6
        Handle range: 0x0001-0xffff
        Attribute group type: Secondary Service (0x2801)
&amp;gt; HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                    #1041 [hci0] 179.579608
        Num handles: 1
        Handle: 0
        Count: 1
&amp;gt; ACL Data RX: Handle 0 flags 0x02 dlen 9                                                                                                                 #1042 [hci0] 179.632597
      ATT: Error Response (0x01) len 4
        Read By Group Type Request (0x10)
        Handle: 0x0001
        Error: Attribute Not Found (0x0a)
&amp;lt; ACL Data TX: Handle 0 flags 0x00 dlen 11                                                                                                                #1043 [hci0] 179.633199
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0001-0x0013
        Attribute type: Include (0x2802)
&amp;gt; HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                    #1044 [hci0] 179.686980
        Num handles: 1
        Handle: 0
        Count: 1
&amp;gt; ACL Data RX: Handle 0 flags 0x02 dlen 9                                                                                                                 #1045 [hci0] 179.741089
      ATT: Error Response (0x01) len 4
        Read By Type Request (0x08)
        Handle: 0x0001
        Error: Attribute Not Found (0x0a)
&amp;lt; ACL Data TX: Handle 0 flags 0x00 dlen 11                                                                                                                #1046 [hci0] 179.741625
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0001-0x0013
        Attribute type: Characteristic (0x2803)
&amp;gt; HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                    #1047 [hci0] 179.795247
        Num handles: 1
        Handle: 0
        Count: 1
&amp;gt; ACL Data RX: Handle 0 flags 0x02 dlen 27                                                                                                                #1048 [hci0] 179.849269
&amp;gt; ACL Data RX: Handle 0 flags 0x01 dlen 21                                                                                                                #1049 [hci0] 179.850236
      ATT: Read By Type Response (0x09) len 43
        Attribute data length: 7
        Attribute data list: 6 entries
        Handle: 0x0002
        Value: 200300052a
        Handle: 0x0005
        Value: 0a0600292b
        Handle: 0x0007
        Value: 0208002a2b
        Handle: 0x000a
        Value: 0a0b00002a
        Handle: 0x000c
        Value: 020d00012a
        Handle: 0x000e
        Value: 020f00042a
&amp;lt; ACL Data TX: Handle 0 flags 0x00 dlen 11                                                                                                                #1050 [hci0] 179.850465
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x000f-0x0013
        Attribute type: Characteristic (0x2803)
&amp;gt; HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                    #1051 [hci0] 179.903692
        Num handles: 1
        Handle: 0
        Count: 1
&amp;gt; ACL Data RX: Handle 0 flags 0x02 dlen 27                                                                                                                #1052 [hci0] 179.957987
      ATT: Read By Type Response (0x09) len 22
        Attribute data length: 21
        Attribute data list: 1 entry
        Handle: 0x0011
        Value: 141200487c997411269eae014ecefb28782eda
&amp;lt; ACL Data TX: Handle 0 flags 0x00 dlen 11                                                                                                                #1053 [hci0] 179.958628
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0012-0x0013
        Attribute type: Characteristic (0x2803)
&amp;gt; HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                    #1054 [hci0] 180.011926
        Num handles: 1
        Handle: 0
        Count: 1
&amp;gt; ACL Data RX: Handle 0 flags 0x02 dlen 9                                                                                                                 #1055 [hci0] 180.066114
      ATT: Error Response (0x01) len 4
        Read By Type Request (0x08)
        Handle: 0x0012
        Error: Attribute Not Found (0x0a)
&amp;lt; ACL Data TX: Handle 0 flags 0x00 dlen 11                                                                                                                #1056 [hci0] 180.066656
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0001-0xffff
        Attribute type: Database Hash (0x2b2a)
&amp;gt; HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                    #1057 [hci0] 180.120217
        Num handles: 1
        Handle: 0
        Count: 1
&amp;gt; ACL Data RX: Handle 0 flags 0x02 dlen 24                                                                                                                #1058 [hci0] 180.174341
      ATT: Read By Type Response (0x09) len 19
        Attribute data length: 18
        Attribute data list: 1 entry
        Handle: 0x0008
        Value: 850395f13e6ee0d61c35cd65f2649921
&amp;lt; ACL Data TX: Handle 0 flags 0x00 dlen 11                                                                                                                #1059 [hci0] 180.174760
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0009-0xffff
        Attribute type: Database Hash (0x2b2a)
&amp;gt; HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                    #1060 [hci0] 180.228549
        Num handles: 1
        Handle: 0
        Count: 1
&amp;gt; ACL Data RX: Handle 0 flags 0x02 dlen 9                                                                                                                 #1061 [hci0] 180.283014
      ATT: Error Response (0x01) len 4
        Read By Type Request (0x08)
        Handle: 0x0009
        Error: Attribute Not Found (0x0a)
&amp;lt; ACL Data TX: Handle 0 flags 0x00 dlen 8                                                                                                                 #1062 [hci0] 180.288344
      ATT: Write Request (0x12) len 3
        Handle: 0x0006
          Data: 05
&amp;gt; HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                    #1063 [hci0] 180.336891
        Num handles: 1
        Handle: 0
        Count: 1
&amp;gt; ACL Data RX: Handle 0 flags 0x02 dlen 5                                                                                                                 #1064 [hci0] 180.391196
      ATT: Write Response (0x13) len 0
&amp;lt; ACL Data TX: Handle 0 flags 0x00 dlen 9                                                                                                                 #1065 [hci0] 180.391885
      ATT: Write Request (0x12) len 4
        Handle: 0x0004
          Data: 0200
&amp;gt; HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                    #1066 [hci0] 180.445129
        Num handles: 1
        Handle: 0
        Count: 1
&amp;gt; ACL Data RX: Handle 0 flags 0x02 dlen 5                                                                                                                 #1067 [hci0] 180.499211
      ATT: Write Response (0x13) len 0
&amp;lt; ACL Data TX: Handle 0 flags 0x00 dlen 7                                                                                                                 #1068 [hci0] 180.499364
      ATT: Read Request (0x0a) len 2
        Handle: 0x000b
&amp;gt; HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                    #1069 [hci0] 180.553488
        Num handles: 1
        Handle: 0
        Count: 1
&amp;gt; ACL Data RX: Handle 0 flags 0x02 dlen 12                                                                                                                #1070 [hci0] 180.607552
      ATT: Read Response (0x0b) len 7
        Value: 4f524220444655
&amp;lt; ACL Data TX: Handle 0 flags 0x00 dlen 7                                                                                                                 #1071 [hci0] 180.607706
      ATT: Read Request (0x0a) len 2
        Handle: 0x000d
&amp;gt; HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                    #1072 [hci0] 180.661812
        Num handles: 1
        Handle: 0
        Count: 1
&amp;gt; ACL Data RX: Handle 0 flags 0x02 dlen 7                                                                                                                 #1073 [hci0] 180.717933
      ATT: Read Response (0x0b) len 2
        Value: 0000
&amp;gt; ACL Data RX: Handle 0 flags 0x02 dlen 16                                                                                                                #1074 [hci0] 184.128488
      LE L2CAP: Connection Parameter Update Request (0x12) ident 2 len 8
        Min interval: 24
        Max interval: 40
        Peripheral latency: 0
        Timeout multiplier: 42
@ MGMT Event: New Connection Parameter (0x001c) plen 16                                                                                                {0x0001} [hci0] 184.128587
        Store hint: Reserved (0x4e)
        LE Address: 02:E4:05:AA:E4:7B (OUI 02-E4-05)
        Min connection interval: 24
        Max connection interval: 40
        Connection latency: 0 (0x0000)
        Supervision timeout: 42
&amp;lt; ACL Data TX: Handle 0 flags 0x00 dlen 10                                                                                                                #1075 [hci0] 184.128691
      LE L2CAP: Connection Parameter Update Response (0x13) ident 2 len 2
        Result: Connection Parameters accepted (0x0000)
&amp;lt; HCI Command: LE Connection Update (0x08|0x0013) plen 14                                                                                                 #1076 [hci0] 184.128721
        Handle: 0
        Min connection interval: 30.00 msec (0x0018)
        Max connection interval: 50.00 msec (0x0028)
        Connection latency: 0 (0x0000)
        Supervision timeout: 420 msec (0x002a)
        Min connection length: 0.000 msec (0x0000)
        Max connection length: 0.000 msec (0x0000)
&amp;gt; HCI Event: Command Status (0x0f) plen 4                                                                                                                 #1077 [hci0] 184.130608
      LE Connection Update (0x08|0x0013) ncmd 1
        Status: Success (0x00)
&amp;gt; HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                    #1078 [hci0] 184.237399
        Num handles: 1
        Handle: 0
        Count: 1
&amp;gt; HCI Event: LE Meta Event (0x3e) plen 10                                                                                                                 #1079 [hci0] 184.507661
      LE Connection Update Complete (0x03)
        Status: Success (0x00)
        Handle: 0
        Connection interval: 50.00 msec (0x0028)
        Connection latency: 0 (0x0000)
        Supervision timeout: 420 msec (0x002a)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Some more info:&lt;/p&gt;
&lt;p&gt;Bluez&amp;nbsp;Version: 5.64-0ubuntu1.1&lt;/p&gt;
&lt;p&gt;nRF Connect SDK v2.5.1&lt;/p&gt;
&lt;p&gt;Like I said with the steps in my first post, you should be able to recreate it quite easily on any ubuntu machine, it&amp;#39;s very&amp;nbsp;recreate-able&amp;nbsp;for me every time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Ideally I&amp;#39;d like to be able to reliably get connections to work first time without having to have the device cache available as I need to perform some batch testing of new boards via BLE.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hci_usb, zephyr and bluez</title><link>https://devzone.nordicsemi.com/thread/465724?ContentTypeID=1</link><pubDate>Wed, 24 Jan 2024 08:58:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c347834-216d-4cde-b956-95198ea5e92d</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello again,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you also have the btmon log of second attempt that succeeds?&lt;/p&gt;
&lt;p&gt;Edit: Which release of ncs are you using btw?&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hci_usb, zephyr and bluez</title><link>https://devzone.nordicsemi.com/thread/465662?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2024 16:41:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8eea60f8-5130-4584-b6a2-d7d8d7699c46</guid><dc:creator>john23094</dc:creator><description>&lt;p&gt;Here is the log, I also have&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_CTLR_PHY_2M=&lt;/span&gt;&lt;span&gt;n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_AUTO_DATA_LEN_UPDATE=&lt;/span&gt;&lt;span&gt;n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_AUTO_PHY_UPDATE=&lt;/span&gt;&lt;span&gt;n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;All set to see if it is any of those negotiations causing the issue, but it seems the same&lt;/span&gt;&lt;/div&gt;
&lt;/div&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/failed-connect_2C00_-auto-DL-extension-disabled.pcapng"&gt;devzone.nordicsemi.com/.../failed-connect_2C00_-auto-DL-extension-disabled.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hci_usb, zephyr and bluez</title><link>https://devzone.nordicsemi.com/thread/465643?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2024 15:27:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3fad043-9c7d-4a62-95ac-4bf04d45ed90</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;The only difference is the sequence of the two first packets, ref:&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/pastedimage1706023391139v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Out of curiosity, if you on the peripheral side disable the auto length update procedure, does this make any difference?&lt;/p&gt;
&lt;p&gt;E.g. try&amp;nbsp;CONFIG_BT_AUTO_DATA_LEN_UPDATE=n on the peripheral. This test may narrow down a bit the issue.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hci_usb, zephyr and bluez</title><link>https://devzone.nordicsemi.com/thread/465631?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2024 14:55:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1be8b774-ca45-4c56-8d92-fea5f52d324b</guid><dc:creator>john23094</dc:creator><description>&lt;p&gt;Ah sorry - I see what you mean, here is the logs from when bluez connects and succeeds on the 2nd attempt. From what I can see it looks the same, but just continues immediately to read the GATT table, at least from what I understand.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m still completely unsure why this is the case, it seems like some kind of state machine issue, but I&amp;#39;m struggling to find the culprit, is it zephyr, bluez or the hci_usb dongle&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/successful-connect-bluez-on-2nd-attempt.pcapng"&gt;devzone.nordicsemi.com/.../successful-connect-bluez-on-2nd-attempt.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hci_usb, zephyr and bluez</title><link>https://devzone.nordicsemi.com/thread/465622?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2024 14:42:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:644c221b-d1a4-4517-84bb-edfbff75017c</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Thank you for this, but you write that the second time you connect with bluez it works, so I would like to get the sniffer log for that one also. I want to understand the difference between first and second attempt.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hci_usb, zephyr and bluez</title><link>https://devzone.nordicsemi.com/thread/465567?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2024 12:55:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11e42403-7eb4-4a0f-a58d-3a07be527983</guid><dc:creator>john23094</dc:creator><description>&lt;p&gt;Sure, you mean the wireshark logs? here they are for both scenarios, linux host and bluez vs galaxy S23&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/sucessful-connect-with-s23.pcapng"&gt;devzone.nordicsemi.com/.../sucessful-connect-with-s23.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/failed-conect-bluez.pcapng"&gt;devzone.nordicsemi.com/.../failed-conect-bluez.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hci_usb, zephyr and bluez</title><link>https://devzone.nordicsemi.com/thread/465563?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2024 12:51:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69e0a19e-a32a-4ea4-831b-bcef98f4a7e8</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Can you share the actual logs? Also it would be good to look at the second connection that works, to compare if there is any difference&amp;nbsp;between the first and second in regards to the sequence up until it stops.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>