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

Use interrupts instead of hot idling #36

Closed
danielbuechele opened this issue Dec 11, 2023 · 1 comment
Closed

Use interrupts instead of hot idling #36

danielbuechele opened this issue Dec 11, 2023 · 1 comment
Labels
wontfix This will not be worked on

Comments

@danielbuechele
Copy link

Currently, when waiting for a tag, the task is put to sleep for 100ms and then activated again. The MFRC522 module has a IRQ pin and we could use an interrupt when the tag is present.

@abobija abobija added enhancement New feature or request good first issue Good for newcomers labels Dec 11, 2023
@abobija
Copy link
Owner

abobija commented Dec 11, 2023

Hi @danielbuechele

Thank you for the comment. I recall from past research that implementing interrupt-driven tag detection with the MFRC522 can be challenging due to certain limitations, so I initially opted for polling. I will revisit the details to assess if there's a viable way to integrate interrupt handling in the current setup.

👋 Edit:

I checked into using interrupts with the MFRC522, and here’s why polling is required:

Although the MFRC522 supports interrupts (like RxIRq), they only trigger after the reader receives a response from a card. For the card to respond, the reader must first send commands to initiate communication. Since the card doesn’t send data on its own, these commands need to be sent periodically, effectively meaning polling is still necessary.

Hope this clarifies!

@abobija abobija added wontfix This will not be worked on and removed enhancement New feature or request good first issue Good for newcomers labels Sep 16, 2024
@abobija abobija pinned this issue Sep 16, 2024
@abobija abobija closed this as not planned Won't fix, can't repro, duplicate, stale Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants