linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bluez-users] Inconsistencies in hcitool inq output
@ 2006-01-23  1:50 jwright
  2006-01-23  8:09 ` Marcel Holtmann
  2006-01-23 11:28 ` Steven Singer
  0 siblings, 2 replies; 4+ messages in thread
From: jwright @ 2006-01-23  1:50 UTC (permalink / raw)
  To: bluez-users

I've noticed inconsistencies in hcitool output for various functions including
friendly name resolution and device classification:

antimony:~ $ hcitool inq
Inquiring ...
        11:11:11:11:11:12       clock offset: 0x2caf    class: 0x3e0100
        00:02:72:47:38:FC       clock offset: 0x60c3    class: 0x020300
        00:60:57:AD:D0:6B       clock offset: 0x691c    class: 0x500204
        00:02:EE:6E:72:D3       clock offset: 0x1a0e    class: 0x500204
antimony:~ $ hcitool inq --flush
Inquiring ...
        00:02:EE:6E:72:D3       clock offset: 0x1a0f    class: 0x500204
        11:11:11:11:11:12       clock offset: 0x2caf    class: 0x3e0100
        00:02:72:47:38:FC       clock offset: 0x60c3    class: 0x020300
        00:60:57:AD:D0:6B       clock offset: 0x691d    class: 0x500204
antimony:~ $

In the 1st scan, the device at 00:02:72:47:38:fc is identified with the same
class information as the device at 00:60:57:ad:d0:6b.  In the 2nd scan a few
seconds later, the device is is correctly identified with a class of 0x020300.

Any thoughts on why this happens, or recommendations for troubleshooting? 
Unfortunately, I didn't catch this with hcidump. :(

Thanks,

-Josh


-------------------------------------------------------
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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] Inconsistencies in hcitool inq output
  2006-01-23  1:50 [Bluez-users] Inconsistencies in hcitool inq output jwright
@ 2006-01-23  8:09 ` Marcel Holtmann
  2006-01-23 11:28 ` Steven Singer
  1 sibling, 0 replies; 4+ messages in thread
From: Marcel Holtmann @ 2006-01-23  8:09 UTC (permalink / raw)
  To: bluez-users

Hi Josh,

> I've noticed inconsistencies in hcitool output for various functions including
> friendly name resolution and device classification:
> 
> antimony:~ $ hcitool inq
> Inquiring ...
>         11:11:11:11:11:12       clock offset: 0x2caf    class: 0x3e0100
>         00:02:72:47:38:FC       clock offset: 0x60c3    class: 0x020300
>         00:60:57:AD:D0:6B       clock offset: 0x691c    class: 0x500204
>         00:02:EE:6E:72:D3       clock offset: 0x1a0e    class: 0x500204
> antimony:~ $ hcitool inq --flush
> Inquiring ...
>         00:02:EE:6E:72:D3       clock offset: 0x1a0f    class: 0x500204
>         11:11:11:11:11:12       clock offset: 0x2caf    class: 0x3e0100
>         00:02:72:47:38:FC       clock offset: 0x60c3    class: 0x020300
>         00:60:57:AD:D0:6B       clock offset: 0x691d    class: 0x500204
> antimony:~ $
> 
> In the 1st scan, the device at 00:02:72:47:38:fc is identified with the same
> class information as the device at 00:60:57:ad:d0:6b.  In the 2nd scan a few
> seconds later, the device is is correctly identified with a class of 0x020300.
> 
> Any thoughts on why this happens, or recommendations for troubleshooting? 
> Unfortunately, I didn't catch this with hcidump. :(

this might be a kernel bug or it might be hardware problem. What device
are you using?

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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] Inconsistencies in hcitool inq output
  2006-01-23  1:50 [Bluez-users] Inconsistencies in hcitool inq output jwright
  2006-01-23  8:09 ` Marcel Holtmann
@ 2006-01-23 11:28 ` Steven Singer
  2006-01-23 19:48   ` Joshua Wright
  1 sibling, 1 reply; 4+ messages in thread
From: Steven Singer @ 2006-01-23 11:28 UTC (permalink / raw)
  To: bluez-users

jwright@hasborg.com wrote:
> antimony:~ $ hcitool inq
> Inquiring ...
>         11:11:11:11:11:12       clock offset: 0x2caf    class: 0x3e0100
>         00:02:72:47:38:FC       clock offset: 0x60c3    class: 0x020300
>         00:60:57:AD:D0:6B       clock offset: 0x691c    class: 0x500204
>         00:02:EE:6E:72:D3       clock offset: 0x1a0e    class: 0x500204
> antimony:~ $ hcitool inq --flush
> Inquiring ...
>         00:02:EE:6E:72:D3       clock offset: 0x1a0f    class: 0x500204
>         11:11:11:11:11:12       clock offset: 0x2caf    class: 0x3e0100
>         00:02:72:47:38:FC       clock offset: 0x60c3    class: 0x020300
>         00:60:57:AD:D0:6B       clock offset: 0x691d    class: 0x500204
> antimony:~ $
> 
> In the 1st scan, the device at 00:02:72:47:38:fc is identified with the same
> class information as the device at 00:60:57:ad:d0:6b.  In the 2nd scan a few
> seconds later, the device is is correctly identified with a class of 0x020300.

Huh. I'm confused. Your description doesn't match your log. If we gather
the results together by device address using:

sort | awk '/clock offset/ {if (a != $1) {printf "\n%s", $1}; a = $1; \
  printf " %s %s", $4, $6} END {printf "\n";}'

we get (if I label the columns):

Address           offset class    offset class
00:02:72:47:38:FC 0x60c3 0x020300 0x60c3 0x020300
00:02:EE:6E:72:D3 0x1a0e 0x500204 0x1a0f 0x500204
00:60:57:AD:D0:6B 0x691c 0x500204 0x691d 0x500204
11:11:11:11:11:12 0x2caf 0x3e0100 0x2caf 0x3e0100

The device 00:02:72:47:38:fc is identified with class 0x020300 in both
scans.

The order in which the devices are reported for the two scans is
different, but that's to be expected, as is the slight change in some
of the clock offsets.

Have I missed something? Did you accidentally post the wrong log?

	- Steven
-- 


To access the latest news from CSR copy this link into a web browser:  http://www.csr.com/email_sig.html


-------------------------------------------------------
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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] Inconsistencies in hcitool inq output
  2006-01-23 11:28 ` Steven Singer
@ 2006-01-23 19:48   ` Joshua Wright
  0 siblings, 0 replies; 4+ messages in thread
From: Joshua Wright @ 2006-01-23 19:48 UTC (permalink / raw)
  To: bluez-users

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ouch, my bad.  My eyes focused on the first 2 bytes of the BD_ADDR and I
was mesmorized by the rest. :)

Thanks,

- -Josh

Steven Singer wrote:
> Huh. I'm confused. Your description doesn't match your log. If we gather
> the results together by device address using:
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFD1TMfTS8i9jZYpL8RAnutAKC6xW5u+BiZ0uXuFVz3CHFolrgRUQCfU5CW
AjgLONW5/pE6HP0DDcCCVro=
=RmZJ
-----END PGP SIGNATURE-----


-------------------------------------------------------
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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

end of thread, other threads:[~2006-01-23 19:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-23  1:50 [Bluez-users] Inconsistencies in hcitool inq output jwright
2006-01-23  8:09 ` Marcel Holtmann
2006-01-23 11:28 ` Steven Singer
2006-01-23 19:48   ` Joshua Wright

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