GithubHelp home page GithubHelp logo

Comments (10)

aki263 avatar aki263 commented on June 18, 2024

I am also having same issue. IRQ is not working

from rfid.

gnrcampos avatar gnrcampos commented on June 18, 2024

Also need that for my project... Have already tried some code but the datasheet says too little about it..

from rfid.

Rotzbua avatar Rotzbua commented on June 18, 2024

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.

gnrcampos avatar gnrcampos commented on June 18, 2024

I've set those bits but neither one seems to be related to the presence of the card...

from rfid.

t3chguy avatar t3chguy commented on June 18, 2024

I too would really appreciate an example showing how to enable the IRQ output on RC522s

from rfid.

oozel avatar oozel commented on June 18, 2024

Interrupt functions are controlled with DivIEnReg, DivIrqReg, ComIEnReg, ComIrqReg registers. But there is no any example or detailed explanation about that.

from rfid.

t3chguy avatar t3chguy commented on June 18, 2024

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.

jphgross avatar jphgross commented on June 18, 2024

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.

albertoVGitHub avatar albertoVGitHub commented on June 18, 2024

Hello all
Somebody has already figured out this issue?
I would appreciate any help :)

from rfid.

Rotzbua avatar Rotzbua commented on June 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.