From: Mahtab Hossain <mahtab_hossain2002@yahoo.com>
To: bluez-users@lists.sourceforge.net
Subject: [Bluez-users] Request with RSSI
Date: Tue, 16 May 2006 03:48:49 -0700 (PDT) [thread overview]
Message-ID: <20060516104849.16848.qmail@web50514.mail.yahoo.com> (raw)
[-- 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 --]
next reply other threads:[~2006-05-16 10:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-16 10:48 Mahtab Hossain [this message]
2006-05-29 13:27 ` [Bluez-users] Request with RSSI Marcel Holtmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060516104849.16848.qmail@web50514.mail.yahoo.com \
--to=mahtab_hossain2002@yahoo.com \
--cc=bluez-users@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).