-
Notifications
You must be signed in to change notification settings - Fork 95
card not detected #48
Comments
You are right. The reset is done unintentionally, because the state EC_NO_CARD is part of the return codes. This could be filtered out, so that no reset is done. On the other hand, if a real error occurces, the reset seems to be a good idea to get everything back to a defined state. |
Hi, thank for your response. If I send reqA command and card is not present at that time the module is not able to detect it later. So now I am searching what is wrong with the code or with the circuit. So I send reqA command and if card is not present I switch off transceive state and try it again. It seems it works reliably. |
What do you mean be sending a "reqA command"? Which library function are you using? |
REQA is an ISO-14443 comannd and implemented here: REQA = request 14443 TypeA card |
Hi, I follow AN12650 - Using PN5180 without library. in this guide there are steps to send REQA command. I am stuck on point waitForCardResponse because if the card is not present immediatelly it is not possible to read it then. |
In my fork there are some demos for ISO-14443 card polling: https://github.com/tueddy/PN5180-Library/blob/master/examples/PN5180-ISO14443/PN5180-ISO14443.ino Maybe a starting point to get rid off resetting the PN5180 and optimize polling times? |
In the examples there is nfc.reset() and nfc.setupRF() commands in the loop. I wonder to know why? The reset and setup should be only in the setup part am I right? |
If reader receives corrupted response due to card gets out of field the PN5180 can get unresponsible. @lenkapolaskova Feel free to optimize the loop to get a better/faster card recognition! |
May I ask a question? I realized that in case a card is not detected you reset module and repeat whole transaction. Why? I tried to wait for the card in "wait for data" state but card can't be detected. It seems like some kind of a workaround. Is there an issue with the module?
The text was updated successfully, but these errors were encountered: