Re: bluetoothctl: Connecting to a GATT service using BR/EDR

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Christian,

On Fri, Sep 30, 2022 at 12:12 PM Christian Eggers <ceggers@xxxxxxx> wrote:
>
> I am trying to connect to a GATT server using bluetoothctl.
>
> HW: dual mode adapters (server+client)
> SW: bluez-5.65
>
>
> 1st try: "simply connect" (BR/EDR + LE enabled)
> -------------------------------------
> [bluetooth]# connect 5C:F3:70:A3:94:E7
> Attempting to connect to 5C:F3:70:A3:94:E7
> [CHG] Device 5C:F3:70:A3:94:E7 TxPower: 0
> [CHG] Device 5C:F3:70:A3:94:E7 Modalias: usb:v1D6Bp0246d0541
> [CHG] Device 5C:F3:70:A3:94:E7 UUIDs: 00001823-0000-1000-8000-00805f9b34fb  <-- HTTP Proxy Service
> [CHG] Device 5C:F3:70:A3:94:E7 UUIDs: 00001800-0000-1000-8000-00805f9b34fb
> [CHG] Device 5C:F3:70:A3:94:E7 UUIDs: 00001801-0000-1000-8000-00805f9b34fb
> [CHG] Device 5C:F3:70:A3:94:E7 UUIDs: 0000180a-0000-1000-8000-00805f9b34fb
> [CHG] Device 72:DF:6C:03:4A:6A RSSI: -81
> [CHG] Device 5C:F3:70:A3:94:E7 ServicesResolved: yes
> Failed to connect: org.bluez.Error.NotAvailable br-connection-profile-unavailable
> [CHG] Device 5C:F3:70:A3:94:E7 ServicesResolved: no
> [CHG] Device 5C:F3:70:A3:94:E7 Connected: no
>
> ok, it looks I need a profile for making a BR/EDR connection ...
>
>
> 2nd try: register profile beforehand (BR/EDR + LE enabled)
> -------------------------------------
> [bluetooth]# menu gatt
> [bluetooth]# register-application 00001823-0000-1000-8000-00805f9b34fb
> Application registered
> [bluetooth]# menu back
> [bluetooth]# connect 5C:F3:70:A3:94:E7
> Attempting to connect to 5C:F3:70:A3:94:E7
> [CHG] Device 5C:F3:70:A3:94:E7 Connected: yes
> [CHG] Device 5C:F3:70:A3:94:E7 UUIDs: 00001200-0000-1000-8000-00805f9b34fb
> [CHG] Device 5C:F3:70:A3:94:E7 UUIDs: 00001800-0000-1000-8000-00805f9b34fb
> [CHG] Device 5C:F3:70:A3:94:E7 UUIDs: 00001801-0000-1000-8000-00805f9b34fb
> [CHG] Device 5C:F3:70:A3:94:E7 UUIDs: 0000180a-0000-1000-8000-00805f9b34fb
> [CHG] Device 5C:F3:70:A3:94:E7 UUIDs: 00001823-0000-1000-8000-00805f9b34fb
> [CHG] Device 5C:F3:70:A3:94:E7 ServicesResolved: yes
> Failed to connect: org.bluez.Error.Failed br-connection-not-supported
> [CHG] Device 5C:F3:70:A3:94:E7 ServicesResolved: no
> [CHG] Device 5C:F3:70:A3:94:E7 Connected: no
>
> Unfortunately the created GATT profile doesn't provide a connect() method ...
>
>
> What is the intended procedure for connecting to a GATT server over
> a BR/EDR link? The "connect" command works fine after disabling BR/EDR
> using btmgmt, but this is not what I wanted.

Connecting over BR/EDR as a central is currently not supported, it
will probably require some changes in order to enable it although the
likes of bt_att/bt_gatt_client shall have proper support for it.

> regards,
> Christian
>
>
>


-- 
Luiz Augusto von Dentz



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux