CN100362488C - Method for monitoring USB device on computer main unit end - Google Patents
Method for monitoring USB device on computer main unit end Download PDFInfo
- Publication number
- CN100362488C CN100362488C CNB2003101199847A CN200310119984A CN100362488C CN 100362488 C CN100362488 C CN 100362488C CN B2003101199847 A CNB2003101199847 A CN B2003101199847A CN 200310119984 A CN200310119984 A CN 200310119984A CN 100362488 C CN100362488 C CN 100362488C
- Authority
- CN
- China
- Prior art keywords
- usb device
- host computer
- monitoring
- execution error
- higher limit
- 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.)
- Expired - Fee Related
Links
Landscapes
- Information Transfer Systems (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention relates to a method for monitoring a USB device on a computer host terminal. A computer host is connected with a USB device. By the execution of a monitoring mode of a computer host system, the standby time of the system and the aberrant interrupt command emitted by the system are used for judging the state of the USB device, and the executing state is adjusted according to the state of the USB device to provide a method for detecting the destruction or the malfunction of the USB device. The method comprises the steps: firstly starting the monitoring mode; entering a waiting period; after receiving a systemic aberrant interrupt command, accumulating and storing the frequency of systemic execution errors according to the systemic aberrant interrupt command; detecting the accumulated frequency of the systemic execution errors, which exceeds the upper limit value of execution errors; finally, reinitializing the USB device.
Description
[technical field]
The present invention is a kind of method of monitoring the USB device, particularly a kind of method at host computer end monitoring USB device.
[background technology]
Universal serial bus (Universal Serial Bus, be called for short USB) sets of advantages of all multi-platform standards is got up, comprise and reduce cost, increase compatibility, and be used for expanding more peripheral equipments, as printer, digital camera, console panel, rocking bar, keyboard, mouse and storage facilities; Its hot plugging function does not need powered-down or start again when the USB peripheral equipment when connecting new peripheral equipment, promptly reach the purpose of plug and play, in addition, when the USB peripheral equipment connects, the user will drive formula and tow to the system file folder or carry out an easy formula of installing, and can load onto driving formula, and dynamically be written into the driving formula because USB supports, only need to carry out once, this device just can use; In addition, the USB line does not need terminal organ, storer address or identification code, only use a kind of small-sized, simple, par, and the new wiring that is easy to connect can be finished installation.
In addition, aspect extendibility, USB can be connected to peripheral equipment interconnected outside hub, and maximum can be supported 127 equipment simultaneously.When the link of computer fills, as long as the user connects the equipment that extra link (normally four or seven), hub by name can be provided, in case of necessity, and more peripheral equipment and hub connected get final product, its usefulness has also been improved the usefulness of first presequence end, and, amount bigger data transmission efficiency faster than legacy system sequence end is provided, therefore, have the device of supporting the USB interface and be the development trend of computer peripheral apparatus backward.
In the use of universal serial bus, roughly can be with reference to detailed explanation in the description (Universal Serial Bus Specification) of universal serial bus, but when universal serial bus goes wrong on carrying out, only in its description, mention in the 7th joint error-detecting and the recovery (error detection and recovery) in the agreement level (protocollayer) of the 8th chapter, then there be not guide and the formulation that associated disorders is got rid of supervisor for damage situation or malfunction when the USB device, when this type of situation takes place in the USB device, to such an extent as to often the user understands the normal timeliness of carrying out of the automatic delay system that expends time in the removal of obstacle program.
[summary of the invention]
In view of this, the invention provides a kind of method at host computer end monitoring USB device, connect a USB device at a host computer, the execution of the monitoring mode by computer host system, the aborted instruction of sending according to system's standby time and system, be used for judging the state of USB device, and adjust its executing state that its purpose is to provide the method for a kind of USB of detection device damage or malfunction according to the state of USB device; Its method includes and at first starts monitoring mode, enter loitering phase again, after receiving the system exception interrupt instruction, add up and the number of times of stocking system execution error according to the system exception interrupt instruction again, detect Accumulation System execution error number of times then and surpass the execution error higher limit, reinitialize the USB device at last.
Pass through the method, when the USB device of host side connection makes a mistake, its host side system not only can detect the mistake that the USB device takes place, more can take correction measure at the different mistake of degree, allow the user can be unconscious under the situation of USB device damage, and then blured the focus that system's execution error is got rid of, cause the normal timeliness of carrying out of delay system.
[description of drawings]
Below, with reference to accompanying drawing, for those skilled in the art that, from detailed description of the present invention, above-mentioned and other purposes of the present invention, feature and advantage will be apparent.
Fig. 1 illustrates the method flow diagram of the present invention's exposure at host computer end monitoring USB device.
[embodiment]
The present invention is a kind of method at host computer end monitoring USB device.
Please refer to Fig. 1, the method flow diagram of the present invention's exposure at host computer end monitoring USB device has been described, connecting the USB device when host computer, it is by the execution of the monitoring mode of computer host system, adjust the executing state of USB device, it at first need start monitoring mode (step 10), the formula that promptly is subjected in the host computer system of the connecting state of this host computer end and USB device end is monitored then, monitoring period, if there is not the interrupt instruction of the system of receiving, then this system will continue to wait for (step 20); When the signal message of system and this USB device comes and goes when making a mistake, host side can be received system exception interrupt instruction (step 40), inform that obstacle may appear in the binding between host computer and USB device, then can add up and stocking system execution error number of times (step 50) according to the system exception interrupt instruction, its execution error number of times will add up with the reference as system and USB device connecting state, then when system's detection Accumulation System execution error number of times (step 60), when it surpasses the execution error higher limit (step 70), system can think that the setting value of USB device may change because of some foeign element (as artificial setting), so system then reinitializes USB device (step 80), to be adjusted to the systemic presupposition value all about the setting value of USB device, then system can detect the initialization times (step 90) of USB device, its initialization times is also carried out in the mode of accumulation, be used as the index of USB device damaged condition to carry out the initialization higher limit, if its initialization times surpasses when carrying out initialization higher limit (step 100), represent this USB device to reach the damaged condition that to respond, promptly may be subjected to external force damages as static etc., so after judging its USB device damage, system can stop USB device (step 110), its all and getting in touch of host side computer will stop; If its initialization times does not surpass when carrying out initialization higher limit (step 100), then system will arrive end step.
5. when the step of waiting for (step 20) produces system and surpasses a wait higher limit standby time (step 30), the inventive method more comprises the data link (step 31) that stops earlier with the USB device, that is the voltage of reduction D+bus and D-bus, avoid the data of previous transmission to run off because of following step, and then restart USB device (step 32), if this USB device restarts the back again and recovers original initial setting and the energy normal operation, then system can receive the request echo message (step 33) from the USB device after this USB device restarts, so the host side system can set up data link (step 34) with the USB device once more, that is draw high the voltage of D+bus and D-bus, normal condition is replied in the running of USB device.In above-mentioned steps 33, when the request echo message do not received from the USB device, this method further includes: reinitialize this USB device; The initialization times that detects this USB device surpasses one and carries out the initialization higher limit; And this USB device of termination.
The above only is the present invention's preferred embodiment wherein, is not to be used for limiting practical range of the present invention; Be all similar variation and modifications of being done according to the present patent application claims scope, all contained by claims scope of the present invention.
Claims (3)
1. the method at host computer end monitoring USB device is to connect a USB device at a host computer, and the executing state of this USB device is adjusted in the execution of the monitoring mode by computer host system, and this method includes:
Start this monitoring mode;
Wait for;
Receive a system exception interrupt instruction;
Add up and the number of times of stocking system execution error according to this system exception interrupt instruction;
When detecting this Accumulation System execution error number of times, reinitialize this USB device above an execution error higher limit;
When detecting this Accumulation System execution error number of times, turn back to the step of wait less than an execution error higher limit.
2. according to the described method of claim 1, it is characterized in that when surpassed a wait higher limit standby time of waiting for that step produces, this method further comprised the following step at host computer end monitoring USB device:
Stop data link with this USB device;
Restart this USB device;
Receive request echo message from the USB device; And
Set up data link with this USB device.
3. according to the described method of claim 2, it is characterized in that when the request echo message do not received from the USB device, this method further includes at host computer end monitoring USB device:
Reinitialize this USB device;
The initialization times that detects this USB device surpasses one and carries out the initialization higher limit; And
Stop this USB device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2003101199847A CN100362488C (en) | 2003-11-28 | 2003-11-28 | Method for monitoring USB device on computer main unit end |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2003101199847A CN100362488C (en) | 2003-11-28 | 2003-11-28 | Method for monitoring USB device on computer main unit end |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1622047A CN1622047A (en) | 2005-06-01 |
CN100362488C true CN100362488C (en) | 2008-01-16 |
Family
ID=34761461
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2003101199847A Expired - Fee Related CN100362488C (en) | 2003-11-28 | 2003-11-28 | Method for monitoring USB device on computer main unit end |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100362488C (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102401879B (en) * | 2010-09-19 | 2016-03-30 | 北京中星微电子有限公司 | The method of testing of the USB function of chip, Test Host and test macro |
CN102012888A (en) * | 2010-12-06 | 2011-04-13 | 无敌科技(西安)有限公司 | Electronic device capable of automatically restoring in transmission interruption and method thereof |
FR3023633B1 (en) * | 2014-07-11 | 2016-07-29 | Peugeot Citroen Automobiles Sa | DEVICE FOR MANAGING ERRORS ON A SERIAL UNIVERSAL BUS |
CN107017802A (en) * | 2017-05-04 | 2017-08-04 | 广州智光电气股份有限公司 | The supervising device and method of a kind of high-voltage solid-state soft starter |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6119194A (en) * | 1998-03-19 | 2000-09-12 | Advanced Micro Devices, Inc. | Method and apparatus for monitoring universal serial bus activity |
CN1294348A (en) * | 1999-10-21 | 2001-05-09 | 神基科技股份有限公司 | Method for monitor operations of computer system |
EP1158406A2 (en) * | 2000-05-26 | 2001-11-28 | Fujitsu Limited | Communication device |
JP2002244775A (en) * | 2001-02-15 | 2002-08-30 | Matsushita Electric Ind Co Ltd | Usb device |
-
2003
- 2003-11-28 CN CNB2003101199847A patent/CN100362488C/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6119194A (en) * | 1998-03-19 | 2000-09-12 | Advanced Micro Devices, Inc. | Method and apparatus for monitoring universal serial bus activity |
CN1294348A (en) * | 1999-10-21 | 2001-05-09 | 神基科技股份有限公司 | Method for monitor operations of computer system |
EP1158406A2 (en) * | 2000-05-26 | 2001-11-28 | Fujitsu Limited | Communication device |
JP2002244775A (en) * | 2001-02-15 | 2002-08-30 | Matsushita Electric Ind Co Ltd | Usb device |
Also Published As
Publication number | Publication date |
---|---|
CN1622047A (en) | 2005-06-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6625761B1 (en) | Fault tolerant USB method and apparatus | |
CN1139036C (en) | Intensified error handling for I/O loading/storing operation of -PCI apparatus | |
CN102713843A (en) | Method of USB device enumeration including detecting operating system type of USB host | |
US20130013818A1 (en) | Method for switching working mode, usb device, and host device | |
US20070180278A1 (en) | Remote power sensing for hard disk bridge controller | |
CN112835839A (en) | PCIe interface device enumeration method, PCIe interface device enumeration apparatus, PCIe interface device and PCIe interface storage medium | |
US7984201B2 (en) | Communication apparatus and control method for the communication apparatus | |
CN100362488C (en) | Method for monitoring USB device on computer main unit end | |
CN101739320B (en) | Error detection device of server and error detection method thereof | |
CN113590527B (en) | Hanging-up repairing method and device of communication bus, electronic equipment and storage medium | |
JP4646859B2 (en) | USB device and USB connection system | |
CN105824649A (en) | Method and device for determining whether installation of driver application program is successful and electronic equipment | |
US20120072902A1 (en) | Self-Starting Method and Apparatus for Mobile Terminal, and Mobile Terminal | |
CN115407941A (en) | VMD function starting method and related assembly thereof | |
US9058264B2 (en) | Method for repairing communication abnormality between data card and host and data card | |
CN109062627A (en) | A kind of configuration method of Linux server system kdump service | |
US7571266B2 (en) | Peripheral device in a computerized system and method | |
CN107729170B (en) | Method and device for generating dump file by HBA card | |
CN101782856A (en) | Computer system | |
CN112115000B (en) | Remote resetting method and system of system component power supply and BMC remote device | |
CN109491846A (en) | A kind of method and system for server crawl SATA hard disc trace | |
CN111831074B (en) | Expansion system and server host and operation method thereof | |
CN202748775U (en) | Computer system with external BIOS booting effect, bridging device and integrated chip set | |
US20040030821A1 (en) | Portable and interface exchangeable storage system and method for executing the same | |
TWI757923B (en) | Pre-boot execution environment determination system and method thereof |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20080116 Termination date: 20161128 |