Technology1 min read

Automating Wi-Fi setup testing on the ESP32

By · Published by Everything Blog

In short

The automated setup assesses five distinct Wi-Fi commissioning methods available to the ESP32 family, including Bluetooth Low Energy, Soft AP networks, and captive portals that run without a companion application. It also verifies Espressif's proprietary SmartConfig broadcast protocol alongside the standard Wi-Fi Protected Setup router push-button mechanism. The artificial intelligence tool Claude was deployed to write the test firmware for the microcontrollers as well as a companion smartphone application. Operating against defined stopping conditions and targets, Claude Code communicates straight to the test rig to run and confirm onboarding user flows.

Key points

  • Automated hardware-in-the-loop validation protects the critical customer onboarding exper…: Automated hardware-in-the-loop validation protects the critical customer onboarding experience from breaking during product updates.
  • Captive portal onboarding provides a pathway for device setup without requiring users to…: Captive portal onboarding provides a pathway for device setup without requiring users to download an external smartphone application.
  • Claude Code autonomously executes end-to-end user flows by interfacing directly with the…: Claude Code autonomously executes end-to-end user flows by interfacing directly with the test rig according to predefined stopping conditions.

Sources checked by our analysis pipeline: 1

The first thing a customer does with a new Wi-Fi-enabled connected product is complete the Wi-Fi setup, so it has to be reliable and work every time, no matter what else changes in the product.

This is something we can do with the Groundrun system. Let's set it up.

Setting It Up

First we need to get the hardware in the loop, the same way we did for testing an over-the-air (OTA) update on the ESP32. We used an ESP32-C6 devboard from Espressif for this test. With Groundrun, getting it into the loop is easy: we just do this:

- Connect the ESP32-C6 board via USB to the Groundrun rig.

- Connect an Android phone via USB to the same Groundrun rig.

And that's it.

Wi-Fi Commissioning

There are several ways to set up a Wi-Fi network on a connected device, and the ESP32 family supports a range of them:

- Bluetooth. The phone pairs with the board over Bluetooth Low Energy and sends it the network name and password directly.

- Soft AP. The board starts its own temporary…

Technology