A safety guard for chemo pumps

InfuSafe watches a chemo infusion pump 1,000 times a second and stops it in milliseconds when something goes wrong.

Built on QNX 8.0 for the QNX Global Hackathon 2026, in the Robotics and Medical track.

Three ways a chemo line fails

Each one starts quietly. InfuSafe catches all three.

1

A kinked tube

The drug stops and pressure builds. InfuSafe sees pressure 300 mmHg over normal and stops the pump.

2

Air in the line

One bubble of 50 µL or more stops the pump.

3

A wrong number

500 typed instead of 50. Over the drug’s hard limit, the pump never starts.

It really happens

46 hours planned

about 2 hours delivered

4,500 mg of fluorouracil, meant for two days, went in within about two hours. The pump was set up wrong.

ISMP Medication Safety Alert, 18 June 2015

111,216FDA reports on infusion pumps in 2024 and 2025
53,486reports in 2025 alone
147 a dayon average, in 2025

FDA TPLC data, product code FRN. Reports, not confirmed injuries.

A late check is a wrong check

The check should run every millisecond. On normal Linux, it was sometimes 65 ms late.

Safety gets its own lane

On QNX the monitor runs at priority 50. Nothing slower can push it aside.

How InfuSafe is built A 1 ms kernel timer wakes the monitor at priority 50. It reads the pump sensors and checks the drug library, then stops the motor or sounds the alarm. Control at priority 10 and logging at priority 5 never delay it. Pump sensorsflow, pressure, airpriority 40 QNX kernel timer, pulse every 1 ms timer_create, MsgReceivePulse Monitor thread, priority 50safety rules and the drug librarynever prints, never waits Stop the motorwithin milliseconds Sound the alarm /dev/infusafecontrol, priority 10 Event loglogger, priority 5 How InfuSafe is built Kernel timerevery 1 ms Pump sensorsflow, air, pressure Monitor, priority 50checks every reading Stop the motor Sound the alarm /dev/infusafepriority 10 Event logpriority 5
  • Timer pulsesA kernel pulse every 1 ms wakes the monitor.
  • Fixed prioritiesMonitor 50, sensor 40, control 10, logger 5.
  • A resource managerThe pump is the file /dev/infusafe.
  • Its own boot imageBuilt with mkifs, boots in QEMU.

Watch it catch a blocked line

Real output from QNX 8.0. The pump is simulated, so every fault can be injected on command.

  1. # infusafe -d chemo-a -r 500 -v 200rate is over the hard limit for this drug
  2. # infusafe -d chemo-a -r 50 -v 200 &ok, pump running
  3. # echo "inject occlusion" > /dev/infusafeSTOP occlusion, stopped in 9.179 ms
  4. # echo "inject air" > /dev/infusafeSTOP air bubble, stopped in 2.801 ms

100 out of 100 faults caught

Each fault injected 20 times on QNX 8.0 in QEMU. Average time to stop:

Air bubble3.1 ms20/20
Sensor goes silent4.4 ms20/20
Blocked line9.7 ms20/20
Free flow, waits 50 ms on purpose51.8 ms20/20
Empty bag, alarm< 0.01 ms20/20

The 3 minute demo

The problem, the gap, and InfuSafe running live on QNX 8.0.

Build it and run the 30 tests

The safety rules build on any Linux machine. The full system needs QNX SDP 8.0.

Open the repository
git clone https://github.com/KushagraRishi/infusafe-qnx
cd infusafe-qnx
make test
make && ./build/infusafe -b 20