F_Upd_Bin - Unitech MR350 MKII Software Manual

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

Advertisement

3.21

F_UPD_BIN

This function updates data in a transparent EF. When secure messaging is used the
dose not accept this command of length greater than the communication
Compatible with ISO7816 or Gemplus command set
IS7816
if class = normal
Genplus if class = secure
Function call
Void F_UPD_BIN( S_UPD_BIN* );
Data structure of S_UPD_BIN
typedef struct
{
int Class;
int Mode;
unsigned char ShortId;
int Offset;
int UpdateLen;
unsigned char UpdData[MaxDATA];
int IdOk;
unsigned char Sw12[2];
unsigned char CRYin[3];
unsigned char CRYout[3];
} S_UPD_BIN;
Input parameter :
Class
Mode
ShortId
Offset
UpdateLen
UpdData[]
Output parameter : This function updates the following parameters.
IdOk
Sw12[]
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.
:holds data to replace exist file contents.
: 0 = OK
1 = Timeout
; 3 = EDC error
5 = Parity error
:SW1-SW2
:CRYcks 2,1,0 only for secure message
:CRYcks 7,6,5 only for secure message
1:SECURE
1:implicit select
2 = No card
7 = see SW1-SW2
30
function
buffer size(64 bytes).

Advertisement

Table of Contents
loading

Table of Contents