F_Wr_Bin - Unitech MR350 MKII Software Manual

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

Advertisement

3.24

F_WR_BIN

This function writes data to a transparent EF. When secure messaging is used the function dose not
accept this 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_WR_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
1:SECURE
: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:implicit select
2 = No card
7 = see SW1-SW2
33

Advertisement

Table of Contents
loading

Table of Contents