PadisController: access control on embedded boards

PadisController is the access control product of PADIS. It runs on a small board next to the doors, decides each access and opens the door. I am its main developer (1,000+ commits).

2024 – 2026 · Project at PADIS

At a glance

ProductPadisController, the access control product of PADIS
My roleMain developer (1,000+ commits)
BoardsRaspberry Pi, Orange Pi, Rockchip (Debian or Buildroot)
I/O boardSix relays, four Wiegand ports, RS485, OSDP, CAN, LAN and USB
CardsRFID and Wiegand readers at the entry and the exit
Access rulesAccess groups, anti-passback, interlock, multi-person verification, time and passage limits
CalendarsShamsi, Gregorian and Qamari
ServerReal-time events over gRPC streaming; a queue when the network is down
PanelEnglish and Persian web panel; REST API
LicenseHardware-bound Ed25519 license

What it does

PadisController runs on a Raspberry Pi, Orange Pi or Rockchip board (Debian or Buildroot). It talks to an I/O board over a serial protocol with CRC16 and acknowledgements. It reads RFID and Wiegand cards at the entry and the exit, decides if the person can pass, and drives the door relays. It sends each event to a central server in real time.

Access rules

  • Access groups
  • Shamsi, Gregorian and Qamari calendars
  • Anti-passback: a card cannot enter two times without an exit
  • Interlock: a door opens only when the other door is closed
  • Multi-person verification
  • Time and passage limits

Sensors, scenarios and emergencies

It reads door contacts, exit buttons and fire and smoke sensors. A scenario engine reacts to these inputs. Emergency modes have a priority order: fire, smoke, lockdown.

Panel, server and license

  • A bilingual English and Persian web panel, and a REST API for remote configuration.
  • Real-time event sync to the central server over gRPC streaming. If the network is down, the events wait in a queue.
  • An audit log of all events.
  • A hardware-bound Ed25519 license.

Engineering

Built with Clean Architecture and tested with pytest.

Python · Embedded Linux · Serial protocol · gRPC · Flask · SQLAlchemy