Method
How each result was measured, and a tool that runs some of the tests on any MAKCU box.
Rig
Both boxes are wired like this on one PC, and tested one at a time.
+--------------------------------+
| PC: tests, usbmon |
+-------+-----------------+------+
| |
+-------+-------+ +-----+-----+
| STT hub | | MTT hub |
+---+-------+---+ +-----+-----+
| | |
USB1 USB2 emulator
clone control control
| | |
+---+-------+---+ |
| box | |
+-------+-------+ |
| USB3 |
+-------+-----------------+------+
| USB device emulator |
+--------------------------------+| Item | Detail |
|---|---|
| Firmware | Stock V4.122, Medius 3.5.0 |
| Real device | A USB device emulator on each box's USB3, presenting the same device and native reports to both |
| STT hub | A USB 2.0 hub with one transaction translator for all its ports, for both boxes' USB1 and USB2 |
| MTT hub | A USB 2.0 hub with a transaction translator per port, for the emulators' control ports and the native reference |
| Box not under test | Its emulator presents a silent mouse, or is the native reference |
| Native reference | The other box's emulator on the PC, presenting the same device, for every result compared with native |
| PC | Linux |
Rules
| Rule | Detail |
|---|---|
| Row | One condition, run on both boxes with the same test, settings, sample size and timing layer |
| Table | One quantity in one unit |
| Time | The median (p50), unless the table names another statistic |
| Range | Lowest to highest over the runs. The fainter part of a bar spans it |
| Count | A count of a total adds up the box's runs: 3, or 1 where stock runs a test once |
| Bar | Drawn to the largest value in its table, or in its row on the Overview |
| Result | The box ahead, worked out from the values. The box behind is dimmed |
| Faithful | If a test records native behaviour, the box that matches it is ahead |
| Equal | The outcomes match, or the gap between the two measures is within their noise. Each box's runs are pooled, weighing each run's sampling error and the spread between runs. A box leads only past Student's t for the runs' degrees of freedom: 2.78 standard errors with 3 runs a box, 4.30 where a box ran once and takes the other's spread between runs. A count of a total is equal where the two ranges overlap |
| Differs | The boxes behave differently. Neither is better, or no test shows which is faithful |
| Defect | A fault that reproduces, marked on its row and listed on the Overview |
Timing layers
| Layer | Detail |
|---|---|
| Wire | USB packets on the PC's bus, timed by the kernel's usbmon |
| evdev | Input events, timed by the kernel as the HID driver handles each report |
| hidraw | Each report byte for byte, timed when the reading program wakes |
| Host | The PC's clock, read by the test program when it writes a command, or when the clone connects or disconnects |
| Emulator | When the emulator queued each native report, on its clock. Its control link's packets on usbmon map that clock to the bus clock within ±95 µs |
Data
The results as JSON, all in one file or split by area, and the run files they were built from.
| File | Area |
|---|---|
| comparison.json | All |
| devices.json | Devices |
| passthrough.json | Passthrough |
| injection.json | Injected motion |
| control-link.json | Control link |
| input.json | Buttons, keys and locks |
| recovery.json | Recovery |
| features.json | Features |
| software.json | Software |
| Box | Run file |
|---|---|
| Stock | 20261103-122826.json |
| Stock | 20261103-175300.json |
| Medius | 20261114-102158.json |
| Native reference | 20261114-170508.json |
Comparison tool
medius-compare.pyz is the tool the published results come from. Without the USB device emulator, it runs the tests a still mouse or keyboard can drive, on any MAKCU box. Every other test is skipped and named in the run file with its reason.
- USB1This PC
- USB2This PC
- USB3Mouse/keyboard
| Item | Detail |
|---|---|
| PC | Linux, run as root |
| Python | 3.11 or newer |
| Packages | The medius package release made for the box's firmware, and pyserial, for the Python run as root |
A venv keeps them off the system Python:
python3 -m venv ~/medius-compare && ~/medius-compare/bin/pip install medius pyserialRun the tool
- On stock, find the box's control port with
ls /dev/serial/by-id/and run:
Leave outsudo ~/medius-compare/bin/python medius-compare.pyz run --box stock \ --port /dev/serial/by-id/usb-1a86_USB_Single_Serial_<serial>-if00 \ --usb-port <clone's USB port>--usb-portand it lists this PC's input devices by USB port. The clone is the one with the real device's VID:PID and name. - On Medius, the same with
--box mediusand no--usb-port(the box says what it cloned):sudo ~/medius-compare/bin/python medius-compare.pyz run --box medius \ --port /dev/serial/by-id/usb-1a86_USB_Single_Serial_<serial>-if00 - Each run writes
runs/<box>/<stamp>.json. Compare two:python3 medius-compare.pyz report <stock file> <Medius file>
While the tool runs, the clone is kept off the desktop, so nothing injected reaches the desktop. The tool puts the clone back at exit, Ctrl-C included. Leave the real device untouched: a leg refuses to start if it moved.
On stock, bad-input, buttons-keys, clump-probe, exit-recovery, keyboard, move-accept, stock-intake and typing-long can leave the box's parser one command behind until a power cycle (Control link). Each runs once on stock unless --stock-jam-runs asks for more. When one leaves the parser behind, the tool asks for both the box's cables to be unplugged for 3 s and plugged back in, and waits for Enter. A full run takes ~12-20 power cycles: our stock run needed 12 inside two of these tests, and each can need one more after it. To leave these out, name the tests to run with --test (repeat it for more).
Tool tests
| Test | Device | Sections |
|---|---|---|
adoption | None | Adoption Community |
bad-input | Mouse | Malformed input |
buttons-keys | Mouse | Buttons, modifiers and key rolls |
buttons-locks | Mouse | Native and injected presses Locks Program exit |
clump-probe | Mouse | Moves in one write |
exit-recovery | Mouse or keyboard | Program exit |
keyboard | Keyboard | Native and injected presses Clicks and typing timed by the box |
move-accept | Mouse | Paced moves, mouse still Paced moves, mouse moving Move size Clumped and back-to-back writes |
pc-restart | Mouse | PC restart |
stock-intake | Mouse | Moves in one write Fast paced moves |
typing-long | Keyboard | Typing 300 characters |
wire-rtt | Mouse | Query round trip |