This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

NFC in nRF5340

Hi, I going to add NFC to nRF5340DK, but does not know from where to start NFC program ? Please, guide with required config in prj fiel, overlay file, peripheral initialization and binding, data transfer example.

thanks

Gulzar Singh 

  • Hi Gulzar

    Most of the NFC samples in the nRF Connect SDK are compatible with the nRF5340 DK, so I would suggest starting out with the sample fitting your needs the best, and start development from there. You should get a good view of what configs and peripherals are needed there.

    Best regards,

    Simon

  • Hi Simonr, I studied all the sample codes suggested by you in the link 

    . My objective is to store user credentials sent through NFC in UICR register and Flash. So, from above samples, it seems that the sample code in 

    • NFC: Writable NDEF message is suitable for this objective.  I want to store the WIFI SSID name and Password in one record, HOST and URL in second record, User Name and Password in 3rd record. Some, device specific information in UICR. SO, what you suggest about ?
  • Hi

    Yes, this should be possible indeed, either with the Writable NDEF sample or the Text record sample shows how to use the NFC tag to expose data to a polling device. You need to add this to the NFC payload. let me know if you need assistance on specifics.

    Best regards,

    Simon

  • Hi Simnor, I testes the NFC: Writable NDEF message  from sample. I observed that:

    1. When either the nRF5340DK is truned on or the NFC feature is activated on Mobile , only then it promptos for the default url link saved in this sample.

    To test the NFC working, I installed NFC Tools App in mobile. I wrote a rough text for testing and is succssfully save d aand read using NFC Tool App. Now, I want to add the wifi details: wifi accesspont name and password in a single record. What is the record type of such data ? like is it standard RTD etc ? May I save both parametrs, wifi acces name and password as a single record. 

    How may I read the saved wifie record and put in name and passowrd in individual string array programatically in SES using Zephyr library  ?

  • Hi

    There are multiple guides on how to do this already, please check out these for example. You can write the NFC data from your phone to an NFC tag as explained here or here. It should be sufficient to make a generic NFC tag application onto the nRF53.

    Best regards,

    Simon

Related