linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Unable to establish ble connection between Raspberrypi4B and Laptop
@ 2021-05-12 13:44 nagesh shamnur
  2021-05-12 18:01 ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 3+ messages in thread
From: nagesh shamnur @ 2021-05-12 13:44 UTC (permalink / raw)
  To: linux-bluetooth

[-- Attachment #1: Type: text/plain, Size: 726 bytes --]

Hi All,
 I am unable to establish a ble connection between my Raspberrypi4B
and Laptop. Configuration is as below:

Laptop: Ubuntu-20.04.2 LTS, bluez version: 5.53 Raspberrypi4B:
Ubuntu-21.04 bluez version: 5.56

Bluetoothctl logs @Raspberrypi4B: as attached

btmon logs @Raspberrypi4B: as attached

I see in the btmon output, always connection is terminated but no
reason is present which specifies the cause for it.

Initially I was using Ubuntu 20.04.2 LTS on my Raspberrypi4b which I
later upgraded to 21.04 but still no luck. Couple of posts pointed to
bug in bluez which was pretty old and i am assuming would have already
fixed in the bluez 5.56 version.

Can someone help me in resolving this issue?

Regards,
Nagesh.

[-- Attachment #2: btmon_logs.txt --]
[-- Type: text/plain, Size: 30600 bytes --]

nagesh@nagesh-desktop:~$ sudo btmon
[sudo] password for nagesh: 
Bluetooth monitor ver 5.56
= Note: Linux version 5.11.0-1007-raspi (aarch64)                                                                                                                                                 0.761812
= Note: Bluetooth subsystem version 2.22                                                                                                                                                          0.761820
= New Index: DC:A6:32:F2:CB:46 (Primary,UART,hci0)                                                                                                                                         [hci0] 0.761822
= Open Index: DC:A6:32:F2:CB:46                                                                                                                                                            [hci0] 0.761824
= Index Info: DC:A6:32:F2:CB:46 (Cypress Semiconductor)                                                                                                                                    [hci0] 0.761825
@ MGMT Open: bluetoothd (privileged) version 1.19                                                                                                                                        {0x0001} 0.761828
@ MGMT Command: Set Bondable (0x0009) plen 1                                                                                                                                     {0x0001} [hci0] 12.464157
        Bondable: Enabled (0x01)
@ MGMT Event: Command Complete (0x0001) plen 7                                                                                                                                   {0x0001} [hci0] 12.464192
      Set Bondable (0x0009) plen 4
        Status: Success (0x00)
        Current settings: 0x00000ad3
          Powered
          Connectable
          Bondable
          Secure Simple Pairing
          BR/EDR
          Low Energy
          Secure Connections
@ MGMT Command: Set IO Capability (0x0018) plen 1                                                                                                                                {0x0001} [hci0] 12.464369
        Capability: KeyboardDisplay (0x04)
@ MGMT Event: Command Complete (0x0001) plen 3                                                                                                                                   {0x0001} [hci0] 12.464374
      Set IO Capability (0x0018) plen 0
        Status: Success (0x00)
< HCI Command: Create Connection (0x01|0x0005) plen 13                                                                                                                                 #1 [hci0] 48.020456
        Address: 6C:6A:77:48:40:08 (Intel Corporate)
        Packet type: 0xcc18
          DM1 may be used
          DH1 may be used
          DM3 may be used
          DH3 may be used
          DM5 may be used
          DH5 may be used
        Page scan repetition mode: R2 (0x02)
        Page scan mode: Mandatory (0x00)
        Clock offset: 0x0000
        Role switch: Allow slave (0x01)
> HCI Event: Command Status (0x0f) plen 4                                                                                                                                              #2 [hci0] 48.020893
      Create Connection (0x01|0x0005) ncmd 1
        Status: Success (0x00)
> HCI Event: Role Change (0x12) plen 8                                                                                                                                                 #3 [hci0] 48.596527
        Status: Success (0x00)
        Address: 6C:6A:77:48:40:08 (Intel Corporate)
        Role: Slave (0x01)
> HCI Event: Connect Complete (0x03) plen 11                                                                                                                                           #4 [hci0] 48.613565
        Status: Success (0x00)
        Handle: 12
        Address: 6C:6A:77:48:40:08 (Intel Corporate)
        Link type: ACL (0x01)
        Encryption: Disabled (0x00)
< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2                                                                                                                     #5 [hci0] 48.613891
        Handle: 12
> HCI Event: Command Status (0x0f) plen 4                                                                                                                                              #6 [hci0] 48.614882
      Read Remote Supported Features (0x01|0x001b) ncmd 1
        Status: Success (0x00)
> HCI Event: Read Remote Supported Features (0x0b) plen 11                                                                                                                             #7 [hci0] 48.614896
        Status: Success (0x00)
        Handle: 12
        Features: 0xbf 0xfe 0x0f 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
          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 Features (0x01|0x001c) plen 3                                                                                                                      #8 [hci0] 48.615009
        Handle: 12
        Page: 1
> HCI Event: Command Status (0x0f) plen 4                                                                                                                                              #9 [hci0] 48.615507
      Read Remote Extended Features (0x01|0x001c) ncmd 1
        Status: Success (0x00)
> HCI Event: Read Remote Extended Features (0x23) plen 13                                                                                                                             #10 [hci0] 48.615614
        Status: Success (0x00)
        Handle: 12
        Page: 1/2
        Features: 0x0b 0x00 0x00 0x00 0x00 0x00 0x00 0x00
          Secure Simple Pairing (Host Support)
          LE Supported (Host)
          Secure Connections (Host Support)
< HCI Command: Remote Name Request (0x01|0x0019) plen 10                                                                                                                              #11 [hci0] 48.615727
        Address: 6C:6A:77:48:40:08 (Intel Corporate)
        Page scan repetition mode: R2 (0x02)
        Page scan mode: Mandatory (0x00)
        Clock offset: 0x0000
< ACL Data TX: Handle 12 flags 0x00 dlen 10                                                                                                                                           #12 [hci0] 48.615789
      L2CAP: Information Request (0x0a) ident 1 len 2
        Type: Extended features supported (0x0002)
> HCI Event: Command Status (0x0f) plen 4                                                                                                                                             #13 [hci0] 48.616390
      Remote Name Request (0x01|0x0019) ncmd 1
        Status: Success (0x00)
> HCI Event: Max Slots Change (0x1b) plen 3                                                                                                                                           #14 [hci0] 48.619703
        Handle: 12
        Max slots: 5
> ACL Data RX: Handle 12 flags 0x02 dlen 10                                                                                                                                           #15 [hci0] 48.632125
      L2CAP: Information Request (0x0a) ident 1 len 2
        Type: Extended features supported (0x0002)
< ACL Data TX: Handle 12 flags 0x00 dlen 16                                                                                                                                           #16 [hci0] 48.634281
      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
> HCI Event: Remote Name Req Complete (0x07) plen 255                                                                                                                                 #17 [hci0] 48.634444
        Status: Success (0x00)
        Address: 6C:6A:77:48:40:08 (Intel Corporate)
        Name: root1-Nitro-AN515-55
@ MGMT Event: Device Connected (0x000b) plen 40                                                                                                                                  {0x0001} [hci0] 48.634467
        BR/EDR Address: 6C:6A:77:48:40:08 (Intel Corporate)
        Flags: 0x00000000
        Data length: 27
        Name (complete): root1-Nitro-AN515-55
        Class: 0x00010c
          Major class: Computer (desktop, notebook, PDA, organizers)
          Minor class: Laptop
> ACL Data RX: Handle 12 flags 0x02 dlen 16                                                                                                                                           #18 [hci0] 48.634747
      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 12 flags 0x00 dlen 10                                                                                                                                           #19 [hci0] 48.635339
      L2CAP: Information Request (0x0a) ident 2 len 2
        Type: Fixed channels supported (0x0003)
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                                                #20 [hci0] 48.637216
        Num handles: 1
        Handle: 12
        Count: 2
> ACL Data RX: Handle 12 flags 0x02 dlen 10                                                                                                                                           #21 [hci0] 48.639633
      L2CAP: Information Request (0x0a) ident 2 len 2
        Type: Fixed channels supported (0x0003)
< ACL Data TX: Handle 12 flags 0x00 dlen 20                                                                                                                                           #22 [hci0] 48.639941
      L2CAP: Information Response (0x0b) ident 2 len 12
        Type: Fixed channels supported (0x0003)
        Result: Success (0x0000)
        Channels: 0x0000000000000086
          L2CAP Signaling (BR/EDR)
          Connectionless reception
          Security Manager (BR/EDR)
> ACL Data RX: Handle 12 flags 0x02 dlen 20                                                                                                                                           #23 [hci0] 48.640917
      L2CAP: Information Response (0x0b) ident 2 len 12
        Type: Fixed channels supported (0x0003)
        Result: Success (0x0000)
        Channels: 0x0000000000000086
          L2CAP Signaling (BR/EDR)
          Connectionless reception
          Security Manager (BR/EDR)
< ACL Data TX: Handle 12 flags 0x00 dlen 12                                                                                                                                           #24 [hci0] 48.642861
      L2CAP: Connection Request (0x02) ident 3 len 4
        PSM: 1 (0x0001)
        Source CID: 64
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                                                #25 [hci0] 48.643691
        Num handles: 1
        Handle: 12
        Count: 2
> ACL Data RX: Handle 12 flags 0x02 dlen 16                                                                                                                                           #26 [hci0] 48.648432
      L2CAP: Connection Response (0x03) ident 3 len 8
        Destination CID: 64
        Source CID: 64
        Result: Connection successful (0x0000)
        Status: No further information available (0x0000)
< ACL Data TX: Handle 12 flags 0x00 dlen 23                                                                                                                                           #27 [hci0] 48.648651
      L2CAP: Configure Request (0x04) ident 4 len 15
        Destination CID: 64
        Flags: 0x0000
        Option: Retransmission and Flow Control (0x04) [mandatory]
          Mode: Basic (0x00)
          TX window size: 0
          Max transmit: 0
          Retransmission timeout: 0
          Monitor timeout: 0
          Maximum PDU size: 0
> ACL Data RX: Handle 12 flags 0x02 dlen 23                                                                                                                                           #28 [hci0] 48.649695
      L2CAP: Configure Request (0x04) ident 3 len 15
        Destination CID: 64
        Flags: 0x0000
        Option: Retransmission and Flow Control (0x04) [mandatory]
          Mode: Basic (0x00)
          TX window size: 0
          Max transmit: 0
          Retransmission timeout: 0
          Monitor timeout: 0
          Maximum PDU size: 0
< ACL Data TX: Handle 12 flags 0x00 dlen 18                                                                                                                                           #29 [hci0] 48.649824
      L2CAP: Configure Response (0x05) ident 3 len 10
        Source CID: 64
        Flags: 0x0000
        Result: Success (0x0000)
        Option: Maximum Transmission Unit (0x01) [mandatory]
          MTU: 672
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                                                #30 [hci0] 48.652210
        Num handles: 1
        Handle: 12
        Count: 2
> ACL Data RX: Handle 12 flags 0x02 dlen 18                                                                                                                                           #31 [hci0] 48.654642
      L2CAP: Configure Response (0x05) ident 4 len 10
        Source CID: 64
        Flags: 0x0000
        Result: Success (0x0000)
        Option: Maximum Transmission Unit (0x01) [mandatory]
          MTU: 672
< ACL Data TX: Handle 12 flags 0x00 dlen 24                                                                                                                                           #32 [hci0] 48.654853
      Channel: 64 len 20 [PSM 1 mode Basic (0x00)] {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: 65535
        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
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                                                #33 [hci0] 48.658571
        Num handles: 1
        Handle: 12
        Count: 2
> ACL Data RX: Handle 12 flags 0x02 dlen 560                                                                                                                                          #34 [hci0] 48.665397
      Channel: 64 len 556 [PSM 1 mode Basic (0x00)] {chan 0}
      SDP: Service Search Attribute Response (0x07) tid 0 len 551
        Attribute bytes: 548
          Attribute list: [len 163] {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
                Generic Access Profile (0x1800)
            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
                  0x001f
              Sequence (6) with 9 bytes [8 extra bits] len 11
                UUID (3) with 2 bytes [0 extra bits] len 3
                  ATT (0x0007)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0001
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0005
            Attribute: Browse Group List (0x0005) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                Public Browse Root (0x1002)
            Attribute: Documentation URL (0x000a) [len 2]
              http://www.bluez.org/ [len 21]
            Attribute: Client Executable URL (0x000b) [len 2]
              http://www.bluez.org/ [len 21]
            Attribute: Icon URL (0x000c) [len 2]
              http://www.bluez.org/ [len 21]
            Attribute: Unknown (0x0100) [len 2]
              Generic Access Profile [len 22]
            Attribute: Unknown (0x0102) [len 2]
              BlueZ [len 5]
          Attribute list: [len 88] {position 1}
            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
                Generic Attribute Profile (0x1801)
            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
                  0x001f
              Sequence (6) with 9 bytes [8 extra bits] len 11
                UUID (3) with 2 bytes [0 extra bits] len 3
                  ATT (0x0007)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0006
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x000f
            Attribute: Browse Group List (0x0005) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                Public Browse Root (0x1002)
            Attribute: Unknown (0x0100) [len 2]
              Generic Attribute Profile [len 25]
            Attribute: Unknown (0x0102) [len 2]
              BlueZ [len 5]
          Attribute list: [len 81] {position 2}
            Attribute: Service Record Handle (0x0000) [len 2]
              0x00010003
            Attribute: Service Class ID List (0x0001) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                Device Information (0x180a)
            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
                  0x001f
              Sequence (6) with 9 bytes [8 extra bits] len 11
                UUID (3) with 2 bytes [0 extra bits] len 3
                  ATT (0x0007)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0010
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0012
            Attribute: Browse Group List (0x0005) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                Public Browse Root (0x1002)
            Attribute: Unknown (0x0100) [len 2]
              Device Information [len 18]
            Attribute: Unknown (0x0102) [len 2]
              BlueZ [len 5]
          Attribute list: [len 103] {position 3}
            Attribute: Service Record Handle (0x0000) [len 2]
              0x00010004
            Attribute: Service Class ID List (0x0001) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                A/V Remote Control (0x110e)
              UUID (3) with 2 bytes [0 extra bits] len 3
                A/V Remote Control Controller (0x110f)
            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
                  0x0017
              Sequence (6) with 6 bytes [8 extra bits] len 8
                UUID (3) with 2 bytes [0 extra bits] len 3
                  AVCTP (0x0017)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0103
            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
                  A/V Remote Control (0x110e)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0106
            Attribute: Additional Protocol Descriptor List (0x000d) [len 2]
              Sequence (6) with 16 bytes [8 extra bits] len 18
                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
                    0x001b
                Sequence (6) with 6 bytes [8 extra bits] len 8
                  UUID (3) with 2 bytes [0 extra bits] len 3
                    AVCTP (0x0017)
                  Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                    0x0103
            Attribute: Unknown (0x0100) [len 2]
              AVRCP CT [len 8]
            Attribute: Unknown (0x0311) [len 2]
              0x004f
          Attribute list: [len 100] {position 4}
            Attribute: Service Record Handle (0x0000) [len 2]
              0x00010005
            Attribute: Service Class ID List (0x0001) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                A/V Remote Control Target (0x110c)
            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
                  0x0017
              Sequence (6) with 6 bytes [8 extra bits] len 8
                UUID (3) with 2 bytes [0 extra bits] len 3
                  AVCTP (0x0017)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0103
            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
                  A/V Remote Control (0x110e)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0105
            Attribute: Additional Protocol Descriptor List (0x000d) [len 2]
              Sequence (6) with 16 bytes [8 extra bits] len 18
                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
                    0x001b
                Sequence (6) with 6 bytes [8 extra bits] len 8
                  UUID (3) with 2 bytes [0 extra bits] len 3
                    AVCTP (0x0017)
                  Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                    0x0103
            Attribute: Unknown (0x0100) [len 2]
              AVRCP TG [len 8]
            Attribute: Unknown (0x0311) [len 2]
              0x005f
        Continuation state: 0
< ACL Data TX: Handle 12 flags 0x00 dlen 24                                                                                                                                           #35 [hci0] 48.700154
      Channel: 64 len 20 [PSM 1 mode Basic (0x00)] {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: 65535
        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 RX: Handle 12 flags 0x02 dlen 88                                                                                                                                           #36 [hci0] 48.712387
      Channel: 64 len 84 [PSM 1 mode Basic (0x00)] {chan 0}
      SDP: Service Search Attribute Response (0x07) tid 1 len 79
        Attribute bytes: 76
          Attribute list: [len 72] {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
                PnP Information (0x1200)
            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]
              0x053a
            Attribute: Unknown (0x0204) [len 2]
              true
            Attribute: Unknown (0x0205) [len 2]
              0x0002
        Continuation state: 0
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                                                #37 [hci0] 48.886867
        Num handles: 1
        Handle: 12
        Count: 1
< ACL Data TX: Handle 12 flags 0x00 dlen 12                                                                                                                                           #38 [hci0] 50.627130
      L2CAP: Disconnection Request (0x06) ident 5 len 4
        Destination CID: 64
        Source CID: 64
> ACL Data RX: Handle 12 flags 0x02 dlen 12                                                                                                                                           #39 [hci0] 50.644660
      L2CAP: Disconnection Response (0x07) ident 5 len 4
        Destination CID: 64
        Source CID: 64
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                                                #40 [hci0] 50.886900
        Num handles: 1
        Handle: 12
        Count: 1
< HCI Command: Disconnect (0x01|0x0006) plen 3                                                                                                                                        #41 [hci0] 52.661019
        Handle: 12
        Reason: Remote User Terminated Connection (0x13)
> HCI Event: Command Status (0x0f) plen 4                                                                                                                                             #42 [hci0] 52.661672
      Disconnect (0x01|0x0006) ncmd 1
        Status: Success (0x00)
> HCI Event: Disconnect Complete (0x05) plen 4                                                                                                                                        #43 [hci0] 52.746521
        Status: Success (0x00)
        Handle: 12
        Reason: Connection Terminated By Local Host (0x16)
@ MGMT Event: Device Disconnected (0x000c) plen 8                                                                                                                                {0x0001} [hci0] 52.746586
        BR/EDR Address: 6C:6A:77:48:40:08 (Intel Corporate)
        Reason: Connection terminated by local host (0x02)

[-- Attachment #3: bluetoothctl_logs.txt --]
[-- Type: text/plain, Size: 1177 bytes --]

nagesh@nagesh-desktop:~$ sudo bluetoothctl
[sudo] password for nagesh: 
Agent registered
[CHG] Controller DC:A6:32:F2:CB:46 Pairable: yes
[bluetooth]# info 6C:6A:77:48:40:08
Device 6C:6A:77:48:40:08 (public)
	Name: root1-Nitro-AN515-55
	Alias: root1-Nitro-AN515-55
	Class: 0x0000010c
	Icon: computer
	Paired: yes
	Trusted: no
	Blocked: no
	Connected: no
	LegacyPairing: no
	UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
	UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
	UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
	UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
	UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
	UUID: Device Information        (0000180a-0000-1000-8000-00805f9b34fb)
	Modalias: usb:v1D6Bp0246d053A
[bluetooth]# connect 6C:6A:77:48:40:08
Attempting to connect to 6C:6A:77:48:40:08
[CHG] Device 6C:6A:77:48:40:08 Connected: yes
[CHG] Device 6C:6A:77:48:40:08 ServicesResolved: yes
Failed to connect: org.bluez.Error.NotAvailable
[CHG] Device 6C:6A:77:48:40:08 ServicesResolved: no
[CHG] Device 6C:6A:77:48:40:08 Connected: no
[bluetooth]# 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Unable to establish ble connection between Raspberrypi4B and Laptop
  2021-05-12 13:44 Unable to establish ble connection between Raspberrypi4B and Laptop nagesh shamnur
@ 2021-05-12 18:01 ` Luiz Augusto von Dentz
       [not found]   ` <CAA_JV5NH2z6ywTHi15rrasdgORiarniUqZX3UBzbSGfHc=eVsQ@mail.gmail.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2021-05-12 18:01 UTC (permalink / raw)
  To: nagesh shamnur; +Cc: linux-bluetooth

Hi Nagesh,

On Wed, May 12, 2021 at 6:46 AM nagesh shamnur <nagesh.shamnur@gmail.com> wrote:
>
> Hi All,
>  I am unable to establish a ble connection between my Raspberrypi4B
> and Laptop. Configuration is as below:
>
> Laptop: Ubuntu-20.04.2 LTS, bluez version: 5.53 Raspberrypi4B:
> Ubuntu-21.04 bluez version: 5.56
>
> Bluetoothctl logs @Raspberrypi4B: as attached
>
> btmon logs @Raspberrypi4B: as attached
>
> I see in the btmon output, always connection is terminated but no
> reason is present which specifies the cause for it.
>
> Initially I was using Ubuntu 20.04.2 LTS on my Raspberrypi4b which I
> later upgraded to 21.04 but still no luck. Couple of posts pointed to
> bug in bluez which was pretty old and i am assuming would have already
> fixed in the bluez 5.56 version.
>
> Can someone help me in resolving this issue?

There doesn't seem to be any L2CAP channels left which means no
profile was able to connect which causes the ACL Link to drop since
there is no use for it.


-- 
Luiz Augusto von Dentz

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Unable to establish ble connection between Raspberrypi4B and Laptop
       [not found]   ` <CAA_JV5NH2z6ywTHi15rrasdgORiarniUqZX3UBzbSGfHc=eVsQ@mail.gmail.com>
@ 2021-05-12 18:09     ` Luiz Augusto von Dentz
  0 siblings, 0 replies; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2021-05-12 18:09 UTC (permalink / raw)
  To: nagesh shamnur; +Cc: linux-bluetooth

Hi Nagesh,

On Wed, May 12, 2021 at 11:03 AM nagesh shamnur
<nagesh.shamnur@gmail.com> wrote:
>
> Thanks for the reply. Is there any way i can avoid this problem and make the connection successful?


Yes you can register a profile, what were you planning on doing with
the connection? Even a serial port profiles would do but one of the
side would have to register it.

>
> On Wed, 12 May 2021 at 23:31, Luiz Augusto von Dentz <luiz.dentz@gmail.com> wrote:
>>
>> Hi Nagesh,
>>
>> On Wed, May 12, 2021 at 6:46 AM nagesh shamnur <nagesh.shamnur@gmail.com> wrote:
>> >
>> > Hi All,
>> >  I am unable to establish a ble connection between my Raspberrypi4B
>> > and Laptop. Configuration is as below:
>> >
>> > Laptop: Ubuntu-20.04.2 LTS, bluez version: 5.53 Raspberrypi4B:
>> > Ubuntu-21.04 bluez version: 5.56
>> >
>> > Bluetoothctl logs @Raspberrypi4B: as attached
>> >
>> > btmon logs @Raspberrypi4B: as attached
>> >
>> > I see in the btmon output, always connection is terminated but no
>> > reason is present which specifies the cause for it.
>> >
>> > Initially I was using Ubuntu 20.04.2 LTS on my Raspberrypi4b which I
>> > later upgraded to 21.04 but still no luck. Couple of posts pointed to
>> > bug in bluez which was pretty old and i am assuming would have already
>> > fixed in the bluez 5.56 version.
>> >
>> > Can someone help me in resolving this issue?
>>
>> There doesn't seem to be any L2CAP channels left which means no
>> profile was able to connect which causes the ACL Link to drop since
>> there is no use for it.
>>
>>
>> --
>> Luiz Augusto von Dentz



-- 
Luiz Augusto von Dentz

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-05-12 20:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-12 13:44 Unable to establish ble connection between Raspberrypi4B and Laptop nagesh shamnur
2021-05-12 18:01 ` Luiz Augusto von Dentz
     [not found]   ` <CAA_JV5NH2z6ywTHi15rrasdgORiarniUqZX3UBzbSGfHc=eVsQ@mail.gmail.com>
2021-05-12 18:09     ` Luiz Augusto von Dentz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).