keever50 opened a new issue, #15942: URL: https://github.com/apache/nuttx/issues/15942
### Description / Steps to reproduce the issue **Summary** The PN532 driver for NFC/RFID tag reading appears incomplete, undocumented, and unreliable. It exhibits multiple issues, including incorrect UID readings, broken timeout handling, and limitations on UID length. **Environment** Hardware: PN532 NFC reader via SPI MCUs tested: STM32F4, Raspberry Pi Pico (with added local driver support) Test code: [Pastebin link](https://pastebin.com/kirXhWUL) **--Issues Observed--** **Incorrect UID Readings** The first byte of the UID is unique, but the rest remain the same across all NFC tags. This suggests a possible bug in the driver’s UID parsing or response handling. **Polling for New Cards Fails** When polling for new NFC cards, the driver frequently returns timeout errors. Timeout settings appear to be non-functional. **UID Length Restriction** The driver only returns 4-byte UIDs, whereas the PN532 is capable of providing longer UIDs. **Concerns and Next Steps** The driver is very old and poorly documented, making it difficult to diagnose and fix issues. I have previously written a PN532 driver with similar (or more) functionality. Given the state of this driver, would it make more sense to fix these issues or port my own driver instead? ### On which OS does this issue occur? [OS: Linux] ### What is the version of your OS? Arch Linux x86_64, Kernel: 6.13.4-arch1-1 ### NuttX Version Master ### Issue Architecture [Arch: all] ### Issue Area [Area: Drivers] ### Host information _No response_ ### Verification - [x] I have verified before submitting the report. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org