Wavecom GSM Modem
4.9. Enter PIN/PUK code +CPIN
This command is used to validate the PIN code, or to validate the PUK
code (and define a new PIN code).
If the user application try to establish an outgoing call before having
validated the SIM PIN code, 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.
The application shall therefore use the command :
Application to GSM
GSM to application
Application to GSM
GSM to application
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 future PIN code if the PUK validation succeeds. The
application shall therefore use the command :
Application to GSM
GSM to application
Application to GSM
GSM to application
To know which code has to be entered (or not), the following
interrogation command will be implemented :
The possible responses are :
+CPIN: READY
+CPIN: SIM PIN
+CPIN: SIM PUK
+CME ERROR: <err>
Please note that in this case the mobile does not finish its response with
the OK string.
This confidential document is the property of WAVECOM and may not be copied or circulated without permission
AT+CPIN="<pin>"
AT+CPIN=1234
OK
AT+CPIN=5678
+CME ERROR: 16
AT+CPIN="<puk>","<new pin>"
AT+CPIN=1234,5896
OK
AT+CPIN=5000,5896
+CME ERROR: 16
AT+CPIN?
enter PIN
PIN correct
enter PIN
incorrect password
enter PUK and new PIN
PUK correct
enter PUK and new PIN
incorrect password
No PIN is needed
PIN is required
PUK is required
SIM failure, SIM absent etc.
23
Need help?
Do you have a question about the WMO1-G900 and is the answer not in the manual?
Questions and answers