Skip to contentSkip to conversation

command tx timeout and continuous inquiry.

Bluez-devel Giannis Georgalis 1 participant 1 message Sep 14, 2003 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hello,

I have a thread doing an hci_inquiry() all the time, while at the same time another thread is talking to other bluetooth devices via l2cap connections. Additionally, I do an IREQ_CACHE_FLUSH every 20 - 30 seconds.

This whole scheme works fine most of the time, but as the time passes I get a lot of:

hci_acl_tx_to: hci0 ACL tx timeout
hci_acl_tx_to: hci0 killing stalled ACL connection 36:55:05:02:90:00
hci_cmd_task: hci0 command tx timeout

and the hci_inquiry() fails with errno set to "Device or resource busy".

Additionaly, there are times that hci_inquiry() cannot discover the other bt devices (all running bluez). And even sometimes an l2cap connection cannot be established.

Note that I'm using a 3COM (3CREB96) usb bluetooth device, a vanilla 2.4.22 kernel and libbluetooth 2.4-1 (debian unstable).

Firstly, I want to ask whether this behavior should be "expected" in an environment that makes "heavy" use of the bluetooth resources. In any case, how can this effect be minimized ? Any hints/pointers are highly appreciated.

Secondly, I want to ask what the optimal call frequency (and arguments) of hci_inquiry() should be in order to obtain "consistent" results from it, when it is used in a while (1) {} loop.

Thank you,
Giannis

Signature · 13 lines
question = ( to ) ? be : ! be;
                -- Wm. Shakespeare



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel