क्या यूएसबी कीबोर्ड केवल सिग्नल भेजते हैं या क्या वे उन्हें प्राप्त करते हैं?

विषयसूची:

क्या यूएसबी कीबोर्ड केवल सिग्नल भेजते हैं या क्या वे उन्हें प्राप्त करते हैं?
क्या यूएसबी कीबोर्ड केवल सिग्नल भेजते हैं या क्या वे उन्हें प्राप्त करते हैं?

वीडियो: क्या यूएसबी कीबोर्ड केवल सिग्नल भेजते हैं या क्या वे उन्हें प्राप्त करते हैं?

वीडियो: क्या यूएसबी कीबोर्ड केवल सिग्नल भेजते हैं या क्या वे उन्हें प्राप्त करते हैं?
वीडियो: Keyboard Shortcuts For Linux Bash Terminal - YouTube 2024, अप्रैल
Anonim
हम में से अधिकांश हमारे कीबोर्ड पर तब तक ज्यादा विचार नहीं करते जब तक वे अच्छी तरह से काम नहीं करते हैं, लेकिन यदि आप एक पल के लिए इसके बारे में सोचना बंद कर देते हैं, तो क्या वे केवल हमारे कंप्यूटर पर सिग्नल भेजते हैं या क्या काम पर एक सक्रिय बैक-एंड-आउट प्रक्रिया है ? आज के सुपर यूज़र क्यू एंड ए पोस्ट में एक जिज्ञासु पाठक के सवाल का जवाब है।
हम में से अधिकांश हमारे कीबोर्ड पर तब तक ज्यादा विचार नहीं करते जब तक वे अच्छी तरह से काम नहीं करते हैं, लेकिन यदि आप एक पल के लिए इसके बारे में सोचना बंद कर देते हैं, तो क्या वे केवल हमारे कंप्यूटर पर सिग्नल भेजते हैं या क्या काम पर एक सक्रिय बैक-एंड-आउट प्रक्रिया है ? आज के सुपर यूज़र क्यू एंड ए पोस्ट में एक जिज्ञासु पाठक के सवाल का जवाब है।

आज का प्रश्न और उत्तर सत्र हमारे पास सुपरयूसर की सौजन्य है - स्टैक एक्सचेंज का एक उपविभाग, क्यू एंड ए वेब साइट्स का एक समुदाय संचालित समूह।

प्रश्न

सुपर यूज़र रीडर ने मो जानना चाहता है कि क्या यूएसबी कीबोर्ड केवल सिग्नल भेजते हैं या यदि वे उन्हें भी प्राप्त करते हैं:

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?

क्या यूएसबी कीबोर्ड केवल सिग्नल भेजते हैं या क्या वे उन्हें भी प्राप्त करते हैं?

उत्तर

सुपरयूसर योगदानकर्ता लॉरेंससी और दिमित्री Grigoryev हमारे लिए जवाब है। सबसे पहले, लॉरेंससी:

From the “Device Class Definition for Human Interface Devices (HID)” specification:

To change the keyboard LEDs, the keyboard accepts a command to do so. So it is not an “input-only” device (meaning it only outputs data to the host). That being said, there is a negotiation and enumeration process with all USB devices that require a back-and-forth conversation between the host and the device. You cannot have a “read-only” USB device. Even before USB, the computer’s keyboard controller would accept commands because it did a few things besides read the keyboard (reference):
To change the keyboard LEDs, the keyboard accepts a command to do so. So it is not an “input-only” device (meaning it only outputs data to the host). That being said, there is a negotiation and enumeration process with all USB devices that require a back-and-forth conversation between the host and the device. You cannot have a “read-only” USB device. Even before USB, the computer’s keyboard controller would accept commands because it did a few things besides read the keyboard (reference):
Image
Image

दिमित्री Grigoryev से जवाब का पालन किया:

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:

The gray boxes represent the USB host while the white boxes represent USB functions (chart source).
The gray boxes represent the USB host while the white boxes represent USB functions (chart source).

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.

स्पष्टीकरण में जोड़ने के लिए कुछ है? टिप्पणियों में विचार व्यक्त करो। अन्य तकनीक-समझदार स्टैक एक्सचेंज उपयोगकर्ताओं से अधिक उत्तरों पढ़ना चाहते हैं? यहां पूर्ण चर्चा धागा देखें।

छवि क्रेडिट: ल्यूक जोन्स (फ़्लिकर)

सिफारिश की: