2005-11-11 19:33:44

by Pering, Trevor

[permalink] [raw]
Subject: RE: [Bluez-users] sniff mode

Thanks, Marcel. See the output below. It says "Unsupported Feature of
Parameter value" -- so, I suppose this means either that the feature
isn't supported by my particular BT device, or that I'm getting
something wrong :-). This is a fairly new SilliconWave dongle, so I
would assume it would work... (I've also tried with other devices with
similar results).

How can I decode the features bits given by "hciconfig -a"?

The other question would be if I'm getting the parameters right, but...
I'm not quite sure how to figure that one out. I've tried a variety of
parameters, but they all end up the same.

Cheers,
Trevor


stargate93:root/ # ./hcidump -X -V &
[1] 21524
HCI sniffer - Bluetooth packet analyzer ver 1.23
device: hci0 snap_len: 1028 filter: 0xffffffff
stargate93:root/ # ./sniff=20
< HCI Command: ogf 0x02, ocf 0x0003, plen 10
00 07 02 02 01 01 01 02 03 04=20
< HCI Command: Sniff Mode (0x02|0x0003) plen 10
0000: 00 07 02 02 01 01 01 02 03 04 ..........
> HCI Event: Command Status (0x0f) plen 4
Sniff Mode (0x02|0x0003) status 0x11 ncmd 1
Error: Unsupported Feature or Parameter Value
> HCI Event: 0x0f plen 4
11 01 03 08=20

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Marcel
Holtmann
Sent: Friday, November 11, 2005 11:08 AM
To: [email protected]
Subject: Re: [Bluez-users] sniff mode

Hi Trevor,

> I'm trying to get sniff mode working between two devices. My
> understanding is that this is not directly supported by bluez
> (http://mhonarc.axis.se/bluetooth-dev/msg03437.html), so I'm trying to
> send the relevant HCI commands directly -- but I can't seem to get it
to
> work. A quick trace of all the information is below... basically, it
> seems to send the command ok, but it just comes back with an error
> (which I think I have translated to just "HCI parameter error"). Any
> thoughts on what might be going wrong? =20

run "hcidump -X -V" in the back for the decoding.

Regards

Marcel




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2005-11-14 10:27:35

by Peter Stephenson

[permalink] [raw]
Subject: Re: [Bluez-users] sniff mode

"Pering, Trevor" wrote:
> Thanks, Marcel. See the output below. It says "Unsupported Feature of
> Parameter value" -- so, I suppose this means either that the feature
> isn't supported by my particular BT device, or that I'm getting
> something wrong :-). This is a fairly new SilliconWave dongle, so I
> would assume it would work... (I've also tried with other devices with
> similar results).

If you're doing this via raw HCI, make sure you or the host stack has
sent HCI_write_link_policy_settings (or
HCI_write_default_link_policy_settings) at both ends to allow sniff
mode. I believe bluez does this if you have the hcid.conf set up
correctly.

pws


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


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2005-11-11 19:45:19

by Marcel Holtmann

[permalink] [raw]
Subject: RE: [Bluez-users] sniff mode

Hi Trevor,

> See the output below. It says "Unsupported Feature of
> Parameter value" -- so, I suppose this means either that the feature
> isn't supported by my particular BT device, or that I'm getting
> something wrong :-). This is a fairly new SilliconWave dongle, so I
> would assume it would work... (I've also tried with other devices with
> similar results).
>
> The other question would be if I'm getting the parameters right, but...
> I'm not quite sure how to figure that one out. I've tried a variety of
> parameters, but they all end up the same.

use the latest hcidump. It might decode the sniff request for you.

Regards

Marcel




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users