以前我们在裸机使用 ESP8266,需要根据文档根据自己的需求自己一点一点实现模块的驱动程序,现在使用了 RT-Thread 系统,我们可以基于 RT-Thread 提供的 AT 组件进行 ESP8266 的操作。 2.1 at_device 软件包 在使用 RT-Thread 系统的时候,我们有 AT 组件可以进行 ESP8266 的操作,因为 AT 组件是通用的驱动,它并不区...
将ESP8266模组安装在无线扩展接口上,然后将拨码开关拨向【AT-MCU】端: 二、添加软件包 1、开启libc组件 打开【RT-Thread Settings】,点击【libc】将其开启 2、添加at_device软件包 点击添加软件包,搜索at_device,然后点击添加: 添加好后,右键单击进入该软件包配置页面: 通过查看原理图可以知道,ESP8266使用连接到...
众多通讯模块透过 UART 或 SPI 接口采用 ATcommand 做为控制方式。控制指令和格式没有标准化,增加了实作的难度。RT-Thread 的 at device 套件正是控制这类模块的解决方案。
通过at-device的软件包,使用at指令,进行mqtt连接,同时订阅主题,使用urc回调函数,打印接收的主题信息。 测试代码: #include <rtthread.h>#include <rtdevice.h>#include <at.h>#include <at_device.h>#include <at_log.h>#define AT_SEND_MQTT_CMD(client, resp, cmd) \ do { \ (resp) = at_resp_...
正式因为 ESP8266 通用,所以已经有开发者基于 RT-Thread 的AT组件,写好了支持 ESP8266 的软件包 at_device。我们可以直接使用: 2.2 使用步骤 基本的介绍完毕,我们直接来说明一下如何使用 RT-Thread 的组件与软件包,简单的使用我们的 ESP8266 WIFI 模块。
NTP 是网络时间协议(Network Time Protocol),它是用来同步网络中各个计算机时间的协议,RT-Thread 上的 NTP 客户端连接上网络后,可以获取当前 UTC 时间,并更新至 RTC 中。 打开配置文件,添加软件包,搜索NTP之后添加: 右击软件包,修改该软件包的配置:
AT device Chinese| English 1. Introduction The AT device software package is composed of the transplantation files and sample codes of the RT-Thread AT component for different AT devices. Currently supported AT devices are: ESP8266, ESP32, M26, MC20, RW007, MW31, SIM800C, W60X, SIM76XX...
在msh下启用AT指令模式 然后可以测试各种AT指令 利用代码发送指令进行指令交互 服务器下发数据给MCU接收 https://www.rt-thread.org/document/site/#/rt-thread-version/rt-thread-standard/programming-manual/at/at?id=at-client 启用at_device插件 https://github.com/RT-Thread-packages/at_device ...
1.2 rtthread AT组件资源占用 AT Client 功能: 4.6K ROM 和 2.0K RAM;AT Server 功能: 4.0...
配置 shell 设备:RT-Thread Kernel ---> Kernel Device Object ---> 修改 the device name for console 为uart1,配置 shell 默认设备为串口 1。开启 AT Client 功能:RT-Thread Components ---> Network ---> AT commands --> 开启 AT DEBUG,开启 AT Client 支持,设置 AT Client 使用设备为串口 2...