linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ users <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] hcitool scan returns wrong bdaddr
Date: Mon, 26 Nov 2007 06:38:46 +0100	[thread overview]
Message-ID: <1196055526.4217.44.camel@aeonflux> (raw)
In-Reply-To: <4749FAD6.6080403@uni-koeln.de>

Hi Paul,

> after a lot of testing, I found a (really ugly) workaround for my 
> problem, so I post it here, if someone gets the same wired problem someday:
> The verbose mode of hcidump show the right Mac while a 'hcitool scan' on 
> an other console:
> 
> # hcidump -V
> HCI sniffer - Bluetooth packet analyzer ver 1.39
> device: hci0 snap_len: 1028 filter: 0xffffffff
> < HCI Command: Inquiry (0x01|0x0001) plen 5
>     lap 0x9e8b33 len 8 num 0
>  > HCI Event: Command Status (0x0f) plen 4
>     Inquiry (0x01|0x0001) status 0x00 ncmd 1
>  > HCI Event: Inquiry Result (0x02) plen 15
>     bdaddr 00:12:EE:58:72:1C mode 1 clkoffset 0x5c3f class 0x5a0204
>  > HCI Event: Inquiry Complete (0x01) plen 1
>     status 0x00
> < HCI Command: Remote Name Request (0x01|0x0019) plen 10
>     bdaddr 02:01:00:12:EE:58 mode 0 clkoffset 0x0000 (valid)
>  > HCI Event: Command Status (0x0f) plen 4
>     Remote Name Request (0x01|0x0019) status 0x00 ncmd 1
>  > HCI Event: Remote Name Req Complete (0x07) plen 255
>     status 0x04 bdaddr 02:01:00:12:EE:58 name ''
> 
>     Error: Page Timeout
> 
> the name request fails of course with a annoying timeout.  So I make the 
> scan with python and without name checking (of course you can use 
> hcitool inq too):

if you would use the D-Bus API, then you don't have this problem.
However there was a bug in the 3.22 library that I fixed now. Install
the library from CVS and you should be good. Or use 3.21.

Regards

Marcel



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

  reply	other threads:[~2007-11-26  5:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-22 19:35 [Bluez-users] hcitool scan returns wrong bdaddr Paul Wachendorf
2007-11-25 22:44 ` Paul Wachendorf
2007-11-26  5:38   ` Marcel Holtmann [this message]
2007-11-26 10:47     ` Paul Wachendorf
2007-11-26 12:27       ` Marcel Holtmann
2007-11-26 18:31         ` Paul Wachendorf
2007-11-29  7:43           ` Dave Young
2007-11-29 20:19             ` Marcel Holtmann
2007-11-30  2:52               ` Dave Young

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=1196055526.4217.44.camel@aeonflux \
    --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).