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

Introduce timeout on DESfire operations #98

Merged
merged 1 commit into from
Dec 11, 2018
Merged

Conversation

manu0402
Copy link

There are a few reasons why an NFC operation may timeout, including
the pn533 USB toggle bit bug. In that case it helps to report the
problem to calling process so that it can retry operation, instead
of hanging forever.

For instance, mifare_desfire_format_picc() may make the chip
unresponsive (see commit 91d3ff9),
but if calling process gets ETIMEDOUT, it can select_application,
authenticate and format_picc again, with some success.

There are a few reasons why an NFC operation may timeout, including
the pn533 USB toggle bit bug. In that case it helps to report the
problem to calling process so that it can retry operation, instead
of hanging forever.

For instance, mifare_desfire_format_picc() may make the chip
unresponsive (see commit 91d3ff9),
but if calling process gets ETIMEDOUT, it can select_application,
authenticate and format_picc again, with some success.
@smortex smortex merged commit 4deb8c9 into nfc-tools:master Dec 11, 2018
@smortex
Copy link
Contributor

smortex commented Dec 11, 2018

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

3 participants