Relayed reports

Each box relayed mice and keyboards at several report rates, 15 s each, with every report numbered.

Mouse reports reaching the PC
MouseStockMediusResult
1 kHz mouseAll, once, in orderAll, once, in orderEqual
500 Hz mouseAll, once, in orderAll, once, in orderEqual
250 Hz mouseAll, once, in orderAll, once, in orderEqual
125 Hz mouseAll, once, in orderAll, once, in orderEqual
Mouse in bursts of 7 reportsAll, once, in orderAll, once, in orderEqual
500 Hz mouse for 2 minutesAll, once, in orderAll, once, in orderEqual
Keyboard reports reaching the PC
KeyboardStockMediusResult
1 kHz keyboardAll, once, in orderAll, once, in orderEqual
125 Hz keyboardAll, once, in orderAll, once, in orderEqual
Keyboard in bursts of 7 reportsAll, once, in orderAll, once, in orderEqual
500 Hz keyboardAll, once, in orderAll, once, in orderEqual
250 Hz keyboardAll, once, in orderAll, once, in orderEqual
Report bytes reaching the PC
DeviceStockMediusResult
1 kHz mouseUnchangedUnchangedEqual
500 Hz mouseUnchangedUnchangedEqual
250 Hz mouseUnchangedUnchangedEqual
125 Hz mouseUnchangedUnchangedEqual
Mouse in bursts of 7 reportsUnchangedUnchangedEqual
1 kHz keyboardUnchangedUnchangedEqual
125 Hz keyboardUnchangedUnchangedEqual
Keyboard in bursts of 7 reportsUnchangedUnchangedEqual

Report timing

The relay runs above, timed on the PC's USB bus.

Reports >10% early or late, in 15 s
MouseStockMediusResult
1 kHz mouse2-40-1Medius
500 Hz mouse65-690Medius
250 Hz mouse30Medius
125 Hz mouse0-30Equal
Gaps >1.5× the report interval, in 15 s
MouseStockMediusResult
1 kHz mouse00Equal
500 Hz mouse24-270Medius
250 Hz mouse00Equal
125 Hz mouse00Equal
Reports >10% early or late, in 2 minutes
MouseStockMediusResult
500 Hz mouse2902Medius
Gaps >1.5× the report interval, in 2 minutes
MouseStockMediusResult
500 Hz mouse1181Medius
Keyboard reports >10% early or late, in 15 s
KeyboardStockMediusResult
1 kHz keyboard1-32Equal
125 Hz keyboard00Equal
Keyboard reports >10% early or late, in 15 s
KeyboardStockMediusResult
500 Hz keyboard02Stock
250 Hz keyboard00Equal

Report latency

Each native report is timed from the emulator queuing it to the PC receiving the clone's copy. The emulator runs 1,000 ppm slow, so its reports land at every point between polls. Plugged straight into a PC, a native report waits half the native interval on average (4 ms for a 125 Hz mouse).

Report latency, p50
MouseStockMediusResult
1 kHz mouse1.43-1.53 ms1.05-1.06 msMedius
500 Hz mouse1.26-1.34 ms1.54-1.55 msStockStock defect
250 Hz mouse1.26 ms2.53-2.55 msStockStock defect
125 Hz mouseStock's clone declares 1 ms, the mouse 8 ms (see Poll interval)1.25-1.42 ms4.53-4.54 msStockStock defect
Report latency, p95
MouseStockMediusResult
1 kHz mouse2.09-3.69 ms1.51-1.52 msMedius
500 Hz mouse1.92-2.06 ms2.43-2.44 msStockStock defect
250 Hz mouse1.91-1.99 ms4.33-4.34 msStockStock defect
125 Hz mouse1.87-2.05 ms8.14 msStockStock defect
Report latency, p99
MouseStockMediusResult
1 kHz mouse2.23-4.17 ms1.55-2.16 msMedius
500 Hz mouse2.18-2.23 ms2.51-2.52 msStockStock defect
250 Hz mouse2.17-2.22 ms4.5 msStockStock defect
125 Hz mouse2.02-2.20 ms8.46 msStockStock defect
Report latency, fastest
MouseStockMediusResult
1 kHz mouse436-549 µs122-273 µsMedius
500 Hz mouse334-376 µs513-521 µsStockStock defect
250 Hz mouse345-348 µs533-540 µsStockStock defect
125 Hz mouse354-373 µs533-538 µsStockStock defect

Reads while injecting

The emulated mouse sends its next report only after the box reads the last one, so the count is how often the box read the mouse. Read every millisecond, a 1 kHz mouse gives 15,500 reports in 15.5 s and 5,500 in 5.5 s.

Reports read from a 1 kHz mouse in about 15.5 s

Stock km.moveMedius MOVE

LoadStockkm.moveMediusMOVEResult
Injecting 1,000 moves/s4,695-4,72715,573-15,586MediusStock defect
Reports read from a 1 kHz counting mouse in 15.5 s

Stock km.moveMedius MOVE

Moves sentStockkm.moveMediusMOVEResult
None15,50015,500Equal
1,000/s4,63415,500Medius
500/s5,76115,500Medius
125/s6,86715,499Medius
Reports read from a 1 kHz mouse moving at a varying speed, in 15.5 s

Stock km.moveMedius MOVE

Moves sentStockkm.moveMediusMOVEResult
1,000/s4,861-4,87015,498-15,500MediusStock defect
500/s6,661-6,76015,496-15,500Medius
125/s7,149-7,21315,500Medius
Reports read from a 1 kHz mouse in 15.5 s, injecting 1,000 moves/s

Stock km.moveMedius MOVE

MouseStockkm.moveMediusMOVEResult
Moving 1 count every report15,49515,500Medius
Moving 100 counts every report15,49515,500Medius
Moving 1 count, then -1, alternating15,49415,500Medius
Reports read from a 1 kHz mouse moving at a varying speed, in 5.5 s
Commands sentStockMediusResult
10 moves/s2,8875,500MediusStock defect
30 moves/s2,8205,500MediusStock defect
1,000 zero-count moves/s5,4975,500Medius
100 queries/s5,5005,500Equal

PC to real device

Requests and reports the PC sent the real device, through its clone.

What reaches the real device
PC sendsStockMediusResult
SET_PROTOCOL(boot)Passed onPassed onEqual
Endpoint halt, then clearPassed onPassed onEqual
Switch to alternate setting 1, then backPassed onPassed onEqual
Switch to configuration 2, then backClone reconnects insteadPassed onMediusStock defect
Keyboard LED reportPassed onPassed onEqual
20 HID output reportsPassed onPassed onEqual
Resets the real device gets
PC sendsStockMediusResult
One bus resetTwiceOnceDiffers
Hub port off for 1 sTwiceOnceDiffers
OUT packets reaching the real device
WritesStockMediusResult
1,000 packets on each endpoint in turnAll, once, in orderAll, once, in orderEqual
1,000 packets on 3 endpoints at onceAll, once, in orderAll, once, in orderEqual
100 packets on 3 endpoints, real device taking one every 5 msAll, once, in orderAll, once, in orderEqual
OUT packets taken per second, written at the PC's full rate
EndpointStockMediusResult
HID interrupt OUT, one endpoint at a time999.4/s999.4/sEqual
Vendor interrupt OUT, one endpoint at a time999.5/s999.6/sMedius
Vendor bulk OUT, one endpoint at a time5,747.4/s6,122.7/sMedius
HID interrupt OUT, all 3 at once987.2/s999.8/sMedius
Vendor interrupt OUT, all 3 at once882.6/s999.9/sMedius
Vendor bulk OUT, all 3 at once5,451.3/s5,192.5/sStock
OUT packets taken per second, real device taking one every 5 ms
EndpointStockMedius
HID interrupt OUT110.1/s153.5/s
Vendor interrupt OUT74.4/s153.5/s
Vendor bulk OUT237.9/s206.1/s

Boot protocol requests

The PC sends SET_PROTOCOL(boot) and SET_IDLE(0) to both HID interfaces of a gaming mouse, GET_PROTOCOL to both, reads the mouse for 0.5 s, then sends SET_PROTOCOL(report), as a host's HID driver sets up a boot device. 20 tries, each request given 1 s.

Tries with a request left unanswered
RequestsStockMediusResult
SET_PROTOCOL, SET_IDLE and GET_PROTOCOL to 2 interfaces7/200/20MediusStock defect
Reports from before the switch read after it, min to max
MouseStockMediusResult
Gaming mouse, read through usbfs8-103-4Medius

Real device to PC

A real device stalling its endpoint, one replying to polls with empty packets, and a vendor interface streaming a counter.

What reaches the PC
Native trafficStockMediusResult
A STALL on its interrupt endpointReaches the PCReaches the PCEqual
Empty packets on idle pollsReaches the PCReaches the PCEqual
Vendor stream at 1,000 packets/sReaches the PCReaches the PCEqual

Reads after a pause

The real device sends a counter every millisecond on 2 interrupt endpoints, and as fast as the bus takes it on a bulk endpoint. The PC reads in batches with pauses of 0-1,000 ms between them. Natively, a report the PC hasn't taken stays in the real device, and no counter value is skipped.

Counter values skipped
EndpointStockMediusResult
Vendor-page HID interrupt IN910MediusStock defect
Vendor interrupt IN910MediusStock defect
Vendor bulk IN00Equal
Bulk IN packets read per second, back to back
EndpointStockMediusResult
Vendor bulk IN, 64-byte packets4,594.7/s8,344.5/sMedius

Game pads

Three emulated pads, each moving its left stick through set values for 1.5 s.

Stick values on the PC
PadStockMediusResult
Xbox 360 pad (XInput)UnchangedUnchangedEqual
Xbox One pad (GIP)UnchangedUnchangedEqual
HID padUnchangedUnchangedEqual
PC output reaching the pad
PadStockMediusResult
Xbox 360 pad, LED commandReaches the padReaches the padEqual
Xbox One pad, start-up packetsReaches the padReaches the padEqual