I have a very strange issue with BlueZ (stock version 5.37 in Ubuntu 16.04). I am developing bluetooth periphery and I have just one development kit. In its firmware, I have changed name that is broadcasted. When I use:
hcitool lescan
,updated name for my device is shown. But when i use Qt5 library, old name is scanned. And looking in DBUS is showing that old name is cached. Is there any way to force DBUS to reload all paramaters? Or somehow dump everything?
As it turned out, BlueZ is indeed keeping Bluetooth devices cache. It can be found in
/var/lib/blueooth
in folders named by MAC addresses. Deleting their content and restarting bluetooth service solves the issue for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With