Specifications

TC35i AT Command Set
Confidential / Released
TC35i_ATC_V01.05 Page 146 of 278 04.08.2003
4.43 AT+CRSM Restricted SIM access
Test command
AT+CRSM=?
Response
OK
Write command
AT+CRSM=<com
mand>[,<fileId>
[,<P1>,<P2>,<P3>
[,<data>]]]
By using this command the TE has access to the SIM database. SIM access is
restricted to the commands which are listed below.
As response to the command the ME sends the current SIM information pa-
rameters and response data. ME error result code +CME ERROR may be re-
turned if the command cannot be passed to the SIM, e.g. if the SIM is not in-
serted. However, errors related to SIM data are reported in <sw1> and <sw2>
parameters as defined in GSM 11.11.
This command requires PIN authentication. However, using <command> READ
BINARY and <command> READ RECORD is possible before PIN authentica-
tion and if the SIM is blocked (after three failed PIN authentication attempts) to
access the contents of the following Elementary Files:
EF
ICCID
(2FE2h, ICC Identification), EF
ELP
(2F05h, Extended language prefer-
ence), EF
LP
(6F05h, Language preference), EF
SPN
(6F46h, Service provider
name), EF
AD
(6FADh, Administrative data), EF
Phase
(6FAEh, Phase Identifica-
tion) and EF
ECC
(6FB7h, Emergency call codes).
Response
+CRSM: <sw1>, <sw2> [,<response>]
OK / ERROR / +CME ERROR: <err>
Parameter
<command> 176 READ BINARY
178 READ RECORD
192 GET RESPONSE
214 UPDATE BINARY
220 UPDATE RECORD
242 STATUS
All other values are reserved; refer to GSM 11.11.
<fileId> Integer type; this is the identifier for an elementary
data file on SIM. Mandatory for every command ex-
cept STATUS
<P1>,<P2>,<P3> Integer type, range 0 - 255
parameters to be passed on by the ME to the SIM; re-
fer to GSM 11.11.
<data> Information which shall be written to the SIM (hexa-
decimal character format)
<sw1>, <sw2> Integer type, range 0 - 255
status information from the SIM about the execution
of the actual command. These parameters are deliv-
ered to the TE in both cases, on successful or failed
execution of the command; refer to GSM 11.11.
<response> Response of a successful completion of the command
previously issued (hexadecimal character format)
Reference
GSM 07.07
GSM 11.11
Note