public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] hcitool bug
@ 2005-02-23 15:41 Pete Stevens
  2005-02-23 15:48 ` Stefan Behlert
  0 siblings, 1 reply; 4+ messages in thread
From: Pete Stevens @ 2005-02-23 15:41 UTC (permalink / raw)
  To: bluez-users

Hi,

This confuses me, can anyone explain why I get this?

[root@pstevens bluetooth-pc-tag]# hcitool dev
Devices:
        hci0    00:0C:76:47:6A:94

[root@pstevens bluetooth-pc-tag]# hcitool -i 00:0C:76:47:6A:94 info
00:0E:6D:13:D8:74
Requesting information ...
Get connection info failed: No such file or directory

[root@pstevens bluetooth-pc-tag]# hcitool info 00:0E:6D:13:D8:74
Requesting information ...
        BD Address:  00:0E:6D:13:D8:74
        Device Name: Nokia 7600
        LMP Version: 1.1 (0x1) LMP Subversion: 0x24d
        Manufacturer: Nokia Mobile Phones (1)
        Features: 0xbf 0x28 0x21 0x00 0x00 0x00 0x00 0x00
                <3-slot packets> <5-slot packets> <encryption> <slot offset>
                <timing accuracy> <role switch> <sniff mode> <SCO link>
                <HV3 packets> <CVSD>


If I specify the dongle by mac address it fails to get the info of the device.

For extra info

[root@pstevens bluetooth-pc-tag]# uname -a
Linux pstevens.hypertag.local 2.6.10-1.9_FC2 #1 Thu Jan 13 17:54:57 EST 2005
i686 athlon i386 GNU/Linux

[root@pstevens bluetooth-pc-tag]# hcitool --help
hcitool - HCI Tool ver 2.4


Any got any ideas why this doesn't work?

Thanks,

Pete Stevens

--
Pete Stevens
pete@ex-parrot.com
http://www.ex-parrot.com/~pete/

    People always ask me, "Where were you when Kennedy was shot?" Well, I don't
                                                                 have an alibi.
                                                                 -- Emo Philips


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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] hcitool bug
  2005-02-23 15:41 [Bluez-users] hcitool bug Pete Stevens
@ 2005-02-23 15:48 ` Stefan Behlert
  2005-02-23 16:04   ` Pete Stevens
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Behlert @ 2005-02-23 15:48 UTC (permalink / raw)
  To: bluez-users

On Feb 23, 05 15:41:45 +0000, Pete Stevens wrote:
> Hi,
> 
> This confuses me, can anyone explain why I get this?
> 
> [root@pstevens bluetooth-pc-tag]# hcitool dev
> Devices:
>         hci0    00:0C:76:47:6A:94
> 
> [root@pstevens bluetooth-pc-tag]# hcitool -i 00:0C:76:47:6A:94 info
> 00:0E:6D:13:D8:74
> Requesting information ...
> Get connection info failed: No such file or directory

> 
> [root@pstevens bluetooth-pc-tag]# hcitool info 00:0E:6D:13:D8:74
> Requesting information ...
>         BD Address:  00:0E:6D:13:D8:74

Nice. With version 2.15 this fails with me. Do you have more than one
Bluetooth dongle in your computer?
[...]

I think it has to fail, because '-i <dev>' explicitly says "send it out
using this interface" and only affects remote devices. I don't think you
should be able to ask local devices for information in this way. But I may
be wrong.

        ciao,
          Stefan

-- 
Stefan Behlert


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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] hcitool bug
  2005-02-23 15:48 ` Stefan Behlert
@ 2005-02-23 16:04   ` Pete Stevens
  2005-02-23 16:14     ` Stefan Behlert
  0 siblings, 1 reply; 4+ messages in thread
From: Pete Stevens @ 2005-02-23 16:04 UTC (permalink / raw)
  To: bluez-users

On Wed, 23 Feb 2005, Stefan Behlert wrote:

> On Feb 23, 05 15:41:45 +0000, Pete Stevens wrote:
> > Hi,
> >
> > This confuses me, can anyone explain why I get this?
> >
> > [root@pstevens bluetooth-pc-tag]# hcitool dev
> > Devices:
> >         hci0    00:0C:76:47:6A:94
> >
> > [root@pstevens bluetooth-pc-tag]# hcitool -i 00:0C:76:47:6A:94 info
> > 00:0E:6D:13:D8:74
> > Requesting information ...
> > Get connection info failed: No such file or directory
>
> >
> > [root@pstevens bluetooth-pc-tag]# hcitool info 00:0E:6D:13:D8:74
> > Requesting information ...
> >         BD Address:  00:0E:6D:13:D8:74
>
> Nice. With version 2.15 this fails with me. Do you have more than one
> Bluetooth dongle in your computer?
> [...]

At present I only have one, sometimes I have more than that.

> I think it has to fail, because '-i <dev>' explicitly says "send it out
> using this interface" and only affects remote devices. I don't think you
> should be able to ask local devices for information in this way. But I may
> be wrong.

I was under the impression I was using local device 00:0C:76:47:6A:94 to query
the remote device 00:0E:6D:13:D8:74, when I believe should succeed.

For what it's worth, it also fails if I address the device as hci0.

Pete

--
Pete Stevens
pete@ex-parrot.com
http://www.ex-parrot.com/~pete/

                      What's the differenc between a barrow boy and a dachsund?
                         The barrow boy balls his wares out, along the street..


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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] hcitool bug
  2005-02-23 16:04   ` Pete Stevens
@ 2005-02-23 16:14     ` Stefan Behlert
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Behlert @ 2005-02-23 16:14 UTC (permalink / raw)
  To: bluez-users

Moin,

On Feb 23, 05 16:04:14 +0000, Pete Stevens wrote:
> On Wed, 23 Feb 2005, Stefan Behlert wrote:
> 
> > On Feb 23, 05 15:41:45 +0000, Pete Stevens wrote:
> > > Hi,
> > >
> > > This confuses me, can anyone explain why I get this?
> > >
> > > [root@pstevens bluetooth-pc-tag]# hcitool dev
> > > Devices:
> > >         hci0    00:0C:76:47:6A:94
> > >
> > > [root@pstevens bluetooth-pc-tag]# hcitool -i 00:0C:76:47:6A:94 info
> > > 00:0E:6D:13:D8:74
> > > Requesting information ...
> > > Get connection info failed: No such file or directory
> >
> > >
> > > [root@pstevens bluetooth-pc-tag]# hcitool info 00:0E:6D:13:D8:74
> > > Requesting information ...
> > >         BD Address:  00:0E:6D:13:D8:74
> >
> > Nice. With version 2.15 this fails with me. Do you have more than one
> > Bluetooth dongle in your computer?
> > [...]
> 
> At present I only have one, sometimes I have more than that.
> 
> > I think it has to fail, because '-i <dev>' explicitly says "send it out
> > using this interface" and only affects remote devices. I don't think you
> > should be able to ask local devices for information in this way. But I may
> > be wrong.
> 
> I was under the impression I was using local device 00:0C:76:47:6A:94 to query
> the remote device 00:0E:6D:13:D8:74, when I believe should succeed.

The explanation from me is not quite right, must be the long day :) 
I've read "00:0E:6D:13:D8:74" twice :( Sorry for the confusion.
The situation you reported works fine with me here, using version 2.15. It
doesn't matter here for me if I use hci0 or the bdaddress.
I think you should update your hcitool to a newer version.

        ciao,
          Stefan

-- 
Stefan Behlert


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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:[~2005-02-23 16:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-23 15:41 [Bluez-users] hcitool bug Pete Stevens
2005-02-23 15:48 ` Stefan Behlert
2005-02-23 16:04   ` Pete Stevens
2005-02-23 16:14     ` Stefan Behlert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox