Meet the sender and receiver
Send a training Wi-Fi configuration by radio, read what each checkpoint proves, and keep a USB way back.

ESP32-S3-N16R8 board
Runs the receiver firmware.

USB data cable
Flashes firmware and carries console messages.
Computer
Builds the app; watches the USB console.
Android phone
Runs the classic EspTouch sender.
Training Wi-Fi router
Provides a visible 2.4 GHz WPA2-Personal network.
Know how to identify the current serial port and save your MicroPython project files. Use a computer with Python 3 for the offline exercise.
The live exercise uses the supplied ESP-IDF receiver project and Espressif’s Android sender. If you cannot install these yet, complete the offline status exercise on page 9 first.
Follow the two paths
SmartConfig lets a receiver learn network settings from a nearby sender’s Wi-Fi packet pattern. The phone is already on the target router. The board is not joining a temporary setup network in this route.
A merged 2.4/5 GHz network name can hide which band the phone chose. Select a separate training 2.4 GHz network or have the router administrator help. Do not change an unfamiliar shared router.
Build the receiver app
- Save your MicroPython files and private configuration to the computer before changing firmware. For the file backup and return path, use ML-C09 and ML-C10.
- Install ESP-IDF v5.5.2 for Windows, including the ESP32-S3 tools. Open its ESP-IDF PowerShell shortcut.
- Copy this course’s examples/receiver folder to
%USERPROFILE%\MoloLab\ml-c13\receiver. Keep itsmainfolder, CMake files, defaults and partitions file together.
Set-Location "$env:USERPROFILE\MoloLab\ml-c13\receiver" idf.py --version idf.py set-target esp32s3 idf.py build
Look for: version 5.5.2, target esp32s3, and a successful build. The supplied defaults select a 16 MB flash, a 2 MB app partition, native USB Serial/JTAG console, and quiet logs. This app does not use PSRAM.
smartconfig() call in this workflow.Connect, flash, observe
- Connect one USB data cable from the computer to the front-left USB socket.
- If the loader is needed: hold BOOT, press and release RST, then release BOOT. Identify the current download port.
- Close other serial tools. Replace
COM7below with that current port.
idf.py -p COM7 flash monitor
Look for: flash completion, then LAB READY_CLASSIC_ESPTOUCH_C_TO_CLEAR and, when no saved configuration works, LAB LISTEN_CLASSIC_90S.
idf.py -p NEW_PORT monitor. Press RST with BOOT released to start normally.idf.py flash writes the project’s bootloader, partition table and app at the generated offsets. Do not write an application-only image at the MicroPython merged-image offset. Keep these instructions with this receiver project.
Match the phone sender
- Install Espressif’s Android EspTouch app release 2.4.0 from its official project, subject to your phone’s installation policy. If installation is unavailable, use page 9.
- Keep the phone on the target 2.4 GHz training network. Allow the OS permissions the app needs to read Wi-Fi details. Stop if it cannot identify the intended network.
- Select EspTouch, the classic menu item. Do not choose EspTouch V2. Enter the training password privately and check the selected network.
- With the console visible, press RST normally. Start the sender after
LISTEN_CLASSIC_90S. Follow the classic app’s send action. Keep the phone nearby and watch both results.
The drawing compares protocol choices; it is not a phone screenshot. An app’s release number and the protocol’s “V2” name are different things.
Read three checkpoints
STA means the board acts as a station joining a router. IP address means a network address assigned to that station. In this app, LINK_UP requires the station “got IP” event with a nonzero address.
LAB RECEIVED_NOT_CONNECTED LAB LINK_UP LAB SAVED_NVS LAB ACK_SENT_CHECK_PHONE LAB COMPLETE_VERIFY_RESTART LAB LISTENER_STOPPED
This is a sample successful trace; ACK timing can vary. A received candidate may still have a wrong password. A station IP does not prove Internet or cloud access. An ACK sent by the receiver does not prove that the phone displayed it.
LINK_UP and SAVED_NVS but the phone reports no result, keep that partial outcome: check the phone path and verify restart. Do not label it “nothing received.”Give every attempt an end
The supplied app accepts the first valid classic candidate in a window. It makes one station connection attempt and stops the listener when IP plus saving plus ACK are observed, or when the application’s 90-second deadline ends.
SCAN_DONE and CHANNEL_FOUND only describe receiver progress. TIMEOUT_NO_LINK_RESTART_TO_RETRY means no current station link at the end. Fix one likely cause before a new attempt. If a second controlled attempt fails, use USB to collect the last redacted checkpoint and get help.
Verify saving; clear narrowly
Stop the phone sender. Press RST with BOOT released. A saved configuration is tried for at most 15 seconds; STORED_LINK_UP shows this app joined without receiving the settings again. A failed saved join opens one new 90-second setup window.
To forget this lab configuration, type c in the IDF monitor; press Enter if your terminal buffers input. LAB_KEY_CLEARED_RESTART removes only ml_c13/wifi and restarts. The next boot should listen, rather than report STORED_JOIN_15S.
STORAGE_ERROR_GET_HELP means stop and get help; the clear input is not running in that state. The NVS data is not encrypted by this project. Clearing a key is not secure erasure. Other app data and private backups stay separate. To return to MicroPython, exit the monitor and follow ML-C10, then restore your saved project; this IDF app has no Python REPL.Practice without a radio
Open a computer terminal in this course’s examples folder. These commands use only included sample states; they do not open a port, send a password or test a board.
python trace_lab.py scan-only python trace_lab.py receipt-only python trace_lab.py ack-missing python trace_lab.py complete
- Which case received settings but never proved a station IP?
- Which case saved a network but still needs a phone-result check?
- Does the “complete” case prove Internet access or that a restart has succeeded?
Success: explain what the last checkpoint proves and choose one useful next action. Keep the output labeled offline_simulation: true; it is practice, not a device result.
Run a clean final attempt
- I saved my previous project before installing this firmware.
- I can identify USB at front left, RST above BOOT, and the current serial port.
- Phone and receiver both use classic EspTouch, with a 2.4 GHz training router.
- I distinguish RECEIVED from LINK_UP, SAVED_NVS and ACK_SENT.
- I stop at a finite result and check the phone separately.
- With the sender stopped, a normal restart shows STORED_LINK_UP.
- I can use USB and clear only the application’s saved key.
Take away: keep a short redacted record of the protocol, band, last checkpoint, timeout and next action. Do not include the network password, raw credentials, private screenshots or unrestricted logs.
Files for this lesson
Practice files
Keep the folder names shown below when saving files. Use these files with the matching steps in this lesson.
Keep your reference
Keep the lesson beside your practice.
Download the PDF to keep the diagrams, commands, and checkpoints close at hand. Return to the first missing observation when a step does not match.
