ESP32 Wireless Module

WiFi, Bluetooth, and Zigbee configuration for the Cruiser’s built-in ESP32 module: ESP32-C6 on v1.0 boards, ESP32-C5 on v2.0.

The Cruiser Carrier Board includes a built-in ESP32 wireless module. Which module depends on the board revision:

Board revisionModuleWirelessAntenna connector (on the module)
Cruiser v1.0ESP32-C6-MINI-1UWiFi 6 (802.11ax) 2.4 GHz, Bluetooth LE 5.33rd generation: MHF III
Cruiser v2.0ESP32-C5-MINI-1U-N4WiFi 6 (802.11ax) 2.4 GHz and 5 GHz dual-band, Bluetooth LE 6.04th 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”.

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

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.

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.

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 caseFirmwareWhat you get
WiFi and/or Bluetooth on the ESP32WiFi + 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)ZigbeeZigbee, no ESP32 WiFi/BT

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

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.

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

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)

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.

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

GPIOFunctionDescription
GPIO16EN (Enable)Reset the ESP32 (active low)
GPIO17BOOTEnter 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

Troubleshooting

WiFi Not Working

If using CM5 built-in WiFi:

  1. See WiFi Setup
  2. Check wlan0 interface exists: ip link show wlan0
  3. Verify wpa_supplicant configuration

If using ESP32 WiFi:

  1. Verify ESP32 is running the latest Exaviz firmware
  2. Check ESP32 status: dmesg | grep esp
  3. Reset the ESP32 if needed
  4. Ensure ESP32 isn’t stuck in boot mode (GPIO17 should be high)
  5. Confirm the module is running the WiFi + Bluetooth firmware, not the Zigbee firmware (see Choosing a Firmware)

Bluetooth Not Found

  1. Verify ESP32 is running the latest Exaviz firmware
  2. Check hciconfig for Bluetooth adapter
  3. Reset the ESP32 if needed
  4. Ensure ESP32 isn’t stuck in boot mode (GPIO17 should be high)

Zigbee Coordinator Not Responding

  1. Confirm the ESP32 is running the Zigbee firmware - the factory WiFi + Bluetooth image has no Zigbee coordinator
  2. Confirm the Zigbee server is running: systemctl status ziggurat
  3. Confirm ZHA uses the Ziggurat radio type with the ws:// address the install printed - zigbee2mqtt and deCONZ are not supported
  4. Reset the ESP32 if needed

ESP32 Unresponsive

If the ESP32 becomes completely unresponsive:

  1. Try a normal reset (GPIO16 toggle)
  2. If that fails, enter boot mode and reflash firmware
  3. Check CM5 GPIO pins are configured correctly
# Verify GPIO state
gpioget gpiochip0 16 17
# Should return: 1 1 (both high)

Resources

Last modified November 24, 2026