Šiandieninė klausimų ir atsakymų sesija pateikiama su "SuperUser" - "Stack Exchange", bendruomenės valdoma Q & A grupių asociacija.
Klausimas
"SuperUser" skaitytuvas "Ne Mo" nori žinoti, ar USB klaviatūros siunčia signalus tik tuo atveju, jei jie juos gauna:
A USB keyboard does not need to receive any signals from a computer, just power, right? Or does it need to receive signals as well as send them?
Ar USB klaviatūros siunčia signalus tik tuo atveju, ar jie juos gauna?
Atsakymas
"SuperUser" autoriai "LawrenceC" ir "Dmitrijus Grigorjevas" atsakė už mus. Pirmiausia "LawrenceC":
From the “Device Class Definition for Human Interface Devices (HID)” specification:
Vėliau atsakymas iš Dmitry Grigorjevas:
Any USB device regardless of its class requires bidirectional communication to function. Every USB device (or function in terms of USB specifications) is represented as a set of endpoints which can be thought of as buffers which accept or receive data. However, even endpoints which can only send data wait for a special packet called a token before they can reply:
Even so-called interrupt transfers are done in this way, with the USB host polling connected devices using token packets. What differs between regular (bulk) transfers and interrupt transfers is that the polling time is small and guaranteed in the latter case. Still, all transfers are initiated by the host.
Ar turite ką nors įtraukti į paaiškinimą? Garsas išjungtas komentaruose. Norite skaityti daugiau atsakymų iš kitų "Tech-savvy Stack Exchange" vartotojų? Patikrinkite visą diskusijų temą čia.
Vaizdo kreditas: Lukas Jonesas ("Flickr")