Hi Amr,
On Tue, 30 Apr 2019 at 11:00, Amr Bekhit <[email protected]> wrote:
> Hi Łukasz,
>
> Thanks for looking into this.
>
> However in logs I cannot see SMP Pairing Response, but I should see it if
> > you would use NoInputNoOutput on Nimble side as you said in previous
> email.
> > Could you confirm that you used different IO capabilities for this test?
> >
>
> Yes, for this test I had switched the device to use BLE_HS_IO_DISPLAY_ONLY.
>
Actually when looking second time into your first logs I've noticed that
BLE link was disconnected due to supervision timeout:
> HCI Event: Disconnect Complete (0x05) plen 4 #416
34.901880
Status: Success (0x00)
Handle: 64
Reason: Connection Timeout (0x08)
This is why I cannot see SMP Pairing Response there.
Wondering if this is only the BLE link which just got dropped (likely that
happen), or there is something else like some assert on Mynewt side . Can
you possibly reproduce it and show us console logs (LOG_LEVEL=0)?
>
> Once thing I did notice that was interesting - if in the NFC message, I
> don't specify the TK value and just include the device address and role,
> after touching the two devices together, Android once again asks permission
> to pair, but then brings up a dialog asking for the passkey because the
> device is configured as Display only. However, when the TK value is sent
> via NFC (as it was during the first log I sent to you), Android doesnt'
> request a passkey from the user and simply attempts to pair automatically
> and fails.
>
>
I believe that if link would not be dropped in your first test, you would
end up with same behavior.
BTW. I'm attaching here those two btsnoops you sent me for others.
I've sent you another log of the pairing process when the device does
> *not* send
> the TK value via NFC. What is the difference between the two?
>
> Amr
>
btsnoop ê âeq sj;Yý âeq vAYý b ZˆG âeq ÇKKŽû âeq Êj âeq Ë_
` 0 KŽû ( Ð âeq Õ
âeq Ѐ÷ âeq Ð˜Ö âeq Й¿>@ KŽû' Ð âeq П KŽû âeq Сö âeq!:–3KŽû âeq!:E âeq!:®¸
` 0 KŽû ( Ð âeq!:¸
âeq!DEE> @ KŽû' Ð âeq!DOð @ âeq!DRy âeq!Gω> @ âeq!GÓ,@ âeq!GÖþ âeq!GØm @ ÿÿ âeq!Hã @ Ð âeq!HZ@ âeq!H)£ âeq!JÓ@ âeq!K×+@
âeq!N‰ù>
@ Ð âeq!—Uy âeq!—YO Kwˆ�7« âeq!—Zú âeq!—]Ä �kV³±tí âeq!—_ñ@ µ§F³ípH¢Üöå¢`Rm âeq!—¬‹@ „r¡ˆ¬,èÅ>&Ÿ´¼ú âeq!—»@ Kwˆ�7«�kV³±tí âeq!—Æý@ âeq!˜@ ÀG¢ñ• «AhŸguðÂ3 âeq!˜€ @ ö•yÝòþF"f¯pÔÉ’… âeq!˜
- âeq!˜±0 @ âeq!˜Ï"@ Í7÷ ”¡S;´“Y¦bD¥ âeq!˜Ñ
@ ®¦™ÄgÁО âeq!˜ìÕ@ ï�âOìC
¿[Ý4ÀS¸ âeq!˜îc@ KŽû âeq!˜õ8@
•ö¤ˆd<áÑ#&K‹r âeq!˜÷2 âeq!˜ûÝ ´í¬½j*är âeq!™ âeq!™
'tÌÃìÙ âeq!™
ç@ -QO#º_Ëß×jY|Çë âeq!™ß @ ' ' Ð âeq!™@ ø‹'tÌÃìÙ âeq!™@ ÿ5uü`|fSlèãéH âeq!™ @ 6±ÿG0 âeq!™*@
ýe;45m{ƒ´¬çKã âeq!™8@
ÿÿ ( âeq!™Å âeq!™ùUýï�âOìC
¿[Ý4ÀS¸ KŽû âeq!™1±Uý âeq!™Añ âeq!™H, âeq!™IN @ âeq!™M âeq!™NZUý âeq!™RòUý âeq!™T7 âeq!™Z| âeq!™oà@ âeq!™�Û@ âeq!šè@
âeq!š%_@ âeq!š)$ âeq!šM”@ âeq!šN¯ @ âeq!šT
` 0 KŽû ( Ð âeq!šgS
âeq!›s½> @ KŽû' Ð âeq!›uŠUý âeq!›w·Uý âeq!›x» @ âeq!›{P âeq!Ÿ.> @ âeq!Ÿ �@ âeq!ŸT âeq!Ÿ
¢ @ ÿÿ âeq!ŸÏ @ Ð âeq!Ÿº@ ÿÿ ( âeq!Ÿî âeq!¢Œ@ 7‡�ç¤Ç«ç@Èù˜ÿfš âeq!¢H@ ÿÿ ( âeq!¢¾@ âeq!£'@ P» 2ý_n¡à@?�S]1F âeq!£€Ç@ ! ÿÿ ( âeq!¤ûù@ ! ' ¢ƒH7Ó(ÒƒÙNÐ6 �ö‚ âeq!¤þ…@ ( ÿÿ ( âeq!¥Ë‹@
âeq!¥Ì½>
@ Ð âeq!¥ë!@ ( 2
3 5 6 8 âeq!¥ì¹@ 9 ÿÿ ( âeq!¦&,@ 9 Q 0`
Ã|‘¾µD.HÌ$è âeq!¦(ƒ@ R ÿÿ ( âeq!¦@ý@ âeq!¦a‰@ R ÿÿ„ª`tRŠ‹†ÓL·ÜS� âeq!¦d@ ( âeq!¦™ó@
âeq!¦œ$@ ( âeq!¦µÑ@ âeq!¦Õæ@ ‰Ïd'q¬EˆûAñÉ,⢠âeq!¦×Û@ ( âeq!§¨@
Q$мÔc$¸†Iʸ·;O âeq!§Ó@ ( âeq!§+8@ âeq!§PÍ@
ëéô ë0V»íLz‰0á|£ âeq!§UÎ@ ( âeq!§‡é@
ÑLTIÿµGÞýÙxúB âeq!§�Î@ ( âeq!§¡/@ âeq!§Áe@
‚”‹ùΘ–‹{H)Ô$Ç¸Ö âeq!§Å/@ ( âeq!§üy@
D4k3Þ‘jHûpº9å âeq!¨@
( âeq!¨}@ âeq!¨6u@
xä*Ó<ì½çKüC3÷Ø âeq!¨:@ ( âeq!¨qC@ ï4¼—‰$º‹K^i>oÛn âeq!¨v&@ ( âeq!¨‹€@ âeq!¨«Ó@ ñ°klÓb�+L¢TFõô¯ âeq!¨¯³@ ( âeq!¨æ©@
ä–€tªL;šxL5Ë«IàÜ âeq!¨ëÿ@ ( âeq!© ã@ âeq!©!]@
ï¤ûÄf(±¾RDcþnR âeq!©&k@ ( âeq!©\K@
<
cœÉ·o@ØÜhõ�“ âeq!©cH@ ( âeq!©uü@ âeq!©– @
öìœÝ`.é°•F›.�?¸x âeq!©™ü@ ( âeq!©Ýd@
âeq!©â,@ ( âeq!ª
€@ âeq!ª*¿@
âeq!ª8¬@ ( âeq!ªc<@ QöÅ¢ŒDOFÙÍžír âeq!ªgm@ ( âeq!ª}€@ âeq!ª ^@
ªÀ…OýÆŽ K:ÜF ñ âeq!ª¥y@ ( âeq!ªØ&@
âeq!ªÜå@ ! ' ( âeq!ªòŠ@ âeq!«G@ !
âeq!«1@ ! ' ( âeq!«P%@ "