This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2564 BlueZ 5.22 L2CAP problem

Other Parts Discussed in Thread: CC2564

Hello,

I am having issues running BlueZ 5.22 with the CC2564 chip.  I am running as a peripheral using the Linux 3.17+ kernel and trying to connect to my peripheral using a Windows 7 laptop.

In my user-space program, I register with the running SDP daemon as a keyboard, and my device is discoverable on the laptop as a keyboard.  However, when Windows attempts to connect to the device, it will fail.

I've used sniffing on both sides: on the Linux (device) side and on the host side (I used a USB sniffer with my USB Bluetooth dongle), and the problem seems to arise right before I would expect Windows to request a connection on PSM 0x11 and 0x13 (17 & 19, the control and interrupt channels).  All of the lower-level negotiation has completed, but it seems that WIndows never opens up these two channels.

Now what makes this odd is that the same program works when I try to connect with the same laptop running Linux, with a different Windows 7 computer, with an iPhone and an iPad.

To debug this, I've tried copying the characteristics of the Apple Bluetooth Keyboard that I have (which connects successfully with the problematic Windows 7 machine), and still no luck.

I can only hope that maybe there is a newer TI firmware that can be used?  Outside of that, I can't think of what else to try.  I've tried working through WINDBG to debug the Windows driver, but that is a rat-hole that didn't really shed any light on anything.  Based on my sniffers, it seems that everything from the HCI layer on up is identical to the Apple Wireless Keyboard, so is it possible that it's something at  a lower layer that I can't see?

Setup:
Linux Kernel 3.17+
Firmware: TIInit_6.6.15.bts
BlueZ 5.22

Any help is appreciated!

  • Hi,

    All the latest CC256x service packs are available in: processors.wiki.ti.com/.../CC256x_Downloads .
    Regarding the issue, can you please share the snoop/sniffer logs for both the runs so I can take a look?

    Regards,
    Gigi Joseph.
  • So after I wrote this up, I decided to upgrade the Linux kernel to 3.19 and BlueZ (userspace) to 3.28, and now things seem to be working? I will test more on this today, and see if indeed my problems are solved.

    Thank you!
  • Hi,

    Please let me know if I can close this thread...

    Regards,
    Gigi Joseph.
  • Not just yet, please. I am still working to make sure it works appropriately. I have to make some changes to the userspace BlueZ code to ensure it works as I intend--those changes in 5.22 worked with the 3.19 kernel, I just want to verify that once I port the changes to 5.28 everything is still good. I should know by end of day today.
  • So I am continuing to have problems with connecting with Windows connecting to the device.  I have attached the logs of the windows connection attempt and the iPhone connection attempt, for your reference.  These are from btmon.

    I am unable to reproduce the working connection from earlier, which is frustrating.  I reverted my code entirely to the state that worked (Linux 3.19, BlueZ 5.22 userspace), but this error is occurring again.  It seems to get to the point where I'd expect the PC to try to connect to L2CAP PSM 0x11, but that never happens...

    Any help is appreciated!

    Preparation steps:

    hciattach /dev/ttyS4 cc2564 115200 flow && hciconfig hci0 up

    hciconfig hci0 class 0x540

    hciconfig hci0 name LevelUpxxxx

    hciconfig hci0 piscan

    hciconfig hci0 noauth

    sdptool add keyb

    pc.txt

    > HCI Event: Connect Request (0x04) plen 10                   [hci0] 321.470767
            Address: B8:E8:56:B3:C7:9E (OUI B8-E8-56)
            Class: 0x7a020c
              Major class: Phone (cellular, cordless, payphone, modem)
              Minor class: Smart phone
              Networking (LAN, Ad hoc)
              Capturing (Scanner, Microphone)
              Object Transfer (v-Inbox, v-Folder)
              Audio (Speaker, Microphone, Headset)
              Telephony (Cordless telephony, Modem, Headset)
            Link type: ACL (0x01)
    < HCI Command: Accept Connection Requ.. (0x01|0x0009) plen 7  [hci0] 321.470944
            Address: B8:E8:56:B3:C7:9E (OUI B8-E8-56)
            Role: Slave (0x01)
    > HCI Event: Command Status (0x0f) plen 4                     [hci0] 321.474429
          Accept Connection Request (0x01|0x0009) ncmd 1
            Status: Success (0x00)
    > HCI Event: Connect Complete (0x03) plen 11                  [hci0] 321.516455
            Status: Success (0x00)
            Handle: 1
            Address: B8:E8:56:B3:C7:9E (OUI B8-E8-56)
            Link type: ACL (0x01)
            Encryption: Disabled (0x00)
    > HCI Event: Page Scan Repetition Mode Change (0x20) plen 7   [hci0] 321.516493
            Address: B8:E8:56:B3:C7:9E (OUI B8-E8-56)
            Page scan repetition mode: R0 (0x00)
    > HCI Event: Max Slots Change (0x1b) plen 3                   [hci0] 321.516499
            Handle: 1
            Max slots: 5
    < HCI Command: Read Remote Supported... (0x01|0x001b) plen 2  [hci0] 321.517274
            Handle: 1
    > HCI Event: Command Status (0x0f) plen 4                     [hci0] 321.524425
          Read Remote Supported Features (0x01|0x001b) ncmd 1
            Status: Success (0x00)
    > HCI Event: Read Remote Supported Features (0x0b) plen 11    [hci0] 321.533554
            Status: Success (0x00)
            Handle: 1
            Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
              3 slot packets
              5 slot packets
              Encryption
              Slot offset
              Timing accuracy
              Role switch
              Sniff mode
              Power control requests
              Channel quality driven data rate (CQDDR)
              SCO link
              HV2 packets
              HV3 packets
              u-law log synchronous data
              A-law log synchronous data
              CVSD synchronous data
              Paging parameter negotiation
              Power control
              Transparent synchronous data
              Flow control lag (most significant bit)
              Broadcast Encryption
              Enhanced Data Rate ACL 2 Mbps mode
              Enhanced Data Rate ACL 3 Mbps mode
              Enhanced inquiry scan
              Interlaced inquiry scan
              Interlaced page scan
              RSSI with inquiry results
              Extended SCO link (EV3 packets)
              EV4 packets
              EV5 packets
              AFH capable slave
              AFH classification slave
              LE Supported (Controller)
              3-slot Enhanced Data Rate ACL packets
              5-slot Enhanced Data Rate ACL packets
              Sniff subrating
              Pause encryption
              AFH capable master
              AFH classification master
              Enhanced Data Rate eSCO 2 Mbps mode
              Enhanced Data Rate eSCO 3 Mbps mode
              3-slot Enhanced Data Rate eSCO packets
              Extended Inquiry Response
              Simultaneous LE and BR/EDR (Controller)
              Secure Simple Pairing
              Encapsulated PDU
              Erroneous Data Reporting
              Non-flushable Packet Boundary Flag
              Link Supervision Timeout Changed Event
              Inquiry TX Power Level
              Enhanced Power Control
              Extended features
    < HCI Command: Read Remote Extended F.. (0x01|0x001c) plen 3  [hci0] 321.533687
            Handle: 1
            Page: 1
    > HCI Event: Command Status (0x0f) plen 4                     [hci0] 321.536621
          Read Remote Extended Features (0x01|0x001c) ncmd 1
            Status: Success (0x00)
    > HCI Event: Read Remote Extended Features (0x23) plen 13     [hci0] 321.542604
            Status: Success (0x00)
            Handle: 1
            Page: 1/2
            Features: 0x07 0x00 0x00 0x00 0x00 0x00 0x00 0x00
              Secure Simple Pairing (Host Support)
              LE Supported (Host)
              Simultaneous LE and BR/EDR (Host)
    < HCI Command: Remote Name Request (0x01|0x0019) plen 10      [hci0] 321.542831
            Address: B8:E8:56:B3:C7:9E (OUI B8-E8-56)
            Page scan repetition mode: R2 (0x02)
            Page scan mode: Mandatory (0x00)
            Clock offset: 0x0000
    < ACL Data TX: Handle 1 flags 0x00 dlen 10                    [hci0] 321.542872
          L2CAP: Information Request (0x0a) ident 1 len 2
            Type: Extended features supported (0x0002)
    > HCI Event: Command Status (0x0f) plen 4                     [hci0] 321.545495
          Remote Name Request (0x01|0x0019) ncmd 1
            Status: Success (0x00)
    > HCI Event: Number of Completed Packets (0x13) plen 5        [hci0] 321.550302
            Num handles: 1
            Handle: 1
            Count: 1
    > ACL Data RX: Handle 1 flags 0x02 dlen 10                    [hci0] 321.553842
          L2CAP: Information Request (0x0a) ident 1 len 2
            Type: Extended features supported (0x0002)
    > ACL Data RX: Handle 1 flags 0x02 dlen 16                    [hci0] 321.553900
          L2CAP: Information Response (0x0b) ident 1 len 8
            Type: Extended features supported (0x0002)
            Result: Success (0x0000)
            Features: 0x000002a8
              Enhanced Retransmission Mode
              FCS Option
              Fixed Channels
              Unicast Connectionless Data Reception
    < ACL Data TX: Handle 1 flags 0x00 dlen 16                    [hci0] 321.554138
          L2CAP: Information Response (0x0b) ident 1 len 8
            Type: Extended features supported (0x0002)
            Result: Success (0x0000)
            Features: 0x000002b8
              Enhanced Retransmission Mode
              Streaming Mode
              FCS Option
              Fixed Channels
              Unicast Connectionless Data Reception
    < ACL Data TX: Handle 1 flags 0x00 dlen 10                    [hci0] 321.554168
          L2CAP: Information Request (0x0a) ident 2 len 2
            Type: Fixed channels supported (0x0003)
    > HCI Event: Remote Name Req Complete (0x07) plen 255         [hci0] 321.581196
            Status: Success (0x00)
            Address: B8:E8:56:B3:C7:9E (OUI B8-E8-56)
            Name: Jonathanӳ iPhone
    > HCI Event: Number of Completed Packets (0x13) plen 5        [hci0] 321.581218
            Num handles: 1
            Handle: 1
            Count: 2
    > ACL Data RX: Handle 1 flags 0x02 dlen 10                    [hci0] 321.581223
          L2CAP: Information Request (0x0a) ident 2 len 2
            Type: Fixed channels supported (0x0003)
    > ACL Data RX: Handle 1 flags 0x02 dlen 20                    [hci0] 321.581228
          L2CAP: Information Response (0x0b) ident 2 len 12
            Type: Fixed channels supported (0x0003)
            Result: Success (0x0000)
            Channels: 0x0000080000000010
              Attribute Protocol
              Unknown channels (0x80000000000)
    < ACL Data TX: Handle 1 flags 0x00 dlen 20                    [hci0] 321.589378
          L2CAP: Information Response (0x0b) ident 2 len 12
            Type: Fixed channels supported (0x0003)
            Result: Success (0x0000)
            Channels: 0x0000000000000006
              L2CAP Signaling (BR/EDR)
              Connectionless reception
    > HCI Event: Number of Completed Packets (0x13) plen 5        [hci0] 321.597671
            Num handles: 1
            Handle: 1
            Count: 1
    > ACL Data RX: Handle 1 flags 0x02 dlen 12                    [hci0] 321.602197
          L2CAP: Connection Request (0x02) ident 3 len 4
            PSM: 1 (0x0001)
            Source CID: 261
    < ACL Data TX: Handle 1 flags 0x00 dlen 16                    [hci0] 321.602540
          L2CAP: Connection Response (0x03) ident 3 len 8
            Destination CID: 64
            Source CID: 261
            Result: Connection successful (0x0000)
            Status: No further information available (0x0000)
    < ACL Data TX: Handle 1 flags 0x00 dlen 23                    [hci0] 321.602609
          L2CAP: Configure Request (0x04) ident 3 len 15
            Destination CID: 261
            Flags: 0x0000
            Option: Retransmission and Flow Control (0x04)
              Mode: Basic (0x00)
              TX window size: 0
              Max transmit: 0
              Retransmission timeout: 0
              Monitor timeout: 0
              Maximum PDU size: 0
    > HCI Event: Number of Completed Packets (0x13) plen 5        [hci0] 321.653955
            Num handles: 1
            Handle: 1
            Count: 2
    > ACL Data RX: Handle 1 flags 0x02 dlen 16                    [hci0] 321.663018
          L2CAP: Configure Request (0x04) ident 4 len 8
            Destination CID: 64
            Flags: 0x0000
            Option: Maximum Transmission Unit (0x01)
              MTU: 256
    > ACL Data RX: Handle 1 flags 0x02 dlen 29                    [hci0] 321.663038
          L2CAP: Configure Response (0x05) ident 3 len 21
            Source CID: 64
            Flags: 0x0000
            Result: Success (0x0000)
            Option: Maximum Transmission Unit (0x01)
              MTU: 672
            Option: Retransmission and Flow Control (0x04)
              Mode: Basic (0x00)
              TX window size: 0
              Max transmit: 0
              Retransmission timeout: 0
              Monitor timeout: 0
              Maximum PDU size: 0
    < ACL Data TX: Handle 1 flags 0x00 dlen 18                    [hci0] 321.663282
          L2CAP: Configure Response (0x05) ident 4 len 10
            Source CID: 261
            Flags: 0x0000
            Result: Success (0x0000)
            Option: Maximum Transmission Unit (0x01)
              MTU: 256
    > HCI Event: Number of Completed Packets (0x13) plen 5        [hci0] 321.707729
            Num handles: 1
            Handle: 1
            Count: 1
    > ACL Data RX: Handle 1 flags 0x02 dlen 17                    [hci0] 321.748896
          Channel: 64 len 13 [PSM 1 mode 0] {chan 0}
          SDP: Service Search Request (0x02) tid 1 len 8
            Search pattern: [len 5]
              Sequence (6) with 3 bytes [8 extra bits] len 5
                UUID (3) with 2 bytes [0 extra bits] len 3
                  L2CAP (0x0100)
            Max record count: 48
            Continuation state: 0
    < ACL Data TX: Handle 1 flags 0x00 dlen 26                    [hci0] 321.750626
          Channel: 261 len 22 [PSM 1 mode 0] {chan 0}
          SDP: Service Search Response (0x03) tid 1 len 17
            Total record count: 3
            Current record count: 3
            Record handle: 0x10000
            Record handle: 0x10001
            Record handle: 0x10002
            Continuation state: 0
    > HCI Event: Number of Completed Packets (0x13) plen 5        [hci0] 321.788902
            Num handles: 1
            Handle: 1
            Count: 1
    > ACL Data RX: Handle 1 flags 0x02 dlen 23                    [hci0] 321.828198
          Channel: 64 len 19 [PSM 1 mode 0] {chan 0}
          SDP: Service Attribute Request (0x04) tid 2 len 14
            Record handle: 0x10000
            Max attribute bytes: 256
            Attribute list: [len 7]
              Sequence (6) with 5 bytes [8 extra bits] len 7
                Unsigned Integer (1) with 4 bytes [0 extra bits] len 5
                  0x0000ffff
            Continuation state: 0
    < ACL Data TX: Handle 1 flags 0x00 dlen 256                   [hci0] 321.830145
          Channel: 261 len 252 [PSM 1 mode 0] {chan 0}
          SDP: Service Attribute Response (0x05) tid 2 len 247
            Attribute bytes: 236
            Continuation state: 8
            2c 03 00 00 ec 00 00 00                          ,.......        
    > HCI Event: Number of Completed Packets (0x13) plen 5        [hci0] 321.870170
            Num handles: 1
            Handle: 1
            Count: 1
    > ACL Data RX: Handle 1 flags 0x02 dlen 31                    [hci0] 321.908866
          Channel: 64 len 27 [PSM 1 mode 0] {chan 0}
          SDP: Service Attribute Request (0x04) tid 3 len 22
            Record handle: 0x10000
            Max attribute bytes: 256
            Attribute list: [len 7]
              Sequence (6) with 5 bytes [8 extra bits] len 7
                Unsigned Integer (1) with 4 bytes [0 extra bits] len 5
                  0x0000ffff
            Continuation state: 8
            2c 03 00 00 ec 00 00 00                          ,.......        
    < ACL Data TX: Handle 1 flags 0x00 dlen 67                    [hci0] 321.910620
          Channel: 261 len 63 [PSM 1 mode 0] {chan 0}
          SDP: Service Attribute Response (0x05) tid 3 len 58
            Attribute bytes: 55
            Continuation state: 0
            Combined attribute bytes: 291
              Attribute list: [len 288] {position 0}
                Attribute: Service Record Handle (0x0000) [len 2]
                  0x00010000
                Attribute: Service Class ID List (0x0001) [len 2]
                  UUID (3) with 2 bytes [0 extra bits] len 3
                    Human Interface Device Service (0x1124)
                Attribute: Protocol Descriptor List (0x0004) [len 2]
                  Sequence (6) with 6 bytes [8 extra bits] len 8
                    UUID (3) with 2 bytes [0 extra bits] len 3
                      L2CAP (0x0100)
                    Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                      0x0011
                  Sequence (6) with 3 bytes [8 extra bits] len 5
                    UUID (3) with 2 bytes [0 extra bits] len 3
                      HIDP (0x0011)
                Attribute: Browse Group List (0x0005) [len 2]
                  UUID (3) with 2 bytes [0 extra bits] len 3
                    Public Browse Root (0x1002)
                Attribute: Language Base Attribute ID List (0x0006) [len 2]
                  Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                    0x656e
                  Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                    0x006a
                  Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                    0x0100
                Attribute: Bluetooth Profile Descriptor List (0x0009) [len 2]
                  Sequence (6) with 6 bytes [8 extra bits] len 8
                    UUID (3) with 2 bytes [0 extra bits] len 3
                      Human Interface Device Service (0x1124)
                    Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                      0x0100
                Attribute: Additional Protocol Descriptor List (0x000d) [len 2]
                  Sequence (6) with 13 bytes [8 extra bits] len 15
                    Sequence (6) with 6 bytes [8 extra bits] len 8
                      UUID (3) with 2 bytes [0 extra bits] len 3
                        L2CAP (0x0100)
                      Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                        0x0013
                    Sequence (6) with 3 bytes [8 extra bits] len 5
                      UUID (3) with 2 bytes [0 extra bits] len 3
                        HIDP (0x0011)
                Attribute: Unknown (0x0100) [len 2]
                  LevelUp Scanner [len 15]
                Attribute: Unknown (0x0101) [len 2]
                  Scanner [len 7]
                Attribute: Unknown (0x0102) [len 2]
                  SCVNGR, Inc. [len 12]
                Attribute: Unknown (0x0200) [len 2]
                  0x0100
                Attribute: Unknown (0x0201) [len 2]
                  0x0111
                Attribute: Unknown (0x0202) [len 2]
                  0x80
                Attribute: Unknown (0x0203) [len 2]
                  0x21
                Attribute: Unknown (0x0204) [len 2]
                  true
                Attribute: Unknown (0x0205) [len 2]
                  true
                Attribute: Unknown (0x0206) [len 2]
                  Sequence (6) with 67 bytes [8 extra bits] len 69
                    Unsigned Integer (1) with 1 byte [0 extra bits] len 2
                      0x22
                    String (4) with 63 bytes [8 extra bits] len 65
                      	A) [len 63]
                Attribute: Unknown (0x0207) [len 2]
                  Sequence (6) with 6 bytes [8 extra bits] len 8
                    Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                      0x0409
                    Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                      0x0100
                Attribute: Unknown (0x0208) [len 2]
                  false
                Attribute: Unknown (0x0209) [len 2]
                  false
                Attribute: Unknown (0x020a) [len 2]
                  false
                Attribute: Unknown (0x020c) [len 2]
                  0x0c80
                Attribute: Unknown (0x020d) [len 2]
                  false
                Attribute: Unknown (0x020e) [len 2]
                  true
    > HCI Event: Number of Completed Packets (0x13) plen 5        [hci0] 321.948959
            Num handles: 1
            Handle: 1
            Count: 1
    > ACL Data RX: Handle 1 flags 0x02 dlen 23                    [hci0] 321.988199
          Channel: 64 len 19 [PSM 1 mode 0] {chan 0}
          SDP: Service Attribute Request (0x04) tid 4 len 14
            Record handle: 0x10001
            Max attribute bytes: 256
            Attribute list: [len 7]
              Sequence (6) with 5 bytes [8 extra bits] len 7
                Unsigned Integer (1) with 4 bytes [0 extra bits] len 5
                  0x0000ffff
            Continuation state: 0
    < ACL Data TX: Handle 1 flags 0x00 dlen 104                   [hci0] 321.989912
          Channel: 261 len 100 [PSM 1 mode 0] {chan 0}
          SDP: Service Attribute Response (0x05) tid 4 len 95
            Attribute bytes: 92
              Attribute list: [len 90] {position 0}
                Attribute: Service Record Handle (0x0000) [len 2]
                  0x00010001
                Attribute: Service Class ID List (0x0001) [len 2]
                  UUID (3) with 2 bytes [0 extra bits] len 3
                    PnP Information (0x1200)
                Attribute: Protocol Descriptor List (0x0004) [len 2]
                  Sequence (6) with 6 bytes [8 extra bits] len 8
                    UUID (3) with 2 bytes [0 extra bits] len 3
                      L2CAP (0x0100)
                    Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                      0x0001
                  Sequence (6) with 3 bytes [8 extra bits] len 5
                    UUID (3) with 2 bytes [0 extra bits] len 3
                      SDP (0x0001)
                Attribute: Browse Group List (0x0005) [len 2]
                  UUID (3) with 2 bytes [0 extra bits] len 3
                    Public Browse Root (0x1002)
                Attribute: Bluetooth Profile Descriptor List (0x0009) [len 2]
                  Sequence (6) with 6 bytes [8 extra bits] len 8
                    UUID (3) with 2 bytes [0 extra bits] len 3
                      PnP Information (0x1200)
                    Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                      0x0103
                Attribute: Unknown (0x0200) [len 2]
                  0x0103
                Attribute: Unknown (0x0201) [len 2]
                  0x1d6b
                Attribute: Unknown (0x0202) [len 2]
                  0x0246
                Attribute: Unknown (0x0203) [len 2]
                  0x051c
                Attribute: Unknown (0x0204) [len 2]
                  true
                Attribute: Unknown (0x0205) [len 2]
                  0x0002
            Continuation state: 0
    > HCI Event: Number of Completed Packets (0x13) plen 5        [hci0] 322.073991
            Num handles: 1
            Handle: 1
            Count: 1
    > ACL Data RX: Handle 1 flags 0x02 dlen 23                    [hci0] 322.149417
          Channel: 64 len 19 [PSM 1 mode 0] {chan 0}
          SDP: Service Attribute Request (0x04) tid 5 len 14
            Record handle: 0x10002
            Max attribute bytes: 256
            Attribute list: [len 7]
              Sequence (6) with 5 bytes [8 extra bits] len 7
                Unsigned Integer (1) with 4 bytes [0 extra bits] len 5
                  0x0000ffff
            Continuation state: 0
    < ACL Data TX: Handle 1 flags 0x00 dlen 256                   [hci0] 322.151424
          Channel: 261 len 252 [PSM 1 mode 0] {chan 0}
          SDP: Service Attribute Response (0x05) tid 5 len 247
            Attribute bytes: 236
            Continuation state: 8
            2d 03 00 00 ec 00 00 00                          -.......        
    > HCI Event: Number of Completed Packets (0x13) plen 5        [hci0] 322.225226
            Num handles: 1
            Handle: 1
            Count: 1
    > ACL Data RX: Handle 1 flags 0x02 dlen 31                    [hci0] 322.230157
          Channel: 64 len 27 [PSM 1 mode 0] {chan 0}
          SDP: Service Attribute Request (0x04) tid 6 len 22
            Record handle: 0x10002
            Max attribute bytes: 256
            Attribute list: [len 7]
              Sequence (6) with 5 bytes [8 extra bits] len 7
                Unsigned Integer (1) with 4 bytes [0 extra bits] len 5
                  0x0000ffff
            Continuation state: 8
            2d 03 00 00 ec 00 00 00                          -.......        
    < ACL Data TX: Handle 1 flags 0x00 dlen 61                    [hci0] 322.231834
          Channel: 261 len 57 [PSM 1 mode 0] {chan 0}
          SDP: Service Attribute Response (0x05) tid 6 len 52
            Attribute bytes: 49
            Continuation state: 0
            Combined attribute bytes: 285
              Attribute list: [len 282] {position 0}
                Attribute: Service Record Handle (0x0000) [len 2]
                  0x00010002
                Attribute: Service Class ID List (0x0001) [len 2]
                  UUID (3) with 2 bytes [0 extra bits] len 3
                    Human Interface Device Service (0x1124)
                Attribute: Protocol Descriptor List (0x0004) [len 2]
                  Sequence (6) with 6 bytes [8 extra bits] len 8
                    UUID (3) with 2 bytes [0 extra bits] len 3
                      L2CAP (0x0100)
                    Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                      0x0011
                  Sequence (6) with 3 bytes [8 extra bits] len 5
                    UUID (3) with 2 bytes [0 extra bits] len 3
                      HIDP (0x0011)
                Attribute: Browse Group List (0x0005) [len 2]
                  UUID (3) with 2 bytes [0 extra bits] len 3
                    Public Browse Root (0x1002)
                Attribute: Language Base Attribute ID List (0x0006) [len 2]
                  Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                    0x656e
                  Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                    0x006a
                  Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                    0x0100
                Attribute: Bluetooth Profile Descriptor List (0x0009) [len 2]
                  Sequence (6) with 6 bytes [8 extra bits] len 8
                    UUID (3) with 2 bytes [0 extra bits] len 3
                      Human Interface Device Service (0x1124)
                    Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                      0x0100
                Attribute: Additional Protocol Descriptor List (0x000d) [len 2]
                  Sequence (6) with 13 bytes [8 extra bits] len 15
                    Sequence (6) with 6 bytes [8 extra bits] len 8
                      UUID (3) with 2 bytes [0 extra bits] len 3
                        L2CAP (0x0100)
                      Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                        0x0013
                    Sequence (6) with 3 bytes [8 extra bits] len 5
                      UUID (3) with 2 bytes [0 extra bits] len 3
                        HIDP (0x0011)
                Attribute: Unknown (0x0100) [len 2]
                  LevelUp Scanner v2 [len 18]
                Attribute: Unknown (0x0101) [len 2]
                  LevelUp Scanner v2 [len 18]
                Attribute: Unknown (0x0102) [len 2]
                  HID Keyboard via Bluetooth [len 26]
                Attribute: Unknown (0x0200) [len 2]
                  0x0100
                Attribute: Unknown (0x0201) [len 2]
                  0x0111
                Attribute: Unknown (0x0202) [len 2]
                  0x0000
                Attribute: Unknown (0x0203) [len 2]
                  0x0000
                Attribute: Unknown (0x0204) [len 2]
                  0x0000
                Attribute: Unknown (0x0205) [len 2]
                  0x0000
                Attribute: Unknown (0x0206) [len 2]
                  Sequence (6) with 48 bytes [8 extra bits] len 50
                    Unsigned Integer (1) with 1 byte [0 extra bits] len 2
                      0x22
                    String (4) with 44 bytes [8 extra bits] len 46
                      	AŁ`[len 44]
                Attribute: Unknown (0x0207) [len 2]
                  Sequence (6) with 6 bytes [8 extra bits] len 8
                    Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                      0x0409
                    Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                      0x0100
                Attribute: Unknown (0x020b) [len 2]
                  0x0100
                Attribute: Unknown (0x020e) [len 2]
                  0x0000
    > HCI Event: Number of Completed Packets (0x13) plen 5        [hci0] 322.300237
            Num handles: 1
            Handle: 1
            Count: 1
    > ACL Data RX: Handle 1 flags 0x02 dlen 17                    [hci0] 322.401414
          Channel: 64 len 13 [PSM 1 mode 0] {chan 0}
          SDP: Service Search Request (0x02) tid 7 len 8
            Search pattern: [len 5]
              Sequence (6) with 3 bytes [8 extra bits] len 5
                UUID (3) with 2 bytes [0 extra bits] len 3
                  PnP Information (0x1200)
            Max record count: 48
            Continuation state: 0
    < ACL Data TX: Handle 1 flags 0x00 dlen 18                    [hci0] 322.403491
          Channel: 261 len 14 [PSM 1 mode 0] {chan 0}
          SDP: Service Search Response (0x03) tid 7 len 9
            Total record count: 1
            Current record count: 1
            Record handle: 0x10001
            Continuation state: 0
    > HCI Event: Number of Completed Packets (0x13) plen 5        [hci0] 322.467695
            Num handles: 1
            Handle: 1
            Count: 1
    > ACL Data RX: Handle 1 flags 0x02 dlen 23                    [hci0] 322.551928
          Channel: 64 len 19 [PSM 1 mode 0] {chan 0}
          SDP: Service Attribute Request (0x04) tid 8 len 14
            Record handle: 0x10001
            Max attribute bytes: 256
            Attribute list: [len 7]
              Sequence (6) with 5 bytes [8 extra bits] len 7
                Unsigned Integer (1) with 4 bytes [0 extra bits] len 5
                  0x0000ffff
            Continuation state: 0
    < ACL Data TX: Handle 1 flags 0x00 dlen 104                   [hci0] 322.553650
          Channel: 261 len 100 [PSM 1 mode 0] {chan 0}
          SDP: Service Attribute Response (0x05) tid 8 len 95
            Attribute bytes: 92
              Attribute list: [len 90] {position 0}
                Attribute: Service Record Handle (0x0000) [len 2]
                  0x00010001
                Attribute: Service Class ID List (0x0001) [len 2]
                  UUID (3) with 2 bytes [0 extra bits] len 3
                    PnP Information (0x1200)
                Attribute: Protocol Descriptor List (0x0004) [len 2]
                  Sequence (6) with 6 bytes [8 extra bits] len 8
                    UUID (3) with 2 bytes [0 extra bits] len 3
                      L2CAP (0x0100)
                    Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                      0x0001
                  Sequence (6) with 3 bytes [8 extra bits] len 5
                    UUID (3) with 2 bytes [0 extra bits] len 3
                      SDP (0x0001)
                Attribute: Browse Group List (0x0005) [len 2]
                  UUID (3) with 2 bytes [0 extra bits] len 3
                    Public Browse Root (0x1002)
                Attribute: Bluetooth Profile Descriptor List (0x0009) [len 2]
                  Sequence (6) with 6 bytes [8 extra bits] len 8
                    UUID (3) with 2 bytes [0 extra bits] len 3
                      PnP Information (0x1200)
                    Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                      0x0103
                Attribute: Unknown (0x0200) [len 2]
                  0x0103
                Attribute: Unknown (0x0201) [len 2]
                  0x1d6b
                Attribute: Unknown (0x0202) [len 2]
                  0x0246
                Attribute: Unknown (0x0203) [len 2]
                  0x051c
                Attribute: Unknown (0x0204) [len 2]
                  true
                Attribute: Unknown (0x0205) [len 2]
                  0x0002
            Continuation state: 0
    > HCI Event: Number of Completed Packets (0x13) plen 5        [hci0] 322.632708
            Num handles: 1
            Handle: 1
            Count: 1
    > ACL Data RX: Handle 1 flags 0x02 dlen 12                    [hci0] 322.745994
          L2CAP: Disconnection Request (0x06) ident 5 len 4
            Destination CID: 64
            Source CID: 261
    < ACL Data TX: Handle 1 flags 0x00 dlen 12                    [hci0] 322.746205
          L2CAP: Disconnection Response (0x07) ident 5 len 4
            Destination CID: 64
            Source CID: 261
    > HCI Event: Number of Completed Packets (0x13) plen 5        [hci0] 322.833947
            Num handles: 1
            Handle: 1
            Count: 1
    > HCI Event: IO Capability Response (0x32) plen 9             [hci0] 322.949032
            Address: B8:E8:56:B3:C7:9E (OUI B8-E8-56)
            IO capability: DisplayYesNo (0x01)
            OOB data: Authentication data not present (0x00)
            Authentication: General Bonding - MITM not required (0x04)
    > HCI Event: IO Capability Request (0x31) plen 6              [hci0] 322.949083
            Address: B8:E8:56:B3:C7:9E (OUI B8-E8-56)
    < HCI Command: IO Capability Request... (0x01|0x002b) plen 9  [hci0] 322.949243
            Address: B8:E8:56:B3:C7:9E (OUI B8-E8-56)
            IO capability: NoInputNoOutput (0x03)
            OOB data: Authentication data not present (0x00)
            Authentication: General Bonding - MITM not required (0x04)
    > HCI Event: Command Complete (0x0e) plen 10                  [hci0] 322.952302
          IO Capability Request Reply (0x01|0x002b) ncmd 1
            Status: Success (0x00)
            Address: B8:E8:56:B3:C7:9E (OUI B8-E8-56)
    > HCI Event: User Confirmation Request (0x33) plen 10         [hci0] 323.762009
            Address: B8:E8:56:B3:C7:9E (OUI B8-E8-56)
            Passkey: 339328
    < HCI Command: User Confirmation Requ.. (0x01|0x002c) plen 6  [hci0] 323.762105
            Address: B8:E8:56:B3:C7:9E (OUI B8-E8-56)
    > HCI Event: Command Complete (0x0e) plen 10                  [hci0] 323.764926
          User Confirmation Request Reply (0x01|0x002c) ncmd 1
            Status: Success (0x00)
            Address: B8:E8:56:B3:C7:9E (OUI B8-E8-56)
    > HCI Event: Simple Pairing Complete (0x36) plen 7            [hci0] 323.941861
            Status: Success (0x00)
            Address: B8:E8:56:B3:C7:9E (OUI B8-E8-56)
    > HCI Event: Link Key Notification (0x18) plen 23             [hci0] 324.074644
            Address: B8:E8:56:B3:C7:9E (OUI B8-E8-56)
            Link key: b5667d2f6145484cda771c5c331768f8
            Key type: Unauthenticated Combination key from P-192 (0x04)
    > HCI Event: Encryption Change (0x08) plen 4                  [hci0] 324.390337
            Status: Success (0x00)
            Handle: 1
            Encryption: Enabled with E0 (0x01)
    > ACL Data RX: Handle 1 flags 0x02 dlen 12                    [hci0] 324.462267
          L2CAP: Connection Request (0x02) ident 6 len 4
            PSM: 17 (0x0011)
            Source CID: 517
    < ACL Data TX: Handle 1 flags 0x00 dlen 16                    [hci0] 324.462519
          L2CAP: Connection Response (0x03) ident 6 len 8
            Destination CID: 64
            Source CID: 517
            Result: Connection successful (0x0000)
            Status: No further information available (0x0000)
    < ACL Data TX: Handle 1 flags 0x00 dlen 23                    [hci0] 324.462573
          L2CAP: Configure Request (0x04) ident 4 len 15
            Destination CID: 517
            Flags: 0x0000
            Option: Retransmission and Flow Control (0x04)
              Mode: Basic (0x00)
              TX window size: 0
              Max transmit: 0
              Retransmission timeout: 0
              Monitor timeout: 0
              Maximum PDU size: 0
    > HCI Event: Number of Completed Packets (0x13) plen 5        [hci0] 324.510269
            Num handles: 1
            Handle: 1
            Count: 2
    > ACL Data RX: Handle 1 flags 0x02 dlen 16                    [hci0] 324.512600
          L2CAP: Configure Request (0x04) ident 7 len 8
            Destination CID: 64
            Flags: 0x0000
            Option: Maximum Transmission Unit (0x01)
              MTU: 672
    < ACL Data TX: Handle 1 flags 0x00 dlen 18                    [hci0] 324.512764
          L2CAP: Configure Response (0x05) ident 7 len 10
            Source CID: 517
            Flags: 0x0000
            Result: Success (0x0000)
            Option: Maximum Transmission Unit (0x01)
              MTU: 672
    > ACL Data RX: Handle 1 flags 0x02 dlen 29                    [hci0] 324.516225
          L2CAP: Configure Response (0x05) ident 4 len 21
            Source CID: 64
            Flags: 0x0000
            Result: Success (0x0000)
            Option: Maximum Transmission Unit (0x01)
              MTU: 672
            Option: Retransmission and Flow Control (0x04)
              Mode: Basic (0x00)
              TX window size: 0
              Max transmit: 0
              Retransmission timeout: 0
              Monitor timeout: 0
              Maximum PDU size: 0
    > HCI Event: Number of Completed Packets (0x13) plen 5        [hci0] 324.582757
            Num handles: 1
            Handle: 1
            Count: 1
    > ACL Data RX: Handle 1 flags 0x02 dlen 12                    [hci0] 324.591043
          L2CAP: Connection Request (0x02) ident 8 len 4
    Incoming connection from node [B8:E8:56:B3:C7:9E] accepted and established.
    CMD>         PSM: 19 (0x0013)
            Source CID: 774
    < ACL Data TX: Handle 1 flags 0x00 dlen 16                    [hci0] 324.591270
          L2CAP: Connection Response (0x03) ident 8 len 8
            Destination CID: 65
            Source CID: 774
            Result: Connection successful (0x0000)
            Status: No further information available (0x0000)
    < ACL Data TX: Handle 1 flags 0x00 dlen 23                    [hci0] 324.591326
          L2CAP: Configure Request (0x04) ident 5 len 15
            Destination CID: 774
            Flags: 0x0000
            Option: Retransmission and Flow Control (0x04)
              Mode: Basic (0x00)
              TX window size: 0
              Max transmit: 0
              Retransmission timeout: 0
              Monitor timeout: 0
              Maximum PDU size: 0
    > HCI Event: Number of Completed Packets (0x13) plen 5        [hci0] 324.672779
            Num handles: 1
            Handle: 1
            Count: 2
    > ACL Data RX: Handle 1 flags 0x02 dlen 16                    [hci0] 324.740117
          L2CAP: Configure Request (0x04) ident 9 len 8
            Destination CID: 65
            Flags: 0x0000
            Option: Maximum Transmission Unit (0x01)
              MTU: 672
    < ACL Data TX: Handle 1 flags 0x00 dlen 18                    [hci0] 324.740274
          L2CAP: Configure Response (0x05) ident 9 len 10
            Source CID: 774
            Flags: 0x0000
            Result: Success (0x0000)
            Option: Maximum Transmission Unit (0x01)
              MTU: 672
    > ACL Data RX: Handle 1 flags 0x02 dlen 29                    [hci0] 324.789435
          L2CAP: Configure Response (0x05) ident 5 len 21
            Source CID: 65
            Flags: 0x0000
            Result: Success (0x0000)
            Option: Maximum Transmission Unit (0x01)
              MTU: 672
            Option: Retransmission and Flow Control (0x04)
              Mode: Basic (0x00)
              TX window size: 0
              Max transmit: 0
              Retransmission timeout: 0
              Monitor timeout: 0
              Maximum PDU size: 0
    > HCI Event: Number of Completed Packets (0x13) plen 5        [hci0] 324.789454
            Num handles: 1
            Handle: 1
            Count: 1
    @ Device Connected: B8:E8:56:B3:C7:9E (0) flags 0x0000
            14 09 4a 6f 6e 61 74 68 61 6e e2 80 99 73 20 69  ..Jonathan...s i
            50 68 6f 6e 65 04 0d 0c 02 7a                    Phone....z      
    @ New Link Key: B8:E8:56:B3:C7:9E (0)
    @ Device Added: B8:E8:56:B3:C7:9E (0) 1
    

  • Hi,

    The only difference I can see in both the SDP records is that in the case of "pc.txt", the BlueZ host is advertising the ATT profile in the SDP record and in the other case (iPhone-connection2.txt) it is not there. Does the problematic Windows 7 PC connect with other Bluetooth keyboards?

    Possibly you can try to remove the ATT SDP record and see if it helps (Set "EnableGatt = false" in /etc/bluetooth/main.conf).

    Regards,
    Gigi Joseph.
  • Thank you, I will try this.  I am also looking into my BlueZ input driver to see if something isn't being done correctly there...

    Thank you for the feedback!

  • So interestingly it appears that in BlueZ 5.28, that option doesn't exist, and that it isn't possible to disable the GATT server, and the 0x0007 characteristic is hard-coded in. I am going to manually remove it from the BlueZ code, to see if I can get it to serve the exact same record....
  • Some more information.  I have modified the BlueZ 5.28 source to ensure that the SDP reports match Apple's as closely as possible.  Results are the same:  it appears that everything is going great right up to the point where the host is supposed to send a connection request to PSM 0x11.

    I have also attached the output of "sdptool records --raw local" (I ran bluetoothd with --compat), and they are essentially identical to Apple's (attached again).  The records seem to be formatted correctly, but I have no idea why the PC would not send out the connection request to PSM 0x11!

    Attribute Identifier : 0x0 - ServiceRecordHandle
      Integer : 0x10000
    Attribute Identifier : 0x1 - ServiceClassIDList
      Data Sequence
        UUID16 : 0x1124 - HumanInterfaceDeviceService (HID)
    Attribute Identifier : 0x4 - ProtocolDescriptorList
      Data Sequence
        Data Sequence
          UUID16 : 0x0100 - L2CAP
          Channel/Port (Integer) : 0x11
        Data Sequence
          UUID16 : 0x0011 - HIDP
    Attribute Identifier : 0x5 - BrowseGroupList
      Data Sequence
        UUID16 : 0x1002 - PublicBrowseGroup
    Attribute Identifier : 0x6 - LanguageBaseAttributeIDList
      Data Sequence
        Code ISO639 (Integer) : 0x656e
        Encoding (Integer) : 0x6a
        Base Offset (Integer) : 0x100
    Attribute Identifier : 0x9 - BluetoothProfileDescriptorList
      Data Sequence
        Data Sequence
          UUID16 : 0x1124 - HumanInterfaceDeviceService (HID)
          Version (Integer) : 0x100
    Attribute Identifier : 0xd - AdditionalProtocolDescriptorLists
      Data Sequence
        Data Sequence
          Data Sequence
            UUID16 : 0x0100 - L2CAP
            Integer : 0x13
          Data Sequence
            UUID16 : 0x0011 - HIDP
    Attribute Identifier : 0x100
      Data : 41 70 70 6c 65 20 57 69 72 65 6c 65 73 73 20 4b 65 79 62 6f 61 72 64 00
    Attribute Identifier : 0x101
      Data : 4b 65 79 62 6f 61 72 64 00
    Attribute Identifier : 0x102
      Data : 41 70 70 6c 65 20 49 6e 63 2e 00
    Attribute Identifier : 0x201 - ParserVersion
      Integer : 0x111
    Attribute Identifier : 0x202 - DeviceSubclass
      Integer : 0x40
    Attribute Identifier : 0x203 - CountryCode
      Integer : 0x21
    Attribute Identifier : 0x204 - VirtualCable
      Integer : 0x0
    Attribute Identifier : 0x205 - ReconnectInitiate
      Integer : 0x1
    Attribute Identifier : 0x206 - DescriptorList
      Data Sequence
        Data Sequence
          Integer : 0x22
          Data : 05 01 09 06 a1 01 85 01 05 07 19 e0 29 e7 15 00 25 01 75 01 95 08 81 02 75 08 95 01 81 01 75 01 95 05 05 08 19 01 29 05 91 02 75 03 95 01 91 01 75 08 95 06 15 00 26 ff 00 05 07 19 00 2a ff 00 81 00 c0 05 0c 09 01 a1 01 85 47 05 01 09 06 a1 02 05 06 09 20 15 00 26 ff 00 75 08 95 01 81 02 c0 c0 05 0c 09 01 a1 01 85 11 15 00 25 01 75 01 95 03 81 01 75 01 95 01 05 0c 09 b8 81 02 06 ff 00 09 03 81 02 75 01 95 03 81 01 05 0c 85 12 15 00 25 01 75 01 95 01 09 cd 81 02 09 b3 81 02 09 b4 81 02 09 b5 81 02 09 b6 81 02 81 01 81 01 81 01 85 13 15 00 25 01 75 01 95 01 06 01 ff 09 0a 81 02 06 01 ff 09 0c 81 22 75 01 95 06 81 01 85 09 09 0b 75 08 95 01 b1 02 75 08 95 02 b1 01 c0 00
    Attribute Identifier : 0x207 - LangIDBaseList
      Data Sequence
        Data Sequence
          Integer : 0x409
          Integer : 0x100
    Attribute Identifier : 0x209 - BatteryPower
      Integer : 0x1
    Attribute Identifier : 0x20a - RemoteWakeup
      Integer : 0x1
    Attribute Identifier : 0x20b - ProfileVersion
      Integer : 0x100
    Attribute Identifier : 0x20c - SupervisionTimeout
      Integer : 0x1f40
    Attribute Identifier : 0x20d - NormallyConnectable
      Integer : 0x1
    Attribute Identifier : 0x20e - BootDevice
      Integer : 0x1
    
    Attribute Identifier : 0x0 - ServiceRecordHandle
      Integer : 0x10001
    Attribute Identifier : 0x1 - ServiceClassIDList
      Data Sequence
        UUID16 : 0x1200 - PnPInformation
    Attribute Identifier : 0x4 - ProtocolDescriptorList
      Data Sequence
        Data Sequence
          UUID16 : 0x0100 - L2CAP
          Channel/Port (Integer) : 0x1
        Data Sequence
          UUID16 : 0x0001 - SDP
    Attribute Identifier : 0x9 - BluetoothProfileDescriptorList
      Data Sequence
        Data Sequence
          UUID16 : 0x1200 - PnPInformation
          Version (Integer) : 0x100
    Attribute Identifier : 0x200 - SpecificationID
      Integer : 0x100
    Attribute Identifier : 0x201 - VendorID
      Integer : 0x5ac
    Attribute Identifier : 0x202 - ProductID
      Integer : 0x255
    Attribute Identifier : 0x203 - Version
      Integer : 0x50
    Attribute Identifier : 0x204 - PrimaryRecord
      Integer : 0x1
    Attribute Identifier : 0x205 - VendorIDSource
      Integer : 0x2

    Bluetooth monitor ver 5.28
    = New Index: 78:A5:04:8E:30:85 (BR/EDR,UART,hci0)               [hci0] 0.630909
    > HCI Event: Connect Request (0x04) plen 10                     [hci0] 9.993800
            Address: 74:E5:43:4F:60:CE (OUI 74-E5-43)
            Class: 0x06010c
              Major class: Computer (desktop, notebook, PDA, organizers)
              Minor class: Laptop
              Networking (LAN, Ad hoc)
              Rendering (Printing, Speaker)
            Link type: ACL (0x01)
    < HCI Command: Accept Connection Request (0x01|0x0009) plen 7   [hci0] 9.993962
            Address: 74:E5:43:4F:60:CE (OUI 74-E5-43)
            Role: Slave (0x01)
    > HCI Event: Command Status (0x0f) plen 4                       [hci0] 9.996768
          Accept Connection Request (0x01|0x0009) ncmd 1
            Status: Success (0x00)
    > HCI Event: Connect Complete (0x03) plen 11                   [hci0] 10.007403
            Status: Success (0x00)
            Handle: 1
            Address: 74:E5:43:4F:60:CE (OUI 74-E5-43)
            Link type: ACL (0x01)
            Encryption: Disabled (0x00)
    > HCI Event: Page Scan Repetition Mode Change (0x20) plen 7    [hci0] 10.007430
            Address: 74:E5:43:4F:60:CE (OUI 74-E5-43)
            Page scan repetition mode: R0 (0x00)
    > HCI Event: Max Slots Change (0x1b) plen 3                    [hci0] 10.007435
            Handle: 1
            Max slots: 5
    < HCI Command: Read Remote Supported F.. (0x01|0x001b) plen 2  [hci0] 10.008225
            Handle: 1
    > HCI Event: Command Status (0x0f) plen 4                      [hci0] 10.016789
          Read Remote Supported Features (0x01|0x001b) ncmd 1
            Status: Success (0x00)
    > HCI Event: Read Remote Supported Features (0x0b) plen 11     [hci0] 10.026896
            Status: Success (0x00)
            Handle: 1
            Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
              3 slot packets
              5 slot packets
              Encryption
              Slot offset
              Timing accuracy
              Role switch
              Sniff mode
              Power control requests
              Channel quality driven data rate (CQDDR)
              SCO link
              HV2 packets
              HV3 packets
              u-law log synchronous data
              A-law log synchronous data
              CVSD synchronous data
              Paging parameter negotiation
              Power control
              Transparent synchronous data
              Flow control lag (most significant bit)
              Broadcast Encryption
              Enhanced Data Rate ACL 2 Mbps mode
              Enhanced Data Rate ACL 3 Mbps mode
              Enhanced inquiry scan
              Interlaced inquiry scan
              Interlaced page scan
              RSSI with inquiry results
              Extended SCO link (EV3 packets)
              EV4 packets
              EV5 packets
              AFH capable slave
              AFH classification slave
              LE Supported (Controller)
              3-slot Enhanced Data Rate ACL packets
              5-slot Enhanced Data Rate ACL packets
              Sniff subrating
              Pause encryption
              AFH capable master
              AFH classification master
              Enhanced Data Rate eSCO 2 Mbps mode
              Enhanced Data Rate eSCO 3 Mbps mode
              3-slot Enhanced Data Rate eSCO packets
              Extended Inquiry Response
              Simultaneous LE and BR/EDR (Controller)
              Secure Simple Pairing
              Encapsulated PDU
              Erroneous Data Reporting
              Non-flushable Packet Boundary Flag
              Link Supervision Timeout Changed Event
              Inquiry TX Power Level
              Enhanced Power Control
              Extended features
    > ACL Data RX: Handle 1 flags 0x02 dlen 10                     [hci0] 10.026925
          L2CAP: Information Request (0x0a) ident 2 len 2
            Type: Extended features supported (0x0002)
    < HCI Command: Read Remote Extended Fe.. (0x01|0x001c) plen 3  [hci0] 10.027094
            Handle: 1
            Page: 1
    > HCI Event: Command Status (0x0f) plen 4                      [hci0] 10.030506
          Read Remote Extended Features (0x01|0x001c) ncmd 1
            Status: Success (0x00)
    > HCI Event: Read Remote Extended Features (0x23) plen 13      [hci0] 10.035337
            Status: Success (0x00)
            Handle: 1
            Page: 1/1
            Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
              Secure Simple Pairing (Host Support)
    < HCI Command: Remote Name Request (0x01|0x0019) plen 10       [hci0] 10.035548
            Address: 74:E5:43:4F:60:CE (OUI 74-E5-43)
            Page scan repetition mode: R2 (0x02)
            Page scan mode: Mandatory (0x00)
            Clock offset: 0x0000
    < ACL Data TX: Handle 1 flags 0x00 dlen 10                     [hci0] 10.035587
          L2CAP: Information Request (0x0a) ident 1 len 2
            Type: Extended features supported (0x0002)
    < ACL Data TX: Handle 1 flags 0x00 dlen 16                     [hci0] 10.035661
          L2CAP: Information Response (0x0b) ident 2 len 8
            Type: Extended features supported (0x0002)
            Result: Success (0x0000)
            Features: 0x000002b8
              Enhanced Retransmission Mode
              Streaming Mode
              FCS Option
              Fixed Channels
              Unicast Connectionless Data Reception
    > HCI Event: Command Status (0x0f) plen 4                      [hci0] 10.038273
          Remote Name Request (0x01|0x0019) ncmd 1
            Status: Success (0x00)
    > HCI Event: Remote Name Req Complete (0x07) plen 255          [hci0] 10.065189
            Status: Success (0x00)
            Address: 74:E5:43:4F:60:CE (OUI 74-E5-43)
            Name: JFISHER-PC
    > HCI Event: Number of Completed Packets (0x13) plen 5         [hci0] 10.069671
            Num handles: 1
            Handle: 1
            Count: 2
    > ACL Data RX: Handle 1 flags 0x02 dlen 16                     [hci0] 10.069706
          L2CAP: Information Response (0x0b) ident 1 len 8
            Type: Extended features supported (0x0002)
            Result: Success (0x0000)
            Features: 0x000000b8
              Enhanced Retransmission Mode
              Streaming Mode
              FCS Option
              Fixed Channels
    > ACL Data RX: Handle 1 flags 0x02 dlen 10                     [hci0] 10.069759
          L2CAP: Information Request (0x0a) ident 3 len 2
            Type: Fixed channels supported (0x0003)
    < ACL Data TX: Handle 1 flags 0x00 dlen 10                     [hci0] 10.070022
          L2CAP: Information Request (0x0a) ident 2 len 2
            Type: Fixed channels supported (0x0003)
    < ACL Data TX: Handle 1 flags 0x00 dlen 20                     [hci0] 10.070048
          L2CAP: Information Response (0x0b) ident 3 len 12
            Type: Fixed channels supported (0x0003)
            Result: Success (0x0000)
            Channels: 0x0000000000000006
              L2CAP Signaling (BR/EDR)
              Connectionless reception
    > HCI Event: Number of Completed Packets (0x13) plen 5         [hci0] 10.085673
            Num handles: 1
            Handle: 1
            Count: 2
    > ACL Data RX: Handle 1 flags 0x02 dlen 20                     [hci0] 10.085697
          L2CAP: Information Response (0x0b) ident 2 len 12
            Type: Fixed channels supported (0x0003)
            Result: Success (0x0000)
            Channels: 0x000000000000005a
              L2CAP Signaling (BR/EDR)
              AMP Manager Protocol
              Attribute Protocol
              Security Manager (LE)
    > ACL Data RX: Handle 1 flags 0x02 dlen 12                     [hci0] 10.085703
          L2CAP: Connection Request (0x02) ident 4 len 4
            PSM: 1 (0x0001)
            Source CID: 104
    < ACL Data TX: Handle 1 flags 0x00 dlen 16                     [hci0] 10.085985
          L2CAP: Connection Response (0x03) ident 4 len 8
            Destination CID: 64
            Source CID: 104
            Result: Connection successful (0x0000)
            Status: No further information available (0x0000)
    < ACL Data TX: Handle 1 flags 0x00 dlen 23                     [hci0] 10.086039
          L2CAP: Configure Request (0x04) ident 3 len 15
            Destination CID: 104
            Flags: 0x0000
            Option: Retransmission and Flow Control (0x04)
              Mode: Basic (0x00)
              TX window size: 0
              Max transmit: 0
              Retransmission timeout: 0
              Monitor timeout: 0
              Maximum PDU size: 0
    > HCI Event: Number of Completed Packets (0x13) plen 5         [hci0] 10.120498
            Num handles: 1
            Handle: 1
            Count: 2
    > ACL Data RX: Handle 1 flags 0x02 dlen 16                     [hci0] 10.120520
          L2CAP: Configure Request (0x04) ident 5 len 8
            Destination CID: 64
            Flags: 0x0000
            Option: Maximum Transmission Unit (0x01)
              MTU: 1024
    > ACL Data RX: Handle 1 flags 0x02 dlen 14                     [hci0] 10.120525
          L2CAP: Configure Response (0x05) ident 3 len 6
            Source CID: 64
            Flags: 0x0000
            Result: Success (0x0000)
    < ACL Data TX: Handle 1 flags 0x00 dlen 18                     [hci0] 10.120773
          L2CAP: Configure Response (0x05) ident 5 len 10
            Source CID: 104
            Flags: 0x0000
            Result: Success (0x0000)
            Option: Maximum Transmission Unit (0x01)
              MTU: 1024
    > HCI Event: Number of Completed Packets (0x13) plen 5         [hci0] 10.150683
            Num handles: 1
            Handle: 1
            Count: 1
    > HCI Event: IO Capability Response (0x32) plen 9              [hci0] 10.189524
            Address: 74:E5:43:4F:60:CE (OUI 74-E5-43)
            IO capability: DisplayYesNo (0x01)
            OOB data: Authentication data not present (0x00)
            Authentication: General Bonding - MITM required (0x05)
    > HCI Event: IO Capability Request (0x31) plen 6               [hci0] 10.189545
            Address: 74:E5:43:4F:60:CE (OUI 74-E5-43)
    < HCI Command: IO Capability Request R.. (0x01|0x002b) plen 9  [hci0] 10.189698
            Address: 74:E5:43:4F:60:CE (OUI 74-E5-43)
            IO capability: NoInputNoOutput (0x03)
            OOB data: Authentication data not present (0x00)
            Authentication: General Bonding - MITM not required (0x04)
    > HCI Event: Command Complete (0x0e) plen 10                   [hci0] 10.192752
          IO Capability Request Reply (0x01|0x002b) ncmd 1
            Status: Success (0x00)
            Address: 74:E5:43:4F:60:CE (OUI 74-E5-43)
    > HCI Event: User Confirmation Request (0x33) plen 10          [hci0] 10.309840
            Address: 74:E5:43:4F:60:CE (OUI 74-E5-43)
            Passkey: 928175
    < HCI Command: User Confirmation Reque.. (0x01|0x002c) plen 6  [hci0] 10.309988
            Address: 74:E5:43:4F:60:CE (OUI 74-E5-43)
    > HCI Event: Command Complete (0x0e) plen 10                   [hci0] 10.312815
          User Confirmation Request Reply (0x01|0x002c) ncmd 1
            Status: Success (0x00)
            Address: 74:E5:43:4F:60:CE (OUI 74-E5-43)
    > HCI Event: Simple Pairing Complete (0x36) plen 7             [hci0] 10.376116
            Status: Success (0x00)
            Address: 74:E5:43:4F:60:CE (OUI 74-E5-43)
    > HCI Event: Link Key Notification (0x18) plen 23              [hci0] 10.393770
            Address: 74:E5:43:4F:60:CE (OUI 74-E5-43)
            Link key: c9ca4170a4bdf95af3cba6cd15033d5a
            Key type: Unauthenticated Combination key from P-192 (0x04)
    > HCI Event: Encryption Change (0x08) plen 4                   [hci0] 10.412056
            Status: Success (0x00)
            Handle: 1
            Encryption: Enabled with E0 (0x01)
    > ACL Data RX: Handle 1 flags 0x02 dlen 24                     [hci0] 10.419591
          Channel: 64 len 20 [PSM 1 mode 0] {chan 0}
          SDP: Service Search Attribute Request (0x06) tid 0 len 15
            Search pattern: [len 5]
              Sequence (6) with 3 bytes [8 extra bits] len 5
                UUID (3) with 2 bytes [0 extra bits] len 3
                  L2CAP (0x0100)
            Max record count: 1016
            Attribute list: [len 7]
              Sequence (6) with 5 bytes [8 extra bits] len 7
                Unsigned Integer (1) with 4 bytes [0 extra bits] len 5
                  0x0000ffff
            Continuation state: 0
    < ACL Data TX: Handle 1 flags 0x00 dlen 534                    [hci0] 10.431579
          Channel: 104 len 530 [PSM 1 mode 0] {chan 0}
          SDP: Service Search Attribute Response (0x07) tid 0 len 525
            Attribute bytes: 522
              Attribute list: [len 432] {position 0}
                Attribute: Service Record Handle (0x0000) [len 2]
                  0x00010000
                Attribute: Service Class ID List (0x0001) [len 2]
                  UUID (3) with 2 bytes [0 extra bits] len 3
                    Human Interface Device Service (0x1124)
                Attribute: Protocol Descriptor List (0x0004) [len 2]
                  Sequence (6) with 6 bytes [8 extra bits] len 8
                    UUID (3) with 2 bytes [0 extra bits] len 3
                      L2CAP (0x0100)
                    Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                      0x0011
                  Sequence (6) with 3 bytes [8 extra bits] len 5
                    UUID (3) with 2 bytes [0 extra bits] len 3
                      HIDP (0x0011)
                Attribute: Browse Group List (0x0005) [len 2]
                  UUID (3) with 2 bytes [0 extra bits] len 3
                    Public Browse Root (0x1002)
                Attribute: Language Base Attribute ID List (0x0006) [len 2]
                  Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                    0x656e
                  Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                    0x006a
                  Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                    0x0100
                Attribute: Bluetooth Profile Descriptor List (0x0009) [len 2]
                  Sequence (6) with 6 bytes [8 extra bits] len 8
                    UUID (3) with 2 bytes [0 extra bits] len 3
                      Human Interface Device Service (0x1124)
                    Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                      0x0100
                Attribute: Additional Protocol Descriptor List (0x000d) [len 2]
                  Sequence (6) with 13 bytes [8 extra bits] len 15
                    Sequence (6) with 6 bytes [8 extra bits] len 8
                      UUID (3) with 2 bytes [0 extra bits] len 3
                        L2CAP (0x0100)
                      Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                        0x0013
                    Sequence (6) with 3 bytes [8 extra bits] len 5
                      UUID (3) with 2 bytes [0 extra bits] len 3
                        HIDP (0x0011)
                Attribute: Unknown (0x0100) [len 2]
                  LevelUp1 [len 8]
                Attribute: Unknown (0x0101) [len 2]
                  LevelUp2 [len 8]
                Attribute: Unknown (0x0102) [len 2]
                  LevelUp3 [len 8]
                Attribute: Unknown (0x0201) [len 2]
                  0x0111
                Attribute: Unknown (0x0202) [len 2]
                  0x40
                Attribute: Unknown (0x0203) [len 2]
                  0x21
                Attribute: Unknown (0x0204) [len 2]
                  false
                Attribute: Unknown (0x0205) [len 2]
                  true
                Attribute: Unknown (0x0206) [len 2]
                  Unsigned Integer (1) with 1 byte [0 extra bits] len 2
                    0x22
                  String (4) with 224 bytes [8 extra bits] len 226
                    	AŁ) [len 224]
                Attribute: Unknown (0x0207) [len 2]
                  Sequence (6) with 6 bytes [8 extra bits] len 8
                    Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                      0x0409
                    Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                      0x0100
                Attribute: Unknown (0x0209) [len 2]
                  true
                Attribute: Unknown (0x020a) [len 2]
                  true
                Attribute: Unknown (0x020b) [len 2]
                  0x0100
                Attribute: Unknown (0x020c) [len 2]
                  0x1f40
                Attribute: Unknown (0x020d) [len 2]
                  true
                Attribute: Unknown (0x020e) [len 2]
                  true
              Attribute list: [len 82] {position 1}
                Attribute: Service Record Handle (0x0000) [len 2]
                  0x00010001
                Attribute: Service Class ID List (0x0001) [len 2]
                  UUID (3) with 2 bytes [0 extra bits] len 3
                    PnP Information (0x1200)
                Attribute: Protocol Descriptor List (0x0004) [len 2]
                  Sequence (6) with 6 bytes [8 extra bits] len 8
                    UUID (3) with 2 bytes [0 extra bits] len 3
                      L2CAP (0x0100)
                    Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                      0x0001
                  Sequence (6) with 3 bytes [8 extra bits] len 5
                    UUID (3) with 2 bytes [0 extra bits] len 3
                      SDP (0x0001)
                Attribute: Bluetooth Profile Descriptor List (0x0009) [len 2]
                  Sequence (6) with 6 bytes [8 extra bits] len 8
                    UUID (3) with 2 bytes [0 extra bits] len 3
                      PnP Information (0x1200)
                    Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                      0x0103
                Attribute: Unknown (0x0200) [len 2]
                  0x0103
                Attribute: Unknown (0x0201) [len 2]
                  0x1d6b
                Attribute: Unknown (0x0202) [len 2]
                  0x0246
                Attribute: Unknown (0x0203) [len 2]
                  0x051c
                Attribute: Unknown (0x0204) [len 2]
                  true
                Attribute: Unknown (0x0205) [len 2]
                  0x0002
            Continuation state: 0
    > HCI Event: Number of Completed Packets (0x13) plen 5         [hci0] 10.500725
            Num handles: 1
            Handle: 1
            Count: 1
    > ACL Data RX: Handle 1 flags 0x02 dlen 24                     [hci0] 10.505039
          Channel: 64 len 20 [PSM 1 mode 0] {chan 0}
          SDP: Service Search Attribute Request (0x06) tid 1 len 15
            Search pattern: [len 5]
              Sequence (6) with 3 bytes [8 extra bits] len 5
                UUID (3) with 2 bytes [0 extra bits] len 3
                  PnP Information (0x1200)
            Max record count: 1016
            Attribute list: [len 7]
              Sequence (6) with 5 bytes [8 extra bits] len 7
                Unsigned Integer (1) with 4 bytes [0 extra bits] len 5
                  0x0000ffff
            Continuation state: 0
    < ACL Data TX: Handle 1 flags 0x00 dlen 98                     [hci0] 10.507725
          Channel: 104 len 94 [PSM 1 mode 0] {chan 0}
          SDP: Service Search Attribute Response (0x07) tid 1 len 89
            Attribute bytes: 86
              Attribute list: [len 82] {position 0}
                Attribute: Service Record Handle (0x0000) [len 2]
                  0x00010001
                Attribute: Service Class ID List (0x0001) [len 2]
                  UUID (3) with 2 bytes [0 extra bits] len 3
                    PnP Information (0x1200)
                Attribute: Protocol Descriptor List (0x0004) [len 2]
                  Sequence (6) with 6 bytes [8 extra bits] len 8
                    UUID (3) with 2 bytes [0 extra bits] len 3
                      L2CAP (0x0100)
                    Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                      0x0001
                  Sequence (6) with 3 bytes [8 extra bits] len 5
                    UUID (3) with 2 bytes [0 extra bits] len 3
                      SDP (0x0001)
                Attribute: Bluetooth Profile Descriptor List (0x0009) [len 2]
                  Sequence (6) with 6 bytes [8 extra bits] len 8
                    UUID (3) with 2 bytes [0 extra bits] len 3
                      PnP Information (0x1200)
                    Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                      0x0103
                Attribute: Unknown (0x0200) [len 2]
                  0x0103
                Attribute: Unknown (0x0201) [len 2]
                  0x1d6b
                Attribute: Unknown (0x0202) [len 2]
                  0x0246
                Attribute: Unknown (0x0203) [len 2]
                  0x051c
                Attribute: Unknown (0x0204) [len 2]
                  true
                Attribute: Unknown (0x0205) [len 2]
                  0x0002
            Continuation state: 0
    > HCI Event: Number of Completed Packets (0x13) plen 5         [hci0] 10.543152
            Num handles: 1
            Handle: 1
            Count: 1
    > ACL Data RX: Handle 1 flags 0x02 dlen 24                     [hci0] 10.546256
          Channel: 64 len 20 [PSM 1 mode 0] {chan 0}
          SDP: Service Search Attribute Request (0x06) tid 2 len 15
            Search pattern: [len 5]
              Sequence (6) with 3 bytes [8 extra bits] len 5
                UUID (3) with 2 bytes [0 extra bits] len 3
                  L2CAP (0x0100)
            Max record count: 1016
            Attribute list: [len 7]
              Sequence (6) with 5 bytes [8 extra bits] len 7
                Unsigned Integer (1) with 4 bytes [0 extra bits] len 5
                  0x0000ffff
            Continuation state: 0
    < ACL Data TX: Handle 1 flags 0x00 dlen 534                    [hci0] 10.549939
          Channel: 104 len 530 [PSM 1 mode 0] {chan 0}
          SDP: Service Search Attribute Response (0x07) tid 2 len 525
            Attribute bytes: 522
              Attribute list: [len 432] {position 0}
                Attribute: Service Record Handle (0x0000) [len 2]
                  0x00010000
                Attribute: Service Class ID List (0x0001) [len 2]
                  UUID (3) with 2 bytes [0 extra bits] len 3
                    Human Interface Device Service (0x1124)
                Attribute: Protocol Descriptor List (0x0004) [len 2]
                  Sequence (6) with 6 bytes [8 extra bits] len 8
                    UUID (3) with 2 bytes [0 extra bits] len 3
                      L2CAP (0x0100)
                    Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                      0x0011
                  Sequence (6) with 3 bytes [8 extra bits] len 5
                    UUID (3) with 2 bytes [0 extra bits] len 3
                      HIDP (0x0011)
                Attribute: Browse Group List (0x0005) [len 2]
                  UUID (3) with 2 bytes [0 extra bits] len 3
                    Public Browse Root (0x1002)
                Attribute: Language Base Attribute ID List (0x0006) [len 2]
                  Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                    0x656e
                  Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                    0x006a
                  Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                    0x0100
                Attribute: Bluetooth Profile Descriptor List (0x0009) [len 2]
                  Sequence (6) with 6 bytes [8 extra bits] len 8
                    UUID (3) with 2 bytes [0 extra bits] len 3
                      Human Interface Device Service (0x1124)
                    Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                      0x0100
                Attribute: Additional Protocol Descriptor List (0x000d) [len 2]
                  Sequence (6) with 13 bytes [8 extra bits] len 15
                    Sequence (6) with 6 bytes [8 extra bits] len 8
                      UUID (3) with 2 bytes [0 extra bits] len 3
                        L2CAP (0x0100)
                      Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                        0x0013
                    Sequence (6) with 3 bytes [8 extra bits] len 5
                      UUID (3) with 2 bytes [0 extra bits] len 3
                        HIDP (0x0011)
                Attribute: Unknown (0x0100) [len 2]
                  LevelUp1 [len 8]
                Attribute: Unknown (0x0101) [len 2]
                  LevelUp2 [len 8]
                Attribute: Unknown (0x0102) [len 2]
                  LevelUp3 [len 8]
                Attribute: Unknown (0x0201) [len 2]
                  0x0111
                Attribute: Unknown (0x0202) [len 2]
                  0x40
                Attribute: Unknown (0x0203) [len 2]
                  0x21
                Attribute: Unknown (0x0204) [len 2]
                  false
                Attribute: Unknown (0x0205) [len 2]
                  true
                Attribute: Unknown (0x0206) [len 2]
                  Unsigned Integer (1) with 1 byte [0 extra bits] len 2
                    0x22
                  String (4) with 224 bytes [8 extra bits] len 226
                    	AŁ) [len 224]
                Attribute: Unknown (0x0207) [len 2]
                  Sequence (6) with 6 bytes [8 extra bits] len 8
                    Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                      0x0409
                    Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                      0x0100
                Attribute: Unknown (0x0209) [len 2]
                  true
                Attribute: Unknown (0x020a) [len 2]
                  true
                Attribute: Unknown (0x020b) [len 2]
                  0x0100
                Attribute: Unknown (0x020c) [len 2]
                  0x1f40
                Attribute: Unknown (0x020d) [len 2]
                  true
                Attribute: Unknown (0x020e) [len 2]
                  true
              Attribute list: [len 82] {position 1}
                Attribute: Service Record Handle (0x0000) [len 2]
                  0x00010001
                Attribute: Service Class ID List (0x0001) [len 2]
                  UUID (3) with 2 bytes [0 extra bits] len 3
                    PnP Information (0x1200)
                Attribute: Protocol Descriptor List (0x0004) [len 2]
                  Sequence (6) with 6 bytes [8 extra bits] len 8
                    UUID (3) with 2 bytes [0 extra bits] len 3
                      L2CAP (0x0100)
                    Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                      0x0001
                  Sequence (6) with 3 bytes [8 extra bits] len 5
                    UUID (3) with 2 bytes [0 extra bits] len 3
                      SDP (0x0001)
                Attribute: Bluetooth Profile Descriptor List (0x0009) [len 2]
                  Sequence (6) with 6 bytes [8 extra bits] len 8
                    UUID (3) with 2 bytes [0 extra bits] len 3
                      PnP Information (0x1200)
                    Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                      0x0103
                Attribute: Unknown (0x0200) [len 2]
                  0x0103
                Attribute: Unknown (0x0201) [len 2]
                  0x1d6b
                Attribute: Unknown (0x0202) [len 2]
                  0x0246
                Attribute: Unknown (0x0203) [len 2]
                  0x051c
                Attribute: Unknown (0x0204) [len 2]
                  true
                Attribute: Unknown (0x0205) [len 2]
                  0x0002
            Continuation state: 0
    > HCI Event: Number of Completed Packets (0x13) plen 5         [hci0] 10.604406
            Num handles: 1
            Handle: 1
            Count: 1
    > ACL Data RX: Handle 1 flags 0x02 dlen 24                     [hci0] 10.608782
          Channel: 64 len 20 [PSM 1 mode 0] {chan 0}
          SDP: Service Search Attribute Request (0x06) tid 3 len 15
            Search pattern: [len 5]
              Sequence (6) with 3 bytes [8 extra bits] len 5
                UUID (3) with 2 bytes [0 extra bits] len 3
                  PnP Information (0x1200)
            Max record count: 1016
            Attribute list: [len 7]
              Sequence (6) with 5 bytes [8 extra bits] len 7
                Unsigned Integer (1) with 4 bytes [0 extra bits] len 5
                  0x0000ffff
            Continuation state: 0
    < ACL Data TX: Handle 1 flags 0x00 dlen 98                     [hci0] 10.611549
          Channel: 104 len 94 [PSM 1 mode 0] {chan 0}
          SDP: Service Search Attribute Response (0x07) tid 3 len 89
            Attribute bytes: 86
              Attribute list: [len 82] {position 0}
                Attribute: Service Record Handle (0x0000) [len 2]
                  0x00010001
                Attribute: Service Class ID List (0x0001) [len 2]
                  UUID (3) with 2 bytes [0 extra bits] len 3
                    PnP Information (0x1200)
                Attribute: Protocol Descriptor List (0x0004) [len 2]
                  Sequence (6) with 6 bytes [8 extra bits] len 8
                    UUID (3) with 2 bytes [0 extra bits] len 3
                      L2CAP (0x0100)
                    Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                      0x0001
                  Sequence (6) with 3 bytes [8 extra bits] len 5
                    UUID (3) with 2 bytes [0 extra bits] len 3
                      SDP (0x0001)
                Attribute: Bluetooth Profile Descriptor List (0x0009) [len 2]
                  Sequence (6) with 6 bytes [8 extra bits] len 8
                    UUID (3) with 2 bytes [0 extra bits] len 3
                      PnP Information (0x1200)
                    Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                      0x0103
                Attribute: Unknown (0x0200) [len 2]
                  0x0103
                Attribute: Unknown (0x0201) [len 2]
                  0x1d6b
                Attribute: Unknown (0x0202) [len 2]
                  0x0246
                Attribute: Unknown (0x0203) [len 2]
                  0x051c
                Attribute: Unknown (0x0204) [len 2]
                  true
                Attribute: Unknown (0x0205) [len 2]
                  0x0002
            Continuation state: 0
    > HCI Event: Number of Completed Packets (0x13) plen 5         [hci0] 10.640672
            Num handles: 1
            Handle: 1
            Count: 1
    @ Device Connected: 74:E5:43:4F:60:CE (0) flags 0x0000
            0b 09 4a 46 49 53 48 45 52 2d 50 43 04 0d 0c 01  ..JFISHER-PC....
            06                                               .               
    @ New Link Key: 74:E5:43:4F:60:CE (0)
    @ Device Added: 74:E5:43:4F:60:CE (0) 1
    > ACL Data RX: Handle 1 flags 0x02 dlen 12                     [hci0] 13.655265
          L2CAP: Disconnection Request (0x06) ident 6 len 4
            Destination CID: 64
            Source CID: 104
    < ACL Data TX: Handle 1 flags 0x00 dlen 12                     [hci0] 13.655454
          L2CAP: Disconnection Response (0x07) ident 6 len 4
            Destination CID: 64
            Source CID: 104
    > HCI Event: Number of Completed Packets (0x13) plen 5         [hci0] 13.686979
            Num handles: 1
            Handle: 1
            Count: 1
    > HCI Event: Disconnect Complete (0x05) plen 4                 [hci0] 16.781078
            Status: Success (0x00)
            Handle: 1
            Reason: Remote User Terminated Connection (0x13)
    @ Device Disconnected: 74:E5:43:4F:60:CE (0) reason 3
    > HCI Event: Connect Request (0x04) plen 10                    [hci0] 25.410225
            Address: 74:E5:43:4F:60:CE (OUI 74-E5-43)
            Class: 0x06010c
              Major class: Computer (desktop, notebook, PDA, organizers)
              Minor class: Laptop
              Networking (LAN, Ad hoc)
              Rendering (Printing, Speaker)
            Link type: ACL (0x01)
    < HCI Command: Accept Connection Request (0x01|0x0009) plen 7  [hci0] 25.410373
            Address: 74:E5:43:4F:60:CE (OUI 74-E5-43)
            Role: Slave (0x01)
    > HCI Event: Command Status (0x0f) plen 4                      [hci0] 25.414420
          Accept Connection Request (0x01|0x0009) ncmd 1
            Status: Success (0x00)
    > HCI Event: Connect Complete (0x03) plen 11                   [hci0] 25.424575
            Status: Success (0x00)
            Handle: 1
            Address: 74:E5:43:4F:60:CE (OUI 74-E5-43)
            Link type: ACL (0x01)
            Encryption: Disabled (0x00)
    > HCI Event: Page Scan Repetition Mode Change (0x20) plen 7    [hci0] 25.424622
            Address: 74:E5:43:4F:60:CE (OUI 74-E5-43)
            Page scan repetition mode: R0 (0x00)
    > HCI Event: Max Slots Change (0x1b) plen 3                    [hci0] 25.424627
            Handle: 1
            Max slots: 5
    < HCI Command: Read Remote Supported F.. (0x01|0x001b) plen 2  [hci0] 25.425421
            Handle: 1
    > HCI Event: Command Status (0x0f) plen 4                      [hci0] 25.429862
          Read Remote Supported Features (0x01|0x001b) ncmd 1
            Status: Success (0x00)
    > HCI Event: Read Remote Supported Features (0x0b) plen 11     [hci0] 25.441150
            Status: Success (0x00)
            Handle: 1
            Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
              3 slot packets
              5 slot packets
              Encryption
              Slot offset
              Timing accuracy
              Role switch
              Sniff mode
              Power control requests
              Channel quality driven data rate (CQDDR)
              SCO link
              HV2 packets
              HV3 packets
              u-law log synchronous data
              A-law log synchronous data
              CVSD synchronous data
              Paging parameter negotiation
              Power control
              Transparent synchronous data
              Flow control lag (most significant bit)
              Broadcast Encryption
              Enhanced Data Rate ACL 2 Mbps mode
              Enhanced Data Rate ACL 3 Mbps mode
              Enhanced inquiry scan
              Interlaced inquiry scan
              Interlaced page scan
              RSSI with inquiry results
              Extended SCO link (EV3 packets)
              EV4 packets
              EV5 packets
              AFH capable slave
              AFH classification slave
              LE Supported (Controller)
              3-slot Enhanced Data Rate ACL packets
              5-slot Enhanced Data Rate ACL packets
              Sniff subrating
              Pause encryption
              AFH capable master
              AFH classification master
              Enhanced Data Rate eSCO 2 Mbps mode
              Enhanced Data Rate eSCO 3 Mbps mode
              3-slot Enhanced Data Rate eSCO packets
              Extended Inquiry Response
              Simultaneous LE and BR/EDR (Controller)
              Secure Simple Pairing
              Encapsulated PDU
              Erroneous Data Reporting
              Non-flushable Packet Boundary Flag
              Link Supervision Timeout Changed Event
              Inquiry TX Power Level
              Enhanced Power Control
              Extended features
    < HCI Command: Read Remote Extended Fe.. (0x01|0x001c) plen 3  [hci0] 25.441316
            Handle: 1
            Page: 1
    > ACL Data RX: Handle 1 flags 0x02 dlen 10                     [hci0] 25.444796
          L2CAP: Information Request (0x0a) ident 2 len 2
            Type: Extended features supported (0x0002)
    > HCI Event: Command Status (0x0f) plen 4                      [hci0] 25.446801
          Read Remote Extended Features (0x01|0x001c) ncmd 1
            Status: Success (0x00)
    > HCI Event: Read Remote Extended Features (0x23) plen 13      [hci0] 25.453029
            Status: Success (0x00)
            Handle: 1
            Page: 1/1
            Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
              Secure Simple Pairing (Host Support)
    < HCI Command: Remote Name Request (0x01|0x0019) plen 10       [hci0] 25.453230
            Address: 74:E5:43:4F:60:CE (OUI 74-E5-43)
            Page scan repetition mode: R2 (0x02)
            Page scan mode: Mandatory (0x00)
            Clock offset: 0x0000
    < ACL Data TX: Handle 1 flags 0x00 dlen 10                     [hci0] 25.453271
          L2CAP: Information Request (0x0a) ident 1 len 2
            Type: Extended features supported (0x0002)
    < ACL Data TX: Handle 1 flags 0x00 dlen 16                     [hci0] 25.453341
          L2CAP: Information Response (0x0b) ident 2 len 8
            Type: Extended features supported (0x0002)
            Result: Success (0x0000)
            Features: 0x000002b8
              Enhanced Retransmission Mode
              Streaming Mode
              FCS Option
              Fixed Channels
              Unicast Connectionless Data Reception
    > HCI Event: Command Status (0x0f) plen 4                      [hci0] 25.455913
          Remote Name Request (0x01|0x0019) ncmd 1
            Status: Success (0x00)
    > HCI Event: Remote Name Req Complete (0x07) plen 255          [hci0] 25.485550
            Status: Success (0x00)
            Address: 74:E5:43:4F:60:CE (OUI 74-E5-43)
            Name: JFISHER-PC
    > HCI Event: Number of Completed Packets (0x13) plen 5         [hci0] 25.485571
            Num handles: 1
            Handle: 1
            Count: 2
    > ACL Data RX: Handle 1 flags 0x02 dlen 16                     [hci0] 25.485576
          L2CAP: Information Response (0x0b) ident 1 len 8
            Type: Extended features supported (0x0002)
            Result: Success (0x0000)
            Features: 0x000000b8
              Enhanced Retransmission Mode
              Streaming Mode
              FCS Option
              Fixed Channels
    > ACL Data RX: Handle 1 flags 0x02 dlen 10                     [hci0] 25.485599
          L2CAP: Information Request (0x0a) ident 3 len 2
            Type: Fixed channels supported (0x0003)
    < ACL Data TX: Handle 1 flags 0x00 dlen 10                     [hci0] 25.485925
          L2CAP: Information Request (0x0a) ident 2 len 2
            Type: Fixed channels supported (0x0003)
    < ACL Data TX: Handle 1 flags 0x00 dlen 20                     [hci0] 25.485950
          L2CAP: Information Response (0x0b) ident 3 len 12
            Type: Fixed channels supported (0x0003)
            Result: Success (0x0000)
            Channels: 0x0000000000000006
              L2CAP Signaling (BR/EDR)
              Connectionless reception
    > HCI Event: Number of Completed Packets (0x13) plen 5         [hci0] 25.502130
            Num handles: 1
            Handle: 1
            Count: 2
    > ACL Data RX: Handle 1 flags 0x02 dlen 20                     [hci0] 25.502155
          L2CAP: Information Response (0x0b) ident 2 len 12
            Type: Fixed channels supported (0x0003)
            Result: Success (0x0000)
            Channels: 0x000000000000005a
              L2CAP Signaling (BR/EDR)
              AMP Manager Protocol
              Attribute Protocol
              Security Manager (LE)
    > ACL Data RX: Handle 1 flags 0x02 dlen 12                     [hci0] 25.502161
          L2CAP: Connection Request (0x02) ident 4 len 4
            PSM: 1 (0x0001)
            Source CID: 105
    < ACL Data TX: Handle 1 flags 0x00 dlen 16                     [hci0] 25.502447
          L2CAP: Connection Response (0x03) ident 4 len 8
            Destination CID: 64
            Source CID: 105
            Result: Connection successful (0x0000)
            Status: No further information available (0x0000)
    < ACL Data TX: Handle 1 flags 0x00 dlen 23                     [hci0] 25.502502
          L2CAP: Configure Request (0x04) ident 3 len 15
            Destination CID: 105
            Flags: 0x0000
            Option: Retransmission and Flow Control (0x04)
              Mode: Basic (0x00)
              TX window size: 0
              Max transmit: 0
              Retransmission timeout: 0
              Monitor timeout: 0
              Maximum PDU size: 0
    > HCI Event: Number of Completed Packets (0x13) plen 5         [hci0] 25.514372
            Num handles: 1
            Handle: 1
            Count: 2
    > ACL Data RX: Handle 1 flags 0x02 dlen 16                     [hci0] 25.514418
          L2CAP: Configure Request (0x04) ident 5 len 8
            Destination CID: 64
            Flags: 0x0000
            Option: Maximum Transmission Unit (0x01)
              MTU: 1024
    > ACL Data RX: Handle 1 flags 0x02 dlen 14                     [hci0] 25.514423
          L2CAP: Configure Response (0x05) ident 3 len 6
            Source CID: 64
            Flags: 0x0000
            Result: Success (0x0000)
    < ACL Data TX: Handle 1 flags 0x00 dlen 18                     [hci0] 25.514664
          L2CAP: Configure Response (0x05) ident 5 len 10
            Source CID: 105
            Flags: 0x0000
            Result: Success (0x0000)
            Option: Maximum Transmission Unit (0x01)
              MTU: 1024
    > HCI Event: Number of Completed Packets (0x13) plen 5         [hci0] 25.520853
            Num handles: 1
            Handle: 1
            Count: 1
    > ACL Data RX: Handle 1 flags 0x02 dlen 38                     [hci0] 25.525199
          Channel: 64 len 34 [PSM 1 mode 0] {chan 0}
          SDP: Service Search Attribute Request (0x06) tid 0 len 29
            Search pattern: [len 19]
              Sequence (6) with 17 bytes [8 extra bits] len 19
                UUID (3) with 16 bytes [0 extra bits] len 17
                  00005ae1-da23-4102-a3bb-c171ba096f21
            Max record count: 1016
            Attribute list: [len 7]
              Sequence (6) with 5 bytes [8 extra bits] len 7
                Unsigned Integer (1) with 4 bytes [0 extra bits] len 5
                  0x0000ffff
            Continuation state: 0
    < ACL Data TX: Handle 1 flags 0x00 dlen 14                     [hci0] 25.527301
          Channel: 105 len 10 [PSM 1 mode 0] {chan 0}
          SDP: Service Search Attribute Response (0x07) tid 0 len 5
            Attribute bytes: 2
            Continuation state: 0
    > HCI Event: Number of Completed Packets (0x13) plen 5         [hci0] 25.590995
            Num handles: 1
            Handle: 1
            Count: 1
    > ACL Data RX: Handle 1 flags 0x02 dlen 38                     [hci0] 25.593431
          Channel: 64 len 34 [PSM 1 mode 0] {chan 0}
          SDP: Service Search Attribute Request (0x06) tid 1 len 29
            Search pattern: [len 19]
              Sequence (6) with 17 bytes [8 extra bits] len 19
                UUID (3) with 16 bytes [0 extra bits] len 17
                  00005ae1-da23-4102-a3bb-c171ba096f21
            Max record count: 1016
            Attribute list: [len 7]
              Sequence (6) with 5 bytes [8 extra bits] len 7
                Unsigned Integer (1) with 4 bytes [0 extra bits] len 5
                  0x0000ffff
            Continuation state: 0
    < ACL Data TX: Handle 1 flags 0x00 dlen 14                     [hci0] 25.595559
          Channel: 105 len 10 [PSM 1 mode 0] {chan 0}
          SDP: Service Search Attribute Response (0x07) tid 1 len 5
            Attribute bytes: 2
            Continuation state: 0
    > HCI Event: Number of Completed Packets (0x13) plen 5         [hci0] 25.622230
            Num handles: 1
            Handle: 1
            Count: 1
    > ACL Data RX: Handle 1 flags 0x02 dlen 12                     [hci0] 25.624171
          L2CAP: Disconnection Request (0x06) ident 6 len 4
            Destination CID: 64
            Source CID: 105
    < ACL Data TX: Handle 1 flags 0x00 dlen 12                     [hci0] 25.625202
          L2CAP: Disconnection Response (0x07) ident 6 len 4
            Destination CID: 64
            Source CID: 105
    > HCI Event: Number of Completed Packets (0x13) plen 5         [hci0] 25.630874
            Num handles: 1
            Handle: 1
            Count: 1
    @ Device Connected: 74:E5:43:4F:60:CE (0) flags 0x0000
            0b 09 4a 46 49 53 48 45 52 2d 50 43 04 0d 0c 01  ..JFISHER-PC....
            06                                               .               
    > HCI Event: Disconnect Complete (0x05) plen 4                 [hci0] 28.732242
            Status: Success (0x00)
            Handle: 1
            Reason: Remote User Terminated Connection (0x13)
    @ Device Disconnected: 74:E5:43:4F:60:CE (0) reason 3
    Sequence
            Attribute 0x0000 - ServiceRecordHandle
                    UINT32 0x00010000
            Attribute 0x0001 - ServiceClassIDList
                    Sequence
                            UUID16 0x1124 - HumanInterfaceDeviceService (HID)
            Attribute 0x0004 - ProtocolDescriptorList
                    Sequence
                            Sequence
                                    UUID16 0x0100 - L2CAP
                                    UINT16 0x0011
                            Sequence
                                    UUID16 0x0011 - HIDP
            Attribute 0x0005 - BrowseGroupList
                    Sequence
                            UUID16 0x1002 - PublicBrowseGroup
            Attribute 0x0006 - LanguageBaseAttributeIDList
                    Sequence
                            UINT16 0x656e
                            UINT16 0x006a
                            UINT16 0x0100
            Attribute 0x0009 - BluetoothProfileDescriptorList
                    Sequence
                            Sequence
                                    UUID16 0x1124 - HumanInterfaceDeviceService (HID)
                                    UINT16 0x0100
            Attribute 0x000d - AdditionalProtocolDescriptorLists
                    Sequence
                            Sequence
                                    Sequence
                                            UUID16 0x0100 - L2CAP
                                            UINT16 0x0013
                                    Sequence
                                            UUID16 0x0011 - HIDP
            Attribute 0x0100
                    String LevelUp1
            Attribute 0x0101
                    String LevelUp2
            Attribute 0x0102
                    String LevelUp3
            Attribute 0x0201
                    UINT16 0x0111
            Attribute 0x0202
                    UINT8 0x40
            Attribute 0x0203
                    UINT8 0x21
            Attribute 0x0204
                    Bool False
            Attribute 0x0205
                    Bool True
            Attribute 0x0206
                    Sequence
                            UINT8 0x22
                            Data 05 01 09 06 a1 01 85 01 05 07 19 e0 29 e7 15 00 25 01 75 01 95 08 81 02 75 08 95 01 81 01 75 01 95 05 05 08 19 01 29 05 91 02 75 03 95 01 91 01 75 08 95 06 15 00 26 ff 00 05 07 19 00 2a ff 00 81 00 c0 05 0c 09 01 a1 01 85 47 05 01 09 06 a1 02 05 06 09 20 15 00 26 ff 00 75 08 95 01 81 02 c0 c0 05 0c 09 01 a1 01 85 11 15 00 25 01 75 01 95 03 81 01 75 01 95 01 05 0c 09 b8 81 02 06 ff 00 09 03 81 02 75 01 95 03 81 01 05 0c 85 12 15 00 25 01 75 01 95 01 09 cd 81 02 09 b3 81 02 09 b4 81 02 09 b5 81 02 09 b6 81 02 81 01 81 01 81 01 85 13 15 00 25 01 75 01 95 01 06 01 ff 09 0a 81 02 06 01 ff 09 0c 81 22 75 01 95 06 81 01 85 09 09 0b 75 08 95 01 b1 02 75 08 95 02 b1 01 c0 00
            Attribute 0x0207
                    Sequence
                            Sequence
                                    UINT16 0x0409
                                    UINT16 0x0100
            Attribute 0x0209
                    Bool True
            Attribute 0x020a
                    Bool True
            Attribute 0x020b
                    UINT16 0x0100
            Attribute 0x020c
                    UINT16 0x1f40
            Attribute 0x020d
                    Bool True
            Attribute 0x020e
                    Bool True
    Sequence
            Attribute 0x0000 - ServiceRecordHandle
                    UINT32 0x00010001
            Attribute 0x0001 - ServiceClassIDList
                    Sequence
                            UUID16 0x1200 - PnPInformation
            Attribute 0x0004 - ProtocolDescriptorList
                    Sequence
                            Sequence
                                    UUID16 0x0100 - L2CAP
                                    UINT16 0x0001
                            Sequence
                                    UUID16 0x0001 - SDP
            Attribute 0x0009 - BluetoothProfileDescriptorList
                    Sequence
                            Sequence
                                    UUID16 0x1200 - PnPInformation
                                    UINT16 0x0103
            Attribute 0x0200
                    UINT16 0x0103
            Attribute 0x0201
                    UINT16 0x1d6b
            Attribute 0x0202
                    UINT16 0x0246
            Attribute 0x0203
                    UINT16 0x051c
            Attribute 0x0204
                    Bool True
            Attribute 0x0205
                    UINT16 0x0002

  • HI,

    Please confirm if the problematic desktop can connect to other BT HID compliant mouse?

    Regards,
    Gigi Joseph.
  • It does, yes (to other keyboards, which is what I am trying to emulate).  I have an Apple Wireless Keyboard that I am using as my reference for the SDP records and such.

  • I see... It does not make much sense, but can you try with a different COD value (/etc/bluetooth/main.conf)?

    Regards,
    Gigi Joseph.
  • Hello,

    I've tried with 0x2540 and 0x0540 -- are there others I should try?

    Jonathan

  • Hi,

    Could you please check this simultaneously on the BlueZ forum, as it does not look to me like CC256x issue. As HID connection is working fine with the stack (bluetopia) we provided with CC256x.