Aircoookie / WLED

Control WS2812B and many more types of digital RGB LEDs with an ESP8266 or ESP32 over WiFi!
https://kno.wled.ge
MIT License
14.79k stars 3.19k forks source link

ESP32 won't connect to WiFi when SSID is using both 2.4 and 5 Ghz #4187

Closed jf-navica closed 1 week ago

jf-navica commented 1 week ago

What happened?

ESP-WROOM-32 won't connect to WiFi when SSID is the same on both 2.4 and 5 Ghz. If the SSID is only on 2.4 Ghz, it connects. It appears to be related to the way Synology handles band steering. BUT... Bug is not present on ESP8266 and using ESPHOME on same ESP-WROOM-32 works fine both using Arduino and ESP-IDF frameworks.

To Reproduce Bug

erase flash write_flash 0x0 ./esp32_bootloader_v4.bin write_flash 0x10000 ./WLED_0.15.0-b5_esp32_debug.bin (or any other versions down to 13.3) Connect to AP, configure WiFi

Expected Behavior

It should connect to WiFi

Install Method

Self-Compiled

What version of WLED?

0.15.0-b5

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

0x1 (POWERON_RESET),boot:0x13 (SLocal time: 00:02
---DEBUG INFO---
Runtime: 120063
Unix time: 120,063
Free heap: 179968
TX power: 62/78
Wifi state: 6
ESP-NOW state: 0
State time: 30000
NTP last sync: 999000000
Client IP: 255.255.255.255
Loops/sec: 1636
Loop time[ms]: 0/2
UM time[ms]: 0/1
Strip time[ms]:0/1
Segments: 1 -> 68/0B
  Seg: 30,1 [A=1, 2D=0, RGB=1, W=0, CCT=0]
Modes: 4*187=748B
Data: 4*187=748B
Map: 2*0=0B
ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DOUT, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:10124
load:0x40080400,len:5828
entry 0x400806a8

---WLED 0.15.0-b5 2409170 INIT---

esp32 v3.3.6-16-gcc5440f6a2
arduino-esp32 v1.0.x

CPU:   ESP32-D0WDQ5 rev.3, 2 core(s), 240 MHz.
FLASH: 4 MB, Mode 3 (DOUT), speed 40 MHz.
heap 302988
JSON buffer allocated: 32767
TX power: 78/78
PIN ALLOC: Pin 1 successfully allocated by 0x89.
PIN ALLOC: 0x00000000000002.
Registering usermods ...
heap 269976
Reading config
Reading settings from /wsec.json...
JSON buffer locked. (3)
JSON buffer released. (3)
JSON buffer locked. (1)
Reading settings from /cfg.json...
Heap before buses: 267660
Removing all.
Maximum LEDs on a bus: 0
Digital buses: 0
LED buffer size: 0B
Heap after buses: 267660
PIN ALLOC: Pin 0 successfully allocated by 0x85.
PIN ALLOC: 0x00000000000003.
PIN ALLOC: FAIL Pin 0 already allocated by 0x85.
PIN ALLOC: FAIL Pin 0 already allocated by 0x85.
Starting usermod config.
JSON buffer released. (1)
heap 267616
Initializing strip
No busses, init default
PIN ALLOC: Pin 16 successfully allocated by 0x82.
PIN ALLOC: 0x00000000010003.
Successfully inited strip 0 (len 30) with type 22 and pins 16,255 (itype 23). mA=55/850
Loading custom palettes
Loading custom ledmaps
heap 266484
Usermods setup
PIN ALLOC: Pin 25 successfully allocated by 0x20.
PIN ALLOC: 0x00000002010003.
PIN ALLOC: Pin 26 successfully allocated by 0x20.
PIN ALLOC: 0x00000006010003.
PIN ALLOC: Pin 27 successfully allocated by 0x20.
PIN ALLOC: 0x0000000E010003.
PIN ALLOC: FAIL Pin 0 already allocated by 0x85.
AR: Failed to initialize sound input driver. Please check input PIN settings.
heap 266264
Defaulf WiFi used.
Ada
initServer
heap 211624
initIR
heap 211624
Initial connect or forced reconnect.
Defaulf WiFi used.
initConnection() called.
No connection configured.
Opening access point WLED-AP
Init AP interfaces
Loop took 749ms.
Usermods took 0ms.
Strip took 1ms.
Connected AP clients: 1
Connected AP clients: 0
Connected AP clients: 1
Connected AP clients: 0
Connected AP clients: 1
WS FileRead: /favicon.ico
---DEBUG INFO---
Runtime: 30000
Unix time: 30,000
Free heap: 182992
TX power: 72/78
Wifi state: 6
ESP-NOW state: 0
State time: 30001
NTP last sync: 999000000
Client IP: 255.255.255.255
Loops/sec: 1849
Loop time[ms]: 0/749
UM time[ms]: 0/1
Strip time[ms]:0/10
Segments: 1 -> 68/0B
  Seg: 30,1 [A=1, 2D=0, RGB=1, W=0, CCT=0]
Modes: 4*187=748B
Data: 4*187=748B
Map: 2*0=0B
WS FileRead: /common.js
settings resp 1
Initial connect or forced reconnect.
Defaulf WiFi used.
initConnection() called.
Connecting to Test_SSID...
Writing settings to /wsec.json...
JSON buffer locked. (4)
JSON buffer released. (4)
Writing settings to /cfg.json...
JSON buffer locked. (2)
JSON buffer released. (2)
Loop took 124ms.
Usermods took 0ms.
Strip took 0ms.
Loop took 717ms.
Usermods took 0ms.
Strip took 1ms.
Local time: 00:01
---DEBUG INFO---
Runtime: 60021
Unix time: 60,021
Free heap: 182420
TX power: 72/78
Wifi state: 6
ESP-NOW state: 0
State time: 30001
NTP last sync: 999000000
Client IP: 255.255.255.255
Loops/sec: 1511
Loop time[ms]: 0/717
UM time[ms]: 0/1
Strip time[ms]:0/9
Segments: 1 -> 68/0B
  Seg: 30,1 [A=1, 2D=0, RGB=1, W=0, CCT=0]
Modes: 4*187=748B
Data: 4*187=748B
Map: 2*0=0B
WS FileRead: /index.htm
JSON buffer locked. (17)
JSON buffer size: 8162 for request: 6
JSON content length: 5554
Loop took 32ms.
Usermods took 0ms.
Strip took 0ms.
JSON buffer released. (17)
JSON buffer locked. (17)
JSON buffer size: 4807 for request: 8
JSON content length: 2190
JSON buffer released. (17)
JSON buffer locked. (17)
JSON buffer size: 2646 for request: 3
JSON content length: 1491
JSON buffer released. (17)
WS FileRead: /skin.css
Not-Found HTTP call: /presets.json
WS FileRead: /presets.json
WS client connected.
JSON buffer locked. (12)
JSON buffer size: 2627 for WS request (1491).
heap 177916
Sending WS data to a single client.
JSON buffer released. (12)
---DEBUG INFO---
Runtime: 90042
Unix time: 90,042
Free heap: 181700
TX power: 72/78
Wifi state: 5
ESP-NOW state: 0
State time: 90042
NTP last sync: 999000000
Client IP: 255.255.255.255
Loops/sec: 1565
Loop time[ms]: 0/32
UM time[ms]: 0/1
Strip time[ms]:0/19
Segments: 1 -> 68/0B
  Seg: 30,1 [A=1, 2D=0, RGB=1, W=0, CCT=0]
Modes: 4*187=748B
Data: 4*187=748B
Map: 2*0=0B
Connected AP clients: 0
initConnection() called.
Connecting to Test_SSID...
Last reconnect too old.
initConnection() called.
Connecting to Test_SSID...
Connected AP clients: 1
Local time: 00:02
---DEBUG INFO---
Runtime: 120063
Unix time: 120,063
Free heap: 181840
TX power: 72/78
Wifi state: 6
ESP-NOW state: 0
State time: 120064
NTP last sync: 999000000
Client IP: 255.255.255.255
Loops/sec: 1591
Loop time[ms]: 0/27
UM time[ms]: 0/1
Strip time[ms]:0/1
Segments: 1 -> 68/0B
  Seg: 30,1 [A=1, 2D=0, RGB=1, W=0, CCT=0]
Modes: 4*187=748B
Data: 4*187=748B
Map: 2*0=0B
WS client disconnected.
WS FileRead: /common.js
settings resp 0
WS FileRead: /common.js
settings resp 1
---DEBUG INFO---
Runtime: 150084
Unix time: 150,084
Free heap: 182248
TX power: 72/78
Wifi state: 6
ESP-NOW state: 0
State time: 120064
NTP last sync: 999000000
Client IP: 255.255.255.255
Loops/sec: 1598
Loop time[ms]: 0/20
UM time[ms]: 0/1
Strip time[ms]:0/10
Segments: 1 -> 68/0B
  Seg: 30,1 [A=1, 2D=0, RGB=1, W=0, CCT=0]
Modes: 4*187=748B
Data: 4*187=748B
Map: 2*0=0B
Writing settings to /wsec.json...
JSON buffer locked. (4)
JSON buffer released. (4)
Writing settings to /cfg.json...
JSON buffer locked. (2)
JSON buffer released. (2)
Loop took 139ms.
Usermods took 0ms.
Strip took 0ms.
Initial connect or forced reconnect.
Defaulf WiFi used.
initConnection() called.
Connecting to Test_SSID...
Connected AP clients: 0
initConnection() called.
Connecting to Test_SSID...
Last reconnect too old.
initConnection() called.
Connecting to Test_SSID...
Connected AP clients: 1
WS FileRead: /index.htm
JSON buffer locked. (17)
JSON buffer size: 8162 for request: 6
JSON content length: 5554
JSON buffer released. (17)
JSON buffer locked. (17)
JSON buffer size: 4807 for request: 8
JSON content length: 2190
JSON buffer released. (17)
JSON buffer locked. (17)
JSON buffer size: 2629 for request: 3
JSON content length: 1474
JSON buffer released. (17)
WS FileRead: /skin.css
Not-Found HTTP call: /presets.json
WS FileRead: /presets.json
Loop took 31ms.
Usermods took 0ms.
Strip took 20ms.
Loop delayed more than 11ms.
WS client connected.
JSON buffer locked. (12)
JSON buffer size: 2609 for WS request (1474).
heap 177900
Sending WS data to a single client.
JSON buffer released. (12)
Local time: 00:03
---DEBUG INFO---
Runtime: 180105
Unix time: 180,105
Free heap: 181832
TX power: 72/78
Wifi state: 6
ESP-NOW state: 0
State time: 120064
NTP last sync: 999000000
Client IP: 255.255.255.255
Loops/sec: 1558
Loop time[ms]: 0/139
UM time[ms]: 0/1
Strip time[ms]:0/29
Segments: 1 -> 68/0B
  Seg: 30,1 [A=1, 2D=0, RGB=1, W=0, CCT=0]
Modes: 4*187=748B
Data: 4*187=748B
Map: 2*0=0B
WS client disconnected.
WS FileRead: /common.js
settings resp 0
WS FileRead: /common.js
settings resp 1
Loop delayed more than 7ms.
---DEBUG INFO---
Runtime: 210126
Unix time: 210,126
Free heap: 182244
TX power: 72/78
Wifi state: 6
ESP-NOW state: 0
State time: 120064
NTP last sync: 999000000
Client IP: 255.255.255.255
Loops/sec: 1593
Loop time[ms]: 0/19
UM time[ms]: 0/1
Strip time[ms]:0/9
Segments: 1 -> 68/0B
  Seg: 30,1 [A=1, 2D=0, RGB=1, W=0, CCT=0]
Modes: 4*187=748B
Data: 4*187=748B
Map: 2*0=0B
Writing settings to /wsec.json...
JSON buffer locked. (4)
JSON buffer released. (4)
Writing settings to /cfg.json...
JSON buffer locked. (2)
JSON buffer released. (2)
Loop took 123ms.
Usermods took 0ms.
Strip took 0ms.
Initial connect or forced reconnect.
Defaulf WiFi used.
initConnection() called.
Connecting to Test_SSID...
Loop took 717ms.
Usermods took 0ms.
Strip took 0ms.
Connected AP clients: 0
initConnection() called.
Connecting to Test_SSID...
Last reconnect too old.
initConnection() called.
Connecting to Test_SSID...
Local time: 00:04
---DEBUG INFO---
Runtime: 240147
Unix time: 240,147
Free heap: 183720
TX power: 72/78
Wifi state: 6
ESP-NOW state: 0
State time: 120064
NTP last sync: 999000000
Client IP: 255.255.255.255
Loops/sec: 1516
Loop time[ms]: 0/717
UM time[ms]: 0/1
Strip time[ms]:0/1
Segments: 1 -> 68/0B
  Seg: 30,1 [A=1, 2D=0, RGB=1, W=0, CCT=0]
Modes: 4*187=748B
Data: 4*187=748B
Map: 2*0=0B
Connected AP clients: 1
WS FileRead: /index.htm
JSON buffer locked. (17)
JSON buffer size: 8162 for request: 6
JSON content length: 5554
Loop took 31ms.
Usermods took 0ms.
Strip took 1ms.
JSON buffer released. (17)
JSON buffer locked. (17)
JSON buffer size: 4807 for request: 8
JSON content length: 2190
JSON buffer released. (17)
JSON buffer locked. (17)
JSON buffer size: 2629 for request: 3
JSON content length: 1474
Loop delayed more than 8ms.
JSON buffer released. (17)
WS FileRead: /skin.css
Not-Found HTTP call: /presets.json
WS FileRead: /presets.json
Loop took 44ms.
Usermods took 0ms.
Strip took 29ms.
WS client connected.
JSON buffer locked. (12)
JSON buffer size: 2609 for WS request (1474).
heap 178820
Sending WS data to a single client.
JSON buffer released. (12)
---DEBUG INFO---
Runtime: 270168
Unix time: 270,168
Free heap: 181636
TX power: 72/78
Wifi state: 6
ESP-NOW state: 0
State time: 120064
NTP last sync: 999000000
Client IP: 255.255.255.255
Loops/sec: 1571
Loop time[ms]: 0/44
UM time[ms]: 0/1
Strip time[ms]:0/29
Segments: 1 -> 68/0B
  Seg: 30,1 [A=1, 2D=0, RGB=1, W=0, CCT=0]
Modes: 4*187=748B
Data: 4*187=748B
Map: 2*0=0B

Anything else?

Not self-compiled. Used debug binaries provided by: https://github.com/srg74/WLED-wemos-shield/tree/master/resources/Firmware/%40Aircoookie/Dev/0.15.0-b5/Debug_builds

Code of Conduct

blazoncek commented 1 week ago

I have Ubiguiti's Unifi network and everything works with the same SSID on 2.4GHz and 5GHz. I would suspect something wrong on your particular WiFi settings.

WLED uses stock Arduino/IDF WiFi stack so issue should be reported (and debugged) there.

jf-navica commented 1 week ago

Can't open a bug there, ESPHOME also uses stock Arduino/IDF and it works. So what's different between WLED and ESPHOME?

blazoncek commented 1 week ago

WLED (in 0.15) does:

...

  WiFi.persistent(false);
  WiFi.onEvent(WiFiEvent);
#if defined(ARDUINO_ARCH_ESP32) && ESP_IDF_VERSION_MAJOR==4
  WiFi.useStaticBuffers(true);    // use preallocated buffers (for speed)
#endif
#ifdef ESP8266
  WiFi.setPhyMode(force802_3g ? WIFI_PHY_MODE_11G : WIFI_PHY_MODE_11N);
#endif
  if (isWiFiConfigured()) {
    showWelcomePage = false;
    WiFi.setAutoReconnect(true);  // use automatic reconnect functionality
    WiFi.mode(WIFI_MODE_STA);     // enable scanning
    findWiFi(true);               // start scanning for available WiFi-s
  } else {
    showWelcomePage = true;
    WiFi.mode(WIFI_MODE_AP);      // WiFi is not configured so we'll most likely open an AP
  }

...

  if (isWiFiConfigured()) {
    WiFi.mode(WIFI_MODE_STA); // engage explicit STA mode
    // determine if using DHCP or static IP address, will also engage STA mode if not already
    if (multiWiFi[selectedWiFi].staticIP != 0U && multiWiFi[selectedWiFi].staticGW != 0U) {
      WiFi.config(multiWiFi[selectedWiFi].staticIP, multiWiFi[selectedWiFi].staticGW, multiWiFi[selectedWiFi].staticSN, dnsAddress);
    } else {
      WiFi.config(IPAddress((uint32_t)0), IPAddress((uint32_t)0), IPAddress((uint32_t)0));
    }

    // convert the "serverDescription" into a valid DNS hostname (alphanumeric)
    char hostname[25];
    prepareHostname(hostname);

#ifdef ARDUINO_ARCH_ESP32
    WiFi.setTxPower(wifi_power_t(txPower));
    WiFi.setSleep(!noWifiSleep);
    WiFi.setHostname(hostname);
#else
    wifi_set_sleep_type((noWifiSleep) ? NONE_SLEEP_T : MODEM_SLEEP_T);
    WiFi.hostname(hostname);
#endif
    WiFi.begin(multiWiFi[selectedWiFi].clientSSID, multiWiFi[selectedWiFi].clientPass); // no harm if called multiple times
    // once WiFi is configured and begin() called, ESP will keep connecting to the specified SSID in the background
    // until connection is established or new configuration is submitted or disconnect() is called
  }

...

WiFi being instance of generic Arduino WiFi class.

softhack007 commented 1 week ago

So what's different between WLED and ESPHOME?

@jf-navica there are lots of differences - most importantly the core libraries used. I'm not sure what ESPHome uses, however i'm relatively sure its esp-idf 4.4.x and arduino-esp32 2.0.y.

For various reasons (especially flash usage), WLED for esp32 is still on esp-idf 3.5.x and arduino-esp32 1.0.6. Before you ask - no we cannot "simply upgrade" these core versions, unless you (as a user) are OK with getting a firmware that only runs on 8MB flash boards.

We actually have a "V4" build that uses the new espressif core, but its still experimental because we cannot (yet) fit all WLED features into this build. Good news is, this build can be uploaded to 4MB devices.

You can go to https://wled-install.github.io/ (alternative web installer) and flash your board with a "V4" firmware. This should help to find out if the newer wifi core makes a difference. Please make a backup of your config & presets because the installer will erase the flash memory.

image

softhack007 commented 1 week ago

won't connect to WiFi when SSID is the same on both 2.4 and 5 Ghz. If the SSID is only on 2.4 Ghz, it connects.

In fact esp32 only has 2.4Ghz radio, so it does nor even know the 5Ghz network exists.

Your router might have features enabled (fast roaming, 2.4ghz -> 5ghz handover, or whatever) that causes the behaviour you describe. But we can't control that from WLED side. Again, your esp32 does not even "see" the 5Ghz frequencies.

jf-navica commented 1 week ago

won't connect to WiFi when SSID is the same on both 2.4 and 5 Ghz. If the SSID is only on 2.4 Ghz, it connects.

In fact esp32 only has 2.4Ghz radio, so it does nor even know the 5Ghz network exists.

Your router might have features enabled (fast roaming, 2.4ghz -> 5ghz handover, or whatever) that causes the behaviour you describe. But we can't control that from WLED side. Again, your esp32 does not even "see" the 5Ghz frequencies.

That I figured out! I'm just puzzled as to why one works but not the other. I'll try the V4 firmware and let you know

dosipod commented 1 week ago

I have setup a router(apple time capsule) in response to the OP issue in discord yesterday with SSID the same on both 2.4 and 5 Ghz and i did not face an issue as the wifi scan page will still pick up the SSID for 2.4

jf-navica commented 1 week ago

I have setup a router(apple time capsule) in response to the OP issue in discord yesterday with SSID the same on both 2.4 and 5 Ghz and i did not face an issue as the wifi scan page will still pick up the SSID for 2.4

Same here, they all show up in scan page. But connection won't work

dosipod commented 1 week ago

@jf-navica While it is not a real solution and could be not suited for you , it might be best to get 2nd router ( i have two TP-Link WR840N ) just for the IoT devices and connect that to your main router as that really a solution to a lot of issues but otherwise you might have to dig in your main router setting which is not easy due to disruption . Please get one in all cases

jf-navica commented 1 week ago

So what's different between WLED and ESPHOME?

@jf-navica there are lots of differences - most importantly the core libraries used. I'm not sure what ESPHome uses, however i'm relatively sure its esp-idf 4.4.x and arduino-esp32 2.0.y.

For various reasons (especially flash usage), WLED for esp32 is still on esp-idf 3.5.x and arduino-esp32 1.0.6. Before you ask - no we cannot "simply upgrade" these core versions, unless you (as a user) are OK with getting a firmware that only runs on 8MB flash boards.

We actually have a "V4" build that uses the new espressif core, but its still experimental because we cannot (yet) fit all WLED features into this build. Good news is, this build can be uploaded to 4MB devices.

You can go to https://wled-install.github.io/ (alternative web installer) and flash your board with a "V4" firmware. This should help to find out if the newer wifi core makes a difference. Please make a backup of your config & presets because the installer will erase the flash memory.

image

ESPHOME uses esp-idf 4.4.6

Tested a few V4 firmwares and at one point I saw it connect but was never able to reproduce it. At least we have an explanation for the problem. It would be nice if it could be included in the install doc that this issue might arise with certain WiFi routers.

In my case, I'll simply disable 5Ghz on the IOT SSID

jf-navica commented 1 week ago

Correction: connexion to WiFI was successful with 0.14.4 V4 ESP-IDF 4.4.3. Not sure when it connected but my Home-Assistant detected it.

jf-navica commented 1 week ago

@softhack007 Can you confirm that this is the proper CLI procedure? I think my issue might lie somewhere else...

https://github.com/Aircoookie/WLED/releases/download/v0.13.1/esp32_bootloader_v4.bin https://wled-install.github.io/bin_dir/1_Standard_version/0.14.4_V4_(ESP-IDF_4.4.3_based,%20EXPERIMENTAL,%20should%20solve%20reboot%20issue)/WLED_0.14.4_ESP32_audioreactive_V4.bin

esptool.py erase_flash esptool.py write_flash 0x0 ./esp32_bootloader_v4.bin esptool.py write_flash 0x10000 ./WLED_0.14.4_ESP32_audioreactive_V4.bin NOT OK

Install via Chromium: https://wled-install.github.io/bin_dir/1_Standard_version/Nightly_build_next_major/WLED_0.15.0-b5_ESP32.bin NOT OK

Install Chromium: https://wled-install.github.io/bin_dir/1_Standard_version/0.14.4_V4_(ESP-IDF_4.4.3_based,%20EXPERIMENTAL,%20should%20solve%20reboot%20issue)/WLED_0.14.4_ESP32_audioreactive_V4.bin OK

Install via Chromium: https://wled-install.github.io/bin_dir/1_Standard_version/Nightly_build/WLED_0.14.4_ESP32.bin OK

Install via Chromium: https://wled-install.github.io/bin_dir/1_Standard_version/Nightly_build_next_major/WLED_0.15.0-b5_ESP32.bin OK

So it seems a Chromium install of V4 fixes something on my ESP32 that allows other versions to work.

softhack007 commented 1 week ago

esptool.py erase_flash esptool.py write_flash 0x0 ./esp32_bootloader_v4.bin esptool.py write_flash 0x10000 ./WLED_0.14.4_ESP32_audioreactive_V4.bin NOT OK

Sorry this won't work. You can't install a "V4" firmware the same way as a normal "V3" one. A number of files are needed, which are produced when building and installing from VSCode:

I can't tell you atm where to flash all these parts. In fact I only work from the VSCode+platformIO environment, which has a nice button for "build & upload" that takes care of flashing the right parts to the right addresses.

jf-navica commented 1 week ago

@softhack007 thanks for the pointer. I think the problem is linked to the bootloader https://github.com/Aircoookie/WLED/releases/download/v0.13.1/esp32_bootloader_v4.bin (as specified on the install page)

I did the following (used esphome to make sure I was on a clean slate)

Sequence 1: Install esphome Install with esptool (erase flash, esp32_bootloader_v4.bin, WLED_0.15.0-b5_ESP32.bin) not OK Install WLED 0.15.0-b5/2409100 with Chromium (install.wled.me) not OK

Sequence 2: Install esphome Install with esptool (erase flash, esp32_bootloader_v4.bin, WLED_0.15.0-b5_ESP32.bin) not OK Install esphome Install WLED 0.15.0-b5/2409100 with Chromium (install.wled.me) OK

softhack007 commented 1 week ago

I think the problem is linked to the bootloader https://github.com/Aircoookie/WLED/releases/download/v0.13.1/esp32_bootloader_v4.bin (as specified on the install page)

exactly what I wanted to say. The bootloader from the old WLED release pages is outdated. Don't use it.

The files used when you open install.wled.me are here: https://github.com/Aircoookie/WLED-WebInstaller/tree/master/bin/beta_0_15_0-b5 currently we don't have "V4" binaries for esp32, so you'll still find the old bootloader in that directory.

softhack007 commented 1 week ago

The complete flash procedure for esp32 is:

important: make sure you use the lastest esptool.

$ esptool version esptool.py v4.8.1 4.8.1

or later

softhack007 commented 1 week ago

As you're basically asking how to flash your board without using VSCode (the development environment for building WLED), maybe @wled-install or @lost-hope or @dosipod might be able to help you further. This is not my area any more.


And I'd suggest to move this discussion to . This issue tracker is meant for bugs in the WLED source code...

jf-navica commented 1 week ago

Thanks for the update. I'll close this issue but one last question: how to get the bootloader issue fixed on the web site?

softhack007 commented 1 week ago

allow me to repeat myself: This is not my area any more.

The standard webinstaller has its own repo here https://github.com/Aircoookie/WLED-WebInstaller

The alternative one lives here: https://github.com/wled-install/wled-install.github.io