3G模块AT指令集

内容发布更新时间 : 2024/12/23 22:48:41星期一 下面是文章的全部内容请认真阅读。

3G Modem AT指令集

1

2

3

4

常规命令 ....................................................................................................................... 4 1.1 AT .................................................................................................................................. 4 1.2 ATE ............................................................................................................................... 4 1.3 AT+CGSN ..................................................................................................................... 4 1.4 AT+CSCS ...................................................................................................................... 4 电话本 ........................................................................................................................... 5 2.1 AT+CPBS ...................................................................................................................... 5 2.2 AT+CPBR ..................................................................................................................... 6 2.3 AT+CPBW .................................................................................................................... 7 短消息 ........................................................................................................................... 8 3.1 AT+CSMS ..................................................................................................................... 8 3.2 AT+CPMS ..................................................................................................................... 9 3.3 AT+CMGF .................................................................................................................. 10 3.4 AT+CSCA ................................................................................................................... 11 3.5 AT+CMGL .................................................................................................................. 11 3.6 AT+CMGR .................................................................................................................. 13 3.7 AT+CMGS .................................................................................................................. 13 3.8 AT+CMGW ................................................................................................................. 14 3.9 AT+CMGD ................................................................................................................. 15 3.10 AT+CNMI ................................................................................................................... 15 3.11 +CMTI ........................................................................................................................ 17 3.12 +CMT .......................................................................................................................... 17 3.13 +CDSI ......................................................................................................................... 17 3.14 +CDS........................................................................................................................... 18 语音呼叫 ..................................................................................................................... 19 4.1 ATD ............................................................................................................................. 19 4.2 ATA ............................................................................................................................. 19 4.3 AT+CHUP ................................................................................................................... 19 4.4 AT+VTS ...................................................................................................................... 20 4.5 AT+CRC ..................................................................................................................... 20 4.6 AT+ CCFC .................................................................................................................. 21 4.7 AT+CLCC ................................................................................................................... 22 4.8 AT+CLIP ..................................................................................................................... 23 4.9 AT+CSQ ...................................................................................................................... 23 4.10 AT+CREG ................................................................................................................... 24 4.11 AT+CGREG ................................................................................................................ 24 4.12 AT+CPIN .................................................................................................................... 25 4.13 AT+CPWD .................................................................................................................. 26

5

4.14 AT+CLCK ................................................................................................................... 27 4.15 AT+ZPINPUK ............................................................................................................. 28 4.16 AT+CFUN ................................................................................................................... 28 4.17 AT+COPS ................................................................................................................... 29 网络 ............................................................................................................................. 30 5.1 AT+ZSNT ................................................................................................................... 30 5.2 AT+ZDON .................................................................................................................. 30 5.3 AT+ZPAS .................................................................................................................... 31

1 常规命令

1.1 AT

命令描述

空指令。ME回应OK。

1.2 ATE

Enable command echo ATE 设置ME是否回显命令 OK 执行错误,返回: +CME ERROR: 取值说明

: 整型,取值如下 1 ME侧回显输入的命令 0 ME侧不回显输入的命令

1.3 AT+CGSN

IMEI查询命令 AT+CGSN AT+CGSN =? OK 有MS相关错误时: +CME ERROR: OK 命令描述

该命令查询单板的IMEI。 取值说明

: 直接返回单板的IMEI值。返回值为一字符串,其构成如下:

8 char TAC 6 char SNR 1 char Spare TAC 设备分配的类型码 SNR 设备序列号 Spare 备用

1.4 AT+CSCS

选择TE字符集

AT+CSCS= OK 有MS相关错误时: +CME ERROR: +CSCS: OK 有MS相关错误时: +CME ERROR: +CSCS: (list of supported s) OK AT+CSCS? AT+CSCS=? 命令描述

该命令用于选择TE字符集。电话号码的传输将不按照CSCS设置的字符集,因为电话号码足以用7bit来表示,这就是说即使chset=USC2,号码还是按照IRA传输。其它文本(比如短消息内容,电话本姓名等)一律按照协议要求。命令引用自3GPP TS27.007。 取值说明

< chset >: “GSM” GSM默认字符 GSM Default Alphabet “HEX” 8bit 十六进制编码 “UCS2” 16bit Unicode

2 电话本

2.1 AT+CPBS

Select phone storage 选择电话本存储位置 AT+CPBS=? 返回所有支持的: +CPBS:(list of supported s) OK 返回当前选择的存贮器及该存贮器中已经用到的条目和支持的总条目: +CPBS:[,,] OK 如错误返回: +CME ERROR: 选择电话本存贮器,执行正确返回: OK 执行错误,返回: +CME ERROR: AT+CPBS? AT+CPBS= 命令描述

选择电话本存储位置,其它的电话本操作将访问本条指令选择的存储位置。 取值说明

: string型,表示存储位置,可选的取值如下 “LD” 最近已拨电话(SIM)

“MC” 最近未接电话 “RC” 最近已接电话 “ON” 本机电话号码列表 “ME” 手机上的NVRAM存贮器 “SM” SIM卡 “FD” SIM/USIM卡内固化的电话本 “AP” UICC应用电话本 “BD” SIM禁止的电话本,读取时需要输入PIN,写入时需要输入PIN2 : 整型,表示该存储区已经使用的记录数 : 整型,表示该存储区支持的最大记录数

注:某些存储区不支持返回时,+CPBS?的回应可以不包含这两项,回应内容如: +CPBS: “MC” 典型示例

命令:AT+CPBS=?

回应:+CPBS: (\

命令:AT+CPBS?

回应:+CPBS: \命令:AT+CPBS=”SM” 回应:OK

2.2 AT+CPBR

读电话本记录 AT+CPBR=? 返回支持的记录号、电话号码长度、文本长度: +CPBR:(list of supported s),(list of supported s),[],[] OK [+CPBR: ,,,, [[...]+CPBR: ,,,,]] OK 如错误返回: +CME ERROR: AT+CPBR=[,] 命令描述 从当前选定的电话本存储区中读取记录. 取值说明

s: 该存储区支持的访问索引号取值范围,为0-xxx的格式,0为读取全部条目 : 整型, 分组信息(Group ID)

: 整型,一条电话本记录中号码的最大长度 : 整型,一条电话本记录中名字的最大长度 : 整型,电话本记录的索引值

: 整型,电话本记录的索引值. 若命令中不出现,表示要读取: 对应的记录;否则表示要读取索引号在之间的记录。 : string型,电话本记录的号码信息

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4 ceshi