All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] About hci_inquiry (Num_Responses)
@ 2007-02-01 10:59 Fernando Unzu
  2007-02-01 17:40 ` Claudio Takahasi
  2007-02-02  5:01 ` Vikas Sinha
  0 siblings, 2 replies; 4+ messages in thread
From: Fernando Unzu @ 2007-02-01 10:59 UTC (permalink / raw)
  To: bluez-devel

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bluez-devel] About hci_inquiry (Num_Responses)
  2007-02-01 10:59 [Bluez-devel] About hci_inquiry (Num_Responses) Fernando Unzu
@ 2007-02-01 17:40 ` Claudio Takahasi
  2007-02-05  9:08   ` Fernando Unzu
  2007-02-02  5:01 ` Vikas Sinha
  1 sibling, 1 reply; 4+ messages in thread
From: Claudio Takahasi @ 2007-02-01 17:40 UTC (permalink / raw)
  To: BlueZ development

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bluez-devel] About hci_inquiry (Num_Responses)
  2007-02-01 10:59 [Bluez-devel] About hci_inquiry (Num_Responses) Fernando Unzu
  2007-02-01 17:40 ` Claudio Takahasi
@ 2007-02-02  5:01 ` Vikas Sinha
  1 sibling, 0 replies; 4+ messages in thread
From: Vikas Sinha @ 2007-02-02  5:01 UTC (permalink / raw)
  To: BlueZ development


[-- Attachment #1.1: Type: text/plain, Size: 2160 bytes --]

Hi Fernando,
you can get code at
http://www-md.e-technik.uni-rostock.de/ma/hm27/uebung_hnp_2004/documentation/bluez-2.10-html/
line no 555.
Here you will fine all documentation about blueZ

It intresting to know about it. Well i find the same and I develop an
application in which i put its value to 255[i.e. Max] so tat I will get
information about all its devices.

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
>



-- 
Impossible
itself contain
I M Possible

Vikas

[-- Attachment #1.2: Type: text/html, Size: 2901 bytes --]

[-- Attachment #2: Type: text/plain, Size: 374 bytes --]

-------------------------------------------------------------------------
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

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bluez-devel] About hci_inquiry (Num_Responses)
  2007-02-01 17:40 ` Claudio Takahasi
@ 2007-02-05  9:08   ` Fernando Unzu
  0 siblings, 0 replies; 4+ messages in thread
From: Fernando Unzu @ 2007-02-05  9:08 UTC (permalink / raw)
  To: BlueZ development


> 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.

I have been studying the security code (in which it can be the function 
inquiry result, and anothers, but I have not known how I can do it.

I don't know how I can check if the device is discovered already.
Who have this information?
And, how can I avoid this repeated device to include in the information of 
devices that have responded?

Thank you for the help

-------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-02-05  9:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-01 10:59 [Bluez-devel] About hci_inquiry (Num_Responses) Fernando Unzu
2007-02-01 17:40 ` Claudio Takahasi
2007-02-05  9:08   ` Fernando Unzu
2007-02-02  5:01 ` Vikas Sinha

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.