linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johan Hedberg <johan.hedberg@gmail.com>
To: Sanjay Chadha <sanjay.chadha@safetylabs.org>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: BLE LECC Connect - ERROR - LECC fails after failing once
Date: Wed, 7 Dec 2016 10:11:31 +0200	[thread overview]
Message-ID: <20161207081131.GA16551@x1c.lan> (raw)
In-Reply-To: <!&!AAAAAAAAAAAYAAAAAAAAAMjpkborkEZIvbLN1sSIOe/CgAAAEAAAAF2sISkPZUNFhZCH+mJkrfUBAAAAAA==@safetylabs.org>

Hi Sanjay,

On Tue, Dec 06, 2016, Sanjay Chadha wrote:
> We and have found this bug in LECC: Once a central fails to connect using
> LECC with a BLE peripheral the Central cannot connect to another peripheral,
> unless until the failed peripheral advertises again. | Weird but true. More
> details:
> 
> 1. Consider: Two BLE peripheral devices BLE1 & BLE2.  BLE1 is OFF,  BLE2 is
> advertising 
> 2. central> hcitool lecc BLE1 fails since BLE is OFF  
> Example:
> > hcitool lecc  00:07:80:C0:68:C7
> Could not create connection: Connection timed out
> 
> Now central does NOT connect to any BLE peripheral. This is a VERY BIG
> issue. 
> 
> 4. central> hcitool lecc BLE2 fails
> Example:
> central> hcitool lecc 00:07:80:C0:70:24
> Could not create connection: Connection timed out
> 
> When BLE1 advertises - central can LECC connect to any peripheral device 
> 
> 5. hcitool lecc BLE2 connects
> Example:
> > hcitool lecc 00:07:80:C0:70:24
> Connection handle 65
> 
> BLE central driver maintains a LECC failed connection and fails to LECC
> Connect to a peripheral device until the failed peripheral advertises.
> A weird and easy to reproduce error - takes 2 BLE devices and a few minutes.
> 
> Anybody came across this issue?

Pretty much all bets are off if you go accessing raw HCI through hcitool
like that. Do you see the same issue if you use the higher level
interfaces? (L2CAP sockets, mgmt, or even better, bluetoothd using e.g.
bluetoothctl)

If you're still seeing the issue with the higher level interfaces it'd
help to know what's happening on the HCI level. btmon should be able to
help out with that.

Johan

      reply	other threads:[~2016-12-07  8:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-06 21:51 BLE LECC Connect - ERROR - LECC fails after failing once Sanjay Chadha
2016-12-07  8:11 ` Johan Hedberg [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=20161207081131.GA16551@x1c.lan \
    --to=johan.hedberg@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=sanjay.chadha@safetylabs.org \
    /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).