[go: up one dir, main page]

CN104063297A - Method and device capable of diagnosing computer hardware through USB interfaces - Google Patents

Method and device capable of diagnosing computer hardware through USB interfaces Download PDF

Info

Publication number
CN104063297A
CN104063297A CN201410338653.0A CN201410338653A CN104063297A CN 104063297 A CN104063297 A CN 104063297A CN 201410338653 A CN201410338653 A CN 201410338653A CN 104063297 A CN104063297 A CN 104063297A
Authority
CN
China
Prior art keywords
diagnostic card
computing machine
interface
hardware
card
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
CN201410338653.0A
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.)
Hefei Lianbao Information Technology Co Ltd
Original Assignee
Hefei Lianbao Information Technology 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 Hefei Lianbao Information Technology Co Ltd filed Critical Hefei Lianbao Information Technology Co Ltd
Priority to CN201410338653.0A priority Critical patent/CN104063297A/en
Publication of CN104063297A publication Critical patent/CN104063297A/en
Pending legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses a method and device capable of diagnosing computer hardware through USB interfaces and relates to the technical field of computer hardware diagnosis. The method comprises the following steps that an interface of a diagnosing card is set as a standard USB interface; when the standard USB interface of the diagnosing card is inserted into a USB interface of a computer, the diagnosing card can send the ID of the diagnosing card to the computer, and the computer can judge whether the diagnosing card is peripheral equipment for diagnosing hardware of the computer; if the computer judge that the diagnosing card is the peripheral equipment for diagnosing the hardware of the computer according to the ID of the diagnosing card, the computer sends detection results of self-check programs in a BIOS of a mainboard of the computer to the diagnosing card through the USB interface; the diagnosing card can diagnose the computer hardware according to the detection results of the self-check programs in the BIOS of the mainboard. According to the method and device, faults of the computer can be diagnosed without disassembling a machine casing. Thus, the user experience is improved.

Description

A kind of method and device that utilizes USB interface to diagnose computer hardware
Technical field
The present invention relates to computer hardware diagnostic techniques field, particularly a kind of method and device that utilizes USB (UniversalSerial Bus, USB (universal serial bus)) interface to diagnose computer hardware.
Background technology
Computer diagnostic card can conveniently judge computer hardware problem, is current popular diagnostic tool.Computer diagnostic card is nearly all UART (Universal AsynchronousReceiver/Transmitter at present, Universal Asynchronous Receiver & dispensing device), LPC (Linear PredictiveCoding, linear predictive coding), SM BUS (System Management Bus, bus controller) interface such as, development along with computer circle, at notebook, desktop computer, all-in-one UART interface disappears, and LPC and SM BUS belong to the interface of computer-internal, during maintenance, must first take computing machine apart, more time-consuming in the time of hardware diagnostic.
For addressing the above problem, the invention provides a kind of method and device that utilizes USB interface to diagnose computer hardware.
Summary of the invention
The object of the present invention is to provide a kind of method and device that utilizes USB interface to diagnose computer hardware, solved the problem in the time of must first taking the diagnostic fees that computing machine causes in prior art apart when maintenance.
According to an aspect of the present invention, provide a kind of method of utilizing USB interface to diagnose computer hardware, comprised the following steps:
The interface of diagnostic card is arranged to the USB interface of standard;
When the USB interface of diagnostic card standard is inserted into the USB interface of computing machine, diagnostic card sends to computing machine, computing machine to judge whether described diagnostic card is the external unit that its hardware is diagnosed its ID (Identity, Identity Code);
If computing machine is according to described ID, judge that described diagnostic card is the external unit that its hardware is diagnosed, computing machine sends to described diagnostic card by the testing result of BIOS in mainboard (Basic Input Output System, Basic Input or Output System (BIOS)) built in self testing program via described USB interface;
Described diagnostic card is diagnosed computer hardware according to the testing result of BIOS built in self testing program in described mainboard.
Preferably, described diagnostic card communicates by USB controller and computing machine, and the ID that comprises equipment device ID and product product ID of diagnostic card is sent to computing machine.
Preferably, described diagnostic card sends to computing machine by its ID, and computing machine judges whether described diagnostic card is that the external unit that its hardware is diagnosed comprises:
Computing machine carries out matching treatment by received diagnostic card ID and the ID prestoring, and searches the ID consistent with described diagnostic card ID;
According to the corresponding relation of found ID and external unit type, determine the external unit type of described ID.
Preferably, described diagnostic card is by the testing result of BIOS built in self testing program in the interface receiving computer mainboard of code translator; Wherein, described code translator interface comprises one of following:
SM BUS interface or I2C interface or 2pin interface or 1pin interface.
Preferably, also comprise:
If it is not the external unit that its hardware is diagnosed that computing machine judges described diagnostic card, described diagnostic card is linked into usb bus interface, to operate accordingly.
According to a further aspect in the invention, provide a kind of device that utilizes USB interface to diagnose computer hardware, having comprised:
Judge module, when the diagnostic card of being arranged to the USB interface of standard is inserted into the USB interface of computing machine, diagnostic card sends to computing machine by its ID, and computing machine judges whether described diagnostic card is the external unit that its hardware is diagnosed;
Diagnostic module, for working as computing machine according to described ID, judge that described diagnostic card is the external unit that its hardware is diagnosed, computing machine sends to described diagnosis by the testing result of BIOS built in self testing program in mainboard via described USB interface, and described diagnostic card is diagnosed computer hardware according to the testing result of BIOS built in self testing program in described mainboard.
Preferably, described diagnostic card communicates by USB controller and computing machine, and the ID that comprises equipment device ID and product product ID of diagnostic card is sent to computing machine.
Preferably, described diagnostic card sends to computing machine by its ID, and computing machine judges whether described diagnostic card is that the external unit that its hardware is diagnosed comprises:
Computing machine carries out matching treatment by received diagnostic card ID and the ID prestoring, and searches the ID consistent with described diagnostic card ID;
According to the corresponding relation of found ID and external unit type, determine the external unit type of described ID.
Preferably, described diagnostic card is by the testing result of BIOS built in self testing program in the interface receiving computer mainboard of code translator; Wherein, described code translator interface comprises one of following:
SM BUS interface or I2C interface or 2pin interface or 1pin interface.
Preferably, described diagnostic module comprises:
Diagnosis unit, when judging that when computing machine described diagnostic card is the external unit that its hardware is diagnosed, diagnoses computer hardware;
Diagnosis unit not, when judging that when computing machine described diagnostic card is not the external unit that its hardware is diagnosed, is linked into usb bus interface by described diagnostic card, to operate accordingly.
Compared with prior art, beneficial effect of the present invention is:
1, need not take casing apart, effectively improve Diagnostic Time;
2, can be common to the computer of any type that possesses this function;
3, can make the product form of Dongle dongle, can be used as annex and sell.
Accompanying drawing explanation
Fig. 1 is a kind of method flow diagram that utilizes USB interface to diagnose computer hardware provided by the invention;
Fig. 2 is a kind of device schematic diagram that utilizes USB interface to diagnose computer hardware provided by the invention;
Fig. 3 be the embodiment of the present invention provide for the structural drawing to the diagnostic card of computer hardware diagnosis.
Embodiment
Below in conjunction with accompanying drawing, to a preferred embodiment of the present invention will be described in detail, should be appreciated that following illustrated preferred embodiment, only for description and interpretation the present invention, is not intended to limit the present invention.
Fig. 1 has shown a kind of method flow diagram that utilizes USB interface to diagnose computer hardware provided by the invention, as shown in Figure 1, comprises the following steps:
Step S101: the USB interface of the interface of diagnostic card being arranged to standard;
Step S102: when the USB interface of diagnostic card standard is inserted into the USB interface of computing machine, diagnostic card sends to computing machine by its ID, computing machine judges whether described diagnostic card is the external unit that its hardware is diagnosed;
Step S103: be the external unit that its hardware is diagnosed if computing machine according to described ID, judges described diagnostic card, computing machine sends to described diagnostic card by the testing result of BIOS built in self testing program in mainboard via described USB interface;
Step S104: described diagnostic card is diagnosed computer hardware according to the testing result of BIOS built in self testing program in described mainboard.
Diagnostic card of the present invention communicates by USB controller and computing machine, and the ID that comprises equipment device ID and product product ID of diagnostic card is sent to computing machine.Described diagnostic card sends to computing machine by its ID, computing machine judges whether described diagnostic card is that the external unit that its hardware is diagnosed comprises: computing machine carries out matching treatment by received diagnostic card ID and the ID prestoring, and searches the ID consistent with described diagnostic card ID; According to the corresponding relation of found ID and external unit type, determine the external unit type of described ID.Described diagnostic card is by the testing result of BIOS built in self testing program in the interface receiving computer mainboard of code translator; Wherein, described code translator interface comprises one of following: SM BUS interface or I2C interface or 2pin interface or 1pin interface.
The present invention also comprises: if computing machine judges described diagnostic card, be not the external unit that its hardware is diagnosed, described diagnostic card be linked into usb bus interface, to operate accordingly.
Fig. 2 has shown a kind of device schematic diagram that utilizes USB interface to diagnose computer hardware provided by the invention, as shown in Figure 2, comprise: judge module 201, while being used for the diagnostic card of being arranged to the USB interface of standard to be inserted into the USB interface of computing machine, diagnostic card sends to computing machine by its ID, and computing machine judges whether described diagnostic card is the external unit that its hardware is diagnosed; Diagnostic module 202, for working as computing machine according to described ID, judge that described diagnostic card is the external unit that its hardware is diagnosed, computing machine sends to described diagnosis by the testing result of BIOS built in self testing program in mainboard via described USB interface, and described diagnostic card is diagnosed computer hardware according to the testing result of BIOS built in self testing program in described mainboard.
Diagnostic card of the present invention communicates by USB controller and computing machine, and the ID that comprises equipment device ID and product product ID of diagnostic card is sent to computing machine.Described diagnostic card sends to computing machine by its ID, computing machine judges whether described diagnostic card is that the external unit that its hardware is diagnosed comprises: computing machine carries out matching treatment by received diagnostic card ID and the ID prestoring, and searches the ID consistent with described diagnostic card ID; According to the corresponding relation of found ID and external unit type, determine the external unit type of described ID.Described diagnostic card is by the testing result of BIOS built in self testing program in the interface receiving computer mainboard of code translator; Wherein, described code translator interface comprises one of following: SM BUS interface or I2C interface or 2pin interface or 1pin interface.
Diagnostic module 202 of the present invention comprises: diagnosis unit, when judging that when computing machine described diagnostic card is the external unit that its hardware is diagnosed, computer hardware is diagnosed; Diagnosis unit not, when judging that when computing machine described diagnostic card is not the external unit that its hardware is diagnosed, is linked into usb bus interface by described diagnostic card, to operate accordingly.
Fig. 3 shown that the embodiment of the present invention provides for the structural drawing to the diagnostic card of computer hardware diagnosis, as shown in Figure 3, comprising: standard USB interface 301, USB controller 302, code translator 303 and digital display tube 304.Described standard USB interface 301: the USB interface that refers to computer standard; USB controller 302: refer to a kind of can with the controller of usb host communication, by specific device ID and product ID, tell that upstream main frame is this USB diagnostic card, be mainly used to and main frame link up after indicate identification; Code translator 303: a kind of interface and host communication that can pass through SM BUS or I2C or 2pin or 1pin, the 80Port diagnostic message passing over can be translated out and drive simultaneously the integrated circuit (IC)-components of charactron below, it is a combinational logic circuit that n input is become to many output terminals of 2^n output, here specifically refer to the shift register that 8 bit strings enter and export position, be used for that computer system embedded controller is passed to the 80port diagnostic message of coming and translate into the information that 7 segment numeral pipes can show; Digital display tube 304: refer to common seven segment digital tubes.
In sum, the present invention has following technique effect:
1, need not take casing apart, effectively improve Diagnostic Time;
2, can be common to the computer of any type that possesses this function;
3, can make the product form of dongle, can be used as annex and sell.
Although above the present invention is had been described in detail, the invention is not restricted to this, those skilled in the art of the present technique can carry out various modifications according to principle of the present invention.Therefore, all modifications of doing according to the principle of the invention, all should be understood to fall into protection scope of the present invention.

Claims (10)

1. a method of utilizing USB interface to diagnose computer hardware, is characterized in that, comprises the following steps:
The interface of diagnostic card is arranged to the USB interface of standard;
When the USB interface of diagnostic card standard is inserted into the USB interface of computing machine, diagnostic card sends to computing machine by its ID, and computing machine judges whether described diagnostic card is the external unit that its hardware is diagnosed;
If it is the external unit that its hardware is diagnosed that computing machine according to described ID, judges described diagnostic card, computing machine sends to described diagnostic card by the testing result of BIOS built in self testing program in mainboard via described USB interface;
Described diagnostic card is diagnosed computer hardware according to the testing result of BIOS built in self testing program in described mainboard.
2. method according to claim 1, is characterized in that, described diagnostic card communicates by USB controller and computing machine, and the ID that comprises equipment device ID and product product ID of diagnostic card is sent to computing machine.
3. method according to claim 2, is characterized in that, described diagnostic card sends to computing machine by its ID, and computing machine judges whether described diagnostic card is that the external unit that its hardware is diagnosed comprises:
Computing machine carries out matching treatment by received diagnostic card ID and the ID prestoring, and searches the ID consistent with described diagnostic card ID;
According to the corresponding relation of found ID and external unit type, determine the external unit type of described ID.
4. method according to claim 1, is characterized in that, described diagnostic card is by the testing result of BIOS built in self testing program in the interface receiving computer mainboard of code translator; Wherein, described code translator interface comprises one of following:
SM BUS interface or I2C interface or 2pin interface or 1pin interface.
5. method according to claim 4, is characterized in that, also comprises:
If it is not the external unit that its hardware is diagnosed that computing machine judges described diagnostic card, described diagnostic card is linked into usb bus interface, to operate accordingly.
6. a device that utilizes USB interface to diagnose computer hardware, is characterized in that, comprising:
Judge module, when the diagnostic card of being arranged to the USB interface of standard is inserted into the USB interface of computing machine, diagnostic card sends to computing machine by its ID, and computing machine judges whether described diagnostic card is the external unit that its hardware is diagnosed;
Diagnostic module, for working as computing machine according to described ID, judge that described diagnostic card is the external unit that its hardware is diagnosed, computing machine sends to described diagnosis by the testing result of BIOS built in self testing program in mainboard via described USB interface, and described diagnostic card is diagnosed computer hardware according to the testing result of BIOS built in self testing program in described mainboard.
7. device according to claim 6, is characterized in that, described diagnostic card communicates by USB controller and computing machine, and the ID that comprises equipment device ID and product product ID of diagnostic card is sent to computing machine.
8. device according to claim 7, is characterized in that, described diagnostic card sends to computing machine by its ID, and computing machine judges whether described diagnostic card is that the external unit that its hardware is diagnosed comprises:
Computing machine carries out matching treatment by received diagnostic card ID and the ID prestoring, and searches the ID consistent with described diagnostic card ID;
According to the corresponding relation of found ID and external unit type, determine the external unit type of described ID.
9. device according to claim 6, is characterized in that, described diagnostic card is by the testing result of BIOS built in self testing program in the interface receiving computer mainboard of code translator; Wherein, described code translator interface comprises one of following:
SM BUS interface or I2C interface or 2pin interface or 1pin interface.
10. device according to claim 9, is characterized in that, described diagnostic module comprises:
Diagnosis unit, when judging that when computing machine described diagnostic card is the external unit that its hardware is diagnosed, diagnoses computer hardware;
Diagnosis unit not, when judging that when computing machine described diagnostic card is not the external unit that its hardware is diagnosed, is linked into usb bus interface by described diagnostic card, to operate accordingly.
CN201410338653.0A 2014-07-16 2014-07-16 Method and device capable of diagnosing computer hardware through USB interfaces Pending CN104063297A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410338653.0A CN104063297A (en) 2014-07-16 2014-07-16 Method and device capable of diagnosing computer hardware through USB interfaces

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410338653.0A CN104063297A (en) 2014-07-16 2014-07-16 Method and device capable of diagnosing computer hardware through USB interfaces

Publications (1)

Publication Number Publication Date
CN104063297A true CN104063297A (en) 2014-09-24

Family

ID=51551019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410338653.0A Pending CN104063297A (en) 2014-07-16 2014-07-16 Method and device capable of diagnosing computer hardware through USB interfaces

Country Status (1)

Country Link
CN (1) CN104063297A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104375916A (en) * 2014-10-17 2015-02-25 合肥联宝信息技术有限公司 Method and device for directly achieving computer hardware diagnosis through USB interface
CN105573894A (en) * 2014-10-08 2016-05-11 天津田琳科技有限公司 Computer fault alarm
CN106909468A (en) * 2015-12-22 2017-06-30 中电科技(北京)有限公司 A kind of computer fault diagnosis method based on UEFI firmwares
CN106933717A (en) * 2017-03-13 2017-07-07 廖强 A kind of computer hardware test device
CN113742121A (en) * 2021-08-12 2021-12-03 上海宏英智能科技股份有限公司 Mechanical equipment fault diagnosis method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848094A (en) * 2005-04-15 2006-10-18 三星电子株式会社 Apparatus and method for testing computer system
CN2891081Y (en) * 2006-03-01 2007-04-18 刘传夕 Computer main board fault diagnostic card
US20120005656A1 (en) * 2010-06-30 2012-01-05 Chia Chien Chuang Adapter and debugging method using the same
CN102385545A (en) * 2010-08-30 2012-03-21 鸿富锦精密工业(深圳)有限公司 BIOS (Basic Input Output System) debugger and debugging method
CN103164357A (en) * 2011-12-17 2013-06-19 鸿富锦精密工业(深圳)有限公司 Removal strategy setting method of electronic device and universal serial bus (USB) device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848094A (en) * 2005-04-15 2006-10-18 三星电子株式会社 Apparatus and method for testing computer system
CN2891081Y (en) * 2006-03-01 2007-04-18 刘传夕 Computer main board fault diagnostic card
US20120005656A1 (en) * 2010-06-30 2012-01-05 Chia Chien Chuang Adapter and debugging method using the same
CN102385545A (en) * 2010-08-30 2012-03-21 鸿富锦精密工业(深圳)有限公司 BIOS (Basic Input Output System) debugger and debugging method
CN103164357A (en) * 2011-12-17 2013-06-19 鸿富锦精密工业(深圳)有限公司 Removal strategy setting method of electronic device and universal serial bus (USB) device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105573894A (en) * 2014-10-08 2016-05-11 天津田琳科技有限公司 Computer fault alarm
CN104375916A (en) * 2014-10-17 2015-02-25 合肥联宝信息技术有限公司 Method and device for directly achieving computer hardware diagnosis through USB interface
CN106909468A (en) * 2015-12-22 2017-06-30 中电科技(北京)有限公司 A kind of computer fault diagnosis method based on UEFI firmwares
CN106933717A (en) * 2017-03-13 2017-07-07 廖强 A kind of computer hardware test device
CN113742121A (en) * 2021-08-12 2021-12-03 上海宏英智能科技股份有限公司 Mechanical equipment fault diagnosis method and device

Similar Documents

Publication Publication Date Title
CN109558282B (en) A PCIE link detection method, system, electronic device and storage medium
CN101778307B (en) Device for testing functions of set top box
CN104077203A (en) Method and device for diagnosing computer hardware through USB interface
CN104063297A (en) Method and device capable of diagnosing computer hardware through USB interfaces
CN102214132B (en) Method and device for debugging Loongson central processing unit (CPU), south bridge chip and north bridge chip
CN103365753A (en) Debugging apparatus and method for performing a debugging process on a target system
CN103970628B (en) Automatic detection system and automatic detection method thereof
CN106250279B (en) debugging method and device thereof
CN104182314A (en) Dragon core processor server motherboard maintaining method
CN204904449U (en) Semi-automatic detection device for detecting cost control function of dual-mode cost control electric energy meter
CN101114249A (en) I2C bus testing apparatus of mainboard and method thereof
CN104572375A (en) Method and device for diagnosing computer through display interface
CN204044803U (en) A kind of server master board trouble-shooter of USB interface
US9459985B2 (en) Bios tracing using a hardware probe
CN103077144A (en) Serial peripheral interface (SPI) communication interface for ensuring data integrity, and communication method thereof
CN106610885A (en) Server failure detection system and method
CN106557408A (en) A kind of computer fault alarm system and method
CN106708675A (en) Method for detecting faults before starting of computers
CN104375916A (en) Method and device for directly achieving computer hardware diagnosis through USB interface
US8635502B2 (en) Debug card and method for diagnosing faults
CN101739320A (en) Error detection device and method for server
EP2942714B1 (en) Monitoring method, monitoring apparatus, and electronic device
CN102541705B (en) Testing method for computer and tooling plate
CN115801540B (en) PCIe device degradation detection method, device, terminal and storage medium
CN111538770B (en) Data monitoring method and device, electronic equipment and readable storage medium

Legal Events

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

Application publication date: 20140924

RJ01 Rejection of invention patent application after publication