F_Set_Sc - Unitech MR350 MKII Software Manual

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

Advertisement

3.20

F_SET_SC

This function unlocks/changes a secret code in the secret code file under the currently selected DF.
There is no limit to the number of times that a secret code can be unlocked/changed.
Compatible with ISO7816 or Gemplus command set
Genplus
Function call
void F_SET_SC( S_SET_SC* );
Data structure of S_SET_SC
typedef struct
{
int Class;
int Mode;
int CodeNum;
unsigned char ChkValue[8];
unsigned char NewValue[8];
int IdOk;
unsigned char Sw12[2];
} S_SET_SC;
Input parameter :
Class
Mode
CodeNum
ChkValue[]
NewValue[] :holds new code value
Output parameter : This function updates the following parameters.
IdOk
Sw12[]
:0:NORMAL
:0:change secret code
:code number 0-7 only.
:holds Previous/unlock code
: 0 = OK
1 = Timeout
; 3 = EDC error
5 = Parity error
:SW1-SW2
1:SECURE
1:unlock code
2 = No card
7 = see SW1-SW2
29

Advertisement

Table of Contents
loading

Table of Contents