CN109032831A - A kind of scheme of USB device identification automatic error correction - Google Patents
A kind of scheme of USB device identification automatic error correction Download PDFInfo
- Publication number
- CN109032831A CN109032831A CN201811003530.6A CN201811003530A CN109032831A CN 109032831 A CN109032831 A CN 109032831A CN 201811003530 A CN201811003530 A CN 201811003530A CN 109032831 A CN109032831 A CN 109032831A
- Authority
- CN
- China
- Prior art keywords
- usb device
- electronic equipment
- equipment
- hardware
- error correction
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0793—Remedial or corrective actions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0751—Error or fault detection not based on redundancy
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0042—Universal serial bus [USB]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Information Transfer Systems (AREA)
Abstract
Present invention discloses a kind of schemes of USB device identification automatic error correction, this method comprises the following steps: electronic equipment starts to be monitored and judge whether USB device is inserted into, such as monitor that USB device has been inserted into, basic input output system is read out the hardware ID and device type of USB device;The USB device type for such as reading insertion is USB3.0 equipment, then records to the hardware ID of USB device, process terminates;The USB device type for such as reading insertion is not USB3.0 equipment, then carries out judging whether the hardware ID of existing insertion USB device then notifies embedded control unit to reset electronic equipment such as there are the hardware ID of the insertion USB device in electronic equipment.This method is by judging device id and device type under basic input output system, EC is notified when there is identification mistake, it is then inserted into formula control unit and allows equipment that can re-recognize into 3.0 equipment by hardware progress reset operation, to solve the problems, such as USB device identification mistake and need manually to participate in.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of schemes of USB device identification automatic error correction.
Background technique
With continually developing for USB product, more and more USB devices are widely used on various operating systems,
Demand of the operating system to USB device is different, and often misidentifies to USB device.Prior art is mainly inserted again
Pull out USB device, this mode mainly has the disadvantage that: 1, terminal user is difficult or can not judge the equipment quilt of USB3.0
Misidentification causes substantially reducing for efficiency in USB use process at the equipment of USB2.0.2, this mode needs artificial active
It participates in.
Summary of the invention
The object of the invention is to provide a kind of USB device knowledge to solve the above-mentioned problems in the prior art
The scheme of other automatic error correction.
The purpose of the present invention is achieved through the following technical solutions:
A kind of scheme of USB device identification automatic error correction, this method comprises the following steps:
S1: electronic equipment start-up operation is monitored, and judges whether USB device is inserted into, under entering if USB device insertion
One step S2, otherwise electronic equipment continues to detect;
S2: if electronic equipment monitoring has been inserted into USB device, then the basic input output system in electronic equipment is to USB
The hardware ID and device type of equipment are read out;
S3: the USB device type being inserted into S2 step as described in being read basic input output system is USB3.0 equipment,
Then the hardware ID of basic input output system record USB device, process terminate;
S4: the USB device type as basic input output system reads insertion is not USB3.0 equipment, then is judged
Whether the hardware ID of existing insertion USB device then notifies embedding if there are the hardware IDs of the insertion USB device in electronic equipment
Enter formula control unit to reset electronic equipment.
Preferably, the electronic equipment in the S1 step is computer.
Preferably, in S4 step, embedded control unit to electronic equipment carry out reset operation, allow electronic equipment again
It is identified as USB3.0 equipment.
Preferably, the reset operation controls the power on/off of USB device by embedded control unit, and USB device is disconnected
It is re-energised after electricity, USB device is re-recognized.
Preferably, in S4 step, such as judge the hardware ID for not having to have insertion USB device in electronic equipment, process knot
Beam.
The advantages of technical solution of the present invention is mainly reflected in: present solution provides one kind being capable of automatic identification and in equipment class
The method reset automatically in the state of type identification mistake, by sentencing under basic input output system to device id and device type
It is disconnected, embedded control unit is notified when there is identification mistake, is then inserted into formula control unit by hardware and is carried out reset operation
Allow equipment that can re-recognize into 3.0 equipment, to solve the problems, such as USB device identification mistake and need artificial participate in.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the scheme of USB device identification automatic error correction of the invention.
Specific embodiment
The purpose of the present invention, advantage and feature, by by the non-limitative illustration of preferred embodiment below carry out diagram and
It explains.These embodiments are only the prominent examples using technical solution of the present invention, it is all take equivalent replacement or equivalent transformation and
The technical solution of formation, all falls within the scope of protection of present invention.
Present invention discloses a kind of schemes of USB device identification automatic error correction, as shown in Figure 1, this method includes such as
Lower step:
S1: electronic equipment start-up operation is monitored, and judges whether USB device is inserted into, under entering if USB device insertion
One step S2, otherwise electronic equipment continues to detect;
S2: if electronic equipment monitoring has been inserted into USB device, then the basic input output system in electronic equipment is to USB
The hardware ID and device type of equipment are read out;
S3: the USB device type being inserted into S2 step as described in being read basic input output system is USB3.0 equipment,
Then the hardware ID of basic input output system record USB device, process terminate;
S4: the USB device type as basic input output system reads insertion is not USB3.0 equipment, then is judged
Whether the hardware ID of existing insertion USB device then notifies embedding if there are the hardware IDs of the insertion USB device in electronic equipment
Enter formula control unit to reset electronic equipment;Such as judge the hardware ID for not having to have insertion USB device in electronic equipment, stream
Journey terminates.
Specifically, the electronic equipment in the S1 step is computer, and in the technical scheme, the electronic equipment can also be
Other devices do not do the selection of electronic equipment in the technical program specifically defined.
In S4 step, embedded control unit carries out reset operation to electronic equipment, and electronic equipment is allowed to re-recognize into
USB3.0 equipment.The reset operation controls the power on/off of USB device by embedded control unit, after USB device power-off
It is re-energised, USB device is re-recognized.USB device itself is not charged, connects after electronic equipment by electronic equipment to it
Power supply is provided.
Basic input output system, BIOS (Basic Input Output System), embedded control unit, EC
(Embedded Controller).USB is the abbreviation of English Universal Serial BUS (universal serial bus), wherein
Text is being referred to as " logical get lines crossed ", is an external bus standard, for being connected and communicate with for specification computer and external equipment.USB
2.0 maximum transmission bandwidth is 480Mbps (i.e. 60MB/s), and the maximum transmission bandwidth of USB 3.0 is up to 5.0Gbps
(640MB/s)。
USB 3.0, which has the advantage that, greatly improves bandwidth --- and up to (USB2.0 is then 5Gbps full duplex
480Mbps half-duplex);Realize better power management;Host device can be made to provide more power, to realize
The application such as USB --- rechargeable battery, LED illumination and mini fan;It can make host quickly recognition means;New agreement makes
Data processing it is more efficient;USB 3.0 can under memory rate defined by memory device transmission of large capacity file;Data
Transmission, USB 3.0 introduce full-duplex data transmission, can synchronize and be written and read at full tilt;Power supply, 3.0 standard of USB are wanted
Seeking USB3.0 interface power supply capacity is 1A, and USB 2.0 is 0.5A;Power management, USB 3.0 do not use device polling,
But use and interrupt driving agreement, therefore, before having the transmission of interrupt requests data, to machine equipment not power consumption, in brief,
USB 3.0 supports the states such as standby, suspend mode and pause;Support system, Windows 10, Window8.1, Window8,
Windows Vista, Windows 7SP1 and Linux (and Android based on Linux) support USB 3.0, and apple is newest
The apple Mac book air and Mac book pro of publication also supports that, for XP system, USB 3.0 also can be used.
The technical program mainly solves the problems, such as that USB3.0 equipment is mistakenly identified as USB2.0, and present solution provides one kind can
Automatic identification and the method that resets automatically in the state that device type identifies mistake, by BIOS to device id and equipment
Type judgement notifies EC when there is identification mistake, and then EC by hardware progress reset operation equipment can be re-recognized
At 3.0 equipment, to solve the problems, such as USB device identification mistake and need artificial participate in.
Still there are many embodiment, all technical sides formed using equivalents or equivalent transformation by the present invention
Case is within the scope of the present invention.
Claims (5)
1. a kind of scheme of USB device identification automatic error correction, it is characterised in that:
This method comprises the following steps:
S1: electronic equipment start-up operation is monitored, and judges whether USB device is inserted into, and is entered in next step if USB device insertion
Rapid S2, otherwise electronic equipment continues to detect;
S2: if electronic equipment monitoring has been inserted into USB device, then the basic input output system in electronic equipment is to USB device
Hardware ID and device type be read out;
S3: the USB device type being inserted into S2 step as described in being read basic input output system is USB3.0 equipment, then base
This input-output system records the hardware ID of USB device, and process terminates;
S4: the USB device type as basic input output system reads insertion is not USB3.0 equipment, then carries out judgement electronics
Whether the hardware ID of existing insertion USB device then notifies embedded if there are the hardware IDs of the insertion USB device in equipment
Control unit resets electronic equipment.
2. a kind of scheme of USB device identification automatic error correction according to claim 1, it is characterised in that: the S1
Electronic equipment in step is computer.
3. a kind of scheme of USB device identification automatic error correction according to claim 1, it is characterised in that: walked in S4
In rapid, embedded control unit carries out reset operation to electronic equipment, and electronic equipment is allowed to re-recognize into USB3.0 equipment.
4. a kind of scheme of USB device identification automatic error correction according to claim 3, it is characterised in that: described heavy
The power on/off that operation controls USB device by embedded control unit is set, is re-energised after USB device power-off, to USB device
It is re-recognized.
5. a kind of scheme of USB device identification automatic error correction according to claim 1, it is characterised in that: walked in S4
In rapid, the hardware ID for not having to have insertion USB device in electronic equipment is such as judged, process terminates.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811003530.6A CN109032831A (en) | 2018-08-30 | 2018-08-30 | A kind of scheme of USB device identification automatic error correction |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811003530.6A CN109032831A (en) | 2018-08-30 | 2018-08-30 | A kind of scheme of USB device identification automatic error correction |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109032831A true CN109032831A (en) | 2018-12-18 |
Family
ID=64625798
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811003530.6A Pending CN109032831A (en) | 2018-08-30 | 2018-08-30 | A kind of scheme of USB device identification automatic error correction |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109032831A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113961498A (en) * | 2021-12-20 | 2022-01-21 | 长芯盛(武汉)科技有限公司 | Method, device and storage medium for processing USB (universal serial bus) mode reduction |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1987843A (en) * | 2005-12-23 | 2007-06-27 | 深圳市朗科科技有限公司 | Self adapting method for USB protocol |
CN101452435A (en) * | 2008-12-12 | 2009-06-10 | 深圳华为通信技术有限公司 | USB terminal mode switching method and terminal |
CN101634886A (en) * | 2009-08-25 | 2010-01-27 | 上海宏力半导体制造有限公司 | Electronic device |
CN102981981A (en) * | 2012-11-20 | 2013-03-20 | 中兴通讯股份有限公司 | USB (Universal Serial Bus) equipment, communication system and working mode switching method thereof |
WO2013158788A2 (en) * | 2012-04-17 | 2013-10-24 | Qualcomm Incorporated | Devices for indicating a physical layer error |
CN105653475A (en) * | 2014-12-03 | 2016-06-08 | 北京握奇智能科技有限公司 | USB device identification method and system |
CN107402893A (en) * | 2016-05-19 | 2017-11-28 | 中兴通讯股份有限公司 | USB switching method and device, system |
CN108132899A (en) * | 2016-12-01 | 2018-06-08 | 中兴通讯股份有限公司 | A kind of transmission mode configuration method, apparatus and system |
-
2018
- 2018-08-30 CN CN201811003530.6A patent/CN109032831A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1987843A (en) * | 2005-12-23 | 2007-06-27 | 深圳市朗科科技有限公司 | Self adapting method for USB protocol |
CN101452435A (en) * | 2008-12-12 | 2009-06-10 | 深圳华为通信技术有限公司 | USB terminal mode switching method and terminal |
CN101634886A (en) * | 2009-08-25 | 2010-01-27 | 上海宏力半导体制造有限公司 | Electronic device |
WO2013158788A2 (en) * | 2012-04-17 | 2013-10-24 | Qualcomm Incorporated | Devices for indicating a physical layer error |
CN102981981A (en) * | 2012-11-20 | 2013-03-20 | 中兴通讯股份有限公司 | USB (Universal Serial Bus) equipment, communication system and working mode switching method thereof |
CN105653475A (en) * | 2014-12-03 | 2016-06-08 | 北京握奇智能科技有限公司 | USB device identification method and system |
CN107402893A (en) * | 2016-05-19 | 2017-11-28 | 中兴通讯股份有限公司 | USB switching method and device, system |
CN108132899A (en) * | 2016-12-01 | 2018-06-08 | 中兴通讯股份有限公司 | A kind of transmission mode configuration method, apparatus and system |
Non-Patent Citations (2)
Title |
---|
PEIJILIU: "win10在USB3.0接口接入3.0U盘被识别为2.0设备的问题", 《HTTPS://ANSWERS.MICROSOFT.COM/ZH-HANS/WINDOWS/FORUM/ALL/WIN10%E5%9C%A8USB30%E6%8E%A5%E5%8F%A3%E6%8E%A5/1D8FA8D5-E46C-4D2E-86DC-4629AADA3ED7?IVK_SA=1024320U》 * |
欲望的无聊: "USB3.0被电脑识别成2.0", 《HTTPS://TIEBA.BAIDU.COM/P/4656563582》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113961498A (en) * | 2021-12-20 | 2022-01-21 | 长芯盛(武汉)科技有限公司 | Method, device and storage medium for processing USB (universal serial bus) mode reduction |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102591837B (en) | USB (universal serial bus) (USB) is hung up and the enhancing of recovery operation | |
CN101350001B (en) | Data sharing and transfer systems and methods | |
CN1240019C (en) | Smart card virtual concentrator | |
US20160179648A1 (en) | System to detect charger and remote host for type-c connector | |
JP5634608B2 (en) | Charging port | |
CN101943941B (en) | Information processing device and method for controlling power | |
US7467313B2 (en) | Method for transmitting a power-saving command between a computer system and peripheral system chips | |
CN105677596B (en) | Control method and electronic equipment | |
CN103412836B (en) | Hot plug processing method, device and system | |
CN102147650A (en) | Peripheral device and method of operating the same | |
JP2005032244A (en) | Method and device for automatic reset of usb smart card device in mute mode | |
JP4421704B2 (en) | Computer power-on method and computer | |
CN107145198B (en) | Method for improving compatibility of server to hard disk and mainboard thereof | |
CN109032831A (en) | A kind of scheme of USB device identification automatic error correction | |
CN110245048A (en) | A kind of cabinet intelligent management system and management method | |
CN106464824B (en) | Pin control method and device | |
EP1965307B1 (en) | Adapter apparatus and data transmission system | |
CN102147739A (en) | Multi-mainboard server system and network-driving method thereof | |
EP3583506A1 (en) | Configuration parameter transfer | |
CN111506332B (en) | Remote-controlled data storage device and remote control system | |
CN216118821U (en) | Intelligent electrical appliance accessory | |
CN114328044B (en) | AIC+box topology testing method, device and system | |
US20230342273A1 (en) | Information processing apparatus and control method | |
CN108132847A (en) | A kind of data processing method, the first electronic equipment and computer storage media | |
US9606951B2 (en) | External electronic device and interface controller and external electronic device control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181218 |