-
Notifications
You must be signed in to change notification settings - Fork 251
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
TagReader keeps failing on reading DG2 from older dutch passport. #206
Comments
iOS invalidates the NFC session after a certain time out. How ReadId can read it quicker (to avoid this issue) I do not know. It also isn't only Dutch passports, but there are more documents that are slow enough that the entire transaction takes too long. |
True! Sorry for the confusion, I should have been clearer. The log that I shared repeats itself about 3 or 4 times at "Reading DG2...". It seems like the package is having trouble reading the DG2 data from passports of these years and keeps retrying before iOS invalidates it. (I also updated my description) |
The method to read a datagroup is to sent a select-command. That command is then followed by 1 or many read-command. After the first read command, the first bytes are read to see how long the DataGroup is and based on that it will repeatedly sent more read-commands. The read-command only reads 160 bytes in your case. DG2 is about 4KB, so it will do that several times. Those few lines says a lot about that "repeating":
So in your case, it would have repeated that for another 22 times if iOS didn't "Invalidate Session". As much as I would love this fixed and know how to either make iOS not do that or how to make it read quicker (or the reading handling this and reconnecting and continuing where it left off), nothing in that log is anything that shouldn't happen. It isn't retrying! |
aha, thanks for the explanation. |
Hi Andy,
I've encountered an issue with NFC reader:
I consistently receive a 'Session Invalidated' error when reading DG2 with Dutch passports from 2015 and 2016.
However, it works perfectly with passports from 2018.
Your assistance would be greatly appreciated!
See log for more detail:
PS: The following log repeats itself like 3-4 times when reading DG2 before I get session invalidated by user. It seems like the package is having trouble reading the DG2 of the passports from these years and keeps trying before iOS invalidates it.
The text was updated successfully, but these errors were encountered: