public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] Error connecting after inquiry
Date: Thu, 12 Apr 2007 22:13:59 +0200	[thread overview]
Message-ID: <1176408839.7049.35.camel@violet> (raw)
In-Reply-To: <1d49725d0704121242j7a278668gbea98b7bbc145b0b@mail.gmail.com>

Hi Donnie,

> We've narrowed the problem down to the hci_remote_name call - if we
> filter on device class alone, and never request the name, the
> connection works.  Are there any connections opened by hci_remote_name
> that need to be explicitly closed?  Would checking device class alone
> be sufficient?  From what I've read, device class is determined by
> capabilities, and isn't guaranteed to be unique to the Wiimote. 

the remote name request creates a temporary baseband connection and in
that case no other connection request will succeed. Reducing the timeout
for the remote name function is not helping here since it won't send the
remote name cancel in case of a timeout. This is probably a bug in the
library, but also not easy to handle since that command is not always
available.

So first of all you should only request the name for devices with the
correct class (since the others don't matter at all). Then you need to
use a bigger timeout. The name request can take some time. The baseband
needs to page the other side.

Other than that you can add a sleep(1) re-try the connect if it failed.

Regards

Marcel



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

  reply	other threads:[~2007-04-12 20:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-12 19:42 [Bluez-devel] Error connecting after inquiry Donnie Smith
2007-04-12 20:13 ` Marcel Holtmann [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-04-14 16:01 Donnie Smith
2007-04-18 23:49 ` Marcel Holtmann
2007-04-12  3:05 Donnie Smith
2007-04-12  7:46 ` Marcel Holtmann

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=1176408839.7049.35.camel@violet \
    --to=marcel@holtmann.org \
    --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