Getting an ESP32 prototype to work on your desk is a first step. Before customers rely on it, the firmware—the software running on the device—also needs to handle everyday problems such as power cuts, lost Wi-Fi and failed updates. Those behaviors should be part of the development plan from the start.
We can help turn the prototype into that plan by reviewing the board, sensors, power supply and where the device will be used. A development kit is useful for early experiments. The final checks need to run on the hardware customers will receive, with the same installation steps and memory setup.
Check what happens outside the workshop
| Area | Decision to make | Example acceptance check |
|---|---|---|
| First-time setup (provisioning) | Who installs the device, how it gets its network details and how a new owner or Wi-Fi network is set up. | Install a new unit, enter a wrong password and try again. Check that saved passwords do not appear in diagnostic records. |
| Updates | Who approves an update, which devices try it first and how the device checks that the new software works. | Cut power during download and test a build that fails its first-boot checks. Verify the agreed recovery path. |
| Power and connection | Agree how often the device wakes, takes readings and tries to reconnect, based on its battery and sensors. | Measure power use while working and sleeping. Turn off the connection and check when the device retries and whether readings are kept. |
| Recovery and diagnostics | Choose what a remote operator can see, when to clear settings and how a technician can recover a device. | Start the device with incorrect settings, restore access, and check that troubleshooting records do not expose passwords or secret keys. |
| Handover and device test | Include the code for the agreed version, instructions for creating and installing it, and setup notes. Agree who tests each manufactured unit. | A second developer follows the instructions and produces working software that passes the agreed checks on a finished device. |
Example: a sensor loses power during an update
Consider a fictional warehouse sensor that sends a reading every five minutes and keeps recent readings during an outage. It needs two separate update tests. First, what happens if Wi-Fi disappears during the download? Second, what happens if the download finishes but the new software cannot read the sensor? A complete download does not prove the device will work.
ESP-IDF, Espressif’s development framework, supports rollback: returning to a previous working version if an update fails its checks. It must be enabled and the device’s memory layout must support it. Espressif’s update and rollback documentation explains the conditions. Your developer should verify them on the chosen hardware and agree who controls the keys that authorize updates before applying any irreversible security settings.
Choose a practical way to update devices
For three test units in one room, updating over a cable may be enough. If devices are spread across sites, remote updates may save site visits. Try each update on a small group first, set a clear rule for stopping if problems appear, and make it possible to see which software version each device runs.
Firmware development is separate from manufacturing the board, making factory test equipment and certifying the product. We can help clarify those responsibilities and the information needed from each supplier before development begins.
