CardWerk smarter card solutions

ISO 7816-4: Annex C: Record Pointer Management

SmartCard API for .NET

Easy smart card integration with our smart card framework for .NET with C# and VB.NET sample code.

smart card API for C#

Sample code available for Mifare, DESFire, JavaCard, KVK, eGK, SIM, PIV, CAC, HID Prox/iCLASS and many more

Get SmartCard API NOW
download smart card API for C#, VB.NET and Visual Studio

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

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

[Home] | [Services] | [Solutions] | [Knowledge Base] | [Search] | [Contact]

Copyright 1999-2017 Jacquinot Consulting, Inc.
All rights reserved. Legal disclaimer Last modified August 10, 2017