esp8266能不能通过wifi更esp8266最新固件下载

软件按字母搜索:
中文按声母搜索:后使用快捷导航没有帐号?
查看: 1189|回复: 6
如何区分ESP8266系列 wifi模块
在线时间0 小时
TA的帖子TA的资源
一粒金砂(初级), 积分 0, 距离下一级还需 5 积分
一粒金砂(初级), 积分 0, 距离下一级还需 5 积分
ESP8266 系列模组是安信可(Ai-thinker)公司采用乐鑫ESP8266芯片开发的一系列wifi 模组模块。
ESP8266 特性:
*802.11 b/g/n
*内置低功耗32位CPU:可以兼作应用处理器
*内置10 bit高精度ADC
*内置TCP/IP协议栈
*内置TR开关、balun、LNA、功率放大器和匹配网络
*内置PLL、稳压器和电源管理组件
*支持天线分集
*STBC、1x1 MIMO、2x1 MIMO
*A-MPDU、A-MSDU的聚合和0.4 s的保护间隔
*WiFi @ 2.4 GHz,支持 WPA/WPA2 安全模式
*支持STA/AP/STA+AP工作模式
*支持Smart Config功能(包括Android和iOS设备)
*SDIO 2.0、(H) SPI、UART、I2C、I2S、IR Remote Control、PWM、GPIO
*深度睡眠保持电流为10 uA,关断电流小于5 uA
*2 ms之内唤醒、连接并传递数据包
*802.11b模式下+20 dBm的输出功率
*待机状态消耗功率小于1.0 mW (DTIM3)
*工作温度范围:-40°C - 125°C
*通过 FCC, CE, TELEC, WiFi Alliance 及 SRRC 认证
ESP8266 Feature:
*802.11 b/g/n protocol
*Wi-Fi Direct (P2P), soft-AP
*Integrated TCP/IP protocol stack
*Integrated TR switch, balun, LNA, power amplifier and matching network
*Integrated PLL, regulators, and power management units
*+19.5dBm output power in 802.11b mode
*Supports antenna diversity
*Power down leakage current of & 10uA
*Integrated low power 32-bit MCU
*SDIO 2.0, SPI, UART
*STBC, 1x1 MIMO, 2x1 MIMO
*A-MPDU & A-MSDU aggregation & 0.4μs guard interval
*Wake up and transmit packets in & 2ms
*Standby power consumption of & 1.0mW (DTIM3)
超低功耗技术:
ESP8266EX专为移动设备、可穿戴电子产品和物联网应用设计,并与其他几项专利技术一起使机器实现 最低能耗。这种节能的构造以三种模式运行:激活模式、睡眠模式和深度模睡眠式。
ESP8266EX使用高端电源管理技术和逻辑系统调低非必需功能的功率,调控睡眠模式与工作模式之间的 转换,在睡眠模式下,其消耗的电流小于12 uA,处于连接状态时,其消耗的功率少于1.0 mW(DTIM=3) 或 0.5 mW (DTIM = 10)。
睡眠模式下,只有校准的实时时钟和watchdog处于工作状态。可以通过编程使实时时钟在特定的时间 内唤醒 ESP8266EX。
通过编程,ESP8266EX会在检测到某种特定情况发生的时候自动唤醒。ESP8266EX在最短时间内自动 唤醒,这一特征可以应用到移动设备的SOC上,这样SOC在开启Wi-Fi之前均处于低功耗待机状态。
为满足移动设备和可穿戴性电子产品的功率需求,ESP8266EX在近距离时可以通过软件编程减少PA的输 出功率来降低整体功耗,以适应不同的应用方案。
Ultra Low Power Technology:
ESP8266EX has been designed for mobile, wearable electronics and Internet of Things applications with the aim of achieving the lowest power consumption with a combination of several proprietary techniques. The power saving architecture
operates mainly in 3 modes: active mode, sleep mode and deep sleep mode.By using advance power management techniques and logic to power-down functions not required and to control switching between sleep and active modes, ESP8266EX
consumes about than 60uA in deep sleep mode (with RTC clock still running) and less than 1.0mA (DTIM=3) or less than 0.5mA (DTIM=10) to stay connected to the access point.
When in sleep mode, only the calibrated real-time clock and watchdog remains active. The real-time clock can be programmed to wake up the ESP8266EX at any required interval.
The ESP8266EX can be programmed to wake up when a specified condition is detected. This minimal wake-up time feature of the ESP8266EX can be utilized by mobile device SOCs, allowing them to remain in the low-power standby mode until Wi-
Fi is needed.In order to satisfy the power demand of mobile and wearable electronics, ESP8266EX can be programmed to reduce the output power of the PA to fit various application profiles, by trading off range for power consumption.
主要应用领域:
家庭自动化
智能插座、智能灯
工业无线控制
婴儿监控器
网络摄像机
传感器网络
可穿戴电子产品
无线位置感知设备
安全ID标签
无线定位系统信号
ESP8266EX Applications
*Smart power plugs
*Home automation
*Mesh network
*Industrial wireless control
*Baby monitors
*IP Cameras
*Sensor networks
*Wearable electronics
*Wi-Fi location-aware devices
*Security ID tags
*Wi-Fi position system beacons
ESP8266系列模块现在主要包括以下类型:
ESP-01 包括两个版本,一个是篮色版,一个是黑色版本的,功能一样,Pin脚一样,只是主板颜色不同,蓝色是老版产品,目前AI-thinker已经停产这种版本,但是市场上还是有一些在售产品,后期ESP-01都是黑色版本的。ESP-01 共接出 8 个接口 ,ESP-01 贴片式模
组的外观尺寸为14.3mm*24.8mm*3mm。该模组采用的是容量为 1MB, 封装为SOP-210 mil 的 SPI Flash。模组使用的是3 DBi 的PCB 板载天线。
ESP8266 series modules As following types:
ESP - 01 includes two versions, one Blue version and a black version, functions and&&Pin is same, only the mainboard.it is different the color of mainboard . the AI - thinker have shut down Blue version now, ESP-01 are altogether 8 pin
counts, The external size of the module is 14.3mm*24.8mm*3mm .The type of Flash integrated in this module is an SPI flash, the capacity of which is 1 MB,the package size of&&which is SOP-210mil.
The antenna applied on this module is a 3DBi PCB-on-board antenna.
ESP-02 共接出8个接口,ESP-02 贴片式模组的外观尺寸为 14.9mm*16.3mm *3mm。该模组采用的是容量为 1MB, 封装为 SOP-210 mil 的 SPI Flash。
ESP-02 are altogether 8 pin counts, The external size of the module is 14.9mm *16.3 mm *3mm .The type of Flash integrated in this module is an SPI flash, the capacity of which is 1 MB,the package size of&&which is SOP-210mil.
ESP-03 共接出 14个接口,ESP-03 贴片式模组的外观尺寸为17.3mm*12.1mm*3mm。该模组采用的是容量为1MB, 封装为SOP-210 mil 的 SPI Flash。模组使用的是陶瓷板载天线。
ESP-03 are altogether 14 pin counts, The external size of the module is 17.3mm *12.1 mm *3mm .The type of Flash integrated in this module is an SPI flash, the capacity of which is 1 MB,the package size of&&which is SOP-210mil.
The antenna applied on this module is a ceramic antenna.
ESP-04 共接出14个接口,ESP-04 贴片式模组的外观尺寸为 14.7mm*12.1mm *3mm。该模组采用的是容量为 1MB, 封装为 SOP-210 mil 的 SPI Flash。
ESP-04 are altogether 14 pin counts, The external size of the module is 14.7mm *12.1 mm *3mm .The type of Flash integrated in this module is an SPI flash, the capacity of which is 1 MB,the package size of&&which is SOP-210mil.
ESP-05 共接出 5个接口,ESP-05 贴片式模组的外观尺为 14.2mm*14.2mm *3mm。该模组采用的是容量为 1MB, 封装为 SOP-210 mil 的 SPI Flash。
ESP-05 are altogether 5 pin counts, The external size of the module is 14.2mm *14.2 mm *3mm .The type of Flash integrated in this module is an SPI flash, the capacity of which is 1 MB,the package size of&&which is SOP-210mil.
ESP-06共接出 20个接口,ESP-06E 贴片式模组的外观尺寸为 16.2mm*13.2mm *3mm。该模组采用的是容量为 1MB, 封装为 SOP-210 mil 的 SPI Flash。
ESP-06 are altogether 5 pin counts, The external size of the module is 16.2mm *13.2 mm *3mm .The type of Flash integrated in this module is an SPI flash, the capacity of which is 1 MB,the package size of&&which is SOP-210mil.
ESP-7共接出16个接口,ESP-07 贴片式模组的外观尺寸为 16mm*21.2mm *3mm。该模组采用的是容量为 1MB, 封装为 SOP-210 mil 的 SPI Flash。配有陶瓷天线。
ESP-07 are altogether 5 pin counts, The external size of the module is 16mm *21.2 mm *3mm .The type of Flash integrated in this module is an SPI flash, the capacity of which is 1 MB,the package size of&&which is SOP-210mil.
The antenna applied on this module is a ceramic antenna.
ESP-08共接出16个接口,ESP-08 贴片式模组的外观尺寸为 16mm*18.5mm *3mm。该模组采用的是容量为 1MB, 封装为 SOP-210 mil 的 SPI Flash。
ESP-08 are altogether 5 pin counts, The external size of the module is 16mm *18.5 mm *3mm .The type of Flash integrated in this module is an SPI flash, the capacity of which is 1 MB,the package size of&&which is SOP-210mil.
ESP-09共接出 20个接口,ESP-09 贴片式模组的外观尺寸为 10mm*10mm *3mm。该模组采用的是容量为 1MB, 封装为 SOP-210 mil 的 SPI Flash。
ESP-09 are altogether 20 pin counts, The external size of the module is 10mm *10 mm *3mm .The type of Flash integrated in this module is an SPI flash, the capacity of which is 1 MB,the package size of&&which is SOP-210mil.
ESP-10共接出 5个接口,ESP-10 贴片式模组的外观尺寸为 16mm*18.5mm *3mm。该模组采用的是容量为 1MB, 封装为 SOP-210 mil 的 SPI Flash。
ESP-10 are altogether 5 pin counts, The external size of the module is 16mm *18.5 mm *3mm .The type of Flash integrated in this module is an SPI flash, the capacity of which is 1 MB,the package size of&&which is SOP-210mil.
ESP-11共接出 8个接口,ESP-11 贴片式模组的外观尺寸为 16mm*18.5mm *3mm。该模组采用的是容量为 1MB, 封装为 SOP-210 mil 的 SPI Flash。
ESP-11 are altogether 8 pin counts, The external size of the module is 16mm *18.5 mm *3mm .The type of Flash integrated in this module is an SPI flash, the capacity of which is 1 MB,the package size of&&which is SOP-210mil.
ESP-12 共接出16&&个接口,ESP-12 贴片式模组的外观尺?寸为 16mm*24mm *3mm。该模组采用的是容量为 4MB, 封装为 SOP-210 mil 的 SPI Flash。模组使用的是 3 DBi 的 PCB 板载天线。
ESP-12 are altogether 18 pin counts, The external size of the module is 16mm *18.5 mm *3mm .The type of Flash integrated in this module is an SPI flash, the capacity of which is 4 MB,the package size of&&which is SOP-210mil.
The antenna applied on this module is a 3DBi PCB-on-board antenna.
ESP-12E 共接出 22 个接口,ESP-12E贴片式模组的外观尺寸为 16mm*24mm *3mm。该模组采用的是容量为 4MB, 封装为 SOP-210 mil 的 SPI Flash。模组使用的是 3 DBi 的 PCB 板载天线。
ESP-12E are altogether 16 pin counts, The external size of the module is 16mm *24 mm *3mm .The type of Flash integrated in this module is an SPI flash, the capacity of which is 4 MB,the package size of&&which is SOP-210mil.
The antenna applied on this module is a 3DBi PCB-on-board antenna.
ESP-12F 共接出 22个个接口,ESP-12F 贴片式模组的外观尺寸为 16mm*24mm *3mm。该模组采用的是容量为 4MB, 封装为 SOP-210 mil 的 SPI Flash。模组使用的是 3 DBi 的 PCB 板载天线。
ESP-12F are altogether 18 pin counts, The external size of the module is 16mm *24 mm *3mm .The type of Flash integrated in this module is an SPI flash, the capacity of which is 4 MB,the package size of&&which is SOP-210mil.
The antenna applied on this module is a 3DBi PCB-on-board antenna.
ESP-13 共接出 18 个接口,ESP-13 贴片式模组的外观尺寸为18mm*20mm *3mm。该模组采用的是容量为 4MB, 封装为 SOP-150 mil 的 SPI Flash。模组使用的是 3 DBi 的 PCB 板载天线。
ESP-13 are altogether 18 pin counts, The external size of the module is 18mm *20 mm *3mm .The type of Flash integrated in this module is an SPI flash, the capacity of which is 4 MB,the package size of&&which is SOP-210mil.
The antenna applied on this module is a 3DBi PCB-on-board antenna.
ESP-14&&共接出 22 个接口,ESP-14 贴片式模组的外观尺寸为16mm*24mm *3mm。该模组采用的是容量为1MB, 内置STM8003 MCU和ESP8266 WIFI芯片。ESP8266-14同时支持贴片和DIP插件两种方式,采用2.0的间隔 。
ESP-14 are altogether 18 pin counts, The external size of the module is 16mm *24 mm *3mm .the capacity of which is 1MB.ESP-14 module has a built-in powerful STMs chips and wifi ESP8266, pick out all the pins, serial port can
connected tthe serial port of the ESP8266, users can write STM8 program, through the AT command control WIFI Internet capability.
免费产品试用:
PS:如果专注出口联系此QQ可以提供外文资料翻译,以及一些其他外贸援助支持。
本帖子中包含更多资源
才可以下载或查看,没有帐号?
在线时间3245 小时
威望30888 分
芯币51378 枚
E金币607 枚
TA的帖子TA的资源
这个模块,是目前发现的性价比最高的。在网上买和邮费相当。
本论坛关于这个模块的应用的帖子极少,如果楼主能搞一个活动。让大伙都玩玩这个模拟,学一学应用它的知识。大伙将会大力支持的。
在线时间3 小时
TA的帖子TA的资源
一粒金砂(初级), 积分 2, 距离下一级还需 3 积分
一粒金砂(初级), 积分 2, 距离下一级还需 3 积分
楼主,我想用这个模块来做一个wifi智能插座,能不能帮我推荐一下设计方案。。。
我可以帮你设计~&
在线时间58 小时
TA的帖子TA的资源
一粒金砂(中级), 积分 50, 距离下一级还需 150 积分
一粒金砂(中级), 积分 50, 距离下一级还需 150 积分
楼主,我想用这个模块来做一个wifi智能插座,能不能帮我推荐一下设计方案。。。
我可以帮你设计~
在线时间3 小时
TA的帖子TA的资源
一粒金砂(初级), 积分 2, 距离下一级还需 3 积分
一粒金砂(初级), 积分 2, 距离下一级还需 3 积分
我可以帮你设计~
是么?谢谢,那我加你qq???
Q: 谢谢!&
在线时间58 小时
TA的帖子TA的资源
一粒金砂(中级), 积分 50, 距离下一级还需 150 积分
一粒金砂(中级), 积分 50, 距离下一级还需 150 积分
是么?谢谢,那我加你qq???
在线时间69 小时
威望106 分
芯币226 枚
TA的帖子TA的资源
一粒金砂(中级), 积分 106, 距离下一级还需 94 积分
一粒金砂(中级), 积分 106, 距离下一级还需 94 积分
我也在学习用8266-12F 这个是不是有专门的论坛,或论坛版本。只有qq群, 问题回答不方便。
Powered by
逛了这许久,何不进去瞧瞧?1128人阅读
SEP8266(10)
ESP8266的云升级
ESP8266云升级需要了解和注意事项
1、&怎么设置eclispe使ESP8266支持云升级及云升级要注意的事项
2、&怎么确认wifi稳定连接
3、&推荐一个免费的云服务器及使用方法
4、&怎么连接云服务器
5、&怎么从云服务器获取可用的数据
6、&怎么把可用数据写入flash并跳转到新的程序运行
7、怎么个程序执行流程
1、&&&&&&&&&怎么设置eclispe使ESP8266支持云升级及云升级要注意的事项
A、要使用云升级就必须要清楚的知道使用的ESP8266的flash的大小,我的ESP8266的flash大小为512K,如果以前做个stm32的IAP就知道,在写STM32的bootloader和APP的时候我们要先给它设置分区,同样在给esp8266做升级的时候我们也要考虑这些问题,不过官方已经给我们分配好了,在ESP8266的官方文档里面有个文件叫 2A-ESP8266__IOT_SDK_User_Manual__CN_v1.3.0.pdf里面详细介绍了flash的的分配。
因为我的flash是512k,而且我要的是支持云端升级,咋文档里面可以看到如下图
这就是512kflash的分区,可以看到
0 ----4K是boot的存放区域(也就是0x -----0x之间)
4k---240k是user1.bin文件的存放区域(0x ---0x之间)
240k—256k是user param存放的区域(0x-----0x之间)
这上面有分为一个区
下面是另一个区
256k------260k是reserve去,保留的(0x-----0x之间)
260k-------496k是user2.bin文件的存放的区域(0x -----0x之间)
496k--------512k是system param系统参数的区域(0x -------0x之间)
B、同时可以看到上面有个提示,编译的时候要设置的,在eclipse里面的makefile里面设置,先来看下不能进行云升级的时候makefile的参数如下
不能进行云升级的配置
可以进行云升级makefile的配置如下
boot赋值为new,意思就是可以升级
APP 赋值为1,就可以生成user1的bin 文件& 如果要生成user2的文件 把它改为2就可以了
SPI_SPEED是下载的速度
SPI_MODE是下载模式
SPI_SIZE_MAP是flash的大小这个可以看上面那个文档详细介绍 赋值为0表示使用的flash是512k
C、设置好以后 我们可以看看编译的结果如下
从这里可以看到 boot的开始地址是0x00000 支持的版本必须要1.2版本或以上版本
从生成的user1的名字同样可知道符合我们上面的makefile的配置
2、&&&&&&&&&怎么确认wifi稳定连接
要想实现云升级,那么wifi必须在连接状态,如果我们的wifi已经设置好了,我们可以通过函数wifi_station_get_connect_status来判断wifi是否连接。如果返回STATION_GOT_IP表明连接成功
3、&&&&&&&&&推荐一个免费的云服务器及使用方法
网上大部分的云服务器都是要收费的,好不容易找到一个可以免费的云服务器(当然它也有收费项,只是我没用到),七牛云()
要想之后可以复制链接地址,好像必须的使用谷歌浏览器才可以,
注册一个用户然后就可以上传我们的eclipses生成的bin文件上去。
上面是我的两个用来升级的bin文件,点击右边那个红框就可以从里面复制出来链接,在之后会用到这个链接
4、&&&&&&&&&怎么连接云服务器
A、在云服务器里面我们得到了上传的文件的网址,那么我们就可以使用get或者post请求,去请求云服务器,得到想要的数据。ESP8266我们可以udp或者TCP和外网建立通信,但是都必须知道它的IP地址,端口号、等。
这就是user1在云服务器上面的地址,这里并没有直接给出ip地址,所以我们必须要把这个链接给解析出来,得到他的ip,端口号(默认是80)、文件名,在程序中使用函数void ICACHE_FLASH_ATTRhttp_parse_request_url(char
*URL,char *host,char *filename,unsignedshort *port){
&& char *PA;
&& char *PB;
&& memset(host,0,sizeof(host));//给host初始化
&& memset(filename,0,sizeof(filename));//给filename初始化
&& *port=0;
&& if(!(*URL))return;//如果url为空就返回
&& PA=URL;
&& if(!strncmp(PA,&http://&,strlen(&http://&)))//判断协议名
&&&&& PA=URL+strlen(&http://&);//移动PA
&& if(!strncmp(PA,&https://&,strlen(&https://&)))
&&&&& PA=URL+strlen(&https://&);
&& PB=strchr(PA,'/');//strchr字符查找&返回值是要查找的字符的位置
&& if(PB){
&&&&& memcpy(host,PA,strlen(PA)-strlen(PB));
&&&&& if(PB+1){
&&&&&&&& memcpy(filename,PB+1,strlen(PB-1));
&&&&&&&& filename[strlen(PB)-1]=0;
&&&&& host[strlen(PA)-strlen(PB)]=0;
&&&&& memcpy(host,PA,strlen(PA));
&&&&& host[strlen(PA)]=0;
&& PA=strchr(host,':');
&&&&& *port=atoi(PA+1);
&&&&& *port=80;
//http代表协议名
//:80代表域名 80代表端口号
//.. 这里就是文件名
其中host保存是域名 filename是文件名 port是保存端口& 参考上面
B、上面得到了域名 ,我们还得把域名解析成IP地址,调用espconn_gethostbyname函数,就可以得到IP,知道了远程IP和端口,本地IP,&& 然后在它的回调函数里面完成初始化TCP 客户端就可以,具体的完成过程就不写了,
5、&&&&&&&&&怎么从云服务器获取可用的数据
可以通过get或者post请求服务器得到数据,
#define HEAD
&GET / HTTP/1.1\r\nAccept:*/*\r\nHost: \r\nConnection: Keep-Alive\r\n\r\n\0&
上面是一个实例,我们可以在TCP连接成功后,通过espconn_sent函数发送请求
,然后就可以在user_tcp_recv_cb接收回调函数,接收到数据如下
发送数据成功!收到数据:HTTP/1.1 200 OK
Date:Tue, 19 Apr :12 GMT
Server:Apache/2.2.22 (Ubuntu)
Accept-Ranges:bytes
ETag:W/&811000&
Last-Modified:Tue, 19 Apr :11 GMT
Content-Length:4096
Keep-Alive:timeout=5, max=100
Connection:Keep-Alive
Content-Type: application/octet-stream*/
当然这里是接收到上传的blank.bin的文件大小。从上面可以看到 文件的大小是4096个字节,
下面是通过查看blank.bin的属性得到
可以看到blank.bin的文件大小是4096,和通过get请求获取的大小一样
6、怎么把可用数据写入flash并跳转到新的程序运行
对flash的操作,我们可以看官方提供的
99A-ESP8266__Flash_RW_Operation__CN_v0.2.pdf文档,里面有详细的价绍
这里只是大概的说下,flash在写入之前,都需要事先擦除,flash是块擦除,一块大小是4k,
SpiFlashOpResult spi_flash_erase_sector(uint16 sec)函数用于擦除一个扇区
SpiFlashOpResultspi_flash_write (uint32 des_addr,uint32 *src_addr, uint32 size)
将数据写入
SpiFlashOpResultspi_flash_read(uint32 src_addr,uint32 * des_addr, uint32 size)
我们可以利用上面函数把接收到的数据写入到flash,写的时候要注意要写入flash的地址,比如 现在运行的是user1,那么更新的应该是user2,所以要写入的起始地址应该是0x2k的flash),如果是运行的是user2,就要把数据写入到user1中的起始地址0x开始。
可以用函数system_get_userbin_addr()来获取正在运行的起始地址
用system_upgrade_userbin_check()来获取运行的是user2还是user2.
在写flash完成之后,调用下面两个函数就可以实现设置升级标志和重启运行新的程序
system_upgrade_flag_set(0x02);//设置升级的标志
system_upgrade_reboot();//重启
7、怎么个程序执行流程
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:12839次
排名:千里之外
原创:40篇
(1)(4)(10)(1)(23)(1)(1)

我要回帖

更多关于 esp8266固件下载 的文章

 

随机推荐