From: Marcel Holtmann <marcel@holtmann.org>
To: bluez-users@lists.sourceforge.net
Subject: Re: [Bluez-users] Request with RSSI
Date: Mon, 29 May 2006 15:27:05 +0200 [thread overview]
Message-ID: <1148909225.31689.52.camel@localhost> (raw)
In-Reply-To: <20060516104849.16848.qmail@web50514.mail.yahoo.com>
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
prev parent reply other threads:[~2006-05-29 13:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-16 10:48 [Bluez-users] Request with RSSI Mahtab Hossain
2006-05-29 13:27 ` Marcel Holtmann [this message]
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=1148909225.31689.52.camel@localhost \
--to=marcel@holtmann.org \
--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).