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

Functions hang if you remove the nfc tag in the middle #1

Open
Alabate opened this issue Dec 24, 2016 · 3 comments
Open

Functions hang if you remove the nfc tag in the middle #1

Alabate opened this issue Dec 24, 2016 · 3 comments

Comments

@Alabate
Copy link
Owner

Alabate commented Dec 24, 2016

If you remove the tag in the middle of a transmission, function will never succeed or even fail (unless you put the original tag on the reader) and if you try to check for new tags, it will corrupt spi transmission (with pn532 via spi)

Proposed solutions:

  • Bind the nfc_abort_command to let user cancel when he want
  • Automatically abort command after a timeout, so we can have an userfriendly lib. But timeout have to be editable because transmission can be slower with some protocols.
@Alabate
Copy link
Owner Author

Alabate commented Jan 16, 2017

It seems to happend only with tag.open().

Note: ef025f6 Binds the abort command, but no automatic abort.

@antroseco
Copy link

I'm having the same issue, even without tag.open, I'm just running constantly device.listTags.
@Alabate did you find a solution other than calling abort after a timeout?

@Alabate
Copy link
Owner Author

Alabate commented Apr 3, 2018

No, you have to call abort because the communication has begun.

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

2 participants