2007-12-20 17:08:31

by Olivier Le Pogam

[permalink] [raw]
Subject: [Bluez-devel] Creating a connection : Error: Command Disallowed

Hello,

When I try to open 3 RFCOMM connections from the same device to 3 remote ones, the first connection is OK but the 2 following give a "Error: Command Disallowed". I suspect an incorrect bluetooth parameter in my hcid.conf (lp ? lm ?)

Any hint is welcome !

PC is running a 2.6.23.12 Kernel with BlueZ 3.23

hcidump & hciconfig are below if it can help !

Thanks a lot,
Oli

------------------------------------------------------------------------

HCI sniffer - Bluetooth packet analyzer ver 1.40
device: hci0 snap_len: 1028 filter: 0xffffffff
2007-12-20 17:58:21.442414 < HCI Command: Create Connection (0x01|0x0005) plen 13
bdaddr 00:17:B0:1E:54:FD ptype 0xcc18 rswitch 0x00 clkoffset 0x0000
Packet type: DM1 DM3 DM5 DH1 DH3 DH5
2007-12-20 17:58:21.468697 > HCI Event: Command Status (0x0f) plen 4
Create Connection (0x01|0x0005) status 0x00 ncmd 1

2007-12-20 17:58:21.468711 < HCI Command: Create Connection (0x01|0x0005) plen 13
bdaddr 00:19:2D:15:FF:0E ptype 0xcc18 rswitch 0x00 clkoffset 0x0000
Packet type: DM1 DM3 DM5 DH1 DH3 DH5
2007-12-20 17:58:21.472695 > HCI Event: Command Status (0x0f) plen 4
Create Connection (0x01|0x0005) status 0x0c ncmd 1
Error: Command Disallowed

2007-12-20 17:58:21.472705 < HCI Command: Create Connection (0x01|0x0005) plen 13
bdaddr 00:16:4E:83:2D:19 ptype 0xcc18 rswitch 0x00 clkoffset 0x0000
Packet type: DM1 DM3 DM5 DH1 DH3 DH5
2007-12-20 17:58:21.476695 > HCI Event: Command Status (0x0f) plen 4
Create Connection (0x01|0x0005) status 0x0c ncmd 1
Error: Command Disallowed

------------------------------------------------------------------------

hci0: Type: USB
BD Address: 00:10:60:E8:B6:A1 ACL MTU: 384:8 SCO MTU: 64:8
UP RUNNING
RX bytes:9938 acl:157 sco:0 events:350 errors:0
TX bytes:3965 acl:148 sco:0 commands:118 errors:0
Features: 0xff 0xff 0x8f 0xfe 0x9b 0xf9 0x00 0x80
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: SNIFF
Link mode: MASTER
Name: 'BlueZ'
Class: 0x000100
Service Classes: Unspecified
Device Class: Computer, Uncategorized
HCI Ver: 2.0 (0x3) HCI Rev: 0x7a6 LMP Ver: 2.0 (0x3) LMP Subver: 0x7a6
Manufacturer: Cambridge Silicon Radio (10)


Attachments:
(No filename) (228.00 B)
(No filename) (164.00 B)
Download all attachments

2007-12-20 19:10:55

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] Creating a connection : Error: Command Disallowed

Hi Peter,

> > When I try to open 3 RFCOMM connections from the same device to 3
> > remote ones, the first connection is OK but the 2 following give a
> > "Error: Command Disallowed". I suspect an incorrect bluetooth parameter
> > in my hcid.conf (lp ? lm ?)
> >
> > Any hint is welcome !
> >
> > PC is running a 2.6.23.12 Kernel with BlueZ 3.23
> >
>
> This is probably because you start the creation of the new connection
> before the previous connection request is completed. CSR Chips do not
> allow multiple connection setups in parallel. So either wait with the next
> connection setup until the previous is compledet (either success or
> failure) or retry the connection setup when you get command disallowed
> (and it may be a good idea to sleep some 100 milliseconds before
> retrying).

actually the 2.6.23 should be able to handle (queue) multiple HCI
connect requests. I would nee the output of "hcidump -X -V" to see what
is actually going on.

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-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2007-12-20 18:17:24

by Peter Wippich

[permalink] [raw]
Subject: Re: [Bluez-devel] Creating a connection : Error: Command Disallowed


Hi Oli,

On Thu, 20 Dec 2007, Olivier Le Pogam wrote:

> Hello,
>
> When I try to open 3 RFCOMM connections from the same device to 3
> remote ones, the first connection is OK but the 2 following give a
> "Error: Command Disallowed". I suspect an incorrect bluetooth parameter
> in my hcid.conf (lp ? lm ?)
>
> Any hint is welcome !
>
> PC is running a 2.6.23.12 Kernel with BlueZ 3.23
>

This is probably because you start the creation of the new connection
before the previous connection request is completed. CSR Chips do not
allow multiple connection setups in parallel. So either wait with the next
connection setup until the previous is compledet (either success or
failure) or retry the connection setup when you get command disallowed
(and it may be a good idea to sleep some 100 milliseconds before
retrying).

Ciao,

Peter


| Peter Wippich Voice: +49 30 46776411 |
| G&W Instruments GmbH fax: +49 30 46776419 |
| Gustav-Meyer-Allee 25, Geb. 12 Email: [email protected] |
| D-13355 Berlin / Germany |


-------------------------------------------------------------------------
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-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel