linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bluez-devel] Inquiry Time
@ 2005-12-07 13:03 Artur Almeida
  2005-12-07 13:13 ` Marcel Holtmann
  2005-12-08 12:14 ` Steven Singer
  0 siblings, 2 replies; 7+ messages in thread
From: Artur Almeida @ 2005-12-07 13:03 UTC (permalink / raw)
  To: bluez-devel

[-- Attachment #1: Type: text/plain, Size: 458 bytes --]

Dear All

 The Bt specification says that once you send a inquiry request, you should
get all the responses +-11 seconds. Many times i send an inquiry and it
lasts a lot more then that (Sometimes it goes over a minute). Can someone
explain how can i limit the inquiry time to the 11 sec window? Why does this
happens?  Also, where can i find a detailed document with all the features
and parameters of the hciconfig?

Thank you

Regards

Artur

[-- Attachment #2: Type: text/html, Size: 617 bytes --]

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

* Re: [Bluez-devel] Inquiry Time
  2005-12-07 13:03 [Bluez-devel] Inquiry Time Artur Almeida
@ 2005-12-07 13:13 ` Marcel Holtmann
  2005-12-08  0:33   ` Artur Almeida
  2005-12-08 12:14 ` Steven Singer
  1 sibling, 1 reply; 7+ messages in thread
From: Marcel Holtmann @ 2005-12-07 13:13 UTC (permalink / raw)
  To: bluez-devel

Hi Artur,

>  The Bt specification says that once you send a inquiry request, you
> should get all the responses +-11 seconds. Many times i send an
> inquiry and it lasts a lot more then that (Sometimes it goes over a
> minute). Can someone explain how can i limit the inquiry time to the
> 11 sec window? Why does this happens?  Also, where can i find a
> detailed document with all the features and parameters of the
> hciconfig?

what does "hciconfig -a" says? I never saw a problem like this.

Regards

Marcel




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] Inquiry Time
  2005-12-07 13:13 ` Marcel Holtmann
@ 2005-12-08  0:33   ` Artur Almeida
  2005-12-08  5:43     ` Marcel Holtmann
  0 siblings, 1 reply; 7+ messages in thread
From: Artur Almeida @ 2005-12-08  0:33 UTC (permalink / raw)
  To: bluez-devel

[-- Attachment #1: Type: text/plain, Size: 3367 bytes --]

Hello Marcel

I have 3 dongles attached to my pc, in attach the hciconfig -a output:



hci0:   Type: USB

        BD Address: 00:11:B1:08:A0:92 ACL MTU: 192:8 SCO MTU: 64:8

        UP RUNNING PSCAN ISCAN INQUIRY

        RX bytes:2128101 acl:39869 sco:0 events:152683 errors:0

        TX bytes:1166603 acl:39621 sco:0 commands:44590 errors:0

        Features: 0xff 0xff 0x8f 0xf8 0x18 0x18 0x00 0x80

        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3

        Link policy: RSWITCH

        Link mode: MASTER

        Name: 'Mo #0'

        Class: 0x500204

        Service Classes:

        Device Class: Phone, Cellular

        HCI Ver: 1.2 (0x2) HCI Rev: 0x512 LMP Ver: 1.2 (0x2) LMP Subver:
0x512

        Manufacturer: Cambridge Silicon Radio (10)



hci1:   Type: USB

        BD Address: 00:11:B1:08:A0:9E ACL MTU: 192:8 SCO MTU: 64:8

        UP RUNNING PSCAN ISCAN

        RX bytes:742522 acl:21877 sco:0 events:41391 errors:0

        TX bytes:2353244 acl:31777 sco:0 commands:3103 errors:0

        Features: 0xff 0xff 0x8f 0xf8 0x18 0x18 0x00 0x80

        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3

        Link policy: RSWITCH

        Link mode: MASTER

        Name: 'Mo #1'

        Class: 0x000100

        Service Classes: Unspecified

        Device Class: Computer, Uncategorized

        HCI Ver: 1.2 (0x2) HCI Rev: 0x512 LMP Ver: 1.2 (0x2) LMP Subver:
0x512

        Manufacturer: Cambridge Silicon Radio (10)



hci2:   Type: USB

        BD Address: 00:11:B1:08:A0:A0 ACL MTU: 192:8 SCO MTU: 64:8

        UP RUNNING

        RX bytes:160 acl:0 sco:0 events:19 errors:0

        TX bytes:322 acl:0 sco:0 commands:16 errors:0

        Features: 0xff 0xff 0x8f 0xf8 0x18 0x18 0x00 0x80

        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3

        Link policy: RSWITCH

        Link mode: MASTER

        Name: 'Mo #2'

        Class: 0x500204

        Service Classes:

        Device Class: Phone, Cellular

        HCI Ver: 1.2 (0x2) HCI Rev: 0x512 LMP Ver: 1.2 (0x2) LMP Subver:
0x512

        Manufacturer: Cambridge Silicon Radio (10)


Regards
Artur

On 12/7/05, Marcel Holtmann <marcel@holtmann.org> wrote:
>
> Hi Artur,
>
> >  The Bt specification says that once you send a inquiry request, you
> > should get all the responses +-11 seconds. Many times i send an
> > inquiry and it lasts a lot more then that (Sometimes it goes over a
> > minute). Can someone explain how can i limit the inquiry time to the
> > 11 sec window? Why does this happens?  Also, where can i find a
> > detailed document with all the features and parameters of the
> > hciconfig?
>
> what does "hciconfig -a" says? I never saw a problem like this.
>
> Regards
>
> Marcel
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>

[-- Attachment #2: Type: text/html, Size: 12335 bytes --]

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

* Re: [Bluez-devel] Inquiry Time
  2005-12-08  0:33   ` Artur Almeida
@ 2005-12-08  5:43     ` Marcel Holtmann
  0 siblings, 0 replies; 7+ messages in thread
From: Marcel Holtmann @ 2005-12-08  5:43 UTC (permalink / raw)
  To: bluez-devel

Hi Artur,

> I have 3 dongles attached to my pc, in attach the hciconfig -a output:

all of these devices are CSR chips with a decent firmware and I can't
explain why this happens. However you should keep SNIFF and HOLD as link
policy. Show us the output of "hcidump -X -V" for the problem.

Regards

Marcel




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] Inquiry Time
  2005-12-07 13:03 [Bluez-devel] Inquiry Time Artur Almeida
  2005-12-07 13:13 ` Marcel Holtmann
@ 2005-12-08 12:14 ` Steven Singer
  2005-12-10 18:55   ` Artur Almeida
  1 sibling, 1 reply; 7+ messages in thread
From: Steven Singer @ 2005-12-08 12:14 UTC (permalink / raw)
  To: bluez-devel

Artur Almeida wrote:
>  The Bt specification says that once you send a inquiry request, you should
> get all the responses +-11 seconds. Many times i send an inquiry and it
> lasts a lot more then that (Sometimes it goes over a minute). Can someone
> explain how can i limit the inquiry time to the 11 sec window? Why does this
> happens?  Also, where can i find a detailed document with all the features
> and parameters of the hciconfig?

I think the way the spec phrases it is that you must inquire for at least
10.24 seconds to have a good probability of picking up all devices.
However, it doesn't say that the inquiry process will stop after 10.24
seconds. The host specifies how long it wants to inquire for in one of
the parameters to HCI_Inquiry. If the host says to inquire for 30
seconds (or whatever) then the chip quite happily will.

hcidump -X -V should reveal the parameters to the HCI_Inquiry command.
>From there you should be able to work out how long the chip has been
told to inquire for.

	- Steven
-- 


This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] Inquiry Time
  2005-12-08 12:14 ` Steven Singer
@ 2005-12-10 18:55   ` Artur Almeida
  2005-12-10 19:05     ` Marcel Holtmann
  0 siblings, 1 reply; 7+ messages in thread
From: Artur Almeida @ 2005-12-10 18:55 UTC (permalink / raw)
  To: bluez-devel

[-- Attachment #1: Type: text/plain, Size: 2420 bytes --]

Hello Steven

 Thank you for your email, that clear my doubt. Now my question is, can i
edit or have any sort of control over that parameter? Sometimes this
inquirie lasts forever (Over a minute) and causes a functional problem in
the application that im developing since i only receive the list of
discovered macaddress´s once the inquiry complete event arrives. At work
where we have a lot of bluetooth devices from mobiles to headsets,laptops ,
keyboards ...etc ...the inquirie process can take more then 5 minutes and
sometimes it doesnt finish, i have to cancel it manually.

Thank you
Regards
Artur

On 12/8/05, Steven Singer <steven.singer@csr.com> wrote:
>
> Artur Almeida wrote:
> >  The Bt specification says that once you send a inquiry request, you
> should
> > get all the responses +-11 seconds. Many times i send an inquiry and it
> > lasts a lot more then that (Sometimes it goes over a minute). Can
> someone
> > explain how can i limit the inquiry time to the 11 sec window? Why does
> this
> > happens?  Also, where can i find a detailed document with all the
> features
> > and parameters of the hciconfig?
>
> I think the way the spec phrases it is that you must inquire for at least
> 10.24 seconds to have a good probability of picking up all devices.
> However, it doesn't say that the inquiry process will stop after 10.24
> seconds. The host specifies how long it wants to inquire for in one of
> the parameters to HCI_Inquiry. If the host says to inquire for 30
> seconds (or whatever) then the chip quite happily will.
>
> hcidump -X -V should reveal the parameters to the HCI_Inquiry command.
> From there you should be able to work out how long the chip has been
> told to inquire for.
>
>         - Steven
> --
>
>
> This message has been scanned for viruses by BlackSpider MailControl -
> www.blackspider.com
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>

[-- Attachment #2: Type: text/html, Size: 3079 bytes --]

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

* Re: [Bluez-devel] Inquiry Time
  2005-12-10 18:55   ` Artur Almeida
@ 2005-12-10 19:05     ` Marcel Holtmann
  0 siblings, 0 replies; 7+ messages in thread
From: Marcel Holtmann @ 2005-12-10 19:05 UTC (permalink / raw)
  To: bluez-devel

Hi Artur,

>  Thank you for your email, that clear my doubt. Now my question is,
> can i edit or have any sort of control over that parameter? Sometimes
> this inquirie lasts forever (Over a minute) and causes a functional
> problem in the application that im developing since i only receive the
> list of discovered macaddress=C2=B4s once the inquiry complete event
> arrives. At work where we have a lot of bluetooth devices from mobiles
> to headsets,laptops , keyboards ...etc ...the inquirie process can
> take more then 5 minutes and sometimes it doesnt finish, i have to
> cancel it manually.=20

from the HCI you can't have unlimited length for an inquiry. The default
value is 10 seconds and then after 10 seconds the inquiry complete event
will be send by the chip. If it lasts 5 minutes then something else is
wrong here. What about sending in a "hcidump -X -V -t" to prove what you
are observing.

Regards

Marcel




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

end of thread, other threads:[~2005-12-10 19:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-07 13:03 [Bluez-devel] Inquiry Time Artur Almeida
2005-12-07 13:13 ` Marcel Holtmann
2005-12-08  0:33   ` Artur Almeida
2005-12-08  5:43     ` Marcel Holtmann
2005-12-08 12:14 ` Steven Singer
2005-12-10 18:55   ` Artur Almeida
2005-12-10 19:05     ` 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).