Technology1 min read

Automating Wi-Fi setup testing on the ESP32

By · Published by Everything Blog

In short

The automated hardware-in-the-loop environment relies on physical USB connections linking an Android smartphone and the ESP32-C6 microcontroller directly to the Groundrun rig. Claude Code was granted access to the rig and operated toward defined objectives to generate the testing programs. The system rigorously evaluates five separate provisioning mechanisms, including Bluetooth Low Energy, Soft AP, Wi-Fi captive portals, SmartConfig (ESPTouch v2), and Wi-Fi Protected Setup. These workflows comprehensively verify varying credential transfer pathways, from encoded network broadcasts to router button presses.

Key points

  • The Claude Code tool can operate autonomously against physical hardware to construct end-…: The Claude Code tool can operate autonomously against physical hardware to construct end-to-end device onboarding procedures.
  • Groundrun enables robust automated verification across a diverse spectrum of wireless pro…: Groundrun enables robust automated verification across a diverse spectrum of wireless provisioning techniques used by connected products.
  • Automated testing reliably confirms distinct credential transfer mechanisms ranging from…: Automated testing reliably confirms distinct credential transfer mechanisms ranging from broadcast packet encoding to router push-button authentication.

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