Skip to content

Troubleshooting

brian-r-calder edited this page Sep 4, 2025 · 3 revisions

Introduction

Although the WIBL project started with the intent of being the minimum cost, minimum functionality system to capture volunteer bathymetric data, it has become a much more complex system than the minimum viable solution. Consequently, there are some complexities of the solution that we're learning as we go along. The intent here is to collect and (somewhat) organise them.

Known Issues

WiFi: Resetting the Entire Flash Memory

We've seen a couple of cases where there the WiFi will fail to allow clients to connect when started in Access Point mode. The symptoms are that the WiFi appears to come up (monitoring the serial output from the logger shows that all of the correct things have happened), but when clients attempt to connect they simply time out, and there is no indication on the serial output console log that they've even attempted to connect.

This suggests that there is something happening in a deeper level of the WiFi stack provided in the supporting libraries used by the system (either the Arduino components, or the hardware support from the HAL that Espressif provide). Interestingly, reflashing the system with new firmware and filesystem resets everything else but doesn't make this go away!

It appears likely that there is a cache somewhere of information that's being maintained by the underlying WiFi stack that maintains the password being used for the softAP, and it's being corrupted --- but not reset when you attempt to configure the softAP again. There is evidence in the documentation of the WiFi stack that this occurs, although there is no clear documentation of where this appears, and how it would survive re-flashing the system.

The only known solution for this situation, currently, is to entirely erase the flash memory for the logger, and start again. This can be done by using the "Erase Flash" project task in the PlatformIO menu (two options below the "Upload Filesystem Image" normally used to write the website filesystem to the logger). The logger needs to be in download mode for this to work.

WiFi: Limitations in Joining Other Networks

Although it is possible to configure the logger to join another WiFi network as a station by configuring the SSID and password required and setting the mode to "Station" in the configuration interface, there are apparently some SSIDs that the system doesn't like. Known problems are:

  • SSIDs with a space (e.g., "My iPhone")
  • SSIDs with punctuation (e.g., "Brian's iPhone")
  • Networks with passwords shorter than eight characters, or more than 64. This also affects softAP applications (bringing the logger up with its own access point), although there are checks for this in the setting interface to prevent it happening.

WiFi: Changed Configurations Need Reboot

Since the WiFi adaptor on the logger is only started once at boot time, any changes to the configuration (e.g., SSID name or password for AP or Station mode) will only take place once the logger has been rebooted. This can be done using the restart command on the serial interface or through the general command interface in the Firmware Website, or through the "Reboot" button on the main page of the logger's website.

Command Processor Versions Must Match

The command processor version compiled into SerialCommand.cpp is used in the JSON configuration strings to make sure that the configuration information being provided is something that the logger is likely to understand. The configurations are rejected if this isn't the case.

This means, among other things, that the boot configuration in the LoggerFirmware/src/boot_config.json and the version of this converted into C++ code in Configuration.cpp for ConfigJSON::SetStableConfig() need to match what's compiled into SerialCommand.cpp! The logger will otherwise mysteriously fail to boot ...

Clone this wiki locally