This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to use Blinking LED authentication in mesh?

Hello all,

I plan on using the blinking LED authentication in mesh configuration, I have seen the nrf mesh app video where it is done using the app but I want to achieve that using provisioner example,is this possible?

Regards,

Nakul

Parents
  • Hi Nakul,

    Do you want to have the authentication on the client & server nodes so that the node that is being provisioned blinks a certain number of times & you have to tell the provisioner example how many times the provisionee node LED blinked? How are you planning on telling the provisioner node the number of times the provisionee node blinks it's LED? By pressing a button on the provisionee the number of times that the provisionee LED blinks?

    Have you taken a look at the source code running on the Thingy:52 device? I would start there & see how the the thingy sdk has been modified to add a random number of blinks for authentication.

    Kind Regards,

    Bjørn

Reply
  • Hi Nakul,

    Do you want to have the authentication on the client & server nodes so that the node that is being provisioned blinks a certain number of times & you have to tell the provisioner example how many times the provisionee node LED blinked? How are you planning on telling the provisioner node the number of times the provisionee node blinks it's LED? By pressing a button on the provisionee the number of times that the provisionee LED blinks?

    Have you taken a look at the source code running on the Thingy:52 device? I would start there & see how the the thingy sdk has been modified to add a random number of blinks for authentication.

    Kind Regards,

    Bjørn

Children
  • Do you want to have the authentication on the client & server nodes so that the node that is being provisioned blinks a certain number of times & you have to tell the provisioner example how many times the provisionee node LED blinked?

    Yes

    How are you planning on telling the provisioner node the number of times the provisionee node blinks it's LED? By pressing a button on the provisionee the number of times that the provisionee LED blinks?

    I was thinking if this is possible using serial example..where in I can input the number onto the terminal. By the way pressing a button certain number of times is also seems like a good idea...how do I implement that?

    And yes I have seen the Thingy code for blink authentication tested it using nrf mesh app as well and I have noticed that it uses PB-GATT. What I want to achieve is implementing the same thing in normal server and client example, so for that what changes should I make in provisioner code?

  • If you want to use the serial example for this, you will most likely need to update the interactive pyaci script (e.g. creating a new copy of the script). I would recommend taking a close look at how the Thingy authenticates & blinks it's LEDs. Take a look at the provisioning_blink_output_cb() function, as well as the mesh_provisionee_prov_start() function in mesh_provisionee.c.
    I would also recommend taking a look at the nRF Mesh code on Github (for Android or iOS) to see how the authentication process works there.
    Also, if you have not tested how to provision via interactive pyACI, I would definitely recommend starting there before you implement these changes.
Related