2019-7-24 11:41:35 [显示全部楼层]
3407浏览
查看: 3407|回复: 0

[项目教程] M5310和M5310A AT指令最简流程

[复制链接]
很多童靴拿到我们的开发板M5310和M5310A后,不知道从何处入手,也懒得去看at指令手册,我这里列举出两个模组的最简at指令流程。供大家参考:
M5310A:

AT  //模组返回ok,mcu和模组通信成功

AT+CSQ  //查询信号,一般12-31,数值越大越好。一般为20左右

AT+CEREG? //网络附着情况,返回0,1为附着到网络

AT+MIPLCREATE=49,130031F10003F2002304001100000000000010123138332E3233302E34302E33393A35363833000131F300080000000000,0,49,0 //创建实体

AT+MIPLADDOBJ=0,3200,1,"1",0,1 //创建对象,必须创建

AT+MIPLDISCOVERRSP=0,3200,1,4,"5750" //创建资源,如果不创建,数据也能上报平台,但是资源列表不显示

AT+MIPLOPEN=0,3000,30 //登录平台

AT+MIPLNOTIFY=0,0,3200,0,5750,1,4,"177788",0,0,12//,带ackid,ackid每次上报要自加,上报数据


M5310:
AT

AT+CSQ

AT+CEREG?

AT+MIPLCONF=71,1000FEDD2C0100001900636F61703A2F2F3138332E3233302E34302E33393A353638331F003836353832303033303337303433363B313233343536373839303132333435050502,1,1

AT+MIPLADDOBJ=0,3200,0

AT+MIPLNOTIFY=0,3200,0,5505,6,"E30**E6",1

AT+MIPLOPEN=0,30

AT+MIPLNOTIFY=0,3200,0,5505,6,"E30**E6",1//不带ackid

AT+MIPLNOTIFY=0,3200,0,5505,5," E30**E6",1,278//带ackid


您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

为本项目制作心愿单
购买心愿单
心愿单 编辑
[[wsData.name]]

硬件清单

  • [[d.name]]
btnicon
我也要做!
点击进入购买页面
上海智位机器人股份有限公司 沪ICP备09038501号-4

© 2013-2024 Comsenz Inc. Powered by Discuz! X3.4 Licensed

mail