ESP32 Wireless Module
11 minute read
The Cruiser Carrier Board includes a built-in ESP32 wireless module. Which module depends on the board revision:
| Board revision | Module | Wireless | Antenna connector (on the module) |
|---|---|---|---|
| Cruiser v1.0 | ESP32-C6-MINI-1U | WiFi 6 (802.11ax) 2.4 GHz, Bluetooth LE 5.3 | 3rd generation: MHF III |
| Cruiser v2.0 | ESP32-C5-MINI-1U-N4 | WiFi 6 (802.11ax) 2.4 GHz and 5 GHz dual-band, Bluetooth LE 6.0 | 4th generation: MHF IV (MHF 4) |
The antenna connector is part of the ESP32 module (ESP32-C6-MINI-1U on v1.0, ESP32-C5-MINI-1U on v2.0), not a separate connector on the carrier board. Espressif’s datasheets list Hirose W.FL-series and Amphenol AMMC equivalents for both generations, so choose a pigtail by generation (MHF III for v1.0, MHF IV / MHF 4 for v2.0) rather than by the W.FL or AMMC name.
Check the revision printed on the board’s silkscreen (“Cruiser Carrier Board v2.0” on a v2.0 board). Unless a section says otherwise, this page describes both revisions and the module is called “the ESP32”.
MHF 4 and MHF III do not intermate. A pigtail bought for a Cruiser v1.0 will not fit a Cruiser v2.0, and neither generation fits a standard U.FL / MHF1 pigtail. See External Antenna.
It can run one of two Exaviz firmware images:
- WiFi + Bluetooth firmware (factory default): WiFi 6 (802.11ax) and Bluetooth LE, alongside board control (PoE management) on both revisions. v1.0: 2.4 GHz, Bluetooth LE 5.3. v2.0: 2.4 GHz and 5 GHz, Bluetooth LE 6.0
- Zigbee firmware (optional, Cruiser v1.0 only) - the ESP32-C6 is the Zigbee radio for Home Assistant, alongside board control (PoE management). Exaviz Zigbee firmware is not yet available for Cruiser v2.0 (ESP32-C5). See the Zigbee page
On Cruiser v1.0, the ESP32-C6 has a single 2.4 GHz radio shared by WiFi, Bluetooth, and Zigbee, so they take turns on the air. WiFi and Bluetooth share it well, which is why the factory image runs both.
A Zigbee network is different: the radio has to listen continuously, and Espressif’s RF coexistence support matrix rates Zigbee alongside a WiFi access point as not supported, and alongside a WiFi client as supported but unstable. Keeping WiFi and Bluetooth off while Zigbee runs is our product decision, so Zigbee gets the whole radio.
You choose either the WiFi + Bluetooth firmware or the Zigbee firmware.
Boards ship with the WiFi + Bluetooth firmware. On Cruiser v1.0, switch to Zigbee with sudo exaviz-flash zigbee, and back with sudo exaviz-flash stock. See the Zigbee page. Cruiser v2.0 ships with the dual-band WiFi 6 + Bluetooth LE firmware and has no Zigbee firmware option.
External Antenna
The Cruiser’s ESP32 is the -MINI-1U variant (ESP32-C6-MINI-1U on v1.0, ESP32-C5-MINI-1U-N4 on v2.0), which uses an external antenna connector instead of an on-board PCB antenna. The board ships without an antenna - you supply your own. The connector generation differs between revisions, so first check which board you have.
Cruiser v1.0 (ESP32-C6): third-generation connector
Per the Espressif ESP32-C6-MINI-1U datasheet, the connector on the module is the third-generation miniature RF connector, commonly labeled W.FL / MHF3 / IPEX3. Buy a pigtail branded for this generation: Hirose W.FL, Amphenol AMMC, and I-PEX MHF III all mate to the same standard, and pigtails are commonly labeled MHF3. It is not the common U.FL / MHF1 (first generation, ~2.0 mm) found on many other modules.
A U.FL / MHF1 pigtail is physically larger and will not mate with this connector. Forcing one on can damage the connector or the module. Use a W.FL (MHF III) to RP-SMA pigtail (an AMMC-compatible pigtail also works), then attach a 2.4 GHz antenna.
Cruiser v2.0 (ESP32-C5): fourth-generation connector
Per the Espressif ESP32-C5-MINI-1U datasheet, the connector on the module is the fourth-generation miniature RF connector, the I-PEX MHF IV (MHF 4) connector (Espressif also lists Hirose W.FL-series and Amphenol AMMC equivalents). Search for and buy a pigtail labeled MHF4 or MHF IV. A pigtail labeled MHF III (or MHF3 / IPEX3) is the v1.0 third-generation part and will not fit.
If you already own a pigtail from a Cruiser v1.0 (W.FL / MHF III), it will not fit the Cruiser v2.0. A U.FL / MHF1 pigtail does not fit either. Do not force any connector onto the module.
One distributor-stocked option is the TE Connectivity Linx CSJ-RGFB-100-MHF4 (MHF4 plug to RP-SMA bulkhead jack, 100 mm, 50 ohm, 0.81 mm cable); the 200 mm version is CSJ-RGFB-200-MHF4. Both are carried by DigiKey and Mouser.
The v2.0 radio is dual-band, so pair the pigtail with an antenna that covers both 2.4 GHz and 5 GHz to use 5 GHz. A 2.4 GHz-only antenna works but gives up 5 GHz.
Choosing a Firmware
Because WiFi/Bluetooth and Zigbee live in separate firmware images, pick the one that matches your use case:
| Use case | Firmware | What you get |
|---|---|---|
| WiFi and/or Bluetooth on the ESP32 | WiFi + Bluetooth (default) | v1.0: WiFi 6 (2.4 GHz) + BLE 5.3, no Zigbee. v2.0: WiFi 6 (2.4 and 5 GHz) + BLE 6.0 |
| Zigbee coordinator for building sensors (Cruiser v1.0 only) | Zigbee | Zigbee, no ESP32 WiFi/BT |
On a Cruiser v1.0, flash the Zigbee firmware on the ESP32-C6 and use the CM5’s own built-in WiFi for network connectivity. The CM5 WiFi uses a separate radio, so there are no radio-coexistence concerns - the ESP32-C6 is dedicated entirely to Zigbee.
WiFi Setup
The ESP32 provides WiFi 6 (802.11ax) connectivity when running the WiFi + Bluetooth firmware (the factory default). The ESP32-C6 on a v1.0 board works at 2.4 GHz. The ESP32-C5 on a v2.0 board works at 2.4 GHz and 5 GHz. WiFi and Bluetooth are not available when a v1.0 module is running the Zigbee firmware - see Choosing a Firmware.
Note: For general WiFi setup instructions (including CM5 built-in WiFi), see the WiFi Setup section.
Service Access Point (SoftAP) Mode
This section describes the ESP32-C6 on Cruiser v1.0 boards, at 2.4 GHz. Running the ESP32-C6 as a WiFi access point is a beta feature added in exaviz-dkms 1.1.16. It uses the factory WiFi + Bluetooth firmware - there is no firmware reflash; the access-point capability is in the Linux driver, so you enable it with a package update:
sudo apt update
sudo apt full-upgrade # or: sudo apt install --only-upgrade exaviz-dkms
sudo reboot
The ESP32-C6 can serve a local 2.4 GHz service network (SoftAP) for commissioning and on-site maintenance, for example on a CM5 Lite with no on-board WiFi. It is meant for setup and service access, not as a client WiFi network.
The ESP32-C6 runs as an access point or as a WiFi client, not both simultaneously (a limitation of the underlying esp-hosted stack). In AP mode it does not also connect to another WiFi network.
1. Confirm AP support
After updating exaviz-dkms and rebooting, install the tools and check the radio:
sudo apt install -y iw hostapd dnsmasq
# find the ESP32-C6 wifi interface (driver esp32_sdio)
for p in /sys/class/ieee80211/*; do
[ "$(basename $(readlink -f $p/device/driver))" = esp32_sdio ] && \
echo "esp phy=$(basename $p) iface=$(ls $p/device/net)"
done
iw phy <that-phy> info | sed -n '/Supported interface modes/,/Band/p'
You should see * AP in the supported interface modes. If you only see * managed, the installed driver predates AP support - update exaviz-dkms to 1.1.16 or newer.
2. Configure hostapd
Assume the ESP32-C6 interface is wlan0 (use the name from step 1). Create /etc/hostapd/hostapd.conf:
interface=wlan0
driver=nl80211
ssid=MyCruiserAP
hw_mode=g
channel=6
auth_algs=1
wpa=2
wpa_passphrase=change-this-passphrase
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP
On Raspberry Pi OS / Trixie (NetworkManager), tell NetworkManager to leave the interface alone so it does not fight hostapd, then give it a static IP:
sudo nmcli device set wlan0 managed no
sudo ip addr add 192.168.50.1/24 dev wlan0
sudo ip link set wlan0 up
3. Hand out DHCP with dnsmasq
Create /etc/dnsmasq.d/cruiser-ap.conf:
interface=wlan0
bind-interfaces
dhcp-range=192.168.50.10,192.168.50.100,255.255.255.0,12h
dhcp-authoritative
# Empty router option: clients do not use the board as a default route
dhcp-option=3
4. Start it
sudo systemctl unmask hostapd
sudo systemctl enable --now hostapd dnsmasq
Verify with iw dev wlan0 info (should show type AP) and journalctl -u hostapd (should show AP-ENABLED). Connect a client to MyCruiserAP; it should associate and get a 192.168.50.x address. The service network is for reaching the Cruiser itself during setup and maintenance. It does not give connected devices internet access.
Antenna
Access-point operation needs the external antenna, the same as client mode - a W.FL / MHF III to RP-SMA pigtail with your own 2.4 GHz antenna.
Bluetooth LE
The ESP32 provides Bluetooth Low Energy when running the WiFi + Bluetooth firmware (the factory default): LE 5.3 on the ESP32-C6 (v1.0) and LE 6.0 on the ESP32-C5 (v2.0). Bluetooth is not available when a v1.0 module is running the Zigbee firmware - see Choosing a Firmware.
Checking Bluetooth Status
# View Bluetooth adapter
hciconfig
# Scan for devices
sudo hcitool lescan
Using bluetoothctl
bluetoothctl
# Inside bluetoothctl:
power on
agent on
scan on
# When device appears:
pair XX:XX:XX:XX:XX:XX
connect XX:XX:XX:XX:XX:XX
Zigbee Coordinator
Exaviz Zigbee firmware currently applies to Cruiser v1.0 (ESP32-C6). Cruiser v2.0 (ESP32-C5) ships with dual-band WiFi 6 + Bluetooth LE firmware and does not offer the Zigbee firmware.
With the Zigbee firmware, the ESP32-C6 is the Zigbee radio for Home Assistant, with no external USB dongle. A Zigbee server on the CM5 runs the network and Home Assistant’s ZHA integration connects to it with the Ziggurat radio type (Home Assistant 2026.7 or newer).
Install it with sudo exaviz-flash zigbee. The full setup, antenna requirements, pairing and
troubleshooting are on the Zigbee page.
Updating Exaviz Firmware
Exaviz publishes firmware for the ESP32 module: the factory WiFi + Bluetooth image (v1.0 and v2.0) and, for Cruiser v1.0 only, the Zigbee image. Install or switch them with sudo exaviz-flash, described in Updating Firmware.
Custom Firmware (Thread/Matter)
Thread and Matter are not supported by Exaviz firmware. The Exaviz firmware provides WiFi and Bluetooth (default image) or Zigbee (Zigbee image) only.
If you need Thread or Matter support on a Cruiser v1.0, you can install your own custom firmware on the ESP32-C6. The commands below are for v1.0 and the ESP32-C6. The GPIO Control and Flash Firmware with esptool sections below explain how to enter bootloader mode and flash firmware.
Disabling Firmware Encryption
On Cruiser v1.0, the ESP32-C6 firmware is encrypted by default. To install custom firmware, you may need to disable encryption first.
Contact support@exaviz.com for assistance with disabling ESP32 firmware encryption.
Installing custom firmware will disable Exaviz-provided features. If you flash custom firmware, Exaviz support may be limited to hardware-related issues only.
GPIO Control
The ESP32 is controlled via CM5 GPIO pins for reset and firmware updates. The pin mapping below is the same on Cruiser v1.0 and v2.0.
Install gpiod
sudo apt install gpiod
Pin Mapping
| GPIO | Function | Description |
|---|---|---|
| GPIO16 | EN (Enable) | Reset the ESP32 (active low) |
| GPIO17 | BOOT | Enter bootloader mode (active low) |
Reset the ESP32
gpioset gpiochip0 16=0 && sleep 0.5 && gpioset gpiochip0 16=1
Enter Boot Mode (Firmware Update)
To flash new firmware to the ESP32:
# Hold BOOT low
gpioset gpiochip0 17=0
# Reset while BOOT is held
gpioset gpiochip0 16=0
sleep 0.5
gpioset gpiochip0 16=1
# Release BOOT after reset
sleep 0.5
gpioset gpiochip0 17=1
The ESP32 is now in bootloader mode, ready for esptool.py or similar.
Flash Firmware with esptool
# Install esptool
pip install esptool
# Flash firmware (example, Cruiser v1.0 / ESP32-C6). The ESP32 bootloader UART is /dev/ttyAMA3
esptool.py --chip esp32c6 --port /dev/ttyAMA3 write_flash 0x0 firmware.bin
The ESP32 comes pre-flashed with the factory WiFi + Bluetooth firmware, which includes board control functions (PoE management, etc.) on both Cruiser v1.0 and v2.0. Only update firmware if specifically instructed by Exaviz support, if you are switching to the Zigbee firmware, or if you are installing custom firmware for unsupported protocols.
Troubleshooting
WiFi Not Working
If using CM5 built-in WiFi:
- See WiFi Setup
- Check
wlan0interface exists:ip link show wlan0 - Verify
wpa_supplicantconfiguration
If using ESP32 WiFi:
- Verify ESP32 is running the latest Exaviz firmware
- Check ESP32 status:
dmesg | grep esp - Reset the ESP32 if needed
- Ensure ESP32 isn’t stuck in boot mode (GPIO17 should be high)
- Confirm the module is running the WiFi + Bluetooth firmware, not the Zigbee firmware (see Choosing a Firmware)
Bluetooth Not Found
- Verify ESP32 is running the latest Exaviz firmware
- Check
hciconfigfor Bluetooth adapter - Reset the ESP32 if needed
- Ensure ESP32 isn’t stuck in boot mode (GPIO17 should be high)
Zigbee Coordinator Not Responding
- Confirm the ESP32 is running the Zigbee firmware - the factory WiFi + Bluetooth image has no Zigbee coordinator
- Confirm the Zigbee server is running:
systemctl status ziggurat - Confirm ZHA uses the Ziggurat radio type with the
ws://address the install printed - zigbee2mqtt and deCONZ are not supported - Reset the ESP32 if needed
ESP32 Unresponsive
If the ESP32 becomes completely unresponsive:
- Try a normal reset (GPIO16 toggle)
- If that fails, enter boot mode and reflash firmware
- Check CM5 GPIO pins are configured correctly
# Verify GPIO state
gpioget gpiochip0 16 17
# Should return: 1 1 (both high)
Resources
- ESP32-C6-MINI-1 / MINI-1U Datasheet: Cruiser v1.0, complete technical specifications from Espressif
- ESP32-C5-MINI-1 / MINI-1U Datasheet: Cruiser v2.0, complete technical specifications from Espressif
Last modified November 24, 2026