Specifications

Chapter 13 – SIM-Related Commands
Multi-Tech Systems, Inc. AT Commands for EDGE (E1) Modems (S000474A) 239
13.2 AT+CSIM Generic SIM Access
Description: AT+CSIM allows direct control of the SIM.
Compared to Restricted SIM Access command AT+CRSM, the definition of AT+CSIM allows the
ME to take more control over the SIM interface.
For parameter and SIM result coding please refer GSM 11.11.
However, only the following SIM commands are supported by AT+CSIM: SELECT, STATUS,
READ BINARY, UPDATE BINARY, READ RECORD, UPDATE RECORD, SEEK, INCREASE
and GET RESPONSE.
The SIM interface design requires that some actions need more than one command, e.g. access
to an Elementary File's data requires a prior SELECT command. To ensure that two commands
related to the same action are sent to the SIM consecutively, i.e. without being interrupted by
other software entities, each SELECT command will be buffered in an internal directory path.
Before performing new commands the internal directory path will be checked to enable the
retransmission of the buffered SELECT command's (explicit selection).
The directory path can be used to queue up to 20 Files; e.g., 19 Dedicated Files (DF's) and 1
Elementary File (EF).
After each AT+CSIM execution the Master File (MF) which acts as a logical root will be selected
to guarantee that other software entities are not affected.
Syntax: Test Command: AT+CSIM=?
Response: OK
Write Command: AT+CSIM=<length>, <command>
Response: +CSIM: <length>,<response>
OK
ERROR
+CME ERROR: <err>
Parameters:
<length>
Length of <command> or <response> string.
<command>
Command passed on by the ME to the SIM.
<response>
Response data of the command returned by the SIM.
Example:
The following examples explain how to use AT+CSIM.
AT+CSIM=14,"A0A40000027F10" Select DF-Telekom
+CSIM: 4,"9F19" Command successful, length '19' of the response data
OK
AT+CSIM=14,"A0A40000026F3A" Select EF-ADN (Abbreviated dialing numbers)
+CSIM: 4,"9F0F" Command successful, length '0F' of the response data
OK
AT+CSIM=16,"A0C000000F000000" Get Response
+CSIM: 34,"000002306F3A040011F0220102011C9000"
OK
Notes:
This command is not PIN protected.
This command is supported in airplane mode.