Naming Conventions
To ensure consistency across hardware documentation, software identifiers, protocol definitions, and API boundaries, the system relies on two distinct hardware entities with well-defined roles. Each entity has a canonical name.
Station
The Station is the central unit of the system. It houses the Raspberry Pi, the touch display, the show front and the glass placement area. It acts as the orchestrator of the entire machine by running the main application, hosting the UI, managing connected Pods, and coordinating dispensing sequences.
There is exactly one Station per machine.
-
Runs the host application (UI, recipe logic, and session management)
-
Maintains USB connections to all Pods
-
Sends dispensing commands and receives status updates and events from Pods
-
Owns the domain model (recipes, ingredients, and fill levels)
class Station { ... }; // top-level application context
StationConfig // configuration struct
StationStatus // runtime state
Pod
A Pod is a self-contained unit that dispenses ingredients. Each Pod holds up to 10 bottles (SYS-013) and contains the embedded controller, stepper motors, servos, valves, and load cells required to autonomously measure and dispense its ingredients.
A Pod exposes a USB CDC interface and communicates with the Station using the defined serial protocol.
A machine can contain one or more Pods, each identified by a unique PodId assigned when the Pod connects to the Station.
The Pod reports it as its name in DeviceInfoResponse.
The firmware derives that name from the controller’s unique ID, so it differs between Pods and stays the same across power cycles.
-
Controls its actuators (steppers, servos, and valves) on command
-
Reports weight measurements from its load cells
-
Keeps its load cell and dispenser calibration across power cycles
-
Responds to Station requests using the request-response protocol
-
Emits events, such as calibration completion or error conditions
class Pod { ... }; // represents one connected Pod
PodId // strong type for pod identity
PodStatus // runtime state
PodDescriptor // static metadata (capabilities, slot count)
Naming Rules
| Context | Station | Pod |
|---|---|---|
C++ class |
|
|
Configuration / types |
|
|
Protocol prefix |
|
|
Source files |
|
|
Log tag |
|
|
Compound names always place the entity name first.
-
StationManager -
PodDescriptor -
PodCalibrationState
Do not reverse the order:
-
ManagerStation -
DescriptorPod