HUAWEI MG323 GSM M2M Module

 

AT Command Interface Specification

Commands for the SIM Card

12.1.2 Accessing the SIM Database

Write

AT+CRSM=<command>[,<fileid>[,<P1>,<P2>,<P3>[,<data>]]]

command

 

Function

Accesses the SIM card through restricted permissions.

Response

z In case of successful execution:

 

<CR><LF>+CRSM:

 

<sw1>,<sw2>[,<response>]<CR><LF><CR><LF>OK<CR><LF>

 

z In case of an error during command execution:

 

<CR><LF>ERROR<CR><LF>

 

z In case of an error related to the MT: <CR><LF>+CME ERROR:

 

<err><CR><LF>

Note:

This command can access the SIM database through restricted permissions. For example, the IMSI number cannot be changed without permission (authentication is required for change). In addition, the IMSI number cannot be modified through this command.

Parameter description

<command>: numeric, which indicates the command for SIM access. The value range is as follows:

z176: reads the contents on the SIM card in binary mode.

z178: reads records.

z192: reads responses.

z214: updates the contents on the SIM card in binary mode.

z220: records the updated contents.

z242: obtains the status.

<fileid>: integer, which indicates the ID of the EF file. In addition to the command for status query, all other commands must send this parameter.

<P1>,<P2>,<P3>: In addition to the commands for obtaining the response and querying the status, other commands must specify these parameters. The value ranges from 0 to 255.

<data>: information field in hexadecimal mode.

<sw1>,<sw2>: response returned by the SIM card after the command is executed.

<response>: data reported after the command is successfully executed. For the commands for updating data in binary mode and updating records, the response is not returned.

Issue 02 (2010-11-23)

Huawei Proprietary and Confidential

183

Copyright © Huawei Technologies Co., Ltd.

 

 

Page 200
Image 200
Huawei MG323 manual Accessing the SIM Database, Crlf+Crsm