Skip to contentSkip to conversation

Inquiry response containing RSSI

Bluez-devel Richard Röjfors 2 participants 2 messages Mar 15, 2007 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi everyone,

Thanks for developing this stack, it works very well I must say!

But I have ran into a small limitation:
I want to do inquiries that contains rssi in the response. (I know it requires bluetooth >= 1.2).
I have a such dongle from CSR. I bluez from 2.6.20.1 and bluez-libs 3.9 btw. I set the inquiry mode to 1 using the bluez-libs function hci_write_inquiry_mode.

The interesting thing is that the RSSI makes it up to the inquiry cache inside the hci_module, but the interface (hci_inquiry, called by ioctl) only uses the struct inquiry_info, which does not contain RSSI.

So I was thinking of a way to support this, could be to introduce another more generic IOCTL. Which returns the struct inquiry_info_with_rssi, or rather a struct of a new type which is the combination of struct inquiry_info_with_rssi and struct inquiry_info.

What do you think?

- --
Richard

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF+SYp9yPqN8x056cRAm7ZAKClpMbse3jCc7eVVxVSUIEsUXHLbwCfWKJx wmUt/xXy6yZIrI3gNTcNqjQ=
=KE3K
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#1 lore raw

Hi Richard,

Quoted 6 lines

I want to do inquiries that contains rssi in the response. (I know it requires bluetooth >= 1.2).
I have a such dongle from CSR. I bluez from 2.6.20.1 and bluez-libs 3.9 btw. I set the inquiry mode to 1 using the bluez-libs function hci_write_inquiry_mode.

Quoted 8 lines

The interesting thing is that the RSSI makes it up to the inquiry cache inside the hci_module, but the interface (hci_inquiry, called by ioctl) only uses the struct inquiry_info, which does not contain RSSI.

So I was thinking of a way to support this, could be to introduce another more generic IOCTL. Which returns the struct inquiry_info_with_rssi, or rather a struct of a new type which is the combination of struct inquiry_info_with_rssi and struct inquiry_info.

use the new D-Bus based API. It takes care of everything for you.

Regards

Marcel

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel