ESP32-DIV icon indicating copy to clipboard operation
ESP32-DIV copied to clipboard

Wifi Scanner issue

Open JaapHz opened this issue 6 months ago • 13 comments

This issue has already been reported. Wifi Scanner last working on firmware 1.5.0. On FW 1.5.3 and 1.6.0 it scans shortly and then reboots. I returned to 1.5.0. and it is working properly again.

Does anyone still have the same problem?

JaapHz avatar May 14 '26 19:05 JaapHz

Disabling the Auto Scanner did not solve the problem for me.

JaapHz avatar May 14 '26 19:05 JaapHz

I have this same problem, Hope it get fixed soon. and I would like to see some EAPOL options added. It looks a great item. I have been thinking about changing it to a C5 WROOM I know it may not work but could be worth giving it a go, I have a few on order.

dan20701 avatar May 15 '26 10:05 dan20701

Same here, i compiled it and flashed all the files again with arduino, still doesn't work. Any ideas?

soulbrotherfunky avatar May 15 '26 16:05 soulbrotherfunky

Yes, the same thing happens to me with version 1.6.0

joanmaji26-tech avatar May 16 '26 09:05 joanmaji26-tech

Hey, I made some changes. Please test this version and tell me if the problem is still there. Thanks.

@soulbrotherfunky @JaapHz @dan20701 @joanmaji26-tech

ESP32-DIV-wifi-scanner.zip

cifertech avatar May 16 '26 12:05 cifertech

It keeps restarting, I don't know if it is a problem with the device (ESP32-DIV -2) it is something strange, since when I am in the bluetooth section (ble jammer) it only makes interference, and if I move the phone and the speaker 1 meter away, it does nothing and the ESP32-DIV -2 restarts itself, I am thinking of returning it and buying another unit, in case it is bad. Any trusted store?

joanmaji26-tech avatar May 16 '26 15:05 joanmaji26-tech

The new ESP32-DIV.ino.bin flashes successfully on my ESP32-DIV V2 (ESP32-S3), but after boot I only get a white screen and one of the top LED blinks red twice.

My current firmware ESP32-DIV-v1.6.0.bin works normally (display/menu OK), but WiFi scan is broken there.

So the new firmware seems to be built for a different hardware/display revision of the DIV V2.

Can you provide the correct ESP32-S3 V2 build for the display revision used in v1.6.0.bin?

soulbrotherfunky avatar May 18 '26 09:05 soulbrotherfunky

btw the error when trying to use the wifi-scanner is „free() target pointer is outside heap areas“

soulbrotherfunky avatar May 19 '26 04:05 soulbrotherfunky

Normal Boot, everything except for the WiFi scan works. Disabled Auto Scan. same thing...

angelamartz-rgb avatar May 19 '26 18:05 angelamartz-rgb

Hi Cifertech, thanks for the effort but the changes did not have any effect. Still reboot after WiFi Scanning.

JaapHz avatar May 19 '26 19:05 JaapHz

i also have the same problem

paultheuma avatar May 20 '26 07:05 paultheuma

me too. Restarts.

teletoobies avatar May 27 '26 23:05 teletoobies

I also have the same problem on both versions 1.5.3 and 1.6.0

aralker avatar May 28 '26 16:05 aralker

same problem here, last working version 1.5.0

prestarius avatar Jun 03 '26 15:06 prestarius

Found the issue, drawNetworkRow() and four other WiFi list renderers copied an SSID into a 12-byte stack buffer (char ssid[12]) and then strcat'd "..." onto it when the SSID was longer than 11 chars. That wrote 4 bytes past the end of the buffer, smashing the stack and rebooting the device a few seconds into a scan whenever a nearby network had a name longer than 11 characters. Fix: Enlarge the buffers to ssid[16] (11 chars + "..." + NUL). v1.5 was unaffected because it used ssid[32]

Fix in PR https://github.com/cifertech/ESP32-DIV/pull/153

Double checked by compiling the sources and burning fixed version to device, works like a charm

prestarius avatar Jun 03 '26 16:06 prestarius

Thank you, @prestarius.

This is a clean fix, and I have merged it. Hopefully, this will resolve the issue for everyone.

cifertech avatar Jun 05 '26 21:06 cifertech

big thanks to @prestarius! fixed it for me

soulbrotherfunky avatar Jun 07 '26 07:06 soulbrotherfunky

Issue closed. V1.7.0

JaapHz avatar Jun 13 '26 22:06 JaapHz