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.

Responsibilities
  • 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)

Usage in code
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.

Responsibilities
  • 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

Usage in code
class Pod { ... };              // represents one connected Pod
PodId                           // strong type for pod identity
PodStatus                       // runtime state
PodDescriptor                   // static metadata (capabilities, slot count)

Relationship

The Station and its Pods
Figure 1. The Station and its Pods

How many Stations and Pods does a machine have, and which side starts the communication?

The Station maintains a registry of connected Pods. Each Pod is an independent device, while the Station is the sole initiator of communication.

Naming Rules

Context Station Pod

C++ class

Station

Pod

Configuration / types

StationConfig

PodConfig, PodId

Protocol prefix

station_

pod_

Source files

station.cpp, station.h

pod.cpp, pod.h

Log tag

[station]

[pod:<id>]

Compound names always place the entity name first.

Examples
  • StationManager

  • PodDescriptor

  • PodCalibrationState

Do not reverse the order:

  • ManagerStation

  • DescriptorPod