W406-CE User’s Manual
Application Development
Gets the status of the SIM card.
Class Name:
GPRS
Method: SIMCardState
GetSIMCardStatus();
Inputs:
none
Return Values:
0 : ready, okay to use
1 : no sim card, (or loose)
2 : PIN, wait for the pin code for authentication
3 : PUK, three times of wrong pin codes
otherwise, the function fails
Remark:
public enum SIMCardState
{
Ready = 0,
NoSIMCard,
NeedPINCode,
NeedPUKCode
}
When the SIM card status is set to NeedPINCode (2), this function retrieves the available PIN
code attempt count. If the SIM card status is set to NeedPUKCode (3), this function gets the
available PUK code attempt count.
Class Name:
GPRS
Method:
int GetPINAttemptCount()
Inputs:
none
Return Values:
The attempted count left of PIN/PUK code authentication. otherwise, a negative value
indicates
a
failure
Remark:
B-16