adonno / tagreader

Simple to build/use NFC tag reader, specially created for Home Assistant
https://adonno.com
GNU General Public License v3.0
1.13k stars 176 forks source link

Android NFC Random Tag Idea #145

Closed DedicatedF100 closed 2 years ago

DedicatedF100 commented 2 years ago

It works fine with the card that came with the reader. However every time I use the NFC on my Android phone, I get a new tag ID in Home assistant every time I touch my phone to the reader. I am using the code from this github document, and I am running the newest version of esphome. Also get This error "Can't decode message length" on each scan of the phone.

[14:42:37][D][pn532:280]: Mifare classic [14:42:37][E][nfc:058]: Error, Can't decode message length. [14:42:37][D][tagreader:120]: No NDEF [14:42:37][D][pn532:162]: Found new tag '08-EC-94-7F' [14:42:37][D][pn532:295]: Waiting to read next tag [14:42:40][D][pn532:280]: Mifare classic [14:42:40][E][nfc:058]: Error, Can't decode message length. [14:42:40][D][tagreader:120]: No NDEF [14:42:40][D][pn532:162]: Found new tag '08-4F-86-34' [14:42:40][D][pn532:295]: Waiting to read next tag [14:42:42][D][pn532:280]: Mifare classic [14:42:42][E][nfc:058]: Error, Can't decode message length. [14:42:42][D][tagreader:120]: No NDEF [14:42:42][D][pn532:162]: Found new tag '08-5D-FA-37' [14:42:42][D][pn532:295]: Waiting to read next tag

adonno commented 2 years ago

By default android changes the tag every time it gets read , it's a security feature but there are apps to prevent that behavior.

https://play.google.com/store/apps/details?id=com.maxsoft.ndeftagemulator&hl=en&gl=US