User Manual

Table Of Contents
SARA-R4 series-AT commands manual
UBX-17003787 - R16
11SIM management
Page 120 of 401
11.2.2Syntax
Type Syntax Response Example
Set AT+CRSM=<command>[,<fileid>[,
<P1>,<P2>,<P3>[,<data> [,
<pathid>]]]]
+CRSM: <sw1>,<sw2>[,<response>]
OK
AT+CRSM=176,28471,0,0,3
+CRSM: 144,0,"989301770020
594178F2"
OK
Test AT+CRSM=? OK OK
11.2.3Defined values
Parameter Type Description
<command> Number Allowed values:
176: read binary
178: read record
192: get response
214: update binary
220: update record
242: status
203: retrieve data
219: set data
<fileid> Number Identifies an elementary datafile on SIM. Mandatory for each command except
STATUS (e.g. 28423: meaning IMSI file (6F07)). For a complete description of
Elementary Files (EF), see 3GPP TS 31.102 [18].
<P1>, <P2>, <P3> Number Defines the request. These parameters are mandatory for each command, except
GET RESPONSE and STATUS. The values are described in 3GPP TS 51.011 [17] and
ETSI TS 102 221 [73].
<data> String Information which shall be written to the SIM (hexadecimal character format; see the
+CSCS - string containing hexadecimal characters)
<pathid> String Contains the path of an elementary file on the SIM/UICC in hexadecimal format as
defined in ETSI TS 102 221 [73] (e.g. "7F205F70" in SIM and UICC case). The <pathid>
shall only be used in the mode "select by path from MF" as defined in ETSI TS 102 221
[73].
<sw1>, <sw2> Number Contains SIM information about the execution of the actual command and can be
(more details in 3GPP TS 51.011 [17] and ETSI TS 102 221 [73]).
Status words examples for 2G SIM cards:
0x90 0x00: normal ending of the command
0x9F 0xXX: length XX of the response data
0x92 0x0X: command successful but after using an internal retry routine X times
0x92 0x40: memory problem
0x94 0x00: no EF selected
0x94 0x02: out of range (invalid address)
0x94 0x04: file ID not found; pattern not found
0x94 0x08: file is inconsistent with the command
0x98 0x02: no CHV initialized
0x98 0x04: access condition not fullfiled / unsucc. CHV verify / authent.failed
0x98 0x08: in contradiction with CHV status
0x98 0x10: in contradiction with invalidation status
0x98 0x40: unsucc. CHV-verif. or UNBLOCK CHV-verif. / CHV blocked /
UNBL.blocked
0x67 0xXX: incorrect parameter P3
0x6A 0x81: function not supported
0x6A 0x82: file not found
0x6B 0xXX: incorrect parameter P1 or P2
0x6D 0xXX: unknown instruction code given in the command
0x6E 0xXX: wrong instruction class given in the command
0x6F 0xXX: technical problem with no diagnostic given
Status words examples for 3G SIM cards:
0x90 0x00: normal ending of the command