Disclosure of Invention
The invention mainly aims to provide a diagnosis device and a diagnosis method, and aims to solve the technical problem that the existing fault diagnosis card in the prior art is difficult to realize power supply diagnosis of a single board to be detected.
In order to achieve the above object, the present invention provides a diagnostic device, which includes a logic board, wherein the diagnostic device is connected to a board to be detected; wherein,
the logic board is used for acquiring a target signal and a selected preset signal of the single board to be detected; and obtaining a power supply diagnosis result of the single board to be detected according to the comparison result of the selected preset signal and the target signal.
Alternatively to this, the first and second parts may,
the logic board is further configured to acquire a target single board type of the single board to be detected before acquiring the selected preset signal of the single board to be detected; and according to the type of the target veneer, determining a selected preset signal corresponding to the veneer to be detected in a preset signal set, wherein the preset signal set comprises preset signals corresponding to different veneer types.
Alternatively to this, the first and second parts may,
the logic board is further configured to, before obtaining the target veneer type of the veneer to be detected, obtain a target veneer serial number of the veneer to be detected, and obtain the target veneer type of the veneer to be detected according to the target veneer serial number.
Alternatively to this, the first and second parts may,
the logic board is further configured to obtain a serial number of a board to be updated, a signal to be updated, and a type of the board to be updated, and update the preset comparison table by using the serial number of the board to be updated and the type of the board to be updated; and updating the preset signal set by using the type of the single board to be updated and the signal to be updated.
Optionally, the power supply diagnosis result includes a plurality of power supply abnormality detection results corresponding to a plurality of target signals with power supply abnormality;
the logic board is further configured to determine a plurality of scanning times of a plurality of target signals with power supply abnormality, and determine a final power supply diagnosis result from a plurality of power supply abnormality detection results according to the plurality of scanning times.
Alternatively to this, the first and second parts may,
and the logic board is further configured to determine a target veneer type of the veneer to be detected in a preset comparison table according to the target veneer serial number, where the preset comparison table includes veneer types corresponding to different veneer serial numbers.
Alternatively to this, the first and second parts may,
the logic board is further configured to obtain a target bus signal of the board to be detected, and obtain an 80-port address diagnosis result of the board to be detected according to the target bus signal.
Optionally, the apparatus further comprises a display device;
and the display device is used for receiving the power supply diagnosis result and outputting the power supply diagnosis result.
Alternatively to this, the first and second parts may,
the display device is also used for receiving the 80-port address diagnosis result and outputting the 80-port address diagnosis result.
In addition, in order to achieve the above object, the present invention further provides a diagnostic method for a diagnostic device, wherein the diagnostic device includes a logic board, and the diagnostic device is connected to a board to be detected; the method comprises the following steps:
acquiring a target signal and a selected preset signal of the single board to be detected through the logic board;
and obtaining a power supply diagnosis result of the single board to be detected according to the comparison result of the selected preset signal and the target signal through the logic board.
The technical scheme of the invention provides a diagnosis device, which comprises a logic board, wherein the diagnosis device is connected with a single board to be detected; the logic board is used for acquiring a target signal and a selected preset signal of the single board to be detected; and obtaining a power supply diagnosis result of the single board to be detected according to the comparison result of the selected preset signal and the target signal.
By utilizing the device, the power supply diagnosis result of the single board to be detected can be obtained according to the comparison result of the target signal of the single board to be detected and the preset signal corresponding to the single board to be detected, so that the power supply diagnosis of the single board to be detected is realized.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that all the directional indicators (such as up, down, left, right, front, and rear … …) in the embodiment of the present invention are only used to explain the relative position relationship between the components, the movement situation, etc. in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indicator is changed accordingly.
In the present invention, unless otherwise expressly stated or limited, the terms "connected," "secured," and the like are to be construed broadly, and for example, "secured" may be a fixed connection, a removable connection, or an integral part; can be mechanically or electrically connected; they may be directly connected or indirectly connected through intervening media, or they may be connected internally or in any other suitable relationship, unless expressly stated otherwise. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In addition, if there is a description of "first", "second", etc. in an embodiment of the present invention, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, the meaning of "and/or" appearing throughout includes three juxtapositions, exemplified by "A and/or B" including either A or B or both A and B. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a first embodiment of the diagnostic apparatus of the present invention, where thediagnostic apparatus 1 includes alogic board 11, and thediagnostic apparatus 1 is connected to asingle board 2 to be detected; wherein,
thelogic board 11 is configured to obtain a target signal and a selected preset signal of theboard 2 to be detected; and obtaining a power supply diagnosis result of thesingle board 2 to be detected according to the comparison result of the selected preset signal and the target signal.
It should be noted that, in the present invention, the board to be detected may be any type of board, i.e., a single circuit board, the board to be detected is connected to the diagnostic device, and the diagnostic device is powered by the front power of 3V3SB, so as to ensure that the power supply of the diagnostic device is always on position.
The diagnostic device is connected with the single board to be detected, and then obtains a real-time power signal, namely a target signal, of the single board to be detected, and simultaneously obtains a normal power signal, namely a selected preset signal, of the single board to be detected, wherein the normal power signal is not in fault and is in a normal operation state. And then comparing the selected preset signal with the target signal to obtain a comparison result, if the comparison results are the same, obtaining a power supply diagnosis result that the power supply of the single board to be detected is normal, and if the comparison results are different, obtaining a power supply diagnosis result that the power supply of the single board to be detected is abnormal.
Further, thelogic board 11 is further configured to, before acquiring the selected preset signal of theboard 2 to be detected, acquire a target board type of theboard 2 to be detected; and according to the type of the target veneer, determining a selected preset signal corresponding to theveneer 2 to be detected in a preset signal set, wherein the preset signal set comprises preset signals corresponding to different veneer types.
In the present invention, 10 different preset signals, that is, 10 power PWRGOOD signals, may be involved, the 10 preset signals are determined according to the power rail number requirements of the boards of different board types, and the corresponding relationship between the different board types and the 10 preset signals is established to obtain a preset signal set. And according to the actual veneer type of the veneer to be detected, namely the target veneer type, determining a preset signal corresponding to the target veneer type in the preset signal set as the selected preset signal corresponding to the veneer to be detected.
The selected preset signal may include a plurality of 10 preset signals, and similarly, the obtained target signals also include a plurality of target signals, and the corresponding target signals need to be compared with the corresponding selected preset signals to obtain comparison results, where the comparison results include comparison results corresponding to the plurality of target signals respectively. And assigning initial values to other preset signals which exceed the 10 preset signals in the preset signal set.
It can be understood that comparing the corresponding target signal with the corresponding selected preset signal substantially compares the value of the corresponding target signal with the value of the corresponding selected preset signal, and obtains a comparison result that the comparison result is actually the respective value.
Further, thelogic board 11 is further configured to, before obtaining the target veneer type of theveneer 2 to be detected, obtain a target veneer serial number of theveneer 2 to be detected, and obtain the target veneer type of theveneer 2 to be detected according to the target veneer serial number.
Specifically, the logic board is further configured to determine a target board type of the board to be detected in a preset comparison table according to the target board serial number, where the preset comparison table includes board types corresponding to different board serial numbers.
In the invention, the serial number of the single board in the preset comparison table provides a 4-bit binary value, based on a binary algorithm, it can be determined that the serial numbers of the single boards correspond to 16, and the type of the single board corresponding to the preset comparison table also includes 16.
In the preset comparison table, the veneer type corresponding to the veneer serial number which is the same as the target veneer serial number of the veneer to be detected is the target veneer type.
Further, in the above-mentioned case,
thelogic board 11 is further configured to obtain a serial number of a board to be updated, a signal to be updated, and a type of the board to be updated, and update the preset comparison table by using the serial number of the board to be updated and the type of the board to be updated; and updating the preset signal set by using the type of the single board to be updated and the signal to be updated.
It can be understood that, the above updating process is to add the relevant information of the board to be updated to the preset comparison table and the preset signal set: the serial number of the single board to be updated, the signal to be updated and the type of the single board to be updated.
Further, the power supply diagnosis result comprises a plurality of power supply abnormality detection results corresponding to a plurality of target signals with abnormal power supplies;
thelogic board 11 is further configured to determine a plurality of scanning times of a plurality of target signals with power supply abnormality, and determine a final power supply diagnosis result from a plurality of power supply abnormality detection results according to the plurality of scanning times.
That is, in the present invention, the final power supply diagnosis result is a diagnosis result corresponding to the target signal of the first abnormality in the diagnosis results.
Further, thelogic board 11 is further configured to obtain a target bus signal of theboard 2 to be detected, and obtain an 80-port address diagnosis result of theboard 2 to be detected according to the target bus signal.
The acquired LPC/ESPI signal of the board to be detected is a target bus signal, and the target bus signal is decoded to obtain an 80-port address diagnosis result of the board to be detected 2.
Referring to fig. 2, fig. 2 is a schematic structural view of a second embodiment of the diagnostic apparatus of the present invention, further comprising adisplay device 12;
thedisplay device 12 is configured to receive the power supply diagnosis result and output the power supply diagnosis result.
Thedisplay device 12 is further configured to receive the 80-port address diagnosis result and output the 80-port address diagnosis result.
The display device can be a nixie tube, when the power supply diagnosis result is that the power supply is abnormal, the nixie tube displays the power supply error reporting flag bit of the single plate to be detected, and when the 80-port address diagnosis result is that the 80-port address is abnormal, the nixie tube displays the 80-port address error reporting flag bit of the single plate to be detected. Generally, the nixie tube displays the power supply diagnosis result corresponding to the first abnormal target signal.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a third embodiment of the diagnostic apparatus of the present invention, further including apreset interface 13 and a connectingline 14; thediagnosis device 1 is connected with one end of the connectingline 14 through thepreset interface 13, and theveneer 2 to be detected is connected with the other end of the connectingline 14.
Wherein, the preset interface is a joint test work group interface, namely a JTAG socket.
The subsequent newly added single board only needs to be endowed with different single board serial numbers (single board ID), the power signal type of the single board is updated in the logic according to the newly added single board serial number, and backward compatibility is realized by upgrading the logic program.
The technical scheme of the invention provides a diagnosis device, which comprises a logic board, wherein the diagnosis device is connected with a single board to be detected; the logic board is used for acquiring a target signal and a selected preset signal of the single board to be detected; and obtaining a power supply diagnosis result of the single board to be detected according to the comparison result of the selected preset signal and the target signal.
By utilizing the device, the power supply diagnosis result of the single board to be detected can be obtained according to the comparison result of the target signal of the single board to be detected and the preset signal corresponding to the single board to be detected, so that the power supply diagnosis of the single board to be detected is realized.
Referring to fig. 4, fig. 4 is a flowchart of a first embodiment of the diagnostic method of the present invention, where the diagnostic device includes a logic board, and the diagnostic device is connected to a board to be detected; the method comprises the following steps:
step S11: acquiring a target signal and a selected preset signal of the single board to be detected through the logic board;
step S12: and obtaining a power supply diagnosis result of the single board to be detected according to the comparison result of the selected preset signal and the target signal through the logic board.
It should be noted that, since the steps executed by the method of the present embodiment are the same as those of the apparatus embodiment, the specific implementation and the achievable technical effects of the method of the present embodiment can refer to the foregoing embodiment, and are not described herein again.
The above description is only an alternative embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.