【转】SIMCOM的AT指令
AT+CIPSTART: { 0 IP INITIAL 初始化 1 IP START 启动任务 2 IP CONFIG 配置场景 3 IP IND 接受场景配置 4 IP GPRSACT 场景已激活 5 IP STATUS 获得本地IP地址 6 TCP/UDP CONNECTING 与SERVER建立连接阶段 7 IP CLOSE 连接已关闭 8 CONNECT OK 连接建立成功 AT+CIPSTART只有在IP_INITIAL、IP_CLOSE、IP_STATUS状态下 才可以进行连接的建立,连接建立成功后的状态为CONNECT OK;连接失败,则处在失败的状态上。 AT+CIPCLOSE只有在TCP/UDP CONNECTING或CONNECT OK 状态下 才关闭连接,否则认为关闭失败返回ERROR,关闭后的状态为 IP CLOSE } 根据V.25TER的AT指令概要(Overview of AT Commands According to V.25TER) A/ 重新发送最后给的AT指令(Reissues the last command given) ATA 接听外来电话 (ANSWER INCOMING CALL) ATD 向外拨打电话 (MOBILE ORIGINATED CALL TO DIALABLE NUMBER) ATDL 重拨上次拨打的电话号码 (REDIAL LAST TELEPHONE NUMBER USED) ATE 设置回声模式 (SET COMMAND ECHO MODE) ATH 断开现有连接/挂断电话(DISCONNECT EXISTING CONNECTION) ATI 显示产品的标志信息(DISPLAY PRODUCT IDENTIFICATION INFORMATION) ATL 设置监听话筒大声(SET MONITOR SPEAKER LOUDNESS) ATM 设置监听话筒模式(SET MONITOR SPEAKER MODE) +++ 从数据模式或PPP上网模式回到命令模式(SWITCH FROM DATA MODE OR PPP ONLINE MODE TO COMMAND MODE) ATO 从命令模式回到数据模式(SWITCH FROM COMMAND MODE TO DATA MODE) ATP 选择脉冲拨号(SELECT PULSE DIALLING) ATQ 设定结果代码颁布方式 (SET RESULT CODE PRESENTATION MODE) ATS0 设置在接电话前的响铃次数(SET NUMBER OF RINGS BEFORE AUTOMATICALLY ANSWERING THE CALL) ATS3 设置命令行终止字符(SET COMMAND LINE TERMINATION CHARACTER) ATS4 设置响应初始化字符(SET RESPONSE FORMATTING CHARACTER) ATS5 设置命令行编辑特性(SET COMMAND LINE EDITING CHARACTER) ATS6 设置停止在盲目拨号之前(SET PAUSE BEFORE BLIND DIALLING) ATS7 设置等待连接完成的秒数(SET NUMBER OF SECONDS TO WAIT FOR CONNECTION COMPLETION) ATS8 设置当遇到逗号,拨出被修改者使用等待的秒数(SET NUMBER OF SECONDS TO WAIT WHEN COMMA DIAL MODIFIER USED) ATS10 设置在表明没有数据传送后断开延迟(SET DISCONNECT DELAY AFTER INDICATING THE ABSENCE OF DATA CARRIER) ATT 选择音频(SELECT TONE DIALLING) ATV 设置结果代码格式方式(SET RESULT CODE FORMAT MODE) ATX 设置连接结果码格式和呼叫监视(SET CONNECT RESULT CODE FORMAT AND CALL MONITORING) ATZ 设定用户定义当前所有参数(SET ALL CURRENT PARAMETERS TO USER DEFINED PROFILE) AT&C 设置DCD功能模式(SET DCD FUNCTION MODE) AT&D 设置DTR功能模式(SET DTR FUNCTION MODE) AT&F 设置缺省制造商当前所有参数(SET ALL CURRENT PARAMETERS TO MANUFACTURER DEFAULTS) AT&V 显示当前配置(DISPLAY CURRENT CONFIGURATION) AT&W 存储用户定义的当前参数(STORE CURRENT PARAMETER TO USER DEFINED PROFILE) AT+DR V.42bis数据压缩控制报告(V.42BIS DATA COMPRESSION REPORTING CONTROL) AT+DS V.42bis 数据压缩控制(V.42BIS DATA COMPRESSION REPORTING CONTROL) AT+GCAP 请求完成电讯能力清单(REQUEST COMPLETE TA CAPABILITIES LIST) AT+GMI 要求制造商鉴定(REQUEST MANUFACTURER IDENTIFICATION) AT+GMM 请求电讯模型鉴定(REQUEST TA MODEL IDENTIFICATION) AT+GMR 请求电讯修改鉴定(REQUEST TA REVISION IDENTIFICATION) AT+GOI 请求全球性对象鉴定(REQUEST GLOBAL OBJECT IDENTIFICATION) AT+GSN 请求电讯序号标志(IMEI)(REQUEST TA SERIAL NUMBER IDENTIFICATION (IMEI)) AT+ICF 设置特讯控制性构筑(SET TE-TA CONTROL CHARACTER FRAMING) AT+IFC 设置特讯本地流量控制(SET TE-TA LOCAL DATA FLOW CONTROL) AT+ILRR 设置特讯本地速率报告模式(SET TE-TA LOCAL RATE REPORTING MODE) AT+IPR 设定当地固定速率(SET FIXED LOCAL RATE) 在TCPIP 应用上的AT指令(AT Commands for TCPIP Application Toolkit) AT+CIPSTART 启动TCP或UDP的连接(START UP TCP OR UDP CONNECTION) AT+CIPSEND 发送数据通过TCP或UDP的连接(SEND DATA THROUGH TCP OR UDP CONNECTION) AT+CIPCLOSE 关闭连接(CLOSE CONNECTION) AT+CIPSHUT 撤销GPRS PDP 环境(DEACTIVATE GPRS PDP CONTEXT) AT+CLPORT 设置本地端口(SET LOCAL PORT) AT+CSTT 设置APN, 用户名, 密码(SET APN, USER NAME, PASSWORD) AT+CIICR 提出与GPRS 或CSD 的无线连接(BRING UP WIRELESS CONNECTION WITH GPRS OR CSD) AT+CIFSR 获得本地IP地址(GET LOCAL IP ADDRESS) AT+CIPSTATUS 查询当前的连接状态(QUERY CURRENT CONNECTION STATUS) AT+CDNSCFG 配置域名服务器(CONFIGURE DOMAIN NAME SERVER) AT+CDNSGIP 查询所给出域名的IP地址(QUERY IP ADDRESS OF GIVEN DOMAIN NAME) AT+CDNSORIP 连接用IP 地址或域名服务器(CONNECT WITH IP ADDRESS OR DOMAIN NAME SERVER) AT+CIPHEAD 接收数据时加上一个IP头(ADD AN IP HEADER WHEN RECEIVING DATA) AT+CIPATS 设置自动送出时间(SET AUTO SENDING TIMER) AT+CIPSPRT 当送数据时设置‘〉’提示(SET PROMPT OF ‘>’ WHEN SENDING DATA) AT+CIPSERVER 配置作为服务器(CONFIGURE AS SERVER) AT+CIPCSGP 设置CSD 或GPRS 为连接方式(SET CSD OR GPRS FOR CONNECTION MODE) AT+CIPCCON 选择连接(CHOOSE CONNECTION) AT+CIPFLP 固定本地端口(FIX LOCAL PORT) AT+CIPSRIP 设置从何处接收的数据(SHOW WHERE RECEIVED DATA FROM) AT+CIPDPDP 设置是否检查GPRS网络时间状态(SET WHETHER CHECK STATE OF GPRS NETWORK TIMING) AT+CIPSCONT 保存TCPIP应用背景(SAVE TCPIP APPLICATION CONTEXT) AT+CIPMODE 选择TCPIP 应用方式(SELECT TCPIP APPLICATION MODE) AT+CIPCCFG 配置透明传输模式(CONFIGURE TRANSPARENT TRANSFER MODE) 根据GSM07.07的AT指令(AT Commands According to GSM07.07) AT+CACM 累计电话计量器(ACM) 重新设置或询问(ACCUMULATED CALL METER(ACM) RESET OR QUERY) AT+CAMM 累计电话计量器最大值的设置或查询(ACCUMULATED CALL METER MAXIMUM(ACMMAX) SET OR QUERY) AT+CAOC 咨询收费 (ADVICE OF CHARGE) AT+CBST 选择持有人服务类型(SELECT BEARER SERVICE TYPE) AT+CCFC 呼叫转移号码和条件控制(CALL FORWARDING NUMBER AND CONDITIONS CONTROL) AT+CCUG 关闭用户群控制(CLOSED USER GROUP CONTROL) AT+CCWA 呼叫等待控制(CALL WAITING CONTROL) AT+CEER 延期的错误报告(EXTENDED ERROR REPORT) AT+CGMI 要求制造商识别(REQUEST MANUFACTURER IDENTIFICATION) AT+CGMM 要求样式识别(REQUEST MODEL IDENTIFICATION) AT+CGMR 要求修正识别(REQUEST REVISION IDENTIFICATION) AT+CGSN 要求产品序号识别(同等+GSN )(REQUEST PRODUCT SERIAL NUMBER IDENTIFICATION(IDENTICAL WITH +GSN)) AT+CSCS 选择TE 字符集(SELECT TE CHARACTER SET) AT+CSTA 选择地址类型(SELECT TYPE OF ADDRESS) AT+CHLD 电话挂起并多线(电话会议)(CALL HOLD AND MULTIPARTY) AT+CIMI 请求国际移动用户身份(REQUEST INTERNATIONAL MOBILE SUBSCRIBER IDENTITY) AT+CKPD 键盘控制(KEYPAD CONTROL) AT+CLCC 我的当前通话名单(LIST CURRENT CALLS OF ME) AT+CLCK 设备锁(FACILITY LOCK) AT+CLIP 呼叫线路识别介绍(CALLING LINE IDENTIFICATION PRESENTATION) AT+CMEE 报告移动设备错误(REPORT MOBILE EQUIPMENT ERROR) AT+COLP 连接的线路识别介绍(CONNECTED LINE IDENTIFICATION PRESENTATION) AT+COPS 操作员选择(OPERATOR SELECTION) AT+CPAS 移动设备的活动状态(MOBIL EQUIPMENT ACTIVITY STATUS) AT+CPBF 找到电话簿条目(FIND PHONEBOOK ENTRIES) AT+CPBR 读当前的电话本条目(READ CURRENT PHONEBOOK ENTRIES) AT+CPBS 选择电话本记忆存贮区(SELECT PHONEBOOK MEMORY STORAGE) AT+CPBW 写电话本条目(WRITE PHONEBOOK ENTRY) AT+CPIN 输入PIN(ENTER PIN) AT+CPWD 改变密码(CHANGE PASSWORD) AT+CR 服务报告控制(SERVICE REPORTING CONTROL) AT+CRC 设置手机结果码为来电标志(SET CELLULAR RESULT CODES FOR INCOMING CALL INDICATION) AT+CREG 网络注册(NETWORK REGISTRATION) AT+CRLP 选择无线电链路协议PARAM.ETER(SELECT RADIO LINK PROTOCOL PARAM.ETER) AT+CRSM 有限的SIM 通入(RESTRICTED SIM ACCESS) AT+CSQ 信号质量报告(SIGNAL QUALITY REPORT) AT+FCLASS 电传: 精选, 读或测试服务组(FAX: SELECT, READ OR TEST SERVICE CLASS) AT+FMI 电传: 报告制作的身份证明(FAX: REPORT MANUFACTURED ID) AT+FMM 电传: 报告模式身份证明(FAX: REPORT MODEL ID) AT+FMR 电传: 报告修正身份证明(FAX: REPORT REVISION ID) AT+VTD 长短音(TONE DURATION) AT+VTS DTMF以及拨号音的产生(DTMF AND TONE GENERATION) AT+CMUX 多重通道控制(MULTIPLEXER CONTROL) AT+CNUM 用户号码(SUBSCRIBER NUMBER) AT+CPOL 首选的操作员名单(PREFERRED OPERATOR LIST) AT+COPN 读操作员名字(READ OPERATOR NAMES) AT+CFUN 设置电话功能(SET PHONE FUNCTIONALITY) AT+CCLK 时钟(CLOCK) AT+CSIM 普通SIM 通入(GENERIC SIM ACCESS) AT+CALM 警报声模式(ALERT SOUND MODE) AT+CRSL 铃声等级(RINGER SOUND LEVEL) AT+CLVL 喇叭音量(LOUDSPEAKER VOLUME) AT+CMUT 静音控制(MUTE CONTROL) AT+CPUC 价格每单位货币表(PRICE PER UNIT CURRENCY TABLE) AT+CCWE 电话计量器最大值(CALL METER MAXIMUM EVENT) AT+CBC 电池充电(BATTERY CHARGE) AT+CUSD 非结构化补充业务数据(UNSTRUCTURED SUPPLEMENTARY SERVICE DATA) AT+CSSN 辅助服务的通知(SUPPLEMENTARY SERVICES NOTIFICATION) 根据GSM07.05的AT指令(AT Commands According to GSM07.05) AT+CMGD 删除SMS 短信(DELETE SMS MESSAGE) AT+CMGF 选择SMS 短信格式(SELECT SMS MESSAGE FORMAT) AT+CMGL 从首选存储器的SMS短信清单(LIST SMS MESSAGES FROM PREFERRED STORE) AT+CMGR 读SMS短信(READ SMS MESSAGE) AT+CMGS 发送SMS短信(SEND SMS MESSAGE) AT+CMGW 往内存写SMS短信(WRITE SMS MESSAGE TO MEMORY) AT+CMSS 从存储器发送SMS短信(SEND SMS MESSAGE FROM STORAGE) AT+CMGC 发送SMS短信指令(SEND SMS COMMAND) AT+CNMI 新的SMS短信标志(NEW SMS MESSAGE INDICATIONS) AT+CPMS 首选SMS短信存储区(PREFERRED SMS MESSAGE STORAGE) AT+CRES 恢复SMS 设置(RESTORE SMS SETTINGS) AT+CSAS 保存SMS短信设置(SAVE SMS SETTINGS) AT+CSCA SMS 服务中心地址(SMS SERVICE CENTER ADDRESS) AT+CSCB 选择小区广播短讯(SELECT CELL BROADCAST SMS MESSAGES) AT+CSDH 显示SMS 文本方式参量(SHOW SMS TEXT MODE PARAMETERS) AT+CSMP 设置SMS 文本方式参量(SET SMS TEXT MODE PARAMETERS) AT+CSMS 选择信息服务(SELECT MESSAGE SERVICE) GPRS 支持的AT指令(AT Commands for GPRS Support) AT+CGATT 从GPRS服务附加/分离(ATTACH/DETACH FROM GPRS SERVICE) AT+CGDCONT 定义PDP环境(DEFINE PDP CONTEXT) AT+CGQMIN 服务质量概况(最低可接受)(QUALITY OF SERVICE PROFILE (MINIMUM ACCEPTABLE)) AT+CGQREQ 服务质量概况(被请求的)(QUALITY OF SERVICE PROFILE (REQUESTED)) AT+CGACT 环境激活(CONTEXT ACTIVATION) AT+CGDATA 进入数据状态(ENTER DATA STATE) AT+CGPADDR 显示PDP地址(SHOW PDP ADDRESS) AT+CGCLASS GPRS移动站种类(GPRS MOBILE STATION CLASS) AT+CGEREP 控制未经请求GPRS 事件报告(CONTROL UNSOLICITED GPRS EVENT REPORTING) AT+CGREG 网络注册状态(NETWORK REGISTRATION STATUS) AT+CGSMS 为MO SMS 消息选择服务(SELECT SERVICE FOR MO SMS MESSAGES) AT+CGCOUNT GPRS打包计数(GPRS PACKET COUNTERS) SIM应用集的AT指令(AT Commands for SIM Application Toolkit) +STC: () +STGC=… () +STCR=… () +STPD=… () +STMS=… () +STEV=… () +STRT=… () +STTONE=… () 专有的simcom AT指令(AT Commands Special for SIMCOM) AT+ECHO 回音消除技术控制(ECHO CANCELLATION CONTROL) AT+ SIDET 改变侧音增益等级(CHANGE THE SIDE TONE GAIN LEVEL) AT+CPOWD 断电(POWER OFF) AT+SPIC 时间保持以输入SIM PIN/PUK(TIMES REMAIN TO INPUT SIM PIN/PUK) AT+CMIC 改变手机增益等级(CHANGE THE MICOPHONE GAIN LEVEL) AT +UART 配置双串口模式 (CONFIGURE DUAL SERIAL PORT MODE) AT+CALARM 设置警报(SET ALARM) AT+CADC 读ADC(READ ADC) AT +CSNS 唯一编号模式(SINGLE NUMBERING SCHEME) AT +CDSCB 重新设置小区广播(RESET CELLBROADCAST) AT +CMOD 配置交替式来电(CONFIGURE ALTERNATION MODE CALLS) AT +CFGRI 当使用URC时表明RI(INDICATE RI WHEN USING URC) AT+CLTS 获取本地时间标志(GET LOCAL TIMESTAMP) AT+CEXTHS 外部耳机插孔控制(EXTERNAL HEADSET JACK CONTROL) AT+CEXTBUT 耳机按钮状态报告(HEADSET BUTTON STATUS REPORTING) AT+CSMINS SIM卡插入状况报告(SIM INSERTED STATUS REPORTING) AT+CLDTMF 本地的DTMF音生成(LOCAL DTMF TONE GENERATION) AT+CDRIND 政务语音/数据/传真来电或GPRS的PDP方面终止标志(CS VOICE/DATA/FAX CALL OR GPRS PDP CONTEXT TERMINATION INDICATION) AT+CSPN 从SIM获得服务提供商名称(GET SERVICE PROVIDER NAME FORM SIM) AT+CCVM 获得并设置SIM的语音信箱号码(GET AND SET THE VOICE MAIL NUMBER ON THE SIM) AT+CBAND 取得或设置移动波段操作(GET AND SET MOBILE OPERATION BAND) AT+CHF 配置免提操作(CONFIGURES HANDS FREE OPERATION) AT+CHFA 交换音频频道(SWAP THE AUDIO CHANNELS) AT+CSCLK 配置慢时钟(CONFIGURE SLOW CLOCK) AT+CENG 开启或关闭工程模式(SWITCH ON OR OFF ENGINEERING MODE) AT+SCLASS0 当收到0级短讯存储0级手机短信到SIM(STORE CLASS 0 SMS TO SIM WHEN RECEIVED CLASS 0 SMS) AT+CCID 显示ICCID(SHOW ICCID)