* BLE LECC Connect - ERROR - LECC fails after failing once
@ 2016-12-06 21:51 Sanjay Chadha
2016-12-07 8:11 ` Johan Hedberg
0 siblings, 1 reply; 2+ messages in thread
From: Sanjay Chadha @ 2016-12-06 21:51 UTC (permalink / raw)
To: linux-bluetooth
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, =
=A0BLE2 is
advertising=20
2. central> hcitool lecc BLE1 fails since BLE is OFF =20
Example:
> hcitool lecc =A000: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.=20
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?
Regards,
=A0=A0=A0 Sanjay
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: BLE LECC Connect - ERROR - LECC fails after failing once
2016-12-06 21:51 BLE LECC Connect - ERROR - LECC fails after failing once Sanjay Chadha
@ 2016-12-07 8:11 ` Johan Hedberg
0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2016-12-07 8:11 UTC (permalink / raw)
To: Sanjay Chadha; +Cc: linux-bluetooth
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-12-07 8:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-06 21:51 BLE LECC Connect - ERROR - LECC fails after failing once Sanjay Chadha
2016-12-07 8:11 ` Johan Hedberg
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).