Linux bluetooth development
 help / color / mirror / Atom feed
From: Giannis Georgalis <jgeorgal@uoc.gr>
To: bluez-devel@lists.sourceforge.net
Subject: [Bluez-devel] command tx timeout and continuous inquiry.
Date: 15 Sep 2003 01:43:04 +0300	[thread overview]
Message-ID: <874qzf3sav.fsf@hciat-16.ics.forth.gr> (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

-- 
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
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

                 reply	other threads:[~2003-09-14 22:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874qzf3sav.fsf@hciat-16.ics.forth.gr \
    --to=jgeorgal@uoc.gr \
    --cc=bluez-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox