bluetoothctl: Connecting to a GATT service using BR/EDR

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

 



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.

regards,
Christian






[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