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

Read speed in Mifare cards is very slow (at least for our needs) #36

Open
moylir opened this issue Sep 17, 2020 · 0 comments
Open

Read speed in Mifare cards is very slow (at least for our needs) #36

moylir opened this issue Sep 17, 2020 · 0 comments

Comments

@moylir
Copy link

moylir commented Sep 17, 2020

I've performed some tests and after optimizing as much as possible all code that does not depend on nfctools library and the best I achieve is a read done in 1.31 seconds for Mifare 1K card and 5.6 seconds for a Mifare 4K card, that, without even reading sector trailer, if not it would be worse, there are programs to read Mifare cards that do it in half of time or even better also reading sector trailer.

It has been, indeed, checked that main cause is the reader.readBlock(access)[0]; as it gives the following times to read each block, and a total that can be seen once all is read (time for that 1.31 seconds operation).

Block read in: 40.0 miliseconds
Block read in: 31.0 milisecond
Block read in: 26.0 miliseconds
Block read in: 27.0 miliseconds

[...]

After all blocks are read, the accumulated time is:

Total time accumulated: 1295.0 miliseconds

I think that it would be needed to reduce time each block takes to read by half, so, at least a decent time to read card is achieved.

Would it be possible to optimize read operation to achieve better times?

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

1 participant