Chapter 01
System architecture
The app never talks to the locks directly. Every request goes through the backend, which checks that the customer owns the compartment before it sends a signed command to the cabinet.
How the pieces fit
- Customer app and admin console talk to the backend over HTTPS only.
- The backend authenticates the user, checks that the compartment is theirs and signs a short-lived command.
- The MQTT broker relays signed commands to the cabinet over TLS. The cabinet keeps one outbound connection to it, so no port is opened on the site network.
- The Raspberry Pi controller in the cabinet verifies each command, then drives the lock boards through a USB to RS485 converter.
- Three lock control boards share one RS485 bus. Each board drives up to 48 locks and reads their door sensors.
The following chapters detail each layer: the wiring and signal path, the software and message formats, and the security model.