ISO7816-4 Annex C: Record Pointer Management
Annex C.1 Case 1
Case 1 deals with the first command issued after a select function (either explicit or implicit). The current record pointer (CP) is undefined.
Command READ RECORDS | Record in response | Position of CP after command |
---|---|---|
Next (id=aa) | First with id=aa If not found, then error | Record read Undefined |
Previous (id=bb) | Last with id=bb If not found, then error | Record read Undefined |
First (id=cc) | First with id=cc If not found, then error | Record read Undefined |
Last (id=dd) | Last with id=dd If not found, then error | Record read Undefined |
Next (id=00) | First | Record read |
Previous (id=00) | Last | Record read |
First (id=00) | First | Record read |
Last (id=00) | Last | Record read |
Record #00 | Error | Undefined |
Record #EE | #EE If not found, then error | Undefined |
P1=’00’, P2=’xxxx x101′ | Error | Undefined |
P1=’00’, P2=’xxxx x110′ | Error | Undefined |
#jj, P2=’xxxx x101′ | #jj to last If #jj not found, then error | Undefined |
#kk, P2=’xxxx x110′ | Last to #kk If #kk not found, then error | Undefined |
Annex C.2 Case 2
Command READ RECORDS | Record in response | Position of CP after command |
---|---|---|
Next (id=aa) | Next with id=aa If no next, then error | Record read Unchanged |
Previous (id=bb) | Previous with id=bb If not found, then error | Record read Unchanged |
First (id=cc) | First with id=cc If not found, then error | Record read Unchanged |
Last (id=dd) | Last with id=dd If not found, then error | Record read Unchanged |
Next (id=00) | CP+1 If CP=last, then error | Previous CP+1 Unchanged |
Previous (id=00) | CP-1 If CP=first, then error | Previous CP-1 Unachanged |
First (id=00) | First | First record |
Last (id=00) | Last | Last record |
Record #00 | CP | Unchanged |
Record #EE | #EE If not found, then error | Unchanged |
P1=’00’, P2=’xxxx x101′ | CP to last | Unchanged |
P1=’00’, P2=’xxxx x110′ | Last to CP | Unchanged |
#jj, P2=’xxxx x101′ | #jj to last If #jj not found, then error | Unchanged |
#kk, P2=’xxxx x110′ | Last to #kk If #kk not found, then error | Unchanged |
- Easy-to-use chip card integration with .NET library
with C# and VB.NET sample code for Mifare, DESFire EV1, JavaCard, KVK, eGK, SIM, PIV, CAC, HID Prox, iCLASS, SEOS and many more