![Wavecom WMO2 Manual Download Page 45](http://html1.mh-extra.com/html/wavecom/wmo2/wmo2_manual_3834769045.webp)
WMO2 G900 / G1800 / G1900
WCOM/GSM/WMO2/WMO2ATDOC
Friday 21 May 1999
WAVECOM confidential ©
39
4.4
Security commands
4.4.1
Enter PIN +CPIN
This command is used to enter ME passwords (CHV1 / CHV2 / PUK1 /
PUK2…) which are needed before any other functionality of the ME can be
used. The
CHV1/CHV2 length
is between
4
and
8
digits, the
PUK1/PUK2
length is
8 digits only
.
If the user application try to establish an outgoing call before having
validated the SIM PIN code (CHV1), then the GSM module will refuse the
"ATD" command with a "+CME ERROR: 11" (SIM PIN required).
It's up to the application to validate the PIN after each reset or power on if
the PIN was enabled. The application shall therefore use the command:
AT+CPIN=<pin>
Application to GSM
AT+CPIN=1234
Enter PIN
GSM to application
OK
PIN code is correct
Application to GSM
AT+CPIN=5678
Enter PIN
GSM to application
+CME ERROR: 3
Operation not allowed, PIN previously entered
After 3 unsuccessful codes, the PUK will then be required. The PUK
validation forces the user to enter as a second parameter a new PIN code
which will be the new PIN code if the PUK validation succeeds. The CHV1
is then
enabled
if the PUK1 is correct. The application shall therefore use
the command:
AT+CPIN=<Puk>,<NewPin>
Application to GSM
AT+CPIN=00000000,1234
enter PUK and new PIN
GSM to application
+CME ERROR: 16
Incorrect PUK
Application to GSM
AT+CPIN=12345678,1234
enter PUK and new PIN, 2
nd
attempt
GSM to application
OK
PUK correct, new PIN stored
To know which code has to be entered (or not), the following interrogation
command can be used:
AT+CPIN?
The possible responses are:
+CPIN: READY
ME is not pending for any password
+CPIN: SIM PIN
CHV1 is required
+CPIN: SIM PUK
PUK1 is required
+CPIN: SIM PIN2
CHV2 is required
+CPIN: SIM PUK2
PUK2 is required
+CPIN: PH-SIM PIN
SIM lock (phone-to-SIM) is required
+CPIN: PH-NET PIN
Network personnalisation is required
+CME ERROR: <err>
SIM failure (13) absent (10) etc...
Please note that in this case the mobile does not finish its response with
the OK string.
The reCME ERROR: 13 (SIM failure) is returned after 10
unsuccessful PUK presentations. The SIM card is then out of order and
shall be replaced by a new one.