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
- Python 3.5+
- Download PN532 Python
Steps to emulate NDEF with PN532
- Enter script and install requirement.
cd script
pip install -r requirements.txt
- Connect PN532 to the device and run the cli
cd script
python pn532_cli_main.py
- Connect PN532 in the cli
hw connect
- Start Emulate NTAG
ntag emulate --uri https://pn532killer.com