F_Sel_Id - Unitech MR350 MKII Software Manual

Data collection terminal
Hide thumbs Also See for MR350 MKII:
Table of Contents

Advertisement

3.18

F_SEL_ID

This function allows you to select the Master File, a Dedicated File, or an Elementary File using its
Identifier. The Get Response command is chained to retrieve the file descriptor. This function will
set access condition register 1,2 and 3 to zero.
Compatible with ISO7816 or Gemplus command set
ISO 7816
Function call
void F_SEL_ID( S_SEL_ID* );
Data Structure of S_SEL_ID
typedef struct
{
int Type;
unsigned char IdRef[2];
int IdOk;
unsigned char Sw12[2];
unsigned char Response[40];
int RespLen;
} S_SEL_ID;
Input parameter :
Type
IdRef[]
Output parameter : This function updates the following parameters.
IdOk
Sw12[]
Response[] :File Descriptor,auto retrieve response if select command OK
RespLen
:0:MF/EF 1:DF(if MF is selected) 2:EF(under current DF)
:file identifier
: 0 = OK
; 3 = EDC error
:SW1-SW2
:holds the length of response.
// 85,10,DESCRIPTOR,84,L,NAME < 36
1 = Timeout
2 = No card
5 = Parity error
7 = see SW1-SW2
27

Advertisement

Table of Contents
loading

Table of Contents