2020-12-09 13:01:37

by Olivier MARTIN

[permalink] [raw]
Subject: Accessing RSSI during BLE connection through Bluez DBUS API

Dear Bluez members,

I was looking a accessing RSSI during a BLE connection using Bluez DBUS API.

As mentioned in the documentation
(https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/device-api.txt#n230),
RSSI is only exposed during inquiry or advertising.
I confirmed that trying to access it while in connection does not work.

I managed to access it while in connection using the Bluetooth
Management API
(https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/mgmt-api.txt)
but I need root access.

So my question, would it be possible to extend Bluez DBUS API to expose
RSSI during BLE connection? Or is there any limitation?
If there is no limitation, I do not mind to give a try extending bluez
to add this support.

Thanks,
Olivier