Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No recovery from failed PN532 communication #42

Open
pnuding opened this issue Mar 24, 2024 · 4 comments
Open

No recovery from failed PN532 communication #42

pnuding opened this issue Mar 24, 2024 · 4 comments

Comments

@pnuding
Copy link

pnuding commented Mar 24, 2024

I’ve got a reader in a place with a wifi antenna, switching power supply and 230v wiring all nearby.
It was rock solid when I tried it for a week at my desk without these noisy neighbours.
But with all this interference it seems to loose the communication with the PN532 after a while and when it does it never recovers until i reset it.
In this state it’s reachable via Mqtt and works normally in HomeKit but no longer responds to nfc tags or homekeys.
I’ve managed to improve the wiring SPI placement so it now lasts a day instead of a few hours, but it would probably be a good idea to retry if SPI with the pn532 fails

@rednblkx
Copy link
Owner

Hi there!

Thank you for reporting this, it is on my list of things to improve, however, the issue is, unlike I2C there is no real way of detecting the presence of an SPI slave but there is some code trickery which can be done that i'll be looking into.

Side Note: It was actually supposed to be I2C but i had some issues with it so i picked SPI instead, i might actually try to make I2C work to see how it behaves.

@pnuding
Copy link
Author

pnuding commented Mar 26, 2024

Perhaps it's as simple as starting over with the SPI communication every now and then. That alone would make it much more robust irrespective of whether it's necessary in that moment or not

@da2001
Copy link

da2001 commented May 26, 2024

sadly i ran into the same problem. worked perfect on my desk but no it works for just some hours and than needs a "reboot".

@pnuding
Copy link
Author

pnuding commented May 26, 2024

I've managed to solve it on the hardware side here - lots of aluminium tape and moved the esp32 to a box apart from the other stuff (and some aluminium tape around the walls of the box, just in case 😆 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants