ikkhksvu 发表于 2024-8-28 09:41:25

个人机智云研发实践:经验总结与技术分享


    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">在个人的机智云<span style="color: black;">研发</span>过程中,<span style="color: black;">重点</span><span style="color: black;">包含</span>以下几个<span style="color: black;">过程</span>:</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">1.项目创建与数据点设置</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">2.在机智云平台上创建项目并定义所需的数据点,这些数据点将用于设备和云端的通信。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">3.无线通信模块固件烧录</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">4.下载并烧录适用于所选无线模块的 GAgent 固件。例如,我<span style="color: black;">运用</span>了正点原子的 esp8266 模块,<span style="color: black;">选取</span>了对应的 GAgent for ESP8266 固件。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">5.MCU<span style="color: black;">方法</span>代码移植</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">6.将机智云<span style="color: black;">供给</span>的 MCU <span style="color: black;">方法</span>代码移植到底层设备的微<span style="color: black;">掌控</span>器(MCU)上,<span style="color: black;">保证</span>设备能够与机智云平台进行通信和<span style="color: black;">掌控</span>。这一步可能需要参考官方文档、论坛讨论和其他资源来完成代码的移植和调试。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">7.机智云调试APP配网</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">8.<span style="color: black;">运用</span>机智云<span style="color: black;">供给</span>的调试APP进行设备的网络配置(配网)。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">机智云所需工具和软件</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">在<span style="color: black;">研发</span>过程中<span style="color: black;">运用</span>了以下工具和软件:</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q5.itc.cn/images01/20240705/39734578d11f4dbbb4f2760e4ae8d784.jpeg" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">GAgent固件包</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">GAgent 是一款适用于<span style="color: black;">各样</span>通信模组的应用程序固件,它简化了设备与手机APP和云端之间的双向数据通信。<span style="color: black;">研发</span>者只需关注业务<span style="color: black;">规律</span><span style="color: black;">研发</span>,而不必处理底层通信细节。固件遵循机智云平台标准接入协议,支持设备配置、<span style="color: black;">发掘</span>、绑定和程序升级等功能。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">机智云<span style="color: black;">制品</span>调试APP</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">这款APP<span style="color: black;">针对</span>设备的网络配置(配网)至关重要,能够<span style="color: black;">保证</span>设备<span style="color: black;">能够</span>顺利连接到 Wi-Fi 网络,并在首次配网后实现自动重连。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">机智云串口调试助手</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">用于验证和调试 ESP8266 模块烧录的固件<span style="color: black;">是不是</span>正常工作,以及<span style="color: black;">经过</span>模拟 MCU 功能测试调试APP的<span style="color: black;">运用</span><span style="color: black;">状况</span>。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">对于<span style="color: black;">每一个</span><span style="color: black;">过程</span>的<span style="color: black;">详细</span>操作和<span style="color: black;">更加多</span><span style="color: black;">仔细</span>信息,请参考机智云官网<span style="color: black;">研发</span>者中心的<span style="color: black;">关联</span>文档和教程。这些资源将为您<span style="color: black;">供给</span>完整的<span style="color: black;">研发</span><span style="color: black;">指点</span>和支持。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">机智云上项目创建、数据点创建、导出MCU<span style="color: black;">方法</span>代码</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">参考官网<span style="color: black;">研发</span>者中心的中文档中心的机智云接入教程<span style="color: black;">就可</span>。(<span style="color: black;">意见</span>看完官网的教程)</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">五分钟<span style="color: black;">认识</span>机智云接入流程 - Gizwits</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q5.itc.cn/images01/20240705/bfa87bc772b14132a50d542cee716a2d.jpeg" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">详细</span>说明:</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">数据点的设置<span style="color: black;">便是</span>后期和底层MCU通信的功能点。<span style="color: black;">详细</span>参数不懂<span style="color: black;">能够</span>看文档中心的机智云名词定义解释。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">无线通信模块固件烧录</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">在下载GAgent固件后,需要给当前的无线通信模块烧录进去。<span style="color: black;">这儿</span>以ESP8266为例烧录GAgent固件。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">ESP8266模块若要烧录固件,请在给模块上电前把IO_0脚接地(<span style="color: black;">能够</span>上电后再重新拔插连接VCC的杜邦线)。以此来<span style="color: black;">处理</span><span style="color: black;">始终</span>等待上电同步问题。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">机智云底层MCU代码移植</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">到了这一步,<span style="color: black;">便是</span>实现底层MCU设备的机智云代码移植了。当时在这一步花了不少时间,<span style="color: black;">重点</span>是在各个<span style="color: black;">途径</span><span style="color: black;">无</span>找到一个讲解全面的教程,其中参考过MCU<span style="color: black;">方法</span>导出后给的PDF(官方的教程)、CSDN上的<span style="color: black;">文案</span>、机智云论坛的帖子,<span style="color: black;">最后</span>对比改出来的。在<span style="color: black;">这儿</span>不做<span style="color: black;">详细</span>教程,给出<span style="color: black;">研发</span>者成功移植后的工程代码以及官方的PDF<span style="color: black;">做为</span>对比参考。(用的STM32F407ZGT6,MDK的IDE)</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">链接:百度网盘</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">https://pan.baidu.com/share/init?surl=-P69LjA2n8X1PIKUBeWMLQ&amp;pwd=F407</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">提取码:F407</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">机智云配网教程</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">机智云调试APP配网</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">WIFI的首次配网(<span style="color: black;">或</span>更换网络连接)都需要<span style="color: black;">运用</span>机智云调试APP来进行配网,而首次配网后WIFI模块只要再次上电便可完成自动连接。个人在<span style="color: black;">运用</span>过程中,<span style="color: black;">重点</span><span style="color: black;">运用</span>了AirLink和SoftAP两种模式。<span style="color: black;">按照</span>个人<span style="color: black;">运用</span>经验,<span style="color: black;">运用</span>SoftAP模式配网成功率更高。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q9.itc.cn/images01/20240705/c07716a98e714a57b1aeb9815e559f87.jpeg" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">以下为app端的配网教程,<span style="color: black;">不消</span>登录<span style="color: black;">亦</span>可<span style="color: black;">运用</span>,设备端的操作在后面,此处<span style="color: black;">掰开</span>讲</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q3.itc.cn/images01/20240705/b6a4769eb0734dd1bbf00af651a0e1fa.jpeg" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">AirLink模式下配网</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">(1)进入设备添加界面</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q7.itc.cn/images01/20240705/77d878e060964271a49d4861a11abdf2.jpeg" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">(2)此处请输入连接WIFI的账号<span style="color: black;">秘码</span>,不要输错,开启手机位置定位<span style="color: black;">才可</span><span style="color: black;">自动</span><span style="color: black;">选取</span>WIFI</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q1.itc.cn/images01/20240705/a064cbca136542df89b811a8a7525a23.jpeg" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">(3)<span style="color: black;">始终</span>点继续,<span style="color: black;">选取</span>乐鑫的模组。(<span style="color: black;">按照</span>自己的无线通信模块来</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">(4)<span style="color: black;">显现</span>此界面时<span style="color: black;">按照</span>将设备调至AirLink配网模式,等待连接成功<span style="color: black;">就可</span>(<span style="color: black;">日前</span>就算设备搜寻成功<span style="color: black;">亦</span>得自己手动取消搜寻)</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">(5)回到主界面<span style="color: black;">显现</span>设备即为APP端配网成功,点进去<span style="color: black;">就可</span><span style="color: black;">运用</span>(没成的话多试几次,AirLink配网确实要多试几次<span style="color: black;">才可</span>成)</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q9.itc.cn/images01/20240705/66bb5d9d5a45455f9823e07b6f9d2ba1.jpeg" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q2.itc.cn/images01/20240705/173ec9c12bd743be8602632eff49ec4e.jpeg" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">2、SoftAP模式下配网</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">(1)进入设备添加界面</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q0.itc.cn/images01/20240705/979ed1152ced4e03950a8d1c22904c8c.jpeg" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">(2)填写所用的WIFI账号<span style="color: black;">秘码</span>,以及SoftAP热点账号<span style="color: black;">秘码</span>(手机位置定位开启<span style="color: black;">才可</span><span style="color: black;">自动</span><span style="color: black;">选取</span>WIFI)(<span style="color: black;">倘若</span>不<span style="color: black;">晓得</span>SoftAP热点后缀,<span style="color: black;">能够</span>先将设备调至SoftAP配网模式,<span style="color: black;">而后</span>手机打开wifi开关搜寻<span style="color: black;">就可</span>)</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q8.itc.cn/images01/20240705/66f89c97673e45529a4f8c20c7a195c6.jpeg" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">(3)<span style="color: black;">始终</span>点继续,<span style="color: black;">选取</span>乐鑫的模组。(<span style="color: black;">按照</span>自己的无线通信模块来)</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">(4)<span style="color: black;">显现</span>此界面后,点击进去连接SoftAP热点(<span style="color: black;">秘码</span>123456789)</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">(5)<span style="color: black;">显现</span>此界面时<span style="color: black;">按照</span>将设备调至SoftAP配网模式,等待连接成功<span style="color: black;">就可</span>(<span style="color: black;">日前</span>就算设备搜寻成功<span style="color: black;">亦</span>得自己手动取消搜寻)</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">(6)回到主界面<span style="color: black;">显现</span>设备即为APP端配网成功,点进去<span style="color: black;">就可</span><span style="color: black;">运用</span>(<span style="color: black;">通常</span>一次就能成)</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q4.itc.cn/images01/20240705/2f9fe2127e7d4f39b5857393e76a04fe.jpeg" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">以上是机智云APP配网的操作,接下来是设备端的<span style="color: black;">详细</span>操作。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">运用</span>机智云串口调试助手模拟MCU</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">1、<span style="color: black;">运用</span>机智云串口调试助手<span style="color: black;">首要</span>需要将自己<span style="color: black;">研发</span>的<span style="color: black;">制品</span>加入进来,在项目<span style="color: black;">研发</span>的<span style="color: black;">地区</span>复制PK以及PS,<span style="color: black;">按照</span>自己<span style="color: black;">研发</span>的<span style="color: black;">制品</span>进行<span style="color: black;">选取</span>。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q2.itc.cn/images01/20240705/456f8ed9f3d146f39cc6799b5ed552d9.jpeg" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">2、波特率<span style="color: black;">选取</span>9600,打开自动回复。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q3.itc.cn/images01/20240705/30800946cc0e47b9ad202c642e1cd49c.jpeg" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">3、<span style="color: black;">首要</span>点击初始化,再<span style="color: black;">按照</span><span style="color: black;">自己</span>需要点击AirLink配网和SoftAP配网,使得WIFI进入相应配网模式,再<span style="color: black;">根据</span>前面APP配网部分操作<span style="color: black;">就可</span>。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q7.itc.cn/images01/20240705/7b1853f654194822958d4d8e3c0e1f4a.jpeg" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">运用</span>移植好的MCU设备</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">底层MCU设备移植好机智云后,<span style="color: black;">经过</span><span style="color: black;">运用</span>板上按键,<span style="color: black;">选取</span>进入AirLink配网<span style="color: black;">或</span>SoftAP配网模式,再<span style="color: black;">根据</span>前面APP配网部分操作<span style="color: black;">就可</span>。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">做好的移植代码为例,当设备入网成功后,板上绿灯会常亮;而没入网时,板上绿灯会熄灭。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q3.itc.cn/images01/20240705/16d137b1ccff4e1f95cbb7ce8f3da3a4.jpeg" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">设备上电后,按下板子上的KEY0可进入AirLink配网模式,按KEY_UP则进入SoftAP配网模式。<span style="color: black;">经过</span>手机App完成配网设置后,<span style="color: black;">就可</span><span style="color: black;">运用</span>App上的按钮<span style="color: black;">掌控</span>底层MCU设备实现其功能。<a style="color: black;"><span style="color: black;">返回<span style="color: black;">外链论坛:www.fok120.com</span>,查看<span style="color: black;">更加多</span></span></a></p>

    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">责任编辑:网友投稿</span></p>




qzmjef 发表于 2024-9-25 21:55:06

我深感你的理解与共鸣,愿对话长流。

nykek5i 发表于 2024-9-30 19:23:58

“NB”(牛×的缩写,表示叹为观止)‌

j8typz 发表于 2024-10-23 17:32:08

外贸网站建设方法 http://www.fok120.com/

4lqedz 发表于 2024-11-5 16:12:41

“BS”(鄙视的缩写)‌

7wu1wm0 发表于 6 天前

一看到楼主的气势,我就觉得楼主同在社区里灌水。
页: [1]
查看完整版本: 个人机智云研发实践:经验总结与技术分享