WMO2 G900 / G1800 / G1900
WCOM/GSM/WMO2/WMO2ATDOC
Friday 21 May 1999
WAVECOM confidential ©
41
4.4.2
Enter PIN2 +CPIN2
This
specific
command is used to validate the PIN2 code (CHV2), or to
validate the PUK2 code (UNBLOCK CHV2) and to define a new PIN2 code.
Of CPIN command allows to validate PIN2 or PUK2 codes but
only
when the
last executed command resulted in PIN2
authentification
failure.
The PIN2 length is between 4 and 8 digits, the PUK2 length is 8 digits only.
AT+CPIN2=<pin2>
Application to GSM
AT+CPIN2=1234
enter PIN2
GSM to application
OK
PIN2 code is correct
Application to GSM
AT+CPIN2=5678
enter PIN2
GSM to application
+CME ERROR: 3
operation not allowed, PIN2 previously entered
After 3 unsuccessful codes, the PUK2 will then be required. The PUK2
validation forces the user to enter as a second parameter a new PIN2 code
which will be the new PIN2 code if the PUK1 validation succeeds. The
application shall therefore use the command:
AT+CPIN2=<puk2>,<NewPin2>
Application to GSM
AT+CPIN2=00000000,1234
enter PUK2 and new PIN2
GSM to application
+CME ERROR: 16
Incorrect Password (PUK2)
Application to GSM
AT+CPIN2=12345678,1234
enter PUK2 and new PIN1, 2
nd
attempt
GSM to application
OK
PUK2 correct, new PIN2 stored
To know which code has to be entered (or not), the following interrogation
command can be used:
AT+CPIN2?
The possible responses are:
+CPIN2: READY
No PIN2 is needed
+CPIN2: SIM PIN2
PIN2 is required
+CPIN2: SIM PUK2
PUK2 is required
+CME ERROR: <err>
Absent (10) etc...
4.4.3
PIN remaining attempt number
+CPINC
This specific
specific command instructs the module to display the number of valid
tries for PIN1 (CHV1), PIN2 (CHV2), PUK1 (UNBLOCK CHV1) and PUK2
(UNBLOCK CHV2) identifiers.
Command syntax:
AT+CPINC
Response syntax:
+CPINC: <n1>,<n2>,<k1>,<k2>
<n1>, <n2> are the remaining tries of PIN1, PIN2 (0 = blocked, 3 max)
<k1>, <k2> are the remaining tries of PUK1, PUK2 (0 = blocked, 10 max)
To make it running, the card should be present at the initialisation time, in
the opposite case, an error will be sent (+CME ERROR: 10).
Application to GSM
AT+CPINC
Ask remaining tries
GSM to application
+CPINC: 2,3,10,10
First CHV1 attempt was a failure
Application to GSM
AT+CPINC?
Ask current values
GSM to application
+CPINC: 2,3,10,10
First attempt was a failure
Application to GSM
AT+CPINC=?
Ask possible values
GSM to application
OK