CN106326043A - USB based diagnosis device and method - Google Patents

USB based diagnosis device and method Download PDF

Info

Publication number
CN106326043A
CN106326043A CN201510349527.XA CN201510349527A CN106326043A CN 106326043 A CN106326043 A CN 106326043A CN 201510349527 A CN201510349527 A CN 201510349527A CN 106326043 A CN106326043 A CN 106326043A
Authority
CN
China
Prior art keywords
controller
spi
detection
detection voltage
self
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
CN201510349527.XA
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201510349527.XA priority Critical patent/CN106326043A/en
Publication of CN106326043A publication Critical patent/CN106326043A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a USB (Universal Serial Bus) based diagnosis device. The diagnosis device comprises a first main body. The first main body comprises a first USB connector, a first controller and a displayer; the first USB connector is used for connecting with a second USB connector on a second main body; the first controller is used for controlling to generate a first detection voltage; the first detection voltage is applied to a second controller of the second main body; the second controller is an EC (Embedded Controller) chip on the main board of the second main body; the first controller is also used for receiving a BIOS (Basic Input Output System) POST (Power On Self Test) information sent by the second controller and detecting by utilizing the BIOS POST information to obtain a detection result. The detection result is used for representing a fault problem of an electronic device. The displayer is used for displaying the fault problem of the electronic device. The invention also discloses a USB based diagnosis method.

Description

A kind of diagnostic device based on USB and method
Technical field
The present invention relates to electronic technology, particularly relate to a kind of diagnosis based on USB (universal serial bus) (USB) and set Standby and method.
Background technology
Whether in development or the volume production of product (MP, the Mass Production) stage of product, Electronic equipment cannot normal boot-strap or the problem being most frequently encounter of not starting shooting.The most quickly positioning analysis, looks for Go out and cannot normal boot-strap or basic reason (root cause) and the solution do not started shooting be necessary, But have to take cabinet apart just can carry out when actual analysis problem, however take apart cabinet complex operation step, Expend muscle power, in addition it is also necessary to a lot of instruments cooperations just can complete, especially for all-in-one (AIO, All In One) For, after sale and maintainer take apart cabinet just seem extremely inconvenience, waste time and energy, thus add after sale Cost.
Summary of the invention
In view of this, the embodiment of the present invention provide for solving problems of the prior art a kind of based on The diagnostic device of USB and method, it is possible to find out easily cannot normal boot-strap or do not start shooting, thus reduce and sell Rear cost.
The technical scheme of the embodiment of the present invention is achieved in that
First aspect, the embodiment of the present invention provides a kind of diagnostic device based on general-purpose serial bus USB, its Being characterised by, described diagnostic device includes: the first noumenon;
Wherein, described the first noumenon includes the first USB connector, the first controller and display;
Described first USB connector, for connecting the second USB connector on the second body;
Described first controller, is used for controlling to produce the first detection voltage, and described first detection voltage is used for adding To the second controller on the second body, described second controller is embedding on the mainboard on described second body Enter formula controller EC chip;
Described first controller, is additionally operable to receive the BIOS startup self-detection information that second controller sends, profit Detecting by described BIOS startup self-detection information, obtain testing result, described testing result is used for showing The failure problems of electronic equipment;
Described display, for showing the failure problems of described electronic equipment.
Second aspect, the embodiment of the present invention provides a kind of diagnostic device based on general-purpose serial bus USB, institute Stating diagnostic device to include: the second body, described second body is positioned on electronic equipment, described second body bag Include the second USB connector, second controller and chipset;
Described second USB connector, for connecting the first USB connector on the first noumenon;
Described second controller, for identifying that described the first noumenon adds to the first detection voltage or second of self Detection voltage, when self added voltage is the first detection voltage, is system pipes by the pin configuration of self Reason bus SMbus agreement;
Described second controller, is additionally operable to send request message to described chipset, and described request message is used for Request BIOS startup self-detection information;
Described chipset, for being sent to described second controller by described BIOS startup self-detection information;
Described second controller, is additionally operable to receive the described BIOS startup self-detection information that described chipset sends, Described BIOS startup self-detection information is sent described first controller.
The third aspect, the embodiment of the present invention provides a kind of diagnostic method based on general-purpose serial bus USB, institute The method of stating includes:
The first controller current open mode of detection, described current open mode be Debug card pattern or BIOS reforestation practices;
First controller determines the first order according to described current open mode, and opens to described signal behavior Close send first order, described first order for control signal select switch open SMbus passage or SPIbus passage;
According to described current open mode, first controller determines that the 3rd order, described 3rd order are used for controlling Make described hardware controls parts and produce the first detection voltage or the second detection voltage;
Signal selecting switch opens corresponding passage according to described first order;
Hardware controls parts produce according to described 3rd order and detect voltage accordingly, and described detection voltage includes First detection voltage or the second detection voltage;
First controller utilizes the described BIOS startup self-detection information that on the second body, second controller sends to enter Row detection, obtains testing result, and described testing result is for showing the failure problems of electronic equipment;
Described display shows the failure problems of described electronic equipment.
Fourth aspect, the embodiment of the present invention provides a kind of diagnostic method based on general-purpose serial bus USB, institute The method of stating includes:
The detection voltage that second controller identification the first noumenon produces, when described detection voltage is the first detection electricity During pressure, it is System Management Bus SMbus agreement by the pin configuration of self;
Described second controller chipset on mainboard sends request message, and described request message is used for asking BIOS startup self-detection information;
Described BIOS startup self-detection information is sent to second controller by described chipset;
Described BIOS startup self-detection information is sent the first controller by described second controller.
A kind of based on USB diagnostic device of embodiment of the present invention offer and method, wherein, described diagnosis sets For including: the first noumenon;Wherein, described the first noumenon include the first USB connector, the first controller and Display;Described first USB connector, for connecting the second USB connector on the second body;Institute Stating the first controller, be used for controlling to produce the first detection voltage, described first detection voltage is used for adding to second Second controller on body, described second controller is the embedded control on the mainboard on described second body Device EC chip processed;Described first controller, is additionally operable to receive the BIOS startup self-detection that second controller sends Information, utilizes described BIOS startup self-detection information to detect, obtains testing result, described testing result For showing the failure problems of electronic equipment;Described display, for showing that the fault of described electronic equipment is asked Topic;So, it is not necessary to take apart cabinet can find out easily cannot normal boot-strap or do not start shooting, thus reduce and sell Rear cost.
Accompanying drawing explanation
Fig. 1-1 is the connection diagram using Debug card diagnosis PC fault in correlation technique;
Fig. 1-2 is the composition structural representation one of the embodiment of the present invention one the first noumenon;
Fig. 1-3 is the formalness schematic diagram one of the embodiment of the present invention one the first noumenon;
Fig. 1-4 is the composition structural representation two of the embodiment of the present invention one the first noumenon;
Fig. 1-5 is the formalness schematic diagram two of the embodiment of the present invention one the first noumenon;
Fig. 2 is the composition structural representation of the embodiment of the present invention two the first noumenon;
Fig. 3 is the composition structural representation of the embodiment of the present invention three the first noumenon;
Fig. 4 is the composition structural representation of the embodiment of the present invention four the first noumenon;
Fig. 5 is the composition structural representation of the embodiment of the present invention 5 second body;
Fig. 6 be the embodiment of the present invention 61 kinds diagnostic method based on USB realize schematic flow sheet;
Fig. 7 be embodiment of the present invention kind July 1st diagnostic method based on USB realize schematic flow sheet.
Detailed description of the invention
In correlation technique, electronic equipment is found normal boot-strap or the mode of reason do not started shooting to generally comprise Following two:
1) find the electronic equipment cannot normal boot-strap or do not start shooting by main board diagnostic (Debug) card Reason;
Fig. 1-1 is the connection diagram using Debug card diagnosis PC fault in correlation technique, such as Fig. 1-1 Shown in, the mainboard 10 of PC includes embedded controller (Embeded Controller, EC chip) 12 With chipset 11, wherein the function of EC chip mainly includes three aspects: first, the sequential control of switching on and shutting down System;Second, hardware Gernral Check-up and system health, such as the rotating speed of fan is controlled, and to being The control of system temperature, the 3rd, support input/output (I/O) equipment, serial paralled interface etc..Current Debug Card is essentially all low pin count (LPC, Low Pin Count) interface, cannot normal boot-strap analyzing Or do not start shooting basic reason time, need Debug card by pin (header) and cable (cable) It is connected on the LPC interface of chipset on mainboard 10.Debug card is to utilize basic input and output in mainboard The testing result of system (BIOS, Basic Input Output System) built in self testing program, passes through code Show one by one, in conjunction with code implication zoom table, just can know computer glitch place soon.Especially exist When personal computer (PC) machine can not guide operating system, blank screen, loudspeaker not to cry, main board failure is used to examine Disconnected card will be more convenient, get twice the result with half the effort.
The flow process using Debug card diagnosis PC fault includes: step a, takes cabinet apart;Step b, passes through Debug card 21 is connected on the LPC interface of chipset 11 on mainboard 10 by pin and cable;Step c, The testing result of BIOS built in self testing program is transferred to by the chipset 11 on mainboard 10 by LPC interface Debug card 21;Step d, Debug card 21 is that the detection utilizing BIOS built in self testing program in mainboard is tied Really, by code, the failure problems of PC is shown;Step e, maintainer combines the quick checking of code implication Table, by the guilty culprit understanding PC of tabling look-up.
2) by basic input output system recovery process (BIOS Recovery) find electronic equipment without Method normal boot-strap or the reason do not started shooting;
This BIOS recovery process comprises the following steps: step a, takes cabinet apart;Step b, finds BIOS The jump cap of module (boot block) is started in system;Step c, wire jumper short circuit;Step d, plugs USB flash disk (U Disk), in USB flash disk, storage has BIOS;Step e, runs the startup module in BIOS, makes PC enter Enter DOS system, then carry out BIOS recovery process.
Above-mentioned process fault detection is required for opening computer cabinet just can be carried out, from the above it can be seen that Operate complex steps, especially for all-in-one (AIO, All In One), after sale and maintainer behaviour Make to get up extremely inconvenience, waste time and energy, thus add after cost.
As it was previously stated, when using failure diagnosis card for main board, need to be connected to by electronic equipment on LPC interface, This is accomplished by taking cabinet apart;And BIOS recovery process needs to start wire jumper short circuit in the jump cap of module, Therefore it is also required to take cabinet apart.Based on problem present in above-mentioned background technology, the following enforcement of the present invention Example will provide a kind of diagnostic device based on USB (universal serial bus) (USB, Universal Serial Bus), This equipment is capable of the function completing above-mentioned failure diagnosis card for main board in the case of being not switched on cabinet with basic The function of input-output system recovery process.This is because USB interface be on electronic equipment especially PC, A kind of external interface indispensable on notebook computer and all-in-one, using this USB interface when, it is not necessary to Take the cabinet of PC apart, therefore use more convenient.
The technical solution of the present invention is further elaborated with specific embodiment below in conjunction with the accompanying drawings.
Embodiment one
In order to solve technical problem in aforesaid background technology, the embodiment of the present invention provides a kind of based on USB Diagnostic device, described diagnostic device includes: the first noumenon;Fig. 1-2 is the embodiment of the present invention one the first noumenon Composition structural representation one, as shown in Figure 1-2, described the first noumenon 100 includes: the oneth USB connect Device the 101, first controller 102 and display 109;
Described first USB connector 101, for connecting the second USB connector on the second body;
Here, described second body is the part of functions parts on electronic equipment mainboard, described electronic equipment Can be personal computer (PC), notebook computer, panel computer, desktop computer, desktop computer, integrally Machine (AIO), smart mobile phone, industrial control computer, calculation type server etc. calculate equipment.
Described first controller 102, is used for controlling to produce the first detection voltage, and described first detection voltage is used In the second controller added on the second body, described second controller is on the mainboard on described second body Embedded controller (EC) chip;
Described first controller 102, is additionally operable to receive the BIOS startup self-detection information that second controller sends, Utilizing described BIOS startup self-detection information to detect, obtain testing result, described testing result is used for table The failure problems of bright electronic equipment;
Described display 109, for showing the failure problems of described electronic equipment.
In the embodiment of the present invention, as Figure 1-3, described the first noumenon also includes housing 110, described first USB connector 101 is arranged at outside housing 110, described first controller 102 be arranged at housing 110 it In, described display 103 is arranged on a surface of housing.So, the first noumenon is on mode of appearance Look like a common USB flash disk, but it be but one for diagnostic electronics cannot be started up set Standby.
In the embodiment of the present invention, described display be can with display screen, described display screen can be touch screen, Electronic ink screen and non-touch screen etc., when described display uses non-touch screen, described the first noumenon is also Can include the button as input equipment, described button is for obtaining the input operation of user.When described aobvious Show that when device uses touch screen, described touch screen is also as input equipment.
As preferred embodiment, described testing result exports with the form of digital code, accordingly, such as figure Shown in 1-4, described display is charactron 1091, is used for showing described digital code.User is by inquiry Implication representated by digital code, finds the failure problems of electronic equipment, thus according to the fault of electronic equipment Problem carries out keeping in repair electronic equipment.Now, the outward appearance of the first noumenon is as Figure 1-5.
In the embodiment of the present invention, described diagnostic device includes: the first noumenon;Wherein, described the first noumenon bag Include the first USB connector, the first controller and display;Described first USB connector, is used for connecting The second USB connector on second body;Described first controller, is used for controlling to produce the first detection voltage, Described first detection voltage is for adding to the second controller on the second body, and described second controller is described Embedded controller EC chip on mainboard on second body;Described first controller, is additionally operable to receive The BIOS startup self-detection information that second controller sends, utilizes described BIOS startup self-detection information to detect, Obtaining testing result, described testing result is for showing the failure problems of electronic equipment;Described display, uses In the failure problems showing described electronic equipment;So, it is not necessary to taking that cabinet can find out easily apart cannot be just Normally opened machine or do not start shooting, thus reduce after cost.
Embodiment two
Based on aforesaid embodiment one, the embodiment of the present invention provides a kind of diagnostic device based on USB, described Diagnostic device includes: the first noumenon;Fig. 2 is the composition structural representation of the embodiment of the present invention two the first noumenon, As in figure 2 it is shown, described the first noumenon 100 includes: first USB connector the 101, first controller 102, First SPI memory 103 and display 109;
Described first USB connector 101, for connecting the second USB connector on the second body;
Here, described second body is the part of functions parts on electronic equipment mainboard, described electronic equipment Can be personal computer (PC), notebook computer, panel computer, desktop computer, desktop computer, integrally Machine (AIO), smart mobile phone, industrial control computer, calculation type server etc. calculate equipment.
Described first controller 102, is used for controlling to produce the first detection voltage, and described first detection voltage is used In the second controller added on the second body, described second controller is on the mainboard on described second body Embedded controller (EC) chip;
Described first controller 102, is additionally operable to receive the BIOS startup self-detection information that second controller sends, Utilizing described BIOS startup self-detection information to detect, obtain testing result, described testing result is used for table The failure problems of bright electronic equipment;
Described display 109, for showing the failure problems of described electronic equipment.
Described first controller 102, is additionally operable to control to produce the second detection voltage, described second detection voltage For adding to described second controller;
Described first SPI memory 103, is used for storing BIOS startup self-detection program;
Described first controller 102, is additionally operable to the BIOS startup self-detection of described first SPI memory storage Program switchs the chipset being sent on described second body by the SPI on described second body.
In the embodiment of the present invention, the first detection voltage is different, be embodied as from described second detection voltage During, described first detection voltage can be 1.5 volts (V), second detection voltage can be 0V.
Embodiment three
Based on aforesaid embodiment one, the embodiment of the present invention provides a kind of diagnostic device based on USB, described Diagnostic device includes: the first noumenon;Fig. 3 is the composition structural representation of the embodiment of the present invention three the first noumenon, As it is shown on figure 3, described the first noumenon 100 includes: first USB connector the 101, first controller 102, First SPI memory 103, mechanical switch 104, signal selecting switch 105, hardware controls parts 106 and Display 1091;
Described mechanical switch 104, for selecting Debug card pattern or BIOS reforestation practices for user.
Described first USB connector 101, for connecting the second USB connector on the second body;
Here, described second body is the part of functions parts on electronic equipment mainboard, described electronic equipment Can be personal computer (PC), notebook computer, panel computer, desktop computer, desktop computer, integrally Machine (AIO), smart mobile phone, industrial control computer, calculation type server etc. calculate equipment.
Described first controller 101, is additionally operable to detect current open mode, described current open mode For Debug card pattern or BIOS reforestation practices;
Described first controller 101, is additionally operable to determine the first order according to described current open mode, and Sending the first order to described signal selecting switch, wherein said first order selects switch for control signal Open SMbus passage or SPIbus passage;
Described signal selecting switch 105, for opening corresponding passage according to described first order;
Here, corresponding passage includes SMbus passage or SPIbus passage;Wherein, SMbus leads to Road is for receiving the BIOS startup self-detection information that second controller sends, and described SPIbus passage is used for carrying BIOS startup self-detection program, in order to described BIOS startup self-detection program is sent to the chip on the second body Group.
Described first controller 101, is additionally operable to determine the 3rd order, institute according to described current open mode State the 3rd order and produce the first detection voltage or the second detection voltage for controlling described hardware controls parts, Described first detection voltage or the second detection voltage are for pressurizeing to described second controller;
Described hardware controls parts 106, produce inspection for the 3rd order sent according to the first controller 101 Surveying voltage, described detection voltage includes the first detection voltage or the second detection voltage, and by described detection voltage Adding to the second controller on the second body, described second controller is on the mainboard on described second body Embedded controller (EC) chip;
Described first controller 102, is additionally operable to receive the BIOS startup self-detection information that second controller sends, Utilizing described BIOS startup self-detection information to detect, obtain testing result, described testing result is used for table The failure problems of bright electronic equipment;Described testing result exports with the form of digital code;
Described display 1091, shows the failure problems of described electronic equipment for code in digital form.
Described first SPI memory 103, is used for storing BIOS startup self-detection program;
Described first controller 102, is additionally operable to the BIOS startup self-detection of described first SPI memory storage Program switchs the chipset being sent on described second body by the SPI on described second body.
In the embodiment of the present invention, described the first noumenon also includes housing 110, described first USB connector 101 It is arranged at outside housing 110, first controller the 102, first SPI memory 103, signal selecting switch 105 and within hardware controls parts 106 are arranged at housing 110, mechanical switch 104 and described display 103 It is arranged on a surface of housing;So, the first noumenon look like on mode of appearance one common USB flash disk, but it is but the equipment that cannot be started up for diagnostic electronics.
In the embodiment of the present invention, the second controller in the first controller less than 102 example below, at tool During body is implemented, micro-control unit (Microcontroller Unit, MCU) can be used to realize, Wherein MCU is also known as one chip microcomputer (Single Chip Microcomputer) or single-chip microcomputer.
Embodiment four
Based on aforesaid the first noumenon, the embodiment of the present invention correspondingly provides a kind of second body, and described second Body is positioned on electronic equipment, and Fig. 4 is the composition structural representation of the embodiment of the present invention 4 second body, as Shown in Fig. 4, described second body 200 includes the second USB connector 201, second controller 202 and core Sheet group 203;
Described second USB connector 201, for connecting the first USB connector on the first noumenon;
Described second controller 202, for identify described the first noumenon add to self first detection voltage or Second detection voltage, when self added voltage is the first detection voltage, by the pin configuration of self for being Reason bus SMbus agreement under the overall leadership;
Described second controller 202, is additionally operable to send request message, described request message to described chipset For asking BIOS startup self-detection information;
Described chipset 203, for being sent to described second controller by described BIOS startup self-detection information;
Described second controller 202, is additionally operable to receive the described BIOS startup self-detection letter that described chipset sends Breath, sends described first controller by described BIOS startup self-detection information.
Embodiment five
Based on aforesaid the first noumenon, the embodiment of the present invention correspondingly provides a kind of second body, and described second Body is positioned on electronic equipment, and Fig. 5 is the composition structural representation of the embodiment of the present invention 5 second body, as Shown in Fig. 5, described second body 200 includes the second USB connector 201, second controller 202, core Sheet group 203, SPI switch 204 and the second SPI memory 205;
Described second USB connector 201, for connecting the first USB connector on the first noumenon;
Described second controller 202, for identify described the first noumenon add to self first detection voltage or Second detection voltage, when self added voltage is the first detection voltage, by the pin configuration of self for being Reason bus SMbus agreement under the overall leadership;
Described second controller 202, is additionally operable to send request message, described request message to described chipset For asking BIOS startup self-detection information;
Described chipset 203, for being sent to described second controller by described BIOS startup self-detection information;
Described second controller 202, is additionally operable to receive the described BIOS startup self-detection letter that described chipset sends Breath, sends described first controller by described BIOS startup self-detection information.
Described second SPI memory 204, is used for storing BIOS startup self-detection program;
Described second controller 202, for identify described the first noumenon add to self first detection voltage or Second detection voltage, when self added voltage is the second detection voltage, by the pin configuration of self for being Reason bus SPIbus agreement under the overall leadership;
Described second controller 202, is additionally operable to produce second according to described second detection voltage and orders, and to SPI switch sends the second order, and described second order is used for controlling described SPI switch cutoff the 2nd SPI passage, Described 2nd SPI passage is the SPI passage between described SPI switch and described SPI memory;
Described SPI switch 205, for cutting off described 2nd SPI passage according to described second order;
Described chipset 203, the first controller being additionally operable to receive on described the first noumenon is by described SPI What switch sent is stored in the BIOS startup self-detection program of the first SPI memory storage;
Described chipset 203, is additionally operable to run described BIOS startup self-detection program.
Embodiment six
Based on aforesaid the first noumenon and the second body, the embodiment of the present invention reoffers a kind of based on USB examine Disconnected method, Fig. 6 be the embodiment of the present invention six diagnostic method based on USB realize schematic flow sheet, such as figure Shown in 6, the method includes:
Step 601, the open mode that the first controller detection is current, described current open mode is Debug Mode card or BIOS reforestation practices;
Here, before step 601, the first USB connector of the first noumenon is inserted into second by user On second USB connector of body, after waiting to be plugged, user selects Debug card pattern by mechanical switch Or BIOS reforestation practices, then the first detector will detect current open mode.
Step 602, the first controller determines the first order according to described current open mode;
Step 603, the first controller sends the first order, described first order to described signal selecting switch Switch open SMbus passage or SPIbus passage is selected for control signal;
Step 604, signal selecting switch opens corresponding passage according to described first order;
Step 605, the first controller determines the 3rd order according to described current open mode, the described 3rd Order is used for controlling described hardware controls parts and produces the first detection voltage or the second detection voltage;
Step 606, the first controller sends the 3rd order to hardware controls parts;
Step 607, hardware controls parts produce according to described 3rd order and detect voltage, described inspection accordingly Survey voltage and include the first detection voltage or the second detection voltage;
Step 608, the detection voltage that second controller identification the first noumenon produces;
Step 609, second controller is when described detection voltage is the first detection voltage, by the pin of self It is configured to System Management Bus SMbus agreement;
Step 610, described second controller chipset on mainboard sends request message, and described request disappears Breath is used for asking BIOS startup self-detection information;
Step 611, described BIOS startup self-detection information is sent to second controller by described chipset;
Step 612, described BIOS startup self-detection information is sent the first controller by described second controller.
Step 613, the first controller utilizes the described BIOS that on the second body, second controller sends to start shooting certainly Inspection information detects, and obtains testing result, and described testing result is for showing the failure problems of electronic equipment;
Step 614, described display shows the failure problems of described electronic equipment.
Embodiment seven
Based on aforesaid the first noumenon and the second body, the embodiment of the present invention reoffers a kind of based on USB examine Disconnected method, Fig. 7 be the embodiment of the present invention seven diagnostic method based on USB realize schematic flow sheet, such as figure Shown in 7, the method includes:
Step 701, the open mode that the first controller detection is current, described current open mode is Debug Mode card or BIOS reforestation practices;
Here, before step 701, the first USB connector of the first noumenon is inserted into second by user On second USB connector of body, after waiting to be plugged, user selects Debug card pattern by mechanical switch Or BIOS reforestation practices, then the first detector will detect current open mode.
Step 702, the first controller determines the first order according to described current open mode;
Step 703, the first controller sends the first order, described first order to described signal selecting switch Switch open SMbus passage or SPIbus passage is selected for control signal;
Step 704, signal selecting switch opens corresponding passage according to described first order;
Step 705, the first controller determines the 3rd order according to described current open mode, the described 3rd Order is used for controlling described hardware controls parts and produces the first detection voltage or the second detection voltage;
Step 706, the first controller sends the 3rd order to hardware controls parts;
Step 707, hardware controls parts produce according to described 3rd order and detect voltage, described inspection accordingly Survey voltage and include the first detection voltage or the second detection voltage;
Step 708, the detection voltage that second controller identification the first noumenon produces;
Step 709, second controller is when described detection voltage is the second detection voltage, according to described second The pin configuration of self is System Management Bus SPIbus agreement by detection voltage;
Step 710, described second controller according to described to SPI switch send second order, described second Order is used for controlling described SPI switch cutoff the 2nd SPI passage, and described 2nd SPI passage is described SPI SPI passage between switch and described SPI memory;
Step 711, described SPI switch cuts off described 2nd SPI passage according to described second order;
Step 712, described first controller is by the BIOS startup self-detection journey of described first SPI memory storage Sequence is sent to chipset by described SPI switch;
Step 713, described chipset receives the first controller and is stored in the by what described SPI switch sent The BIOS startup self-detection program of one SPI memory storage;
Step 714, described chipset runs described BIOS startup self-detection program.
Embodiment eight
The embodiment of the present invention provides a kind of diagnostic method based on USB, and the method includes:
Mechanical switch, for selecting the mode of operation of USB diagnostic device for user, wherein mode of operation also known as For start-up mode, mode of operation includes Debug card pattern and BIOS reforestation practices..
Debug card pattern: after mechanical switch selects, the first controller (MCU) can control to allow signal behavior Switch (Signal switch) is switched to SMbus, and the first controller can pass through hardware controls parts (HW simultaneously Control) produce the detect voltage of a 1.5V and allow the second controller identification on mainboard.When on mainboard Second controller (MB EC, wherein MB is mainboard) recognize can be second controller (EC) after 1.5v Pin (pin foot) be configured under SMbus agreement, thus the first controller can pass through second controller Read 80 ports (port) information, it is achieved the function of debug card.
BIOS reforestation practices, after mechanical switch selects, the first controller (MCU) can control to allow signal select Selecting switch and be switched to the SPI of SPI memory (SPI flash), the first controller can pass through hardware controls simultaneously Parts (HW control) produce the detection voltage of a 0V to allow the second controller on mainboard identify. After the second controller on mainboard recognizes, the pin foot of self can be configured to SPIbus agreement, then lead Second controller (EC) on plate can be by SPI switch (SPI switch) first on the first noumenon SPI memory (SPI flash) hangs on the chipset (chipset) of the second controller of mainboard, on mainboard Chipset can utilize what the first memory (SPI flash) on the first noumenon stored to boot up, thus Realize BIOS and recover function.
Pin (detect pin), the detection on the second USB connector on the i.e. second body is detected on mainboard Pin: detecting signal by this, second controller can identify and be operated under any mode of operation, It has three kinds of states, and when the first is to connect the first noumenon, it is 3.3V, in this state, is permissible Connect the input equipments such as common USB device, such as USB flash disk, USB interface-based mouse, keyboard. The second is to connect when having the first noumenon and debug mode card to open, and it is 1.5V;The third is first When body and BIOS reforestation practices are opened, it is 0V.
The diagnostic device of the above embodiment of the present invention offer and diagnostic method, it is possible to realize being not switched on cabinet In the case of complete debug mode card and the dual-use function of BIOS reforestation practices.The embodiment of the present invention provides Technical scheme, has the advantage that 1) for after sale and maintainer operates extremely easy, save time province Power, improves maintenance efficiency.Personnel after sale also can visit and directly be analyzed in client and diagnose;2) significantly Reduce after cost.
Should be understood that during description is in the whole text that " embodiment " or " embodiment " mentioned means with real Execute the relevant special characteristic of example, structure or characteristic to be included at least one embodiment of the present invention.Therefore, Not necessarily refer in " in one embodiment " or " in one embodiment " that entire disclosure occurs everywhere Identical embodiment.Additionally, these specific features, structure or characteristic can combine in any suitable manner In one or more embodiments.Should be understood that in various embodiments of the present invention, the sequence of above-mentioned each process Number size be not meant to the priority of execution sequence, the execution sequence of each process should be patrolled with its function and inherence Collect and determine, and the implementation process of the embodiment of the present invention should not constituted any restriction.The invention described above embodiment Sequence number, just to describing, does not represent the quality of embodiment.
It should be noted that in this article, term " include ", " comprising " or its any other variant meaning Containing comprising of nonexcludability, so that include the process of a series of key element, method, article or dress Put and not only include those key elements, but also include other key elements being not expressly set out, or also include for The key element that this process, method, article or device are intrinsic.In the case of there is no more restriction, by The key element that statement " including ... " limits, it is not excluded that including the process of this key element, method, thing Product or device there is also other identical element.
In several embodiments provided herein, it should be understood that disclosed equipment and method, can To realize by another way.Apparatus embodiments described above is only schematically, such as, and institute Stating the division of unit, be only a kind of logic function and divide, actual can have other dividing mode when realizing, As: multiple unit or assembly can be in conjunction with, or it is desirably integrated into another system, or some features can be neglected Slightly, or do not perform.It addition, the coupling each other of shown or discussed each ingredient or directly coupling Close or communication connection can be the INDIRECT COUPLING by some interfaces, equipment or unit or communication connection, can Be electrical, machinery or other form.
The above-mentioned unit illustrated as separating component can be or may not be physically separate, as The parts that unit shows can be or may not be physical location;Both may be located at a place, it is possible to To be distributed on multiple NE;Part or all of unit therein can be selected according to the actual needs Realize the purpose of the present embodiment scheme.
It addition, each functional unit in various embodiments of the present invention can be fully integrated in a processing unit, Can also be that each unit is individually as a unit, it is also possible to two or more unit are integrated in one In individual unit;Above-mentioned integrated unit both can realize to use the form of hardware, it would however also be possible to employ hardware adds soft The form of part functional unit realizes.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can Completing with the hardware relevant by programmed instruction, aforesaid program can be stored in embodied on computer readable storage In medium, this program upon execution, performs to include the step of said method embodiment;And aforesaid storage is situated between Matter includes: movable storage device, read only memory (Read Only Memory, ROM), magnetic disc or The various medium that can store program code such as CD.
Or, if the above-mentioned integrated unit of the present invention is using the form realization of software function module and as independent Production marketing or use time, it is also possible to be stored in a computer read/write memory medium.Based on so Understanding, the part that prior art is contributed by the technical scheme of the embodiment of the present invention the most in other words can Embodying with the form with software product, this computer software product is stored in a storage medium, bag Include some instructions with so that a computer equipment (can be personal computer, server or network Equipment etc.) perform all or part of of method described in each embodiment of the present invention.And aforesaid storage medium bag Include: the various media that can store program code such as movable storage device, ROM, magnetic disc or CD.
The above, the only detailed description of the invention of the present invention, but protection scope of the present invention is not limited to This, any those familiar with the art, in the technical scope that the invention discloses, can readily occur in Change or replacement, all should contain within protection scope of the present invention.Therefore, protection scope of the present invention should It is as the criterion with described scope of the claims.

Claims (11)

1. a diagnostic device based on general-purpose serial bus USB, it is characterised in that described diagnostic device Including: the first noumenon;
Wherein, described the first noumenon includes the first USB connector, the first controller and display;
Described first USB connector, for connecting the second USB connector on the second body;
Described first controller, is used for controlling to produce the first detection voltage, and described first detection voltage is used for adding To the second controller on the second body, described second controller is embedding on the mainboard on described second body Enter formula controller EC chip;
Described first controller, is additionally operable to receive the BIOS startup self-detection information that second controller sends, profit Detecting by described BIOS startup self-detection information, obtain testing result, described testing result is used for showing The failure problems of electronic equipment;
Described display, for showing the failure problems of described electronic equipment.
Equipment the most according to claim 1, it is characterised in that described testing result is with digital code Form exports, and accordingly, described display is charactron, is used for showing described digital code.
Equipment the most according to claim 1, it is characterised in that described first controller, is additionally operable to control System produces the second detection voltage, and described second detection voltage is used for adding to described second controller;
Described the first noumenon also includes the first SPI memory;
Described first SPI memory, is used for storing BIOS startup self-detection program;
Described first controller, is additionally operable to the BIOS startup self-detection journey of described first SPI memory storage Sequence switchs the chipset being sent on described second body by the SPI on described second body.
4. according to the equipment described in any one of claims 1 to 3, it is characterised in that described the first noumenon is also Including:
Described mechanical switch, for selection Debug card pattern or BIOS reforestation practices.
Equipment the most according to claim 4, it is characterised in that described the first noumenon also includes that signal selects Select switch and hardware controls parts, wherein:
Described first controller, is additionally operable to detect current open mode, and described current open mode is Debug card pattern or BIOS reforestation practices;
Described first controller, is additionally operable to determine the first order according to described current open mode, and to institute Stating signal selecting switch and send the first order, wherein said first order selects switch open for control signal SMbus passage or SPIbus passage;
Described signal selecting switch, for opening corresponding passage according to described first order;
Described first controller, is additionally operable to determine the 3rd order according to described current open mode, described Three orders are used for controlling described hardware controls parts and produce the first detection voltage or the second detection voltage, described First detection voltage or the second detection voltage are for pressurizeing to described second controller.
6. a diagnostic device based on general-purpose serial bus USB, it is characterised in that described diagnostic device Including: the second body, described second body is positioned on electronic equipment, and described second body includes the 2nd USB Adapter, second controller and chipset;
Described second USB connector, for connecting the first USB connector on the first noumenon;
Described second controller, for identifying that described the first noumenon adds to the first detection voltage or second of self Detection voltage, when self added voltage is the first detection voltage, is system pipes by the pin configuration of self Reason bus SMbus agreement;
Described second controller, is additionally operable to send request message to described chipset, and described request message is used for Request BIOS startup self-detection information;
Described chipset, for being sent to described second controller by described BIOS startup self-detection information;
Described second controller, is additionally operable to receive the described BIOS startup self-detection information that described chipset sends, Described BIOS startup self-detection information is sent described first controller.
Equipment the most according to claim 6, it is characterised in that described second body also includes SPI Switch and the second SPI memory;
Described second SPI memory, is used for storing BIOS startup self-detection program;
Described second controller, for identifying that described the first noumenon adds to the first detection voltage or second of self Detection voltage, when self added voltage is the second detection voltage, is system pipes by the pin configuration of self Reason bus SPIbus agreement;
Described second controller, is additionally operable to produce the second order according to described second detection voltage, and to SPI Switch sends the second order, and described second order is used for controlling described SPI switch cutoff the 2nd SPI passage, Described 2nd SPI passage is the SPI passage between described SPI switch and described SPI memory;
Described SPI switchs, for cutting off described 2nd SPI passage according to described second order;
Described chipset, the first controller being additionally operable to receive on described the first noumenon is switched by described SPI The BIOS startup self-detection program being stored in the first SPI memory storage sent;
Described chipset, is additionally operable to run described BIOS startup self-detection program.
8. a diagnostic method based on general-purpose serial bus USB, it is characterised in that described method includes:
The first controller current open mode of detection, described current open mode be Debug card pattern or BIOS reforestation practices;
First controller determines the first order according to described current open mode, and opens to described signal behavior Close send first order, described first order for control signal select switch open SMbus passage or SPIbus passage;
According to described current open mode, first controller determines that the 3rd order, described 3rd order are used for controlling Make described hardware controls parts and produce the first detection voltage or the second detection voltage;
Signal selecting switch opens corresponding passage according to described first order;
Hardware controls parts produce according to described 3rd order and detect voltage accordingly, and described detection voltage includes First detection voltage or the second detection voltage;
First controller utilizes the described BIOS startup self-detection information that on the second body, second controller sends to enter Row detection, obtains testing result, and described testing result is for showing the failure problems of electronic equipment;
Described display shows the failure problems of described electronic equipment.
Method the most according to claim 8, it is characterised in that described first controller is by described first The BIOS startup self-detection program of SPI memory storage is sent to second by the SPI switch on the second body Chipset on body.
10. a diagnostic method based on general-purpose serial bus USB, it is characterised in that described method includes:
The detection voltage that second controller identification the first noumenon produces, when described detection voltage is the first detection electricity During pressure, it is System Management Bus SMbus agreement by the pin configuration of self;
Described second controller chipset on mainboard sends request message, and described request message is used for asking BIOS startup self-detection information;
Described BIOS startup self-detection information is sent to second controller by described chipset;
Described BIOS startup self-detection information is sent the first controller by described second controller.
11. methods according to claim 10, it is characterised in that described method also includes:
The second detection voltage that described second controller identification the first noumenon produces, according to described second detection electricity The pin configuration of self is System Management Bus SPIbus agreement by pressure;
Described second controller sends the second order according to described to SPI switch, and described second order is used for controlling Making described SPI switch cutoff the 2nd SPI passage, described 2nd SPI passage is that described SPI switchs with described SPI passage between SPI memory;
Described SPI switch cuts off described 2nd SPI passage according to described second order;
Described chipset receives the first controller and is stored in a SPI storage by what described SPI switch sent The BIOS startup self-detection program of device storage;
Described chipset runs described BIOS startup self-detection program.
CN201510349527.XA 2015-06-23 2015-06-23 USB based diagnosis device and method Pending CN106326043A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510349527.XA CN106326043A (en) 2015-06-23 2015-06-23 USB based diagnosis device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510349527.XA CN106326043A (en) 2015-06-23 2015-06-23 USB based diagnosis device and method

Publications (1)

Publication Number Publication Date
CN106326043A true CN106326043A (en) 2017-01-11

Family

ID=57728989

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510349527.XA Pending CN106326043A (en) 2015-06-23 2015-06-23 USB based diagnosis device and method

Country Status (1)

Country Link
CN (1) CN106326043A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108628690A (en) * 2017-03-17 2018-10-09 致伸科技股份有限公司 Embedded equipment debuggers and its method
CN111611182A (en) * 2020-05-20 2020-09-01 合肥联宝信息技术有限公司 Electronic equipment capable of being detected by detection device and detection system
CN113806152A (en) * 2021-09-14 2021-12-17 合肥联宝信息技术有限公司 Fault diagnosis card and equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5535330A (en) * 1994-07-22 1996-07-09 Dell Usa, L.P. System and method for error location in printed wire assemblies by external power on self test (post) commands
CN1432918A (en) * 2002-01-18 2003-07-30 英业达股份有限公司 Debugging method via USB connection system
CN2932488Y (en) * 2005-12-20 2007-08-08 英业达股份有限公司 Fault detecting device
CN101364197A (en) * 2008-10-17 2009-02-11 华硕电脑股份有限公司 Exterior starting-up self-testing device applying to computer system and computer system thereof
CN101551766A (en) * 2008-04-02 2009-10-07 微星科技股份有限公司 Device and method for displaying BIOS error detecting code
CN104035844A (en) * 2013-03-04 2014-09-10 联想(北京)有限公司 Fault testing method and electronic device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5535330A (en) * 1994-07-22 1996-07-09 Dell Usa, L.P. System and method for error location in printed wire assemblies by external power on self test (post) commands
CN1432918A (en) * 2002-01-18 2003-07-30 英业达股份有限公司 Debugging method via USB connection system
CN2932488Y (en) * 2005-12-20 2007-08-08 英业达股份有限公司 Fault detecting device
CN101551766A (en) * 2008-04-02 2009-10-07 微星科技股份有限公司 Device and method for displaying BIOS error detecting code
CN101364197A (en) * 2008-10-17 2009-02-11 华硕电脑股份有限公司 Exterior starting-up self-testing device applying to computer system and computer system thereof
CN104035844A (en) * 2013-03-04 2014-09-10 联想(北京)有限公司 Fault testing method and electronic device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108628690A (en) * 2017-03-17 2018-10-09 致伸科技股份有限公司 Embedded equipment debuggers and its method
CN111611182A (en) * 2020-05-20 2020-09-01 合肥联宝信息技术有限公司 Electronic equipment capable of being detected by detection device and detection system
CN113806152A (en) * 2021-09-14 2021-12-17 合肥联宝信息技术有限公司 Fault diagnosis card and equipment
CN113806152B (en) * 2021-09-14 2024-04-19 合肥联宝信息技术有限公司 Fault diagnosis card and equipment

Similar Documents

Publication Publication Date Title
CN101436154B (en) Startup and closedown test system and method of computer mainboard
CN105938450A (en) Automatic debug information collection method and system
US20080294939A1 (en) Debugging device and method using the lpc/pci bus
CN100375054C (en) Monitoring diagnosis device of computer main board failure
CN108304299A (en) Server power-up state monitors system and method, computer storage and equipment
CN101320071A (en) Testing apparatus, system, and method for testing at least one device with a connection interface
KR20060109522A (en) Method and apparatus for testing computer system
CN2932488Y (en) Fault detecting device
CN105824388A (en) Power-on/off detection method, device and system
CN103631688A (en) Method and system for testing interface signal
CN104077203A (en) Method and device for diagnosing computer hardware through USB interface
CN103530219A (en) Server with touch display module and touch display module thereof
CN109032888A (en) A kind of server start-up course fault detection method, device and controlled terminal
CN106326043A (en) USB based diagnosis device and method
CN109344104A (en) Electronic equipment and method for transmitting signals
CN110597475A (en) Automatic switching control system and method for multi-network-port multi-host medical display
CN102289399A (en) System and method for testing main board of computer
CN108491057A (en) A kind of starting-up method and its server of server
CN102305906B (en) Chip testing method and device
CN106095628A (en) Computer adjustment method and device
CN103795857B (en) Information processing method and electronic equipment
CN104035907A (en) Backup method for computer system and computer system
CN210377434U (en) Automatic switching control system of multi-network-port multi-host medical display
CN112596983A (en) Monitoring method for connector in server
CN107122276A (en) Running status output circuit and running status output intent

Legal Events

Date Code Title Description
PB01 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170111