F_Upd_Rec - Unitech MR350 MKII Software Manual

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

Advertisement

3.22

F_UPD_REC

This function updates data to a record 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_UPD_REC( S_UPD_REC* );
Data structure of S_UPD_REC
typedef struct
{
int Class;
int RecNumber;
unsigned char ShortId;
int LcLen;
unsigned char RecData[MaxDATA];
int IdOk;
unsigned char Sw12[2];
unsigned char CRYin[3];
unsigned char CRYout[3];
} S_UPD_REC;
Input parameter :
Class
RecNumber
ShortId
LcLen
RecData[]
Output parameter :
IdOk
Sw12[]
CRYin[]
CRYout[]
:0:NORMAL
1:SECURE
:0 for current record of cyclic record file
:short identifier if implcit select,0 for direct select.
:The length of record to be update.
:data
: 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
2 = No card
7 = see SW1-SW2
31

Advertisement

Table of Contents
loading

Table of Contents