总结一下中移M5310A NBIoT模组的常用测试命令,这个命令是个脚本,可以编辑,在自己开发的串口软件上可用,有需要的请留言。
脚本是.ini格式的文件,可以直接编辑文件然后加载到脚本区。字段用\t分割。
[General]
msg0=dontuse\tdonthex\tAT\tcrlf\t\t\t\t提示符
msg1="dontuse\tdonthex\tAT+NCONFIG=AUTOCONNECT,TRUE\tcrlf\t\t\t\t自动附着网络"
msg2=dontuse\tdonthex\tAT+NRB\tcrlf\t\t\t\t重启
msg3="dontuse\tdonthex\tAT+NAND=5,8,3\tcrlf\t\t\t\t设置频段(关机下设置)"
msg4=dontuse\tdonthex\tAT+NCSEARFCN\tcrlf\t\t\t\t清除存储频点
msg5="dontuse\tdonthex\tAT+CFUN=1\tcrlf\t\t\t\t开启射频"
msg6="dontuse\tdonthex\tAT+CGATT=1\tcrlf\t\t\t\t附着网络"
msg7=dontuse\tdonthex\t\tcrlf\t\t\t\t
msg8=dontuse\tdonthex\tAT+CSQ\tcrlf\t\t\t\t查询信号强度
msg9=dontuse\tdonthex\tAT+CGATT?\tcrlf\t\t\t\t查询网络附着
msg10=dontuse\tdonthex\tAT+CEREG?\tcrlf\t\t\t\t查询网络注册
msg11=dontuse\tdonthex\tAT+NUESTATS\tcrlf\t\t\t\t查询UE信息
msg12=dontuse\tdonthex\tAT+NMSTATUS?\tcrlf\t\t\t\t查询CDP服务器
msg13=dontuse\tdonthex\tAT+CSCON?\tcrlf\t\t\t\t查询连接(1连接)
msg14=dontuse\tdonthex\tAT+NPSMR?\tcrlf\t\t\t\t查询PSM状态(1PSM)
msg15="dontuse\tdonthex\tAT+CGSN=1\tcrlf\t\t\t\t查询IMEI"
msg16=dontuse\tdonthex\tAT+CGMR\tcrlf\t\t\t\t查询模组软件版本号
msg17=dontuse\tdonthex\t\tcrlf\t\t\t\t
msg18=dontuse\tdonthex\tAT+NCDP?\tcrlf\t\t\t\t查询CDP
msg19="dontuse\tdonthex\tAT+NCDP=117.60.157.137,5683\tcrlf\t\t\t\t电信商业"
msg20="dontuse\tdonthex\tAT+NCDP=180.101.147.115,5683\tcrlf\t\t\t\t电信测试"
msg21=dontuse\tdonthex\t\tcrlf\t\t\t\t
msg22=dontuse\tdonthex\tAT+MREGSWT?\tcrlf\t\t\t\t查询注册模式 0手动1自动
msg23="dontuse\tdonthex\tAT+MREGSWT=1\tcrlf\t\t\t\t设置自动注册模式(默认)"
msg24="dontuse\tdonthex\tAT+MLWSREGIND=0\tcrlf\t\t\t\t手动注册平台 0注册1注销"
msg25=dontuse\tdonthex\tAT+NSECSWT?\tcrlf\t\t\t\t查询加密方式
msg26="dontuse\tdonthex\tAT+NSECSWT=0\tcrlf\t\t\t\t0非加密 1DTLS 2DTLS+"
msg27="dontuse\tdonthex\tAT+NSETPSK=IMEI,psk\tcrlf\t\t\t\t设置psk"
msg28="dontuse\tdonthex\tAT+MLWM2MENABLE=0\tcrlf\t\t\t\t禁用lwm2m 0D 1E"
msg29="dontuse\tdonthex\tAT+CPSMS=0\tcrlf\t\t\t\t0关闭PSM 1启用"
msg30="dontuse\tdonthex\tAT+CPSMS=1,,,01000011,00100001\tcrlf\t\t\t\t设置T3412和T3324,0-D"
msg31=dontuse\tdonthex\tAT+CPSMS?\tcrlf\t\t\t\t查询PSM设置
msg32="dontuse\tdonthex\tAT+CEDRXS=0,5,0101\tcrlf\t\t\t\teDRX设置 0-关闭 1-开启"
msg33=dontuse\tdonthex\tAT+CEDRXS?\tcrlf\t\t\t\t查询eDRX设置
msg34="dontuse\tdonthex\tAT+NPTWEDRXS=1,5,0111,0010\tcrlf\t\t\t\t设置PTW eDRX 0-关闭"
msg35=dontuse\tdonthex\tAT+NPTWEDRXS?\tcrlf\t\t\t\t查询PTW eDRX
msg36=dontuse\tdonthex\t\tcrlf\t\t\t\t
msg37="dontuse\tdonthex\tAT+CGDCONT=0,\"IP\",\"sdlyxzxnbmjy.vpdn.sc\"\tcrlf\t\t\t\t设置pdp"
msg38="dontuse\tdonthex\tAT+CGAUTH=0,1,\"1@sdlyxzxnbmjy.vpdn.sc\",\"1\"\tcrlf\t\t\t\t设置pdp用户密码"
msg39="dontuse\tdonthex\tAT+CGACT=1,0\tcrlf\t\t\t\t激活pdp(一般不用)"
msg40=dontuse\tdonthex\t----------------------TCP-----------------------------\tcrlf\t\t\t\t
msg41="dontuse\tdonthex\tAT+NSOCR=\"STREAM\",6,6003,1\tcrlf\t\t\t\t创建tcp"
msg42="dontuse\tdonthex\tAT+NSOCO=1,192.168.1.5,9002\tcrlf\t\t\t\t连接服务器"
msg43="dontuse\tdonthex\tAT+NSOSD=1,4,FEFEFEFE\tcrlf\t\t\t\t发送数据"
msg44="dontuse\tdonthex\tAT+NSORF=1,255\tcrlf\t\t\t\t逐条读取接收数据"
msg45="dontuse\tdonthex\tAT+NSOCL=1\tcrlf\t\t\t\t关闭连接"
msg46=dontuse\tdonthex\t----------------------UDP-----------------------------\tcrlf\t\t\t\t
msg47="dontuse\tdonthex\tAT+NSOCR=\"DGRAM\",17,6003,\tcrlf\t\t\t\t最后 0无接收提醒 1提醒"
msg48="dontuse\tdonthex\tAT+NSOST=1,47.98.189.232,1990,3,303132\tcrlf\t\t\t\t发送"
msg49="dontuse\tdonthex\tAT+NSOSTF=1,47.98.189.232,1990,0x200,3,303132\tcrlf\t\t\t\t发送 RAI"
msg50="dontuse\tdonthex\tAT+NSORF=1,255\tcrlf\t\t\t\t逐条读取接收数据"
msg51="dontuse\tdonthex\tAT+NSOCL=1\tcrlf\t\t\t\t关闭"
msg52=dontuse\tdonthex\t----------------------- MQTT------------------------\tcrlf\t\t\t\t
msg53="dontuse\tdonthex\tAT+MQTTCFG=\"a1mrhXkyNHk.iot-as-mqtt.cn-shanghai.aliyuncs.com\",1883,\"86997|securemode=3,signmethod=hmacsha1|\",60,\"test1&a1mrhXkyNHk\",\"6D138D1FFD0BED5752015CA6B55C05D8DF2FAD22\",1\tcrlf\t\t\t\t配置MQTT"
msg54="dontuse\tdonthex\tAT+MQTTOPEN=1,1,0,0,0,\"\",\"\"\tcrlf\t\t\t\t连接服务器"
msg55="dontuse\tdonthex\tAT+MQTTPUB=\"/sys/a1mrhXkyNHk/test1/thing/event/property/post\",0,0,0,0,\"{\"params\":{\"Temprature\":30,\"Humidity\":30}}\"\tcrlf\t\t\t\t发布"
msg56="dontuse\tdonthex\tAT+MQTTSUB=\"/a1mrhXkyNHk/test1/user/get\",0\tcrlf\t\t\t\t订阅"
msg57="dontuse\tdonthex\tAT+MQTTPING=1\tcrlf\t\t\t\t回显心跳ACK"
msg58=dontuse\tdonthex\tAT+MQTTDISC\tcrlf\t\t\t\t断开连接
msg59=dontuse\tdonthex\t\tcrlf\t\t\t\t
msg60=dontuse\tdonthex\t\tcrlf\t\t\t\t
msg61=dontuse\tdonthex\t\tcrlf\t\t\t\t
msg62=dontuse\tdonthex\t\tcrlf\t\t\t\t
msg63=dontuse\tdonthex\t\tcrlf\t\t\t\t
msg64=dontuse\tdonthex\t\tcrlf\t\t\t\t
totalmsg=65
一、开机检测
二、连接、信号和状态查询
三、CDP服务器
四、注册与模式设置
五、设置pdp
六、设置TCP连接
七、设置UDP连接
八、设置MQTT连接