AT Commands Reference Guide
80529ST10815A Rev.2– 2017-09-14
ReproductionforbiddenwithoutTelitCommunicationsS.p.A.writtenauthorization‐AllRightsReserved page59of233
+CRSM - Restricted SIM Access
<Data> - information to be read/written to the SIM
(hexadecimal character format).
The response of the command is in the format:
+CRSM: <sw1>,<sw2>[,<response>]
where:
<sw1>,<sw2> - information from the SIM about the
execution of the actual command either on
successful or failed execution.
<response> - on a successful completion of the command
previously issued it returns the requested
data (hexadecimal character format). It’s
not returned after a successful UPDATE
BINARY or UPDATE RECORD command.
Note: this command requires PIN authentication. However commands READ
BINARY and READ RECORD can be issued before PIN authentication and if the
SIM is blocked (after three failed PIN authentication attempts) to access the
contents of the Elementary Files.
Note: use only decimal numbers for parameters <command>, <fileid>, <P1>,
<P2> and <P3>.
AT+CRSM=?
Test command returns the OK result code
Example
Read binary, ICCID(2FE2)
AT+CRSM=176,12258,0,0,10
+CRSM: 144,0,982850702001107686F4
OK
Read record, ADN(6F3A)
AT+CRSM=178,28474,1,4,40
+CRSM: 144,0,42434A554EFFFFFFFFFFFFFFFFFFFFFF0681105678
9282FFFFFFFFFFFFFF
OK
Update Binary, KcGPRS(6F52)
AT+CRSM=214,28539,0,0,8,C69018C7958C87
+CRSM: 144,0
OK
Update Record, ADN(6F3A)