当前位置:网站首页>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
示意如下:
对嵌入式技术感兴趣的,欢迎关注微信公众号“嵌入式之入坑笔记”,一起学习讨论啊!
边栏推荐
猜你喜欢
Development environment variable record under win
JS高级 之 使用 Iterator - Generator
Guo Jingjing's personal chess teaching, the good guy is a robot
IDEA中xml文件头报错:URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs)
「应用架构」TOGAF建模:应用程序迁移图
Shell脚本数组
Static关键字及应用,继承的概念
LCD模块如何建立联系分析
CentOS和Ubantu的Mysql主从配置
支付 x 聚合 x 分账 - 回流平台“二清”风险规避之路
随机推荐
「应用架构」TOGAF建模:应用程序迁移图
消息队列概述
Thrift -- 跨语言RPC 框架
【微服务架构】微服务与SOA架构(2)
LCD DRM component 框架分析
多元线性回归分析(Stata)
【数据仓库】什么是 Azure Synapse,它与 Azure Data Bricks 有何不同?
阻塞队列与线程池原理
Message Queuing Overview
【软考 系统架构设计师】系统可靠性分析与设计① 系统可靠性分析
Swin Transformer作者曹越加入智源,开展视觉基础模型研究
「数据战略」结果驱动的企业数据策略:组织和治理
【C语言】浮点数四舍五入
VBA: 采用Combox控件实现二级下拉菜单功能
ELK框架搭建[通俗易懂]
LeetCode Algorithm 914. 卡牌分组
2022.8.7-----leetcode.636
【Redis】Redis入门教程(介绍 下载安装 Jedis 图形化界面)
数据中台解决方案及未来发展方向
Numpy学习