Forum › MIFARE and NFC Reader IC`s › OTP data › Reply To: OTP data
Hi,
There is difference:
Exmaple 1:
Zerobits = 32 - 14 = 18 this is fine.
Example 2:
Zerobits = 32 - 5 = 27 this is wrong! as all 5 rides out of 5 are already used!!!
In Example 2 I should get initial rides count (in my case it was 5) so:
Zerobits = inital count - 5 = 5 - 5 = 0
But this logic will fail with Example 1 where I had 20 rides:
Zerobits = inital count - 14 = 20 - 14 = 6 this is wrong!
That's why I'm asking is there some place where the "behavior" of counter is defined?
BR, Maratkuls
There is difference:
Exmaple 1:
Zerobits = 32 - 14 = 18 this is fine.
Example 2:
Zerobits = 32 - 5 = 27 this is wrong! as all 5 rides out of 5 are already used!!!
In Example 2 I should get initial rides count (in my case it was 5) so:
Zerobits = inital count - 5 = 5 - 5 = 0
But this logic will fail with Example 1 where I had 20 rides:
Zerobits = inital count - 14 = 20 - 14 = 6 this is wrong!
That's why I'm asking is there some place where the "behavior" of counter is defined?
BR, Maratkuls
+ 0
|
- 0