CN100538679C - A kind of method and device that improves compatibility of man-machne interface device - Google Patents
A kind of method and device that improves compatibility of man-machne interface device Download PDFInfo
- Publication number
- CN100538679C CN100538679C CNB2006101130281A CN200610113028A CN100538679C CN 100538679 C CN100538679 C CN 100538679C CN B2006101130281 A CNB2006101130281 A CN B2006101130281A CN 200610113028 A CN200610113028 A CN 200610113028A CN 100538679 C CN100538679 C CN 100538679C
- Authority
- CN
- China
- Prior art keywords
- interrupt endpoint
- interface device
- information
- virtual interrupt
- main process
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Abstract
The invention discloses a kind of method that improves compatibility of man-machne interface device, comprising: human interface device transmits virtual interrupt endpoint information to main process equipment; Described main process equipment permission is carried out data transmission with described human interface device.Described virtual interrupt endpoint information comprises the information of one or more virtual interrupt endpoint.Human interface device increases the interrupt endpoint descriptor with virtual interrupt endpoint number equal number.The present invention also discloses a kind of device that improves compatibility of man-machne interface device.The present invention is simple, and the method with respect to increase interrupt endpoint in built-in chip can reduce the production cost and the manufacture difficulty of chip production producer, has practicality.
Description
Technical field
The present invention relates to the human interface device field, particularly relate to a kind of method and device that improves compatibility of man-machne interface device.
Background technology
USB (universal serial bus) (USB, Universal Serial Bus) equipment provides data transmission channel from the main process equipment application software to USB device by driver in the USB device when communicating with main process equipment, finish the mutual of information.But the driver of USB device is write very complexity of technology, directly causes main process equipment to crash in case make mistakes.For this reason, to typical USB device, for example human interface device (HID, Human Interface Device) provides built-in driver in the operating system of main process equipment.Existing USB technology can be designed to HID with atypical USB device such as USB KEY.When between HID and main process equipment, carrying out data transmission, the built-in driver of operating system be can directly use, the complicacy and the risk of writing driver removed from.
When carrying out data transmission between HID and the main process equipment, the built-in driver of main process equipment operating system adopts dual mode that HID hardware is conducted interviews, and the 1st kind is the control transmission mode that defines in the USB standard; The 2nd kind is the interruption transmission mode that defines in the USB standard.HID has built-in chip inside and is respectively equipped with the hardware circuit of supporting different data transfer modes, every kind of all corresponding circuit kit of data transfer mode, and this cover circuit can be by the abstract end points that is called.Support the end points of control transmission mode to be called the control end points; Support the end points that interrupts transmission mode to be called interrupt endpoint.Also have piece end points etc. to be used to support the end points of piece transmission mode.Every kind of built-in chip is not to have all end points, and except that every kind of chip of control end points all had, the manufacturer of other each chip of type end points can selectively adopt one or more.
Therefore, for the USB device of using no interrupt endpoint built-in chip, when it is designed to HID, because built-in chip does not have interrupt endpoint, some main process equipment operating system may be refused to carry out any type of data transmission with this HID, influences the compatibility of this HID.As, under LINUX operating system, need receive the relevant information that HID goes up interrupt endpoint, just carry out data transmission with this HID equipment.If do not receive, refusal carries out data transmission with this HID, and the use of this HID is subjected to certain restriction.As the built-in chip that adopts the various transmission modes of development support improves the compatibility of HID, then increases chip production producer cost and production difficulty.
Summary of the invention
Technical matters to be solved by this invention provides a kind of method and device that improves compatibility of man-machne interface device, strengthens the compatibility of human interface device.
The present invention also provides a kind of method that improves compatibility of man-machne interface device, comprising:
Storing virtual terminal point information in not having the human interface device of interrupt endpoint;
Human interface device transmits virtual interrupt endpoint information to main process equipment;
Described main process equipment permission is carried out data transmission with described human interface device in the mode of end points control.
Preferably, described human interface device built-in chip transmits virtual interrupt endpoint information to main process equipment.
Preferably, described virtual interrupt endpoint information comprises the information of a virtual interrupt endpoint.
Preferably, comprise that also human interface device increases an interrupt endpoint descriptor.
Preferably, described virtual interrupt endpoint information comprises the information of two or more virtual interrupt endpoint.
Preferably, comprise that also human interface device increases and the interrupt endpoint descriptor of virtual interrupt endpoint number equal number.
A kind of device that improves compatibility of man-machne interface device of the present invention, described human interface device does not have interrupt endpoint, and described device comprises built-in chip, and described built-in chip comprises control end dot element and virtual interrupt endpoint unit;
Described virtual interrupt endpoint unit stores virtual endpoint information, is used to transmit virtual interrupt endpoint information to main process equipment, makes described main process equipment permission carry out data transmission with human interface device;
Described control end dot element is used for carrying out data transmission with the mode and the main process equipment of end points control.
Preferably, described virtual interrupt endpoint information comprises the information of a virtual interrupt endpoint.
Preferably, described virtual interrupt endpoint information comprises the information of two or more virtual interrupt endpoint.
Preferably, described human interface device also comprises the interrupt endpoint descriptor with virtual interrupt endpoint number equal number.
Compared with prior art, the present invention has the following advantages:
The present invention sends virtual interrupt endpoint information by the built-in chip on the human interface device to main process equipment, make the main process equipment that the operating system that requires HID to possess interrupt endpoint is installed to discern this HID, and the permission with this HID carry out data transmission, the enhancing HID compatibility.The present invention is simple, with respect to increase the interrupt endpoint method in built-in chip, can reduce the production cost and the manufacture difficulty of chip production producer, has practicality.
Description of drawings
Fig. 1 is a kind of embodiment process flow diagram that improves the method for compatibility of man-machne interface device of the present invention;
Fig. 2 is a kind of embodiment synoptic diagram that improves the device of compatibility of man-machne interface device of the present invention.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
Core concept of the present invention is to send virtual interrupt endpoint information by the built-in chip on the human interface device to main process equipment, make the main process equipment that the operating system that requires HID to possess interrupt endpoint is installed to discern this HID, and the permission with this HID carry out data transmission, the enhancing HID compatibility.
See also Fig. 1, improve the embodiment process flow diagram of the method for compatibility of man-machne interface device for the present invention is a kind of, concrete steps are as follows:
Main process equipment is that main process equipment operating system, that can HID carry out data transmission is installed, as computing machine etc.The operating system difference that main process equipment is installed is also different to the requirement of HID.Only require HID to possess the control end points as MS WINDOWS operating system, whether possess interrupt endpoint and do not do the pressure requirement.The main process equipment of installation MS WINDOWS operating system and HID are based on control transmission, if HID has interrupt endpoint, this main process equipment and HID also can adopt to interrupt transmitting and finish data transmission.But if the main process equipment installation is LINUX operating system, the characteristic decision of LINUX operating system itself needs to confirm have after the interrupt endpoint on the HID, and just permission and this HID carry out data transmission.
If do not possess interrupt endpoint on the HID, and need carry out data transmission with the main process equipment that LI NUX operating system is installed the time, can send virtual interrupt endpoint information to main process equipment by built-in chip among the HID, make main process equipment think that this HID has interrupt endpoint, and data transmission is carried out in permission with it.
The built-in built-in chip of HID, built-in chip send virtual interrupt endpoint information to main process equipment.Interrupt endpoint information comprises the information of one or more virtual interrupting input end points.As the built-in chip transmission is the information of a virtual interrupt endpoint, the byte of expression end points quantity should be 1 in the HID interface descriptor, and increase an interrupt endpoint descriptor, the byte of expression endpoint type is set to 3 in this descriptor, the end points buffer length is set to 8 bytes, and the end points access time is spaced apart maximal value FF; As the built-in chip transmission is the information of a plurality of virtual interrupt endpoint, the byte of representing end points quantity among the HID in the interface descriptor should be and the identical numerical value of virtual interrupt endpoint number, increase the interrupt endpoint descriptor of corresponding number simultaneously, the byte of expression endpoint type is set to 3 in this descriptor, the end points buffer length is set to 8 bytes, and the end points access time is spaced apart maximal value FF.
The byte of expression end points quantity is provided with and needs that to send to the virtual interrupt endpoint number that is comprised in the information of main process equipment consistent with built-in chip in the interface descriptor, and on the basis of original descriptor, increase the interrupt endpoint descriptor of respective numbers, the byte of expression endpoint type is set to 3 in the interrupt endpoint descriptor, and what show that this descriptor represents is interrupt endpoint.The interrupt endpoint buffer length is set to 8 bytes, and it is preferred value that the end points access time is spaced apart maximal value FF, also can get other numerical value.
After the operating system of main process equipment receives virtual interrupt endpoint information, confirm that this HID possesses interrupt endpoint, data transmission is carried out in permission with it.If the operating system of main process equipment is not received the information of related interrupts end points or by detect finding that HID does not have interrupt endpoint, refusal and carry out any type of data transmission then with this HID.
HID does not have the interrupt endpoint on the essential meaning among the present invention, makes main process equipment think that this HID possesses interrupt endpoint but send virtual interrupt endpoint information by the built-in chip among the HID, and then data transmission is carried out in permission with it.When carrying out data transmission, because of having interrupt endpoint support, HID do not interrupt transmission mode, and the mode of the end points supports such as control end points that can only rely in the built-in chip to be possessed is carried out data transmission.As, necessarily possess the control end points in the built-in chip, can adopt the mode of control transmission to carry out data transmission between HID and the main process equipment.Carry out data transmission though virtual interrupt endpoint can not make between main process equipment and the HID to interrupt transmission manner, can make between main process equipment and the HID and carry out data transmission in modes such as control transmission.So just make between originally incompatible main process equipment and the HID and can carry out data transmission, strengthen the compatibility of HID.With respect in built-in chip, increasing the interrupt endpoint method, can reduce the production cost and the manufacture difficulty of chip production producer, have practicality.
See also Fig. 2, for the present invention is a kind of embodiment synoptic diagram that improves the device of compatibility of man-machne interface device, comprise HID20, HID20 comprises built-in chip 201, and wherein, built-in chip 201 comprises virtual interrupt endpoint unit 2011 and control end dot element 2012.
Do not possess interrupt endpoint on the HID20, and need carry out data transmission with the main process equipment that LINUX operating system is installed the time, can send virtual interrupt endpoint information to main process equipment by virtual interrupt endpoint unit 2011, make main process equipment think that this HID20 has interrupt endpoint, and data transmission is carried out in permission with it.
Virtual interrupt endpoint unit 2011 sends virtual interrupt endpoint information to main process equipment.Interrupt endpoint information comprises the information of one or more virtual interrupting input end points.As 2011 transmissions of virtual interrupt endpoint unit is the information of a virtual interrupt endpoint, the interface descriptor should be 1 among the HID20, and increase an interrupt endpoint descriptor, the byte of expression endpoint type is set to 3 in this descriptor, the end points buffer length is set to 8 bytes, and the end points access time is spaced apart maximal value FF; As 2011 transmissions of virtual interrupt endpoint unit is the information of a plurality of virtual interrupt endpoint, the interface descriptor should be and the identical numerical value of virtual interrupt endpoint number among the HID20, increase the interrupt endpoint descriptor of corresponding number simultaneously, the byte of expression endpoint type is set to 3 in this descriptor, the end points buffer length is set to 8 bytes, and the end points access time is spaced apart maximal value FF.
The byte of expression end points quantity is provided with and needs that to send to the virtual interrupt endpoint number that is comprised in the information of main process equipment consistent with built-in chip in the interface descriptor, and on the basis of original descriptor, increase the interrupt endpoint descriptor of respective numbers, the byte of expression endpoint type is set to 3 in the interrupt endpoint descriptor, and what show that this descriptor represents is interrupt endpoint.The interrupt endpoint buffer length is set to 8 bytes, and it is preferred value that the end points access time is spaced apart maximal value FF, also can get other numerical value.
After the operating system of main process equipment receives virtual interrupt endpoint information, confirm that HID20 possesses interrupt endpoint, data transmission is carried out in permission with it.If the operating system of main process equipment is not received the information of related interrupts end points or by detect finding that HID20 does not have interrupt endpoint, refusal and carry out any type of data transmission then with this HID20.The interrupt endpoint that virtual interrupt endpoint unit 2011 does not have on the essential meaning among the present invention, but make main process equipment think that HID20 possesses interrupt endpoint by sending virtual interrupt endpoint information, and then data transmission is carried out in permission with it.When carrying out data transmission,, can only rely on control end dot element 2012 to carry out data transmission in the control transmission mode because of virtual interrupt endpoint unit 2011 does not have interrupt endpoint support to interrupt transmission mode.
Carry out data transmission though virtual interrupt endpoint unit 2011 can not make between main process equipment and the HID20 to interrupt transmission manner, can make between main process equipment and the HID20 and can carry out data transmission in modes such as control transmission by control end dot element 2012.So just make between originally incompatible main process equipment and the HID20 and can carry out data transmission, strengthen the compatibility of HID20.
More than to a kind of method and device that improves the human interface device compatibility provided by the present invention, be described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.
Claims (10)
1, a kind of method that improves compatibility of man-machne interface device is characterized in that, comprising:
Storing virtual terminal point information in not having the human interface device of interrupt endpoint;
Human interface device transmits virtual interrupt endpoint information to main process equipment;
Described main process equipment permission is carried out data transmission with described human interface device in the mode of end points control.
2, method according to claim 1 is characterized in that, described human interface device built-in chip transmits virtual interrupt endpoint information to main process equipment.
3, method according to claim 1 and 2 is characterized in that, described virtual interrupt endpoint information comprises the information of a virtual interrupt endpoint.
4, method according to claim 3 is characterized in that, comprises that also human interface device increases an interrupt endpoint descriptor.
5, method according to claim 1 and 2 is characterized in that, described virtual interrupt endpoint information comprises the information of two or more virtual interrupt endpoint.
6, method according to claim 5 is characterized in that, comprises that also human interface device increases and the interrupt endpoint descriptor of virtual interrupt endpoint number equal number.
7, a kind of device that improves compatibility of man-machne interface device, described human interface device does not have interrupt endpoint, it is characterized in that, and described device comprises built-in chip, and described built-in chip comprises control end dot element and virtual interrupt endpoint unit;
Described virtual interrupt endpoint unit stores virtual endpoint information, is used to transmit virtual interrupt endpoint information to main process equipment, makes described main process equipment permission carry out data transmission with human interface device;
Described control end dot element is used for carrying out data transmission with the mode and the main process equipment of end points control.
8, device according to claim 7 is characterized in that, described virtual interrupt endpoint information comprises the information of a virtual interrupt endpoint.
9, device according to claim 7 is characterized in that, described virtual interrupt endpoint information comprises the information of two or more virtual interrupt endpoint.
10, according to Claim 8 or 9 described devices, it is characterized in that described human interface device also comprises the interrupt endpoint descriptor with virtual interrupt endpoint number equal number.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006101130281A CN100538679C (en) | 2006-09-08 | 2006-09-08 | A kind of method and device that improves compatibility of man-machne interface device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006101130281A CN100538679C (en) | 2006-09-08 | 2006-09-08 | A kind of method and device that improves compatibility of man-machne interface device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1916881A CN1916881A (en) | 2007-02-21 |
CN100538679C true CN100538679C (en) | 2009-09-09 |
Family
ID=37737879
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2006101130281A Active CN100538679C (en) | 2006-09-08 | 2006-09-08 | A kind of method and device that improves compatibility of man-machne interface device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100538679C (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103019979B (en) * | 2011-09-27 | 2015-11-25 | 联想(北京)有限公司 | USB host, equipment and information transferring method |
CN112261117B (en) * | 2020-10-19 | 2022-07-22 | 南京沁恒微电子股份有限公司 | Virtual transmission method based on multiple USB interrupt endpoints |
-
2006
- 2006-09-08 CN CNB2006101130281A patent/CN100538679C/en active Active
Non-Patent Citations (2)
Title |
---|
USB2.0传输类型分析. 刘宏伟,郑立云.计算机工程与设计,第26卷第7期. 2005 |
USB2.0传输类型分析. 刘宏伟,郑立云.计算机工程与设计,第26卷第7期. 2005 * |
Also Published As
Publication number | Publication date |
---|---|
CN1916881A (en) | 2007-02-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102109431B1 (en) | Transmission of multiple protocol data elements via an interface utilizing a data tunnel | |
CN102326363B (en) | Microcontroller with can module using buffer description table | |
CN100507882C (en) | Computer system and control method of the same | |
CN107391419B (en) | Support general sequence busbar concentrator of many host computers and automobile-used host computer | |
EP2474913A1 (en) | USB device switching working mode | |
CN102638397A (en) | USB (universal serial bus) device communication transmission method, device and system | |
US20090089473A1 (en) | Data transmission system and method thereof | |
US20080244127A1 (en) | Computer interface controller for portable plug-and-play peripherals | |
CN114048164B (en) | Chip interconnection method, system, device and readable storage medium | |
US20140149617A1 (en) | I2c bus structure and device availability query method | |
CN1996275A (en) | Bulk memory accessing method for I2C controller in 10-site addressing mode | |
JP2016532206A (en) | Operating M-PHY based communications through mass storage based interfaces and associated connectors, systems, and methods | |
CN103902488A (en) | Method and system for expanding other interfaces through USB-OTG interface based on Android system | |
CN104090857A (en) | System and method for expanding peripheral interfaces of intelligent terminal | |
CN110618672A (en) | Interface circuit and interface communication method and device thereof | |
CN100538679C (en) | A kind of method and device that improves compatibility of man-machne interface device | |
US7953898B2 (en) | Apparatus and method for using expansion key in portable terminal | |
US20140149616A1 (en) | I2c bus structure and address management method | |
CN105630718A (en) | Electronic device for providing instant switching and sharing of universal serial bus electronic equipment by host | |
TW202221519A (en) | Sideband signaling in a peripheral component interconnect (pci) express (pcie) link | |
CN102023957B (en) | Method for stimulating multiple serial ports by a USB interface for transmitting data and USB compound device | |
CN102890667A (en) | Device and method for processing wiegand data | |
CN104850872A (en) | Method of transferring data, computer program product and tag | |
CN109753461B (en) | DMA device and data transmission method | |
US8352965B2 (en) | Transmission method and circuit device capable of automatic transmission interface selection |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C56 | Change in the name or address of the patentee |
Owner name: FEITIAN TECHNOLOGIES CO., LTD. Free format text: FORMER NAME: BEIJING FEITIAN CHENGXIN SCIENCE + TECHNOLOGY CO., LTD. |
|
CP03 | Change of name, title or address |
Address after: 100085 Beijing city Haidian District Xueqing Road No. 9 Ebizal building B block 17 layer Patentee after: Feitian Technologies Co., Ltd. Address before: 100083, Haidian District, Xueyuan Road, Beijing No. 40 research, 7A building, 5 floor Patentee before: Beijing Feitian Chengxin Science & Technology Co., Ltd. |