Aller au contenu

Preparing Anchors

Ce contenu n’est pas encore disponible dans votre langue.

  1. Download Arduino IDE 2.x
  2. Open Arduino IDE
  3. File > Preferences: add to “Additional Board Manager URLs”:
    https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
  4. Tools > Board > Board Manager: search “esp32”, install esp32 by Espressif
  5. Tools > Manage Libraries: install:
    • WiFiManager by tzapu
    • Adafruit SSD1306
    • Adafruit GFX Library
    • Adafruit BusIO
  1. Open firmware/topos_anchor/topos_anchor.ino in Arduino IDE
  2. Edit line 23 for the anchor number:
    #define UWB_INDEX 0 // 0 for A0, 1 for A1, 2 for A2
  3. Tools > Board: select ESP32S3 Dev Module
  4. Tools > Port: select the USB port (e.g. /dev/cu.wchusbserial10)
  5. Click Upload
  6. Wait for flash to complete (~30s)

On first boot after flashing:

  1. The OLED display shows WiFi: configuring...
  2. On a phone, connect to the WiFi network topos-A0 (or A1, A2)
  3. A captive portal opens automatically
  4. Enter:
    • SSID: the venue’s WiFi network name
    • Password: the WiFi password
    • Topos server IP: the IP address of the Mac/PC running Topos (e.g. 192.168.1.42)
  5. Click Save
  6. The anchor reboots and connects to WiFi

The anchor remembers one WiFi network. When you move to another venue, make it forget the old one — two ways:

With the button, no computer. The board has two buttons next to the OLED, RST and FLASH. Press RST twice within 10 seconds. The OLED shows DOUBLE RESET, the anchor wipes its stored WiFi and config, and reopens the topos-AX portal as on first boot. Then redo the steps above. (A single press of RST is a normal reboot and changes nothing.)

From the anchor’s web page. While the anchor is still on the old network, read its IP on the OLED and open http://<anchor-ip>/ from any device on the same LAN. The page shows the anchor ID, SSID, IP and current Topos destination. Two actions:

  • save — change the Topos server IP without rebooting (takes effect on the next packet).
  • forget wifi & reboot — wipes the WiFi credentials and restarts into the portal.

Either way, the Topos server IP is asked again in the portal: it usually changes with the venue too.

MaUWB ESP32-S3 module seen from above: the RST button, bottom left next to the OLED, is the network reset 7. The OLED display shows the assigned IP and the Topos server IP

Changing venues: if the saved WiFi is not available, the anchor automatically reopens the configuration portal after 2 minutes.

Flash 3 anchors with UWB_INDEX = 0, 1, 2. Configure WiFi for each.

topos.red — Real-time · Environment · Distance[email protected] · Code MIT · Matériel CERN-OHL-P · Docs CC BY-SA