Storey 01 / Firmware

Storey 01 / 05 / The Pagoda

Firmware

Firmware is the code closest to the hardware. It talks to chips, sensors and network cards directly, with a small operating system underneath or none at all.

At PA Consulting I am prototyping embedded C++ on Zephyr RTOS for medical devices, where every change has to stand up to regulation. On my internship there, a camera app's backend ran on a Raspberry Pi. At university I wrote a network intrusion detector in C for Linux.

Down here nothing tidies up after you. I learned to know where every byte lives, which thread can touch it and what happens when the program is stopped halfway.

The tower

Tools 5

  • CA multithreaded intrusion detector that reads raw network packets and flags SYN floods, ARP cache poisoning and visits to blacklisted sites.
  • C++Prototype firmware for medical devices, written to stand up to regulation.PA Consulting
  • Zephyr RTOSThe small real-time operating system under those medical device prototypes.PA Consulting
  • Raspberry PiThe board that ran the camera app's FastAPI backend, which signs each photo with C2PA as it is taken.PA Consulting
  • LinuxThe intrusion detector captures packets from a Linux network interface with libpcap, and is built with gcc and make.

Notes from this storey

Packets cannot wait

My intrusion detector had to keep reading packets while it checked them. So capture and checking run apart.