W406-CE User’s Manual
Application Development
When the SIM card status is set to NeedPINCode (2), this function authenticates a PIN code.
Then the status will be set back to ready (0).
Class Name:
GPRS
Method:
int InputPINCode(string pin_code);
Inputs:
<pin_code> the PIN code string
Return Values:
0 on success, otherwise, the function fails
Remark:
When the SIM card status is NeedPUKCode (3), this function changes the status to
NeedPINCode (2).
If it fails, the SIM card is locked.
Class Name:
GPRS
Method:
int UnlockSIMCard(string puk_code, string new_pin_code);
Inputs:
<puk_code> the PUK passwd code string
<new_pin_code> the new PIN code string
Return Values:
0 on success, otherwise, the function fails
Remark:
Gets the PIN code enable status of the SIM card:
Class Name:
GPRS
Method:
int GetPinEnableStatus();
Inputs:
<fd> the cellular modem
Return Values:
0 : PIN code disabled
1 : PIN code enabled
otherwise, the function fails
Remark:
Gets the PIN code enable status of the SIM card.
Class Name:
GPRS
Method:
int PinEnable(string pin_code, bool enable);
Inputs:
<pin_code> the PIN code password
<enable> true to enable PIN code authentication, false to disable the PIN code authentication
Return Values:
0 on success, otherwise, the function fails
Remark:
B-17