> 14.2 | AT+CSIM Generic SIM Access

> 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 [26].
> 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 retransmittion 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(s)
> OK

> Write Command AT+CSIM=<length>, <command>
> Response(s)
> +CSIM: <length>,<response>
> OK
> ERROR
> +CME ERROR: <err>

> Reference(s) |  | PIN |  | ASC0 | ASC1 | USB | MUX1 | MUX2 | MUX3 |  |  | Charge | Q | Last
> GSM 07.07 |  | - |  | + | + | + | + | + | + |  |  | - | + | -

> Parameter Description

> <length>(num)

> Length of <command> or <response> string.

> <command>(str)

> Command passed on by the ME to the SIM.

> <response>(str)

> 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 dialling numbers)
> +CSIM: 4,"9F0F" | Command successful, length '0F' of the response data
> OK
> AT+CSIM=16,"A0C000000F000000" | Get Response
> +CSIM: 34,"000002306F3A040011F0220102011C9000"
> OK