* [Bluez-users] sniff & pand
2006-04-01 18:45 ` [Bluez-users] Solved (was Re: Bluetooth: pand: Connection failed. File exists(17)) Geoff Shang
@ 2006-04-06 20:22 ` Alexandre Coser Monteiro
2006-04-07 15:02 ` Steven Singer
0 siblings, 1 reply; 10+ messages in thread
From: Alexandre Coser Monteiro @ 2006-04-06 20:22 UTC (permalink / raw)
To: bluez-users
Every time I try to command sniff mode at the Slave one, in a connection made by
command <pand -s -c "address"> it failure and give this message :
< HCI Command: ogf 0x02, ocf 0x0003, plen 9
06 10 00 00 10 FF F7 00 07
> HCI Event: 0x0f plen 4
12 01 03 08
hcidump show me this :
< HCI Command: Sniff Mode (0x02|0x0003) plen 9
> HCI Event: Command Status (0x0f) plen 4
hciconfig -a show this :
hci0: Type: USB
BD Address: 00:03:C9:23:DE:B2 ACL MTU: 377:10 SCO MTU: 16:0
UP RUNNING PSCAN ISCAN
RX bytes:954701 acl:264 sco:0 events:100672 errors:0
TX bytes:606650 acl:395 sco:0 commands:100394 errors:0
Features: 0xff 0xfd 0x05 0x00 0x00 0x00 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: SNIFF
Link mode: SLAVE ACCEPT
Name: 'Broadcom BCM2033'
Class: 0x000000
Service Classes: Unspecified
Device Class: Miscellaneous,
HCI Ver: 1.1 (0x1) HCI Rev: 0x2 LMP Ver: 1.1 (0x1) LMP Subver: 0x1007
Manufacturer: Broadcom Corporation (15)
It is impossible to enter in sniff mode by a pand conection ?
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bluez-users] sniff & pand
2006-04-06 20:22 ` [Bluez-users] sniff & pand Alexandre Coser Monteiro
@ 2006-04-07 15:02 ` Steven Singer
2006-04-07 19:26 ` Alexandre Coser Monteiro
0 siblings, 1 reply; 10+ messages in thread
From: Steven Singer @ 2006-04-07 15:02 UTC (permalink / raw)
To: bluez-users
Alexandre Coser Monteiro wrote:
> < HCI Command: ogf 0x02, ocf 0x0003, plen 9
> 06 10 00 00 10 FF F7 00 07
> > HCI Event: 0x0f plen 4
> 12 01 03 08
The Command Status event shows error code 0x12 = Invalid HCI Command
Parameters.
This means that the controller didn't like one of the parameters to the
sniff mode command.
The sniff mode command you gave had the parameters:
Connection handle: 0x1006
Sniff Max Interval: 0x0000
Sniff Min Interval: 0xff10
Sniff Attempts: 0x00f7
Sniff Timeout: 0x??07
Notes:
The connection handle is invalid. The valid range is 0x0000..0x0eff
The maximum interval is invalid. The valid range is 0x0002..0xfffe
The minimum interval is invalid. The valid range is 0x0002..max
interval.
The sniff attempts is highly unusual (but not actually invalid).
The sniff timeout field is truncated, it should be two bytes.
So, it's not surprising that the controller is rejecting it.
Where is the sniff mode command being generated? How is it getting
through the BlueZ APIs to generate such an invalid event? Are the
normal APIs being bypassed and is a raw command being sent.
- Steven
--
To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: [Bluez-users] sniff & pand
@ 2006-04-07 19:07 Pering, Trevor
0 siblings, 0 replies; 10+ messages in thread
From: Pering, Trevor @ 2006-04-07 19:07 UTC (permalink / raw)
To: bluez-users
Are you sure your connection handle is right? I've seen connection
handles of 0x42 or 0x00 but nothing like 0x1006. You can find out the
connection handle with "hctiool con" after you've made the pan
connection.
I've found that getting sniff mode set up can be very fickle. depends
on firmware and other random parameters, so... can take some fiddling.=20
As far as I know BlueZ provides no direct support for sniff, and so I've
always used "hcitool cmd" to generate the sequence...
Trevor
=20
-----Original Message-----
From: bluez-users-admin@lists.sourceforge.net
[mailto:bluez-users-admin@lists.sourceforge.net] On Behalf Of Steven
Singer
Sent: Friday, April 07, 2006 8:02 AM
To: bluez-users@lists.sourceforge.net
Subject: Re: [Bluez-users] sniff & pand
Alexandre Coser Monteiro wrote:
> < HCI Command: ogf 0x02, ocf 0x0003, plen 9
> 06 10 00 00 10 FF F7 00 07
> > HCI Event: 0x0f plen 4
> 12 01 03 08 =20
The Command Status event shows error code 0x12 =3D Invalid HCI Command
Parameters.
This means that the controller didn't like one of the parameters to the
sniff mode command.
The sniff mode command you gave had the parameters:
Connection handle: 0x1006
Sniff Max Interval: 0x0000
Sniff Min Interval: 0xff10
Sniff Attempts: 0x00f7
Sniff Timeout: 0x??07
Notes:
The connection handle is invalid. The valid range is 0x0000..0x0eff
The maximum interval is invalid. The valid range is 0x0002..0xfffe
The minimum interval is invalid. The valid range is 0x0002..max
interval.
The sniff attempts is highly unusual (but not actually invalid).
The sniff timeout field is truncated, it should be two bytes.
So, it's not surprising that the controller is rejecting it.
Where is the sniff mode command being generated? How is it getting
through the BlueZ APIs to generate such an invalid event? Are the
normal APIs being bypassed and is a raw command being sent.
- Steven
--=20
To access the latest news from CSR copy this link into a web browser:
http://www.csr.com/email_sig.php
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat=3D=
121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bluez-users] sniff & pand
2006-04-07 15:02 ` Steven Singer
@ 2006-04-07 19:26 ` Alexandre Coser Monteiro
0 siblings, 0 replies; 10+ messages in thread
From: Alexandre Coser Monteiro @ 2006-04-07 19:26 UTC (permalink / raw)
To: bluez-users
Thank you for your attention Steven.
With a detailed eye in my sniff command line, I agree whith you that I introduce wrong
parameters, but I still doesn`t understand why a pand connection doesn`t accept my sniff
command line after my correction.
I`ve been introduced the sniff commando through the linux shell using hcitool
[root@helio script]# hcitool cmd 0x02 0x0003 0x00 0x06 0x00 0x8E 0x25 0x8D 0x25 0x62
0x04 0x62 0X04
< HCI Command: ogf 0x02, ocf 0x0003, plen 11
00 06 00 8E 25 8E 24 62 04 62 04
> HCI Event: 0x0f plen 4
02 01 03 08
Sniff Interval = 6 seg.
Sniff Attempt = 0.7 seg.
Connection handle: 0x0006
Sniff Max Interval: 0x258E
Sniff Min Interval: 0x258D
Sniff Attempts: 0x0062
Sniff Timeout: 0x0062
The notation for sniff command line is LSB-MSB ? How can I do sniff work in a pand
connection ?
I work with FedoraCore-3, Linux kernel 2.6.9-1.667smp and a usb bluetooth dongle BT3030
from BroadCom
Sds,
Alexandre
On Fri, 07 Apr 2006 16:02:06 +0100, Steven Singer wrote
> Alexandre Coser Monteiro wrote:
> > < HCI Command: ogf 0x02, ocf 0x0003, plen 9
> > 06 10 00 00 10 FF F7 00 07
> > > HCI Event: 0x0f plen 4
> > 12 01 03 08
>
> The Command Status event shows error code 0x12 = Invalid HCI Command
> Parameters.
>
> This means that the controller didn't like one of the parameters to the
> sniff mode command.
>
> The sniff mode command you gave had the parameters:
>
> Connection handle: 0x1006
> Sniff Max Interval: 0x0000
> Sniff Min Interval: 0xff10
> Sniff Attempts: 0x00f7
> Sniff Timeout: 0x??07
>
> Notes:
>
> The connection handle is invalid. The valid range is 0x0000..0x0eff
>
> The maximum interval is invalid. The valid range is 0x0002..0xfffe
>
> The minimum interval is invalid. The valid range is 0x0002..max
> interval.
>
> The sniff attempts is highly unusual (but not actually invalid).
>
> The sniff timeout field is truncated, it should be two bytes.
>
> So, it's not surprising that the controller is rejecting it.
>
> Where is the sniff mode command being generated? How is it getting
> through the BlueZ APIs to generate such an invalid event? Are the
> normal APIs being bypassed and is a raw command being sent.
>
> - Steven
> --
>
> To access the latest news from CSR copy this link into a web browser:
http://www.csr.com/email_sig.php
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-users
--
Sds,
Alexandre
Tel.:+55 21 9312-7293
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: [Bluez-users] sniff & pand
@ 2006-04-07 20:46 Pering, Trevor
2006-04-07 21:12 ` Alexandre Coser Monteiro
0 siblings, 1 reply; 10+ messages in thread
From: Pering, Trevor @ 2006-04-07 20:46 UTC (permalink / raw)
To: bluez-users
how are you parsing your command line? I don' tunderstand how you get
the sniff attempts (0x0062) and sniff timeout (0x0062) from your
command. Do you mean 0x0462? I parse your max interval as 0x8E00.
Double-check the *number* of arguments you have... you have 11, when you
should have 10.
Trevor
-----Original Message-----
From: bluez-users-admin@lists.sourceforge.net
[mailto:bluez-users-admin@lists.sourceforge.net] On Behalf Of Alexandre
Coser Monteiro
Sent: Friday, April 07, 2006 12:26 PM
To: bluez-users@lists.sourceforge.net
Subject: Re: [Bluez-users] sniff & pand
=20
Thank you for your attention Steven.
=20
With a detailed eye in my sniff command line, I agree whith you that I
introduce wrong
parameters, but I still doesn`t understand why a pand connection doesn`t
accept my sniff
command line after my correction.
I`ve been introduced the sniff commando through the linux shell using
hcitool
[root@helio script]# hcitool cmd 0x02 0x0003 0x00 0x06 0x00 0x8E 0x25
0x8D 0x25 0x62
0x04 0x62 0X04
< HCI Command: ogf 0x02, ocf 0x0003, plen 11
00 06 00 8E 25 8E 24 62 04 62 04
> HCI Event: 0x0f plen 4
02 01 03 08
Sniff Interval =3D 6 seg.
Sniff Attempt =3D 0.7 seg.
Connection handle: 0x0006
Sniff Max Interval: 0x258E
Sniff Min Interval: 0x258D
Sniff Attempts: 0x0062
Sniff Timeout: 0x0062
The notation for sniff command line is LSB-MSB ? How can I do sniff work
in a pand
connection ?
I work with FedoraCore-3, Linux kernel 2.6.9-1.667smp and a usb
bluetooth dongle BT3030
from BroadCom
Sds,=20
Alexandre
On Fri, 07 Apr 2006 16:02:06 +0100, Steven Singer wrote
> Alexandre Coser Monteiro wrote:
> > < HCI Command: ogf 0x02, ocf 0x0003, plen 9
> > 06 10 00 00 10 FF F7 00 07
> > > HCI Event: 0x0f plen 4
> > 12 01 03 08
>=20
> The Command Status event shows error code 0x12 =3D Invalid HCI Command
> Parameters.
>=20
> This means that the controller didn't like one of the parameters to
the
> sniff mode command.
>=20
> The sniff mode command you gave had the parameters:
>=20
> Connection handle: 0x1006
> Sniff Max Interval: 0x0000
> Sniff Min Interval: 0xff10
> Sniff Attempts: 0x00f7
> Sniff Timeout: 0x??07
>=20
> Notes:
>=20
> The connection handle is invalid. The valid range is 0x0000..0x0eff
>=20
> The maximum interval is invalid. The valid range is 0x0002..0xfffe
>=20
> The minimum interval is invalid. The valid range is 0x0002..max
> interval.
>=20
> The sniff attempts is highly unusual (but not actually invalid).
>=20
> The sniff timeout field is truncated, it should be two bytes.
>=20
> So, it's not surprising that the controller is rejecting it.
>=20
> Where is the sniff mode command being generated? How is it getting
> through the BlueZ APIs to generate such an invalid event? Are the
> normal APIs being bypassed and is a raw command being sent.
>=20
> - Steven
> --
>=20
> To access the latest news from CSR copy this link into a web browser:=20
http://www.csr.com/email_sig.php
>=20
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
> that extends applications into web and mobile media. Attend the live
webcast
> and join the prime developer group breaking into this new coding
territory!
>
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat=3D=
121642
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-users
--
Sds,
Alexandre
Tel.:+55 21 9312-7293
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat=3D=
121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: [Bluez-users] sniff & pand
2006-04-07 20:46 Pering, Trevor
@ 2006-04-07 21:12 ` Alexandre Coser Monteiro
0 siblings, 0 replies; 10+ messages in thread
From: Alexandre Coser Monteiro @ 2006-04-07 21:12 UTC (permalink / raw)
To: bluez-users
Thank you Trevor,
You rigth, but still doesn`t work. I`ve ben tried many changes of values and position
but my dongle do not enter in sniff mode. There is any objection against sniff mode and
a pand connection work together ?
#hcitool cmd 0x02 0x0003 0x00 0x06 0x8E 0x00 0x25 0x8D 0x04 0x62 0x04 0x62
< HCI Command: ogf 0x02, ocf 0x0003, plen 10
00 06 8E 00 25 8D 04 62 04 62
> HCI Event: 0x0f plen 4
02 01 03 08
#hcitool con
Connections:
> ACL 00:03:C9:23:DE:B2 handle 6 state 1 lm SLAVE
# hcidump
HCIDump - HCI packet analyzer ver 1.11
device: hci0 snap_len: 1028 filter: 0xffffffff
< HCI Command: Sniff Mode (0x02|0x0003) plen 10
> HCI Event: Command Status (0x0f) plen 4
# hciconfig -a
hci0: Type: USB
BD Address: 00:03:C9:23:DE:9F ACL MTU: 377:10 SCO MTU: 16:0
UP RUNNING PSCAN ISCAN
RX bytes:124087 acl:483 sco:0 events:449 errors:0
TX bytes:134145 acl:507 sco:0 commands:101 errors:0
Features: 0xff 0xfd 0x05 0x00 0x00 0x00 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: SNIFF
Link mode: SLAVE ACCEPT
Name: 'Broadcom BCM2033'
Class: 0x000000
Service Classes: Unspecified
Device Class: Miscellaneous,
HCI Ver: 1.1 (0x1) HCI Rev: 0x2 LMP Ver: 1.1 (0x1) LMP Subver: 0x1007
Manufacturer: Broadcom Corporation (15)
Sds,
Alexandre
On Fri, 7 Apr 2006 13:46:06 -0700, Pering, Trevor wrote
> how are you parsing your command line? I don' tunderstand how you get
> the sniff attempts (0x0062) and sniff timeout (0x0062) from your
> command. Do you mean 0x0462? I parse your max interval as 0x8E00.
> Double-check the *number* of arguments you have... you have 11, when you
> should have 10.
>
> Trevor
>
> -----Original Message-----
> From: bluez-users-admin@lists.sourceforge.net
> [mailto:bluez-users-admin@lists.sourceforge.net] On Behalf Of Alexandre
> Coser Monteiro
> Sent: Friday, April 07, 2006 12:26 PM
> To: bluez-users@lists.sourceforge.net
> Subject: Re: [Bluez-users] sniff & pand
>
> Thank you for your attention Steven.
>
> With a detailed eye in my sniff command line, I agree whith you that I
> introduce wrong
> parameters, but I still doesn`t understand why a pand connection doesn`t
> accept my sniff
> command line after my correction.
> I`ve been introduced the sniff commando through the linux shell using
> hcitool
>
> [root@helio script]# hcitool cmd 0x02 0x0003 0x00 0x06 0x00 0x8E 0x25
> 0x8D 0x25 0x62
> 0x04 0x62 0X04
> < HCI Command: ogf 0x02, ocf 0x0003, plen 11
> 00 06 00 8E 25 8E 24 62 04 62 04
> > HCI Event: 0x0f plen 4
> 02 01 03 08
>
> Sniff Interval = 6 seg.
> Sniff Attempt = 0.7 seg.
> Connection handle: 0x0006
> Sniff Max Interval: 0x258E
> Sniff Min Interval: 0x258D
> Sniff Attempts: 0x0062
> Sniff Timeout: 0x0062
>
> The notation for sniff command line is LSB-MSB ? How can I do sniff work
> in a pand
> connection ?
> I work with FedoraCore-3, Linux kernel 2.6.9-1.667smp and a usb
> bluetooth dongle BT3030
> from BroadCom
>
> Sds,
> Alexandre
>
> On Fri, 07 Apr 2006 16:02:06 +0100, Steven Singer wrote
> > Alexandre Coser Monteiro wrote:
> > > < HCI Command: ogf 0x02, ocf 0x0003, plen 9
> > > 06 10 00 00 10 FF F7 00 07
> > > > HCI Event: 0x0f plen 4
> > > 12 01 03 08
> >
> > The Command Status event shows error code 0x12 = Invalid HCI Command
> > Parameters.
> >
> > This means that the controller didn't like one of the parameters to
> the
> > sniff mode command.
> >
> > The sniff mode command you gave had the parameters:
> >
> > Connection handle: 0x1006
> > Sniff Max Interval: 0x0000
> > Sniff Min Interval: 0xff10
> > Sniff Attempts: 0x00f7
> > Sniff Timeout: 0x??07
> >
> > Notes:
> >
> > The connection handle is invalid. The valid range is 0x0000..0x0eff
> >
> > The maximum interval is invalid. The valid range is 0x0002..0xfffe
> >
> > The minimum interval is invalid. The valid range is 0x0002..max
> > interval.
> >
> > The sniff attempts is highly unusual (but not actually invalid).
> >
> > The sniff timeout field is truncated, it should be two bytes.
> >
> > So, it's not surprising that the controller is rejecting it.
> >
> > Where is the sniff mode command being generated? How is it getting
> > through the BlueZ APIs to generate such an invalid event? Are the
> > normal APIs being bypassed and is a raw command being sent.
> >
> > - Steven
> > --
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: [Bluez-users] sniff & pand
@ 2006-04-07 21:25 Pering, Trevor
2006-04-07 22:13 ` Alexandre Coser Monteiro
0 siblings, 1 reply; 10+ messages in thread
From: Pering, Trevor @ 2006-04-07 21:25 UTC (permalink / raw)
To: bluez-users
pand and sniff have nothing to do with each other -- they are handled at
different levels and are so (in my understanding) relatively
independent.=20
Can you do a role switch with the device? That might have some effect.
Numbers are LSB/MSB, so I think you have the order of your connection
handle bytes reversed.
The exact sequence that works for me is:
hcitool cmd 0x02 0x0003 0x06 0x00 0x80 0x00 0x40 0x00 0x02 0x00 0x08
0x00
Trevor
-----Original Message-----
From: bluez-users-admin@lists.sourceforge.net
[mailto:bluez-users-admin@lists.sourceforge.net] On Behalf Of Alexandre
Coser Monteiro
Sent: Friday, April 07, 2006 2:13 PM
To: bluez-users@lists.sourceforge.net
Subject: RE: [Bluez-users] sniff & pand
Thank you Trevor,
You rigth, but still doesn`t work. I`ve ben tried many changes of
values and position
but my dongle do not enter in sniff mode. There is any objection against
sniff mode and
a pand connection work together ?
#hcitool cmd 0x02 0x0003 0x00 0x06 0x8E 0x00 0x25 0x8D 0x04 0x62 0x04
0x62
< HCI Command: ogf 0x02, ocf 0x0003, plen 10
00 06 8E 00 25 8D 04 62 04 62
> HCI Event: 0x0f plen 4
02 01 03 08
#hcitool con
Connections:
> ACL 00:03:C9:23:DE:B2 handle 6 state 1 lm SLAVE
# hcidump
HCIDump - HCI packet analyzer ver 1.11
device: hci0 snap_len: 1028 filter: 0xffffffff
< HCI Command: Sniff Mode (0x02|0x0003) plen 10
> HCI Event: Command Status (0x0f) plen 4
# hciconfig -a
hci0: Type: USB
BD Address: 00:03:C9:23:DE:9F ACL MTU: 377:10 SCO MTU: 16:0
UP RUNNING PSCAN ISCAN
RX bytes:124087 acl:483 sco:0 events:449 errors:0
TX bytes:134145 acl:507 sco:0 commands:101 errors:0
Features: 0xff 0xfd 0x05 0x00 0x00 0x00 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: SNIFF
Link mode: SLAVE ACCEPT
Name: 'Broadcom BCM2033'
Class: 0x000000
Service Classes: Unspecified
Device Class: Miscellaneous,
HCI Ver: 1.1 (0x1) HCI Rev: 0x2 LMP Ver: 1.1 (0x1) LMP Subver:
0x1007
Manufacturer: Broadcom Corporation (15)
Sds,
Alexandre
On Fri, 7 Apr 2006 13:46:06 -0700, Pering, Trevor wrote
> how are you parsing your command line? I don' tunderstand how you get
> the sniff attempts (0x0062) and sniff timeout (0x0062) from your
> command. Do you mean 0x0462? I parse your max interval as 0x8E00.
> Double-check the *number* of arguments you have... you have 11, when
you
> should have 10.
>=20
> Trevor
>=20
> -----Original Message-----
> From: bluez-users-admin@lists.sourceforge.net
> [mailto:bluez-users-admin@lists.sourceforge.net] On Behalf Of
Alexandre
> Coser Monteiro
> Sent: Friday, April 07, 2006 12:26 PM
> To: bluez-users@lists.sourceforge.net
> Subject: Re: [Bluez-users] sniff & pand
>=20
> Thank you for your attention Steven.
>=20
> With a detailed eye in my sniff command line, I agree whith you that
I
> introduce wrong
> parameters, but I still doesn`t understand why a pand connection
doesn`t
> accept my sniff
> command line after my correction.
> I`ve been introduced the sniff commando through the linux shell
using
> hcitool
>=20
> [root@helio script]# hcitool cmd 0x02 0x0003 0x00 0x06 0x00 0x8E 0x25
> 0x8D 0x25 0x62
> 0x04 0x62 0X04
> < HCI Command: ogf 0x02, ocf 0x0003, plen 11
> 00 06 00 8E 25 8E 24 62 04 62 04
> > HCI Event: 0x0f plen 4
> 02 01 03 08
>=20
> Sniff Interval =3D 6 seg.
> Sniff Attempt =3D 0.7 seg.
> Connection handle: 0x0006
> Sniff Max Interval: 0x258E
> Sniff Min Interval: 0x258D
> Sniff Attempts: 0x0062
> Sniff Timeout: 0x0062
>=20
> The notation for sniff command line is LSB-MSB ? How can I do sniff
work
> in a pand
> connection ?
> I work with FedoraCore-3, Linux kernel 2.6.9-1.667smp and a usb
> bluetooth dongle BT3030
> from BroadCom
>=20
> Sds,=20
> Alexandre
>=20
> On Fri, 07 Apr 2006 16:02:06 +0100, Steven Singer wrote
> > Alexandre Coser Monteiro wrote:
> > > < HCI Command: ogf 0x02, ocf 0x0003, plen 9
> > > 06 10 00 00 10 FF F7 00 07
> > > > HCI Event: 0x0f plen 4
> > > 12 01 03 08
> >=20
> > The Command Status event shows error code 0x12 =3D Invalid HCI =
Command
> > Parameters.
> >=20
> > This means that the controller didn't like one of the parameters to
> the
> > sniff mode command.
> >=20
> > The sniff mode command you gave had the parameters:
> >=20
> > Connection handle: 0x1006
> > Sniff Max Interval: 0x0000
> > Sniff Min Interval: 0xff10
> > Sniff Attempts: 0x00f7
> > Sniff Timeout: 0x??07
> >=20
> > Notes:
> >=20
> > The connection handle is invalid. The valid range is
0x0000..0x0eff
> >=20
> > The maximum interval is invalid. The valid range is 0x0002..0xfffe
> >=20
> > The minimum interval is invalid. The valid range is 0x0002..max
> > interval.
> >=20
> > The sniff attempts is highly unusual (but not actually invalid).
> >=20
> > The sniff timeout field is truncated, it should be two bytes.
> >=20
> > So, it's not surprising that the controller is rejecting it.
> >=20
> > Where is the sniff mode command being generated? How is it getting
> > through the BlueZ APIs to generate such an invalid event? Are the
> > normal APIs being bypassed and is a raw command being sent.
> >=20
> > - Steven
> > --
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat=3D=
121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: [Bluez-users] sniff & pand
2006-04-07 21:25 [Bluez-users] sniff & pand Pering, Trevor
@ 2006-04-07 22:13 ` Alexandre Coser Monteiro
2006-04-18 20:42 ` Steven Singer
0 siblings, 1 reply; 10+ messages in thread
From: Alexandre Coser Monteiro @ 2006-04-07 22:13 UTC (permalink / raw)
To: bluez-users
EUREKA, EUREKA, it is working, it is working !!!!! You are right it is just a reversed
sequence of MSB/LSB, but I didn`t find it write in any where.
Thank you for your help !
On Fri, 7 Apr 2006 14:25:25 -0700, Pering, Trevor wrote
> pand and sniff have nothing to do with each other -- they are handled at
> different levels and are so (in my understanding) relatively
> independent.
>
> Can you do a role switch with the device? That might have some effect.
>
> Numbers are LSB/MSB, so I think you have the order of your connection
> handle bytes reversed.
>
> The exact sequence that works for me is:
>
> hcitool cmd 0x02 0x0003 0x06 0x00 0x80 0x00 0x40 0x00 0x02 0x00 0x08
> 0x00
>
> Trevor
>
> -----Original Message-----
> From: bluez-users-admin@lists.sourceforge.net
> [mailto:bluez-users-admin@lists.sourceforge.net] On Behalf Of Alexandre
> Coser Monteiro
> Sent: Friday, April 07, 2006 2:13 PM
> To: bluez-users@lists.sourceforge.net
> Subject: RE: [Bluez-users] sniff & pand
>
> Thank you Trevor,
>
> You rigth, but still doesn`t work. I`ve ben tried many changes of
> values and position
> but my dongle do not enter in sniff mode. There is any objection against
> sniff mode and
> a pand connection work together ?
>
> #hcitool cmd 0x02 0x0003 0x00 0x06 0x8E 0x00 0x25 0x8D 0x04 0x62 0x04
> 0x62
> < HCI Command: ogf 0x02, ocf 0x0003, plen 10
> 00 06 8E 00 25 8D 04 62 04 62
> > HCI Event: 0x0f plen 4
> 02 01 03 08
>
> #hcitool con
> Connections:
> > ACL 00:03:C9:23:DE:B2 handle 6 state 1 lm SLAVE
> # hcidump
> HCIDump - HCI packet analyzer ver 1.11
> device: hci0 snap_len: 1028 filter: 0xffffffff
> < HCI Command: Sniff Mode (0x02|0x0003) plen 10
> > HCI Event: Command Status (0x0f) plen 4
>
> # hciconfig -a
> hci0: Type: USB
> BD Address: 00:03:C9:23:DE:9F ACL MTU: 377:10 SCO MTU: 16:0
> UP RUNNING PSCAN ISCAN
> RX bytes:124087 acl:483 sco:0 events:449 errors:0
> TX bytes:134145 acl:507 sco:0 commands:101 errors:0
> Features: 0xff 0xfd 0x05 0x00 0x00 0x00 0x00 0x00
> Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
> Link policy: SNIFF
> Link mode: SLAVE ACCEPT
> Name: 'Broadcom BCM2033'
> Class: 0x000000
> Service Classes: Unspecified
> Device Class: Miscellaneous,
> HCI Ver: 1.1 (0x1) HCI Rev: 0x2 LMP Ver: 1.1 (0x1) LMP Subver:
> 0x1007
> Manufacturer: Broadcom Corporation (15)
>
> Sds,
> Alexandre
>
> On Fri, 7 Apr 2006 13:46:06 -0700, Pering, Trevor wrote
> > how are you parsing your command line? I don' tunderstand how you get
> > the sniff attempts (0x0062) and sniff timeout (0x0062) from your
> > command. Do you mean 0x0462? I parse your max interval as 0x8E00.
> > Double-check the *number* of arguments you have... you have 11, when
> you
> > should have 10.
> >
> > Trevor
> >
> > -----Original Message-----
> > From: bluez-users-admin@lists.sourceforge.net
> > [mailto:bluez-users-admin@lists.sourceforge.net] On Behalf Of
> Alexandre
> > Coser Monteiro
> > Sent: Friday, April 07, 2006 12:26 PM
> > To: bluez-users@lists.sourceforge.net
> > Subject: Re: [Bluez-users] sniff & pand
> >
> > Thank you for your attention Steven.
> >
> > With a detailed eye in my sniff command line, I agree whith you that
> I
> > introduce wrong
> > parameters, but I still doesn`t understand why a pand connection
> doesn`t
> > accept my sniff
> > command line after my correction.
> > I`ve been introduced the sniff commando through the linux shell
> using
> > hcitool
> >
> > [root@helio script]# hcitool cmd 0x02 0x0003 0x00 0x06 0x00 0x8E 0x25
> > 0x8D 0x25 0x62
> > 0x04 0x62 0X04
> > < HCI Command: ogf 0x02, ocf 0x0003, plen 11
> > 00 06 00 8E 25 8E 24 62 04 62 04
> > > HCI Event: 0x0f plen 4
> > 02 01 03 08
> >
> > Sniff Interval = 6 seg.
> > Sniff Attempt = 0.7 seg.
> > Connection handle: 0x0006
> > Sniff Max Interval: 0x258E
> > Sniff Min Interval: 0x258D
> > Sniff Attempts: 0x0062
> > Sniff Timeout: 0x0062
> >
> > The notation for sniff command line is LSB-MSB ? How can I do sniff
> work
> > in a pand
> > connection ?
> > I work with FedoraCore-3, Linux kernel 2.6.9-1.667smp and a usb
> > bluetooth dongle BT3030
> > from BroadCom
> >
> > Sds,
> > Alexandre
> >
> > On Fri, 07 Apr 2006 16:02:06 +0100, Steven Singer wrote
> > > Alexandre Coser Monteiro wrote:
> > > > < HCI Command: ogf 0x02, ocf 0x0003, plen 9
> > > > 06 10 00 00 10 FF F7 00 07
> > > > > HCI Event: 0x0f plen 4
> > > > 12 01 03 08
> > >
> > > The Command Status event shows error code 0x12 = Invalid HCI Command
> > > Parameters.
> > >
> > > This means that the controller didn't like one of the parameters to
> > the
> > > sniff mode command.
> > >
> > > The sniff mode command you gave had the parameters:
> > >
> > > Connection handle: 0x1006
> > > Sniff Max Interval: 0x0000
> > > Sniff Min Interval: 0xff10
> > > Sniff Attempts: 0x00f7
> > > Sniff Timeout: 0x??07
> > >
> > > Notes:
> > >
> > > The connection handle is invalid. The valid range is
> 0x0000..0x0eff
> > >
> > > The maximum interval is invalid. The valid range is 0x0002..0xfffe
> > >
> > > The minimum interval is invalid. The valid range is 0x0002..max
> > > interval.
> > >
> > > The sniff attempts is highly unusual (but not actually invalid).
> > >
> > > The sniff timeout field is truncated, it should be two bytes.
> > >
> > > So, it's not surprising that the controller is rejecting it.
> > >
> > > Where is the sniff mode command being generated? How is it getting
> > > through the BlueZ APIs to generate such an invalid event? Are the
> > > normal APIs being bypassed and is a raw command being sent.
> > >
> > > - Steven
> > > --
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bluez-users] sniff & pand
2006-04-07 22:13 ` Alexandre Coser Monteiro
@ 2006-04-18 20:42 ` Steven Singer
2006-04-18 21:27 ` Steven Singer
0 siblings, 1 reply; 10+ messages in thread
From: Steven Singer @ 2006-04-18 20:42 UTC (permalink / raw)
To: bluez-users
Alexandre Coser Monteiro wrote:
> EUREKA, EUREKA, it is working, it is working !!!!! You are right it is just a reversed
> sequence of MSB/LSB, but I didn`t find it write in any where.
Then you've not been looking very hard.
Since you're sending raw commands, bypassing BlueZ and talking directly
to the controller, perhaps you should read the HCI specification.
Bluetooth 2.0 + EDR spec, volume 3, part E, section 5.2, page 375:
* Unless noted otherwise, all parameter values are sent and received
in Little Endian format
- Steven
--
To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bluez-users] sniff & pand
2006-04-18 20:42 ` Steven Singer
@ 2006-04-18 21:27 ` Steven Singer
0 siblings, 0 replies; 10+ messages in thread
From: Steven Singer @ 2006-04-18 21:27 UTC (permalink / raw)
To: bluez-users
Steven Singer wrote:
> Bluetooth 2.0 + EDR spec, volume 3, part E, section 5.2, page 375:
Oops, I meant volume 2. They're numbered from 0.
- Steven
--
To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2006-04-18 21:27 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-07 21:25 [Bluez-users] sniff & pand Pering, Trevor
2006-04-07 22:13 ` Alexandre Coser Monteiro
2006-04-18 20:42 ` Steven Singer
2006-04-18 21:27 ` Steven Singer
-- strict thread matches above, loose matches on Subject: below --
2006-04-07 20:46 Pering, Trevor
2006-04-07 21:12 ` Alexandre Coser Monteiro
2006-04-07 19:07 Pering, Trevor
[not found] <Pine.LNX.4.64.0603181246420.738@data.home>
2006-04-01 18:45 ` [Bluez-users] Solved (was Re: Bluetooth: pand: Connection failed. File exists(17)) Geoff Shang
2006-04-06 20:22 ` [Bluez-users] sniff & pand Alexandre Coser Monteiro
2006-04-07 15:02 ` Steven Singer
2006-04-07 19:26 ` Alexandre Coser Monteiro
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).