CN102253904A - Method and device for identifying computer operating system by utilizing USB equipment - Google Patents

Method and device for identifying computer operating system by utilizing USB equipment Download PDF

Info

Publication number
CN102253904A
CN102253904A CN2011101521248A CN201110152124A CN102253904A CN 102253904 A CN102253904 A CN 102253904A CN 2011101521248 A CN2011101521248 A CN 2011101521248A CN 201110152124 A CN201110152124 A CN 201110152124A CN 102253904 A CN102253904 A CN 102253904A
Authority
CN
China
Prior art keywords
usb device
windows
operating system
computer
theoretical
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.)
Pending
Application number
CN2011101521248A
Other languages
Chinese (zh)
Inventor
黄安麒
徐翱
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shirui Electronics Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shirui Electronics Co Ltd
Priority to CN2011101521248A priority Critical patent/CN102253904A/en
Publication of CN102253904A publication Critical patent/CN102253904A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method and device for identifying a computer operating system by utilizing USB equipment. The method comprises the following steps of: storing theoretical USB equipment enumeration processes corresponding to various operating systems; carrying out actual USB equipment enumeration; comparing the actual USB equipment enumeration process with the theoretical USB equipment enumeration processes; and if the actual equipment enumeration process is the same as one of the theoretical USB equipment enumeration processes of the various operating systems, judging whether the operating system of a computer is a corresponding operating system. The invention also discloses a device for identifying the computer operating system by utilizing the USB equipment. According to the method and device disclosed by the invention, the user experience is improved, and the cost is reduced.

Description

A kind of method and device of USB device identification computer operating system
Technical field
The present invention relates to the computing machine field of mobile equipment, be specifically related to a kind of method and device of USB device identification computer operating system.
Background technology
Part USB device (as touch-screen etc.) is for different operating system (as Windows XP, Windows 7, Mac etc.), needs to use the different communications protocol could operate as normal; Some USB device is designed to need carry out different actions for different operating system (as Windows XP, Windows 7, Mac etc.).Portioned product uses some buttons to realize user's selection operation system at present, and other products are by customer upgrade device software, installation computer software or be configured to adapt to his employed operating system in software.When USB device connects computing machine, need manual intervention, guiding device uses the different communications protocol could normal work, identifying operation system automatically, and user experience is low, the hardware of equipment or maintenance cost height.
Summary of the invention
The invention discloses a kind of method and apparatus of USB device identification computer operating system, the identifying operation system improves user experience automatically, reduces cost.
The invention discloses a kind of method of USB device identification computer operating system, comprise step:
(1) the theoretical USB device of the various operating system correspondences of storage is enumerated;
(2) carrying out actual USB device enumerates;
(3) more described actual USB device is enumerated with described theoretical USB device and is enumerated,
Enumerate identically if actual USB device is enumerated with wherein a kind of theoretical USB device of described various operating systems, judge that then operation system of computer is a relative operation system.
The invention also discloses a kind of device of USB device identification computer operating system, comprising:
Storage unit is used to store the theoretical USB device enumeration process of various operating system correspondences;
Enumerate the unit, be used to carry out actual USB device enumeration process;
Comparing unit, be used for more described actual USB device enumeration process and described theoretical USB device enumeration process, enumerate identically if described actual USB device is enumerated with wherein a kind of theoretical USB device of described various operating systems, judge that then operation system of computer is a relative operation system.
The present invention is by storing the theoretical USB device enumeration process of various operating systems in advance, after USB device and computing machine connect, carrying out actual USB device enumerates, actual USB device enumeration process and theoretical USB device enumeration process can obtain judged result, compare with the method for traditional USB device identification computer operating system, in identifying, no longer need artificial intervention, automatically the identifying operation system has improved user experience; Do not need to increase extra hardware, do not need different USB device is carried out software upgrading to adapt to computer operating system, reduced cost.
Description of drawings
Fig. 1 is an embodiment process flow diagram of the inventive method;
Fig. 2 is another embodiment process flow diagram of the inventive method;
Fig. 3 is a structural representation of apparatus of the present invention;
Fig. 4 is another structural representation of apparatus of the present invention.
Embodiment
For ease of understanding the present invention, set forth below in conjunction with accompanying drawing.
At first introduce the inventive method,, the invention discloses a kind of method of USB device identification computer operating system, comprise step with reference to figure 1:
101, the USB device theory of storing each system is enumerated;
Storing the theoretical USB device of various operating system correspondences enumerates.
102, carrying out actual USB device enumerates;
103, actual enumerate and theory is enumerated determined OS Type.
Actual USB device is enumerated with theoretical USB device and is enumerated,
Enumerate identically if actual USB device is enumerated with wherein a kind of theoretical USB device of described various operating systems, judge that then operation system of computer is a relative operation system.
The present invention is by storing the theoretical USB device enumeration process of various operating systems in advance, after USB device and computing machine connect, carry out actual USB device enumeration process, actual USB device enumeration process and theoretical USB device enumeration process can obtain judged result, compare with the method for traditional USB device identification computer operating system, in identifying, no longer need artificial intervention, the identifying operation system has improved user experience automatically; Do not need to increase extra hardware, do not need different USB device is carried out software upgrading to adapt to computer operating system, reduced cost.
Wherein, the aforesaid operations system comprises: MAC system, windows system and linux system.
Since the windows system comprise windows 7 systems and other windows systems (windows XP for example, Fig. 1 embodiment can not distinguish windows 7 systems and other windows systems, can do further improvement to Fig. 1 thus, with reference to figure 2, comprises step:
201, the theory of storage USB device is enumerated;
Storing the theoretical USB device of various operating system correspondences enumerates.
202, carrying out actual USB device enumerates;
Connect USB device and computing machine, carry out actual USB device and enumerate, and store actual USB device enumeration process.
Wherein, the example enumerated of the theoretical USB device of the following windows of being system:
Figure BDA0000066855150000041
Following is the example that the theoretical USB device of MAC (Macintosh, Apple Computers) system is enumerated:
Figure BDA0000066855150000042
The example that the theoretical USB device of the following linux of being system is enumerated:
Figure BDA0000066855150000051
203, decision operation system type;
Actual USB device enumeration process and theoretical USB device enumeration process, the decision operation system type.
204, be defined as the MAC system;
If the theoretical USB device enumeration process of actual USB device enumeration process and MAC system is identical, judge that then operation system of computer is the MAC system.
205, be defined as the windows system;
If the theoretical USB device enumeration process of actual USB device enumeration process and windows system is identical, judge that then operation system of computer is the windows system, enters step 207.
206, be defined as the linux system;
If actual USB device enumeration process is all identical with the theoretical USB device enumeration process of linux system, judge that then operation system of computer is a linux operating system.
207, restart USB device;
208, enumerate and reply;
Use HID (Human Interface Device, the human interface device classification) description of windows 7 system touch equipment to enumerate.
209, judged whether extra communication;
Judgement step 208 enumerate end after, whether be useful on to obtain and touch the extra communication count, if then enter step 210;
If not, the step 211 that enters then.
210, be defined as Windows 7 systems;
Determine that operation system of computer is Windows 7 systems.
211, be defined as other Windows systems.
Determine that operation system of computer is other Windows systems.
With reference to figure 3, the invention discloses a kind of device of USB device identification computer operating system, comprising:
Storage unit S1, the theoretical USB device that is used to store various operating system correspondences is enumerated;
Enumerate cell S 2, be used to carry out actual USB device and enumerate;
Comparing unit S3, being used for the actual USB device of comparison enumerates with theoretical USB device and enumerates, enumerate identically if described actual USB device is enumerated with wherein a kind of theoretical USB device of described various operating systems, judge that then operation system of computer is a relative operation system.
The present invention is by storing the theoretical USB device enumeration process of various operating systems in advance, after USB device and computing machine connect, carry out actual USB device enumeration process, actual USB device enumeration process and theoretical USB device enumeration process can obtain judged result, compare with the method for traditional USB device identification computer operating system, in identifying, no longer need artificial intervention, automatically the identifying operation system has improved user experience; Do not need to increase extra hardware, do not need different USB device is carried out software upgrading to adapt to computer operating system, reduced cost.
Wherein the aforesaid operations system comprises: MAC system or windows system or linux system.
In order further to distinguish windows 7 systems and other windows systems, above-mentioned Fig. 3 embodiment is done further improvement: as shown in Figure 4, this device also comprises:
Initialization unit S4 is used to restart USB device;
Response unit S5, the HID of use windows 7 system touch equipment describes to enumerate and replys;
Judging unit S6 is used to judge whether to be useful on to obtain touch the extra communication of counting, if judge that then the operation system of computer type is windows 7 systems;
If not, judge that then the operation system of computer type is other windows systems.
After the identification computer operating system, just can enumerate content and enumerate, realize self function according to the USB device of corresponding system.
If USB device is a touch-screen, then in Fig. 2 embodiment, can save step 207.The aforesaid operations system is not restricted to MAC system or windows system or linux system, can also for making content of the present invention succinct, give unnecessary details no longer one by one for other system (as: Android operating system) herein.
Above-described embodiment of the present invention does not constitute the qualification to protection domain of the present invention.Any modification of being done within the spirit and principles in the present invention, be equal to and replace and improvement etc., all should be included within the claim protection domain of the present invention.

Claims (6)

1. the method for a USB device identification computer operating system is characterized in that, comprises step:
(1) the theoretical USB device of the various operating system correspondences of storage is enumerated;
(2) carrying out actual USB device enumerates;
(3) more described actual USB device is enumerated with described theoretical USB device and is enumerated,
If described actual USB device is enumerated with wherein a kind of theoretical USB device of described various operating systems and enumerated together, judge that then operation system of computer is a relative operation system.
2. the method for USB device identification computer operating system according to claim 1 is characterized in that,
Described operating system comprises: MAC system, windows system and linux system.
3. the method for USB device identification computer operating system according to claim 1 and 2 is characterized in that, if in described step (3), judges that operation system of computer is the windows system, then also comprises step:
Restart USB device;
Use the HID description of windows 7 system touch equipment to enumerate;
Judge whether to be useful on and obtain the extra communication that touch is counted, if then described operation system of computer type is windows 7 systems;
If not, then described operation system of computer type is other windows systems.
4. the device of a USB device identification computer operating system is characterized in that, comprising:
Storage unit, the theoretical USB device that is used to store various operating system correspondences is enumerated;
Enumerate the unit, be used to carry out actual USB device and enumerate;
Comparing unit, being used for more described actual USB device enumerates with described theoretical USB device and enumerates, enumerate identically if described actual USB device is enumerated with wherein a kind of theoretical USB device of described various operating systems, judge that then operation system of computer is a relative operation system.
5. the device of USB device identification computer operating system according to claim 4 is characterized in that,
Described operating system comprises: MAC system, windows system and linux system.
6. according to the device of claim 4 or 5 described USB device identification computer operating systems, it is characterized in that, also comprise:
Initialization unit is used to restart USB device;
Response unit uses the HID description of windows 7 system touch equipment to enumerate;
Judging unit is used to judge whether to be useful on to obtain touch the extra communication of counting, if determine that then described operation system of computer type is windows 7 systems; If not, determine that then described operation system of computer type is other windows systems.
CN2011101521248A 2011-06-08 2011-06-08 Method and device for identifying computer operating system by utilizing USB equipment Pending CN102253904A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011101521248A CN102253904A (en) 2011-06-08 2011-06-08 Method and device for identifying computer operating system by utilizing USB equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011101521248A CN102253904A (en) 2011-06-08 2011-06-08 Method and device for identifying computer operating system by utilizing USB equipment

Publications (1)

Publication Number Publication Date
CN102253904A true CN102253904A (en) 2011-11-23

Family

ID=44981179

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011101521248A Pending CN102253904A (en) 2011-06-08 2011-06-08 Method and device for identifying computer operating system by utilizing USB equipment

Country Status (1)

Country Link
CN (1) CN102253904A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104156328A (en) * 2013-05-15 2014-11-19 中兴通讯股份有限公司 Method for identifying type of operating system and USB device
CN104516842A (en) * 2013-09-29 2015-04-15 中兴通讯股份有限公司 Method for universal serial bus (USB) equipment quick adaptation operating system and USB equipment
CN104834611A (en) * 2014-02-12 2015-08-12 中兴通讯股份有限公司 Method, device and USB (Universal Serial Bus) equipment capable of automatically identifying operating system of host
CN105573939A (en) * 2014-10-10 2016-05-11 深圳市中兴微电子技术有限公司 Method for carrying out data transmission on the basis of universal serial bus, and terminal
CN105808464A (en) * 2016-02-29 2016-07-27 宇龙计算机通信科技(深圳)有限公司 USB-related computer system update method and apparatus
CN106383796A (en) * 2016-10-18 2017-02-08 广州视睿电子科技有限公司 Host operation system type identification method and system
CN106649174A (en) * 2016-10-11 2017-05-10 广州视睿电子科技有限公司 USB equipment and USB communication method
CN107220090A (en) * 2017-06-06 2017-09-29 广州视源电子科技股份有限公司 Start the method and apparatus of embedded software in external equipment
CN107943725A (en) * 2017-12-20 2018-04-20 杭州楷知科技有限公司 A kind of method and apparatus for realizing the operation of USB device internal program
CN109446120A (en) * 2016-06-22 2019-03-08 飞天诚信科技股份有限公司 A kind of USB device and its method for identifying MacOS system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101078985A (en) * 2006-05-23 2007-11-28 国际商业机器公司 Method and system for identifying an operating system running on a computer system
CN101246428A (en) * 2007-02-12 2008-08-20 希捷科技有限公司 Method for initiating re-enumeration of a device
CN101702143A (en) * 2009-12-02 2010-05-05 深圳华为通信技术有限公司 Method and device for modifying driving and matching information of USB device
CN101916238A (en) * 2010-08-26 2010-12-15 华为终端有限公司 Method and device for data card to identify operating system and communication system
CN101957807A (en) * 2010-09-16 2011-01-26 北京飞天诚信科技有限公司 Method for USB device to recognize version type of Windows operating system
CN101989205A (en) * 2009-08-03 2011-03-23 杭州国芯科技股份有限公司 Software system upgrading method for universal serial bus (USB) equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101078985A (en) * 2006-05-23 2007-11-28 国际商业机器公司 Method and system for identifying an operating system running on a computer system
CN101246428A (en) * 2007-02-12 2008-08-20 希捷科技有限公司 Method for initiating re-enumeration of a device
CN101989205A (en) * 2009-08-03 2011-03-23 杭州国芯科技股份有限公司 Software system upgrading method for universal serial bus (USB) equipment
CN101702143A (en) * 2009-12-02 2010-05-05 深圳华为通信技术有限公司 Method and device for modifying driving and matching information of USB device
CN101916238A (en) * 2010-08-26 2010-12-15 华为终端有限公司 Method and device for data card to identify operating system and communication system
CN101957807A (en) * 2010-09-16 2011-01-26 北京飞天诚信科技有限公司 Method for USB device to recognize version type of Windows operating system

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2643481C2 (en) * 2013-05-15 2018-02-01 ЗетТиИ Корпорейшн Method of identification of operating system type and usb device
WO2014183358A1 (en) * 2013-05-15 2014-11-20 中兴通讯股份有限公司 Method for identifying type of operating system, and usb device
CN104156328B (en) * 2013-05-15 2019-02-05 中兴通讯股份有限公司 A kind of method and USB device identifying OS Type
CN104156328A (en) * 2013-05-15 2014-11-19 中兴通讯股份有限公司 Method for identifying type of operating system and USB device
CN104516842A (en) * 2013-09-29 2015-04-15 中兴通讯股份有限公司 Method for universal serial bus (USB) equipment quick adaptation operating system and USB equipment
CN104834611A (en) * 2014-02-12 2015-08-12 中兴通讯股份有限公司 Method, device and USB (Universal Serial Bus) equipment capable of automatically identifying operating system of host
WO2015120709A1 (en) * 2014-02-12 2015-08-20 中兴通讯股份有限公司 Method and apparatus for automatically recognizing operating system of host, and usb device
CN105573939A (en) * 2014-10-10 2016-05-11 深圳市中兴微电子技术有限公司 Method for carrying out data transmission on the basis of universal serial bus, and terminal
CN105808464B (en) * 2016-02-29 2018-09-14 宇龙计算机通信科技(深圳)有限公司 The relevant compter system update method and apparatus of USB
CN105808464A (en) * 2016-02-29 2016-07-27 宇龙计算机通信科技(深圳)有限公司 USB-related computer system update method and apparatus
CN109446120A (en) * 2016-06-22 2019-03-08 飞天诚信科技股份有限公司 A kind of USB device and its method for identifying MacOS system
CN109446120B (en) * 2016-06-22 2020-05-15 飞天诚信科技股份有限公司 USB device and method for identifying MacOS system by USB device
CN106649174A (en) * 2016-10-11 2017-05-10 广州视睿电子科技有限公司 USB equipment and USB communication method
CN106383796A (en) * 2016-10-18 2017-02-08 广州视睿电子科技有限公司 Host operation system type identification method and system
CN106383796B (en) * 2016-10-18 2019-06-14 广州视睿电子科技有限公司 A kind of recognition methods and system of host operating system type
CN107220090A (en) * 2017-06-06 2017-09-29 广州视源电子科技股份有限公司 Start the method and apparatus of embedded software in external equipment
CN107943725A (en) * 2017-12-20 2018-04-20 杭州楷知科技有限公司 A kind of method and apparatus for realizing the operation of USB device internal program

Similar Documents

Publication Publication Date Title
CN102253904A (en) Method and device for identifying computer operating system by utilizing USB equipment
CN101957807B (en) Method for USB device to recognize version type of Windows operating system
EP2492776A2 (en) Remote wakeup of application processor of mobile device
CN101840317A (en) Device and method for automatically configuring print driver
CN103716906A (en) Apparatus and method for controling power in a short-range communication device
CN103477301A (en) Method and device for charging energy storage devices
CN104572217A (en) Updating method and system of wearable intelligent device
CN110020528A (en) A kind of BMC starting method, apparatus and electronic equipment and storage medium
CN109525420A (en) Fault data based on vehicle mounted communication module transfers method and apparatus
CN105607838A (en) Information processing method and device as well as electronic equipment
CN103870319B (en) Information processing method, device and electronic equipment
CN103106113A (en) Interrupt event processing method and processing equipment
CN109492590A (en) A kind of distance detection method, distance detection device and terminal device
CN106371876B (en) Method and system for upgrading external program of product
CN104135776A (en) Method and device for establishing connection across terminals and terminal equipment
CN108924325B (en) Data processing method and related device
CN102999407A (en) Computer hardware fault diagnosis system based on PCI (Peripheral Component Interconnect) bus
CN102892116B (en) A kind of base station and maintaining method thereof
CN103064358B (en) Injection molding machine control system based on Android system
CN109684115A (en) A kind of communication means and relevant device applied between plug-in unit
WO2019232966A1 (en) Operation and maintenance method, device, terminal apparatus, and medium
CN107635023A (en) Address management method, device, storage medium and terminal
CN104951325A (en) Information display method and electronic equipment
CN104850512A (en) Method and apparatus for implementing USB OTG function without ID pin
CN104572408B (en) Progress bar display processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20111123