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

NFC module seems to be disconnected and does not work anymore #152

Open
drstil opened this issue Nov 10, 2024 · 0 comments
Open

NFC module seems to be disconnected and does not work anymore #152

drstil opened this issue Nov 10, 2024 · 0 comments

Comments

@drstil
Copy link

drstil commented Nov 10, 2024

Since I have done the update to version 0.4.1 (from version 0.3.1 or 0.3.11) I have issues with NFC module becomes not available anymore and only a restart (of HomeKey-ESP32) could make the scanning available again. This happens after a lot of hours or sometime after few days, but did not find any reproducible for this. I also checked the serial logs, but nothing really reproducible is seen. Once I had the following in the logs:

...
(12548969) MAIN: nfc thread entry > *** PASSIVE TARGET DETECTED ***
(12549167) HKAuthCtx: HKAuthenticationContext > Initialization Time: 171 ms
(12549355) HKAuthCtx: authenticate > Endpoint authenticated, transaction took 187 ms 
(12549367) MAIN: nfc thread entry › Total Time (detection→>auth=>gpio->mgtt): 396 ms
(12550145) MAIN: nfc thread entry > *** PASSIVE TARGET DETECTED ***
(12550340) HKAuthCtx: HKAuthenticationContext › Initialization Time: 169 ms
(12550553) PN532: Status code indicates an error
(12550554) HKAuthCtx: authenticate › Response not valid, something went wrong!
(12550556) MAIN: nfc_thread_entry > We got status FlowFailed, matt untouched!
(13594472) MAIN: nfc thread entry > *** PASSIVE TARGET DETECTED ***
(13594480) PN532 SPI: Received Error Frame - TFI: 7f CMD:81
(13594481) PN532: STATUS NFC: -5
(13594481) MAIN: nfc_thread_entry > Invalid Response, probably not Homekey, publishing target's UID
(13956020) PN532_SPI: PN532:: INVALID HEADER

I also tried with higher log levels for both HomeSpan and HomeKey, but could not get anything.

Not available means, that the HomeKey web interface is reachable, but when scanning a nfc tag, nothing is happening (in the serial logs).
I tried different NFC modules (all same manufacturer (Elechouse)), but all lead to same issue. I think this is all information I could give.

Any ideas, what could cause the issue?

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

1 participant