[Solved] Emulate NDEF on PN532

PN532 can emulate as NDEF with TgInitAsTarget commands, but it can not works with just a single command, after that it also needs to use TgGetData and TgSetData commands to communicate with the reader. The code on Arduino – emulate_tag_ndef.ino requires a host controller, which is the Arduino board or some other board like ESP32 etc and connect PN532 chip with I2C. And the code is hard-compired on the hardware. Is it possible to make the PN532 Emulate NDEF Tag on HSU mode?
Yes, this is the first solution for it with Python.

Hardware Requirement

  • PN532 + USB Serial Chip such as CH340
  • All-in-one PN532 board from MTools Tec

Software Requirement

Steps to emulate NDEF with PN532

  1. Enter script and install requirement.
cd script
pip install -r requirements.txt
  1. Connect PN532 to the device and run the cli
cd script
python pn532_cli_main.py
  1. Connect PN532 in the cli
hw connect
  1. Start Emulate NTAG
ntag emulate --uri https://pn532killer.com

PN532 CLI Video

Leave a Reply

Your email address will not be published. Required fields are marked *