6 Runtime View
This chapter shows how the parts of the machine act in time order in normal operation. Each scenario names the contracts from Contracts that its steps rely on, and lists what is still open. Faults have their own page, Fault Scenarios. For the software details, see the Station runtime view.
Switching On
The Operator switches the main switch on. The Station starts, finds its Pods and corrects the fill levels from the weights that the Pods report.
Which parts start in which order, and how does the Station find its Pods?
Contracts
-
IF-04, IF-04-R01: The main switch is the one labeled point that connects the machine to the mains, and the Power Grid supplies 230 V AC behind it.
-
IF-02: The Power Management Unit supplies the 5 V DC of the Station.
-
IF-03, IF-03-R04: The Power Management Unit supplies the 24 V DC of every Pod, and no actuator may move before the Station has started the Pod.
-
IF-01, IF-01-R04, IF-01-R09: The Station finds each Pod over its own USB CDC device, tells the Pods apart and uses only a Pod on its own protocol release.
-
IF-02-R03: The Station starts again from the state files on disk.
Open
-
What a Pod actuator does while the Pod starts, and who guarantees that none moves before the Station has started the Pod (IF-03-R04).
Details
-
Station runtime view, A Pod Connects: how the Station finds a Pod, and what happens to a Pod on another protocol release.
-
Station runtime view, A Pod Comes Back After a Power Loss: how the Station corrects the fill levels after the load cells took a new zero point.
-
Protocol page, communication patterns: the
DeviceInfoRequestandLoadCellWeightRequestexchanges. -
STA-006: once the Station is deployed with NixOS, the NixOS configuration will start the Station program after the boot.
A Drink End to End
A Guest orders a drink, and the Station plans it and sends each ingredient to the Pod that holds it. The ingredients flow through the Station fluid hub into the glass, and the Guest sees a success screen.
How does the order of a Guest become a drink in a glass, across the Station, the Pod and the fluid path?
Contracts
-
IF-01, IF-01-R08: The Station starts every dispense, and the Pod reports the amount that really came out.
-
IF-05, IF-05-R05: The ingredient flows from the bottle into the pump, the load cell weighs the bottle, and an empty bottle is noticed.
-
IF-06, IF-06-R05: The ingredient leaves the Pod through the Station fluid hub into the glass, and a pour should start only when a glass stands in place.
Open
-
How the machine knows that a glass stands in the glass placement area, and when the Guest places it (IF-06-R05).
-
The Station fluid hub is not designed, so the path from the dispenser outlet to the glass has no tubing, material or outlet position yet, and whether it merges all ingredients is open (IF-06-R02, IF-06-R03).
Details
-
Station runtime view, A Guest Mixes a Drink: the warning, the pour results and what the Station does with a pour that came up short.
-
Protocol page, request, acknowledgement and event: the
Dispenseexchange.
Refilling
An Operator tops up a bottle or replaces it, and tells the Station. The Station reads the weight again, and the fill level and the weighing carry on from the new weight.
How does the Station notice a refilled or replaced bottle, and what does the Operator have to do?
Contracts
-
IF-05, IF-05-R03, IF-05-R04: An Operator refills a bottle from the top while the Pod keeps weighing it, and replaces a bottle without tools.
-
IF-08, IF-08-R03: The Operator reaches every point that service needs with the Pod installed.
-
IF-01, IF-01-R09: The Station reads the weight of the right dispenser of the right Pod.
Open
-
How the Operator reaches the bottle, whether the Pod must be opened for it and whether the Pod must be at rest first (IF-05-R04, IF-08-R03, IF-08-R04).
-
What a bottle holder, a supply line and a changed bottle look like, because the bottle side of the line is not designed (IF-05-R04).
-
The Station does not notice an Operator who puts the wrong ingredient into a bottle (IF-05-R02).
Details
-
Station runtime view, A Bottle Runs Empty and Gets Refilled: the dialog during a drink, the Operator button behind the PIN and the rise of 50 g.
-
SYS-007: why the Station owns the fill level, and why a bottle refilled while the Station is off stays unnoticed.
Switching Off
The Operator switches the main switch off, and the machine loses all power at once. The state files on the Station stay whole, and the Pods keep their calibration.
What happens to the Station, the Pods and the stored state when the Operator switches the machine off?
Open
-
Whether the Station gets a warning or a short run-on time before the 5 V stops, so that it ends orderly (IF-02).
-
What happens to a drink that is running when the Operator switches off, which the fault scenario "power fails during a pour" covers (IF-03).
Details
-
Fault Scenarios: power fails during a pour.
-
Station runtime view, A Pod Comes Back After a Power Loss: what the Station corrects at the next start.
-
SYS-007: which calibration stays where.