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

Adding NFC to mesh light switch example.

Hello,

I'm using the nRF52832 DK to implement the light switch example in mesh SDK. For this example I'm using nrf mesh app as the provisioner and in this app , to add  a node to network we have to scan, identify the node and then provision. In my application, I want to use the NFC to scan and identify the node and then provision it in the app. Is there any example or documentation on how to do this?

Regards,

Sunil

  • HI Sunil, 

    In my application, I want to use the NFC to scan and identify the node and then provision it in the app.

     So do you want to do the entire provisioning process over NFC or do you want to identify the node using NFC and then perform a handover  to perform the provisioning over BLE ?

    Is there any example or documentation on how to do this?

    If its the latter, then we do not have any example or documentation for doing this with the Mesh SDK, but we do have something very similar with the nRF Thingy:52, see Connecting Thingy using NFC. You can find the source code for the Android and iOS app on GitHub, see links below

    Android-Nordic-Thingy

    IOS-Nordic-Thingy

    Best regards

    Bjørn

  • Hi Bjorn,

    I want to use NFC to identify the node and then perform provisioning over BLE.

    1. How do I enable the NFC on the DK?

    2. What are the changes that has to be made to light switch example to  use NFC for advertising?

    I have no prior experience with NFC and it would really help me if you can suggest me some example on NFC.

    Regards,

    Sunil

  • Q1: The NFC pins are enabled by default, see NFC antenna interface

    Q2: I think it will require major changes in both the light switch example as well as the mobile application to get this feature to function properly. You will have to place the Unprovisoned Beacon data in the NFC tag, then read that using the smartphone app. Then you need to modify the app to connect to the node and then start the provisioning process. I am sorry, but we do not have any guides or tutorials on how to do this. What we do have are multiple NFC examples in our SDK, see NFC examples

    Best regards

    Bjørn