DL533N -PN533 NFC RFID Reader basic functions control testing script #
DL533N Reader Testing Tool is a simple software script for DL533N NFC Reader basic testing. The script provides an example of using the GPIO pins for LEDs and buzzer control. Since DL533N NFC Reader is based on NXP’s PN533 chip, to run this testing tool script, you need to install a LibNFC first.
]Software functions:
- GET_FIRMWARE command issue
- Get status registers P3CFGA P3CFGB of GPIO pin P3
- Write Register of P3 to zero
- Get status registers P7CFGA P7CFGB of GPIO pin P7
- Write Register of P3 to zero
- Get status register 6106 which is needed to obtain control of P34 GPIO
- Turn on the Green LED by issuing WriteRegister P7 with value 0x01
- Turn off the Green LED by issuing WriteRegister P7 with value 0x00
- Turn on Red LED by issuing WriteRegister P3 with value 0x20 – bit 5 GPIO P35 up
- Turn off Green LED by issuing WriteRegister P3 with value 0x00 – bit 5 GPIO P35 down
- Play sound on Buzzer by issuing WriteRegister P3 with value 0x10 – bit 4 GPIO P34 up
- Turn off sound on Buzzer by issuing WriteRegister P3 with value 0x00 – bit 4 GPIO P34 up
- Turn on both LEDs and play sound
- Change the state of GPIO pins from QUASI BI-DIRECTIONAL (default) to PUSH-PULL OUTPUT
- Reset registers to default values.
Available programming languages:
- executable software tool
Supported operating systems, platforms, and environments:
- Cross-platform
Supported hardware:
- DL533N Series Devices
Software respiratory | Description |
DL533N |
DL533 Series NFC RFID Readers testing script. |
1. DL533N Reader Testing Tool – Getting Started #
Download: DL533N
To implement the DL533N Reader Testing Tool, you need to download and install the LibNFC first. Download and extract the LibNFC package, and start the installation following the provided instructions.
The DL533N testing script requires the libNFC pn53x-tamashell executable.
For more details on the register manipulation, search for the PN533 chip technical documentation on the NXP Semiconductors official website.
2. DL533N Reader Testing Tool – Script Installation #
The DL533N Reader Testing Tool requires no installation
Simply download and extract the DL533N script pack.
After you have successfully installed LibNFC as described in the previous step, run pn53x-tamashell as follows:
./pn53x-tamashell testGPIO_dl533_short
Notice: The testGPIO_dl533_short is the script executable filename.
2. DL533N Reader Testing Tool – Run The Script #
The script is commented so you can interactively follow the events. After each performed step, the script is paused for 500 ms.
The testing is performed as follows:
- GET_FIRMWARE command issue
- Get status registers P3CFGA P3CFGB of GPIO pin P3
- Write Register of P3 to zero
- Get status registers P7CFGA P7CFGB of GPIO pin P7
- Write Register of P3 to zero
- Get status register 6106 which is needed to obtain control of P34 GPIO
- Turn on the Green LED by issuing WriteRegister P7 with value 0x01
- Turn off the Green LED by issuing WriteRegister P7 with value 0x00
- Turn on Red LED by issuing WriteRegister P3 with value 0x20 – bit 5 GPIO P35 up
- Turn off Green LED by issuing WriteRegister P3 with value 0x00 – bit 5 GPIO P35 down
- Play sound on Buzzer by issuing WriteRegister P3 with value 0x10 – bit 4 GPIO P34 up
- Turn off sound on Buzzer by issuing WriteRegister P3 with value 0x00 – bit 4 GPIO P34 up
- Turn on both LEDs and play sound
- Change the state of GPIO pins from QUASI BI-DIRECTIONAL (default) to PUSH-PULL OUTPUT
- Reset registers to default values.