Comments (10)
I am also having same issue. IRQ is not working
from rfid.
Also need that for my project... Have already tried some code but the datasheet says too little about it..
from rfid.
It seems that the irq pin is deactivated by default.
I looked into the data sheet and I think you need to set bits in register ComIEnReg. Page 39 table 26 says something how the irq pin can be triggered and which events can generate a signal.
But I do not know which events/bits are useful.
from rfid.
I've set those bits but neither one seems to be related to the presence of the card...
from rfid.
I too would really appreciate an example showing how to enable the IRQ output on RC522s
from rfid.
Interrupt functions are controlled with DivIEnReg, DivIrqReg, ComIEnReg, ComIrqReg registers. But there is no any example or detailed explanation about that.
from rfid.
I know that I never managed to get it working, I tried for a few hours and my scope was able to trigger on the signal from IRQ but it looked to be such a minute change that an MCU would never be able to trigger on it. Would really appreciate someone sharing how to get it working as IRQ would make this peripheral much more handy.
Thanks
from rfid.
After spending a day experimenting and mulling over the spec, I believe that the interrupt behavior is not there to indicate any card is in the field but instead to assist with communications with the device/card. The drivers that I looked at poll on specific bits that indicate either the communication completed, the buffer is almost full, or almost empty, timed out, errored out, etc. IE. when sending or receiving data from the card the driver must check the status, assuming it would work properly one could wait on a conditional that was set by the interrupt handler instead of polling in a tight loop.
I was looking to see if there might be some trick that could be played, but I'm at the end and am conceding to polling on the interface.
I know that the pin is actually connected and will go high/low. Setting it to DivIEnReg to 0x84 (set the pin to CMOS push/pull and enable DivIEnReg had an effect, but its not related to a card in the field and resets at a regular interval.
It's too bad since its chewing up alot cycles checking on my system.
from rfid.
Hello all
Somebody has already figured out this issue?
I would appreciate any help :)
from rfid.
As mentioned in the README there is an example how you can use/enable irq. The library it self do not use irq. The irq can be used to interact with the rfid send/receive queue (and some other events), but nothing really useful. The lib just use a easy pull mechanism for send and receive.
@albertoVGitHub What issue? I think you didn't read the thread?
from rfid.
Related Issues (20)
- Compile error with Arduino ESP32 release 2.0.8 HOT 5
- WARNING: Communication failure, is the MFRC522 properly connected? what is the problem?
- RC522 Mini Not Work vs RC522 Normal HOT 5
- How to get 5 bytes UID ? HOT 3
- Help i can't get the RC522 module for RFID to work. HOT 4
- Card Avaliable Function
- RFID tag shows lines "-----" instead of actual values
- Example "Minimal-SPI" does not compile HOT 1
- "the ordered comparison of pointer with integer zero" Fix for RP2040 (earlephilhower core > 3.3x)
- Help! How does the uid data is return to the buffer array in PICC_Select
- Help me? ARDUINO RC522
- Missing L1 on Hardware - please help what typ to insert...
- CardReader do not detect new cards
- Unable to read a known version from the rc522. Getting 0x89 HOT 1
- rc522 not working on esp8266 HOT 1
- Can't read payload data
- Change default factory Key
- FIRMWARE ERROR HOT 1
- Incorrect if statement on UID + BCC byte size HOT 5
- MinimalInterrupt.ino not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rfid.