linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Carl Orsborn <cjo@csr.com>
To: jt@hpl.hp.com
Cc: Marcel Holtmann <marcel@holtmann.org>,
	BlueZ mailing list <bluez-devel@lists.sourceforge.net>,
	Steven Singer <steven.singer@csr.com>
Subject: Re: [Bluez-devel] CSR firmware question...
Date: Sat, 14 Aug 2004 11:38:38 +0100	[thread overview]
Message-ID: <411DEBAE.7040700@csr.com> (raw)
In-Reply-To: <20040813180748.GB23661@bougret.hpl.hp.com>

[-- Attachment #1: Type: text/plain, Size: 1672 bytes --]

Jean Tourrilhes wrote:

>>Can you reveal what you're doing with the CSR device when
>>you suffer deadlock?  We may recognise the symptoms, and possibly
>>know of a workaround or of fixed firmware.
>>    
>>
>	Trivial deadlock :
>	initiating a connection to a device within 80ms of receiving
>incomming connection from same device. Unknown if bug is in fw or
>stack, but firmware deadlock.
>
Is the incoming connection a connection request from the remote device, or a
connection complete?

If the latter, is it from an auto-accept filter, or from your host 
accepting the connection?

This feels as though it might be from an LMP collision - one of the 
nastier elements
of the baseband specification.  When collisions occur (two devices 
initiate LMP
transactions at the "same" time) the firmware sometimes defends itself 
with lengthy
timeouts, but I'm unaware of any resulting deadlocks in current firmware.

>	Intermitent failure :
>	Initiating connection (page) within 20ms of bringing HCI
>device up. Sometime it works, sometime it doesn't.
>  
>
I assume "bringing HCI device up" means your local BT device.  The CSR
device should be ready for a single HCI command as soon as the host 
transport
is established, though to signal readiness, the device sends a NOP 
command_complete
to the host when it starts.  I don't know if your host code waits for this.

It's fairly common for host stacks to use an HCI Reset command after a 
device
has started.  I don't know if your host code does so, but this shouldn't 
matter.

You say the device sometimes doesn't work.  How does the host perceive
the command doesn't work?  Failure to respond, or command rejected?

Carl

[-- Attachment #2: Type: text/html, Size: 2290 bytes --]

      reply	other threads:[~2004-08-14 10:38 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-13  0:25 CSR firmware question Jean Tourrilhes
2004-08-13  8:31 ` [Bluez-devel] " Marcel Holtmann
2004-08-13 16:37   ` Jean Tourrilhes
2004-08-13 16:57     ` [Bluez-devel] " Marcel Holtmann
2004-08-13 22:34       ` Jean Tourrilhes
2004-08-13 23:35         ` [Bluez-devel] " Marcel Holtmann
2004-08-13 23:53           ` Jean Tourrilhes
2004-08-13 23:59             ` [Bluez-devel] " Marcel Holtmann
2004-08-13 17:02     ` David Woodhouse
2004-08-16 12:01   ` Roderick Taylor
2004-08-16  8:24     ` Marcel Holtmann
2004-08-13 10:49 ` [Bluez-devel] " Carl Orsborn
2004-08-13 18:07   ` Jean Tourrilhes
2004-08-14 10:38     ` Carl Orsborn [this message]

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=411DEBAE.7040700@csr.com \
    --to=cjo@csr.com \
    --cc=bluez-devel@lists.sourceforge.net \
    --cc=jt@hpl.hp.com \
    --cc=marcel@holtmann.org \
    --cc=steven.singer@csr.com \
    /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;
as well as URLs for NNTP newsgroup(s).