Search found 6 matches

by Dennie
Mon Oct 14, 2024 2:32 am
Forum: General Discussion
Topic: [ESP32-C2][Help]Why WiFi PM sleep time count does not show actually time
Replies: 2
Views: 798

[ESP32-C2][Help]Why WiFi PM sleep time count does not show actually time

Env:esp32-c2 Idf version:5.2.1 Description: my device was working with [auto light sleep mode] + [WiFi Maximum modem power saving mode]. The debug print is "wifi:pm start, type: 2" when device is connected to AP, and it shows like "wifi:pm stop, total sleep time: lu us / lu us" when device is discon...
by Dennie
Fri Aug 30, 2024 7:20 am
Forum: ESP-IDF 中文讨论版
Topic: ESP32-C2开启BLE和WiFi后RAM仅剩16k,这该如何优化?
Replies: 7
Views: 5055

Re: ESP32-C2开启BLE和WiFi后RAM仅剩16k,这该如何优化?

我的极限内存是开了https mbedtls ota升级过程中产生的,如果不启动这个升级过程,那么内存是完全随便用的
by Dennie
Fri Aug 30, 2024 7:12 am
Forum: ESP-IDF 中文讨论版
Topic: ESP32-C2开启BLE和WiFi后RAM仅剩16k,这该如何优化?
Replies: 7
Views: 5055

Re: ESP32-C2开启BLE和WiFi后RAM仅剩16k,这该如何优化?

蓝牙使用的是bleprph案例,这个是nimble带安全Pin码的案例,然后WiFi(只开sta模式)的话,用的是blufi的WiFi那一块,我把它拆出来了,目前经过我的优化,内存很够用,现在正常运行态是67kb,极限堆栈剩35kb左右,一共20个task。 其实哪个案例不重要,重要的是menuconfig的优化,我在这给你几个建议: ①对于蓝牙,不要用bluedroid,我一开始用bluedroid,内存相当吃紧。然后nimble怎么优化呢?在Component config → Bluetooth → NimBLE Options → Memory Settings中,把缓存改了,经过我的...
by Dennie
Fri Aug 30, 2024 2:37 am
Forum: ESP-IDF 中文讨论版
Topic: ESP32-C2开启BLE和WiFi后RAM仅剩16k,这该如何优化?
Replies: 7
Views: 5055

Re: ESP32-C2开启BLE和WiFi后RAM仅剩16k,这该如何优化?

我也是c2,你没有优化对,我在开了nimble、wifi、mqtt还剩80kb