esp32 wifi 用一段时间后就会重启-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 3672|回复: 10

[已解答] esp32 wifi 用一段时间后就会重启

[复制链接]
发表于 2021-2-8 21:58 | 显示全部楼层 |阅读模式
[E][ssl_client.cpp:33] _handle_error(): [send_ssl_data():284]: (-78) UNKNOWN ERROR CODE (004E)
[38705650] Connecting to MQTT...
[38705650] reconnect_time: 0
[38706719] MQTT Connected!

[39580454] MQTT Ping!
[39581976] MQTT Ping!
[39583496] MQTT Ping!
Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC      : 0x400014fd  PS      : 0x00060c30  A0      : 0x800e0126  A1      : 0x3ffb1ec0  
A2      : 0x00000000  A3      : 0xfffffffc  A4      : 0x000000ff  A5      : 0x0000ff00
A6      : 0x00ff0000  A7      : 0xff000000  A8      : 0x00000000  A9      : 0x3ffb1e90  
A10     : 0x00000000  A11     : 0x3ffd96b2  A12     : 0x00000002  A13     : 0x3ffd9f30  
A14     : 0x00000400  A15     : 0x00000040  SAR     : 0x00000018  EXCCAUSE: 0x0000001c  
EXCVADDR: 0x00000000  LBEG    : 0x400014fd  LEND    : 0x4000150d  LCOUNT  : 0xffffffff  

Backtrace: 0x400014fd:0x3ffb1ec0 0x400e0123:0x3ffb1ed0 0x400e01b7:0x3ffb1ef0 0x400d5113:0x3ffb1f10 0x400e2232:0x3ffb1f30 0x400e24d6:0x3ffb1f90 0x400ec395:0x3ffb1fb0 0x40088b9d:0x3ffb1fd0

Rebooting...
ets Jun  8 2016 00:22:57

wifi连接一段时间后就造成内存溢出,然后重启了

发表于 2021-2-8 22:03 | 显示全部楼层
package版本是否为我们打包的1.0.5-rc4?lib是否为最新?您是否使用的我们的例程?哪个例程
 楼主| 发表于 2021-2-9 01:14 | 显示全部楼层
本帖最后由 Nemoooooo 于 2021-2-9 01:45 编辑
奈何col 发表于 2021-2-8 22:03
package版本是否为我们打包的1.0.5-rc4?lib是否为最新?您是否使用的我们的例程?哪个例程 ...

hi~
https://github.com/blinker-iot/blinker-library

esp32的sdk使用的版本是2.0.0, lib是从git上拉取的最新的,例程是参照blinker官方开发者文档中的实例创建的。

我的开发环境为:vscode+PlatformIO, esp32的sdk是由PlatfromIO提供的,然后我直接引用了git上的blinker lib,然后使用wifi例程创建好交换之后,程序会在几个小时后就造成内存溢出空指针等问题,然后esp32重启

ps:我注意到了 https://github.com/blinker-iot/blinker-esp-idf 这个lib,由于我使用的esp32是用了arduino的方式,所以并没有使用这个lib

点评

目前最新的esp32 arduino sdk版本为1.0.5,请以esp官方github为准。 我们文档里有1.0.5-rc4的离线安装包  详情 回复 发表于 2021-2-9 09:55
 楼主| 发表于 2021-2-9 02:12 | 显示全部楼层
Processing esp32dev (platform: espressif32; board: esp32dev; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (3.0.0) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
- framework-arduinoespressif32 3.10004.210126 (1.0.4)
- tool-esptoolpy 1.30000.201119 (3.0.0)
- toolchain-xtensa32 2.50200.80 (5.2.0)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 37 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <ESP32Servo> 0.9.0
|-- <Blinker> 0.3.5
|   |-- <Update> 1.0
|   |-- <WiFi> 1.0
|   |-- <FS> 1.0
|   |-- <SPIFFS> 1.0
|   |   |-- <FS> 1.0
|   |-- <Ethernet> 2.0.0
|   |   |-- <SPI> 1.0
|   |-- <SPI> 1.0
|   |-- <WiFiClientSecure> 1.0
|   |   |-- <WiFi> 1.0
|   |-- <EEPROM> 1.0.3
|   |-- <Ticker> 1.1
|   |-- <ESP32 BLE Arduino> 1.0.1
|   |-- <HTTPClient> 1.2
|   |   |-- <WiFi> 1.0
|   |   |-- <WiFiClientSecure> 1.0
|   |   |   |-- <WiFi> 1.0
|   |-- <ESPmDNS> 1.0
|   |   |-- <WiFi> 1.0
Building in release mode
Retrieving maximum program size .pio\build\esp32dev\firmware.elf
Checking size .pio\build\esp32dev\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [=         ]  14.0% (used 45720 bytes from 327680 bytes)
Flash: [========  ]  81.8% (used 1071678 bytes from 1310720 bytes)
=============================================================================================== [SUCCESS] Took 5.49 seconds ===============================================================================================


我把esp32 sdk更新到3.0版本了,以上是编译输出信息,我再观察一个晚上看看是否会有异常
发表于 2021-2-9 09:55 | 显示全部楼层
Nemoooooo 发表于 2021-2-9 01:14
hi~
https://github.com/blinker-iot/blinker-library

目前最新的esp32 arduino sdk版本为1.0.5,请以esp官方github为准。
我们文档里有1.0.5-rc4的离线安装包
 楼主| 发表于 2021-2-9 13:17 | 显示全部楼层
奈何col 发表于 2021-2-9 09:55
目前最新的esp32 arduino sdk版本为1.0.5,请以esp官方github为准。
我们文档里有1.0.5-rc4的离线安装包 ...

不好意思,我弄错了一件事,使用platformIO平台引用的idf的版本是指该平台的版本,非esp32 sdk的版本

PlatformIO 3.0.0 对应 esp32 sdk的版本为4.2,对应 arduino-esp32 版本为1.0.4,昨晚我更新了最新PIO版本3.0之后观察了一晚暂无出现内存溢出现象,我再持续观察观察,谢谢

点评

pio中的blinker lib不是我们维护,且我们现在提供的lib是基于1.0.5-rc4的,请务必按照我们的版本要求使用blinker  详情 回复 发表于 2021-2-9 19:38
发表于 2021-2-9 19:38 | 显示全部楼层
Nemoooooo 发表于 2021-2-9 13:17
不好意思,我弄错了一件事,使用platformIO平台引用的idf的版本是指该平台的版本,非esp32 sdk的版本

Pl ...

pio中的blinker lib不是我们维护,且我们现在提供的lib是基于1.0.5-rc4的,请务必按照我们的版本要求使用blinker
 楼主| 发表于 2021-2-21 00:25 | 显示全部楼层
奈何col 发表于 2021-2-9 19:38
pio中的blinker lib不是我们维护,且我们现在提供的lib是基于1.0.5-rc4的,请务必按照我们的版本要求使用 ...

升级到1.0.4后果然还是出现了同样的问题,blinker lib的我是使用的你们官方github提供的,不是别人维护的...
麻烦您发一下您这边1.0.5-rc4的下载地址,我未找到(同时也不敢去esp32 github自行下载了,怕出同样问题),谢谢

点评

https://www.arduino.cn/forum.php?mod=viewthread&tid=81194&extra=page%3D1  详情 回复 发表于 2021-2-21 10:08
发表于 2021-2-21 10:08 | 显示全部楼层
Nemoooooo 发表于 2021-2-21 00:25
升级到1.0.4后果然还是出现了同样的问题,blinker lib的我是使用的你们官方github提供的,不是别人维护的 ...

https://www.arduino.cn/forum.php ... &extra=page%3D1
 楼主| 发表于 2021-3-13 17:57 | 显示全部楼层
奈何col 发表于 2021-2-21 10:08
https://www.arduino.cn/forum.php?mod=viewthread&tid=81194&extra=page%3D1

hi~  又来求助了,最近好久没玩esp32了,心血来潮打开一下刷一下程序发现以前的代码(一点未动)刷写后出现一个异常,能否帮忙看看什么原因

[46080] Connection failed
[46081] Retrying MQTT connection in 5 seconds...
[51086] Connecting to MQTT...
[51086] reconnect_time: 4
[E][WiFiClientSecure.cpp:127] connect(): start_ssl_client: -1
[51086] Connection failed
[51087] Retrying MQTT connection in 5 seconds...
[56092] Connecting to MQTT...
[56092] reconnect_time: 5
[E][WiFiClientSecure.cpp:127] connect(): start_ssl_client: -1
[56092] Connection failed
[56093] Retrying MQTT connection in 5 seconds...
[57566] Freeheap: 214556
[57569] Connecting to MQTT...
[57569] reconnect_time: 0
[E][WiFiClientSecure.cpp:127] connect(): start_ssl_client: -1
[57570] Connection failed
[57571] Retrying MQTT connection in 5 seconds...
[62575] Connecting to MQTT...
[62575] reconnect_time: 1
[E][WiFiClientSecure.cpp:127] connect(): start_ssl_client: -1
[62575] Connection failed
[62576] Retrying MQTT connection in 5 seconds...
[67581] Connecting to MQTT...
[67581] reconnect_time: 2
[E][WiFiClientSecure.cpp:127] connect(): start_ssl_client: -1
[67581] Connection failed
[67582] Retrying MQTT connection in 5 seconds...
[72587] Connecting to MQTT...
[72587] reconnect_time: 3
[E][WiFiClientSecure.cpp:127] connect(): start_ssl_client: -1
[72587] Connection failed
[72588] Retrying MQTT connection in 5 seconds...
[77593] Connecting to MQTT...
[77593] reconnect_time: 4
[E][WiFiClientSecure.cpp:127] connect(): start_ssl_client: -1
[77593] Connection failed
[77594] Retrying MQTT connection in 5 seconds...
[82599] Connecting to MQTT...
[82599] reconnect_time: 5
[E][WiFiClientSecure.cpp:127] connect(): start_ssl_client: -1
[82599] Connection failed
[82600] Retrying MQTT connection in 5 seconds...
[84067] Freeheap: 214252
[84070] Connecting to MQTT...
[84070] reconnect_time: 0
[E][WiFiClientSecure.cpp:127] connect(): start_ssl_client: -1
[84071] Connection failed
[84072] Retrying MQTT connection in 5 seconds...
[89077] Connecting to MQTT...
[89077] reconnect_time: 1
[E][WiFiClientSecure.cpp:127] connect(): start_ssl_client: -1
[89077] Connection failed
[89078] Retrying MQTT connection in 5 seconds...
[94083] Connecting to MQTT...
[94083] reconnect_time: 2
[E][WiFiClientSecure.cpp:127] connect(): start_ssl_client: -1
[94083] Connection failed
[94084] Retrying MQTT connection in 5 seconds...
[99089] Connecting to MQTT...
[99089] reconnect_time: 3
[E][WiFiClientSecure.cpp:127] connect(): start_ssl_client: -1
[99089] Connection failed
[99090] Retrying MQTT connection in 5 seconds...
[104095] Connecting to MQTT...
[104095] reconnect_time: 4
[E][WiFiClientSecure.cpp:127] connect(): start_ssl_client: -1
[104095] Connection failed
[104097] Retrying MQTT connection in 5 seconds...
[109101] Connecting to MQTT...
[109101] reconnect_time: 5
[E][WiFiClientSecure.cpp:127] connect(): start_ssl_client: -1
[109101] Connection failed
[109103] Retrying MQTT connection in 5 seconds...
[110575] Freeheap: 213940
[110579] Connecting to MQTT...
[110579] reconnect_time: 0
[E][WiFiClientSecure.cpp:127] connect(): start_ssl_client: -1
[110580] Connection failed
[110581] Retrying MQTT connection in 5 seconds...
[115586] Connecting to MQTT...
[115586] reconnect_time: 1
[E][WiFiClientSecure.cpp:127] connect(): start_ssl_client: -1
[115586] Connection failed
[115588] Retrying MQTT connection in 5 seconds...
[120592] Connecting to MQTT...
[120592] reconnect_time: 2
[E][WiFiClientSecure.cpp:127] connect(): start_ssl_client: -1
[120592] Connection failed
[120594] Retrying MQTT connection in 5 seconds...
[125598] Connecting to MQTT...
[125598] reconnect_time: 3
[E][WiFiClientSecure.cpp:127] connect(): start_ssl_client: -1
[125598] Connection failed
[125600] Retrying MQTT connection in 5 seconds...
[130604] Connecting to MQTT...
[130604] reconnect_time: 4
[E][WiFiClientSecure.cpp:127] connect(): start_ssl_client: -1
[130604] Connection failed
[130606] Retrying MQTT connection in 5 seconds...
[135610] Connecting to MQTT...
[135610] reconnect_time: 5
[E][WiFiClientSecure.cpp:127] connect(): start_ssl_client: -1
[135610] Connection failed
[135612] Retrying MQTT connection in 5 seconds...
[137109] Freeheap: 214064
[137113] Connecting to MQTT...
[137113] reconnect_time: 0
[E][WiFiClientSecure.cpp:127] connect(): start_ssl_client: -1
[137114] Connection failed
[137115] Retrying MQTT connection in 5 seconds...
[142120] Connecting to MQTT...
[142120] reconnect_time: 1
[E][WiFiClientSecure.cpp:127] connect(): start_ssl_client: -1
[142120] Connection failed
[142122] Retrying MQTT connection in 5 seconds...
[147126] Connecting to MQTT...
[147126] reconnect_time: 2
[E][WiFiClientSecure.cpp:127] connect(): start_ssl_client: -1
[147126] Connection failed
[147128] Retrying MQTT connection in 5 seconds...
[152132] Connecting to MQTT...
[152132] reconnect_time: 3
[E][WiFiClientSecure.cpp:127] connect(): start_ssl_client: -1
[152132] Connection failed
[152134] Retrying MQTT connection in 5 seconds...

点评

确保lib和package是我们文档中提供的最新版本  详情 回复 发表于 2021-3-13 18:06
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|手机版|Arduino中文社区

GMT+8, 2024-11-28 13:30 , Processed in 0.197736 second(s), 16 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表