logo elektroda
logo elektroda
X
logo elektroda

Configuring OpenBeken on ESP32 with 4MB Default Using sdkconfig.defaults.esp32

insmod 18393 245
ADVERTISEMENT
  • #121 21246289
    max4elektroda
    Level 24  
    Posts: 745
    Help: 47
    Rate: 183
    divadiow wrote:
    dunno if mine's fake

    Looks exactly like mine - especially the printed text is very different to the original:
    Fragment of a purple circuit board with the label S2 Mini.
  • ADVERTISEMENT
  • #122 21246308
    insmod
    Level 31  
    Posts: 1353
    Help: 160
    Rate: 425
    Mine is a lot like original, except no wemos.cc on backside and a little thinner text.
    Also connects without powersave. Maybe some workload is needed? I remember, that even with only aht20 started it rebooted after about 1min of work (esphome, didn't test tasmota).
  • #123 21246473
    max4elektroda
    Level 24  
    Posts: 745
    Help: 47
    Rate: 183
    Just a short feedback on my S2 Mini: Tried to do some "workload" and I think one of the GPIO changes maybe "broke" DS1820 so it needs some change?
    At least it seems it's no longer working on Pin 18, as it was with my old firmware from Sept 10th. Or is the pin no longer working with actual FW? I must admit I didn't follow all changes in detail ...
    Didn't find the time to have a closer look, and it's surely not the most important use case, just as a short feedback. Maybe also some stupid error on my side, will try to investigate further tomorrow.
  • #124 21246486
    divadiow
    Level 38  
    Posts: 4849
    Help: 421
    Rate: 854
    ah, I just tried DS18B20 too on S2 but couldn't get pins 2,3,7, 8 or 14 to work. Didn't try others.

    Added after 4 [minutes]:

    nor 18
    Screenshot from the OpenESP32S2_A288CE46 system showing temperature from the DS1820 sensor.

    will try some LEDs

    Added after 18 [minutes]:

    the vast majority are working and controllable with LEDs. (does anyone else find the GPIO finder a little temperamental?)
  • #125 21246542
    insmod
    Level 31  
    Posts: 1353
    Help: 160
    Rate: 425
    >>21246473 It's either setup pin input (try PUp?), or all those other setups causing some delay.

    Added after 28 [minutes]:

    Verified my GU10 bulb, BP5758D now works as expected.
  • ADVERTISEMENT
  • #126 21246755
    DeDaMrAz
    Level 22  
    Posts: 596
    Help: 34
    Rate: 125
    @insmod

    Off topic, sorry, but I guess you know about BP5758D current setting, it is not perfected by default and can be optimized??
  • #127 21246766
    insmod
    Level 31  
    Posts: 1353
    Help: 160
    Rate: 425
    >>21246755 Default is currently 14mA for all channels, and i believe it's a little too much. ESPHome defaults to 10mA, and i think we should adapt it. Otherwise it looks all good.
    For GU10 i use 8mA on all channels, that is enough for me, and it doesn't overheat.
  • #128 21246775
    DeDaMrAz
    Level 22  
    Posts: 596
    Help: 34
    Rate: 125
    insmod wrote:
    >>21246755 Default is currently 14mA for all channels, and i believe it's a little too much. ESPHome defaults to 10mA, and i think we should adapt it. Otherwise it looks all good.
    For GU10 i use 8mA on all channels, that is enough for me, and it doesn't overheat.


    That is depending on the product of course :) in my case 14mA was waaaaay too low, data plucked form the tuyaFW for my device was 75mA (!!!!) and light was let's say anemic, I bumped it up to 50 and installed 5 such devices so far. I monitored the temp on BP and it was around 60-70'C after 1 hour with 50mA limit ( about 80-85 within enclosure).

    But yeah, you are aware of that and glad you adjusted it :)

    EDIT: I am talking about CW not RGB current.
  • #129 21247248
    divadiow
    Level 38  
    Posts: 4849
    Help: 421
    Rate: 854
    I was just checking my sanity with some sensor functionality between Tasmota and OBK and noticed this chimera appeared in the browser by itself flashing between the two
    Screenshot of the Tasmota interface for the OpenESP32S2_A288CE46 device displaying system information.
    a minor amusement
  • #130 21247693
    insmod
    Level 31  
    Posts: 1353
    Help: 160
    Rate: 425
    Try ds18b20/dht again, i pushed some changes to the way gpio is configured.

    EDIT: DHT probably wouldn't work, no interrupt disabling for esp in code yet.

    EDIT2: It doesn't even start. Pushed an update, now it will start on any platform that has ENABLE_DRIVER_DHT (it is enabled on LN, but 'disabled' in code).

    EDIT3: DHT11 works for me now.
  • #131 21247756
    max4elektroda
    Level 24  
    Posts: 745
    Help: 47
    Rate: 183
    Very good, you found it: DS1820 works again!
    Thanks a lot!
    OpenESP32S2 interface screen displaying temperature readings from the DS1820 sensor.

    Added after 36 [minutes]:

    How could I have missed that??
    Thanks for adding the temperature to the channel!
  • ADVERTISEMENT
  • #132 21248037
    divadiow
    Level 38  
    Posts: 4849
    Help: 421
    Rate: 854
    5-sensor megamix. good work
    Screenshot of the OpenESP32C6 user interface displaying sensor data and temperatures.

    Added after 20 [minutes]:

    Screenshot of OpenESP32 interface displaying temperature and humidity readings from various sensors.

    Added after 23 [minutes]:

    Screenshot of the OpenESP32S3 software interface displaying sensor readings.

    Added after 22 [minutes]:

    and 2/3rds of a BME680
    Screenshot of OpenESP32S3_DAA2CE60 unit with readings from various temperature and humidity sensors.

    Added after 56 [seconds]:

    what's the maximum number of channels?
  • #133 21248137
    insmod
    Level 31  
    Posts: 1353
    Help: 160
    Rate: 425
    >>21248037 new_pins.h channels + channels2 (arrays size) = 100, or CHANNEL_MAX which is 64
  • #134 21248138
    divadiow
    Level 38  
    Posts: 4849
    Help: 421
    Rate: 854
    oh ok. loads
  • #135 21262976
    DeDaMrAz
    Level 22  
    Posts: 596
    Help: 34
    Rate: 125
    @insmod

    What are your thoughts on integrating this into main release, is it ready for that?

    Maybe we can bring more people into the test pool and have faster verification on changes and more bug tracking eyes on it :)

    Let us know what are your thoughts, thanks.
  • #136 21263595
    insmod
    Level 31  
    Posts: 1353
    Help: 160
    Rate: 425
    >>21262976 I believe it can be merged already. Most peripherals are working already.
    Not implemented: isr for bl0937, pindeepsleep, ws2812 spi.
    Problems: uart is working, but something is wrong. Sometimes it receives something (like product information from tuyamcu), but most of the times it receives nothing at all. Curiously enough, when starting ota - it receives everything. I first thought that it was a priority problem - uart task is started with idle priority. But changing it didn't help me. All of this was tested on TH01 with tuyamcu.

    General: we need something for the web interface, for pins that are input or output only, and pins that should not be used at all (like spi flash pins, etc.).

    Need to verify if anything is broken on other platforms before merge ofc.
  • #137 21291529
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14406
    Help: 650
    Rate: 12345
    I've wanted to merge it today but it seems that commit 393eea8 broke W800 build, any ideas what's happening there?
    https://github.com/openshwprojects/OpenBK7231T_App/pull/1344
    Maybe wrong SDKs?
    Screenshot of configuration files and SDK folders.
    I had similiar issue recently, where Github gui insisted on pushing old version of sub repository...
    Helpful post? Buy me a coffee.
  • #138 21291667
    insmod
    Level 31  
    Posts: 1353
    Help: 160
    Rate: 425
    >>21291529 Pushed an update, git didn't update sdk's on merge
  • #139 21291671
    max4elektroda
    Level 24  
    Posts: 745
    Help: 47
    Rate: 183
    It reversed the latest changes to the W800 SDK again (we moved the Makefile content to platform lately). So now the enabled drivers in W800 miss the source for drivers again.
  • #140 21332798
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14406
    Help: 650
    Rate: 12345
    Tested with C3 today, Works, nice, we need to put those ESP files on Github Releases page as well..
    User interface of the OpenESP32C3 system with configuration buttons.
    Close-up of a PCB with electronic components, including a micro USB socket, integrated circuits, and I/O connectors. LCD display module on a wooden table. Image of a green circuit board with an ESP32-C3 and Winbond chip. Close-up of a circuit board with an ESP32-C3 microcontroller and Winbond chip.

    Added after 7 [hours] 17 [minutes]:

    That took some time:


    Helpful post? Buy me a coffee.
  • #141 21380511
    DeDaMrAz
    Level 22  
    Posts: 596
    Help: 34
    Rate: 125
    @insmod

    I am testing ESP32 now and tested on S3 and C6, after setting WiFi credentials, module will just cycle on this

    [18:54:01]
    [18:54:02]I (119137) OpenBeken: Info:MAIN:Time 119, idle 0/s, free 249584, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 0/0 
    [18:54:02]
    [18:54:03]I (120127) OpenBeken: +--------------- net device info ------------+
    [18:54:03]
    [18:54:03]I (120127) OpenBeken: |netif type    : STA                         |
    [18:54:03]
    [18:54:03]I (120127) OpenBeken: |netif ip      = 0.0.0.0                     |
    [18:54:03]
    [18:54:03]I (120137) OpenBeken: Info:MAIN:Time 120, idle 0/s, free 249584, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 0/0 
    [18:54:03]
    [18:54:03]I (120147) OpenBeken: |netif mask    = 0.0.0.0                     |
    [18:54:03]
    [18:54:03]I (120147) OpenBeken: |netif gateway = 0.0.0.0                     |
    [18:54:03]
    [18:54:03]I (120157) OpenBeken: |netif mac     : [24:EC:4A:2A:D6:B8]         |
    [18:54:03]
    [18:54:03]I (120167) OpenBeken: +--------------------------------------------+
    [18:54:03]


    And will only get IP from DHCP after maybe a minute or more (will test more and report back).
  • ADVERTISEMENT
  • #142 21450257
    groove6j
    Level 9  
    Posts: 49
    Help: 3
    Rate: 13
    >>21380511
    DeDaMrAz wrote:
    after setting WiFi credentials, module will just cycle on this


    I seem to have the same problem. But in my case it doesn't get an address at all. ESP32 C3
  • Helpful post
    #143 21450268
    insmod
    Level 31  
    Posts: 1353
    Help: 160
    Rate: 425
    Some router problem? Or perhaps you are using esp32-c3-supermini? Those are known for their wifi problems. You would have to reduce tx power, command is powersave 1 10, where 10 is dbm.
  • #144 21450298
    groove6j
    Level 9  
    Posts: 49
    Help: 3
    Rate: 13
    insmod wrote:
    reduce tx power, command is powersave 1 10, where 10 is dbm.

    Seems to have helped, after reducing to 6dBm, it finally connected. Yes, it was a "supermini". Thanks!
  • #146 21500647
    XJ_
    Level 12  
    Posts: 140
    Help: 13
    Rate: 38
    DeDaMrAz wrote:
    Just to chime in, ESP8266 support would be super nice!

    I would be very happy too, I have lots of different ESP8266s here.
    And besides, the ESP02S is also an 8266 and is pin-compatible with lots of small SOCs
    ESP-02S WiFi module

    The internal flash of ESP-02S is 16 Mbits

    Detecting chip type... ESP8266
    Chip is ESP8285N08
    Features: WiFi, Embedded Flash
    Crystal is 26MHz
    MAC: 9c:9c:1f:97:64:1f
    Uploading stub...
    Running stub...
    Stub running...
    Chip ID: 0x0097641f
    Hard resetting via RTS pin...
    
  • #147 21500665
    insmod
    Level 31  
    Posts: 1353
    Help: 160
    Rate: 425
    >>21500647 ESP8285N08 - N08 means 8 mbit.
    That is probably not enough for RTOS sdk with dual partition ota.
  • #148 21500843
    XJ_
    Level 12  
    Posts: 140
    Help: 13
    Rate: 38
    insmod wrote:
    That is probably not enough for RTOS sdk with dual partition ota.

    Hmm, you're right, I didn't notice that.
    However, I have other 8266 ESP-12Es and ESP01Ss here, so I'd still appreciate it.

    Added after 25 [minutes]:

    >>21500843
    But I also have some ESP-02S with 16Mbit, that would work, right?

    Detecting chip type... ESP8266
    Chip is ESP8285H16
    Features: WiFi, Embedded Flash
    Crystal is 26MHz
    MAC: 70:03:9f:c9:3d:fc
    Uploading stub...
    Running stub...
    Stub running...
    Chip ID: 0x00c93dfc
    Hard resetting via RTS pin...
  • #149 21537112
    divadiow
    Level 38  
    Posts: 4849
    Help: 421
    Rate: 854
    >>21476005

    had a tiny power cut yesterday but this stayed up. posting update in case a proper one happens

    Control panel of the ESP32C2 device showing status, WiFi info, and control buttons.
  • #150 21554410
    divadiow
    Level 38  
    Posts: 4849
    Help: 421
    Rate: 854
    Code: Text
    Log in, to see the code

Topic summary

✨ The discussion centers on configuring OpenBeken firmware for ESP32 devices with a default 4MB flash size using sdkconfig.defaults.esp32. Initial issues included missing sdkconfig.defaults.esp32 and bootloader offset misconfiguration, which were resolved to enable successful compilation and flashing. Various ESP32 variants were tested, including ESP32-C3, ESP32-C6, ESP32-CAM, ESP32-C2, ESP32-D0WDQ5-V3 (ESP-WROOM-32), and ESP32-S3, with reports on flash size detection, bootloader behavior, and peripheral support. Challenges encountered involved stack overflows on reboot, watchdog timer resets, and GPIO functionality inconsistencies, particularly on non-C/S ESP32 boards. Solutions included adjusting makefiles for 4MB flash, fixing bootloader offsets, increasing task stack sizes, and replacing software timers with hardware timers for improved timing accuracy. Peripheral drivers such as BMP280, AHT2x, DS1820, DHT11/22, PWM, UART, and NTP were tested with varying success; some required specific pin assignments or additional delays to prevent crashes. Deep sleep support was added without GPIO wakeup. The firmware uses the Espressif ESP-IDF SDK for ESP32 and plans for ESP8266 porting were discussed, noting SDK differences and RAM constraints. Continuous integration (CI) and online build availability were confirmed. Users shared flashing tools, partition table considerations, and debugging tips including esptool flash_id and efuse burning. The community actively tested and reported logs, crashes, and feature functionality, contributing to iterative fixes and enhancements.
Generated by the language model.

FAQ

TL;DR: 4MB stało się domyślną bazą dla OpenESP32, a autor poprawki napisał: "Now configured with 4MB by default". Ten FAQ jest dla osób uruchamiających OpenBeken na ESP32 i wyjaśnia, jak dobrać build, rozwiązać błędy partycji, bootloadera, OTA, UART i Wi‑Fi na C2, C3, S2, S3 oraz klasycznym ESP32. [#21220790]

Dlaczego to ważne: Błędny rozmiar flash, zły offset bootloadera albo niewłaściwy typ obrazu potrafią dać „invalid header”, bootloop albo bezpieczny tryb AP mimo sprawnego sprzętu.

Wariant Typowy flash z wątku Co działało najlepiej Najczęstszy problem
ESP32-C3 4MB Wi‑Fi, OTA, PWM, czujniki I2C SuperMini miewa problemy z Wi‑Fi i DHCP
Klasyczny ESP32 4MB, czasem wykrywany jako 2MB GPIO, OTA, Wi‑Fi po poprawnym flashu błędy tabeli partycji i safe mode po reboocie
ESP32-S2/S3 4MB lub 16MB DS1820, GPIO, AP/STA po poprawkach stack overflow, problemy z temperaturą wewnętrzną
ESP32-C2 4MB podstawowe funkcje, PWM mało RAM, czułość na taktowanie i baud
ESP8266 1MB, 4MB, 8MB po swapie eksperymenty po rozdzieleniu wątku zbyt mały flash dla dual-OTA przy 8Mbit

Najważniejszy wniosek: Na ESP32 najpierw dobierz właściwy obraz do realnego flashu i układu, a dopiero potem diagnozuj skrypty, UART lub Wi‑Fi. W wątku większość „magicznych” awarii okazała się skutkiem złego rozmiaru flash, złego offsetu bootloadera albo użycia factory.bin zamiast .img. [#21221363]

Quick Facts

  • Domyślna konfiguracja ESP32 została przestawiona na 4MB flash, bo brakowało sdkconfig.defaults.esp32; to była kluczowa poprawka startowa całego portu. [#21220790]
  • Na ESP32-C3 poprawny boot pokazał partycje app0 0x10000, app1 0x100000 i LFS 0x1EF000, przy wykrytym flashu 4MB oraz SPI 80MHz/DIO. [#21221080]
  • Jeden z modułów ESP32-C5 pobierał przy starcie AP około 1,4 W / 0,3 A przy 5 V, czyli w przybliżeniu 0,5 A przy 3,3 V; to tłumaczy brownouty przy słabym zasilaniu. [#21648381]
  • Dla problematycznych płytek ESP32-C3 SuperMini obniżenie mocy Wi‑Fi do 10 dBm, a nawet 6 dBm, poprawiało łączenie z DHCP. [#21450268]
  • W sterowniku BP5758D padały konkretne prądy robocze: domyślnie 14 mA, w ESPHome 10 mA, a w praktyce dla GU10 sprawdzało się nawet 8 mA na kanałach. [#21246766]

How do I configure OpenBeken on ESP32 to use 4MB flash by default with sdkconfig.defaults.esp32?

Dodaj brakujący plik sdkconfig.defaults.esp32 i ustaw w nim wariant 4MB jako domyślny dla ESP32. To właśnie ta zmiana odblokowała poprawny start portu i autor podsumował ją krótko: „Now configured with 4MB by default”. Jeśli tworzysz także obraz scalony, dopasuj --flash_size 4MB, bo samo SDK nie naprawi błędnego merge bin. [#21220790]

Why does OpenESP32 factory.bin fail to boot with partition table errors on some ESP32 boards that actually have 4MB flash?

Najczęściej dlatego, że obraz factory.bin został zmergowany z nagłówkiem 2MB, mimo że płytka ma fizycznie 4MB. W logu widać wtedy SPI Flash Size : 2MB, a zaraz potem błąd typu partition ... exceeds flash chip size 0x200000. W wątku poprawka polegała na zmianie polecenia esptool.py merge_bin z --flash_size 2MB na --flash_size 4MB, bez zmiany samej płyty. [#21221363]

What is the difference between OpenBeken factory.bin and non-factory .img builds on ESP32, and when should each one be flashed?

factory.bin to obraz scalony z bootloaderem, tabelą partycji i aplikacją, a .img to zwykle sam obraz aplikacji do istniejącego układu partycji. Gdy układ startuje od zera, po erase_flash, albo masz uszkodzone partycje, użyj factory.bin. Gdy bootloader i partycje już są poprawne, często bezpieczniej użyć .img; w wątku klasyczny ESP32 ruszył po przejściu z factory na non-factory. [#21221359]

How can I erase_flash and reflash OpenBeken correctly on ESP32, ESP32-C3, and ESP32-S2 boards when GPIOs or boot behavior seem broken?

Najbezpieczniej wykonaj pełne czyszczenie i dopiero potem ponowny flash. 1. Uruchom erase_flash, aby usunąć stare partycje, konfigurację i błędne autostarty. 2. Wgraj właściwy obraz dla układu i realnego flashu: factory.bin przy czystym starcie albo .img przy istniejących partycjach. 3. Na S2 wejdź w boot przez przyciski RST i 0, a potem sprawdź log i AP przed testem GPIO. Ten schemat przywrócił poprawne działanie LED-ów i factory.bin na kilku płytkach. [#21221622]

Why did the ESP32-C3 merge initially fail with invalid header errors, and how does the bootloader offset at 0x0 vs 0x1000 affect flashing?

Bo przy merge dla C3 bootloader trafił pod zły adres. Autor poprawki napisał wprost, że „bootloader must be at 0x0, instead of 0x1000”, a wcześniejszy układ dawał serię invalid header. Na ESP32-C3 boot ROM oczekiwał bootloadera od 0x0, więc obraz z offsetem 0x1000 wyglądał jak uszkodzony mimo poprawnego flashowania. [#21221037]

What causes OpenBeken script timing to run too slowly on ESP32, and how do QUICK_TMR_DURATION, vTaskDelay, and esp_timer_get_time relate to the fix?

Problem wynikał z błędnego liczenia g_deltaTimeMS i z niepoprawnego użycia opóźnienia FreeRTOS. Poprawa miała dwa elementy: dla ESP-IDF czas zaczęto brać z esp_timer_get_time()/1000, a w wątku timera zmieniono vTaskDelay(QUICK_TMR_DURATION) na vTaskDelay(QUICK_TMR_DURATION / portTICK_RATE_MS). To ograniczyło dryf, który wcześniej dawał wynik około MAIN:Time 150 przy kanale zwiększonym tylko do 121. [#21221114]

How do flash encryption flags and eFuse settings on an ESP32-C3 device affect whether OpenBeken can boot after flashing?

Włączone szyfrowanie flash może zablokować start zwykłego obrazu, nawet gdy sprzęt ma poprawne 4MB i sam flash zapisze się bez błędów. W wątku jeden ESP32-C3 miał Flash Encryption: Enabled i nie startował jak zwykła płytka deweloperska. Po zmianie eFuse tak, by raport pokazywał Flash Encryption: Disabled oraz SPI_BOOT_CRYPT_CNT: 0x3, urządzenie zaczęło bootować OpenBeken poprawnie. [#21221080]

What is LittleFS or LFS in OpenBeken, and why do ESP logs sometimes say 'lfs is absent' even when scripts appear to work later?

„LittleFS” jest lekkim systemem plików flash, który przechowuje skrypty, pliki startowe i inne dane trwałe, a jego kluczową cechą jest praca na wydzielonej partycji flash zamiast w RAM. Log lfs is absent oznacza zwykle brak zamontowanej partycji LFS lub jeszcze nieutworzony system plików. W wątku ten komunikat pojawiał się przy starcie, ale później testy pokazały, że skrypty i zapis zaczęły działać po dalszych poprawkach partycji i flashowania. [#21221088]

What is TCA9554, and why is that I2C expander needed to run OpenESP32 on boards like the Waveshare ESP32-S3-ETH-8DI-8RO?

„TCA9554” jest ekspanderem I2C, który dodaje 8 linii wejścia/wyjścia GPIO, a jego główną cechą jest sterowanie dodatkowymi sygnałami przez magistralę I2C zamiast bezpośrednio z MCU. Na płytce Waveshare ESP32-S3-ETH-8DI-8RO ten układ steruje sekcją przekaźników, więc bez jego obsługi OpenESP32 nie potrafi przełączać wyjść. Dlatego w wątku wskazano, że TCA9554 jest wymagany, aby ta płyta miała sensowną obsługę pod OpenESP32. [#21640201]

ESP32-C2 vs ESP32-C3 vs classic ESP32 vs ESP32-S3 for OpenBeken — which one is currently the better choice for stability, Wi-Fi, sensors, and OTA?

Najbezpieczniejszym wyborem z wątku jest ESP32-C3 albo poprawnie zasilony ESP32-S3. C3 miał działające Wi‑Fi, OTA, PWM i czujniki I2C, choć wersje SuperMini wymagały czasem obniżenia mocy TX. Klasyczny ESP32 działał, ale częściej wpadał w safe mode, miał problemy z restartem i błędami partycji. C2 działał, lecz był bardziej ograniczony RAM-em; autor napisał wprost, że „ESP32-C2 is already struggling”. [#21223468]

How can I diagnose ESP32 reboot loops, WDT safe mode, or stack overflow crashes in OpenBeken after restart, OTA, NTP start, or saving pins?

Najpierw patrz na dokładny powód resetu i nazwę zadania z logu. Jeśli widzisz TG0WDT_SYS_RESET lub TG1WDT_SYS_RESET, szukaj blokującego kodu, a nie problemu RTC WDT. Jeśli log mówi o stack overflow w sys_evt, quick albo IntTemp, zwiększ stack albo znajdź pętlę rekurencyjną. W wątku restart rozbijał się o nieskończoną pętlę: WIFI_STA_DISCONNECTED wywoływało HAL_DisconnectFromWifi, które generowało ten sam event ponownie. [#21224554]

What is the best way to test UART on OpenESP32 with TuyaMCU, and why can UART receive still behave inconsistently even when transmit works?

Najlepiej testować UART na prawdziwym urządzeniu z TuyaMCU i osobno sprawdzić TX oraz RX. Autor portu podał, że nadawanie działało, ale odbiór wymagał obejścia: po UART_AppendByteToReceiveRingBuffer dodał vTaskDelay(3), aby uniknąć crasha. To stabilizowało pracę, ale przy większym strumieniu danych nadal mogło przepełnić bufor, wywołać flush wejścia i reset kolejki. [#21222660]

How do I reduce Wi-Fi issues on ESP32-C3 SuperMini boards in OpenBeken, including slow DHCP or failed connections, with commands like powersave 1 10?

Obniż moc nadawania i nie zakładaj, że domyślne 20 dBm będzie stabilne. Dla ESP32-C3 SuperMini w wątku zalecono powersave 1 10, gdzie 10 oznacza 10 dBm, a w jednym przypadku urządzenie połączyło się dopiero przy 6 dBm. To pomogło przy wolnym DHCP, braku adresu IP i niestabilnych połączeniach, typowych właśnie dla SuperMini. [#21450298]

Can I upgrade an ESP8266 or ESP-01 flash chip from 1MB to 4MB or 8MB for OpenBeken, and what should I verify with esptool afterward?

Tak, taka podmiana została potwierdzona praktycznie. W wątku wymieniono flash w ESP-01 z 1MB na 4MB, a później także na 8MB w innym module, po czym esptool flash_id poprawnie raportował nowy rozmiar pamięci. Po wymianie zawsze sprawdź producenta układu, kod urządzenia i Detected flash size, bo to jedyny szybki sposób potwierdzenia, że lutowanie i konfiguracja SPI są poprawne. [#21238166]

How can I create a global float variable or pulse counter in OpenBeken on ESP32-C3 for water meters when each pulse represents 10 liters?

W pokazanym fragmencie wątku nie ma gotowej, potwierdzonej implementacji globalnego floata ani licznika impulsów dla 10 litrów na impuls. Jest tylko pytanie użytkownika o taki licznik po uruchomieniu logiki addChangeHandler, bez dalszej odpowiedzi z działającym rozwiązaniem. Jeśli chcesz pozostać zgodny z tym wątkiem, jedyną potwierdzoną ścieżką jest dalszy eksperyment ze skryptami lub Berry, ale bez gotowej recepty opisanej w podanych postach. [#21798097]
Generated by the language model.
ADVERTISEMENT