Relayed reports

Each box relayed mice and keyboards at several report rates, 15 s each, with every report numbered. A 500 Hz mouse was also relayed for 2 minutes.

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 runs above, timed on the PC's USB bus. Each report is placed on the poll that carried it, and counts as early or late only when it moved by a whole poll. The PC's timestamp jitter doesn't count.

Mouse reports a poll early or late, in 15 s
MouseStockMediusResult
1 kHz mouse00Equal
500 Hz mouse0-330Equal
250 Hz mouse0-20Equal
125 Hz mouse0-20Equal
Gaps >1.5× the report interval, in 15 s
MouseStockMediusResult
1 kHz mouse00-12Equal
500 Hz mouse0-270Equal
250 Hz mouse00Equal
125 Hz mouse00Equal
Mouse reports a poll early or late, in 2 minutes
MouseStockMediusResult
500 Hz mouse139-1870Medius
Gaps >1.5× the report interval, in 2 minutes
MouseStockMediusResult
500 Hz mouse112-1390-6Medius
Keyboard reports a poll early or late, in 15 s
KeyboardStockMediusResult
1 kHz keyboard00Equal
125 Hz keyboard00Equal
Keyboard reports a poll early or late, in 15 s
KeyboardStockMediusResult
500 Hz keyboard00Equal
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. Natively, a report waits half the poll interval on average (4 ms for a 125 Hz mouse).

Report latency, p50
MouseStockMediusResult
1 kHz mouse1.32-1.40 ms1.03-1.07 msMedius
500 Hz mouse1.28-1.43 ms1.51-1.58 msStockStock defect
250 Hz mouse1.26-1.39 ms2.52-2.56 msStockStock defect
125 Hz mouseStock's clone declares 1 ms, the mouse 8 ms (see Poll interval)1.34-1.41 ms4.45-4.49 msStockStock defect
Report latency, p95
MouseStockMediusResult
1 kHz mouse1.98-2.08 ms1.49-1.50 msMedius
500 Hz mouse2.05 ms2.41-2.48 msStockStock defect
250 Hz mouse1.93-2.05 ms4.33-4.35 msStockStock defect
125 Hz mouse2.03-2.06 ms8.00-8.15 msStockStock defect
Report latency, p99
MouseStockMediusResult
1 kHz mouse2.21-2.39 ms1.53-1.71 msMedius
500 Hz mouse2.21-2.22 ms2.49-2.75 msStockStock defect
250 Hz mouse2.21-2.22 ms4.49-4.50 msStockStock defect
125 Hz mouse2.18-2.23 ms8.42-8.46 msStockStock defect
Report latency, fastest
MouseStockMediusResult
1 kHz mouse413-530 µs387-529 µsEqual
500 Hz mouse342-358 µs500-532 µsStockStock defect
250 Hz mouse345-361 µs509-533 µsStockStock defect
125 Hz mouse358-530 µs512-544 µsEqualStock 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 ~15.5 s

Stock km.moveMedius MOVE

LoadStockkm.moveMediusMOVEResult
Injecting 1,000 moves/s4,706-4,71915,553-16,051MediusStock 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,633-4,63715,500Medius
500/s5,158-6,23515,499-15,500Medius
125/s6,595-6,95015,499-15,500Medius
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,863-4,86915,500MediusStock defect
500/s6,667-6,76115,500Medius
125/s7,092-7,21215,499-15,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,493-15,49815,500Equal
Moving 100 counts every report15,493-15,49515,497-15,501Medius
Moving 1 count, then -1, alternating15,494-15,49815,500Medius
Reports read from a 1 kHz mouse moving at a varying speed, in 5.5 s
Commands sentStockMediusResult
10 moves/s2,962-3,0355,500MediusStock defect
30 moves/s2,769-2,8105,499-5,500MediusStock defect
1,000 zero-count moves/s5,492-5,4945,500Medius
100 queries/s5,5005,499-5,500Equal

PC to real device

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

PC traffic reaching 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, written at the PC's full rate
EndpointStockMediusResult
HID interrupt OUT, one endpoint at a time999.7-999.8/s999.3-1,000.4/sEqual
Vendor interrupt OUT, one endpoint at a time999.5-1,000.4/s999.3-1,000.0/sEqual
Vendor bulk OUT, one endpoint at a time5,646.9-5,661.8/s9,050.7-10,791.0/sMedius
HID interrupt OUT, all 3 at once906.4-978.7/s995.4-999.9/sMedius
Vendor interrupt OUT, all 3 at once860.1-873.2/s993.7-1,000.1/sMedius
Vendor bulk OUT, all 3 at once5,466.3-5,577.7/s9,095.4-9,132.6/sMedius
OUT packets taken, real device taking one every 5 ms
EndpointStockMediusResult
HID interrupt OUTNative 201.4-201.6/s109.1-109.7/s203.0-203.3/sMedius
Vendor interrupt OUTNative 201.3-201.6/s73.8-76.4/s202.9-203.3/sMedius
Vendor bulk OUTNative 202.1-202.3/s237.9-238.3/s206.0-206.1/sMedius

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. 100 tries a run, each request given 1 s. Reports from before the switch are counted in the first 20 tries.

Tries with a request left unanswered
RequestsStockMediusResult
SET_PROTOCOL, SET_IDLE and GET_PROTOCOL to 2 interfaces6/3000/300MediusStock defect
Reports from before the switch read after it, min to max
MouseStockMediusResult
Gaming mouse, read through usbfs9-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.

Native traffic reaching the PC
Real device sendsStockMediusResult
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 back to back 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 IN80-1400MediusStock defect
Vendor interrupt IN80-1400MediusStock defect
Vendor bulk IN00Equal
Bulk IN packets read, back to back
EndpointStockMediusResult
Vendor bulk IN, 64-byte packets4,567.6-4,590.9/s9,302.4-9,490.2/sMedius

Polls the real device gets

A silent vendor interrupt IN and a silent vendor-page HID interrupt IN, declaring 1, 4 and 8 ms, read by the PC for 2 s with 2 s unread before and after. The real device counts the polls it gets. Natively, an endpoint is polled at its declared rate while read, and not at all while unread. SET_INTERFACE moves a vendor interrupt IN to another address, 40 times per row.

Polls while read and while unread
EndpointStockMediusResult
Vendor interrupt IN declaring 1 msPolled while unreadNative pollingMediusStock defect
Vendor interrupt IN declaring 4 msPolled while unreadNative pollingMediusStock defect
Vendor interrupt IN declaring 8 msPolled while unreadNative pollingMediusStock defect
Vendor-page HID interrupt IN declaring 1 msPolled while unreadNative pollingMediusStock defect
Vendor-page HID interrupt IN declaring 4 msPolled while unreadNative pollingMediusStock defect
Vendor-page HID interrupt IN declaring 8 msPolled while unreadNative pollingMediusStock defect
Polls while unread
EndpointStockMediusResult
Vendor interrupt IN declaring 1 ms999.6-1,000.3/s0/sMediusStock defect
Vendor interrupt IN declaring 4 ms249.7-250.2/s0/sMediusStock defect
Vendor interrupt IN declaring 8 ms124.6-125.2/s0/sMediusStock defect
Vendor-page HID interrupt IN declaring 1 ms999.9-1,000.3/s0/sMediusStock defect
Vendor-page HID interrupt IN declaring 4 ms249.6-250.1/s0/sMediusStock defect
Vendor-page HID interrupt IN declaring 8 ms124.8-125.1/s0/sMediusStock defect
First packet after SET_INTERFACE moves a stream
SwitchesStockMediusResult
One SET_INTERFACE≤30 ms after native≤30 ms after nativeEqual
Two back to back≤30 ms after native≤30 ms after nativeEqual
Three back to back≤30 ms after native≤30 ms after nativeEqual

Game pads

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

Stick values on the PC
PadStockMediusResult
XInput padUnchangedUnchangedEqual
GIP padUnchangedUnchangedEqual
HID padUnchangedUnchangedEqual
PC output reaching the pad
PadStockMediusResult
XInput pad, LED commandReaches the padReaches the padEqual
GIP pad, start-up packetsReaches the padReaches the padEqual