nrf9160

Read command

The read command reads the Universal Integrated Circuit Card (UICC) state.

Response syntax:

%XSIM: <state>[,<cause>]

The read command parameter and its defined values are the following:

<state>
0 – UICC not initialized
1 – UICC initialization OK
<cause>v1.3.x
<cause> is included if it has a non-zero value.
0 – No specific cause (<cause> omitted)
1 – Personal Identification Number (PIN) required
2 – PIN2 required
3 – Personal Unblocking Key (PUK) required (PIN blocked)
4 – PUK2 required (PIN2 blocked)
5 – PUK blocked
6 – PUK2 blocked
7 – Device personalization blocked
8 – International Mobile (Station) Equipment Identity (IMEI) lock blocked
9 – Universal Subscriber Identity Module (USIM) card failure
10 – USIM card changed
11 – USIM profile changed
12 – GNSS mode only (UICC not initialized)

The following command example reads the UICC state. The response indicates that UICC initialization is completed:

AT%XSIM?
%XSIM: 1
OK

The following command example reads the UICC state. The response indicates that a PIN code is required:

AT%XSIM?
%XSIM: 0,1
OK