【安信可NB-IoT开发板EC-01F-Kit】五、综合测试
<div class='showpostmsg'><p style="text-align:justify"><span style="font-size:24px;"><strong><span style="font-family:Calibri"><span style="font-family:宋体"><font face="宋体"> 今天综合测试</font><font face="Calibri">TCP</font><font face="宋体">、</font><font face="Calibri">MQTT</font><font face="宋体">、</font><font face="Calibri">HTTP</font><font face="宋体">连接,</font><font face="Calibri">TCP</font><font face="宋体">可以最多建立</font><font face="Calibri">7</font><font face="宋体">个连接,我们还是用安信可透传云来测试,</font><font face="Calibri">MQTT</font><font face="宋体">连接阿里云,</font><font face="Calibri">HTTP</font><font face="宋体">连接时间接口获取时间。</font></span></span></strong></span></p><p style="text-align:justify"><span style="font-size:24px;"><strong><span style="font-family:Calibri"><span style="font-family:宋体"><font face="宋体"> </font></span></span></strong></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:24px;"><strong><iframe allowfullscreen="true" frameborder="0" height="510" src="https://training.eeworld.com.cn/shareOpenCourseAPI?isauto=true&lessonid=32279" style="background:#eee;margin-bottom:10px;" width="700"></iframe></strong></span><br />
</p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:24px;"><strong><span style="font-family:Calibri"><span style="font-family:宋体"><font face="宋体">视频依次连接</font><font face="Calibri">TCP</font><font face="宋体">、</font><font face="Calibri">HTTP</font><font face="宋体">、</font><font face="Calibri">MQTT</font><font face="宋体">,然后发送、接收数据,感觉很顺利。</font></span></span></strong></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:24px;"><strong><span style="font-family:Calibri"><span style="font-family:宋体"><font face="宋体">但是时间接口</font><font face="Calibri">HTTP</font><font face="宋体">服务器一分钟会强制断开连接,应该是这个接口不允许客户端占用太多时间就强制下线了。而且第二次连接还会出现</font><font face="Calibri">NO FIND CLIENT</font><font face="宋体">。</font></span></span></strong></span></p>
<p class="imagemiddle" style="text-align: center;"><span style="font-size:24px;"><strong></strong></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:24px;"><strong> </strong></span></p>
<p style="text-align:justify"> </p>
<p class="imagemiddle" style="text-align: center;"></p>
<p style="text-align:justify"><span style="font-size:24px;"><strong> </strong></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:24px;"><strong><span style="font-family:Calibri"><span style="font-family:宋体"><font face="宋体"> 所以最好还是建议每当发完后关闭连接,这样一来可以释放内存,避免硬件死机跑飞什么的。</font></span></span></strong></span></p>
<p style="text-align:justify"> </p>
<p class="imagemiddle" style="text-align: center;"></p>
<p style="text-align:justify"><span style="font-size:24px;"><strong> </strong></span></p>
<p style="text-align:justify"><span style="font-size:24px;"><strong><span style="font-family:Calibri"><span style="font-family:宋体"><font face="宋体"> 经过测试</font><font face="Calibri">MQTT</font><font face="宋体">和</font><font face="Calibri">TCP</font><font face="宋体">还是挺稳的,不过还是建议太久不发消息的话就关闭。</font></span></span></strong></span></p>
<p class="imagemiddle" style="text-align: center;"></p>
<p class="imagemiddle"><span style="font-size:24px"><strong><span style="font-family:Calibri"><span style="font-family:宋体"><font face="宋体"> 其实连接也就几个指令,很快的,而且可以避免意外断开连接的一些错误处理。</font></span></span></strong></span></p>
<p class="imagemiddle" style="text-align: center;"> </p>
<p style="text-align:justify"> </p>
<p style="text-align:justify"> </p>
<p style="text-align:justify"> </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]