* [Bluez-users] Request with RSSI
@ 2006-05-16 10:48 Mahtab Hossain
2006-05-29 13:27 ` Marcel Holtmann
0 siblings, 1 reply; 2+ messages in thread
From: Mahtab Hossain @ 2006-05-16 10:48 UTC (permalink / raw)
To: bluez-users
[-- Attachment #1: Type: text/plain, Size: 1155 bytes --]
In the previous emails from the archive, I read that "hci_inquiry" doesn't provide RSSI value on Inquiry. The suggestion was to use raw sockets to achieve it.
I had found Scott Gifford's code using exactly that approach (in the archive). But my problem is: I always get EVT_INQUIRY_RESULT, not the desired EVT_INQUIRY_RESULT_WITH_RSSI.
I check the "mode" value usingn "hci_read_inquiry_mode" which gave me 1. Is it correct? I don't know what mode should be set for Request_with_RSSI.
Also, my hci_send_cmd looks like the following (copied from Scott's program):
hci_send_cmd(dd, OGF_LINK_CTL, OCF_INQUIRY, INQUIRY_CP_SIZE, &cp);
where
cp.lap[2] = 0x9e
cp.lap[1] = 0x8b
cp.lap[0] = 0x33
I don't know what these values mean (I see exactly similar value for cp.lap in the hci_inquiry function from the bluez libraries). Could anyone give me any pointers to know more about them?
Thanks
Mahtab
PS. My dongle and mobile phone both support "Request with RSSI" feature.
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
[-- Attachment #2: Type: text/html, Size: 1322 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Bluez-users] Request with RSSI
2006-05-16 10:48 [Bluez-users] Request with RSSI Mahtab Hossain
@ 2006-05-29 13:27 ` Marcel Holtmann
0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2006-05-29 13:27 UTC (permalink / raw)
To: bluez-users
Hi Mahtab,
> In the previous emails from the archive, I read that "hci_inquiry"
> doesn't provide RSSI value on Inquiry. The suggestion was to use raw
> sockets to achieve it.
>
> I had found Scott Gifford's code using exactly that approach (in the
> archive). But my problem is: I always get EVT_INQUIRY_RESULT, not the
> desired EVT_INQUIRY_RESULT_WITH_RSSI.
>
> I check the "mode" value usingn "hci_read_inquiry_mode" which gave me
> 1. Is it correct? I don't know what mode should be set for
> Request_with_RSSI.
>
> Also, my hci_send_cmd looks like the following (copied from Scott's
> program):
> hci_send_cmd(dd, OGF_LINK_CTL, OCF_INQUIRY, INQUIRY_CP_SIZE, &cp);
> where
> cp.lap[2] = 0x9e
> cp.lap[1] = 0x8b
> cp.lap[0] = 0x33
>
> I don't know what these values mean (I see exactly similar value for
> cp.lap in the hci_inquiry function from the bluez libraries). Could
> anyone give me any pointers to know more about them?
you need to call "hciconfig hci0 inqmode 1" first to switch this feature
on. You can also use inqmode option in hcid.conf.
Regards
Marcel
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-05-29 13:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-16 10:48 [Bluez-users] Request with RSSI Mahtab Hossain
2006-05-29 13:27 ` 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).