BartDelaere / eidlib

Automatically exported from code.google.com/p/eidlib
0 stars 0 forks source link

Reading of card somehow slow. #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Read information from the card.
2.
3.

What is the expected output? What do you see instead?
Although it is not really a defect, it is rather annoying. On Windows 
computers when reading multiple files after each other, the select file 
command of the next file throws a PCSCException with an UnknownError with 
ID 0x6F7. When having written a Thread.sleep(500) at the end of the read 
File command, the error does not occur. I think this has something to do 
with the read command giving control back to the application too soon 
which causes upstream data to collide with the downstream data. 

I don't think I can do anything about it. The defect is also not really a 
defect, but more a cumbersome slow-down. I can however try to sharpen the 
time to sleep, but this could cause the library not to work on certain 
PC's that read the data slower. 

I could also advise to use Linux ^_^.

Original issue reported on code.google.com by kristof....@gmail.com on 7 Sep 2008 at 9:42

GoogleCodeExporter commented 8 years ago
When reading the data on the card, some file on the card can be read up to 2 or 
3 
times. (ex: Reading IDData, the read certificates to validate IDData, then read 
IDPhoto 
and Validation of IDPhoto read IDData and all certificates again)

When readFile fetch data like IDData, IDPhoto or certificates from the card, it 
can 
store it (maybe in a Map) until the disconnect method is called.

This should improve global performence...

Original comment by thorgull on 9 Apr 2010 at 7:02

GoogleCodeExporter commented 8 years ago
Issue #10 should fix this.

Original comment by mcuelena...@gmail.com on 27 Dec 2011 at 4:21

GoogleCodeExporter commented 8 years ago
Hi, I have used 1.1 version and card reading is still slow, if I read the data, 
address and picture it can take upto 45 seconds to 1 minute.

Original comment by dimitri....@gmail.com on 8 Dec 2014 at 2:55