Huawei MG323 Recording Equipment User Manual


 
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification Commands for the SIM Card
Issue 02 (2010-11-23)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
183
12.1.2 Accessing the SIM Database
Write
command
AT+CRSM=<command>[,<fileid>[,<P1>,<P2>,<P3>[,<data>]]]
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:
z
176: reads the contents on the SIM card in binary mode.
z
178: reads records.
z
192: reads responses.
z
214: updates the contents on the SIM card in binary mode.
z
220: records the updated contents.
z
242: 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.