NFC: TNEP poller¶
The NFC TNEP poller sample demonstrates how to use the TNEP for polling device library to exchange data using an NFC polling device.
The sample can interact with the NFC Type 4 Tag.
Initially, the sample reads the NFC Type 4 Tag and looks for the TNEP initial message. After finding it, the first service from the message is selected and the poller attempts to exchange data. Next, the service is deselected.
One of the following boards:
nRF5340 PDK board (PCA10095) - see Working with nRF5340
nRF52840 DK board (PCA10056)
nRF52 DK board (PCA10040)
NFC Reader ST25R3911B Nucleo expansion board (X-NUCLEO-NFC05A1)
NFC Type 4 Tag TNEP device
Building and running¶
This sample can be found under
samples/nfc/tnep_poller in the nRF Connect SDK folder structure.
See Building and programming a sample application for information about how to build and program the application.
After programming the sample to your board, you can test it with an NFC-A Tag device that supports NFC’s TNEP.
Connect to the board with a terminal emulator (for example, PuTTY). See How to connect with PuTTY for the required settings.
Reset the board.
Put the NFC Tag device anntena in the range of the NFC polling device. The NFC polling device selects the first service and exchanges basic data with it. After that, the service is deselected.
Observe the output in the terminal.
This sample uses the following nRF Connect SDK drivers:
This sample uses the following nRF Connect SDK libraries:
In addition, it uses the following Zephyr libraries: