Describe the bug
Using the UM ProS3 I rarely can connect to WiFi config portal.
Steps to Reproduce
- Use basic example code.
- Run
- You will sometime see SSID on wireless device. When you do if you try to connect it will say "Unable to join the network" most of the times. Every once in a while you can actually connect.
(Ran test client on iPhone, iMac and Windows 10 all produced the same results)
Expected behavior
Wifi config portal connection succeeds and allows you to bring up config web page.
Actual behavior
Either the SSID does not show up on device OR if it does and you try to connect you get a connection error. On rare occasion it does work.
Information
Platform IO: 6.1.6
OS: MacOs Ventura
Build Information that contains all version info:
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/um_pros3.html
PLATFORM: Espressif 32 (6.0.0) > Unexpected Maker PROS3
HARDWARE: ESP32S3 240MHz, 320KB RAM, 16MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-builtin, 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.20006.221224 (2.0.6)
- tool-esptoolpy @ 1.40400.0 (4.4.0)
- tool-mkfatfs @ 2.0.1
- tool-mklittlefs @ 1.203.210628 (2.3)
- tool-mkspiffs @ 2.230.0 (2.30)
- toolchain-riscv32-esp @ 8.4.0+2021r2-patch5
- toolchain-xtensa-esp32s3 @ 8.4.0+2021r2-patch5
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 36 compatible libraries
Scanning dependencies...
Dependency Graph
|-- ESP_WiFiManager_Lite @ 1.10.3
| |-- ESP_DoubleResetDetector @ 1.3.2
| | |-- SPIFFS @ 2.0.0
| | | |-- FS @ 2.0.0
| | |-- EEPROM @ 2.0.0
| | |-- FS @ 2.0.0
| | |-- LittleFS @ 2.0.0
| | | |-- FS @ 2.0.0
| |-- ESP_MultiResetDetector @ 1.3.2
| | |-- SPIFFS @ 2.0.0
| | | |-- FS @ 2.0.0
| | |-- EEPROM @ 2.0.0
| | |-- FS @ 2.0.0
| | |-- LittleFS @ 2.0.0
| | | |-- FS @ 2.0.0
| |-- FS @ 2.0.0
| |-- DNSServer @ 2.0.0
| | |-- WiFi @ 2.0.0
| |-- EEPROM @ 2.0.0
| |-- LittleFS @ 2.0.0
| | |-- FS @ 2.0.0
| |-- SPIFFS @ 2.0.0
| | |-- FS @ 2.0.0
| |-- WebServer @ 2.0.0
| | |-- WiFi @ 2.0.0
| | |-- FS @ 2.0.0
| |-- WiFi @ 2.0.0
Notes
I added WIFI events to see if I can gather more info and I noticed a few interesting events showing WPS is being used?
Below is the full log. I do not normally run with Wifi event handler. This was to try to gather more info.
Starting ESP_WiFi using LittleFS on Unexpected Maker PROS3
ESP_WiFiManager_Lite v1.10.3
ESP_MultiResetDetector v1.3.2
LittleFS Flag read = 0xFFFD0002
multiResetDetectorFlag = 0xFFFD0002
lowerBytes = 0x0002, upperBytes = 0x0002
No multiResetDetected, number of times = 2
LittleFS Flag read = 0xFFFD0002
Saving config file...
Saving config file OK
[WiFi-event] event: 0
WiFi interface ready
[WiFi-event] event: 2
WiFi client started
[ 1811][E][vfs_api.cpp:105] open(): /littlefs/wm_config.dat does not exist, no permits for creation
[ 1814][E][vfs_api.cpp:105] open(): /littlefs/wm_config.bak does not exist, no permits for creation
[WiFi-event] event: 1
Completed scan for access points
[WML] WiFi networks found:
[WML] 1: STEVE-JOBS-IOT, -59dB
[WML] 3: SQUIRREL, -61dB
[WML] 7: WallyWiFi, -71dB
[WML] 8: JCR, -72dB
[WML] 9: ZyXEL_EE91, -74dB
[WML] 10: 24B MV, -75dB
[WML] 11: HotspotWjN2, -75dB
[WML] 12: FiWi, -75dB
[WML] 13: NETGEAR66, -79dB
[WiFi-event] event: 3
WiFi clients stopped
[WiFi-event] event: 10
WiFi Protected Setup (WPS): succeeded in enrollee mode
[WML]
stConf:SSID=WIFIMANAGERLITE,PW=******
[WML] IP=192.168.4.1[WiFi-event] event: 11
WiFi Protected Setup (WPS): failed in enrollee mode
,ch=8
[WiFi-event] event: 10
WiFi Protected Setup (WPS): succeeded in enrollee mode
C
Your stored Credentials :
Blynk Server1 = account.duckdns.org
Token1 = token1
Blynk Server2 = account.ddns.net
Token2 = token2
Port = 8080
MQTT Server = mqtt.duckdns.org
Stop multiResetDetecting
Saving config file...
Saving config file OK
CCCCCCCCC CCCC---
With some runs I see this:
Saving config file OK
CC[WiFi-event] event: 12
WiFi Protected Setup (WPS): timeout in enrollee mode
C[WiFi-event] event: 13
WiFi Protected Setup (WPS): pin code in enrollee mode
[WiFi-event] event: 12
WiFi Protected Setup (WPS): timeout in enrollee mode
[WiFi-event] event: 13
WiFi Protected Setup (WPS): pin code in enrollee mode
Not sure this has anything to do with anything, but it is interesting.
I will continue to debug to see if I can figure out a solution to this.
platformio.ini
[env:um_pros3]
platform = espressif32
board = um_pros3
framework = arduino
monitor_speed = 115200
lib_deps =
khoih-prog/ESP_WiFiManager_Lite
build_flags =
-D ARDUINO_USB_MODE=1
-DARDUINO_ESP32S3_DEV
board_build.mcu = esp32s3
board_build.partitions = huge_app.csv
board_build.variant = esp32s3
board_build.f_cpu = 240000000L
board_build.f_flash = 80000000L
board_build.flash_mode = qio
board_build.arduino.ldscript = esp32s3_out.ld
build_unflags =
-DARDUINO_ESP32_DEV
-DARDUINO_VARIANT="esp32"