Talk:Polling rate

From Deskthority wiki
Jump to navigation Jump to search

I started a document some time back to remind myself of all the polling rates of the various USB interfaces (and PS/2). Still needs a bit of work on the math (and some validation to make sure it's correct before I think it's wiki quality). Perhaps some proper spec references for the USB polling rates as well. -HaaTa

PS/2

Interrupt based, usually. This is optional, and the OS can decide to poll the results from the PS/2 interface. The polling rate is likely around 125 Hz, but this is entirely dependent upon OS settings. Going from the PS/2 mouse protocol, this could be as bad as 10 Hz (possibly even worse).

Each 11 bit packet is around 900 us with a delay of at least 50 us between multiple packets (? not completely sure about this, depends on the keyboard implementation). This generally means about 1 ms per key, or 7 ms when pressing Ctrl + Alt + A + B + C + D + E.

Effective polling rate

Best case 1 key: 1000 Hz Best case 6 keys: 167 Hz Bad case 1 key: 10 Hz (due to OS polling)

References

USB 1.1/2.0 - Low Speed

Polling Rate: 125 Hz

Max Data Rate: 1.5 mbps

TODO - Data transmission analysis

USB 2.0 - Full Speed

Polling Rate: 1000 Hz

Max Data Rate: 12 mbps

USB 2.0 - Hi-Speed

Polling Rate: 8000 Hz

Max Data Rate: 480 mbps

TODO - Data transmission analysis

USB 3.0 - SuperSpeed (USB 3.1 Gen 1)

Polling Rate: 8000 Hz

Max Data Rate: 5 gbps

TODO - Data transmission analysis

USB 3.1 - SuperSpeed+ (USB 3.1 Gen 2)

Polling Rate: 8000 Hz

Max Data Rate: 10 gbps

TODO - Data transmission analysis