Disclosure of Invention
The embodiment of the invention provides a detection method for a control circuit of a mainboard indicator lamp, which aims to achieve the technical effects of simplifying the test procedure and improving the test efficiency.
The detection method for the control circuit of the main board indicator lamp provided by the embodiment of the invention comprises the following steps:
obtaining a mainboard to be tested, wherein the mainboard to be tested comprises a mainboard contact pin, a mainboard COM interface, a first power input end, a first resistor and a first switch, the first resistor is connected between the first power input end and a first pin of the mainboard contact pin, the first switch is connected between a second pin of the mainboard contact pin and a ground potential, the first pin and the second pin are in short circuit, and the second pin is connected with a first indicator light and the first pin of the mainboard COM interface;
controlling to disconnect the first switch and detect the signal state of the first pin so as to judge whether the first resistor is loaded according to the signal state of the first pin;
and controlling to conduct the first switch and detecting the signal state of the first pin so as to judge whether the first switch is loaded or not according to the signal state of the first pin.
In an embodiment of the present invention, the main board to be tested further includes an embedded controller chip, and the control end of the first switch is connected to the embedded controller chip to be controlled by the embedded controller chip to be turned off or turned on.
In an embodiment of the invention, the first indicator light connected to the second pin is a power indicator light.
In an embodiment of the present invention, the first pin is a DSR pin of the motherboard COM interface.
In an embodiment of the present invention, the motherboard to be tested further includes a south bridge chipset, and the control terminal of the first switch is connected to the south bridge chipset to be controlled by the south bridge chipset to turn off or on.
In an embodiment of the present invention, the first indicator light connected to the second pin is a hard disk indicator light.
In an embodiment of the present invention, the first pin is a CTS pin of the motherboard COM interface.
In an embodiment of the invention, the main board to be tested further includes a second power input end, a second resistor and a second switch, the second resistor is connected between the second power input end and a third pin of the main board contact pin, the second switch is connected between a fourth pin of the main board contact pin and a ground potential, the third pin and the fourth pin are in short circuit, and the fourth pin is connected with a second indicator light and a second pin of the main board COM interface; the detection method further comprises the following steps:
controlling to disconnect the second switch and detect the signal state of the second pin so as to judge whether the second resistor is loaded according to the signal state of the second pin;
controlling to conduct the second switch and detecting the signal state of the second pin so as to judge whether the second switch is loaded according to the signal state of the second pin;
and detecting the signal state of the first pin and detecting the signal state of the second pin are synchronously performed.
In an embodiment of the present invention, the motherboard to be tested further includes an embedded controller chip and a south bridge chip set, the control end of the first switch is connected to the embedded controller chip to receive the control of the embedded controller chip to perform disconnection or conduction, and the control end of the second switch is connected to the south bridge chip set to receive the control of the south bridge chip set to perform disconnection or conduction.
In an embodiment of the present invention, the first indicator light is a power indicator light, the second indicator light is a hard disk indicator light, the first pin is one of a DSR pin and a CTS pin of the motherboard COM interface, and the second pin is the other of the DSR pin and the CTS pin of the motherboard COM interface.
The technical scheme has the following advantages or beneficial effects: the mainboard contact pin of the mainboard to be tested is connected with the mainboard COM interface and is in short circuit with the corresponding pin on the mainboard contact pin, and the signal state of the appointed pin is detected through the on-off of the control switch, so that whether the resistor and the switch are loaded or not is detected, the automatic detection of the computer mainboard leaving the factory can be realized, the test procedure is greatly simplified, and the test efficiency is improved.
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.
As shown in fig. 1 and fig. 3, a method for detecting a control circuit of a motherboard indicator light provided in an embodiment of the present invention includes the following steps:
s10, obtaining a mainboard to be tested, wherein the mainboard to be tested comprises a mainboard contact pin 100, a mainboard COM interface 200, a Power input end 300, a resistor R1 and a switch Q1, the resistor R1 is connected between the Power input end 300 and a pin 2 of the mainboard contact pin 100, the switch Q1 is connected between a pin 4 of the mainboard contact pin 100 and the ground potential, the pin 2 and the pin 4 are in short circuit, and the pin 4 is connected with a Power indicator lamp (Power LED) and a pin 9 of the mainboard COM interface 200;
s20, controlling the switch Q1 to be turned off, and detecting the signal state of the pin 9 to judge whether the resistor R1 is loaded according to the signal state of the pin 9;
s30, the switch Q1 is controlled to be turned on, and the signal state of the pin 9 is detected so as to judge whether the switch Q1 is on according to the signal state of the pin 9.
Specifically, as shown in fig. 3, the main board pin 100 is mainly used to connect to a front panel of a computer host to implement the functions of the host such as power on/off control, audio input/output, and USB front expansion interface. The pin 2 and the pin 4 of the motherboard pin 100 are shorted by using, for example, a common motherboard jumper, and the pin 4 of the motherboard pin 100 is connected to the pin 9 of the motherboard COM interface 200 by, for example, a wire. In addition, when the motherboard to be tested is subjected to factory inspection, a voltage of 5v is usually applied to the power input terminal to detect the signal state of the pin 9, for example, high/low voltage. It should be noted that the main board COM interface 200 in this embodiment may be a COM interface disposed behind the main board, that is, an interface visible at the back of the computer host, or a COM pin embedded in the main board.
After the step S10 is executed to complete the connection, the switch Q1 of the motherboard to be tested receives the control signal to turn off or on. In this embodiment, the control end of the switch Q1 is connected to an Embedded Controller (EC) chip on the motherboard to be tested, and the embedded Controller chip is used to turn off or on the switch Q1. The embedded controller chip is a control system which is used for executing the designated independent control function and has the capability of processing data in a complex mode, and is an electronic device or a device which is controlled by an embedded microelectronic technology chip consisting of a series of microelectronic devices such as a microprocessor chip, a timer, a sequencer or a controller and the like, and can complete various automatic processing tasks such as monitoring, control and the like. Correspondingly, the pin 4 is connected with the power indicator, so the detection method of the embodiment is used for detecting the control circuit of the power indicator of the main board.
Step S20 is executed on the basis, the embedded controller chip controls the switch Q1 to be turned off, 5v of voltage is loaded on the input terminal of the power supply 300, the signal state of the pin 9 is detected, and at this time, if the signal of the pin 9, for example, the voltage signal, is a high potential, it indicates that the two ends of the resistor R1 are in a connected state, and the resistor R1 is judged to be on; on the contrary, if the signal of the pin 9, for example, the voltage signal, is at a low level, it indicates that the two ends of the resistor R1 are in a non-conducting state, and it is determined that the resistor R1 is not loaded, or called a component-missing state.
Step S30 is executed, the embedded controller chip controls the switch Q1 to be turned on, 5v of voltage is loaded at the input end of the power supply 300, one end of the switch Q1 is connected to the ground potential, and then the signal state of the pin 9 is detected, at this time, if the signal of the pin 9, for example, the voltage signal, is at the low potential, it indicates that the two ends of the switch Q1 are in the connected state, and the on-chip of the switch Q1 is determined; on the contrary, if the signal at the pin 9, for example, the voltage signal, is high, indicating that the two ends of the switch Q1 are in the non-conducting state, it is determined that the switch Q1 is not loaded.
It should be noted that, the detection of the signal state of the pin 9 is generally performed by an external detection device, such as a PC, a tablet computer, or an intelligent mobile terminal, and a corresponding detection program may be configured on the detection device, and the detection operation is autonomously performed by the detection program, so that the execution efficiency of the line detection may be further improved.
It should be noted that, in this embodiment, the execution sequence of step S20 and step S30 is not limited, but in order to improve the detection efficiency, step S20 may be executed to detect the load state of the resistor R1, after the detection is passed, it is verified that the connection is in a connected state from the input terminal of the power supply 300 to the pin 4, and then step S30 is executed to detect the load state of the switch Q1, so that the detection time can be saved, and the detection process can be reduced.
In addition, the pin 9 in this embodiment is a DSR (data set ready) pin of the motherboard COM interface 200, and the motherboard COM interface 200 is, for example, a common 9-pin RS-232 serial port.
The detection method provided by the embodiment not only detects the control circuit of the power indicator of the mainboard, but also can detect the control circuit of the hard disk indicator (HDD LED) of the mainboard. At this time, the control terminal of the switch Q1 is connected to a South Bridge chipset (South Bridge) of the motherboard to be tested to receive the control of the South Bridge chipset to turn off or on. The south bridge chipset is an important component of the motherboard chipset, and is generally located under the motherboard far from the CPU socket, and the south bridge chipset is mainly responsible for controlling peripheral interfaces, controlling and adding functions of the IDE device, and the like. Correspondingly, the pin 4 is connected To a hard disk indicator, that is, the detection method of this embodiment can be used To detect a power indicator control circuit of a motherboard, and the pin 9 in this embodiment is a CTS (Clear To Send) pin of the motherboard COM interface 200. Since the detection method of the control circuit of the motherboard hard disk indicator light is similar to the execution steps, it is not repeated herein.
The detection method provided by another embodiment of the invention can simultaneously detect the power control circuit and the hard disk control circuit of the mainboard, so as to further improve the detection efficiency.
Referring to fig. 2 and fig. 3, the detection method provided in this embodiment further includes:
s40, the mainboard to be tested further comprises a power supply 400 input end, a resistor R2 and a switch Q2, the resistor R2 is connected between the power supply 400 input end and a pin 1 of the mainboard pin 100, the switch Q2 is connected between a pin 3 of the mainboard pin 100 and the ground potential, the pin 1 and the pin 3 are in short circuit, and the pin 3 is connected with a second indicator light and a pin 7 of the mainboard COM interface 200;
s50, controlling the switch Q2 to be turned off, and detecting the signal state of the pin 7 to judge whether the resistor R2 is loaded according to the signal state of the pin 7;
s60, after judging that the resistor R2 is loaded, the switch Q2 is controlled to be turned on, and the signal state of the pin 7 is detected to judge whether the switch Q2 is loaded or not according to the signal state of the pin 7.
The signal state of the detection pin 9 and the signal state of the detection pin 7 are synchronized.
In this embodiment, step S40 and step S10 in the previous embodiment are performed synchronously, and may be regarded as the same step. The mainboard to be tested simultaneously comprises an embedded controller chip and a south bridge chip set, the control end of the switch Q1 is connected with the embedded controller chip to be controlled by the embedded controller chip to be switched off or switched on, and the control end of the switch Q2 is connected with the south bridge chip set to be controlled by the south bridge chip set to be switched off or switched on.
In this embodiment, the control circuits of the power indicator and the hard disk indicator can be detected simultaneously, so that the pin 3 and the pin 4 of the corresponding motherboard pin 100 are respectively connected to the power indicator and the hard disk indicator. And pin 9 is one of DSR pin and CTS pin of the motherboard COM interface 200, and pin 7 is one of DSR pin and CTS pin of the motherboard COM interface 200. That is, pin 9 is the DSR pin of the motherboard COM interface 200, and pin 7 is the CTS pin of the motherboard COM interface 200; or pin 9 is a CTS pin of the motherboard COM interface 200, and pin 7 is a DSR pin of the motherboard COM interface 200.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and/or method may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and the actual implementation may have another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.