Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BlueZ showing old cached data on DBUS

Tags:

bluez

dbus

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?

like image 442
janstepan Avatar asked Jan 05 '23 04:01

janstepan


1 Answers

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.

like image 172
janstepan Avatar answered Jan 12 '23 22:01

janstepan