开启 AT 同步,每一秒发送一次 AT,如果接收到 OK,同步成功;如果发送10次 AT 后,没有返回 OK 则认为同步失败。
/* Start AT SYNC: Send AT every 1s, if receive OK, SYNC success, if no OK return after sending AT 10 times, SYNC fail */
[2020-06-14 14:15:24:074_S:] AT
[2020-06-14 14:15:24:125_R:] AT
[2020-06-14 14:15:24:125_R:] OK
开启后,UE 相关错误会返回 +CME ERROR: < e r r >
/* Use AT+CMEE=1 to enable result code and use numeric values */
[2020-06-14 14:15:24:128_S:] AT+CMEE=1
[2020-06-14 14:15:24:209_R:] AT+CMEE=1
[2020-06-14 14:15:24:209_R:] OK
开启回显模式
/* Use ATE1 to enable echo mode */
[2020-06-14 14:15:24:219_S:] ATE1
[2020-06-14 14:15:24:280_R:] ATE1
[2020-06-14 14:15:24:280_R:] OK
返回产品标识信息
/* Display Product Identification Information */
[2020-06-14 14:15:24:284_S:] ATI
[2020-06-14 14:15:24:381_R:] ATI
[2020-06-14 14:15:24:381_R:] Quectel
[2020-06-14 14:15:24:381_R:] BC28
[2020-06-14 14:15:24:381_R:] Revision:BC28JAR01A04
[2020-06-14 14:15:24:422_R:] OK
查询使用的频段(Frequency band:900MHz)
/* Query module support Bands */
[2020-06-14 14:15:24:428_S:] AT+NBAND?
[2020-06-14 14:15:24:536_R:] AT+NBAND?
[2020-06-14 14:15:24:536_R:] +NBAND:8
[2020-06-14 14:15:24:536_R:] OK
/* Query the user configuration */
[2020-06-14 14:15:24:541_S:] AT+NCONFIG?
[2020-06-14 14:15:24:927_R:] AT+NCONFIG?
[2020-06-14 14:15:24:927_R:] +NCONFIG:AUTOCONNECT,TRUE
[2020-06-14 14:15:24:962_R:] +NCONFIG:CR_0354_0338_SCRAMBLING,TRUE
[2020-06-14 14:15:24:993_R:] +NCONFIG:CR_0859_SI_AVOID,TRUE
[2020-06-14 14:15:25:027_R:] +NCONFIG:COMBINE_ATTACH,FALSE
[2020-06-14 14:15:25:060_R:] +NCONFIG:CELL_RESELECTION,TRUE
[2020-06-14 14:15:25:094_R:] +NCONFIG:ENABLE_BIP,FALSE
[2020-06-14 14:15:25:127_R:] +NCONFIG:MULTITONE,TRUE
[2020-06-14 14:15:25:160_R:] +NCONFIG:NAS_SIM_POWER_SAVING_AT+CFUN?
[2020-06-14 14:15:27:659_R:] AT+CFUN?
[2020-06-14 14:15:27:659_R:] +CFUN:1
[2020-06-14 14:15:27:659_R:] OK
/* Use AT+CGDCONT to configuration PDP */
[2020-06-14 14:15:27:671_S:] AT+CGDCONT=1,"IP","HUAWEI.COM"
[2020-06-14 14:15:27:829_R:] AT+CGDCONT=1,"IP","HUAWEI.COM"
[2020-06-14 14:15:27:872_R:] +CME ERROR: 515
请求 IMEI 号
/* Use AT+CGSN=1 to query the IMEI of module */
[2020-06-14 14:15:30:254_S:] AT+CGSN=1
[2020-06-14 14:15:30:355_R:] AT+CGSN=1
[2020-06-14 14:15:30:355_R:] +CGSN:861410049564171
[2020-06-14 14:15:30:387_R:] OK
注意:开机几秒内可能无法显示 IMSI
/* Use AT+CIMI to query the IMSI */
[2020-06-14 14:15:30:891_S:] AT+CIMI
[2020-06-14 14:15:30:981_R:] AT+CIMI
[2020-06-14 14:15:30:981_R:] 460046671802920
[2020-06-14 14:15:30:981_R:] OK
激活 PDP 上下文的配置文件
/* User "AT+CGATT=1"to activate context profile */
[2020-06-14 14:15:30:987_S:] AT+CGATT=1
[2020-06-14 14:15:31:072_R:] AT+CGATT=1
[2020-06-14 14:15:31:072_R:] OK
查询 PDP 上下文的激活状态
/* Query the status of the context profile,You may have to wait for several seconds */
[2020-06-14 14:15:31:076_S:] AT+CGATT?
[2020-06-14 14:15:31:184_R:] AT+CGATT?
[2020-06-14 14:15:31:184_R:] +CGATT:1
[2020-06-14 14:15:31:184_R:] OK
/* Use AT+CSQ to query current signal quality */
[2020-06-14 14:15:31:198_S:] AT+CSQ
[2020-06-14 14:15:31:295_R:] AT+CSQ
[2020-06-14 14:15:31:295_R:] +CSQ:24,99
[2020-06-14 14:15:31:295_R:] OK
参数:0表示自动;2表示数字格式;字符串类型
/* Use AT+COPS? to query current Network Operator */
[2020-06-14 14:15:31:299_S:] AT+COPS?
[2020-06-14 14:15:31:393_R:] AT+COPS?
[2020-06-14 14:15:31:393_R:] +COPS:0,2,"46000"
[2020-06-14 14:15:31:393_R:] OK
参数:1使能网络注册 URC;1已注册,本地网络
/*Use AT+CEREG? to query current EPS Network Registration Status*/
[2020-06-14 14:15:31:424_S:] AT+CEREG?
[2020-06-14 14:15:31:533_R:] AT+CEREG?
[2020-06-14 14:15:31:533_R:] +CEREG:1,1
[2020-06-14 14:15:31:533_R:] OK
使能非请求结果码(URC)
/* Use AT+CSCON=1 to enable signal connection status change URC */
[2020-06-14 14:15:31:538_S:] AT+CSCON=1
[2020-06-14 14:15:31:624_R:] AT+CSCON=1
[2020-06-14 14:15:31:624_R:] OK
/* Fetches the most recent operational statistics */
[2020-06-14 14:15:31:627_S:] AT+NUESTATS
[2020-06-14 14:15:31:881_R:] AT+NUESTATS
[2020-06-14 14:15:31:881_R:] Signal power:-730
[2020-06-14 14:15:31:916_R:] Total power:-656
[2020-06-14 14:15:31:916_R:] TX power:-30
[2020-06-14 14:15:31:948_R:] TX time:331
[2020-06-14 14:15:31:948_R:] RX time:22222
[2020-06-14 14:15:31:948_R:] Cell ID:202546710
[2020-06-14 14:15:31:981_R:] ECL:0
[2020-06-14 14:15:31:981_R:] SNR:149
[2020-06-14 14:15:31:981_R:] EARFCN:3682
[2020-06-14 14:15:32:014_R:] PCI:173
[2020-06-14 14:15:32:014_R:] RSRQ:-108
[2020-06-14 14:15:32:061_R:] OPERATOR MODE:4
[2020-06-14 14:15:32:061_R:] OK
[2020-06-14 14:21:25:241_R:] +CSCON:1
[2020-06-14 14:21:46:298_R:] +CSCON:0
[2020-06-14 14:26:24:752_R:] +CSCON:1
[2020-06-14 14:26:45:818_R:] +CSCON:0