skip to content

Flashing and setup

The firmware of the satellite is written from a web page, the flasher, which each release of ambrogio-satellite-esp32-s3 publishes with its firmware at ambrogio.codefloe.page/ambrogio-satellite-esp32-s3. The firmware holds no network and no address: a satellite just written is not set up, and does not connect to Ambrogio until it has received them.

  • The satellite’s board, wired as Hardware and wiring shows.
  • A computer with a browser that has Web Serial, such as Chrome or Edge, and a USB-C data cable.
  • The name and the password of the Wi-Fi network the satellite joins, and the address of Ambrogio.

The XVF3800 needs its I2S master firmware at 48 kHz, respeaker_xvf3800_i2s_master_v1.0.9_48k.bin, from the Seeed repository. A board can come with an older I2S firmware or with the USB one; at boot the log of the satellite shows the version found, for example XVF3800 firmware 1.0.9. To write it, once:

  1. Clone the Seeed repository; a file saved from the GitHub page with “Save as” is corrupted.

  2. Connect a data cable to the USB-C port of the XMOS, the one next to the 3.5 mm jack.

  3. Enter safe mode: unplug the cable, hold BUT A (the Mute button), plug the cable in again and release the button when the red LED in the centre blinks. With the I2S firmware the XMOS is not seen on USB outside safe mode.

  4. Save the current firmware and write the new one to the Upgrade partition (-d 2886:001a selects the board when the computer has other DFU devices):

    Terminal window
    sudo dfu-util -d 2886:001a -a 1 -U xmos-upgrade-backup.bin
    sudo dfu-util -d 2886:001a -R -e -a 1 -D respeaker_xvf3800_i2s_master_v1.0.9_48k.bin

The Factory partition is not changed: if anything goes wrong, the board starts from it.

The flasher page: the choice of the board, between the reSpeaker XVF3800 with a Seeed XIAO ESP32-S3 and the same board with the GC9A01 round display, and the Connect button.

  1. Connect the USB-C port of the XIAO ESP32-S3 to the computer.
  2. Open the flasher page in Chrome or Edge on the computer. A browser without Web Serial shows a message instead of the button.
  3. Under Board, choose the variant: the reSpeaker XVF3800 with the Seeed XIAO ESP32-S3, or the same board with the GC9A01 round display.
  4. Press Connect, choose the serial port of the board, and install.

On a first install the flasher offers to erase the whole flash. An update writes only the parts of the firmware, and leaves the Wi-Fi network and the address of Ambrogio kept on the satellite in place.

  1. Wi-Fi: right after writing the firmware, the flasher page asks for the name and the password of the Wi-Fi network and sends them to the satellite over the same USB connection, with Improv Serial. The satellite joins the network and keeps them; if it cannot join it, it refuses them and keeps the ones it held.
  2. Address of Ambrogio: once on the network, the satellite gives the flasher page the address of its setup page, http://<address of the satellite>/setup. There, set the address of Ambrogio and, optionally, a name for the satellite; without a name, the satellite presents itself as ESP32 satellite followed by the last six hexadecimal digits of its MAC address. The satellite keeps the values and, when they changed, starts again with them.
  3. Preferences: on the page http://<address of the satellite>/preference, linked from the setup page, the loudspeaker volume, from 0 to 100 (70 by default), applied at once.

The address of Ambrogio is an http or https address with a host and an optional port, such as https://ambrogio.example.com. Over https, the satellite verifies the certificate of Ambrogio, which must come from a public certificate authority, such as the one Caddy obtains in the installation example; over http, the conversation travels unencrypted (see A voice satellite over http).

The values are kept on the satellite, and writing a new firmware leaves them in place; only erasing the whole flash removes them. Each step can be repeated at any time to change them. The network password is never written to the log or shown on the page.