Inspiration
A parcel keeps moving while its label is being read. If the label is ambiguous or the result misses the gate deadline, the operator needs a clear disposition and a way to see what happened. I built Conveyor Sorting Station to make that behavior explicit and testable.
What it does
The macOS station reads QR codes, barcodes, and printed text with Vision. A matching label can select Sort A or Sort B within that parcel's decision window. Unresolved parcels go to manual inspection with their photo, recognition result, and event history. The operator can save a hold or a final disposition and find it again by parcel ID. In gate-sensor mode, the station tracks whether the commanded lane was confirmed, timed out, or reported as a mismatch.
Where QNX fits
The C controller in station/controller.c runs on QNX 8.0.0 in an x86_64 QEMU target. It owns the monotonic clock, deadline checks, and one-time gate decisions. The Mac console runs the image recognition and keeps the inspection history in SQLite. In the connected deployment it sends commands to the QNX process over SSH and shows the controller's connection status.
I built the controller with QNX SDP 8.0 using qcc -Vgcc_ntox86_64 and generated the target with mkqnximage. The repository includes the QNX build and run walkthrough, the runnable demo-controller.sh scenario, and the recorded QNX output.
What I tested and learned
The QNX guest selected Sort B for an on-time prediction, kept a late parcel in manual inspection, and made one Sort A decision when it received the same gate signal twice. With the Mac console connected to QNX, a real sample QR image routed to Sort B and a conflicting-label image went to inspection. I saved a hold and found it again in history. The Mac integration suite passed all 13 tests. Gate signals in the demo are controlled test inputs.
Keeping the deadline on the controller made it possible to test the decision path independently of OCR and the operator interface. Recording the routing decision and the equipment acknowledgment separately also made missing or mismatched execution visible to the operator.