Linux bluetooth development
 help / color / mirror / Atom feed
From: "Claudio Takahasi" <cktakahasi@gmail.com>
To: "BlueZ development" <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] About hci_inquiry (Num_Responses)
Date: Thu, 1 Feb 2007 14:40:19 -0300	[thread overview]
Message-ID: <e1effdeb0702010940p62d29955o5d64caf71cb68aeb@mail.gmail.com> (raw)
In-Reply-To: <200702011159.21531.fernando@bluexare.org>

On 2/1/07, Fernando Unzu <fernando@bluexare.org> wrote:
> Hello,
> I'm playing with hci_inquiry function and I have realizedthat Num_Responses,
> who is passed like an argument to the function, does not do wath I want.
>
> I thought that this value told how many devices are scanned until the scanning
> stopped.
> But this value tells how many devices "respond" the scan message (so one same
> device can "respond" several times).
>
> With the hcidump I have realized on that.
>
> I have realized this issue because I put this value to 7, for example, and 7
> seconds to the len, but, without find the 7 devices, and without spend all
> the time, the inquiry returns and saying only 3 devices found (for example).
>
> There is any way to solve this? Or is the implementation of this function to
> do so...
>
> There is any solution? Can I, in any way, say the hci_inquiry to stop the scan
> only when 7 (f.e) different devices respond, or only the unique solution is
> to scan for over 40 or more devices, and find all devices, although others
> respond several times...
>
> Can anybody tell me where is the hci_inquiry code to take a study?
>
> Thank you.
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>

Hi Fernando,

You can filter the HCI Inquiry Result Event, check the event content
and send the inquiry cancel command when you want(after 7 different
responses).

Another approach is develop an application using the BlueZ D-Bus API.
Using the method DiscoverDevicesWithoutNameResolving/CancelDiscovery
and filtering for RemoteDeviceFound signals it is possible get the
result that you want.

BR,
Claudio.
-- 
---------------------------------------------------------
Claudio Takahasi
Instituto Nokia de Tecnologia - INdT

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

  reply	other threads:[~2007-02-01 17:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-01 10:59 [Bluez-devel] About hci_inquiry (Num_Responses) Fernando Unzu
2007-02-01 17:40 ` Claudio Takahasi [this message]
2007-02-05  9:08   ` Fernando Unzu
2007-02-02  5:01 ` Vikas Sinha

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=e1effdeb0702010940p62d29955o5d64caf71cb68aeb@mail.gmail.com \
    --to=cktakahasi@gmail.com \
    --cc=bluez-devel@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