Skip to contentSkip to conversation

Cached Device UUIDs not Visable on DBus

DISCUSSION Gabriel Smith 2 participants 2 messages Apr 10, 2015 – Apr 13, 2015 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

When searching for devices, I ckeck the service UUIDs to find the correct device to connect to. On the first run of the program the device is discovered, the service UUID is matched, and everything goes smoothly. On every other run after the first the device is found, but no service UUIDs are set. I check for a PropertiesChanged signal when this occurs, but the signal is only ever sent when the RSSI value changes. When the system is rebooted, the program can run again once. I am using Bluez 5.30 and the high level GIO DBus API. I see that the GIO DBus API, specifically GDBusProxy, caches properties, but promises that they are updated on PropertiesChanged signals. As the program works once I do not think that it is the fault of the GIO DBus API. Is there something I am missing with Bluez's operation that would cause this error to happen?

Signature · 2 lines
Thank you,
Gabriel Smith
#1 lore raw

Hi Gabriel,

Quoted 4 lines · Gabriel Smith

When searching for devices, I ckeck the service UUIDs to find the correct device to connect to. On the first run of the program the device is discovered, the service UUID is matched, and everything goes smoothly. On every other run after the first the device is found, but no service UUIDs

Quoted 8 lines

are set. I check for a PropertiesChanged signal when this occurs, but the signal is only ever sent when the RSSI value changes. When the system is rebooted, the program can run again once.
I am using Bluez 5.30 and the high level GIO DBus API. I see that the GIO DBus API, specifically GDBusProxy, caches properties, but promises that they are updated on PropertiesChanged signals. As the program works once I do not think that it is the fault of the GIO DBus API. Is there something I am missing with Bluez's operation that would cause this error to happen?

But is there any changes to the UUIDs? It should only emit PropertiesChanged if the UUIDs changes.

Signature · 1 line
Luiz Augusto von Dentz