Linux bluetooth development
 help / color / mirror / Atom feed
* Getting link quality or RSSI
@ 2010-08-02 14:51 Davide Pesavento
  2010-08-02 15:56 ` Marcel Holtmann
  0 siblings, 1 reply; 9+ messages in thread
From: Davide Pesavento @ 2010-08-02 14:51 UTC (permalink / raw)
  To: linux-bluetooth

Hello,

I'm writing an application to retrieve the current link quality (or
RSSI) between my laptop's Bluetooth adapter and a specific remote
device (my mobile phone). In order to do that I'm of course using the
latest version of BlueZ, but I've encountered several issues so far.

The dbus API exposed by bluetoothd doesn't have any GetRSSI or
GetLinkQuality methods. Would it be possible to export these methods
in the public API?

Then I looked at the bluetooth HCI library that comes with bluez.
First of all, is there any reasons why it's totally undocumented?
Anyway, I noticed hci_read_link_quality() and hci_read_rssi() in
hci_lib.h and tried using them. Since they seem to require an
established connection, I also used hci_create_connection(). However I
soon discovered that creating a connection requires root privileges,
is that right or did I do something wrong?

Furthermore, even when running the program as root, the connection
gets established only for a few seconds and then it disconnects from
the remote device. Is this behaviour intended? How can I specify to
keep the connection alive indefinitely?

Thanks a lot in advance for any help!

Regards,
Davide

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-08-02 22:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-02 14:51 Getting link quality or RSSI Davide Pesavento
2010-08-02 15:56 ` Marcel Holtmann
2010-08-02 16:34   ` Davide Pesavento
2010-08-02 18:12     ` Luiz Augusto von Dentz
2010-08-02 21:55       ` Davide Pesavento
2010-08-02 18:58     ` Marcel Holtmann
2010-08-02 22:07       ` Davide Pesavento
2010-08-02 22:09         ` Marcel Holtmann
2010-08-02 22:58           ` Davide Pesavento

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox