AT命令AT即Attention,AT指令集是从终端设备(TerminalEquipment,TE)或数据终端设备(DataTerminalEquipment,DTE)向终端适配器(TerminalAdapter,TA)或数据电路终端设备(DataCircuitTerminalEquipment,DCE)发送的。通过TA,TE发送AT指令来控制移动台(MobileStation,MS)的功能,与电信网络业务进行交互。用户可以通过AT指令进行呼叫、短信、电话本、数据业务、传真等方面的控制。模块包括移动设备ME(MobileEquipment)、移动台MS(MobileStation)、终端适配器TA(TerminalAdapter)、数据通信设备DCE(DataCommunicationEquipment)和传真DCE(包括传真Modem和传真板)。通过串口发送AT命令,即可使用这些模块。串行线对端的应用设备包括终端设备TE(TerminalEquipment)、数据终端设备DTE(DataTerminalEquipment)或其他应用设备。AT命令类型AT命令语法方括号中的值为缺省值。选配参数和必配参数必须按照规定的顺序排列,各参数间必须用逗号隔开。举例:AT+CPWD=fac,oldpwd,newpwd该命令用于为设备锁定+CLCK命令所定义的设备锁定功能设置新的密码。如果某参数是字符串(比如:number),该字符串必须放在双引号中。例如:“12345”.“cmnet”。双引号中的各项符号可看作是字符串。命令的可选子参数或TA返回结果的可选部分位于方括号中。不使用双引号时,字符串中各字符间的空格可忽略不计。实际使用中,,[]不必输入。所有AT命令本身不区分大小写,但其参数对大小写敏感。LGP970(6160)AT+CPBR=75,75读电话本记录+CPBR:75,13835283339,129,90D15229519BAT+CPBR=76,76+CPBR:76,03525130549,129,90D15229519B529E516C5BA4……..AT+CSQ获取信号强度+CSQ:11,9911:信号强度大约在-8xdBm99:不支持‘比特误码率百分比’查询。。。。。。。ATD186xxxx0721拨号AT[5]OKAT[1]+XCALLSTAT:1,2call_id1state:dialling(MOcall)AT+CAMM?AccumulatedCallMeterMaximumAT[5]AT+CACM?accumulatedcallmeter+CACM:000000AT+CLCC获取ME当前所有呼叫的列表+CLCC:1,0,2,0,0,186xxxx0721,129,0AT+COPS=3,0;+COPS?;+COPS=3,1;+COPS?;+COPS=3,2;+COPS?+COPS:0,0,0043004D00430043,0+COPS:0,1,0043004D00430043,0+COPS:0,2,00340036003000300030,0AT+CGREG?+CGREG:2,1,102c,6233,3AT+XCOPS=6+XCOPS:2,0043004D00430043D/AT(1623):AT[6]AT+XMER=1D/AT(1623):AT[6]OKD/AT(1623):AT[6]AT+CREG=2D/AT(1623):AT[6]+XCIEV:,4D/RILC(1623):[UNSL]UNSOL_BATTERY_LEVEL_UPDATE{4}D/RILJ(1802):[UNSL]RIL_UNSOL_BATTERY_LEVEL_UPDATED/AT(1623):AT[6]OKD/AT(1623):AT[6]AT+CGREG=2D/AT(1623):AT[6]OKD/AT(1623):AT[6]AT+CGEREP=1,0D/AT(1623):AT[6]OKD/RILC(1623):[UNSL]UNSOL_SIGNAL_STRENGTH_UPDATE}D/RILC(1623):[UNSL]UNSOL_RESPONSE_NETWORK_STATE_CHANGEDD/RILC(1623):[0392]SCREEN_STATED/RILJ(1802):[UNSL]RIL_UNSOL_SIGNAL_STRENGTH_UPDATED/RILJ(1802):[UNSL]UNSOL_RESPONSE_NETWORK_STATE_CHANGEDD/RILJ(1802):[0392]SCREEN_STATED/AT(1623):AT[20]AT+CGACT?D/AT(1623):AT[20]OKD/AT(1623):AT[20]AT+CGDCONT?D/AT(1623):AT[20]OKD/RIL(1623):onRequest(lge-ril):request:61(SCREEN_STATE),DLC:6,sState=[4]W/RILJ(1802):RILreceivedACTION_SCREEN_OFFIntent-SKIPD/AT(1623):AT[6]AT+XMER=0D/AT(1623):AT[6]OKD/AT(1623):AT[6]AT+CREG=0D/AT(1623):AT[6]OKD/AT(1623):AT[6]AT+CGREG=0D/AT(1623):AT[6]OKD/AT(1623):AT[6]AT+CGEREP=0,0D/AT(1623):AT[6]OKD/RIL(1623):onRequest(lge-ril):request:61(SCREEN_STATE),DLC:6,sState=[4]W/RILJ(1802):RILreceivedACTION_SCREEN_ONIntent-SKIPD/AT(1623):AT[6]AT+XMER=1D/AT(1623):AT[6]OKD/AT(1623):AT[6]AT+CREG=2D/AT(1623):AT[6]OKD/AT(1623):AT[6]AT+CGREG=2D/AT(1623):AT[6]OKD/AT(1623):AT[6]AT+CGEREP=1,0D/AT(1623):AT[6]OKAT+CHUP挂断所有语音呼叫HTCDesire:AT+PHSM=178,16,165,4,15\r+PHSM:144,0,FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF\r\n0\rAT+COPS=3,2;+COPS?\r读取运营商信息+COPS:0,2,46001,2\r\n0\r模式:自动搜网,运营商:46001AT+CGREG?\r查询主动上报状态+CGREG:1,1\r\n0\r主动上报时能,注册了本地网络AT+CREG?\r查询网络注册状态+CREG:2,1,A01F,002F1C35\r\n0\r主动提供网络注册状态和定位信息主动结果码,注册,且是归属网络位置码信息,四个字符:A01F小区信息,:002F1C35D/GSM(1627):PollServiceStatedone:oldSS=[0home中国联通(N/A)46001UMTSCSSnotsupported-1-1RoamInd:-1DefRoamInd:-1EriInd:-1EriMode:-1RadioPowerSv:falseDefRoamInd:-1EmergOnly:false]newSS=[0home中国联通(N/A)46001UMTSCSSnotsupported-1-1RoamInd:-1DefRoamInd:-1EriInd:-1EriMode:-1RadioPowerSv:falseDefRoamInd:-1EmergOnly:false]oldGprs=0newGprs=0oldType=UMTSnewType=UMTSAT+Q3GNCELL\r+Q3GNCELL:002F1C35,24,2,347,27,297,17\r\n0\rAT+CSQ\r获取信号强度+CSQ:16,99\r\n0\r11:信号强度大约在-83dBm99:不支持‘比特误码率百分比’查询……..(定时)重复,HTC私有命令。。。D/HTC_RIL(1494):RX::+CMT:,156\r\n0891683110102105F0240AA101561510890008118021903444238A65B095FB003A0031003E8D446C5F6E56535765B090B56BB581EA4E0A6E38指示有新短信(或者有新短信报告)已被接收D/HTC_RIL(1494):RX::81F34E0B6E38767E4F5991CC6CB3905353D1751F592789C46A216B7B9C7C4E8B4EF6002E0032003E7F8E00356708822A7A7A5BA28FD0603B91CF540C6BD4589ED/HTC_RIL(1494):RX::957F0033002E00390025002E0033003E56FD5BB6683875355B89516889C45212621652A05FEB51FA53F0002E\r\nD/HTC_RIL(1494):(t=1313113301)%%+CMT:,156\r\n0891683110102105F0240AA101561510890008118021903444238A65B095FB003A0031003E8D446C5F6E56535765B090B56BB581EA4E0A6E3881F34E0B6E38767E4F5991CC6CB3905353D1751F592789C46A216B7B9C7C4E8B4EF6002E0032003E7F8E00356708822A7A7A5BA28FD0603B91CF540C6BD4589E957F0033002E00390025002E0033003E56FD5BB6683875355B89516889C45212621652A05FEB51FA53F0002E\r\nD/RILJ(1627):[UNSL]UNSOL_RESPONSE_NEW_SMSD/GSM(1627):SMSSCaddress:+8613010112500D/GSM(1627):SMSSCtimestamp:1313113424000D/SMS(1627):NewSMSMessageReceivedD/GSM(17257):SMSSCaddress:+8613010112500D/GSM(17257):SMSSCtimestamp:1313113424000D/GSM(2092):SMSSCaddress:+8613010112500D/GSM(2092):SMSSCtimestamp:1313113424000D/GSM(15512):SMSSCaddress:+8613010112500D/GSM(15512):SMSSCtimestamp:1313113424000D/SMS(1627):OoOIntentReceived:Intent{act=android.provider.Telephony.SMS_RECEIVED(hasextras)}D/RILJ(1627):[4981]SMS_ACKNOWLEDGEtrue0D/HTC_RIL(1494):ril_func_send_sms_ack():calledD/HTC_RIL(1494):(t=1313113302)AT\rD/HTC_RIL(1494):RX::0\rD/HTC_RIL(1494):(t=1313113302)0\rD/RILJ(1627