@font-face{
font-family:"Times New Roman";
}
@font-face{
font-family:"宋体";
}
@font-face{
font-family:"Arial";
}
@font-face{
font-family:"黑体";
}
@list l0:level1{
mso-level-number-format:decimal;
mso-level-suffix:tab;
mso-level-text:"%1.";
mso-level-tab-stop:15.6000pt;
mso-level-number-position:left;
margin-left:0.0000pt;
text-indent:0.0000pt;
font-family:‘Times New Roman‘;}
@list l0:level2{
mso-level-number-format:decimal;
mso-level-suffix:space;
mso-level-text:"%1.%2";
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:0.0000pt;text-indent:0.0000pt;margin-left:0.0000pt;
text-indent:0.0000pt;
font-family:‘Times New Roman‘;}
@list l0:level3{
mso-level-number-format:decimal;
mso-level-suffix:space;
mso-level-text:"%1.%2.%3";
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:0.0000pt;text-indent:0.0000pt;margin-left:0.0000pt;
text-indent:0.0000pt;
font-family:‘Times New Roman‘;}
@list l0:level4{
mso-level-number-format:decimal;
mso-level-suffix:space;
mso-level-text:"%1.%2.%3.%4";
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:0.0000pt;text-indent:0.0000pt;margin-left:0.0000pt;
text-indent:0.0000pt;
font-family:‘Times New Roman‘;}
@list l0:level5{
mso-level-number-format:decimal;
mso-level-suffix:space;
mso-level-text:"%1.%2.%3.%4.%5";
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:0.0000pt;text-indent:0.0000pt;margin-left:0.0000pt;
text-indent:0.0000pt;
font-family:‘Times New Roman‘;}
@list l0:level6{
mso-level-number-format:decimal;
mso-level-suffix:space;
mso-level-text:"%1.%2.%3.%4.%5.%6";
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:0.0000pt;text-indent:0.0000pt;margin-left:0.0000pt;
text-indent:0.0000pt;
font-family:‘Times New Roman‘;}
@list l0:level7{
mso-level-number-format:decimal;
mso-level-suffix:space;
mso-level-text:"%1.%2.%3.%4.%5.%6.%7";
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:0.0000pt;text-indent:0.0000pt;margin-left:0.0000pt;
text-indent:0.0000pt;
font-family:‘Times New Roman‘;}
@list l0:level8{
mso-level-number-format:decimal;
mso-level-suffix:space;
mso-level-text:"%1.%2.%3.%4.%5.%6.%7.%8";
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:0.0000pt;text-indent:0.0000pt;margin-left:0.0000pt;
text-indent:0.0000pt;
font-family:‘Times New Roman‘;}
@list l0:level9{
mso-level-number-format:decimal;
mso-level-suffix:space;
mso-level-text:"%1.%2.%3.%4.%5.%6.%7.%8.%9";
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:0.0000pt;text-indent:0.0000pt;margin-left:0.0000pt;
text-indent:0.0000pt;
font-family:‘Times New Roman‘;}
p.MsoNormal{
mso-style-name:正文;
mso-style-parent:"";
margin:0pt;
margin-bottom:.0001pt;
mso-pagination:none;
text-align:justify;
text-justify:inter-ideograph;
font-family:‘Times New Roman‘;
mso-fareast-font-family:宋体;
font-size:10.5000pt;
mso-font-kerning:1.0000pt;
}
h1{
mso-style-name:"标题 1";
mso-style-next:正文;
margin-top:17.0000pt;
margin-bottom:16.5000pt;
page-break-after:avoid;
mso-pagination:lines-together;
text-align:justify;
text-justify:inter-ideograph;
mso-outline-level:1;
line-height:240%;
font-family:‘Times New Roman‘;
mso-fareast-font-family:宋体;
font-weight:bold;
font-size:22.0000pt;
mso-font-kerning:22.0000pt;
}
h2{
mso-style-name:"标题 2";
mso-style-next:正文;
margin-top:13.0000pt;
margin-bottom:13.0000pt;
page-break-after:avoid;
mso-pagination:lines-together;
text-align:justify;
text-justify:inter-ideograph;
mso-outline-level:2;
line-height:172%;
font-family:Arial;
mso-fareast-font-family:黑体;
font-weight:bold;
font-size:16.0000pt;
mso-font-kerning:1.0000pt;
}
span.msoIns{
mso-style-type:export-only;
mso-style-name:"";
text-decoration:underline;
text-underline:single;
color:blue;
}
span.msoDel{
mso-style-type:export-only;
mso-style-name:"";
text-decoration:line-through;
color:red;
}
@page{mso-page-border-surround-header:no;
mso-page-border-surround-footer:no;}@page Section0{
margin-top:72.0000pt;
margin-bottom:72.0000pt;
margin-left:90.0000pt;
margin-right:90.0000pt;
size:595.3500pt 841.9500pt;
layout-grid:15.6000pt;
}
div.Section0{page:Section0;}
电信ME3616模块
2.1 模块说明
ME3616 是一款支持NB-IoT通信标准的窄带蜂窝物联网通信模组
在NB-IoT制式下,该模块可以提供最大66 Kbps上行速率和34 Kbps下行速率
ME3616专为低速率、低功耗、远距离、海量连接的物联网应用而设计
该模块支持多种网络协议(CoAP、TCP/UDP、MQTT)和多种低功耗模式(PSM、eDRX)
环境温度:-40℃ ~ 85 ℃
尺寸:16mm×18mm
DC-DC 的过流能力必须在 800mA 以上
2.2 模块功能
开机过程
物理开机:PIN19(POWER_ON)持续2s以上,模块开机
关机过程
物理关机:PIN19(POWER_ON)持续4s以上,模块关机
关机命令:AT+ZTURNOFF
关机前需下发”AT+CFUN=0”,保存网络相关配置
复位命令:AT+ZRST
建立网络连接
联网流程
ME3616支持NB全频段,如果没有特殊需求,不需要选定网络频段,上电开机后模块会自动注册网络,自动联网获取IP地址,不需要发送AT指令
开机返回值如下:
*MATREADY: 1
+CFUN: 1
+CPIN: READY
+IP: 10.54.87.21
如上最后返回值 +IP: 10.54.87.21 表示已经联网获取到IP地址
连接电信IOT平台
ME3616专门为连接电信平台做了相关AT指令,方便直接连入IOT平台
连接电信平台需要现在电信平台注册账号,做好profile和编解码插件部署后,注册对应设备,然后才可以连接平台首发指令
AT+M2MCLINEW=180.101.147.115,5683,"000000000000000",43200
OK
+M2MCLI:register success
+M2MCLI:observe success
AT+M2MCLISEND=0100
OK
+M2MCLI:notify success
AT+M2MCLINEW=180.101.147.115,5683,”000000000000000”,43200命令中
平台地址:180.101.147.115 端口5683
对应的模块上的IMEI号:000000000000000,通过“ATI”指令查询
注册平台的lifetime:43200 可以理解为多久和平台通信一次,平台会认为模块正常,单位是s
AT+M2MCLISEND=0100,发送数据0100到平台。
+M2MCLI:notify success,
参数说明
<data>
register success:当模组注册电信 IOT 平台成功时,主动上报
register update success:当模组更新注册电信 IOT 平台成功时,主动上报
register failed:当模组注册电信 IOT 平台失败时,主动上报
deregister success:当模组去注册电信 IOT 平台成功时,主动上报
observe success:当模组收到电信 IOT 平台 observe object 19 时,主动上报
notify success:当模组使用 AT+M2MCLISEND 向 IOT 平台成功发送数据之后,主动上报
notify failed:当模组使用 AT+M2MCLISEND 向 IOT 平台发送数据失败之后,主动上报
sendmsgid msgid:当模组使用 AT+M2MCLISEND 采用 CON 格式向 IOT 平台发送数据成功之后,主动上报
readmsgid msgid:当模组使用 AT+M2MCLISEND 采用 CON 格式向 IOT 平台发送数据成功之后,收到平台回复的 msgid
以后,主动上报
发送网络数据
命令:
AT+M2MCLISEND=<Data>
该命令用于向电信 IOT 平台发送 HEX 数据
<Data>:发送数据(HEX)长度要求为偶数,用于向 server 发送数据。仅支持 0~9,A~F,a~f
<mode>:默认为 0
0:发送 NON 格式数据
1:发送 CON 格式数据
采用 NON 格式(默认)
AT+M2MCLISEND=AA7200000801061201110B101A340300160204024C0E050164090300000036010106027D00070169
OK
+M2MCLI:notify success
采用 CON 格式:
AT+M2MCLISEND=AA123456,1
OK
+M2MCLI:sendmsgid 85ac
+M2MCLI:readmsgid 85ac
接收网络数据
返回结果:
<CR><LF>+M2MCLIRECV: <Data><CR><LF>
该命令是主动上报数据流,用于向 MCU 上报从服务器接收到的数据
<Data>:从服务器收到的数据,主动上报给 MCU
举例
+M2MCLIRECV:AA72020000000001380100
2.3 完整通讯过程
创建电信 IOT 平台
AT+M2MCLINEW=180.101.147.115,5683,"123456789012396",300 //注册电信 IOT 平台
OK
+M2MCLI:register success
+M2MCLI:observe success
AT+M2MCLISEND=AA123456 //向 IOT 平台发送数据(Hex 数据,长度需为偶数)
OK
+M2MCLI:notify success
+M2MCLIRECV:AA72020000000001380100 //主动上报数据
+M2MCLI:register update success
+M2MCLI:register update success
+M2MCLI:register update success
AT+M2MCLIDEL //去注册设备
OK
+M2MCLI:deregister success
LWM2M 相关 AT 命令如下:
AT+M2MCLINEW LWM2M Client 注册 IOT 平台
AT+M2MCLIDEL LWM2M Client 去注册 IOT 平台
AT+M2MCLISEND LWM2M Client 数据发送
+M2MCLI LWM2M Client 主动上报
+M2MCLIRECV LWM2M Client 数据上报
具体 AT 命令格式可参考:《高新兴物联 ME3616 模块 AT 指令手册》