andrewfernie / FreeTouchDeckWT32

19 stars 4 forks source link

WiFi not coming up #3

Closed Snowflake6 closed 1 year ago

Snowflake6 commented 1 year ago

After some trials getting VSCode to properly compile the code, I did successfully get everything installed on my new WT32-SC01. Navigating seems to work, but I can't seem to get the WiFI to come up. My /data/config/WiFiConfig.json looks like this:

{
    "ssid": "(my SSID)",
    "password": "(my SSID PW)",
    "wifimode": "WIFI_STA",
    "wifihostname": "freetouchdeck",
    "sleepenable": true,
    "sleeptimer": 10
}

It won't connect to my WiFi though, and when it fails back I get this: image

It suggests I should look for "FreeTouchDeck" not "freetouchdeck" as in the config file. Either way though, I can't find either network on either my laptop or my phone.

I don't see a WiFi switch on the PCB or anything like that... Is there any way to confirm that the WiFi is indeed working?

andrewfernie commented 1 year ago

Strange that there is no valid IP address. Try copying wificonfig.json.default to wificonfig.json and uploading the file system again. Then restart and see if it starts the local access point. If so, enter your credentials via the web configurator. If that doesn’t work I am going to have to find a way of checking library versions as that is the only other thing I can see can vary. I assume that you are using the master branch code unmodified ?

andrewfernie commented 1 year ago

I did a "Clean All" from the PlatformIO Project Tasks menu then a Build. The following messages were displayed during the build. Do the various version numbers look the same as you see?

Executing task in folder FreeTouchDeckWT32: C:\Users\andre\.platformio\penv\Scripts\platformio.exe run --environment esp-wrover-kit

Processing esp-wrover-kit (platform: espressif32; board: esp-wrover-kit; framework: arduino)
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Library Manager: Installing bodmer/TFT_eSPI @ ^2.4.70
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
Library Manager: TFT_eSPI@2.4.79 has been installed!
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp-wrover-kit.html
PLATFORM: Espressif 32 (4.3.0) > Espressif ESP-WROVER-KIT
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (ftdi) On-board (ftdi) External (cmsis-dap, esp-prog, esp_usb_jtag, 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.20003.0 (2.0.3) 
 - tool-esptoolpy @ 1.30300.0 (3.3.0)
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ deep, Compatibility ~ soft
Found 39 compatible libraries
Scanning dependencies...
Dependency Graph
|-- TFT_eSPI @ 2.4.79
|   |-- SPI @ 2.0.0
|   |-- SPIFFS @ 2.0.0
|   |   |-- FS @ 2.0.0
|   |-- FS @ 2.0.0
|   |-- LittleFS @ 2.0.0
|   |   |-- FS @ 2.0.0
|-- ESP32 BLE Keyboard @ 0.2.2
|   |-- ESP32 BLE Arduino @ 2.0.0
|-- ESP32 BLE Arduino @ 2.0.0
|-- FT6236
|   |-- Wire @ 2.0.0
|-- FT6336U
|   |-- Wire @ 2.0.0
|-- ArduinoJson @ 6.17.2
|-- AsyncTCP @ 1.1.1
|-- ESP Async WebServer @ 1.2.3
|   |-- AsyncTCP @ 1.1.1
|   |-- FS @ 2.0.0
|   |-- WiFi @ 2.0.0
|-- ESPmDNS @ 2.0.0
|   |-- WiFi @ 2.0.0
|-- FS @ 2.0.0
|-- LittleFS @ 2.0.0
|   |-- FS @ 2.0.0
|-- Preferences @ 2.0.0
|-- SPIFFS @ 2.0.0
|   |-- FS @ 2.0.0
|-- WiFi @ 2.0.0
|-- Wire @ 2.0.0
Building in release mode
Replace MKSPIFFSTOOL with mklittlefs.exe

[lots of compiling/archiving messages]

Linking .pio\build\esp-wrover-kit\firmware.elf
Retrieving maximum program size .pio\build\esp-wrover-kit\firmware.elf
Checking size .pio\build\esp-wrover-kit\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [===       ]  25.4% (used 83128 bytes from 327680 bytes)
Flash: [=======   ]  73.5% (used 1542005 bytes from 2097152 bytes)
Building .pio\build\esp-wrover-kit\firmware.bin
esptool.py v3.3
Creating esp32 image...
Merged 25 ELF sections
Successfully created esp32 image.
=============================================================== [SUCCESS] Took 60.66 seconds ===============================================================
 *  Terminal will be reused by tasks, press any key to close it. 
Snowflake6 commented 1 year ago

Mine does look a little different... Here's the full compile:

 *  Executing task: platformio run 

Processing esp-wrover-kit (platform: espressif32; board: esp-wrover-kit; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp-wrover-kit.html
PLATFORM: Espressif 32 (4.2.0) > Espressif ESP-WROVER-KIT
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (ftdi) On-board (ftdi) External (cmsis-dap, 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 @ 2.0.5+sha.fd72cf4 
 - tool-esptoolpy @ 1.30300.0 (3.3.0) 
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ deep, Compatibility ~ soft
Found 39 compatible libraries
Scanning dependencies...
Dependency Graph
|-- TFT_eSPI @ 2.4.79
|   |-- SPI @ 2.0.0
|   |-- SPIFFS @ 2.0.0
|   |   |-- FS @ 2.0.0
|   |-- FS @ 2.0.0
|   |-- LittleFS @ 2.0.0
|   |   |-- FS @ 2.0.0
|-- ESP32 BLE Keyboard @ 0.2.2
|   |-- ESP32 BLE Arduino @ 2.0.0
|-- WebServer @ 2.0.0
|   |-- WiFi @ 2.0.0
|   |-- FS @ 2.0.0
|-- ESP32 BLE Arduino @ 2.0.0
|-- FT6236
|   |-- Wire @ 2.0.0
|-- FT6336U
|   |-- Wire @ 2.0.0
|-- ArduinoJson @ 6.17.2
|-- AsyncTCP @ 1.1.1
|-- ESP Async WebServer @ 1.2.3
|   |-- AsyncTCP @ 1.1.1
|   |-- FS @ 2.0.0
|   |-- WiFi @ 2.0.0
|-- ESPmDNS @ 2.0.0
|   |-- WiFi @ 2.0.0
|-- FS @ 2.0.0
|-- LittleFS @ 2.0.0
|   |-- FS @ 2.0.0
|-- Preferences @ 2.0.0
|-- SPIFFS @ 2.0.0
|   |-- FS @ 2.0.0
|-- WiFi @ 2.0.0
|-- Wire @ 2.0.0
Building in release mode
Replace MKSPIFFSTOOL with mklittlefs.exe
Compiling .pio/build/esp-wrover-kit/src/Action.cpp.o
Compiling .pio/build/esp-wrover-kit/src/ConfigHelper.cpp.o
Compiling .pio/build/esp-wrover-kit/src/ConfigLoad.cpp.o
Compiling .pio/build/esp-wrover-kit/src/DrawHelper.cpp.o
Compiling .pio/build/esp-wrover-kit/src/FreeTouchDeckWT32.cpp.o
Compiling .pio/build/esp-wrover-kit/src/SaveConfig.cpp.o
Compiling .pio/build/esp-wrover-kit/src/ScreenHelper.cpp.o
Compiling .pio/build/esp-wrover-kit/src/Touch.cpp.o
Compiling .pio/build/esp-wrover-kit/src/UserActions.cpp.o
Compiling .pio/build/esp-wrover-kit/src/Webserver.cpp.o
Generating partitions .pio/build/esp-wrover-kit/partitions.bin
Compiling .pio/build/esp-wrover-kit/lib206/SPI/SPI.cpp.o
Compiling .pio/build/esp-wrover-kit/lib826/FS/FS.cpp.o
Archiving .pio/build/esp-wrover-kit/lib206/libSPI.a
Indexing .pio/build/esp-wrover-kit/lib206/libSPI.a
Compiling .pio/build/esp-wrover-kit/lib826/FS/vfs_api.cpp.o
Compiling .pio/build/esp-wrover-kit/libfab/SPIFFS/SPIFFS.cpp.o
Archiving .pio/build/esp-wrover-kit/lib826/libFS.a
Indexing .pio/build/esp-wrover-kit/lib826/libFS.a
Compiling .pio/build/esp-wrover-kit/lib111/LittleFS/LittleFS.cpp.o
Compiling .pio/build/esp-wrover-kit/lib070/TFT_eSPI/TFT_eSPI.cpp.o
Archiving .pio/build/esp-wrover-kit/libfab/libSPIFFS.a
Indexing .pio/build/esp-wrover-kit/libfab/libSPIFFS.a
Compiling .pio/build/esp-wrover-kit/lib9e2/BLE/BLE2902.cpp.o
Archiving .pio/build/esp-wrover-kit/lib111/libLittleFS.a
Indexing .pio/build/esp-wrover-kit/lib111/libLittleFS.a
Compiling .pio/build/esp-wrover-kit/lib9e2/BLE/BLE2904.cpp.o
Compiling .pio/build/esp-wrover-kit/lib9e2/BLE/BLEAddress.cpp.o
Compiling .pio/build/esp-wrover-kit/lib9e2/BLE/BLEAdvertisedDevice.cpp.o
Compiling .pio/build/esp-wrover-kit/lib9e2/BLE/BLEAdvertising.cpp.o
Compiling .pio/build/esp-wrover-kit/lib9e2/BLE/BLEBeacon.cpp.o
Compiling .pio/build/esp-wrover-kit/lib9e2/BLE/BLECharacteristic.cpp.o
Compiling .pio/build/esp-wrover-kit/lib9e2/BLE/BLECharacteristicMap.cpp.o
Compiling .pio/build/esp-wrover-kit/lib9e2/BLE/BLEClient.cpp.o
Compiling .pio/build/esp-wrover-kit/lib9e2/BLE/BLEDescriptor.cpp.o
Compiling .pio/build/esp-wrover-kit/lib9e2/BLE/BLEDescriptorMap.cpp.o
Compiling .pio/build/esp-wrover-kit/lib9e2/BLE/BLEDevice.cpp.o
Compiling .pio/build/esp-wrover-kit/lib9e2/BLE/BLEEddystoneTLM.cpp.o
Compiling .pio/build/esp-wrover-kit/lib9e2/BLE/BLEEddystoneURL.cpp.o
Archiving .pio/build/esp-wrover-kit/lib070/libTFT_eSPI.a
Indexing .pio/build/esp-wrover-kit/lib070/libTFT_eSPI.a
Compiling .pio/build/esp-wrover-kit/lib9e2/BLE/BLEExceptions.cpp.o
Compiling .pio/build/esp-wrover-kit/lib9e2/BLE/BLEHIDDevice.cpp.o
Compiling .pio/build/esp-wrover-kit/lib9e2/BLE/BLERemoteCharacteristic.cpp.o
Compiling .pio/build/esp-wrover-kit/lib9e2/BLE/BLERemoteDescriptor.cpp.o
Compiling .pio/build/esp-wrover-kit/lib9e2/BLE/BLERemoteService.cpp.o
Compiling .pio/build/esp-wrover-kit/lib9e2/BLE/BLEScan.cpp.o
Compiling .pio/build/esp-wrover-kit/lib9e2/BLE/BLESecurity.cpp.o
Compiling .pio/build/esp-wrover-kit/lib9e2/BLE/BLEServer.cpp.o
Compiling .pio/build/esp-wrover-kit/lib9e2/BLE/BLEService.cpp.o
Compiling .pio/build/esp-wrover-kit/lib9e2/BLE/BLEServiceMap.cpp.o
Compiling .pio/build/esp-wrover-kit/lib9e2/BLE/BLEUUID.cpp.o
Compiling .pio/build/esp-wrover-kit/lib9e2/BLE/BLEUtils.cpp.o
Compiling .pio/build/esp-wrover-kit/lib9e2/BLE/BLEValue.cpp.o
Compiling .pio/build/esp-wrover-kit/lib9e2/BLE/FreeRTOS.cpp.o
Compiling .pio/build/esp-wrover-kit/lib9e2/BLE/GeneralUtils.cpp.o
Compiling .pio/build/esp-wrover-kit/lib1c5/ESP32-BLE-Keyboard-master/BleConnectionStatus.cpp.o
Compiling .pio/build/esp-wrover-kit/lib1c5/ESP32-BLE-Keyboard-master/BleKeyboard.cpp.o
Compiling .pio/build/esp-wrover-kit/lib1c5/ESP32-BLE-Keyboard-master/KeyboardOutputCallbacks.cpp.o
Compiling .pio/build/esp-wrover-kit/libefd/WiFi/WiFi.cpp.o
Archiving .pio/build/esp-wrover-kit/lib9e2/libBLE.a
Compiling .pio/build/esp-wrover-kit/libefd/WiFi/WiFiAP.cpp.o
Archiving .pio/build/esp-wrover-kit/lib1c5/libESP32-BLE-Keyboard-master.a
Indexing .pio/build/esp-wrover-kit/lib1c5/libESP32-BLE-Keyboard-master.a
Compiling .pio/build/esp-wrover-kit/libefd/WiFi/WiFiClient.cpp.o
Indexing .pio/build/esp-wrover-kit/lib9e2/libBLE.a
Compiling .pio/build/esp-wrover-kit/libefd/WiFi/WiFiGeneric.cpp.o
Compiling .pio/build/esp-wrover-kit/libefd/WiFi/WiFiMulti.cpp.o
Compiling .pio/build/esp-wrover-kit/libefd/WiFi/WiFiSTA.cpp.o
Compiling .pio/build/esp-wrover-kit/libefd/WiFi/WiFiScan.cpp.o
Compiling .pio/build/esp-wrover-kit/libefd/WiFi/WiFiServer.cpp.o
Compiling .pio/build/esp-wrover-kit/libefd/WiFi/WiFiUdp.cpp.o
Compiling .pio/build/esp-wrover-kit/libe8b/WebServer/Parsing.cpp.o
Compiling .pio/build/esp-wrover-kit/libe8b/WebServer/WebServer.cpp.o
Compiling .pio/build/esp-wrover-kit/libe8b/WebServer/detail/mimetable.cpp.o
Compiling .pio/build/esp-wrover-kit/lib151/Wire/Wire.cpp.o
Archiving .pio/build/esp-wrover-kit/libefd/libWiFi.a
Indexing .pio/build/esp-wrover-kit/libefd/libWiFi.a
Compiling .pio/build/esp-wrover-kit/lib259/FT6236/FT6236.cpp.o
Compiling .pio/build/esp-wrover-kit/lib5f9/FT6336U/FT6336U.cpp.o
Archiving .pio/build/esp-wrover-kit/libe8b/libWebServer.a
Archiving .pio/build/esp-wrover-kit/lib151/libWire.a
Indexing .pio/build/esp-wrover-kit/lib151/libWire.a
Indexing .pio/build/esp-wrover-kit/libe8b/libWebServer.a
Compiling .pio/build/esp-wrover-kit/libbbb/AsyncTCP-master/AsyncTCP.cpp.o
Archiving .pio/build/esp-wrover-kit/lib259/libFT6236.a
Indexing .pio/build/esp-wrover-kit/lib259/libFT6236.a
Compiling .pio/build/esp-wrover-kit/lib6ca/ESPAsyncWebServer-master/AsyncEventSource.cpp.o
Compiling .pio/build/esp-wrover-kit/lib6ca/ESPAsyncWebServer-master/AsyncWebSocket.cpp.o
Archiving .pio/build/esp-wrover-kit/lib5f9/libFT6336U.a
Indexing .pio/build/esp-wrover-kit/lib5f9/libFT6336U.a
Compiling .pio/build/esp-wrover-kit/lib6ca/ESPAsyncWebServer-master/SPIFFSEditor.cpp.o
Archiving .pio/build/esp-wrover-kit/libbbb/libAsyncTCP-master.a
Indexing .pio/build/esp-wrover-kit/libbbb/libAsyncTCP-master.a
Compiling .pio/build/esp-wrover-kit/lib6ca/ESPAsyncWebServer-master/WebAuthentication.cpp.o
Compiling .pio/build/esp-wrover-kit/lib6ca/ESPAsyncWebServer-master/WebHandlers.cpp.o
Compiling .pio/build/esp-wrover-kit/lib6ca/ESPAsyncWebServer-master/WebRequest.cpp.o
Compiling .pio/build/esp-wrover-kit/lib6ca/ESPAsyncWebServer-master/WebResponses.cpp.o
Compiling .pio/build/esp-wrover-kit/lib6ca/ESPAsyncWebServer-master/WebServer.cpp.o
Compiling .pio/build/esp-wrover-kit/lib0fe/ESPmDNS/ESPmDNS.cpp.o
Compiling .pio/build/esp-wrover-kit/lib097/Preferences/Preferences.cpp.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/Esp.cpp.o
Archiving .pio/build/esp-wrover-kit/lib0fe/libESPmDNS.a
Archiving .pio/build/esp-wrover-kit/lib6ca/libESPAsyncWebServer-master.a
Indexing .pio/build/esp-wrover-kit/lib0fe/libESPmDNS.a
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/FirmwareMSC.cpp.o
Indexing .pio/build/esp-wrover-kit/lib6ca/libESPAsyncWebServer-master.a
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/FunctionalInterrupt.cpp.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/HWCDC.cpp.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/HardwareSerial.cpp.o
Archiving .pio/build/esp-wrover-kit/lib097/libPreferences.a
Indexing .pio/build/esp-wrover-kit/lib097/libPreferences.a
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/IPAddress.cpp.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/IPv6Address.cpp.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/MD5Builder.cpp.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/Print.cpp.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/Stream.cpp.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/StreamString.cpp.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/Tone.cpp.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/USB.cpp.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/USBCDC.cpp.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/USBMSC.cpp.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/WMath.cpp.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/WString.cpp.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/base64.cpp.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/cbuf.cpp.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/esp32-hal-adc.c.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/esp32-hal-bt.c.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/esp32-hal-cpu.c.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/esp32-hal-dac.c.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/esp32-hal-gpio.c.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/esp32-hal-i2c-slave.c.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/esp32-hal-i2c.c.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/esp32-hal-ledc.c.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/esp32-hal-matrix.c.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/esp32-hal-misc.c.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/esp32-hal-psram.c.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/esp32-hal-rgb-led.c.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/esp32-hal-rmt.c.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/esp32-hal-sigmadelta.c.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/esp32-hal-spi.c.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/esp32-hal-time.c.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/esp32-hal-timer.c.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/esp32-hal-tinyusb.c.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/esp32-hal-touch.c.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/esp32-hal-uart.c.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/firmware_msc_fat.c.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/libb64/cdecode.c.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/libb64/cencode.c.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/main.cpp.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/stdlib_noniso.c.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/wiring_pulse.c.o
Compiling .pio/build/esp-wrover-kit/FrameworkArduino/wiring_shift.c.o
Archiving .pio/build/esp-wrover-kit/libFrameworkArduino.a
Indexing .pio/build/esp-wrover-kit/libFrameworkArduino.a
Linking .pio/build/esp-wrover-kit/firmware.elf
Retrieving maximum program size .pio/build/esp-wrover-kit/firmware.elf
Checking size .pio/build/esp-wrover-kit/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [===       ]  29.7% (used 97364 bytes from 327680 bytes)
Flash: [========  ]  82.3% (used 1725857 bytes from 2097152 bytes)
Building .pio/build/esp-wrover-kit/firmware.bin
esptool.py v3.3
Creating esp32 image...
Merged 25 ELF sections
Successfully created esp32 image.
Snowflake6 commented 1 year ago

Update: Progress.

Here at home, when it started up and went to the WiFi screen, it immediately failed and then created an access point, and it showed the IP 192.168.4.1 (much better, it was only showing 0.0.0.0 before). I think that the reason is the device is drawing more power than my serial ports could provide to run it. Here at home, i'm running it on a Raspberry Pi4 power supply, which can provide close to 3A. Most USB-A ports won't do that, and I was trying to run it from the little white USB-A cord that came with the unit.

I still had trouble connecting though. My Android phone wouldn't stay connected at all, as soon as it got a connection it would disconnect again and reconnect to one of my home networks. I had to use my desktop to connect and try setting the WiFi config. Once I did that, it connected fine: image

andrewfernie commented 1 year ago

Useful comments, thank you.

  1. I haven't seen the 0.0.0.0 IP problem, but have had issues downloading to the card unless I use specific cables so that could correspond with your suggestion about power. It always works with the short cable provided with the board, but tough to place the board anywhere convenient without an extension.
  2. I remember having problems connecting with my iPad a while ago. I have been using my desktop ever since and had forgotten about that problem. I will look into it.
  3. I am surprised about the differences in the libraries, particularly the "ESP Async WebServer" vs."WebServer". Was that intentional?

Provided you use your desktop to connect is the unit working as you expect?

Snowflake6 commented 1 year ago

Further:

  1. I found that it works with the USB hub/charger I have at the office (all with USB-A jacks) if it's the only thing plugged in. If anything else is sharing, no WiFi functionality. It fails connecting to the office network, and won't stay connected if I try connecting to it when it drops to Access Point mode. If I unplug everything else, it starts up, connects to office WiFi, and all is good.
  2. The android issue is apparently a known one, according to some searching i've been doing. There's apparently a setting in some OS builds that lets you toggle the "automatically switch to a better signal" thing, but not in all of them (and not in the current build i'm running (AICP 18.0 (Android 13)).
  3. Yeah, I noticed that as well. I didn't manually add anything, so I don't know why my Ubuntu based VSCode install wants to include that. I had one other issue that I didn't mention, version 2.0.4 of the Espressif32 libraries wouldn't flash my unit at all, and I had to revert to 2.0.3 by changing this line in platform.ini:
    platform_packages = framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.3

    Until I changed that I couldn't flash the code at all.

Finally, now that it's all working, everything seems to be fine with one exception: I seem to be getting spurious commands sent from the unit when it's sitting idle. I had my screen lock at one point, and have had characters sent while I was typing that I didn't expect to see. This is the only other input device connected to my laptop so it has to be the culprit... And I did see the key colour change when the screen locked so I know it had registered a press even though I hadn't touched it. Haven't been able to correlate it to a time or physical situation yet (like my hand waving over it or something).

andrewfernie commented 1 year ago

Thanks for the feedback. I have pushed a new version of my "work" branch to send a message to the console each time a button press is detected. You can enable these by changing

define LOG_MSG_DEBUG 0

to

define LOG_MSG_DEBUG 1

in FreeTouchDeckWT32.h

When testing this I found that defining TOUCH_CS in platformio.ini seems to stop any IO on the serial port, so disables the messages. I have commented that line out in platformio.ini.

andrewfernie commented 1 year ago

No comments for the last couple of months so closing as resolved. If the problem still exists please reopen.