PN5180 NFC help

Yes, it is because the error flag is being set, which triggers a reset of the board.
Did you do the below?

1 Like

Made some code you can test here: PN5180 ESP32 Bluetooth keyboard wedge

1 Like

Not sure what you mean. NDEF are records stored on the chip. I think you need to explain a bit more detailed what you want to achieve.

I want to open the door lock with nfc and I am using pn5180(https://www.amazon.co.uk/Semoic-Pn5180-Sensor-Iso15693-Frequency-as-shown/dp/B07V8RRXBL). But every time I bring my phone(android) closer to the sensor(pn5180), it reads a different uid, I mean the phone sending different uids to the sensor. I have a code that reads only uid. I want to enter a password that will open the door with ndef.
For example sending with different uid but same message (text)=“open” by using an app (NFC TagWriter by NXP). Thank you.

This is a function of Android. It’s called host card emulation and on certain phones it’s random every time. On other phones where the operating system has been altered by the carrier or hardware manufacturer, the UID can be static… but if your phone is random then it’s just going to be random.

3 Likes

Adding to what Amal said, I’m pretty sure there was an app or 2 that you could emulate a card with ( Fixed UID ) , but I never used it myself so i’m not 100% on that.

You could consider putting an enrolled card in your phone case, but as it will also be HF, you will have to turn off your NFC on your phone, or it will continually read it.
This shouldn’t be an issue if you don’t use your phones NFC function for things like Google Pay, Samsung Pay etc otherwise, you could get an implant :wink:

2 Likes

Following on from Pilgrimsmaster’s advice, instead of a card, you could use an nfc dot. They are the size of an AU10 cent piece, about 1.5cm diameter and can be put down the bottom of the phone so they are out of range of your phones nfc reader. I have one on my pixel which works well and causes no interference.

2 Likes

I must be missing something because I can’t manage to get any code to work, I got a few steps further, but still can’t read uid.

Anyone got a wiring schematic for it?
I’ll post what I do, I’m sure it’s something a bit off …