From: Vinicius Costa Gomes <vinicius.gomes@intel.com>
To: "Johan Hedberg" <johan.hedberg@gmail.com>,
"François Beaufort" <beaufort.francois@gmail.com>
Cc: Marcel Holtmann <marcel@holtmann.org>,
Szymon Janc <szymon.janc@codecoup.pl>,
linux-bluetooth@vger.kernel.org
Subject: Re: Unknown Connection Identifier
Date: Mon, 30 Nov 2015 20:20:38 -0200 [thread overview]
Message-ID: <877fkz5du1.fsf@intel.com> (raw)
In-Reply-To: <20151130105141.GA12764@t440s.lan>
Hi Johan,
Johan Hedberg <johan.hedberg@gmail.com> writes:
> Hi Fran=C3=A7ois,
>
> On Mon, Nov 30, 2015, Fran=C3=A7ois Beaufort wrote:
>> >> < HCI Command: LE Create Connection (0x08|0x000d) plen 25
>> >> [hci0] 15.669171
>> >> Scan interval: 60.000 msec (0x0060)
>> >> Scan window: 30.000 msec (0x0030)
>> >
>> > we might should have the LE Create Connection scan with a full duty
>> > cycle here. So it does not miss any advertising PDUs.
>>
>> Is this something the Linux Bluetooth team is going to address?
>
> I think this alone might fix the issue you're seeing. Could you please
> try the patch I just sent and see if it solves the issue for you:
>
> Bluetooth: Use continuous scanning when creating LE connections
I ended up with the same problem using the 4.3 kernel.
The patch seems to solve the issue, and could perhaps be submitted to
-stable.
I gave it a few tries trying to connect to a Parrot Flower Power, and
got into a situation that may indicate a possible race condition:
(this line: '< HCI Command: LE Create Connection Cancel... ')
< HCI Command: LE Set Scan Parameters (0x08|0x000b) plen 7 =
[hci0] 20.602345
Type: Passive (0x00)
Interval: 60.000 msec (0x0060)
Window: 30.000 msec (0x0030)
Own address type: Public (0x00)
Filter policy: Ignore not in white list (0x01)
> HCI Event: Command Complete (0x0e) plen 4 =
[hci0] 20.603330
LE Set Scan Parameters (0x08|0x000b) ncmd 1
Status: Success (0x00)
< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2 =
[hci0] 20.603348
Scanning: Enabled (0x01)
Filter duplicates: Enabled (0x01)
> HCI Event: Command Complete (0x0e) plen 4 =
[hci0] 20.604339
LE Set Scan Enable (0x08|0x000c) ncmd 1
Status: Success (0x00)
> HCI Event: LE Meta Event (0x3e) plen 36 =
[hci0] 21.508266
LE Advertising Report (0x02)
Num reports: 1
Event type: Connectable undirected - ADV_IND (0x00)
Address type: Public (0x00)
Address: A0:14:3D:08:B5:36 (PARROT SA)
Data length: 24
Flags: 0x06
LE General Discoverable Mode
BR/EDR Not Supported
128-bit Service UUIDs (partial): 1 entry
39e1fa00-84a8-11e2-afba-0002a5d5c51b
RSSI: -59 dBm (0xc5)
< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2 =
[hci0] 21.508332
Scanning: Disabled (0x00)
Filter duplicates: Disabled (0x00)
> HCI Event: Command Complete (0x0e) plen 4 =
[hci0] 21.510342
LE Set Scan Enable (0x08|0x000c) ncmd 1
Status: Success (0x00)
< HCI Command: LE Create Connection (0x08|0x000d) plen 25 =
[hci0] 21.510396
Scan interval: 60.000 msec (0x0060)
Scan window: 60.000 msec (0x0060)
Filter policy: White list is not used (0x00)
Peer address type: Public (0x00)
Peer address: A0:14:3D:08:B5:36 (PARROT SA)
Own address type: Public (0x00)
Min connection interval: 50.00 msec (0x0028)
Max connection interval: 70.00 msec (0x0038)
Connection latency: 0x0000
Supervision timeout: 420 msec (0x002a)
Min connection length: 0.000 msec (0x0000)
Max connection length: 0.000 msec (0x0000)
> HCI Event: Command Status (0x0f) plen 4 =
[hci0] 21.512248
LE Create Connection (0x08|0x000d) ncmd 1
Status: Success (0x00)
< HCI Command: LE Create Connection Cancel (0x08|0x000e) plen 0 =
[hci0] 23.512098
> HCI Event: LE Meta Event (0x3e) plen 19 =
[hci0] 23.514370
LE Connection Complete (0x01)
Status: Success (0x00)
Handle: 64
Role: Master (0x00)
Peer address type: Public (0x00)
Peer address: A0:14:3D:08:B5:36 (PARROT SA)
Connection interval: 67.50 msec (0x0036)
Connection latency: 0.00 msec (0x0000)
Supervision timeout: 420 msec (0x002a)
Master clock accuracy: 0x05
@ Device Connected: A0:14:3D:08:B5:36 (1) flags 0x0000
02 01 06 11 06 1b c5 d5 a5 02 00 ba af e2 11 a8 ................
84 00 fa e1 39 02 ff 03 ....9...
> HCI Event: Command Complete (0x0e) plen 4 =
[hci0] 23.519286
LE Create Connection Cancel (0x08|0x000e) ncmd 1
Status: Command Disallowed (0x0c)
< HCI Command: LE Read Remote Used Features (0x08|0x0016) plen 2 =
[hci0] 23.519347
Handle: 64
> HCI Event: Command Status (0x0f) plen 4 =
[hci0] 23.520302
LE Read Remote Used Features (0x08|0x0016) ncmd 1
Status: Success (0x00)
> HCI Event: LE Meta Event (0x3e) plen 12 =
[hci0] 23.632256
LE Read Remote Used Features (0x04)
Status: Success (0x00)
Handle: 64
Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
LE Encryption
< ACL Data TX: Handle 64 flags 0x00 dlen 11 =
[hci0] 23.632361
SMP: Pairing Request (0x01) len 6
IO capability: NoInputNoOutput (0x03)
OOB data: Authentication data not present (0x00)
Authentication requirement: Bonding, No MITM, SC, No Keypresses (0x=
09)
Max encryption key size: 16
Initiator key distribution: EncKey Sign LinkKey (0x0d)
Responder key distribution: EncKey IdKey Sign LinkKey (0x0f)
>
> Johan
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth=
" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
Cheers,
--
Vinicius
next prev parent reply other threads:[~2015-11-30 22:20 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-23 14:43 Unknown Connection Identifier François Beaufort
2015-11-23 17:43 ` Marcel Holtmann
2015-11-23 18:23 ` Szymon Janc
2015-11-24 9:24 ` François Beaufort
2015-11-24 11:00 ` Marcel Holtmann
2015-11-24 12:05 ` François Beaufort
2015-11-30 7:43 ` François Beaufort
2015-11-30 7:44 ` François Beaufort
2015-11-30 10:51 ` Johan Hedberg
2015-11-30 22:20 ` Vinicius Costa Gomes [this message]
2015-11-30 22:31 ` Marcel Holtmann
2015-11-30 17:55 ` Marcel Holtmann
2015-12-01 8:41 ` Johan Hedberg
2015-12-02 7:37 ` Marcel Holtmann
2015-12-02 8:52 ` Johan Hedberg
2015-12-02 17:54 ` 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=877fkz5du1.fsf@intel.com \
--to=vinicius.gomes@intel.com \
--cc=beaufort.francois@gmail.com \
--cc=johan.hedberg@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=marcel@holtmann.org \
--cc=szymon.janc@codecoup.pl \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.