AT+CLCK Facility lock

本文详细介绍了AT+CLCK命令的功能与用法,包括如何锁定、解锁或查询MT或网络设施的状态。此外还提供了该命令支持的服务类型、操作模式及参数说明。

转载自:http://blog.sina.com.cn/s/blog_40d475e901010gpz.html

 

AT+CLCK Facility lock

Execute command

AT+CLCK=<fac>,<mode>[,<passwd>[,<class>]]

Execute command is used to lock, unlock or interrogate a MT or a network facility <fac>. Password is normally needed to do such actions. When querying the status of a network service (<mode>=2) the response line for 'not active' case (<status>=0) should be returned only if service is not active for any <class>. This command should be abortable when network facilities are set or interrogated.

Calls barring facilities are based on GSM/UMTS supplementary services. The interaction of these with other commands based on other GSM/UMTS supplementary services is described in the GSM/UMTS standard.

Response

when <mode>=2 and command successful:

+CLCK: <status>[,<class1>
[<CR><LF>+CLCK: <status>,<class2>
[…]]

OK

 

If error is related to ME functionality:

+CME ERROR: <err>

 

Parameter

<fac> values reserved by the present document:

"SC"       SIM (lock SIM/UICC card) (SIM/UICC asks password in MT power‑up and when this lock command issued)

"AO"       BAOC (Barr All Outgoing Calls)

"OI"        BOIC (Barr Outgoing International Calls)

"OX"      BOIC‑exHC (Barr Outgoing International Calls except to Home Country) (refer 3GPP TS 22.088 [6] clause 1)

"IR"       BIC‑Roam (Barr Incoming Calls when Roaming outside the home country) (refer 3GPP TS 22.088 [6] clause 2)"AB"  All Barring services (applicable only for <mode>=0)"OX"     BOIC‑exHC (Barr Outgoing International Calls except to Home Country)

"AI"        BAIC (Barr All Incoming Calls)

"AB"       All Barring services (applicable only for <mode>=0)

"AG"      All outGoing barring services (applicable only for <mode>=0)

"AC"      All inComing barring services (applicable only for <mode>=0)

<mode>:

    unlock

    lock

    query status

<status>:

    not active

    active

<passwd>: string type; shall be the same as password specified for the facility from the MT  user interface or with command Change Password +CPWD

<classx> is integer value each representing a class of information (default 7):

    voice (telephony)

    data (refers to all bearer services; with <mode>=2 this may refer only to some bearer service if TA does not support values 16, 32, 64 and 128)

    fax (facsimile services)

  allTeleservices-ExeptSMS

7   default

    short message service

12  allDataTeleservices

13  allTeleservices

 

16    data circuit sync

32    data circuit async

247 allSynchronousServices

248 allAsynchronousServices

Others reserved.

Test command

AT+CLCK=?

Response

+CLCK: (list of supported <fac>s)

OK

Reference

3GPP 27.007

NOTE: The supported values of the parameters are not the same as the 3GPP 27.007.

Note

The command may be aborted while in progress. If the command is aborted, result code +CME ERROR: 600 shall be returned to TE.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值