2024-02-14 13:42:18

by Brian J. Murrell

[permalink] [raw]
Subject: BLE devices not (automatically, or otherwise) connecting: Failed to connect: org.bluez.Error.Failed Operation already in progress

I have an Ember Mug which is a BLE device. I was able to pair it to my
Fedora 39 system running bluez-5.72 with a:

Bus 003 Device 029: ID 0bda:8771 Realtek Semiconductor Corp. [unknown]

BT dongle. But now it seems unable to reconnect, automatically[1], or
otherwise (I have no idea why bluetoothctl's prompt is "Bluetooth Mouse
M557]" but it is):

$ bluetoothctl

[Bluetooth Mouse M557]# list
Controller 8C:88:2B:45:A0:8A pc.interlinx.bc.ca [default]
[Bluetooth Mouse M557]# show 8C:88:2B:45:A0:8A
Controller 8C:88:2B:45:A0:8A (public)
Manufacturer: 0x005d (93)
Version: 0x0a (10)
Name: pc.interlinx.bc.ca
Alias: pc.interlinx.bc.ca
Class: 0x006c0104 (7078148)
Powered: yes
PowerState: on
Discoverable: no
DiscoverableTimeout: 0x000000b4 (180)
Pairable: yes
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: Handsfree Audio Gateway (0000111f-0000-1000-8000-00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)
UUID: Audio Source (0000110a-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-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)
UUID: Handsfree (0000111e-0000-1000-8000-00805f9b34fb)
Modalias: usb:v1D6Bp0246d0548
Discovering: yes
Roles: central
Roles: peripheral
Advertising Features:
ActiveInstances: 0x00 (0)
SupportedInstances: 0x04 (4)
SupportedIncludes: tx-power
SupportedIncludes: appearance
SupportedIncludes: local-name
SupportedSecondaryChannels: 1M
SupportedSecondaryChannels: 2M
SupportedSecondaryChannels: Coded
[Bluetooth Mouse M557]# devices
Device EC:4E:82:E4:98:14 Ember Ceramic Mug
[Bluetooth Mouse M557]# info EC:4E:82:E4:98:14
Device EC:4E:82:E4:98:14 (random)
Name: Ember Ceramic Mug
Alias: Ember Ceramic Mug
Paired: yes
Bonded: yes
Trusted: no
Blocked: no
Connected: no
LegacyPairing: no
UUID: Vendor specific (00001530-1212-efde-1523-785feabcd123)
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)
UUID: Vendor specific (fc543622-236c-4c94-8fa9-944a3e5353fa)
ManufacturerData.Key: 0x03c1 (961)
ManufacturerData.Value:
81 .
[Bluetooth Mouse M557]# connect EC:4E:82:E4:98:14EC:4E:82:E4:98:14
Attempting to connect to EC:4E:82:E4:98:14
[Bluetooth Mouse M557]# Failed to connect: org.bluez.Error.Failed Operation already in progress
[Bluetooth Mouse M557]info EC:4E:82:E4:98:14
Device EC:4E:82:E4:98:14 (random)
Name: Ember Ceramic Mug
Alias: Ember Ceramic Mug
Paired: yes
Bonded: yes
Trusted: no
Blocked: no
Connected: no
LegacyPairing: no
UUID: Vendor specific (00001530-1212-efde-1523-785feabcd123)
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)
UUID: Vendor specific (fc543622-236c-4c94-8fa9-944a3e5353fa)
ManufacturerData.Key: 0x03c1 (961)
ManufacturerData.Value:
81 .

During which time btmon reports:

Bluetooth monitor ver 5.72
btmon[3449394]: = Note: Linux version 6.6.4-200.fc39.x86_64 (x86_64) 0.747553
btmon[3449394]: = Note: Bluetooth subsystem version 2.22 0.747556
= New Index: 8C:88:2B:45:A0:8A (Primary,USB,hci0) [hci0] 0.747557
= Open Index: 8C:88:2B:45:A0:8A [hci0] 0.747557
= Index Info: 8C:88:2B:45:A0:8A (Realtek Semiconductor Corporation) [hci0] 0.747558
bluetoothctl[3432959]: @ MGMT Open: bluetoothctl version 1.22 {0x0002} 0.747559
bluetoothd[2012539]: @ MGMT Open: bluetoothd (privileged) version 1.22 {0x0001} 0.747560
@ MGMT Event: Discovering (0x0013) plen 2 {0x0001} [hci0] 1.579390
Address type: 0x06
LE Public
LE Random
Discovery: Disabled (0x00)
< HCI Command: LE Set Extended Scan Enable (0x08|0x0042) plen 6 #1 [hci0] 1.579465
Extended scan: Disabled (0x00)
Filter duplicates: Disabled (0x00)
Duration: 0 msec (0x0000)
Period: 0.00 sec (0x0000)
bluetoothd[2012539]: @ MGMT Command: Start Service Discovery (0x003a) plen 4 {0x0001} [hci0] 1.579491
Address type: 0x06
LE Public
LE Random
RSSI: invalid (0x7f)
UUIDs: 0
> HCI Event: Command Complete (0x0e) plen 4 #2 [hci0] 1.581137
LE Set Extended Scan Enable (0x08|0x0042) ncmd 2
Status: Success (0x00)
< HCI Command: LE Set Random Address (0x08|0x0005) plen 6 #3 [hci0] 1.581210
Address: 3B:30:98:2B:90:EC (Non-Resolvable)
> HCI Event: Command Complete (0x0e) plen 4 #4 [hci0] 1.582135
LE Set Random Address (0x08|0x0005) ncmd 2
Status: Success (0x00)
< HCI Command: LE Set Extended Scan Parameters (0x08|0x0041) plen 13 #5 [hci0] 1.582164
Own address type: Random (0x01)
Filter policy: Accept all advertisement (0x00)
PHYs: 0x05
Entry 0: LE 1M
Type: Active (0x01)
Interval: 11.250 msec (0x0012)
Window: 11.250 msec (0x0012)
Entry 1: LE Coded
Type: Active (0x01)
Interval: 11.250 msec (0x0012)
Window: 11.250 msec (0x0012)
> HCI Event: Command Complete (0x0e) plen 4 #6 [hci0] 1.583135
LE Set Extended Scan Parameters (0x08|0x0041) ncmd 2
Status: Success (0x00)
< HCI Command: LE Set Extended Scan Enable (0x08|0x0042) plen 6 #7 [hci0] 1.583164
Extended scan: Enabled (0x01)
Filter duplicates: Enabled (0x01)
Duration: 0 msec (0x0000)
Period: 0.00 sec (0x0000)
> HCI Event: Command Complete (0x0e) plen 4 #8 [hci0] 1.584134
LE Set Extended Scan Enable (0x08|0x0042) ncmd 2
Status: Success (0x00)
@ MGMT Event: Command Complete (0x0001) plen 4 {0x0001} [hci0] 1.584163
Start Service Discovery (0x003a) plen 1
Status: Success (0x00)
Address type: 0x06
LE Public
LE Random
@ MGMT Event: Discovering (0x0013) plen 2 {0x0001} [hci0] 1.584166
Address type: 0x06
LE Public
LE Random
Discovery: Enabled (0x01)
@ MGMT Event: Discovering (0x0013) plen 2 {0x0001} [hci0] 12.331534
Address type: 0x06
LE Public
LE Random
Discovery: Disabled (0x00)
< HCI Command: LE Set Extended Scan Enable (0x08|0x0042) plen 6 #9 [hci0] 12.331560
Extended scan: Disabled (0x00)
Filter duplicates: Disabled (0x00)
Duration: 0 msec (0x0000)
Period: 0.00 sec (0x0000)
bluetoothd[2012539]: @ MGMT Command: Start Service Discovery (0x003a) plen 4 {0x0001} [hci0] 12.331648
Address type: 0x06
LE Public
LE Random
RSSI: invalid (0x7f)
UUIDs: 0
> HCI Event: Command Complete (0x0e) plen 4 #10 [hci0] 12.333155
LE Set Extended Scan Enable (0x08|0x0042) ncmd 2
Status: Success (0x00)
< HCI Command: LE Set Random Address (0x08|0x0005) plen 6 #11 [hci0] 12.333197
Address: 1A:DD:6C:0E:11:58 (Non-Resolvable)
> HCI Event: Command Complete (0x0e) plen 4 #12 [hci0] 12.334155
LE Set Random Address (0x08|0x0005) ncmd 2
Status: Success (0x00)
< HCI Command: LE Set Extended Scan Parameters (0x08|0x0041) plen 13 #13 [hci0] 12.334194
Own address type: Random (0x01)
Filter policy: Accept all advertisement (0x00)
PHYs: 0x05
Entry 0: LE 1M
Type: Active (0x01)
Interval: 11.250 msec (0x0012)
Window: 11.250 msec (0x0012)
Entry 1: LE Coded
Type: Active (0x01)
Interval: 11.250 msec (0x0012)
Window: 11.250 msec (0x0012)
> HCI Event: Command Complete (0x0e) plen 4 #14 [hci0] 12.335153
LE Set Extended Scan Parameters (0x08|0x0041) ncmd 2
Status: Success (0x00)
< HCI Command: LE Set Extended Scan Enable (0x08|0x0042) plen 6 #15 [hci0] 12.335232
Extended scan: Enabled (0x01)
Filter duplicates: Enabled (0x01)
Duration: 0 msec (0x0000)
Period: 0.00 sec (0x0000)
> HCI Event: Command Complete (0x0e) plen 4 #16 [hci0] 12.336177
LE Set Extended Scan Enable (0x08|0x0042) ncmd 2
Status: Success (0x00)
@ MGMT Event: Command Complete (0x0001) plen 4 {0x0001} [hci0] 12.336206
Start Service Discovery (0x003a) plen 1
Status: Success (0x00)
Address type: 0x06
LE Public
LE Random
@ MGMT Event: Discovering (0x0013) plen 2 {0x0001} [hci0] 12.336212
Address type: 0x06
LE Public
LE Random
Discovery: Enabled (0x01)

Any ideas?

[1] Am I safe in understanding that this BLE device should just
automatically connect to bluez once it's within vicinity of the BT
adapter?

Cheers,
b.



Attachments:
signature.asc (499.00 B)
This is a digitally signed message part