ISO 7816 part 4, section..1 2 3 4 5 6 7 8 9 annex.. A B C D E F]

For the latest version of ISO7816 part 4, please contact ISO in Switzerland.

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 RECORDSRecord in responsePosition 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)FirstRecord read
Previous (id=00)LastRecord read
First (id=00)FirstRecord read
Last (id=00)LastRecord read
Record #00ErrorUndefined
Record #EE#EE 
If not found, then error
Undefined
P1=’00’, P2=’xxxx x101′ErrorUndefined
P1=’00’, P2=’xxxx x110′ErrorUndefined
#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 RECORDSRecord in responsePosition 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)FirstFirst record
Last (id=00)LastLast record
Record #00CPUnchanged
Record #EE#EE 
If not found, then error
Unchanged
P1=’00’, P2=’xxxx x101′CP to lastUnchanged
P1=’00’, P2=’xxxx x110′Last to CPUnchanged
#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
.NET library for chip cards

with C# and VB.NET sample code for Mifare, DESFire EV1, JavaCard, KVK, eGK, SIM, PIV, CAC, HID Prox, iCLASS, SEOS and many more