M5310和M5310A连OneNET最简流程
很多童靴拿到我们的开发板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
页:
[1]