【安信可NB-IoT开发板EC-01F-Kit测评】+简单联网测试
<div class='showpostmsg'><p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:等线">我们通过AT指令可以对其进行联网。所以接下来就是测试了下设备的简单联网,主要是连接OneNet云。</span></span></p><p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:等线">通过OneNet云,我们对NB-IOT进行简单的测试。首先就是创建产品。</span></span></p>
<p style="text-align:justify"> </p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:等线">一定要记住创建的是NB-IOT联网方式。</span></span></p>
<p style="text-align:justify"> </p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:等线">之后就是添加设备了,设备需要填写两个信息,一个是IMEI,一个是IMSI。应该通过这两个即可完成设备的鉴别。</span></span></p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:等线">之后就是测试工程,本案例中使用了官方提供的历程,可以连接两个云端,一个是阿里云一个就是我们使用的OneNet。</span></span></p>
<p style="text-align:justify"> </p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:等线">硬件连接如下,使用的板子是我之前自己画的。</span></span></p>
<p style="text-align:justify"> </p>
<p style="text-align:justify"> </p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:等线">通过如下指令连接OneNet。</span></span></p>
<pre>
<code>AT Test
delay some time to get receive data
EC616S_data:
OK
OK
set RF mode: 1
delay some time to get receive data
EC616S_data:
OK
Attach_Net_Mode: 1
delay some time to get receive data
EC616S_data:
OK
OneNET IP & PORT
delay some time to get receive data
EC616S_data:
+MIPLCONFIG:1,183.230.40.39,5683
+MIPLCONFIG:2,2
+MIPLCONFIG:3,1
+MIPLCONFIG:4,0
+MIPLCONFIG:5,0
+MIPLCONFIG:6,0
+MIPLCONFIG:7,0,1
OK
OneNET net status
delay some time to get receive data
EC616S_data:
+CEREG:0,1
OK
create OneNET Cloud mount
delay some time to get receive data
EC616S_data:
+MIPLCREATE:0
OK
create oneNET object
delay some time to get receive data
EC616S_data:
OK
send oneNET register request
delay some time to get receive data
EC616S_data:
OK
+MIPLEVENT:0,1
+MIPLEVENT:0,2
+MIPLEVENT:0,6
template Data:`_msgID is:_?delay some time to get receive data
EC616S_data:</code></pre>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:等线"><span style="font-size:9.0pt"><span style="font-family:宋体"><span style="color:black">成功后,就能在设备中看到设备上线了,目前还没有接入传感器,后续接入传感器继续测试上传数据功能。</span></span></span></span></span></p>
</div><script> var loginstr = '<div class="locked">查看本帖全部内容,请<a href="javascript:;" style="color:#e60000" class="loginf">登录</a>或者<a href="https://bbs.eeworld.com.cn/member.php?mod=register_eeworld.php&action=wechat" style="color:#e60000" target="_blank">注册</a></div>';
if(parseInt(discuz_uid)==0){
(function($){
var postHeight = getTextHeight(400);
$(".showpostmsg").html($(".showpostmsg").html());
$(".showpostmsg").after(loginstr);
$(".showpostmsg").css({height:postHeight,overflow:"hidden"});
})(jQuery);
} </script><script type="text/javascript">(function(d,c){var a=d.createElement("script"),m=d.getElementsByTagName("script"),eewurl="//counter.eeworld.com.cn/pv/count/";a.src=eewurl+c;m.parentNode.insertBefore(a,m)})(document,523)</script>
页:
[1]