System Popups

Some events are too important to wait until you open the right screen. BotUI shows them as a popup or a short message on top of whatever is on the display. This page lists every one of them, what it means, and what to do.

Overview

PopupWhenBlocks the screen?
Low BatteryBattery voltage below 6 VYes, until ignored
Hardware ShutdownMotors or servos are latched offYes, until recovered
System mismatchBotUI does not match the installed systemYes, until acknowledged
Error from the robotA service reports an errorYes, until acknowledged
Ethernet cableA cable is plugged in or pulled outQuestion, answer it
Messages at the bottomResult of something you didNo

The two popups that could cover the screen of a running program, Low Battery and Hardware Shutdown, are not shown while a dynamic screen is open. The program owns the display then. They appear again when the program closes the screen.

Low Battery

Low Battery Battery voltage is 5.38V. The robot may restart at any time. Please switch the battery now.

It appears when the battery voltage drops below 6 V (a reading of 0 V, which means “no reading yet”, is ignored). The voltage in the text updates live.

ButtonDoes
IgnoreNeeds a second tap, the button then reads Confirm Ignore. This keeps a stray tap from hiding the warning. After that the popup stays away until BotUI restarts.
ShutdownPowers the robot off.

Swap the battery rather than ignoring the warning: the robot can restart in the middle of a run. The battery voltage is also shown at the top right of most screens and on the Dashboard .

Hardware Shutdown

The STM32 coprocessor can switch off all motors and/or servos on its own. Then the display shows one of two popups:

Hardware Watchdog Tripped: the robot’s safety watchdog did not get a heartbeat from the user program, so motors and servos were shut off.

Hardware Shutdown Active: the outputs were switched off on purpose (user-initiated shutdown, for example when raccoon run ends).

Both popups list the latched outputs (servos, motors or both) and have one button, Recover. It re-enables the outputs and re-arms the watchdog.

While the shutdown is active, commands from the motor and servo screens are acknowledged, but nothing moves. That is why the popup is shown, and why the screens ask before they open.

System mismatch

When BotUI starts, it checks two things against the bundle file /etc/raccoon-bundle.json:

  1. It was built for the same transport contract as the installed system.
  2. Its own version is the one the bundle names for botui.

If one of them is wrong, a popup System mismatch covers the screen. For a transport mismatch it lists the hash and transport version of BotUI and what the system expects. For a version mismatch or a broken bundle file it says what is wrong. In every case it ends with Please flash the latest Raccoon image.

Tap Acknowledge to continue. BotUI does not quit, it is the only screen on the robot. But the raccoon-server refuses to run programs until the mismatch is fixed.

Nothing is shown when everything matches, in dev mode (botui is dev in the bundle), or when BotUI does not run on a Raccoon device. Settings → Versions shows the bundle’s values. The result of the check is also written to /run/raccoon/botui.json, which raccoon doctor shows. Background: Transport contract .

Error Messages from the Robot

Services on the robot can send an error text over the transport (the errorMessages channel). BotUI shows it as a dialog titled Error with one button, Acknowledge. Use this for the cause when a program fails: for example the STM32 reader or the library report a hardware problem.

  • Only one error dialog is open at a time. If another error arrives while one is open, it is not shown (it still goes into the BotUI log). After you acknowledge, the next error opens its own dialog.

Ethernet Cable

The robot reports when a network cable is plugged in or pulled out, and BotUI asks what to do. It only reacts to a change: a cable that was already in when BotUI started does not ask, and neither does one that stays plugged in after you answered “Not now”.

Cable plugged in (and Ethernet mode is off):

Ethernet cable connected Do you want to switch to Ethernet Mode? Wi-Fi and the hotspot will be turned off.

Tap Switch to change the mode, or Not now.

Cable pulled out while in Ethernet mode: Wi-Fi is off in this mode, so the robot would be unreachable. The popup cannot be dismissed, you have to choose:

Ethernet cable unplugged Which mode do you want to switch to?

WiFi returns to Wi-Fi mode, Hotspot starts the robot’s hotspot. Nothing changes until you tap.

While the switch runs, a message “Switching to … Mode…” is shown. Switching can take more than ten seconds (for example while the robot waits for an IP address). The result follows as a success or error message. More about the modes: Settings → Network .

Messages at the Bottom

Results of actions (a Wi-Fi connection, “Start failed”, a saved hostname, “Resetting STM32…”) are shown as a small badge at the bottom of the screen. It fades in, stays for about three seconds (longer for some) and fades out. It is dark grey for information, green for success and red for errors. Only one badge shows at a time; a new one replaces the old.