Devices
Which devices each box clones, how faithful each clone is, and whether native data reaches the PC.
Cloned devices
Both boxes got the same 60 emulated devices, one box at a time behind one hub. Medius had imperfect clones off, as it ships. A faithful clone gives the PC the native replies and the native report rate.
| Device | Stock | Medius | Result |
|---|---|---|---|
| Three mice with a 1 ms interval8-bit and 16-bit axes, and a mouse and keyboard in one | All data arrives | All data arrives | Equal |
| Boot keyboard | All data arrives | All data arrives | Equal |
| Mouse with a second, streaming HID interface | All data arrives | All data arrives | Equal |
| Three unusual HID interfacesAlternate settings, a 64-byte endpoint, the HID descriptor after the endpoint | All data arrives | All data arrives | Equal |
| Two unusual interface layoutsA gap in the interface numbers, numbering from 1 | All data arrives | All data arrives | Equal |
| Four devices delaying or refusing their report descriptor450 or 700 ms late, or a STALL | All data arrives | All data arrives | Equal |
| Two mice, with and without a device qualifier | All data arrives | All data arrives | Equal |
| Five mice with an 8 or 10 ms intervalIncluding a two-mouse device and two mice with two configurations | An interface sends nothing | All data arrives | Medius |
| Mouse with a 1,500-byte report descriptor | An interface sends nothing | All data arrives | Medius |
| Keyboard with five HID interfaces, an IN on each | An interface sends nothing | Not cloned | MediusStock defect |
| Mouse with a vendor interface, six INs | An interface sends nothing | Not cloned | MediusStock defect |
| Mouse claiming a 3,000-byte report descriptorIt sends 50 bytes, which the PC pads to 3,000 with zeros | All data arrives | All data arrives | Equal |
| Mouse with an unused second configuration | All data arrives | All data arrives | Equal |
| Mouse with a vendor interface of nine settings | All data arrives | All data arrives | Equal |
| Mouse with an 8-byte endpoint 0 | All data arrives | All data arrives | Equal |
| Mouse with a 16-byte endpoint 0 | All data arrives | All data arrives | Equal |
| Mouse with a 32-byte endpoint 0 | All data arrives | All data arrives | Equal |
| Mouse with name and serial strings | All data arrives | All data arrives | Equal |
| HID interface numbered 200 beside a vendor one numbered 60 | All data arrives | All data arrives | Equal |
| Gaming mouse | All data arrives | All data arrives | Equal |
| Keyboard | All data arrives | All data arrives | Equal |
| High-speed mouse | All data arrives | All data arrives | Equal |
| Mouse that stalls its endpoint after 200 reports | All data arrives | All data arrives | Equal |
| Device | Stock | Medius | Result |
|---|---|---|---|
| Three mice with a 1 ms interval8-bit and 16-bit axes, and a mouse and keyboard in one | Faithful | Faithful | Equal |
| Boot keyboard | Faithful | Faithful | Equal |
| Mouse with a second, streaming HID interface | Imperfect | Faithful | Medius |
| Five mice with a streaming vendor interface | Faithful | Faithful | Equal |
| Six unusual HID interfacesAlternate settings, a 64-byte endpoint, two INs, OUT only, the HID descriptor after the endpoint, a physical descriptor first | Faithful | Faithful | Equal |
| Four unusual interface layoutsAn alternate setting, a gap in the interface numbers, numbering from 1, ten interfaces | Imperfect | Faithful | Medius |
| Four devices delaying or refusing their report descriptor450 or 700 ms late, or a STALL | Imperfect | Faithful | Medius |
| XInput pad and a USB serial device | Faithful | Faithful | Equal |
| Two mice, with and without a device qualifier | Faithful | Faithful | Equal |
| Five mice with an 8 or 10 ms intervalIncluding a two-mouse device and two mice with two configurations | Imperfect | Faithful | MediusStock defect |
| Two mice with a 2 or 4 ms interval | Imperfect | Faithful | MediusStock defect |
| Device with a second control endpoint | Imperfect | Faithful | MediusStock defect |
| Mouse with a 1,500-byte report descriptor | Imperfect | Faithful | MediusStock defect |
| Mouse claiming a 3,000-byte report descriptorIt sends 50 bytes, which the PC pads to 3,000 with zeros | Faithful | Faithful | Equal |
| Mouse with an unused second configuration | Imperfect | Faithful | MediusStock defect |
| Mouse with an 8-byte endpoint 0 | Faithful | Faithful | Equal |
| Mouse with a 16-byte endpoint 0 | Faithful | Faithful | Equal |
| Mouse with a 32-byte endpoint 0 | Faithful | Faithful | Equal |
| Mouse with name and serial strings | Faithful | Faithful | Equal |
| Mouse with a vendor interface of nine settings | Faithful | Faithful | Equal |
| Vendor interface numbered 12 | Faithful | Faithful | Equal |
| HID interface numbered 200 beside a vendor one numbered 60 | Faithful | Faithful | Equal |
| Gaming mouse, keyboard and silent mouse | Imperfect | Faithful | Medius |
| Mouse that stalls its endpoint after 200 reports | Imperfect | Faithful | MediusStock defect |
| High-speed mouseBoth boxes' chips run at full speed only | Imperfect | Imperfect | EqualStock defect |
| Devices | Stock | Medius | Result |
|---|---|---|---|
| 46 devices both boxes cloneMedius times native replies before the clone appears. The clone's replies then have native timing from the first. A device plugged back in skips this (see Replug to clone back) | 0.69-6.82 s | 0.80-2.14 s | Stock |
Poll interval
How often the PC polls each clone, against the native interval.
| Device | Stock | Medius | Result |
|---|---|---|---|
| Four mice with a 10 ms intervalIncluding a two-mouse device and two mice with two configurations | 1 ms | Native interval | MediusStock defect |
| Mouse with an 8 ms interval | 1 ms | Native interval | MediusStock defect |
| Mouse with a 4 ms interval | 1 ms | Native interval | MediusStock defect |
| Mouse with a 2 ms interval | 1 ms | Native interval | MediusStock defect |
| Mouse with a 10 ms interval and a 1,500-byte report descriptor | Native interval | Native interval | Equal |
| Vendor-page HID interface with a 4 ms interval | Native interval | Native interval | Equal |
| XInput pad with 2-64 ms intervals | Native interval | Native interval | Equal |
| Device | Stock | Medius | Result |
|---|---|---|---|
| Mouse reporting every 1 ms with a 10 ms intervalNative 125/s (the PC polls a 10 ms interval every 8 ms) | Above native rate | Native rate | MediusStock defect |
| Mouse reporting every 8 ms with an 8 ms interval | Native rate | Native rate | Equal |
| Device | Stock | Medius | Result |
|---|---|---|---|
| High-speed mouse declaring bInterval 4 (1 ms at high speed)Both clones run at full speed, where the PC reads bInterval 4 as 4 ms | 1 ms | Native bInterval 4 | Differs |
Medius with imperfect clones on
The devices Medius refuses as it ships, given to it again with imperfect clones on. Stock has no such setting: its column is stock as it ships.
| Device | Stock | Medius | Result |
|---|---|---|---|
| Keyboard with five HID interfaces, an IN on each | An interface sends nothing | All data arrives | MediusStock defect |
| Device | Stock | Medius | Result |
|---|---|---|---|
| Vendor interface with an isochronous endpoint | Faithful | Faithful | Equal |
| Three devices with a bulk endpointAt 1,000 packets/s | Faithful | Faithful | Equal |
| Mouse with a vendor interface, five INs | Faithful | Faithful | Equal |
| Mouse with a vendor interface, six INs | Imperfect | Faithful | MediusStock defect |
| Keyboard with five HID interfaces, an IN on each | Imperfect | Faithful | MediusStock defect |
| Mouse with five INs in an unused second configuration | Faithful | Faithful | Equal |
| Vendor IN numbered 0x87 | Imperfect | Not cloned | StockStock defect |
| Two devices declaring 65- or 1,024-byte interrupt packets | Imperfect | Not cloned | StockStock defect |
| Mouse with a 2,083-byte configuration descriptor | Not cloned | Not cloned | Equal |
| Endpoint | Stock | Medius | Result |
|---|---|---|---|
| Vendor bulk IN numbered 0x85Native 13,093.0-13,983.2/s | 3,996.2/s | 8,324.2-8,405.6/s | MediusStock defect |
| HID interface with a bulk INNative 13,137.4-13,985.5/s | 3,693.4-3,801.4/s | 8,342.4-8,404.9/s | MediusStock defect |
| Vendor bulk pair, IN aloneNative 13,103.4-13,964.4/s | 3,875.4-3,948.8/s | 8,321.9-8,352.0/s | MediusStock defect |
| Vendor bulk pair, OUT aloneNative 11,039.5-13,193.9/s | 3,997.4-3,998.1/s | 8,014.4-8,206.8/s | MediusStock defect |
| Vendor bulk pair, IN with OUT at onceNative 7,055.5-9,357.2/s | 3,389.4-3,416.8/s | 6,196.2-6,340.8/s | MediusStock defect |
| Vendor bulk pair, OUT with IN at onceNative 7,072.9-8,734.0/s | 3,287.6-3,316.0/s | 3,660.9-3,706.4/s | MediusStock defect |
Data through every endpoint
Each device streams a counter on every IN endpoint in turn, at its declared rate (bulk at 1,000 packets/s). The PC reads each endpoint through usbfs with eight transfers queued. A cloned endpoint delivering <95% of the native rate counts as sending nothing. Medius had imperfect clones off, as it ships, unless the table says otherwise.
| Device | Stock | Medius | Result |
|---|---|---|---|
| Vendor interrupt IN | Every endpoint at the native rate | Every endpoint at the native rate | Equal |
| Vendor IN numbered 0x84 | Every endpoint at the native rate | Every endpoint at the native rate | Equal |
| Vendor IN numbered 0x85 | Every endpoint at the native rate | Every endpoint at the native rate | Equal |
| Vendor IN numbered 0x86 | Every endpoint at the native rate | Every endpoint at the native rate | Equal |
| Vendor IN numbered 0x87 | An endpoint sends nothing | Not cloned | Medius |
| Vendor IN in an alternate setting | Every endpoint at the native rate | Every endpoint at the native rate | Equal |
| CDC notification endpoint | Every endpoint at the native rate | Every endpoint at the native rate | Equal |
| HID interface with two INs | Every endpoint at the native rate | Every endpoint at the native rate | Equal |
| Vendor bulk IN numbered 0x85Medius refuses bulk unless imperfect clones are on. It relays bulk below the native rate (see Bulk packets relayed) | Every endpoint at the native rate | Not cloned | Stock |
| HID interface with a bulk INMedius refuses bulk unless imperfect clones are on. It relays bulk below the native rate (see Bulk packets relayed) | Every endpoint at the native rate | Not cloned | Stock |
| Vendor bulk pairMedius refuses bulk unless imperfect clones are on. It relays bulk below the native rate (see Bulk packets relayed) | Every endpoint at the native rate | Not cloned | Stock |
| HID IN declaring 65 bytes | An endpoint sends nothing | Not cloned | Medius |
| Two high-numbered INs beside a mouse | Every endpoint at the native rate | Every endpoint at the native rate | Equal |
| Mouse with a vendor interface, five INs | An endpoint sends nothing | Not cloned | Medius |
| Mouse with a vendor interface, six INs | An endpoint sends nothing | Not cloned | Medius |
| Ten interfaces | Every endpoint at the native rate | Every endpoint at the native rate | Equal |
| Vendor interface numbered 12 | Every endpoint at the native rate | Every endpoint at the native rate | Equal |
| XInput pad, four INs | Every endpoint at the native rate | Every endpoint at the native rate | Equal |
| Keyboard with five HID interfaces, an IN on each | An endpoint sends nothing | Not cloned | Medius |
| Device | Stock | Medius | Result |
|---|---|---|---|
| Vendor interrupt IN | Every endpoint at the native rate | Every endpoint at the native rate | Equal |
| Vendor IN numbered 0x84 | Every endpoint at the native rate | Every endpoint at the native rate | Equal |
| Vendor IN numbered 0x85 | Every endpoint at the native rate | Every endpoint at the native rate | Equal |
| Vendor IN numbered 0x86 | Every endpoint at the native rate | Every endpoint at the native rate | Equal |
| Vendor IN numbered 0x87 | An endpoint sends nothing | Not cloned | Medius |
| Vendor IN in an alternate setting | Every endpoint at the native rate | Every endpoint at the native rate | Equal |
| CDC notification endpoint | Every endpoint at the native rate | Every endpoint at the native rate | Equal |
| HID interface with two INs | Every endpoint at the native rate | Every endpoint at the native rate | Equal |
| Vendor bulk IN numbered 0x85 | Every endpoint at the native rate | Every endpoint at the native rate | Equal |
| HID interface with a bulk IN | Every endpoint at the native rate | Every endpoint at the native rate | Equal |
| Vendor bulk pair | Every endpoint at the native rate | Every endpoint at the native rate | Equal |
| HID IN declaring 65 bytes | An endpoint sends nothing | Not cloned | Medius |
| Two high-numbered INs beside a mouse | Every endpoint at the native rate | Every endpoint at the native rate | Equal |
| Mouse with a vendor interface, five INs | An endpoint sends nothing | Every endpoint at the native rate | Medius |
| Mouse with a vendor interface, six INs | An endpoint sends nothing | Every endpoint at the native rate | Medius |
| Ten interfaces | Every endpoint at the native rate | Every endpoint at the native rate | Equal |
| Vendor interface numbered 12 | Every endpoint at the native rate | Every endpoint at the native rate | Equal |
| XInput pad, four INs | Every endpoint at the native rate | Every endpoint at the native rate | Equal |
| Keyboard with five HID interfaces, an IN on each | An endpoint sends nothing | Every endpoint at the native rate | Medius |
Large report descriptors
A mouse with its report descriptor padded to 256-2,047 bytes.
| Report descriptor | Stock | Medius | Result |
|---|---|---|---|
| 256 or 512 bytes | Loads | Loads | Equal |
| 513-700 bytes | Doesn't load | Loads | MediusStock defect |
| 768-2,047 bytes | Doesn't load | Loads | MediusStock defect |
Endpoint 0 replies
The PC sent standard, class and vendor requests to each clone and to the native reference, timed on the PC's USB bus.
| Request | Stock | Medius | Result |
|---|---|---|---|
| Device descriptor | Native reply | Native reply | Equal |
| Configuration descriptor | Native reply | Native reply | Equal |
| String descriptors | Native reply | Native reply | Equal |
| Descriptors the real device doesn't have | Native reply | Native reply | Equal |
| HID report descriptor | Native reply | Native reply | Equal |
| HID class descriptor | Native reply | Native reply | Equal |
| GET_STATUS, GET_CONFIGURATION and GET_INTERFACE | Native reply | Native reply | Equal |
| Feature report 3 | Native reply | Native reply | Equal |
| Vendor requests | Native reply | Native reply | Equal |
| Request | Stock | Medius | Result |
|---|---|---|---|
| Device descriptor | 524-527 µs | -2 to 0 µs | Medius |
| Configuration descriptorAll 34 bytes | 693.5-698.0 µs | 0-1 µs | Medius |
| Product string | 528-546 µs | 0-1 µs | Medius |
| HID report descriptor | 676-691 µs | 43-46 µs | Medius |
| String the real device doesn't have | 435-440 µs | 129-133 µs | Medius |
| GET_STATUS | 566-568 µs | 0-1 µs | Medius |
| Feature report 3 | 522-566 µs | 133-136 µs | Medius |
| Vendor request 0x42 | 520-532 µs | 133-134 µs | Medius |
Standard requests across device stacks
A mouse with a vendor-page HID interface and a vendor interface, answering standard requests as 22 device stacks do. Each clone and the native reference get the same 316 reads. A request counts as given the native reply when its outcome, the PC's error and every byte match native. A timeout counts only where the native request times out too.
| Device stack | Stock | Medius | Result |
|---|---|---|---|
| Stack acting on every request as written | 948/948 | 948/948 | Equal |
| Stack refusing a request with the wrong direction bit | 948/948 | 948/948 | Equal |
| Stack reading two recipient bits | 948/948 | 948/948 | Equal |
| Stack ignoring the recipient and refusing the HID descriptor | 948/948 | 948/948 | Equal |
| Stack serving the HID descriptor from a separate copy | 948/948 | 948/948 | Equal |
| Stack ignoring the recipient and refusing the wrong direction | 948/948 | 948/948 | Equal |
| Stack refusing GET_STATUS at another length | 948/948 | 948/948 | Equal |
| Stack refusing GET_CONFIGURATION at another length | 948/948 | 948/948 | Equal |
| Stack refusing GET_STATUS and GET_CONFIGURATION at a shorter length | 948/948 | 948/948 | Equal |
| Stack answering GET_DESCRIPTOR addressed to an endpoint | 948/948 | 948/948 | Equal |
| Stack taking remote wakeup at any wIndex | 948/948 | 948/948 | Equal |
| Stack refusing remote wakeup | 948/948 | 948/948 | Equal |
| Stack leaving device-to-host requests with no data stage unanswered | 948/948 | 948/948 | Equal |
| Stack refusing the wrong direction, leaving device-to-host requests with no data stage unanswered | 948/948 | 948/948 | Equal |
| Stack refusing GET_STATUS and GET_INTERFACE at an interface | 948/948 | 948/948 | Equal |
| LUFA | 927/948 | 948/948 | MediusStock defect |
| STM32's USB library | 924/948 | 948/948 | MediusStock defect |
| V-USB | 936/948 | 948/948 | MediusStock defect |
| CherryUSB | 948/948 | 948/948 | Equal |
| Stack reading two recipient bits and checking interface and endpoint numbers | 948/948 | 948/948 | Equal |
| Stack padding replies out to wLength | 948/948 | 948/948 | Equal |
| Stack answering long reads from its buffer and SET_DESCRIPTOR only after a read | 948/948 | 948/948 | Equal |
Relayed requests
The PC sent the same raw transfers to each clone and to the native reference, on endpoint 0 and on a second control endpoint. A request counts as given the native reply when its outcome and every byte match native (data before a STALL included). Its reply must also come ≤1.5 ms before or ≤3 ms after the native reply.
| Request | Stock | Medius | Result |
|---|---|---|---|
| Reads of 0-4,096 bytes | 21/33 | 33/33 | MediusStock defect |
| Reads answered past wLength or in the status stage | 6/15 | 15/15 | MediusStock defect |
| Reads the real device refuses, at once or partway | 6/12 | 12/12 | MediusStock defect |
| Reads answered 5 ms a packet | 6/6 | 6/6 | Equal |
| Reads answered 100-1,900 ms late | 15/15 | 15/15 | Equal |
| Read the real device never answers | 3/3 | 3/3 | Equal |
| Read beside an unanswered request on the other endpoint | 0/3 | 3/3 | MediusStock defect |
| Read right after an abandoned one | 3/3 | 3/3 | Equal |
| Writes of 0-1,024 bytes, some answered in the status stage | 12/21 | 21/21 | MediusStock defect |
| Writes the real device refuses, at once or partway | 6/9 | 6/9 | EqualMedius defect |
| Writes taken 5 ms a packet | 6/6 | 6/6 | Equal |
| Writes answered 100-1,900 ms late | 9/9 | 9/9 | Equal |
| Writes the real device never answers | 6/6 | 6/6 | Equal |
| Request | Stock | Medius | Result |
|---|---|---|---|
| Reads of 0-4,096 bytes | 0/33 | 33/33 | MediusStock defect |
| Reads answered past wLength or in the status stage | 0/15 | 15/15 | MediusStock defect |
| Reads the real device refuses, at once or partway | 0/12 | 12/12 | MediusStock defect |
| Reads answered 5 ms a packet | 0/6 | 6/6 | MediusStock defect |
| Reads answered 100-1,900 ms late | 0/15 | 15/15 | MediusStock defect |
| Read the real device never answers | 0/3 | 3/3 | MediusStock defect |
| Read beside an unanswered request on the other endpoint | 0/3 | 3/3 | MediusStock defect |
| Read right after an abandoned one | 0/3 | 3/3 | MediusStock defect |
| Reads answered 1 s late while another interface switches its setting | 0/6 | 6/6 | MediusStock defect |
| Writes of 0-1,024 bytes, some answered in the status stage | 0/21 | 21/21 | MediusStock defect |
| Writes the real device refuses, at once or partway | 0/9 | 6/9 | MediusStock defectMedius defect |
| Writes taken 5 ms a packet | 0/6 | 6/6 | MediusStock defect |
| Writes answered 100-1,900 ms late | 0/9 | 9/9 | MediusStock defect |
| Writes the real device never answers | 0/6 | 6/6 | MediusStock defect |