当前位置:网站首页>ESP8266 Tutorial 2 - Burn AT Firmware
ESP8266 Tutorial 2 - Burn AT Firmware
2022-08-10 10:03:00 【Embedded Pit Notes】
对于新手来说,刚开始使用ESP8266It will be a little overwhelming at times,Because I don't know where to start.对于新手,I recommend starting withESP8266的 AT 指令集开始,先了解AT指令的时候,清楚ESP8266的串口-透传wifi模块的基本操作,再进行下一步的操作.
1、烧录AT固件
对于ESP8266,想要学习使用AT指令的话,needs to be flashedAT固件的.虽然大多数的ESP8266The module has been flashed when it leaves the factoryAT固件了,But how to flash the firmware for the module,我觉得还是很有必要的.Next show how to giveESP8266刷AT固件.
(1)准备烧录工具
The burning tool is officially provided by Espressif ESPFlashDownloadTool_v3.6.4.exe ,如下图所示:
(2)Ready to be burnedAT固件
烧录的ATThe firmware uses the firmware file that comes with the module data,如下:
The firmware version can have many different versions,This one I'm using is just a version of it.
(3)连接硬件
After the burning tools and burning firmware are ready,You need to connect the hardware,The hardware may be a little different depending on the modules in each person's hands,常见的有几种:
1)directly integrated into the moduleUSB转TTL,直接用Micro-USB连接即可.如下:
2)用USB转TTL模块和ESP8266Connected by Dupont wire.如下:
(4)打开烧录软件 ESPFlashDownloadTool_v3.6.4.exe ,Two windows will appear,如下:
点击:ESP8266 DownloadTool ,如下:
(5)Load the firmware file,如下:
(6)The download configuration is set as follows,如下图:
(7)点击 START 开始下载,如下图:
The download process is shown in the figure below:
(8)下载完成之后如下图所示:
下载完成之后,ATThe firmware has been successfully flashed,Just restart or reset it.
2、常用的AT指令
2.1、AT测试指令
AT测试指令如下:
如下所示:
当然,If you don't want an echo,是可以关闭的,如下指令:
ATE0 — 关闭回显 ATE1 — 打开回显
2.2、重启模块
The command to restart the module is as follows:
AT+RST
示意图如下:
2.3、查看版本信息
指令如下:
AT+GMR
示意如下:
2.4、恢复出厂设置
指令如下:
AT+RESTORE
示意如下:
2.5、设置串口配置
指令如下:
AT+UART=<baudrate>, <databits>, <stopbits>, <parity>, <flow control> <baudrate> 串口波特率 <databits> 数据位 5:5 bit 数据位 6:6 bit 数据位 7:7 bit 数据位 8:8 bit 数据位 <stopbits> 停止位 1:1 bit 停止位 2:1.5 bit 停止位 3:2 bit 停止位 <parity> 校验位 0:None 1:Odd 2:EVEN <flow control> 流控 0:Flow control is not enabled 1:使能 RTS 2:使能 CTS 3:同时使能 RTS 和 CTS
2.6、查看剩余RAM大小
指令如下:
AT+CSYSHEAP 响应: +CSYSHEAP:<bytes> Bytes <bytes>:整数,表示剩余 RAM The number of bytes of free space
示意如下:
2.7、读取ESP8266的IO状态
指令如下:
AT+CIOREAD=<gpio> <gpio>:整数,ESP8266 引脚 GPIO 号. 响应: <status>:<level> <status>:1或 0 <level>:HIGH 或 LOW
如下示意:
2.8、设置ESP8266的IO状态
指令如下:
AT+CIOWRITE=<gpio>,<status> <gpio>:整数,ESP8266 引脚 GPIO 号. <status>:1 或 0 响应 OK
示意如下:
对嵌入式技术感兴趣的,欢迎关注微信公众号“嵌入式之入坑笔记”,一起学习讨论啊!
边栏推荐
- Swin Transformer作者曹越加入智源,开展视觉基础模型研究
- The first offline workshop in 2022!Data application experience day for application developers is coming | TiDB Workshop Day
- dos环境下操作mysql
- 【软考 系统架构设计师】案例分析⑥ Web应用系统架构设计
- 解决问题目录
- Excel draws statistical graphs
- Controller层代码这么写,简洁又优雅!
- The Generation of Matlab Symbolic Functions and the Calculation of Its Function Values
- ES关于文档的基本操作
- 关于编程本质那些事
猜你喜欢
10 【异步组件 组合式函数(hooks)】
支付 x 聚合 x 分账 - 回流平台“二清”风险规避之路
Tencent releases the second-generation version of the quadruped robot Max, which completes jumps and somersaults on the plum blossom pile
裸辞→自我放松→闭关→复习→斩获Offer
The first offline workshop in 2022!Data application experience day for application developers is coming | TiDB Workshop Day
ESP8266 教程1 — ESP8266硬件平台介绍
【数据架构】概念数据模型和逻辑数据模型有什么区别
「数据战略」结果驱动的企业数据策略:组织和治理
在兄弟连战狼班参加PHP培训做行业领先人才
【API Management】What is API Management and why is it important?
随机推荐
「应用架构」TOGAF建模:应用程序迁移图
"Microservice Architecture" Arrangement and Choreography - Different Models for Making Systems Work Together
The first offline workshop in 2022!Data application experience day for application developers is coming | TiDB Workshop Day
IDEA中xml文件头报错:URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs)
Relearn bubble sort
Static关键字及应用,继承的概念
Guo Jingjing's personal chess teaching, the good guy is a robot
jq封装树形下拉选择框组件
腾讯发布四足机器人 Max 二代版本,梅花桩上完成跳跃、空翻
91.(cesium之家)cesium火箭发射模拟
Development environment variable record under win
绘制温度曲线图;QChart,
LCD DRM component 框架分析
「数据架构」:主数据管理(MDM)对我的行业有什么帮助?
2022.8.8-----leetcode.761
09 【Attributes继承 provide与inject】
Excel draws statistical graphs
web项目访问引用jar内部的静态资源
序列化技术ProtoBuf
ELK入门