linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bluez-devel] Reading RSSI of non-connected devices
@ 2005-12-07 15:00 Andreas Färber
  2005-12-07 15:08 ` Marcel Holtmann
  0 siblings, 1 reply; 14+ messages in thread
From: Andreas Färber @ 2005-12-07 15:00 UTC (permalink / raw)
  To: bluez-devel

Hello,

We are trying to programmatically read the signal strength of Bluetooth 
devices at discovery time (not only for connections). Seeing through the 
source code it appears that in some cases (BT 1.2?) an inquiry gets an 
HCI response that includes the RSSI (struct inquiry_info_with_rssi). 
This information appears to be cached in struct inquiry_data if 
available, 0 otherwise. However the only way to access this information 
seems to be to get a pointer to a hci_dev struct (e.g. through 
hci_dev_get(int index)) and use its inq_cache member? Getting this 
information from the client side is not possible right now?

As I understand it from the code, the libBluetooth.so library does an 
ioctl on an HCI socket with specific predefined commands such as HCIINQUIRY.
How should we go about adding the functionality we need? Would we need 
to define a custom HCI socket command and handle it somewhere in a 
customized Kernel module? Or is there an easier way?

Thanks for any hints,

Andreas



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

end of thread, other threads:[~2005-12-15  5:15 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-07 15:00 [Bluez-devel] Reading RSSI of non-connected devices Andreas Färber
2005-12-07 15:08 ` Marcel Holtmann
2005-12-07 16:21   ` Andreas Färber
2005-12-07 16:43     ` Marcel Holtmann
2005-12-14 15:21       ` Andreas Faerber
2005-12-14 15:26         ` Bastien Nocera
2005-12-14 16:44           ` Andreas Faerber
2005-12-14 17:17             ` Marcel Holtmann
2005-12-14 20:53               ` Andreas Färber
2005-12-14 16:23         ` Marcel Holtmann
2005-12-14 16:58           ` Andreas Faerber
2005-12-14 17:13             ` Marcel Holtmann
2005-12-14 20:43               ` Andreas Färber
2005-12-15  5:15                 ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).