F_Rd_Bin - Unitech MR350 MKII Software Manual

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

Advertisement

3.15

F_RD_BIN

This function is used to read a continuous block of bytes in a transparent EF. When secure
messaging is used the function dose not accept the Read command of length greater than the
communication buffer size(64 bytes).
Compatible with ISO7816 or Gemplus command set
IS7816
if class = normal
Genplus if class = secure
Function call
void F_RD_BIN( S_RD_BIN* );
Data structure of S_RD_BIN
typedef struct
{
int Class;
int Mode;
unsigned char ShortId;
int Offset;
int RbLenIn;
int IdOk;
unsigned char Sw12[2];
unsigned char Response[MaxDATA];
int RespLen;
unsigned char CRYin[3];
unsigned char CRYout[3];
} S_RD_BIN;
Input parameter :
Class
Mode
ShortId
Offset
RbLenIn
Output parameter :.
IdOk
Sw12[]
Response[]
RespLen
CRYin[]
CRYout[]
; 0=NORMAL
:0=direct select
:short EF identifier, This is needed if Mode=1.
:0000-7FFF if Mode=0, 00-FF if Mode=1.
:00-7F,data length to be read.
: 0 = OK
; 3 = EDC error
:SW1-SW2
:storage for output data
:length of out data
:Reserve
:CRYcks 7,6,5 only for secure message
1=SECURE
1=implicit select
1 = Timeout
2 = No card
5 = Parity error
7 = see SW1-SW2
24

Advertisement

Table of Contents
loading

Table of Contents