BGS2T AT Command Set
5.3 AT^SPIC
BGS2T_ATC_V01.301
Page 119 of 554
1/31/12
c
EXAMPLE 3
This example shows that after successful SIM PIN1 authentication the counter of the
execute and
read command refers to SIM PIN2, i.e. it does not reflect the status of SIM PIN1. This may be a problem if
the user enters a wrong PIN1 and is not aware that the number of attempts left to enter SIM PIN1 is counted
down.
To avoid conflicts we recommend to use the
read and write commands rather than the execute com-
mand only. The read command clearly states the currently required password, and the write command may
be used to get the counter for a specific
, in this case for example "P2".
at+cpin=4714
+CME ERROR: incorrect password
at^spic
^SPIC: 63
OK
+CREG: 0
at+cpin=1234
OK
+CREG: 2
+CREG: 1
The mobile ist properly registered to the network.
at+cpin?
+CPIN: READY
The
? read command confirms that SIM
PIN1 authentication was successful.
at^spic
^SPIC: 3
As SIM PIN1 authentication was successful, the
counter relates to SIM PIN2 and correctly indicates
that the user has 3 attempts to enter SIM PIN2.
OK
AT^SPIC?
Likewise, the read command notifies that the ME is
waiting for SIM PIN2.
^SPIC: SIM PIN2
OK
at+clck="SC",0,456789
First attempt to enter a wrong SIM PIN1.
+CME ERROR: incorrect password
at^spic
^SPIC: 3
SIM PIN1 authentication is still valid, and the counter
relates to SIM PIN2.
at+clck="SC",0,456789
Second attempt to enter a wrong SIM PIN1.
+CME ERROR: incorrect password
at^spic
^SPIC: 3
SIM PIN1 authentication is still valid, and the counter
relates to SIM PIN2.
at+clck="SC",0,456789
Third attempt to enter a wrong SIM PIN1.
+CME ERROR: incorrect password
+CREG: 0
SIM PIN1 authentication is no longer valid.
at^spic
^SPIC: 10
This time, after the SIM PIN1 code has been dis-
abled, the counter indicates the status of SIM PIN1
and notifies that 10 attempts are left to enter the SIM
PUK.
Confidential / Released