This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Incompatibility between mcumgr cli and hci_usb when running with BT_LL_SOFTDEVICE enabled

Hello everyone,

I'm dealing with mcumgr-cli to exchange commands between a host machine (running Ubuntu 20.04 LTS) and a NRF52833 DK running smp_svr sample. I'm using NCS V1.5.0

In the host machine, I'm using a NRF52840 Dongle running hci_usb sample as an adapter (hci0). I see the .config file opted for using the Softdevice as the Controller side of the stack (CONFIG_BT_LL_SOFTDEVICE=y).

When I run mcumgr --conntype ble --connstring ctlr_name=hci0,peer_name=Zephyr echo hello, the command fails displaying the following message:

The curious thing comes now: if I build the hci_usb sample using Zephyr's BLE Controller Stack (CONFIG_BT_LL_SW_SPLIT=y) and load it in the dongle, then the command executes successfully:

I'm attaching the hci trace for both cases (with hci_usb running on CONFIG_BT_LL_SOFTDEVICE and when running on CONFIG_BT_LL_SW_SPLIT), captured with btmon.

Bluetooth monitor ver 5.53
= Note: Linux version 5.8.0-48-generic (x86_64)                        0.365126
= Note: Bluetooth subsystem version 2.22                               0.365128
= New Index: 00:00:00:00:00:00 (Primary,USB,hci0)               [hci0] 0.365129
= Open Index: 00:00:00:00:00:00                                 [hci0] 0.365129
= Index Info: 00:00:00:00:00:00 (Nordic Semiconductor ASA)      [hci0] 0.365129
@ MGMT Open: bluetoothd (privileged) version 1.17             {0x0001} 0.365130
@ MGMT Open: btmon (privileged) version 1.17                  {0x0002} 0.365217
@ RAW Open: mcumgr (privileged) version 2.22                  {0x0003} 6.212686
@ MGMT Event: New Settings (0x0006) plen 4             {0x0002} [hci0] 6.212782
        Current settings: 0x00008a00
          Low Energy
          Secure Connections
          Static Address
@ MGMT Event: New Settings (0x0006) plen 4             {0x0001} [hci0] 6.212782
        Current settings: 0x00008a00
          Low Energy
          Secure Connections
          Static Address
= Close Index: 00:00:00:00:00:00                                [hci0] 6.212982
= Open Index: 00:00:00:00:00:00                                 [hci0] 7.390844
< HCI Command: Reset (0x03|0x0003) plen 0                    #1 [hci0] 7.391142
> HCI Event: Command Complete (0x0e) plen 4                  #2 [hci0] 8.393220
      Reset (0x03|0x0003) ncmd 1
        Status: Success (0x00)
< HCI Command: Read Local Supported... (0x04|0x0003) plen 0  #3 [hci0] 8.393370
> HCI Event: Command Complete (0x0e) plen 12                 #4 [hci0] 8.395927
      Read Local Supported Features (0x04|0x0003) ncmd 1
        Status: Success (0x00)
        Features: 0x00 0x00 0x00 0x00 0x60 0x00 0x00 0x00
          BR/EDR Not Supported
          LE Supported (Controller)
< HCI Command: Read Local Version In.. (0x04|0x0001) plen 0  #5 [hci0] 8.396191
> HCI Event: Command Complete (0x0e) plen 12                 #6 [hci0] 8.399166
      Read Local Version Information (0x04|0x0001) ncmd 1
        Status: Success (0x00)
        HCI version: Reserved (0x0b) - Revision 4496 (0x1190)
        LMP version: Reserved (0x0b) - Subversion 4496 (0x1190)
        Manufacturer: Nordic Semiconductor ASA (89)
< HCI Command: Read BD ADDR (0x04|0x0009) plen 0             #7 [hci0] 8.399362
> HCI Event: Command Complete (0x0e) plen 10                 #8 [hci0] 8.402190
      Read BD ADDR (0x04|0x0009) ncmd 1
        Status: Success (0x00)
        Address: 00:00:00:00:00:00 (OUI 00-00-00)
< HCI Command: LE Read Buffer Size (0x08|0x0002) plen 0      #9 [hci0] 8.402548
> HCI Event: Command Complete (0x0e) plen 7                 #10 [hci0] 8.406311
      LE Read Buffer Size (0x08|0x0002) ncmd 1
        Status: Success (0x00)
        Data packet length: 27
        Num data packets: 3
< HCI Command: LE Read Local Suppor.. (0x08|0x0003) plen 0  #11 [hci0] 8.406636
> HCI Event: Command Complete (0x0e) plen 12                #12 [hci0] 8.410307
      LE Read Local Supported Features (0x08|0x0003) ncmd 1
        Status: Success (0x00)
        Features: 0xf5 0x49 0x00 0x00 0x00 0x00 0x90 0x11
          LE Encryption
          Extended Reject Indication
          LE Ping
          LE Data Packet Length Extension
          LL Privacy
          Extended Scanner Filter Policies
          LE 2M PHY
          LE Coded PHY
          Channel Selection Algorithm #2
          Unknown features (0x1190000000000000)
< HCI Command: LE Read Supported St.. (0x08|0x001c) plen 0  #13 [hci0] 8.410466
> HCI Event: Command Complete (0x0e) plen 12                #14 [hci0] 8.414347
      LE Read Supported States (0x08|0x001c) ncmd 1
        Status: Success (0x00)
        States: 0x119000ff000049ff
          Non-connectable Advertising State
          Scannable Advertising State
          Connectable Advertising State
          High Duty Cycle Directed Advertising State
          Passive Scanning State
          Active Scanning State
          Initiating State
            and Connection State (Master Role)
          Connection State (Slave Role)
          Non-connectable Advertising State
            and Passive Scanning State
          High Duty Cycle Directed Advertising State
            and Passive Scanning State
          Connectable Advertising State
            and Active Scanning State
          Connectable Advertising State
            and Initiating State
            and Master Role & Slave Role
          High Duty Cycle Directed Advertising State
            and Initiating State
            and Master Role & Slave Role
          Low Duty Cycle Directed Advertising State
            and Initiating State
            and Master Role & Slave Role
          Connectable Advertising State
            and Connection State (Master Role)
            and Master Role & Slave Role
          High Duty Cycle Directed Advertising State
            and Connection State (Master Role)
            and Master Role & Slave Role
          Low Duty Cycle Directed Advertising State
            and Connection State (Master Role)
            and Master Role & Slave Role
          Connectable Advertising State
            and Connection State (Slave Role)
            and Master Role & Slave Role
          High Duty Cycle Directed Advertising State
            and Connection State (Slave Role)
            and Slave Role & Slave Role
          Unknown states (0x1190000000000000)
< HCI Command: Read Local Supported.. (0x04|0x0002) plen 0  #15 [hci0] 8.414671
> HCI Event: Command Complete (0x0e) plen 68                #16 [hci0] 8.422347
      Read Local Supported Commands (0x04|0x0002) ncmd 1
        Status: Success (0x00)
        Commands: 62 entries
          Disconnect (Octet 0 - Bit 5)
          Read Remote Version Information (Octet 2 - Bit 7)
          Set Event Mask (Octet 5 - Bit 6)
          Reset (Octet 5 - Bit 7)
          Read Transmit Power Level (Octet 10 - Bit 2)
          Set Controller To Host Flow Control (Octet 10 - Bit 5)
          Host Buffer Size (Octet 10 - Bit 6)
          Host Number of Completed Packets (Octet 10 - Bit 7)
          Read Local Version Information (Octet 14 - Bit 3)
          Read Local Supported Features (Octet 14 - Bit 5)
          Read BD ADDR (Octet 15 - Bit 1)
          Read RSSI (Octet 15 - Bit 5)
          Set Event Mask Page 2 (Octet 22 - Bit 2)
          LE Set Event Mask (Octet 25 - Bit 0)
          LE Read Buffer Size (Octet 25 - Bit 1)
          LE Read Local Supported Features (Octet 25 - Bit 2)
          LE Set Random Address (Octet 25 - Bit 4)
          LE Set Advertising Parameters (Octet 25 - Bit 5)
          LE Read Advertising Channel TX Power (Octet 25 - Bit 6)
          LE Set Advertising Data (Octet 25 - Bit 7)
          LE Set Scan Response Data (Octet 26 - Bit 0)
          LE Set Advertise Enable (Octet 26 - Bit 1)
          LE Set Scan Parameters (Octet 26 - Bit 2)
          LE Set Scan Enable (Octet 26 - Bit 3)
          LE Create Connection (Octet 26 - Bit 4)
          LE Create Connection Cancel (Octet 26 - Bit 5)
          LE Read White List Size (Octet 26 - Bit 6)
          LE Clear White List (Octet 26 - Bit 7)
          LE Add Device To White List (Octet 27 - Bit 0)
          LE Remove Device From White List (Octet 27 - Bit 1)
          LE Connection Update (Octet 27 - Bit 2)
          LE Set Host Channel Classification (Octet 27 - Bit 3)
          LE Read Channel Map (Octet 27 - Bit 4)
          LE Read Remote Used Features (Octet 27 - Bit 5)
          LE Encrypt (Octet 27 - Bit 6)
          LE Rand (Octet 27 - Bit 7)
          LE Start Encryption (Octet 28 - Bit 0)
          LE Long Term Key Request Reply (Octet 28 - Bit 1)
          LE Long Term Key Request Neg Reply (Octet 28 - Bit 2)
          LE Read Supported States (Octet 28 - Bit 3)
          LE Receiver Test (Octet 28 - Bit 4)
          LE Transmitter Test (Octet 28 - Bit 5)
          LE Test End (Octet 28 - Bit 6)
          Read Authenticated Payload Timeout (Octet 32 - Bit 4)
          Write Authenticated Payload Timeout (Octet 32 - Bit 5)
          LE Set Data Length (Octet 33 - Bit 6)
          LE Read Suggested Default Data Length (Octet 33 - Bit 7)
          LE Write Suggested Default Data Length (Octet 34 - Bit 0)
          LE Add Device To Resolving List (Octet 34 - Bit 3)
          LE Remove Device From Resolving List (Octet 34 - Bit 4)
          LE Clear Resolving List (Octet 34 - Bit 5)
          LE Read Resolving List Size (Octet 34 - Bit 6)
          LE Set Address Resolution Enable (Octet 35 - Bit 1)
          LE Set Resolvable Private Address Timeout (Octet 35 - Bit 2)
          LE Read Maximum Data Length (Octet 35 - Bit 3)
          LE Read PHY (Octet 35 - Bit 4)
          LE Set Default PHY (Octet 35 - Bit 5)
          LE Set PHY (Octet 35 - Bit 6)
          LE Enhanced Receiver Test (Octet 35 - Bit 7)
          LE Enhanced Transmitter Test (Octet 36 - Bit 0)
          LE Read Transmit Power (Octet 38 - Bit 7)
          LE Set Privacy Mode (Octet 39 - Bit 2)
< HCI Command: Set Event Mask (0x03|0x0001) plen 8          #17 [hci0] 8.422892
        Mask: 0x200080000204e890
          Disconnection Complete
          Encryption Change
          Read Remote Version Information Complete
          Command Complete
          Command Status
          Hardware Error
          Number of Completed Packets
          Data Buffer Overflow
          Encryption Key Refresh Complete
          LE Meta
> HCI Event: Command Complete (0x0e) plen 4                 #18 [hci0] 8.426282
      Set Event Mask (0x03|0x0001) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Set Event Mask (0x08|0x0001) plen 8       #19 [hci0] 8.426445
        Mask: 0x0000000000080e5f
          LE Connection Complete
          LE Advertising Report
          LE Connection Update Complete
          LE Read Remote Used Features Complete
          LE Long Term Key Request
          LE Data Length Change
          LE Enhanced Connection Complete
          LE Direct Advertising Report
          LE PHY Update Complete
          LE Channel Selection Algorithm
> HCI Event: Command Complete (0x0e) plen 4                 #20 [hci0] 8.428992
      LE Set Event Mask (0x08|0x0001) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Read Advertising... (0x08|0x0007) plen 0  #21 [hci0] 8.429263
> HCI Event: Command Complete (0x0e) plen 5                 #22 [hci0] 8.430980
      LE Read Advertising Channel TX Power (0x08|0x0007) ncmd 1
        Status: Success (0x00)
        TX power: 0 dbm (0x00)
< HCI Command: LE Read White List S.. (0x08|0x000f) plen 0  #23 [hci0] 8.431074
> HCI Event: Command Complete (0x0e) plen 5                 #24 [hci0] 8.434008
      LE Read White List Size (0x08|0x000f) ncmd 1
        Status: Success (0x00)
        Size: 8
< HCI Command: LE Clear White List (0x08|0x0010) plen 0     #25 [hci0] 8.434255
> HCI Event: Command Complete (0x0e) plen 4                 #26 [hci0] 8.437215
      LE Clear White List (0x08|0x0010) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Read Resolving Li.. (0x08|0x002a) plen 0  #27 [hci0] 8.437320
> HCI Event: Command Complete (0x0e) plen 5                 #28 [hci0] 8.439936
      LE Read Resolving List Size (0x08|0x002a) ncmd 1
        Status: Success (0x00)
        Size: 8
< HCI Command: LE Clear Resolving L.. (0x08|0x0029) plen 0  #29 [hci0] 8.440123
> HCI Event: Command Complete (0x0e) plen 4                 #30 [hci0] 8.443198
      LE Clear Resolving List (0x08|0x0029) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Read Maximum Data.. (0x08|0x002f) plen 0  #31 [hci0] 8.443274
> HCI Event: Command Complete (0x0e) plen 12                #32 [hci0] 8.445806
      LE Read Maximum Data Length (0x08|0x002f) ncmd 1
        Status: Success (0x00)
        Max TX octets: 251
        Max TX time: 2704
        Max RX octets: 251
        Max RX time: 2704
< HCI Command: LE Read Suggested De.. (0x08|0x0023) plen 0  #33 [hci0] 8.445939
> HCI Event: Command Complete (0x0e) plen 8                 #34 [hci0] 8.449142
      LE Read Suggested Default Data Length (0x08|0x0023) ncmd 1
        Status: Success (0x00)
        TX octets: 27
        TX time: 328
< HCI Command: Set Event Mask Page 2 (0x03|0x0063) plen 8   #35 [hci0] 8.449451
        Mask: 0x0000000000800000
          Authenticated Payload Timeout Expired
> HCI Event: Command Complete (0x0e) plen 4                 #36 [hci0] 8.452162
      Set Event Mask Page 2 (0x03|0x0063) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Write Suggested D.. (0x08|0x0024) plen 4  #37 [hci0] 8.452227
        TX octets: 251
        TX time: 2704
> HCI Event: Command Complete (0x0e) plen 4                 #38 [hci0] 8.454846
      LE Write Suggested Default Data Length (0x08|0x0024) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Set Default PHY (0x08|0x0031) plen 3      #39 [hci0] 8.454988
        All PHYs preference: 0x00
        TX PHYs preference: 0x01
          LE 1M
        RX PHYs preference: 0x01
          LE 1M
> HCI Event: Command Complete (0x0e) plen 4                 #40 [hci0] 8.457866
      LE Set Default PHY (0x08|0x0031) ncmd 1
        Status: Success (0x00)
= Index Info: 00:00:00:00:00:00 (Nordic Semiconductor ASA)      [hci0] 8.457967
< HCI Command: LE Set Advertising... (0x08|0x0008) plen 32  #41 [hci0] 8.458058
        Length: 6
        Flags: 0x04
          BR/EDR Not Supported
        TX power: 0 dBm
> HCI Event: Command Complete (0x0e) plen 4                 #42 [hci0] 8.461142
      LE Set Advertising Data (0x08|0x0008) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Set Scan Respons.. (0x08|0x0009) plen 32  #43 [hci0] 8.461235
        Length: 9
        Name (complete): ubuntu
> HCI Event: Command Complete (0x0e) plen 4                 #44 [hci0] 8.463985
      LE Set Scan Response Data (0x08|0x0009) ncmd 1
        Status: Success (0x00)
@ MGMT Event: New Settings (0x0006) plen 4             {0x0002} [hci0] 8.464055
        Current settings: 0x00008a01
          Powered
          Low Energy
          Secure Connections
          Static Address
@ MGMT Event: New Settings (0x0006) plen 4             {0x0001} [hci0] 8.464055
        Current settings: 0x00008a01
          Powered
          Low Energy
          Secure Connections
          Static Address
@ MGMT Event: New Settings (0x0006) plen 4             {0x0002} [hci0] 8.464229
        Current settings: 0x00008a00
          Low Energy
          Secure Connections
          Static Address
@ MGMT Event: New Settings (0x0006) plen 4             {0x0001} [hci0] 8.464229
        Current settings: 0x00008a00
          Low Energy
          Secure Connections
          Static Address
= Close Index: 00:00:00:00:00:00                                [hci0] 8.464238
@ MGMT Event: Index Removed (0x0005) plen 0            {0x0002} [hci0] 8.468755
@ MGMT Event: Index Removed (0x0005) plen 0            {0x0001} [hci0] 8.468755
= Open Index: 00:00:00:00:00:00                                 [hci0] 8.468782
= Index Info: 00:00:00:00:00:00 (Nordic Semiconductor ASA)      [hci0] 8.468783
@ RAW Close: mcumgr                                           {0x0003} 8.468786
@ USER Open: mcumgr (privileged) version 2.22          {0x0003} [hci0] 8.468786
= bluetoothd: Endpoint unregistered: sender=:1.70 path=/MediaEndpo..   8.469319
= bluetoothd: Endpoint unregistered: sender=:1.70 path=/MediaEndpo..   8.469325
< HCI Command: Reset (0x03|0x0003) plen 0                   #45 [hci0] 8.488972
> HCI Event: Command Complete (0x0e) plen 4                 #46 [hci0] 8.493272
      Reset (0x03|0x0003) ncmd 1
        Status: Success (0x00)
< HCI Command: Read BD ADDR (0x04|0x0009) plen 0            #47 [hci0] 8.494067
> HCI Event: Command Complete (0x0e) plen 10                #48 [hci0] 8.496993
      Read BD ADDR (0x04|0x0009) ncmd 1
        Status: Success (0x00)
        Address: 00:00:00:00:00:00 (OUI 00-00-00)
< HCI Command: Read Buffer Size (0x04|0x0005) plen 0        #49 [hci0] 8.497274
> HCI Event: Command Status (0x0f) plen 4                   #50 [hci0] 8.500051
      Read Buffer Size (0x04|0x0005) ncmd 1
        Status: Unknown HCI Command (0x01)
< HCI Command: LE Read Buffer Size (0x08|0x0002) plen 0     #51 [hci0] 8.500456
> HCI Event: Command Complete (0x0e) plen 7                 #52 [hci0] 8.502940
      LE Read Buffer Size (0x08|0x0002) ncmd 1
        Status: Success (0x00)
        Data packet length: 27
        Num data packets: 3
< HCI Command: LE Read Advertising... (0x08|0x0007) plen 0  #53 [hci0] 8.503312
> HCI Event: Command Complete (0x0e) plen 5                 #54 [hci0] 8.506030
      LE Read Advertising Channel TX Power (0x08|0x0007) ncmd 1
        Status: Success (0x00)
        TX power: 0 dbm (0x00)
< HCI Command: LE Set Event Mask (0x08|0x0001) plen 8       #55 [hci0] 8.506210
        Mask: 0x000000000000001f
          LE Connection Complete
          LE Advertising Report
          LE Connection Update Complete
          LE Read Remote Used Features Complete
          LE Long Term Key Request
> HCI Event: Command Complete (0x0e) plen 4                 #56 [hci0] 8.508794
      LE Set Event Mask (0x08|0x0001) ncmd 1
        Status: Success (0x00)
< HCI Command: Set Event Mask (0x03|0x0001) plen 8          #57 [hci0] 8.509414
        Mask: 0x3dbff807fffbffff
          Inquiry Complete
          Inquiry Result
          Connection Complete
          Connection Request
          Disconnection Complete
          Authentication Complete
          Remote Name Request Complete
          Encryption Change
          Change Connection Link Key Complete
          Master Link Key Complete
          Read Remote Supported Features Complete
          Read Remote Version Information Complete
          QoS Setup Complete
          Command Complete
          Command Status
          Hardware Error
          Flush Occurred
          Role Change
          Mode Change
          Return Link Keys
          PIN Code Request
          Link Key Request
          Link Key Notification
          Loopback Command
          Data Buffer Overflow
          Max Slots Change
          Read Clock Offset Complete
          Connection Packet Type Changed
          QoS Violation
          Page Scan Mode Change
          Page Scan Repetition Mode Change
          Flow Specification Complete
          Inquiry Result with RSSI
          Read Remote Extended Features Complete
          Synchronous Connection Complete
          Synchronous Connection Changed
          Sniff Subrating
          Extended Inquiry Result
          Encryption Key Refresh Complete
          IO Capability Request
          IO Capability Request Reply
          User Confirmation Request
          User Passkey Request
          Remote OOB Data Request
          Simple Pairing Complete
          Link Supervision Timeout Changed
          Enhanced Flush Complete
          User Passkey Notification
          Keypress Notification
          Remote Host Supported Features Notification
          LE Meta
> HCI Event: Command Complete (0x0e) plen 4                 #58 [hci0] 8.510802
      Set Event Mask (0x03|0x0001) ncmd 1
        Status: Success (0x00)
< HCI Command: Write LE Host Suppor.. (0x03|0x006d) plen 2  #59 [hci0] 8.511365
        Supported: 0x01
        Simultaneous: 0x00
> HCI Event: Command Status (0x0f) plen 4                   #60 [hci0] 8.512867
      Write LE Host Supported (0x03|0x006d) ncmd 1
        Status: Unknown HCI Command (0x01)
< HCI Command: LE Write Suggested D.. (0x08|0x0024) plen 4  #61 [hci0] 8.513133
        TX octets: 251
        TX time: 2120
> HCI Event: Command Complete (0x0e) plen 4                 #62 [hci0] 8.516026
      LE Write Suggested Default Data Length (0x08|0x0024) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Set Advertising... (0x08|0x0006) plen 15  #63 [hci0] 8.516242
        Min advertising interval: 20.000 msec (0x0020)
        Max advertising interval: 20.000 msec (0x0020)
        Type: Connectable undirected - ADV_IND (0x00)
        Own address type: Public (0x00)
        Direct address type: Public (0x00)
        Direct address: 00:00:00:00:00:00 (OUI 00-00-00)
        Channel map: 37, 38, 39 (0x07)
        Filter policy: Allow Scan Request from Any, Allow Connect Request from Any (0x00)
> HCI Event: Command Complete (0x0e) plen 4                 #64 [hci0] 8.518926
      LE Set Advertising Parameters (0x08|0x0006) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Set Scan Parameters (0x08|0x000b) plen 7  #65 [hci0] 8.519150
        Type: Active (0x01)
        Interval: 2.500 msec (0x0004)
        Window: 2.500 msec (0x0004)
        Own address type: Public (0x00)
        Filter policy: Accept all advertisement (0x00)
> HCI Event: Command Complete (0x0e) plen 4                 #66 [hci0] 8.521849
      LE Set Scan Parameters (0x08|0x000b) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2      #67 [hci0] 8.522061
        Scanning: Enabled (0x01)
        Filter duplicates: Enabled (0x01)
> HCI Event: Command Complete (0x0e) plen 4                 #68 [hci0] 8.524850
      LE Set Scan Enable (0x08|0x000c) ncmd 1
        Status: Invalid HCI Command Parameters (0x12)
< HCI Command: Read BD ADDR (0x04|0x0009) plen 0            #69 [hci0] 8.525261
> HCI Event: Command Complete (0x0e) plen 10                #70 [hci0] 8.528032
      Read BD ADDR (0x04|0x0009) ncmd 1
        Status: Success (0x00)
        Address: 00:00:00:00:00:00 (OUI 00-00-00)
@ USER Close: mcumgr                                   {0x0003} [hci0] 8.528126
= Close Index: 00:00:00:00:00:00                                [hci0] 8.528134
@ MGMT Event: Index Added (0x0004) plen 0              {0x0002} [hci0] 8.533709
@ MGMT Event: Index Added (0x0004) plen 0              {0x0001} [hci0] 8.533709
@ MGMT Command: Read Controller Inf.. (0x0004) plen 0  {0x0001} [hci0] 8.533817
@ MGMT Event: Command Complete (0x0001) plen 283       {0x0001} [hci0] 8.533820
      Read Controller Information (0x0004) plen 280
        Status: Success (0x00)
        Address: 00:00:00:00:00:00 (OUI 00-00-00)
        Version: Reserved (0x0b)
        Manufacturer: Nordic Semiconductor ASA (89)
        Supported settings: 0x0001be1b
          Powered
          Connectable
          Discoverable
          Bondable
          Low Energy
          Advertising
          Secure Connections
          Debug Keys
          Privacy
          Static Address
          PHY Configuration
        Current settings: 0x00008a00
          Low Energy
          Secure Connections
          Static Address
        Class: 0x000000
          Major class: Miscellaneous
          Minor class: 0x00
        Name: ubuntu
        Short name: 
@ MGMT Command: Remove UUID (0x0011) plen 16           {0x0001} [hci0] 8.534185
        UUID: 00000000-0000-0000-0000-000000000000
@ MGMT Event: Command Complete (0x0001) plen 6         {0x0001} [hci0] 8.534204
      Remove UUID (0x0011) plen 3
        Status: Success (0x00)
        Class: 0x000000
          Major class: Miscellaneous
          Minor class: 0x00
@ MGMT Command: Remove Device (0x0034) plen 7          {0x0001} [hci0] 8.534242
        BR/EDR Address: 00:00:00:00:00:00 (OUI 00-00-00)
@ MGMT Event: Command Complete (0x0001) plen 10        {0x0001} [hci0] 8.534257
      Remove Device (0x0034) plen 7
        Status: Success (0x00)
        BR/EDR Address: 00:00:00:00:00:00 (OUI 00-00-00)
@ MGMT Command: Set Static Address (0x002b) plen 6     {0x0001} [hci0] 8.534275
        Address: CB:E4:D4:09:74:0C (Static)
@ MGMT Event: Command Complete (0x0001) plen 7         {0x0001} [hci0] 8.534277
      Set Static Address (0x002b) plen 4
        Status: Success (0x00)
        Current settings: 0x00008a00
          Low Energy
          Secure Connections
          Static Address
@ MGMT Event: New Settings (0x0006) plen 4             {0x0002} [hci0] 8.534278
        Current settings: 0x00008a00
          Low Energy
          Secure Connections
          Static Address
@ MGMT Command: Set Privacy (0x002f) plen 17           {0x0001} [hci0] 8.534292
        Privacy: Disabled (0x00)
        Key: 00000000000000000000000000000000
@ MGMT Event: Command Complete (0x0001) plen 7         {0x0001} [hci0] 8.534293
      Set Privacy (0x002f) plen 4
        Status: Success (0x00)
        Current settings: 0x00008a00
          Low Energy
          Secure Connections
          Static Address
@ MGMT Command: Add UUID (0x0010) plen 17              {0x0001} [hci0] 8.534306
        UUID: 00001800-0000-1000-8000-00805f9b34fb
        Service class: 0x00
@ MGMT Event: Command Complete (0x0001) plen 6         {0x0001} [hci0] 8.534308
      Add UUID (0x0010) plen 3
        Status: Success (0x00)
        Class: 0x000000
          Major class: Miscellaneous
          Minor class: 0x00
@ MGMT Command: Add UUID (0x0010) plen 17              {0x0001} [hci0] 8.534323
        UUID: 00001801-0000-1000-8000-00805f9b34fb
        Service class: 0x00
@ MGMT Event: Command Complete (0x0001) plen 6         {0x0001} [hci0] 8.534324
      Add UUID (0x0010) plen 3
        Status: Success (0x00)
        Class: 0x000000
          Major class: Miscellaneous
          Minor class: 0x00
@ MGMT Command: Read Advertising Fe.. (0x003d) plen 0  {0x0001} [hci0] 8.534338
@ MGMT Event: Command Complete (0x0001) plen 11        {0x0001} [hci0] 8.534339
      Read Advertising Features (0x003d) plen 8
        Status: Success (0x00)
        Flags: 0x0000007f
          Switch into Connectable mode
          Advertise as Discoverable
          Advertise as Limited Discoverable
          Add Flags field to Advertising Data
          Add TX Power field to Advertising Data
          Add Appearance field to Scan Response
          Add Local Name in Scan Response
        Advertising data length: 31
        Scan response length: 31
        Max instances: 5
        Instances: 0
@ MGMT Command: Set Powered (0x0005) plen 1            {0x0001} [hci0] 8.534352
        Powered: Enabled (0x01)
= Open Index: 00:00:00:00:00:00                                 [hci0] 8.534363
< HCI Command: Reset (0x03|0x0003) plen 0                   #71 [hci0] 8.534392
> HCI Event: Command Complete (0x0e) plen 4                 #72 [hci0] 8.536785
      Reset (0x03|0x0003) ncmd 1
        Status: Success (0x00)
< HCI Command: Read Local Supported.. (0x04|0x0003) plen 0  #73 [hci0] 8.536823
= bluetoothd: Endpoint registered: sender=:1.70 path=/MediaEndpoin..   8.537014
= bluetoothd: Endpoint registered: sender=:1.70 path=/MediaEndpoin..   8.537061
> HCI Event: Command Complete (0x0e) plen 12                #74 [hci0] 8.539788
      Read Local Supported Features (0x04|0x0003) ncmd 1
        Status: Success (0x00)
        Features: 0x00 0x00 0x00 0x00 0x60 0x00 0x00 0x00
          BR/EDR Not Supported
          LE Supported (Controller)
< HCI Command: Read Local Version I.. (0x04|0x0001) plen 0  #75 [hci0] 8.539894
> HCI Event: Command Complete (0x0e) plen 12                #76 [hci0] 8.542961
      Read Local Version Information (0x04|0x0001) ncmd 1
        Status: Success (0x00)
        HCI version: Reserved (0x0b) - Revision 4496 (0x1190)
        LMP version: Reserved (0x0b) - Subversion 4496 (0x1190)
        Manufacturer: Nordic Semiconductor ASA (89)
< HCI Command: Read BD ADDR (0x04|0x0009) plen 0            #77 [hci0] 8.543094
> HCI Event: Command Complete (0x0e) plen 10                #78 [hci0] 8.545827
      Read BD ADDR (0x04|0x0009) ncmd 1
        Status: Success (0x00)
        Address: 00:00:00:00:00:00 (OUI 00-00-00)
< HCI Command: LE Read Buffer Size (0x08|0x0002) plen 0     #79 [hci0] 8.546024
> HCI Event: Command Complete (0x0e) plen 7                 #80 [hci0] 8.547762
      LE Read Buffer Size (0x08|0x0002) ncmd 1
        Status: Success (0x00)
        Data packet length: 27
        Num data packets: 3
< HCI Command: LE Read Local Suppor.. (0x08|0x0003) plen 0  #81 [hci0] 8.547850
> HCI Event: Command Complete (0x0e) plen 12                #82 [hci0] 8.549855
      LE Read Local Supported Features (0x08|0x0003) ncmd 1
        Status: Success (0x00)
        Features: 0xf5 0x49 0x00 0x00 0x00 0x00 0x90 0x11
          LE Encryption
          Extended Reject Indication
          LE Ping
          LE Data Packet Length Extension
          LL Privacy
          Extended Scanner Filter Policies
          LE 2M PHY
          LE Coded PHY
          Channel Selection Algorithm #2
          Unknown features (0x1190000000000000)
< HCI Command: LE Read Supported St.. (0x08|0x001c) plen 0  #83 [hci0] 8.549958
> HCI Event: Command Complete (0x0e) plen 12                #84 [hci0] 8.553088
      LE Read Supported States (0x08|0x001c) ncmd 1
        Status: Success (0x00)
        States: 0x119000ff000049ff
          Non-connectable Advertising State
          Scannable Advertising State
          Connectable Advertising State
          High Duty Cycle Directed Advertising State
          Passive Scanning State
          Active Scanning State
          Initiating State
            and Connection State (Master Role)
          Connection State (Slave Role)
          Non-connectable Advertising State
            and Passive Scanning State
          High Duty Cycle Directed Advertising State
            and Passive Scanning State
          Connectable Advertising State
            and Active Scanning State
          Connectable Advertising State
            and Initiating State
            and Master Role & Slave Role
          High Duty Cycle Directed Advertising State
            and Initiating State
            and Master Role & Slave Role
          Low Duty Cycle Directed Advertising State
            and Initiating State
            and Master Role & Slave Role
          Connectable Advertising State
            and Connection State (Master Role)
            and Master Role & Slave Role
          High Duty Cycle Directed Advertising State
            and Connection State (Master Role)
            and Master Role & Slave Role
          Low Duty Cycle Directed Advertising State
            and Connection State (Master Role)
            and Master Role & Slave Role
          Connectable Advertising State
            and Connection State (Slave Role)
            and Master Role & Slave Role
          High Duty Cycle Directed Advertising State
            and Connection State (Slave Role)
            and Slave Role & Slave Role
          Unknown states (0x1190000000000000)
< HCI Command: Read Local Supported.. (0x04|0x0002) plen 0  #85 [hci0] 8.553199
> HCI Event: Command Complete (0x0e) plen 68                #86 [hci0] 8.558973
      Read Local Supported Commands (0x04|0x0002) ncmd 1
        Status: Success (0x00)
        Commands: 62 entries
          Disconnect (Octet 0 - Bit 5)
          Read Remote Version Information (Octet 2 - Bit 7)
          Set Event Mask (Octet 5 - Bit 6)
          Reset (Octet 5 - Bit 7)
          Read Transmit Power Level (Octet 10 - Bit 2)
          Set Controller To Host Flow Control (Octet 10 - Bit 5)
          Host Buffer Size (Octet 10 - Bit 6)
          Host Number of Completed Packets (Octet 10 - Bit 7)
          Read Local Version Information (Octet 14 - Bit 3)
          Read Local Supported Features (Octet 14 - Bit 5)
          Read BD ADDR (Octet 15 - Bit 1)
          Read RSSI (Octet 15 - Bit 5)
          Set Event Mask Page 2 (Octet 22 - Bit 2)
          LE Set Event Mask (Octet 25 - Bit 0)
          LE Read Buffer Size (Octet 25 - Bit 1)
          LE Read Local Supported Features (Octet 25 - Bit 2)
          LE Set Random Address (Octet 25 - Bit 4)
          LE Set Advertising Parameters (Octet 25 - Bit 5)
          LE Read Advertising Channel TX Power (Octet 25 - Bit 6)
          LE Set Advertising Data (Octet 25 - Bit 7)
          LE Set Scan Response Data (Octet 26 - Bit 0)
          LE Set Advertise Enable (Octet 26 - Bit 1)
          LE Set Scan Parameters (Octet 26 - Bit 2)
          LE Set Scan Enable (Octet 26 - Bit 3)
          LE Create Connection (Octet 26 - Bit 4)
          LE Create Connection Cancel (Octet 26 - Bit 5)
          LE Read White List Size (Octet 26 - Bit 6)
          LE Clear White List (Octet 26 - Bit 7)
          LE Add Device To White List (Octet 27 - Bit 0)
          LE Remove Device From White List (Octet 27 - Bit 1)
          LE Connection Update (Octet 27 - Bit 2)
          LE Set Host Channel Classification (Octet 27 - Bit 3)
          LE Read Channel Map (Octet 27 - Bit 4)
          LE Read Remote Used Features (Octet 27 - Bit 5)
          LE Encrypt (Octet 27 - Bit 6)
          LE Rand (Octet 27 - Bit 7)
          LE Start Encryption (Octet 28 - Bit 0)
          LE Long Term Key Request Reply (Octet 28 - Bit 1)
          LE Long Term Key Request Neg Reply (Octet 28 - Bit 2)
          LE Read Supported States (Octet 28 - Bit 3)
          LE Receiver Test (Octet 28 - Bit 4)
          LE Transmitter Test (Octet 28 - Bit 5)
          LE Test End (Octet 28 - Bit 6)
          Read Authenticated Payload Timeout (Octet 32 - Bit 4)
          Write Authenticated Payload Timeout (Octet 32 - Bit 5)
          LE Set Data Length (Octet 33 - Bit 6)
          LE Read Suggested Default Data Length (Octet 33 - Bit 7)
          LE Write Suggested Default Data Length (Octet 34 - Bit 0)
          LE Add Device To Resolving List (Octet 34 - Bit 3)
          LE Remove Device From Resolving List (Octet 34 - Bit 4)
          LE Clear Resolving List (Octet 34 - Bit 5)
          LE Read Resolving List Size (Octet 34 - Bit 6)
          LE Set Address Resolution Enable (Octet 35 - Bit 1)
          LE Set Resolvable Private Address Timeout (Octet 35 - Bit 2)
          LE Read Maximum Data Length (Octet 35 - Bit 3)
          LE Read PHY (Octet 35 - Bit 4)
          LE Set Default PHY (Octet 35 - Bit 5)
          LE Set PHY (Octet 35 - Bit 6)
          LE Enhanced Receiver Test (Octet 35 - Bit 7)
          LE Enhanced Transmitter Test (Octet 36 - Bit 0)
          LE Read Transmit Power (Octet 38 - Bit 7)
          LE Set Privacy Mode (Octet 39 - Bit 2)
< HCI Command: Set Event Mask (0x03|0x0001) plen 8          #87 [hci0] 8.559078
        Mask: 0x200080000204e890
          Disconnection Complete
          Encryption Change
          Read Remote Version Information Complete
          Command Complete
          Command Status
          Hardware Error
          Number of Completed Packets
          Data Buffer Overflow
          Encryption Key Refresh Complete
          LE Meta
> HCI Event: Command Complete (0x0e) plen 4                 #88 [hci0] 8.561809
      Set Event Mask (0x03|0x0001) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Set Event Mask (0x08|0x0001) plen 8       #89 [hci0] 8.561959
        Mask: 0x0000000000080e5f
          LE Connection Complete
          LE Advertising Report
          LE Connection Update Complete
          LE Read Remote Used Features Complete
          LE Long Term Key Request
          LE Data Length Change
          LE Enhanced Connection Complete
          LE Direct Advertising Report
          LE PHY Update Complete
          LE Channel Selection Algorithm
> HCI Event: Command Complete (0x0e) plen 4                 #90 [hci0] 8.563950
      LE Set Event Mask (0x08|0x0001) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Read Advertising... (0x08|0x0007) plen 0  #91 [hci0] 8.564038
> HCI Event: Command Complete (0x0e) plen 5                 #92 [hci0] 8.566948
      LE Read Advertising Channel TX Power (0x08|0x0007) ncmd 1
        Status: Success (0x00)
        TX power: 0 dbm (0x00)
< HCI Command: LE Read White List S.. (0x08|0x000f) plen 0  #93 [hci0] 8.567031
> HCI Event: Command Complete (0x0e) plen 5                 #94 [hci0] 8.569845
      LE Read White List Size (0x08|0x000f) ncmd 1
        Status: Success (0x00)
        Size: 8
< HCI Command: LE Clear White List (0x08|0x0010) plen 0     #95 [hci0] 8.569940
> HCI Event: Command Complete (0x0e) plen 4                 #96 [hci0] 8.571740
      LE Clear White List (0x08|0x0010) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Read Resolving Li.. (0x08|0x002a) plen 0  #97 [hci0] 8.571839
> HCI Event: Command Complete (0x0e) plen 5                 #98 [hci0] 8.574822
      LE Read Resolving List Size (0x08|0x002a) ncmd 1
        Status: Success (0x00)
        Size: 8
< HCI Command: LE Clear Resolving L.. (0x08|0x0029) plen 0  #99 [hci0] 8.574918
> HCI Event: Command Complete (0x0e) plen 4                #100 [hci0] 8.577950
      LE Clear Resolving List (0x08|0x0029) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Read Maximum Dat.. (0x08|0x002f) plen 0  #101 [hci0] 8.578047
> HCI Event: Command Complete (0x0e) plen 12               #102 [hci0] 8.580733
      LE Read Maximum Data Length (0x08|0x002f) ncmd 1
        Status: Success (0x00)
        Max TX octets: 251
        Max TX time: 2704
        Max RX octets: 251
        Max RX time: 2704
< HCI Command: LE Read Suggested D.. (0x08|0x0023) plen 0  #103 [hci0] 8.580828
> HCI Event: Command Complete (0x0e) plen 8                #104 [hci0] 8.583889
      LE Read Suggested Default Data Length (0x08|0x0023) ncmd 1
        Status: Success (0x00)
        TX octets: 27
        TX time: 328
< HCI Command: Set Event Mask Page 2 (0x03|0x0063) plen 8  #105 [hci0] 8.583984
        Mask: 0x0000000000800000
          Authenticated Payload Timeout Expired
> HCI Event: Command Complete (0x0e) plen 4                #106 [hci0] 8.586982
      Set Event Mask Page 2 (0x03|0x0063) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Write Suggested... (0x08|0x0024) plen 4  #107 [hci0] 8.587065
        TX octets: 251
        TX time: 2704
> HCI Event: Command Complete (0x0e) plen 4                #108 [hci0] 8.589746
      LE Write Suggested Default Data Length (0x08|0x0024) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Set Default PHY (0x08|0x0031) plen 3     #109 [hci0] 8.589831
        All PHYs preference: 0x00
        TX PHYs preference: 0x01
          LE 1M
        RX PHYs preference: 0x01
          LE 1M
> HCI Event: Command Complete (0x0e) plen 4                #110 [hci0] 8.591937
      LE Set Default PHY (0x08|0x0031) ncmd 1
        Status: Success (0x00)
= Index Info: 00:00:00:00:00:00 (Nordic Semiconductor ASA)      [hci0] 8.592026
< HCI Command: LE Set Advertising.. (0x08|0x0008) plen 32  #111 [hci0] 8.592062
        Length: 6
        Flags: 0x04
          BR/EDR Not Supported
        TX power: 0 dBm
> HCI Event: Command Complete (0x0e) plen 4                #112 [hci0] 8.594879
      LE Set Advertising Data (0x08|0x0008) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Set Scan Respon.. (0x08|0x0009) plen 32  #113 [hci0] 8.594981
        Length: 9
        Name (complete): ubuntu
> HCI Event: Command Complete (0x0e) plen 4                #114 [hci0] 8.597969
      LE Set Scan Response Data (0x08|0x0009) ncmd 1
        Status: Success (0x00)
@ MGMT Event: Command Complete (0x0001) plen 7         {0x0001} [hci0] 8.598090
      Set Powered (0x0005) plen 4
        Status: Success (0x00)
        Current settings: 0x00008a01
          Powered
          Low Energy
          Secure Connections
          Static Address
@ MGMT Event: New Settings (0x0006) plen 4             {0x0002} [hci0] 8.598097
        Current settings: 0x00008a01
          Powered
          Low Energy
          Secure Connections
          Static Address
@ MGMT Command: Set Local Name (0x000f) plen 260       {0x0001} [hci0] 8.598190
        Name: ubuntu
        Short name: 
@ MGMT Event: Command Complete (0x0001) plen 263       {0x0001} [hci0] 8.598207
      Set Local Name (0x000f) plen 260
        Status: Success (0x00)
        Name: ubuntu
        Short name: 
@ MGMT Command: Add UUID (0x0010) plen 17              {0x0001} [hci0] 8.598232
        UUID: 0000110e-0000-1000-8000-00805f9b34fb
        Service class: 0x00
@ MGMT Event: Command Complete (0x0001) plen 6         {0x0001} [hci0] 8.598234
      Add UUID (0x0010) plen 3
        Status: Success (0x00)
        Class: 0x000000
          Major class: Miscellaneous
          Minor class: 0x00
@ MGMT Command: Add UUID (0x0010) plen 17              {0x0001} [hci0] 8.598253
        UUID: 0000110c-0000-1000-8000-00805f9b34fb
        Service class: 0x00
@ MGMT Event: Command Complete (0x0001) plen 6         {0x0001} [hci0] 8.598254
      Add UUID (0x0010) plen 3
        Status: Success (0x00)
        Class: 0x000000
          Major class: Miscellaneous
          Minor class: 0x00
@ MGMT Command: Add UUID (0x0010) plen 17              {0x0001} [hci0] 8.598271
        UUID: 00001112-0000-1000-8000-00805f9b34fb
        Service class: 0x00
@ MGMT Event: Command Complete (0x0001) plen 6         {0x0001} [hci0] 8.598272
      Add UUID (0x0010) plen 3
        Status: Success (0x00)
        Class: 0x000000
          Major class: Miscellaneous
          Minor class: 0x00
@ MGMT Command: Add UUID (0x0010) plen 17              {0x0001} [hci0] 8.598288
        UUID: 00001108-0000-1000-8000-00805f9b34fb
        Service class: 0x00
@ MGMT Event: Command Complete (0x0001) plen 6         {0x0001} [hci0] 8.598289
      Add UUID (0x0010) plen 3
        Status: Success (0x00)
        Class: 0x000000
          Major class: Miscellaneous
          Minor class: 0x00
@ MGMT Command: Unblock Device (0x0027) plen 7         {0x0001} [hci0] 8.598306
        BR/EDR Address: 00:00:00:00:00:00 (OUI 00-00-00)
@ MGMT Event: Device Unblocked (0x0015) plen 7         {0x0002} [hci0] 8.598307
        BR/EDR Address: 00:00:00:00:00:00 (OUI 00-00-00)
@ MGMT Event: Command Complete (0x0001) plen 10        {0x0001} [hci0] 8.598309
      Unblock Device (0x0027) plen 7
        Status: Success (0x00)
        BR/EDR Address: 00:00:00:00:00:00 (OUI 00-00-00)
@ MGMT Command: Load Long Term Keys (0x0013) plen 2    {0x0001} [hci0] 8.598324
        Keys: 0
@ MGMT Event: Command Complete (0x0001) plen 3         {0x0001} [hci0] 8.598326
      Load Long Term Keys (0x0013) plen 0
        Status: Success (0x00)
@ MGMT Command: Load Identity Resol.. (0x0030) plen 2  {0x0001} [hci0] 8.598364
        Keys: 0
@ MGMT Event: Command Complete (0x0001) plen 3         {0x0001} [hci0] 8.598366
      Load Identity Resolving Keys (0x0030) plen 0
        Status: Success (0x00)
@ MGMT Command: Load Connection Par.. (0x0035) plen 2  {0x0001} [hci0] 8.598382
        Parameters: 0
@ MGMT Event: Command Complete (0x0001) plen 3         {0x0001} [hci0] 8.598383
      Load Connection Parameters (0x0035) plen 0
        Status: Success (0x00)
@ MGMT Command: Add UUID (0x0010) plen 17              {0x0001} [hci0] 8.598398
        UUID: 00001200-0000-1000-8000-00805f9b34fb
        Service class: 0x00
@ MGMT Event: Command Complete (0x0001) plen 6         {0x0001} [hci0] 8.598399
      Add UUID (0x0010) plen 3
        Status: Success (0x00)
        Class: 0x000000
          Major class: Miscellaneous
          Minor class: 0x00
@ MGMT Command: Set Device ID (0x0028) plen 8          {0x0001} [hci0] 8.598433
        Device ID: USB Implementer's Forum assigned (0x0002)
          Vendor: Linux Foundation (0x1d6b)
          Product: 0x0246
          Version: 5.3.5 (0x0535)
@ MGMT Event: Command Complete (0x0001) plen 3         {0x0001} [hci0] 8.598435
      Set Device ID (0x0028) plen 0
        Status: Success (0x00)
@ MGMT Command: Set Local Name (0x000f) plen 260       {0x0001} [hci0] 8.598450
        Name: ubuntu
        Short name: 
@ MGMT Event: Command Complete (0x0001) plen 263       {0x0001} [hci0] 8.598452
      Set Local Name (0x000f) plen 260
        Status: Success (0x00)
        Name: ubuntu
        Short name: 
@ MGMT Command: Unknown (0x0046) plen 36               {0x0001} [hci0] 8.598467
        02 00 01 bf 01 fb 9d 4e f3 bc 36 d8 74 f5 39 41  .......N..6.t.9A
        38 68 4c 02 a5 99 ba e4 e1 7c a6 18 22 8e 07 56  8hL......|.."..V
        b4 e8 5f 01                                      .._.            
@ MGMT Event: Command Complete (0x0001) plen 3         {0x0001} [hci0] 8.598472
      Unknown (0x0046) plen 0
        Status: Success (0x00)
@ MGMT Command: Add UUID (0x0010) plen 17              {0x0001} [hci0] 8.598488
        UUID: 0000110b-0000-1000-8000-00805f9b34fb
        Service class: 0x04
@ MGMT Event: Command Complete (0x0001) plen 6         {0x0001} [hci0] 8.598489
      Add UUID (0x0010) plen 3
        Status: Success (0x00)
        Class: 0x000000
          Major class: Miscellaneous
          Minor class: 0x00
@ MGMT Command: Add UUID (0x0010) plen 17              {0x0001} [hci0] 8.598505
        UUID: 0000110a-0000-1000-8000-00805f9b34fb
        Service class: 0x08
@ MGMT Event: Command Complete (0x0001) plen 6         {0x0001} [hci0] 8.598506
      Add UUID (0x0010) plen 3
        Status: Success (0x00)
        Class: 0x000000
          Major class: Miscellaneous
          Minor class: 0x00
@ MGMT Command: Set Powered (0x0005) plen 1            {0x0001} [hci0] 8.598522
        Powered: Enabled (0x01)
@ MGMT Event: Command Complete (0x0001) plen 7         {0x0001} [hci0] 8.598523
      Set Powered (0x00
Bluetooth monitor ver 5.53
= Note: Linux version 5.8.0-48-generic (x86_64)                        0.099563
= Note: Bluetooth subsystem version 2.22                               0.099565
= New Index: 00:00:00:00:00:00 (Primary,USB,hci0)               [hci0] 0.099566
= Open Index: 00:00:00:00:00:00                                 [hci0] 0.099566
= Index Info: 00:00:00:00:00:00 (The Linux Foundation)          [hci0] 0.099567
@ MGMT Open: bluetoothd (privileged) version 1.17             {0x0001} 0.099568
@ MGMT Open: btmon (privileged) version 1.17                  {0x0002} 0.099676
@ RAW Open: mcumgr (privileged) version 2.22                 {0x0003} 43.082113
@ MGMT Event: New Settings (0x0006) plen 4            {0x0002} [hci0] 43.082139
        Current settings: 0x00008a00
          Low Energy
          Secure Connections
          Static Address
@ MGMT Event: New Settings (0x0006) plen 4            {0x0001} [hci0] 43.082139
        Current settings: 0x00008a00
          Low Energy
          Secure Connections
          Static Address
= Close Index: 00:00:00:00:00:00                               [hci0] 43.082443
= Open Index: 00:00:00:00:00:00                                [hci0] 44.099503
< HCI Command: Reset (0x03|0x0003) plen 0                   #1 [hci0] 44.099839
> HCI Event: Command Complete (0x0e) plen 4                 #2 [hci0] 44.453746
      Reset (0x03|0x0003) ncmd 1
        Status: Success (0x00)
< HCI Command: Read Local Supported.. (0x04|0x0003) plen 0  #3 [hci0] 44.454076
> HCI Event: Command Complete (0x0e) plen 12                #4 [hci0] 44.456606
      Read Local Supported Features (0x04|0x0003) ncmd 1
        Status: Success (0x00)
        Features: 0x00 0x00 0x00 0x00 0x60 0x00 0x00 0x00
          BR/EDR Not Supported
          LE Supported (Controller)
< HCI Command: Read Local Version I.. (0x04|0x0001) plen 0  #5 [hci0] 44.456751
> HCI Event: Command Complete (0x0e) plen 12                #6 [hci0] 44.459527
      Read Local Version Information (0x04|0x0001) ncmd 1
        Status: Success (0x00)
        HCI version: Reserved (0x0b) - Revision 0 (0x0000)
        LMP version: Reserved (0x0b) - Subversion 65535 (0xffff)
        Manufacturer: The Linux Foundation (1521)
< HCI Command: Read BD ADDR (0x04|0x0009) plen 0            #7 [hci0] 44.459816
> HCI Event: Command Complete (0x0e) plen 10                #8 [hci0] 44.462551
      Read BD ADDR (0x04|0x0009) ncmd 1
        Status: Success (0x00)
        Address: 00:00:00:00:00:00 (OUI 00-00-00)
< HCI Command: LE Read Buffer Size (0x08|0x0002) plen 0     #9 [hci0] 44.462663
> HCI Event: Command Complete (0x0e) plen 7                #10 [hci0] 44.465750
      LE Read Buffer Size (0x08|0x0002) ncmd 1
        Status: Success (0x00)
        Data packet length: 27
        Num data packets: 7
< HCI Command: LE Read Local Suppo.. (0x08|0x0003) plen 0  #11 [hci0] 44.465922
> HCI Event: Command Complete (0x0e) plen 12               #12 [hci0] 44.469513
      LE Read Local Supported Features (0x08|0x0003) ncmd 1
        Status: Success (0x00)
        Features: 0xff 0x49 0x01 0x00 0x00 0x00 0x00 0x00
          LE Encryption
          Connection Parameter Request Procedure
          Extended Reject Indication
          Slave-initiated Features Exchange
          LE Ping
          LE Data Packet Length Extension
          LL Privacy
          Extended Scanner Filter Policies
          LE 2M PHY
          LE Coded PHY
          Channel Selection Algorithm #2
          Minimum Number of Used Channels Procedure
< HCI Command: LE Read Supported S.. (0x08|0x001c) plen 0  #13 [hci0] 44.469856
> HCI Event: Command Complete (0x0e) plen 12               #14 [hci0] 44.472388
      LE Read Supported States (0x08|0x001c) ncmd 1
        Status: Success (0x00)
        States: 0x000003ffff3fffff
          Non-connectable Advertising State
          Scannable Advertising State
          Connectable Advertising State
          High Duty Cycle Directed Advertising State
          Passive Scanning State
          Active Scanning State
          Initiating State
            and Connection State (Master Role)
          Connection State (Slave Role)
          Non-connectable Advertising State
            and Passive Scanning State
          Scannable Advertising State
            and Passive Scanning State
          Connectable Advertising State
            and Passive Scanning State
          High Duty Cycle Directed Advertising State
            and Passive Scanning State
          Non-connectable Advertising State
            and Active Scanning State
          Scannable Advertising State
            and Active Scanning State
          Connectable Advertising State
            and Active Scanning State
          High Duty Cycle Directed Advertising State
            and Active Scanning State
          Non-connectable Advertising State
            and Initiating State
          Scannable Advertising State
            and Initiating State
          Non-connectable Advertising State
            and Connection State (Master Role)
          Scannable Advertising State
            and Connection State (Master Role)
          Non-connectable Advertising State
            and Connection State (Slave Role)
          Scannable Advertising State
            and Connection State (Slave Role)
          Passive Scanning State
            and Connection State (Master Role)
          Active Scanning State
            and Connection State (Master Role)
          Passive Scanning State
            and Connection State (Slave Role)
          Active Scanning State
            and Connection State (Slave Role)
          Initiating State
            and Connection State (Master Role)
            and Master Role & Master Role
          Low Duty Cycle Directed Advertising State
          Low Duty Cycle Directed Advertising State
            and Passive Scanning State
          Low Duty Cycle Directed Advertising State
            and Active Scanning State
          Connectable Advertising State
            and Initiating State
            and Master Role & Slave Role
          High Duty Cycle Directed Advertising State
            and Initiating State
            and Master Role & Slave Role
          Low Duty Cycle Directed Advertising State
            and Initiating State
            and Master Role & Slave Role
          Connectable Advertising State
            and Connection State (Master Role)
            and Master Role & Slave Role
          High Duty Cycle Directed Advertising State
            and Connection State (Master Role)
            and Master Role & Slave Role
          Low Duty Cycle Directed Advertising State
            and Connection State (Master Role)
            and Master Role & Slave Role
          Connectable Advertising State
            and Connection State (Slave Role)
            and Master Role & Slave Role
          High Duty Cycle Directed Advertising State
            and Connection State (Slave Role)
            and Slave Role & Slave Role
          Low Duty Cycle Directed Advertising State
            and Connection State (Slave Role)
            and Slave Role & Slave Role
          Initiating State
            and Connection State (Slave Role)
            and Master Role & Slave Role
< HCI Command: Read Local Supporte.. (0x04|0x0002) plen 0  #15 [hci0] 44.472642
> HCI Event: Command Complete (0x0e) plen 68               #16 [hci0] 44.476814
      Read Local Supported Commands (0x04|0x0002) ncmd 1
        Status: Success (0x00)
        Commands: 61 entries
          Disconnect (Octet 0 - Bit 5)
          Read Remote Version Information (Octet 2 - Bit 7)
          Set Event Mask (Octet 5 - Bit 6)
          Reset (Octet 5 - Bit 7)
          Read Transmit Power Level (Octet 10 - Bit 2)
          Set Controller To Host Flow Control (Octet 10 - Bit 5)
          Host Buffer Size (Octet 10 - Bit 6)
          Host Number of Completed Packets (Octet 10 - Bit 7)
          Read Local Version Information (Octet 14 - Bit 3)
          Read Local Supported Features (Octet 14 - Bit 5)
          Read BD ADDR (Octet 15 - Bit 1)
          Read RSSI (Octet 15 - Bit 5)
          Set Event Mask Page 2 (Octet 22 - Bit 2)
          LE Set Event Mask (Octet 25 - Bit 0)
          LE Read Buffer Size (Octet 25 - Bit 1)
          LE Read Local Supported Features (Octet 25 - Bit 2)
          LE Set Random Address (Octet 25 - Bit 4)
          LE Set Advertising Parameters (Octet 25 - Bit 5)
          LE Read Advertising Channel TX Power (Octet 25 - Bit 6)
          LE Set Advertising Data (Octet 25 - Bit 7)
          LE Set Scan Response Data (Octet 26 - Bit 0)
          LE Set Advertise Enable (Octet 26 - Bit 1)
          LE Set Scan Parameters (Octet 26 - Bit 2)
          LE Set Scan Enable (Octet 26 - Bit 3)
          LE Create Connection (Octet 26 - Bit 4)
          LE Create Connection Cancel (Octet 26 - Bit 5)
          LE Read White List Size (Octet 26 - Bit 6)
          LE Clear White List (Octet 26 - Bit 7)
          LE Add Device To White List (Octet 27 - Bit 0)
          LE Remove Device From White List (Octet 27 - Bit 1)
          LE Connection Update (Octet 27 - Bit 2)
          LE Set Host Channel Classification (Octet 27 - Bit 3)
          LE Read Channel Map (Octet 27 - Bit 4)
          LE Read Remote Used Features (Octet 27 - Bit 5)
          LE Encrypt (Octet 27 - Bit 6)
          LE Rand (Octet 27 - Bit 7)
          LE Start Encryption (Octet 28 - Bit 0)
          LE Long Term Key Request Reply (Octet 28 - Bit 1)
          LE Long Term Key Request Neg Reply (Octet 28 - Bit 2)
          LE Read Supported States (Octet 28 - Bit 3)
          Read Authenticated Payload Timeout (Octet 32 - Bit 4)
          Write Authenticated Payload Timeout (Octet 32 - Bit 5)
          LE Remote Connection Parameter Request Reply (Octet 33 - Bit 4)
          LE Remote Connection Parameter Request Negative Reply (Octet 33 - Bit 5)
          LE Set Data Length (Octet 33 - Bit 6)
          LE Read Suggested Default Data Length (Octet 33 - Bit 7)
          LE Write Suggested Default Data Length (Octet 34 - Bit 0)
          LE Add Device To Resolving List (Octet 34 - Bit 3)
          LE Remove Device From Resolving List (Octet 34 - Bit 4)
          LE Clear Resolving List (Octet 34 - Bit 5)
          LE Read Resolving List Size (Octet 34 - Bit 6)
          LE Read Peer Resolvable Address (Octet 34 - Bit 7)
          LE Read Local Resolvable Address (Octet 35 - Bit 0)
          LE Set Address Resolution Enable (Octet 35 - Bit 1)
          LE Set Resolvable Private Address Timeout (Octet 35 - Bit 2)
          LE Read Maximum Data Length (Octet 35 - Bit 3)
          LE Read PHY (Octet 35 - Bit 4)
          LE Set Default PHY (Octet 35 - Bit 5)
          LE Set PHY (Octet 35 - Bit 6)
          LE Read Transmit Power (Octet 38 - Bit 7)
          LE Set Privacy Mode (Octet 39 - Bit 2)
< HCI Command: Set Event Mask (0x03|0x0001) plen 8         #17 [hci0] 44.477503
        Mask: 0x200080000204e890
          Disconnection Complete
          Encryption Change
          Read Remote Version Information Complete
          Command Complete
          Command Status
          Hardware Error
          Number of Completed Packets
          Data Buffer Overflow
          Encryption Key Refresh Complete
          LE Meta
> HCI Event: Command Complete (0x0e) plen 4                #18 [hci0] 44.479546
      Set Event Mask (0x03|0x0001) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Set Event Mask (0x08|0x0001) plen 8      #19 [hci0] 44.479812
        Mask: 0x0000000000080e7f
          LE Connection Complete
          LE Advertising Report
          LE Connection Update Complete
          LE Read Remote Used Features Complete
          LE Long Term Key Request
          LE Remote Connection Parameter Request
          LE Data Length Change
          LE Enhanced Connection Complete
          LE Direct Advertising Report
          LE PHY Update Complete
          LE Channel Selection Algorithm
> HCI Event: Command Complete (0x0e) plen 4                #20 [hci0] 44.482754
      LE Set Event Mask (0x08|0x0001) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Read Advertising.. (0x08|0x0007) plen 0  #21 [hci0] 44.482899
> HCI Event: Command Complete (0x0e) plen 5                #22 [hci0] 44.486427
      LE Read Advertising Channel TX Power (0x08|0x0007) ncmd 1
        Status: Success (0x00)
        TX power: 0 dbm (0x00)
< HCI Command: LE Read White List... (0x08|0x000f) plen 0  #23 [hci0] 44.486845
> HCI Event: Command Complete (0x0e) plen 5                #24 [hci0] 44.489437
      LE Read White List Size (0x08|0x000f) ncmd 1
        Status: Success (0x00)
        Size: 8
< HCI Command: LE Clear White List (0x08|0x0010) plen 0    #25 [hci0] 44.489542
> HCI Event: Command Complete (0x0e) plen 4                #26 [hci0] 44.492436
      LE Clear White List (0x08|0x0010) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Read Resolving L.. (0x08|0x002a) plen 0  #27 [hci0] 44.492563
> HCI Event: Command Complete (0x0e) plen 5                #28 [hci0] 44.495450
      LE Read Resolving List Size (0x08|0x002a) ncmd 1
        Status: Success (0x00)
        Size: 8
< HCI Command: LE Clear Resolving... (0x08|0x0029) plen 0  #29 [hci0] 44.495546
> HCI Event: Command Complete (0x0e) plen 4                #30 [hci0] 44.498425
      LE Clear Resolving List (0x08|0x0029) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Read Maximum Dat.. (0x08|0x002f) plen 0  #31 [hci0] 44.498578
> HCI Event: Command Complete (0x0e) plen 12               #32 [hci0] 44.501278
      LE Read Maximum Data Length (0x08|0x002f) ncmd 1
        Status: Success (0x00)
        Max TX octets: 27
        Max TX time: 2704
        Max RX octets: 27
        Max RX time: 2704
< HCI Command: LE Read Suggested D.. (0x08|0x0023) plen 0  #33 [hci0] 44.501349
> HCI Event: Command Complete (0x0e) plen 8                #34 [hci0] 44.504257
      LE Read Suggested Default Data Length (0x08|0x0023) ncmd 1
        Status: Success (0x00)
        TX octets: 27
        TX time: 328
< HCI Command: Set Event Mask Page 2 (0x03|0x0063) plen 8  #35 [hci0] 44.504407
        Mask: 0x0000000000800000
          Authenticated Payload Timeout Expired
> HCI Event: Command Complete (0x0e) plen 4                #36 [hci0] 44.507469
      Set Event Mask Page 2 (0x03|0x0063) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Write Suggested... (0x08|0x0024) plen 4  #37 [hci0] 44.507658
        TX octets: 27
        TX time: 2704
> HCI Event: Command Complete (0x0e) plen 4                #38 [hci0] 44.510560
      LE Write Suggested Default Data Length (0x08|0x0024) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Set Default PHY (0x08|0x0031) plen 3     #39 [hci0] 44.510623
        All PHYs preference: 0x00
        TX PHYs preference: 0x01
          LE 1M
        RX PHYs preference: 0x01
          LE 1M
> HCI Event: Command Complete (0x0e) plen 4                #40 [hci0] 44.513548
      LE Set Default PHY (0x08|0x0031) ncmd 1
        Status: Success (0x00)
= Index Info: 00:00:00:00:00:00 (The Linux Foundation)         [hci0] 44.513735
< HCI Command: LE Set Advertising.. (0x08|0x0008) plen 32  #41 [hci0] 44.513823
        Length: 6
        Flags: 0x04
          BR/EDR Not Supported
        TX power: 0 dBm
> HCI Event: Command Complete (0x0e) plen 4                #42 [hci0] 44.516330
      LE Set Advertising Data (0x08|0x0008) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Set Scan Respon.. (0x08|0x0009) plen 32  #43 [hci0] 44.516515
        Length: 9
        Name (complete): ubuntu
> HCI Event: Command Complete (0x0e) plen 4                #44 [hci0] 44.519532
      LE Set Scan Response Data (0x08|0x0009) ncmd 1
        Status: Success (0x00)
@ MGMT Event: New Settings (0x0006) plen 4            {0x0002} [hci0] 44.519626
        Current settings: 0x00008a01
          Powered
          Low Energy
          Secure Connections
          Static Address
@ MGMT Event: New Settings (0x0006) plen 4            {0x0001} [hci0] 44.519626
        Current settings: 0x00008a01
          Powered
          Low Energy
          Secure Connections
          Static Address
@ MGMT Event: New Settings (0x0006) plen 4            {0x0002} [hci0] 44.519712
        Current settings: 0x00008a00
          Low Energy
          Secure Connections
          Static Address
@ MGMT Event: New Settings (0x0006) plen 4            {0x0001} [hci0] 44.519712
        Current settings: 0x00008a00
          Low Energy
          Secure Connections
          Static Address
= Close Index: 00:00:00:00:00:00                               [hci0] 44.519732
@ MGMT Event: Index Removed (0x0005) plen 0           {0x0002} [hci0] 44.525028
@ MGMT Event: Index Removed (0x0005) plen 0           {0x0001} [hci0] 44.525028
= Open Index: 00:00:00:00:00:00                                [hci0] 44.525056
= Index Info: 00:00:00:00:00:00 (The Linux Foundation)         [hci0] 44.525057
@ RAW Close: mcumgr                                          {0x0003} 44.525059
@ USER Open: mcumgr (privileged) version 2.22         {0x0003} [hci0] 44.525060
= bluetoothd: Endpoint unregistered: sender=:1.70 path=/MediaEndp..   44.527072
= bluetoothd: Endpoint unregistered: sender=:1.70 path=/MediaEndp..   44.527083
< HCI Command: Reset (0x03|0x0003) plen 0                  #45 [hci0] 44.552076
> HCI Event: Command Complete (0x0e) plen 4                #46 [hci0] 44.554643
      Reset (0x03|0x0003) ncmd 1
        Status: Success (0x00)
< HCI Command: Read BD ADDR (0x04|0x0009) plen 0           #47 [hci0] 44.554920
> HCI Event: Command Complete (0x0e) plen 10               #48 [hci0] 44.557626
      Read BD ADDR (0x04|0x0009) ncmd 1
        Status: Success (0x00)
        Address: 00:00:00:00:00:00 (OUI 00-00-00)
< HCI Command: Read Buffer Size (0x04|0x0005) plen 0       #49 [hci0] 44.557812
> HCI Event: Command Status (0x0f) plen 4                  #50 [hci0] 44.561584
      Read Buffer Size (0x04|0x0005) ncmd 1
        Status: Unknown HCI Command (0x01)
< HCI Command: LE Read Buffer Size (0x08|0x0002) plen 0    #51 [hci0] 44.561918
> HCI Event: Command Complete (0x0e) plen 7                #52 [hci0] 44.564580
      LE Read Buffer Size (0x08|0x0002) ncmd 1
        Status: Success (0x00)
        Data packet length: 27
        Num data packets: 7
< HCI Command: LE Read Advertising.. (0x08|0x0007) plen 0  #53 [hci0] 44.564744
> HCI Event: Command Complete (0x0e) plen 5                #54 [hci0] 44.567580
      LE Read Advertising Channel TX Power (0x08|0x0007) ncmd 1
        Status: Success (0x00)
        TX power: 0 dbm (0x00)
< HCI Command: LE Set Event Mask (0x08|0x0001) plen 8      #55 [hci0] 44.568292
        Mask: 0x000000000000001f
          LE Connection Complete
          LE Advertising Report
          LE Connection Update Complete
          LE Read Remote Used Features Complete
          LE Long Term Key Request
> HCI Event: Command Complete (0x0e) plen 4                #56 [hci0] 44.570230
      LE Set Event Mask (0x08|0x0001) ncmd 1
        Status: Success (0x00)
< HCI Command: Set Event Mask (0x03|0x0001) plen 8         #57 [hci0] 44.570735
        Mask: 0x3dbff807fffbffff
          Inquiry Complete
          Inquiry Result
          Connection Complete
          Connection Request
          Disconnection Complete
          Authentication Complete
          Remote Name Request Complete
          Encryption Change
          Change Connection Link Key Complete
          Master Link Key Complete
          Read Remote Supported Features Complete
          Read Remote Version Information Complete
          QoS Setup Complete
          Command Complete
          Command Status
          Hardware Error
          Flush Occurred
          Role Change
          Mode Change
          Return Link Keys
          PIN Code Request
          Link Key Request
          Link Key Notification
          Loopback Command
          Data Buffer Overflow
          Max Slots Change
          Read Clock Offset Complete
          Connection Packet Type Changed
          QoS Violation
          Page Scan Mode Change
          Page Scan Repetition Mode Change
          Flow Specification Complete
          Inquiry Result with RSSI
          Read Remote Extended Features Complete
          Synchronous Connection Complete
          Synchronous Connection Changed
          Sniff Subrating
          Extended Inquiry Result
          Encryption Key Refresh Complete
          IO Capability Request
          IO Capability Request Reply
          User Confirmation Request
          User Passkey Request
          Remote OOB Data Request
          Simple Pairing Complete
          Link Supervision Timeout Changed
          Enhanced Flush Complete
          User Passkey Notification
          Keypress Notification
          Remote Host Supported Features Notification
          LE Meta
> HCI Event: Command Complete (0x0e) plen 4                #58 [hci0] 44.574431
      Set Event Mask (0x03|0x0001) ncmd 1
        Status: Success (0x00)
< HCI Command: Write LE Host Suppo.. (0x03|0x006d) plen 2  #59 [hci0] 44.574630
        Supported: 0x01
        Simultaneous: 0x00
> HCI Event: Command Status (0x0f) plen 4                  #60 [hci0] 44.576253
      Write LE Host Supported (0x03|0x006d) ncmd 1
        Status: Unknown HCI Command (0x01)
< HCI Command: LE Write Suggested... (0x08|0x0024) plen 4  #61 [hci0] 44.576606
        TX octets: 251
        TX time: 2120
> HCI Event: Command Complete (0x0e) plen 4                #62 [hci0] 44.579389
      LE Write Suggested Default Data Length (0x08|0x0024) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Set Advertising.. (0x08|0x0006) plen 15  #63 [hci0] 44.579602
        Min advertising interval: 20.000 msec (0x0020)
        Max advertising interval: 20.000 msec (0x0020)
        Type: Connectable undirected - ADV_IND (0x00)
        Own address type: Public (0x00)
        Direct address type: Public (0x00)
        Direct address: 00:00:00:00:00:00 (OUI 00-00-00)
        Channel map: 37, 38, 39 (0x07)
        Filter policy: Allow Scan Request from Any, Allow Connect Request from Any (0x00)
> HCI Event: Command Complete (0x0e) plen 4                #64 [hci0] 44.582216
      LE Set Advertising Parameters (0x08|0x0006) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Set Scan Paramet.. (0x08|0x000b) plen 7  #65 [hci0] 44.582392
        Type: Active (0x01)
        Interval: 2.500 msec (0x0004)
        Window: 2.500 msec (0x0004)
        Own address type: Public (0x00)
        Filter policy: Accept all advertisement (0x00)
> HCI Event: Command Complete (0x0e) plen 4                #66 [hci0] 44.584188
      LE Set Scan Parameters (0x08|0x000b) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2     #67 [hci0] 44.584579
        Scanning: Enabled (0x01)
        Filter duplicates: Enabled (0x01)
> HCI Event: Command Complete (0x0e) plen 4                #68 [hci0] 44.587406
      LE Set Scan Enable (0x08|0x000c) ncmd 1
        Status: Success (0x00)
> HCI Event: LE Meta Event (0x3e) plen 43                  #69 [hci0] 44.620322
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Non connectable undirected - ADV_NONCONN_IND (0x03)
        Address type: Random (0x01)
        Address: 62:38:53:3D:F0:BE (Resolvable)
        Data length: 31
        Company: Microsoft (6)
          Data: 01092002e76fd972af54e6a1cd8a8852b355346b990d911abd5d4a
        RSSI: -40 dBm (0xd8)
> HCI Event: LE Meta Event (0x3e) plen 29                  #70 [hci0] 44.623657
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Connectable undirected - ADV_IND (0x00)
        Address type: Random (0x01)
        Address: 63:F9:B1:A7:EC:08 (Resolvable)
        Data length: 17
        Flags: 0x1a
          LE General Discoverable Mode
          Simultaneous LE and BR/EDR (Controller)
          Simultaneous LE and BR/EDR (Host)
        TX power: 7 dBm
        Company: Apple, Inc. (76)
          Type: Unknown (16)
          Data: 231cebc6e4
        RSSI: -73 dBm (0xb7)
> HCI Event: LE Meta Event (0x3e) plen 12                  #71 [hci0] 44.626327
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Scan response - SCAN_RSP (0x04)
        Address type: Random (0x01)
        Address: 63:F9:B1:A7:EC:08 (Resolvable)
        Data length: 0
        RSSI: -73 dBm (0xb7)
> HCI Event: LE Meta Event (0x3e) plen 29                  #72 [hci0] 44.629301
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Connectable undirected - ADV_IND (0x00)
        Address type: Public (0x00)
        Address: 90:DD:5D:DB:6E:64 (Apple, Inc.)
        Data length: 17
        Flags: 0x1a
          LE General Discoverable Mode
          Simultaneous LE and BR/EDR (Controller)
          Simultaneous LE and BR/EDR (Host)
        TX power: 12 dBm
        Company: Apple, Inc. (76)
          Type: Unknown (16)
          Data: 0110f06f60
        RSSI: -68 dBm (0xbc)
> HCI Event: LE Meta Event (0x3e) plen 12                  #73 [hci0] 44.632290
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Scan response - SCAN_RSP (0x04)
        Address type: Public (0x00)
        Address: 90:DD:5D:DB:6E:64 (Apple, Inc.)
        Data length: 0
        RSSI: -68 dBm (0xbc)
> HCI Event: LE Meta Event (0x3e) plen 27                  #74 [hci0] 44.710620
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Non connectable undirected - ADV_NONCONN_IND (0x03)
        Address type: Random (0x01)
        Address: 13:82:F8:75:40:4C (Non-Resolvable)
        Data length: 15
        Flags: 0x1a
          LE General Discoverable Mode
          Simultaneous LE and BR/EDR (Controller)
          Simultaneous LE and BR/EDR (Host)
        Company: Apple, Inc. (76)
          Type: Apple TV (9)
          Data: 0349c0a8561d
        RSSI: -67 dBm (0xbd)
> HCI Event: LE Meta Event (0x3e) plen 40                  #75 [hci0] 44.783485
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Scannable undirected - ADV_SCAN_IND (0x02)
        Address type: Random (0x01)
        Address: 55:AE:53:5D:DE:22 (Resolvable)
        Data length: 28
        16-bit Service UUIDs (complete): 1 entry
          Google (0xfe9f)
        Service Data (UUID 0xfe9f): 024f78597a4143436a554963000001787598041f
        RSSI: -67 dBm (0xbd)
> HCI Event: LE Meta Event (0x3e) plen 29                  #76 [hci0] 44.786555
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Connectable undirected - ADV_IND (0x00)
        Address type: Random (0x01)
        Address: 7B:07:68:85:06:87 (Resolvable)
        Data length: 17
        Flags: 0x1a
          LE General Discoverable Mode
          Simultaneous LE and BR/EDR (Controller)
          Simultaneous LE and BR/EDR (Host)
        TX power: 12 dBm
        Company: Apple, Inc. (76)
          Type: Unknown (16)
          Data: 0c1805108b
        RSSI: -75 dBm (0xb5)
> HCI Event: LE Meta Event (0x3e) plen 33                  #77 [hci0] 44.837737
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Connectable undirected - ADV_IND (0x00)
        Address type: Random (0x01)
        Address: FC:E0:55:86:7E:FB (Static)
        Data length: 21
        Flags: 0x06
          LE General Discoverable Mode
          BR/EDR Not Supported
        128-bit Service UUIDs (complete): 1 entry
          Vendor specific (8d53dc1d-1db7-4cd3-868b-8a527460aa84)
        RSSI: -46 dBm (0xd2)
> HCI Event: LE Meta Event (0x3e) plen 20                  #78 [hci0] 44.839601
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Scan response - SCAN_RSP (0x04)
        Address type: Random (0x01)
        Address: FC:E0:55:86:7E:FB (Static)
        Data length: 8
        Name (complete): Zephyr
        RSSI: -45 dBm (0xd3)
< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2     #79 [hci0] 44.840239
        Scanning: Disabled (0x00)
        Filter duplicates: Enabled (0x01)
> HCI Event: Command Complete (0x0e) plen 4                #80 [hci0] 44.842511
      LE Set Scan Enable (0x08|0x000c) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Create Connection (0x08|0x000d) plen 25  #81 [hci0] 44.843532
        Scan interval: 10.000 msec (0x0010)
        Scan window: 10.000 msec (0x0010)
        Filter policy: White list is not used (0x00)
        Peer address type: Random (0x01)
        Peer address: FC:E0:55:86:7E:FB (Static)
        Own address type: Public (0x00)
        Min connection interval: 7.50 msec (0x0006)
        Max connection interval: 7.50 msec (0x0006)
        Connection latency: 0 (0x0000)
        Supervision timeout: 720 msec (0x0048)
        Min connection length: 0.000 msec (0x0000)
        Max connection length: 0.000 msec (0x0000)
> HCI Event: Command Status (0x0f) plen 4                  #82 [hci0] 44.846437
      LE Create Connection (0x08|0x000d) ncmd 1
        Status: Success (0x00)
> HCI Event: LE Meta Event (0x3e) plen 19                  #83 [hci0] 44.942620
      LE Connection Complete (0x01)
        Status: Success (0x00)
        Handle: 0
        Role: Master (0x00)
        Peer address type: Random (0x01)
        Peer address: FC:E0:55:86:7E:FB (Static)
        Connection interval: 7.50 msec (0x0006)
        Connection latency: 0 (0x0000)
        Supervision timeout: 720 msec (0x0048)
        Master clock accuracy: 0x07
< ACL Data TX: Handle 0 flags 0x00 dlen 7                  #84 [hci0] 44.943256
      ATT: Exchange MTU Request (0x02) len 2
        Client RX MTU: 512
> HCI Event: Number of Completed Packets (0x13) plen 5     #85 [hci0] 44.951631
        Num handles: 1
        Handle: 0
        Count: 1
> ACL Data RX: Handle 0 flags 0x02 dlen 7                  #86 [hci0] 44.958819
      ATT: Exchange MTU Response (0x03) len 2
        Server RX MTU: 252
< ACL Data TX: Handle 0 flags 0x00 dlen 11                 #87 [hci0] 44.959206
      ATT: Read By Group Type Request (0x10) len 6
        Handle range: 0x0001-0xffff
        Attribute group type: Primary Service (0x2800)
> HCI Event: Number of Completed Packets (0x13) plen 5     #88 [hci0] 44.966424
        Num handles: 1
        Handle: 0
        Count: 1
> ACL Data RX: Handle 0 flags 0x02 dlen 18                 #89 [hci0] 44.981592
      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)
< ACL Data TX: Handle 0 flags 0x00 dlen 11                 #90 [hci0] 44.981984
      ATT: Read By Group Type Request (0x10) len 6
        Handle range: 0x0010-0xffff
        Attribute group type: Primary Service (0x2800)
> HCI Event: Number of Completed Packets (0x13) plen 5     #91 [hci0] 44.989632
        Num handles: 1
        Handle: 0
        Count: 1
> ACL Data RX: Handle 0 flags 0x02 dlen 26                 #92 [hci0] 45.011685
      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)
< ACL Data TX: Handle 0 flags 0x00 dlen 11                 #93 [hci0] 45.012470
      ATT: Read By Group Type Request (0x10) len 6
        Handle range: 0x0014-0xffff
        Attribute group type: Primary Service (0x2800)
> HCI Event: Number of Completed Packets (0x13) plen 5     #94 [hci0] 45.019720
        Num handles: 1
        Handle: 0
        Count: 1
> ACL Data RX: Handle 0 flags 0x02 dlen 9                  #95 [hci0] 45.026237
      ATT: Error Response (0x01) len 4
        Read By Group Type Request (0x10)
        Handle: 0x0014
        Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 0 flags 0x00 dlen 11                 #96 [hci0] 45.026795
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0001-0x0008
        Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5     #97 [hci0] 45.034603
        Num handles: 1
        Handle: 0
        Count: 1
> ACL Data RX: Handle 0 flags 0x02 dlen 27                 #98 [hci0] 45.041407
      ATT: Read By Type Response (0x09) len 22
        Attribute data length: 7
        Attribute data list: 3 entries
        Handle: 0x0002
        Value: 200300052a
        Handle: 0x0005
        Value: 0a0600292b
        Handle: 0x0007
        Value: 0208002a2b
< ACL Data TX: Handle 0 flags 0x00 dlen 9                  #99 [hci0] 45.041907
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x0004-0x0004
> HCI Event: Number of Completed Packets (0x13) plen 5    #100 [hci0] 45.049883
        Num handles: 1
        Handle: 0
        Count: 1
> ACL Data RX: Handle 0 flags 0x02 dlen 10                #101 [hci0] 45.056303
      ATT: Find Information Response (0x05) len 5
        Format: UUID-16 (0x01)
        Handle: 0x0004
        UUID: Client Characteristic Configuration (0x2902)
< ACL Data TX: Handle 0 flags 0x00 dlen 11                #102 [hci0] 45.056852
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0009-0x000f
        Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5    #103 [hci0] 45.071372
        Num handles: 1
        Handle: 0
        Count: 1
> ACL Data RX: Handle 0 flags 0x02 dlen 27                #104 [hci0] 45.078784
      ATT: Read By Type Response (0x09) len 22
        Attribute data length: 7
        Attribute data list: 3 entries
        Handle: 0x000a
        Value: 020b00002a
        Handle: 0x000c
        Value: 020d00012a
        Handle: 0x000e
        Value: 020f00042a
< ACL Data TX: Handle 0 flags 0x00 dlen 11                #105 [hci0] 45.079193
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0010-0x0013
        Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5    #106 [hci0] 45.086497
        Num handles: 1
        Handle: 0
        Count: 1
> ACL Data RX: Handle 0 flags 0x02 dlen 27                #107 [hci0] 45.093751
      ATT: Read By Type Response (0x09) len 22
        Attribute data length: 21
        Attribute data list: 1 entry
        Handle: 0x0011
        Value: 141200487c997411269eae014ecefb28782eda
< ACL Data TX: Handle 0 flags 0x00 dlen 11                #108 [hci0] 45.094230
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0013-0x0013
        Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5    #109 [hci0] 45.101578
        Num handles: 1
        Handle: 0
        Count: 1
> ACL Data RX: Handle 0 flags 0x02 dlen 9                 #110 [hci0] 45.108557
      ATT: Error Response (0x01) len 4
        Read By Type Request (0x08)
        Handle: 0x0013
        Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 0 flags 0x00 dlen 9                 #111 [hci0] 45.108953
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x0013-0x0013
> HCI Event: Number of Completed Packets (0x13) plen 5    #112 [hci0] 45.116513
        Num handles: 1
        Handle: 0
        Count: 1
> ACL Data RX: Handle 0 flags 0x02 dlen 10                #113 [hci0] 45.123790
      ATT: Find Information Response (0x05) len 5
        Format: UUID-16 (0x01)
        Handle: 0x0013
        UUID: Client Characteristic Configuration (0x2902)
< ACL Data TX: Handle 0 flags 0x00 dlen 9                 #114 [hci0] 45.124025
      ATT: Write Request (0x12) len 4
        Handle: 0x0013
          Data: 0100
> HCI Event: Number of Completed Packets (0x13) plen 5    #115 [hci0] 45.131405
        Num handles: 1
        Handle: 0
        Count: 1
> ACL Data RX: Handle 0 flags 0x02 dlen 5                 #116 [hci0] 45.138818
      ATT: Write Response (0x13) len 0
< ACL Data TX: Handle 0 flags 0x00 dlen 24                #117 [hci0] 45.139679
      ATT: Write Command (0x52) len 19
        Handle: 0x0012
          Data: 0200000900004200a161646568656c6c6f
> HCI Event: Number of Completed Packets (0x13) plen 5    #118 [hci0] 45.146541
        Num handles: 1
        Handle: 0
        Count: 1
> ACL Data RX: Handle 0 flags 0x02 dlen 25                #119 [hci0] 45.153834
      ATT: Handle Value Notification (0x1b) len 20
        Handle: 0x0012
          Data: 0300000a00004200bf61726568656c6c6fff
< HCI Command: Disconnect (0x01|0x0006) plen 3            #120 [hci0] 45.159191
        Handle: 0
        Reason: Remote User Terminated Connection (0x13)
> HCI Event: Command Status (0x0f) plen 4                 #121 [hci0] 45.162343
      Disconnect (0x01|0x0006) ncmd 1
        Status: Success (0x00)
< HCI Command: Read BD ADDR (0x04|0x0009) plen 0          #122 [hci0] 45.162838
> HCI Event: Command Complete (0x0e) plen 10              #123 [hci0] 45.165375
      Read BD ADDR (0x04|0x0009) ncmd 1
        Status: Success (0x00)
        Address: 00:00:00:00:00:00 (OUI 00-00-00)
@ USER Close: mcumgr                                  {0x0003} [hci0] 45.165649
= Close Index: 00:00:00:00:00:00                               [hci0] 45.165754
@ MGMT Event: Index Added (0x0004) plen 0             {0x0002} [hci0] 45.170294
@ MGMT Event: Index Added (0x0004) plen 0             {0x0001} [hci0] 45.170294
@ MGMT Command: Read Controller In.. (0x0004) plen 0  {0x0001} [hci0] 45.170504
@ MGMT Event: Command Complete (0x0001) plen 283      {0x0001} [hci0] 45.170515
      Read Controller Information (0x0004) plen 280
        Status: Success (0x00)
        Address: 00:00:00:00:00:00 (OUI 00-00-00)
        Version: Reserved (0x0b)
        Manufacturer: The Linux Foundation (1521)
        Supported settings: 0x0001be1b
          Powered
          Connectable
          Discoverable
          Bondable
          Low Energy
          Advertising
          Secure Connections
          Debug Keys
          Privacy
          Static Address
          PHY Configuration
        Current settings: 0x00008a00
          Low Energy
          Secure Connections
          Static Address
        Class: 0x000000
          Major class: Miscellaneous
          Minor class: 0x00
        Name: ubuntu
        Short name: 
@ MGMT Command: Remove UUID (0x0011) plen 16          {0x0001} [hci0] 45.171311
        UUID: 00000000-0000-0000-0000-000000000000
@ MGMT Event: Command Complete (0x0001) plen 6        {0x0001} [hci0] 45.171323
      Remove UUID (0x0011) plen 3
        Status: Success (0x00)
        Class: 0x000000
          Major class: Miscellaneous
          Minor class: 0x00
@ MGMT Command: Remove Device (0x0034) plen 7         {0x0001} [hci0] 45.171359
        BR/EDR Address: 00:00:00:00:00:00 (OUI 00-00-00)
@ MGMT Event: Command Complete (0x0001) plen 10       {0x0001} [hci0] 45.171536
      Remove Device (0x0034) plen 7
        Status: Success (0x00)
        BR/EDR Address: 00:00:00:00:00:00 (OUI 00-00-00)
@ MGMT Command: Set Static Address (0x002b) plen 6    {0x0001} [hci0] 45.171612
        Address: C2:BA:65:A1:DF:3B (Static)
@ MGMT Event: Command Complete (0x0001) plen 7        {0x0001} [hci0] 45.171617
      Set Static Address (0x002b) plen 4
        Status: Success (0x00)
        Current settings: 0x00008a00
          Low Energy
          Secure Connections
          Static Address
@ MGMT Event: New Settings (0x0006) plen 4            {0x0002} [hci0] 45.171618
        Current settings: 0x00008a00
          Low Energy
          Secure Connections
          Static Address
@ MGMT Command: Set Privacy (0x002f) plen 17          {0x0001} [hci0] 45.171649
        Privacy: Disabled (0x00)
        Key: 00000000000000000000000000000000
@ MGMT Event: Command Complete (0x0001) plen 7        {0x0001} [hci0] 45.171652
      Set Privacy (0x002f) plen 4
        Status: Success (0x00)
        Current settings: 0x00008a00
          Low Energy
          Secure Connections
          Static Address
@ MGMT Command: Add UUID (0x0010) plen 17             {0x0001} [hci0] 45.171680
        UUID: 00001800-0000-1000-8000-00805f9b34fb
        Service class: 0x00
@ MGMT Event: Command Complete (0x0001) plen 6        {0x0001} [hci0] 45.171682
      Add UUID (0x0010) plen 3
        Status: Success (0x00)
        Class: 0x000000
          Major class: Miscellaneous
          Minor class: 0x00
@ MGMT Command: Add UUID (0x0010) plen 17             {0x0001} [hci0] 45.171713
        UUID: 00001801-0000-1000-8000-00805f9b34fb
        Service class: 0x00
@ MGMT Event: Command Complete (0x0001) plen 6        {0x0001} [hci0] 45.171715
      Add UUID (0x0010) plen 3
        Status: Success (0x00)
        Class: 0x000000
          Major class: Miscellaneous
          Minor class: 0x00
@ MGMT Command: Read Advertising F.. (0x003d) plen 0  {0x0001} [hci0] 45.171745
@ MGMT Event: Command Complete (0x0001) plen 11       {0x0001} [hci0] 45.171747
      Read Advertising Features (0x003d) plen 8
        Status: Success (0x00)
        Flags: 0x0000007f
          Switch into Connectable mode
          Advertise as Discoverable
          Advertise as Limited Discoverable
          Add Flags field to Advertising Data
          Add TX Power field to Advertising Data
          Add Appearance field to Scan Response
          Add Local Name in Scan Response
        Advertising data length: 31
        Scan response length: 31
        Max instances: 5
        Instances: 0
@ MGMT Command: Set Powered (0x0005) plen 1           {0x0001} [hci0] 45.171775
        Powered: Enabled (0x01)
= Open Index: 00:00:00:00:00:00                                [hci0] 45.171835
< HCI Command: Reset (0x03|0x0003) plen 0                 #124 [hci0] 45.171900
> HCI Event: Disconnect Complete (0x05) plen 4            #125 [hci0] 45.173304
        Status: Success (0x00)
        Handle: 0
        Reason: Connection Terminated By Local Host (0x16)
= bluetoothd: Endpoint registered: sender=:1.70 path=/MediaEndpoi..   45.177932
= bluetoothd: Endpoint registered: sender=:1.70 path=/MediaEndpoi..   45.177962
> HCI Event: Command Complete (0x0e) plen 4               #126 [hci0] 45.176261
      Reset (0x03|0x0003) ncmd 1
        Status: Success (0x00)
< HCI Command: Read Local Support.. (0x04|0x0003) plen 0  #127 [hci0] 45.176319
> HCI Event: Command Complete (0x0e) plen 12              #128 [hci0] 45.179643
      Read Local Supported Features (0x04|0x0003) ncmd 1
        Status: Success (0x00)
        Features: 0x00 0x00 0x00 0x00 0x60 0x00 0x00 0x00
          BR/EDR Not Supported
          LE Supported (Controller)
< HCI Command: Read Local Version.. (0x04|0x0001) plen 0  #129 [hci0] 45.179771
> HCI Event: Command Complete (0x0e) plen 12              #130 [hci0] 45.183264
      Read Local Version Information (0x04|0x0001) ncmd 1
        Status: Success (0x00)
        HCI version: Reserved (0x0b) - Revision 0 (0x0000)
        LMP version: Reserved (0x0b) - Subversion 65535 (0xffff)
        Manufacturer: The Linux Foundation (1521)
< HCI Command: Read BD ADDR (0x04|0x0009) plen 0          #131 [hci0] 45.183350
> HCI Event: Command Complete (0x0e) plen 10              #132 [hci0] 45.186659
      Read BD ADDR (0x04|0x0009) ncmd 1
        Status: Success (0x00)
        Address: 00:00:00:00:00:00 (OUI 00-00-00)
< HCI Command: LE Read Buffer Size (0x08|0x0002) plen 0   #133 [hci0] 45.186828
> HCI Event: Command Complete (0x0e) plen 7               #134 [hci0] 45.189185
      LE Read Buffer Size (0x08|0x0002) ncmd 1
        Status: Success (0x00)
        Data packet length: 27
        Num data packets: 7
< HCI Command: LE Read Local Supp.. (0x08|0x0003) plen 0  #135 [hci0] 45.189280
> HCI Event: Command Complete (0x0e) plen 12              #136 [hci0] 45.191269
      LE Read Local Supported Features (0x08|0x0003) ncmd 1
        Status: Success (0x00)
        Features: 0xff 0x49 0x01 0x00 0x00 0x00 0x00 0x00
          LE Encryption
          Connection Parameter Request Procedure
          Extended Reject Indication
          Slave-initiated Features Exchange
          LE Ping
          LE Data Packet Length Extension
          LL Privacy
          Extended Scanner Filter Policies
          LE 2M PHY
          LE Coded PHY
          Channel Selection Algorithm #2
          Minimum Number of Used Channels Procedure
< HCI Command: LE Read Supported... (0x08|0x001c) plen 0  #137 [hci0] 45.191365
> HCI Event: Command Complete (0x0e) plen 12              #138 [hci0] 45.194612
      LE Read Supported States (0x08|0x001c) ncmd 1
        Status: Success (0x00)
        States: 0x000003ffff3fffff
          Non-connectable Advertising State
          Scannable Advertising State
          Connectable Advertising State
          High Duty Cycle Directed Advertising State
          Passive Scanning State
          Active Scanning State
          Initiating State
            and Connection State (Master Role)
          Connection State (Slave Role)
          Non-connectable Advertising State
            and Passive Scanning State
          Scannable Advertising State
            and Passive Scanning State
          Connectable Advertising State
            and Passive Scanning State
          High Duty Cycle Directed Advertising State
            and Passive Scanning State
          Non-connectable Advertising State
            and Active Scanning State
          Scannable Advertising State
            and Active Scanning State
          Connectable Advertising State
            and Active Scanning State
          High Duty Cycle Directed Advertising State
            and Active Scanning State
          Non-connectable Advertising State
            and Initiating State
          Scannable Advertising State
            and Initiating State
          Non-connectable Advertising State
            and Connection State (Master Role)
          Scannable Advertising State
            and Connection State (Master Role)
          Non-connectable Advertising State
            and Connection State (Slave Role)
          Scannable Advertising State
            and Connection State (Slave Role)
          Passive Scanning State
            and Connection State (Master Role)
          Active Scanning State
            and Connection State (Master Role)
          Passive Scanning State
            and Connection State (Slave Role)
          Active Scanning State
            and Connection State (Slave Role)
          Initiating State
            and Connection State (Master Role)
            and Master Role & Master Role
          Low Duty Cycle Directed Advertising State
          Low Duty Cycle Directed Advertising State
            and Passive Scanning State
          Low Duty Cycle Directed Advertising State
            and Active Scanning State
          Connectable Advertising State
            and Initiating State
            and Master Role & Slave Role
          High Duty Cycle Directed Advertising State
            and Initiating State
            and Master Role & Slave Role
          Low Duty Cycle Directed Advertising State
            and Initiating State
            and Master Role & Slave Role
          Connectable Advertising State
            and Connection State (Master Role)
            and Master Role & Slave Role
          High Duty Cycle Directed Advertising State
            and Connection State (Master Role)
            and Master Role & Slave Role
          Low Duty Cycle Directed Advertising State
            and Connection State (Master Role)
            and Master Role & Slave Role
          Connectable Advertising State
            and Connection State (Slave Role)
            and Master Role & Slave Role
          High Duty Cycle Directed Advertising State
            and Connection State (Slave Role)
            and Slave Role & Slave Role
          Low Duty Cycle Directed Advertising State
            and Connection State (Slave Role)
            and Slave Role & Slave Role
          Initiating State
            and Connection State (Slave Role)
            and Master Role & Slave Role
< HCI Command: Read Local Support.. (0x04|0x0002) plen 0  #139 [hci0] 45.194729
> HCI Event: Command Complete (0x0e) plen 68              #140 [hci0] 45.200443
      Read Local Supported Commands (0x04|0x0002) ncmd 1
        Status: Success (0x00)
        Commands: 61 entries
          Disconnect (Octet 0 - Bit 5)
          Read Remote Version Information (Octet 2 - Bit 7)
          Set Event Mask (Octet 5 - Bit 6)
          Reset (Octet 5 - Bit 7)
          Read Transmit Power Level (Octet 10 - Bit 2)
          Set Controller To Host Flow Control (Octet 10 - Bit 5)
          Host Buffer Size (Octet 10 - Bit 6)
          Host Number of Completed Packets (Octet 10 - Bit 7)
          Read Local Version Information (Octet 14 - Bit 3)
          Read Local Supported Features (Octet 14 - Bit 5)
          Read BD ADDR (Octet 15 - Bit 1)
          Read RSSI (Octet 15 - Bit 5)
          Set Event Mask Page 2 (Octet 22 - Bit 2)
          LE Set Event Mask (Octet 25 - Bit 0)
          LE Read Buffer Size (Octet 25 - Bit 1)
          LE Read Local Supported Features (Octet 25 - Bit 2)
          LE Set Random Address (Octet 25 - Bit 4)
          LE Set Advertising Parameters (Octet 25 - Bit 5)
          LE Read Advertising Channel TX Power (Octet 25 - Bit 6)
          LE Set Advertising Data (Octet 25 - Bit 7)
          LE Set Scan Response Data (Octet 26 - Bit 0)
          LE Set Advertise Enable (Octet 26 - Bit 1)
          LE Set Scan Parameters (Octet 26 - Bit 2)
          LE Set Scan Enable (Octet 26 - Bit 3)
          LE Create Connection (Octet 26 - Bit 4)
          LE Create Connection Cancel (Octet 26 - Bit 5)
          LE Read White List Size (Octet 26 - Bit 6)
          LE Clear White List (Octet 26 - Bit 7)
          LE Add Device To White List (Octet 27 - Bit 0)
          LE Remove Device From White List (Octet 27 - Bit 1)
          LE Connection Update (Octet 27 - Bit 2)
          LE Set Host Channel Classification (Octet 27 - Bit 3)
          LE Read Channel Map (Octet 27 - Bit 4)
          LE Read Remote Used Features (Octet 27 - Bit 5)
          LE Encrypt (Octet 27 - Bit 6)
          LE Rand (Octet 27 - Bit 7)
          LE Start Encryption (Octet 28 - Bit 0)
          LE Long Term Key Request Reply (Octet 28 - Bit 1)
          LE Long Term Key Request Neg Reply (Octet 28 - Bit 2)
          LE Read Supported States (Octet 28 - Bit 3)
          Read Authenticated Payload Timeout (Octet 32 - Bit 4)
          Write Authenticated Payload Timeout (Octet 32 - Bit 5)
          LE Remote Connection Parameter Request Reply (Octet 33 - Bit 4)
          LE Remote Connection Parameter Request Negative Reply (Octet 33 - Bit 5)
          LE Set Data Length (Octet 33 - Bit 6)
          LE Read Suggested Default Data Length (Octet 33 - Bit 7)
          LE Write Suggested Default Data Length (Octet 34 - Bit 0)
          LE Add Device To Resolving List (Octet 34 - Bit 3)
          LE Remove Device From Resolving List (Octet 34 - Bit 4)
          LE Clear Resolving List (Octet 34 - Bit 5)
          LE Read Resolving List Size (Octet 34 - Bit 6)
          LE Read Peer Resolvable Address (Octet 34 - Bit 7)
          LE Read Local Resolvable Address (Octet 35 - Bit 0)
          LE Set Address Resolution Enable (Octet 35 - Bit 1)
          LE Set Resolvable Private Address Timeout (Octet 35 - Bit 2)
          LE Read Maximum Data Length (Octet 35 - Bit 3)
          LE Read PHY (Octet 35 - Bit 4)
          LE Set Default PHY (Octet 35 - Bit 5)
          LE Set PHY (Octet 35 - Bit 6)
          LE Read Transmit Power (Octet 38 - Bit 7)
          LE Set Privacy Mode (Octet 39 - Bit 2)
< HCI Command: Set Event Mask (0x03|0x0001) plen 8        #141 [hci0] 45.200667
        Mask: 0x200080000204e890
          Disconnection Complete
          Encryption Change
          Read Remote Version Information Complete
          Command Complete
          Command Status
          Hardware Error
          Number of Completed Packets
          Data Buffer Overflow
          Encryption Key Refresh Complete
          LE Meta
> HCI Event: Command Complete (0x0e) plen 4               #142 [hci0] 45.203375
      Set Event Mask (0x03|0x0001) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Set Event Mask (0x08|0x0001) plen 8     #143 [hci0] 45.203509
        Mask: 0x0000000000080e7f
          LE Connection Complete
          LE Advertising Report
          LE Connection Update Complete
          LE Read Remote Used Features Complete
          LE Long Term Key Request
          LE Remote Connection Parameter Request
          LE Data Length Change
          LE Enhanced Connection Complete
          LE Direct Advertising Report
          LE PHY Update Complete
          LE Channel Selection Algorithm
> HCI Event: Command Complete (0x0e) plen 4               #144 [hci0] 45.205306
      LE Set Event Mask (0x08|0x0001) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Read Advertisin.. (0x08|0x0007) plen 0  #145 [hci0] 45.205367
> HCI Event: Command Complete (0x0e) plen 5               #146 [hci0] 45.208226
      LE Read Advertising Channel TX Power (0x08|0x0007) ncmd 1
        Status: Success (0x00)
        TX power: 0 dbm (0x00)
< HCI Command: LE Read White List.. (0x08|0x000f) plen 0  #147 [hci0] 45.208271
> HCI Event: Command Complete (0x0e) plen 5               #148 [hci0] 45.211396
      LE Read White List Size (0x08|0x000f) ncmd 1
        Status: Success (0x00)
        Size: 8
< HCI Command: LE Clear White List (0x08|0x0010) plen 0   #149 [hci0] 45.211559
> HCI Event: Command Complete (0x0e) plen 4               #150 [hci0] 45.214412
      LE Clear White List (0x08|0x0010) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Read Resolving... (0x08|0x002a) plen 0  #151 [hci0] 45.214497
> HCI Event: Command Complete (0x0e) plen 5               #152 [hci0] 45.218441
      LE Read Resolving List Size (0x08|0x002a) ncmd 1
        Status: Success (0x00)
        Size: 8
< HCI Command: LE Clear Resolving.. (0x08|0x0029) plen 0  #153 [hci0] 45.218481
> HCI Event: Command Complete (0x0e) plen 4               #154 [hci0] 45.220291
      LE Clear Resolving List (0x08|0x0029) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Read Maximum Da.. (0x08|0x002f) plen 0  #155 [hci0] 45.220366
> HCI Event: Command Complete (0x0e) plen 12              #156 [hci0] 45.222176
      LE Read Maximum Data Length (0x08|0x002f) ncmd 1
        Status: Success (0x00)
        Max TX octets: 27
        Max TX time: 2704
        Max RX octets: 27
        Max RX time: 2704
< HCI Command: LE Read Suggested... (0x08|0x0023) plen 0  #157 [hci0] 45.222254
> HCI Event: Command Complete (0x0e) plen 8               #158 [hci0] 45.224413
      LE Read Suggested Default Data Length (0x08|0x0023) ncmd 1
        Status: Success (0x00)
        TX octets: 27
        TX time: 328
< HCI Command: Set Event Mask Pag.. (0x03|0x0063) plen 8  #159 [hci0] 45.224514
        Mask: 0x0000000000800000
          Authenticated Payload Timeout Expired
> HCI Event: Command Complete (0x0e) plen 4               #160 [hci0] 45.226305
      Set Event Mask Page 2 (0x03|0x0063) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Write Suggested.. (0x08|0x0024) plen 4  #161 [hci0] 45.226423
        TX octets: 27
        TX time: 2704
> HCI Event: Command Complete (0x0e) plen 4               #162 [hci0] 45.229412
      LE Write Suggested Default Data Length (0x08|0x0024) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Set Default PHY (0x08|0x0031) plen 3    #163 [hci0] 45.229492
        All PHYs preference: 0x00
        TX PHYs preference: 0x01
          LE 1M
        RX PHYs preference: 0x01
          LE 1M
> HCI Event: Command Complete (0x0e) plen 4               #164 [hci0] 45.231291
      LE Set Default PHY (0x08|0x0031) ncmd 1
        Status: Success (0x00)
= Index Info: 00:00:00:00:00:00 (The Linux Foundation)         [hci0] 45.231442
< HCI Command: LE Set Advertisin.. (0x08|0x0008) plen 32  #165 [hci0] 45.231520
        Length: 6
        Flags: 0x04
          BR/EDR Not Supported
        TX power: 0 dBm
> HCI Event: Command Complete (0x0e) plen 4               #166 [hci0] 45.234406
      LE Set Advertising Data (0x08|0x0008) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Set Scan Respo.. (0x08|0x0009) plen 32  #167 [hci0] 45.234489
        Length: 9
        Name (complete): ubuntu
> HCI Event: Command Complete (0x0e) plen 4               #168 [hci0] 45.237395
      LE Set Scan Response Data (0x08|0x0009) ncmd 1
        Status: Success (0x00)
@ MGMT Event: Command Complete (0x0001) plen 7        {0x0001} [hci0] 45.237546
      Set Powered (0x0005) plen 4
        Status: Success (0x00)
        Current settings: 0x00008a01
          Powered
          Low Energy
          Secure Connections
          Static Address
@ MGMT Event: New Settings (0x0006) plen 4            {0x0002} [hci0] 45.237580
        Current settings: 0x00008a01
          Powered
          Low Energy
          Secure Connections
          Static Address
@ MGMT Command: Set Local Name (0x000f) plen 260      {0x0001} [hci0] 45.237683
        Name: ubuntu
        Short name: 
@ MGMT Event: Command Complete (0x0001) plen 263      {0x0001} [hci0] 45.237687
      Set Local Name (0x000f) plen 260
        Status: Success (0x00)
        Name: ubuntu
        Short name: 
@ MGMT Command: Add UUID (0x0010) plen 17             {0x0001} [hci0] 45.237707
        UUID: 0000110e-0000-1000-8000-00805f9b34fb
        Service class: 0x00
@ MGMT Event: Command Complete (0x0001) plen 6        {0x0001} [hci0] 45.237709
      Add UUID (0x0010) plen 3
        Status: Success (0x00)
        Class: 0x000000
          Major class: Miscellaneous
          Minor class: 0x00
@ MGMT Command: Add UUID (0x0010) plen 17             {0x0001} [hci0] 45.237729
        UUID: 0000110c-0000-1000-8000-00805f9b34fb
        Service class: 0x00
@ MGMT Event: Command Complete (0x0001) plen 6        {0x0001} [hci0] 45.237730
      Add UUID (0x0010) plen 3
        Status: Success (0x00)
        Class: 0x000000
          Major class: Miscellaneous
          Minor class: 0x00
@ MGMT Command: Add UUID (0x0010) plen 17             {0x0001} [hci0] 45.237747
        UUID: 00001112-0000-1000-8000-00805f9b34fb
        Service class: 0x00
@ MGMT Event: Command Complete (0x0001) plen 6        {0x0001} [hci0] 45.237748
      Add UUID (0x0010) plen 3
        Status: Success (0x00)
        Class: 0x000000
          Major class: Miscellaneous
          Minor class: 0x00
@ MGMT Command: Add UUID (0x0010) plen 17             {0x0001} [hci0] 45.237764
        UUID: 00001108-0000-1000-8000-00805f9b34fb
        Service class: 0x00
@ MGMT Event: Command Complete (0x0001) plen 6        {0x0001} [hci0] 45.237765
      Add UUID (0x0010) plen 3
        Status: Success (0x00)
        Class: 0x000000
          Major class: Miscellaneous
          Minor class: 0x00
@ MGMT Command: Unblock Device (0x0027) plen 7        {0x0001} [hci0] 45.237782
        BR/EDR Address: 00:00:00:00:00:00 (OUI 00-00-00)
@ MGMT Event: Device Unblocked (0x0015) plen 7        {0x0002} [hci0] 45.237783
        BR/EDR Address: 00:00:00:00:00:00 (OUI 00-00-00)
@ MGMT Event: Command Complete (0x0001) plen 10       {0x0001} [hci0] 45.237785
      Unblock Device (0x0027) plen 7
        Status: Success (0x00)
        BR/EDR Address: 00:00:00:00:00:00 (OUI 00-00-00)
@ MGMT Command: Load Long Term Keys (0x0013) plen 2   {0x0001} [hci0] 45.237800
        Keys: 0
@ MGMT Event: Command Complete (0x0001) plen 3        {0x0001} [hci0] 45.237802
      Load Long Term Keys (0x0013) plen 0
        Status: Success (0x00)
@ MGMT Command: Load Identity Reso.. (0x0030) plen 2  {0x0001} [hci0] 45.237818
        Keys: 0
@ MGMT Event: Command Complete (0x0001) plen 3        {0x0001} [hci0] 45.237819
      Load Identity Resolving Keys (0x0030) plen 0
        Status: Success (0x00)
@ MGMT Command: Load Connection Pa.. (0x0035) plen 2  {0x0001} [hci0] 45.237835
        Parameters: 0
@ MGMT Event: Command Complete (0x0001) plen 3        {0x0001} [hci0] 45.237836
      Load Connection Parameters (0x0035) plen 0
        Status: Success (0x00)
@ MGMT Command: Add UUID (0x0010) plen 17             {0x0001} [hci0] 45.237852
        UUID: 00001200-0000-1000-8000-00805f9b34fb
        Service class: 0x00
@ MGMT Event: Command Complete (0x0001) plen 6        {0x0001} [hci0] 45.237853
      Add UUID (0x0010) plen 3
        Status: Success (0x00)
        Class: 0x000000
          Major class: Miscellaneous
          Minor class: 0x00
@ MGMT Command: Set Device ID (0x0028) plen 8         {0x0001} [hci0] 45.237869
        Device ID: USB Implementer's Forum assigned (0x0002)
          Vendor: Linux Foundation (0x1d6b)
          Product: 0x0246
          Version: 5.3.5 (0x0535)
@ MGMT Event: Command Complete (0x0001) plen 3        {0x0001} [hci0] 45.237870
      Set Device ID (0x0028) plen 0
        Status: Success (0x00)
@ MGMT Command: Set Local Name (0x000f) plen 260      {0x0001} [hci0] 45.237886
        Name: ubuntu
        Short name: 
@ MGMT Event: Command Complete (0x0001) plen 263      {0x0001} [hci0] 45.237887
      Set Local Name (0x000f) plen 260
        Status: Success (0x00)

As a reference, my setup has go1.16.2 and mcumgr 0.0.0-dev.

Could you provide some guidance on why this occurs and if there are any settings I could configure to have compatibility between the hci_usb sample w/ softdevice ctlr stack and the mcumgr tool?

Best regards,

Luis.

Parents
  • Hi again, Luis!

    The issue is that mcumgr doesn't set an address for the host before scanning. The Softdevice Controller checks the address and throws an error as it's invalid, while the Zephyr LL does not. Hence, the host starts scanning with an invalid address.

    We're awaiting more comments on how this could be handled, but a temporary workaround is to set the address in hci_usb directly. You can see how this is done in this pull request for hci_uart. Note that this code sets a public address, which is something you have to pay for. If you want to avoid this you could try to change the code to set a random address instead.

    Best regards,
    Carl Richard

Reply
  • Hi again, Luis!

    The issue is that mcumgr doesn't set an address for the host before scanning. The Softdevice Controller checks the address and throws an error as it's invalid, while the Zephyr LL does not. Hence, the host starts scanning with an invalid address.

    We're awaiting more comments on how this could be handled, but a temporary workaround is to set the address in hci_usb directly. You can see how this is done in this pull request for hci_uart. Note that this code sets a public address, which is something you have to pay for. If you want to avoid this you could try to change the code to set a random address instead.

    Best regards,
    Carl Richard

Children
Related