2005-02-15 14:19:21

by Catalin Drula

[permalink] [raw]
Subject: [Bluez-devel] hci_cmd_task: hci0 command tx timeout

Hi,

While using a COM One Bluetooth USB dongle, after a random
amount of time, the device becomes unresponsive (no HCI
commands are accepted). The only solution is to physically
remove the dongle and re-insert it.

The system is Fedora Core 3, kernel version 2.6.10-1.741_FC3.

These are the relevant messages from /var/log/messages:

Feb 15 14:20:22 corse kernel: usb 2-2: new full speed USB device using
uhci_hcd and address 7
Feb 15 14:22:02 corse kernel: hci_cmd_task: hci0 command tx timeout

Also, here is the output of hcidump -i hci0 -x before the crash occurs:

> HCI Event: Connect Complete (0x03) plen 11
00 28 00 3E 17 39 EE 02 00 01 00
< ACL data: handle 0x0028 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 4097 scid 0x0041
< ACL data: handle 0x0028 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 4097 scid 0x0040
< HCI Command: Inquiry Cancel (0x01|0x0002) plen 0
< HCI Command: Disconnect (0x01|0x0006) plen 3
28 00 13
< HCI Command: Write Scan Enable (0x03|0x001a) plen 1
00

As you can see the last three commands get no answers.

Here's (the relevant parts of) the output of lsmod:

Module Size Used by
dtl1_cs 11845 3
l2cap 26053 3
pcmcia 20805 5 dtl1_cs
dm_mod 55509 0
ac 4805 0
joydev 9217 0
hci_usb 15041 3
bluetooth 48069 7 dtl1_cs,l2cap,hci_usb
yenta_socket 19137 1
pcmcia_core 50817 3 dtl1_cs,pcmcia,yenta_socket
uhci_hcd 31321 0
hw_random 5717 0

I have read that this behavior might be caused by the loss of
syncronization between the host and the device. Is there any way to fix this?

Thanks,
Catalin




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


2005-02-21 23:26:49

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] hci_cmd_task: hci0 command tx timeout

Hi Catalin,

> While using a COM One Bluetooth USB dongle, after a random
> amount of time, the device becomes unresponsive (no HCI
> commands are accepted). The only solution is to physically
> remove the dongle and re-insert it.
>
> The system is Fedora Core 3, kernel version 2.6.10-1.741_FC3.
>
> These are the relevant messages from /var/log/messages:
>
> Feb 15 14:20:22 corse kernel: usb 2-2: new full speed USB device using
> uhci_hcd and address 7
> Feb 15 14:22:02 corse kernel: hci_cmd_task: hci0 command tx timeout
>
> Also, here is the output of hcidump -i hci0 -x before the crash occurs:
>
> > HCI Event: Connect Complete (0x03) plen 11
> 00 28 00 3E 17 39 EE 02 00 01 00
> < ACL data: handle 0x0028 flags 0x02 dlen 12
> L2CAP(s): Connect req: psm 4097 scid 0x0041
> < ACL data: handle 0x0028 flags 0x02 dlen 12
> L2CAP(s): Connect req: psm 4097 scid 0x0040
> < HCI Command: Inquiry Cancel (0x01|0x0002) plen 0
> < HCI Command: Disconnect (0x01|0x0006) plen 3
> 28 00 13
> < HCI Command: Write Scan Enable (0x03|0x001a) plen 1
> 00
>
> As you can see the last three commands get no answers.
>
> Here's (the relevant parts of) the output of lsmod:
>
> Module Size Used by
> dtl1_cs 11845 3
> l2cap 26053 3
> pcmcia 20805 5 dtl1_cs
> dm_mod 55509 0
> ac 4805 0
> joydev 9217 0
> hci_usb 15041 3
> bluetooth 48069 7 dtl1_cs,l2cap,hci_usb
> yenta_socket 19137 1
> pcmcia_core 50817 3 dtl1_cs,pcmcia,yenta_socket
> uhci_hcd 31321 0
> hw_random 5717 0
>
> I have read that this behavior might be caused by the loss of
> syncronization between the host and the device. Is there any way to fix this?

show us the content of /proc/bus/usb/devices and you should try to load
the hci_usb driver with isoc=0 to disable the ISOC transfers. What does
lspci say about your USB host controller?

Regards

Marcel




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