BBC:microbit like pairing implementation on nRF52840-PDK


Vikrant More <vikrant8051@...>
 

In this video, user directly enter PIN from BBC:microbit for pairing.


https://www.youtube.com/watch?v=L54Sp2DZibA
In this video, user add pattern first & then enter PIN to pair.

What is pros & cons in these two styles of pairing ?

----------------------------------------------------------------------------------------------------------------------------------------
In both cases. user transform microbit into pairing mode.

What is significance behind it ? Is it help to device enter into factory reset mode ?

As per current Zephyr implementation, we can do pairing without goes into pairing mode.
----------------------------------------------------------------------------------------------------------------------------------------

By using combination of,

 1. BT_GATT_PERM_WRITE_AUTHEN
 2. BT_GATT_PERM_WRITE_ENCRYPT
 3. BT_GATT_PERM_READ_AUTHEN
 4. BT_GATT_PERM_READ_ENCRYPT

we could block Guest users to access certain characteristics & allow only Admin to access them
(who has paired with the Device)

If I do OOB pairing using Device Serial Terminal, it works as expected but after Device reboot I have to do it again to access admin characteristic.

There should be some variable which I have to store on device flash after Pairing & have to reinitialize them on every reboot.
But there is no any demo examples or documentations which shows what to save on flash.
I think this is what I want but this much is not sufficient for noob like me to implementation it with actual products.
----------------------------------------------------------------------------------------------------------------------------------------

Thank You !!










Join users@lists.zephyrproject.org to automatically receive all group messages.