Function test equipment of host equipment

By designing automated electrical and optical signal devices and combining control devices, the problem of low functional testing efficiency of host equipment is solved, and more accurate and efficient test results are achieved.

CN119024221APending Publication Date: 2024-11-26INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411131825.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-16
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

The function test efficiency of the host device is low, and the test results are prone to inaccurate due to manual operation errors.

Method used

Design a host equipment functional testing device, including a first electrical signal device, a second electrical signal device and an optical signal device, which is connected to the main board element through a control device, and automatically extracts the electrical signal and optical signal for testing the functions of indicator lights and switching elements. .

Benefits of technology

Improve the accuracy and efficiency of functional testing, reduce manual operation errors, and ensure the reliability of test results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119024221A_ABST
    Figure CN119024221A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides function test equipment for host equipment. The function test equipment comprises a first electric signal device, a second electric signal device, an optical signal device and a control device, the control device is used for controlling the first electric signal device to extract the first electric signal from the connecting line and controlling the optical signal device to extract the optical signal from the light-emitting area; according to the first electric signal, the optical signal and a first control instruction sent by the mainboard element to the indicator lamp element in the first test stage, testing the light-emitting function of the indicator lamp element; the control device is also used for controlling the second electric signal device to send a second electric signal to the trigger circuit; and testing the switching function of the switching element according to the second electric signal and a second control instruction triggered by the second electric signal on the mainboard element. By means of the method and device, the problem that the test efficiency of the function test of the host equipment is low is solved, and then the effect of improving the test efficiency of the function test of the host equipment is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computers, and in particular, to a functional testing device for a host device. Background Art

[0002] The host device is equipped with multiple functional elements to help the host run better: multiple indicator light elements on the host device are used to indicate the power-on status and power status of the host device. The indicator light elements corresponding to different power-on status or different power status will show different lighting status; the reset button on the host device can restart the entire host device after being pressed; the host device is also equipped with a magnetic sensor to sense the change of the magnetic field to realize the sleep function of the host device. At present, the testing of the above functions requires the in-depth cooperation of the tester, who needs to observe the lighting status of the indicator light with the naked eye, manually press the reset button at the right time, and manually take the magnet close to the host to change the magnetic field around the host device. However, such testing can easily lead to incorrect judgment of the lighting status and failure to take the corresponding test operation in time due to the lack of experience and wrong operation of the tester, resulting in inaccurate final test results and low test efficiency of the functional test of the host device. Summary of the invention

[0003] An embodiment of the present application provides a functional testing device for a host device, so as to at least solve the problem of low testing efficiency of functional testing of host devices in related technologies.

[0004] According to one embodiment of the present application, a functional test device for a host device is provided, comprising: a first electrical signal device, a second electrical signal device, an optical signal device and a control device, wherein the control device is connected to the first electrical signal device, the second electrical signal device and the optical signal device respectively; the control device is used to connect to a mainboard component of the host device to be tested, the first electrical signal device is used to connect to a connection line between an indicator light component on the host device and the mainboard component, the optical signal device is used to connect to a light-emitting area of ​​the indicator light component, and the second electrical signal device is used to connect to a trigger line between a switch component on the host device and the mainboard component;

[0005] The control device is used to control the first electrical signal device to extract the first electrical signal from the connection line and control the optical signal device to extract the optical signal from the light-emitting area when the function test process of the host device runs to the first test stage of the indicator light element; and test the light-emitting function of the indicator light element according to the first electrical signal, the optical signal and the first control instruction sent by the mainboard element to the indicator light element in the first test stage;

[0006] The control device is also used to control the second electrical signal device to send a second electrical signal to the trigger circuit when the functional test process of the host device runs to the second test stage of the switch element; and test the switching function of the switch element according to the second electrical signal and the second control instruction triggered by the second electrical signal on the main board component.

[0007] In an exemplary embodiment, the indicator light element includes a plurality of status indicator lights, the connection circuit includes a plurality of indicator light control circuits, and the plurality of status indicator lights correspond one to one to the plurality of indicator light control circuits;

[0008] The first electrical signal device comprises: a plurality of indicator light interfaces, a signal converter and a line controller, wherein the plurality of indicator light interfaces are connected one-to-one with the plurality of indicator light control lines, the input end of the signal converter is used to connect a target indicator light interface among the plurality of indicator light interfaces, the output end of the signal converter is connected to a first signal pin of the control device, the input end of the line controller is connected to a first control pin of the control device, the output end of the line controller is used to control the target indicator light interface among the plurality of indicator light interfaces that matches the first control signal to be connected to the input end of the signal converter, and the first control signal is a control signal on the first control pin received through the input end of the line controller;

[0009] The signal converter is used to receive the target electrical signal collected by the target indicator light interface from the target indicator light control circuit connected to the target indicator light interface; convert the target electrical signal into the first electrical signal; and transmit the first electrical signal to the first signal pin.

[0010] In an exemplary embodiment, the multiple status indicator lights include a power indicator light and a power-on indicator light, the multiple indicator light control circuits include a power indicator light control circuit and a power-on indicator light control circuit, the power indicator light is connected to the mainboard component via the power indicator light control circuit, and the power-on indicator light is connected to the mainboard component via the power indicator light control circuit;

[0011] The multiple indicator light interfaces include a power indicator light interface and a power-on indicator light interface, the signal converter includes an analog-to-digital converter, the line controller includes a first control circuit and a first relay, the power indicator light interface is connected to the power indicator light control circuit, the power-on indicator light interface is connected to the power-on indicator light control circuit, one end of the first control circuit is connected to the first control pin, the other end of the first control circuit is connected to the input end of the first relay, and the output end of the first relay is used to control the target indicator light interface of the power indicator light interface and the power-on indicator light interface that matches the first control signal to be connected to the input end of the analog-to-digital converter;

[0012] The analog-to-digital converter is used to receive the analog voltage signal collected by the target indicator light interface from the target indicator light control circuit connected to the target indicator light interface, wherein the target electrical signal includes the analog voltage signal; convert the analog voltage signal into a digital voltage signal, wherein the first electrical signal includes the digital voltage signal; and transmit the digital voltage signal to the control device.

[0013] In an exemplary embodiment, the control device is used to send the first control signal for instructing the test of the target indicator light to the line controller through the first control pin when the first test phase is the test phase of the target indicator light among the multiple status indicator lights; receive the first electrical signal corresponding to the target indicator light from the first signal pin; and test the lighting function of the target indicator light according to the first electrical signal, the light signal corresponding to the target indicator light and the first control instruction sent by the mainboard component to the target indicator light in the first test phase.

[0014] In an exemplary embodiment, the indicator light element includes a plurality of status indicator lights, and the optical signal device includes: a plurality of photosensitive devices and a plurality of light guides, the plurality of status indicator lights correspond to the plurality of photosensitive devices one-to-one, the plurality of photosensitive devices are connected to the plurality of light guides one-to-one, and the plurality of light guides are used to be respectively disposed in the light emitting areas of the corresponding status indicator lights;

[0015] The control device is provided with a second signal pin and a plurality of second control pins, the plurality of second control pins correspond to the plurality of photosensitive devices one by one, the output end of each photosensitive device is connected to the second signal pin, and the enable end of each photosensitive device is connected to the corresponding second control pin;

[0016] The photosensitive device is used to collect the light signal from the light-emitting area through the corresponding light guide when receiving the second control signal on the corresponding second control pin; and transmit the light signal to the second signal pin.

[0017] In an exemplary embodiment, the control device is used to send the second control signal to the target light sensing device corresponding to the target indicator light through the second control pin corresponding to the target indicator light when the first test phase is a test phase of the target indicator light among the multiple status indicator lights, wherein the second control signal is used to enable the target light sensing device; receive the light signal corresponding to the target indicator light from the second signal pin; and test the lighting function of the target indicator light according to the first electrical signal, the light signal corresponding to the target indicator light and the first control instruction sent by the mainboard component to the target indicator light in the first test phase.

[0018] In an exemplary embodiment, the control device is used to detect the actual lighting state of the target indicator light according to the first electrical signal, detect the actual light emitted by the target indicator light according to the light signal, and convert the first control instruction into the expected lighting state and expected light emitted by the target indicator light according to the first electrical signal when the first test stage is the test stage of the target indicator light in the indicator light element;

[0019] The actual lighting state is compared with the expected lighting state, and the actually emitted light is compared with the expected emitted light, to obtain a test result of the lighting function of the target indicator light.

[0020] In an exemplary embodiment, the switch element includes a plurality of state controllers, the trigger circuit includes a plurality of state control circuits, the plurality of state controllers correspond one-to-one to the plurality of state control circuits, and the second electrical signal device includes: a plurality of drive controllers;

[0021] A plurality of third control pins are disposed on the control device, and the plurality of third control pins correspond to the plurality of drive controllers one by one, and the drive end of each drive controller is connected to the corresponding third control pin, and the output end of each drive controller is used to connect to the corresponding state control circuit;

[0022] Each of the drive controllers is used to output an analog signal to the corresponding state control circuit through the output end of the drive controller when receiving a drive signal on the corresponding third control pin, wherein the analog signal is used to simulate that the state controller connected to the corresponding state control circuit is triggered, and the second electrical signal includes the analog signal.

[0023] In an exemplary embodiment, the plurality of state controllers include a switch button and a sleep sensor, the plurality of state control circuits include a switch control circuit and a sleep control circuit, the switch button is connected to the mainboard component via the switch control circuit, the sleep sensor is connected to the mainboard component via the sleep control circuit, and the plurality of drive controllers include a second relay and a third relay;

[0024] The plurality of third control pins include a switch control pin and a sleep control pin, the driving end of the second relay is connected to the switch control pin, the output end of the second relay is used to connect to the switch control circuit, the driving end of the third relay is connected to the sleep control pin, and the output end of the third relay is used to connect to the sleep control circuit;

[0025] The second relay is used to output a switch simulation signal to the switch control circuit through the output end of the second relay when receiving the driving signal on the switch control pin, wherein the switch simulation signal is used to control the switch control circuit to be short-circuited to ground;

[0026] The third relay is used to output a sleep simulation signal to the sleep control circuit through the output end of the third relay when receiving a driving signal on the sleep control pin, wherein the sleep simulation signal is used to control the sleep control circuit to be short-circuited to ground.

[0027] In an exemplary embodiment, the control device and the mainboard component are also connected via a universal serial bus;

[0028] The control device is used for sending the drive signal to the target state controller through the third control pin corresponding to the target state controller when the second test phase is the test phase of the target state controller among the multiple state controllers; extracting the second control instruction triggered on the mainboard component by the analog signal sent by the target state controller in response to the drive signal from the mainboard component through the universal serial bus; and testing the switching function of the switching element according to the analog signal and the second control instruction.

[0029] According to the present application, a first electric signal device is connected to a connection line between an indicator light element and a mainboard element on a host device, an optical signal device is connected to a light-emitting area of ​​the indicator light element, a second electric signal device is connected to a trigger line between a switch element and a mainboard element on the host device, and a control device is provided to connect the first electric signal device, the second electric signal device, the optical signal device and the mainboard element of the host device to be tested. The control device is used to control the first electric signal device to extract a first electric signal from the connection line and control the optical signal device to extract an optical signal from the light-emitting area when the functional test process of the host device runs to the first test stage of the indicator light element, and to test the light-emitting function of the indicator light element according to the first electric signal, the optical signal and the first control instruction sent by the mainboard element to the indicator light element in the first test stage. The control device is also used to control the second electric signal device to send a second electric signal to the trigger line when the functional test process of the host device runs to the second test stage of the switch element. The switch function of the switch element is tested according to the second control instruction triggered by the second electric signal and the second electric signal on the main board component, that is, the first electric signal device is controlled by the set control device to extract the first electric signal from the connection line, and the light signal device is controlled to extract the light signal from the light-emitting area of ​​the indicator light element, and the light-emitting function of the indicator light element is tested according to the first electric signal and the light signal and the first control instruction sent by the main board component to the indicator light element, and the test result of the light-emitting function of the indicator light element is automatically judged based on the control device using the collected accurate data, which is more accurate than the scheme of manual judgment by naked eye observation; and then the second electric signal device is controlled by the set control device to send the second electric signal to the trigger circuit, and the switch function of the switch element is tested according to the second control instruction triggered by the second electric signal and the second electric signal on the main board component, which replaces waiting for the corresponding key pressing operation and the magnet picking operation to generate the corresponding electric signal, and can generate the corresponding electric signal in time when needed, avoiding the error in the test result caused by the wrong operation. Therefore, the problem of low test efficiency of the functional test of the host device can be solved, and the test efficiency of the functional test of the host device can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 is a schematic diagram of a functional testing device for a host device according to an embodiment of the present application;

[0031] Figure 2 is a schematic diagram of a functional element deployed on a host device according to an embodiment of the present application;

[0032] Figure 3 is a schematic diagram of a universal serial bus connection component according to an embodiment of the present application;

[0033] Figure 4is a schematic diagram of a control portion of an integrated functional test circuit board according to an embodiment of the present application;

[0034] Figure 5 is a schematic diagram of a signal extraction portion of an integrated functional test circuit board according to an embodiment of the present application;

[0035] Figure 6 A schematic diagram of a method for connecting an integrated functional test circuit board to a host device under test according to an embodiment of the present application. DETAILED DESCRIPTION

[0036] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0037] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0038] In this embodiment, a functional testing device for a host device is provided. Figure 1 is a schematic diagram of a functional testing device for a host device according to an embodiment of the present application, such as Figure 1 As shown, the device includes: a first electric signal device, a second electric signal device, an optical signal device and a control device, wherein the control device is connected to the first electric signal device, the second electric signal device and the optical signal device respectively; the control device is used to connect to the main board component of the host device to be tested, the first electric signal device is used to connect to the connection line between the indicator light component on the host device and the main board component, the optical signal device is used to connect to the light-emitting area of ​​the indicator light component, and the second electric signal device is used to connect to the trigger line between the switch component on the host device and the main board component;

[0039] The control device is used to control the first electrical signal device to extract the first electrical signal from the connection line and control the optical signal device to extract the optical signal from the light-emitting area when the function test process of the host device runs to the first test stage of the indicator light element; and test the light-emitting function of the indicator light element according to the first electrical signal, the optical signal and the first control instruction sent by the mainboard element to the indicator light element in the first test stage;

[0040] The control device is also used to control the second electrical signal device to send a second electrical signal to the trigger circuit when the functional test process of the host device runs to the second test stage of the switch element; and test the switching function of the switch element according to the second electrical signal and the second control instruction triggered by the second electrical signal on the main board component.

[0041] According to the present application, a first electric signal device is connected to a connection line between an indicator light element and a mainboard element on a host device, an optical signal device is connected to a light-emitting area of ​​the indicator light element, a second electric signal device is connected to a trigger line between a switch element and a mainboard element on the host device, and a control device is provided to connect the first electric signal device, the second electric signal device, the optical signal device and the mainboard element of the host device to be tested. The control device is used to control the first electric signal device to extract a first electric signal from the connection line and control the optical signal device to extract an optical signal from the light-emitting area when the functional test process of the host device runs to the first test stage of the indicator light element, and to test the light-emitting function of the indicator light element according to the first electric signal, the optical signal and the first control instruction sent by the mainboard element to the indicator light element in the first test stage. The control device is also used to control the second electric signal device to send a second electric signal to the trigger line when the functional test process of the host device runs to the second test stage of the switch element. The switch function of the switch element is tested according to the second control instruction triggered by the second electric signal and the second electric signal on the main board component, that is, the first electric signal device is controlled by the set control device to extract the first electric signal from the connection line, and the light signal device is controlled to extract the light signal from the light-emitting area of ​​the indicator light element, and the light-emitting function of the indicator light element is tested according to the first electric signal and the light signal and the first control instruction sent by the main board component to the indicator light element, and the test result of the light-emitting function of the indicator light element is automatically judged based on the control device using the collected accurate data, which is more accurate than the scheme of manual judgment by naked eye observation; and then the second electric signal device is controlled by the set control device to send the second electric signal to the trigger circuit, and the switch function of the switch element is tested according to the second control instruction triggered by the second electric signal and the second electric signal on the main board component, which replaces waiting for the corresponding key pressing operation and the magnet picking operation to generate the corresponding electric signal, and can generate the corresponding electric signal in time when needed, avoiding the error in the test result caused by the wrong operation. Therefore, the problem of low test efficiency of the functional test of the host device can be solved, and the test efficiency of the functional test of the host device can be improved.

[0042] Optionally, in an embodiment of the present application, the host device to be tested includes but is not limited to switch elements, indicator light elements and mainboard elements. The mainboard elements on the host device control the lighting status of the indicator light elements, including whether the light is on and the color of the light, etc. The mainboard elements on the host device also receive signals from the switch elements and respond to the received switch signals. For example, the mainboard elements receive a reset signal generated by a reset button, and restart the host device where the mainboard elements are located in response to the reset signal. The mainboard elements also receive a sleep signal generated by a sleep component, and control the host device where the mainboard elements are located to enter a sleep state in response to the sleep signal.

[0043] Optionally, in an embodiment of the present application, the indicator light elements on the host device include a power indicator light and a power-on indicator light. The power indicator light is used to indicate the current power status of the power supply by displaying different light colors. For example, when the power is low, the power indicator light is displayed as red, and when the power is normal, the power indicator light is displayed as white. The power-on indicator light is used to indicate the power-on status of the host device by whether the light is on. For example, when the host device is turned on, the power-on indicator light is displayed as a bright white light, and when the host device is not turned on, the power-on indicator light is displayed as off.

[0044] Optionally, in the embodiments of the present application, Figure 2 is a schematic diagram of a functional element deployed on a host device according to an embodiment of the present application, such as Figure 2 As shown, LED3 is deployed on the host device as a power-on indicator light to indicate the power-on status of the host device; LED4 is deployed as a power indicator light to indicate the current power status of the power supply; a reset button SW1 is deployed; a Hall sensor (HALL sensor) is deployed to output a corresponding electrical signal by sensing a change in a magnetic field; and an IO board (i.e., JP1) is deployed to connect interfaces of various functional components.

[0045] Optionally, in an embodiment of the present application, including but not limited to connecting the control device to the mainboard component of the host device to be tested via a USB interface; the connection between the optical signal device and the light-emitting area of ​​the indicator light element includes but is not limited to deploying the optical signal device within the light-emitting area of ​​the indicator light element, or connecting the optical signal device to the light-emitting area of ​​the indicator light element via a light guide wire.

[0046] Optionally, in an embodiment of the present application, the functional testing process of the host device includes but is not limited to a first testing phase for the indicator light element and / or a second testing phase for the switch element.

[0047] Optionally, in an embodiment of the present application, including but not limited to the control device determining that the function of the host device needs to be tested, the control device automatically monitors the test phase of the current functional test process, or the mainboard component on the host device determines that the function of the host device needs to be tested. In this case, the control device receives a functional test instruction issued by the host device, and determines the test phase of the currently running functional test process according to the functional test instruction.

[0048] Optionally, in an embodiment of the present application, the first electrical signal includes but is not limited to a voltage signal or a current signal.

[0049] Optionally, in an embodiment of the present application, controlling the optical signal device to extract an optical signal from the luminous area includes but is not limited to extracting the values ​​of R (red light), G (green light), and B (blue light) in the light in the luminous area through a photosensor device in the optical signal device.

[0050] Optionally, in an embodiment of the present application, the first control instruction sent by the mainboard component to the indicator light component in the first test phase includes but is not limited to signal attribute information of an expected first electrical signal and signal attribute information of an expected optical signal, and by comparing the expected first electrical signal with the extracted first electrical signal and by comparing the expected optical signal with the extracted optical signal, it can be determined whether the lighting function of the indicator light component is normal.

[0051] Optionally, in an embodiment of the present application, the second electrical signal includes but is not limited to corresponding to an expected second control instruction, and by comparing the expected second control instruction with the triggered second control instruction, it can be determined whether the switching function of the switching element is normal.

[0052] Optionally, in an embodiment of the present application, including but not limited to, the control device is also used to detect a first retest parameter when the lighting function of the indicator light element is tested to be abnormal according to the first electrical signal, the optical signal and the first control instruction sent by the mainboard component to the indicator light element in the first test phase, wherein the first retest parameter is used to indicate the number of times the host device repeatedly tests the lighting function of the indicator light element; when the first retest parameter does not exceed the first retest threshold, the control device controls the functional test process of the host device to run to the first test phase of the indicator light element, and controls the first retest parameter to be incremented by one; when the first retest parameter exceeds the first retest threshold, the control device determines the number of times the first retest parameter is repeated. The lighting function of the indicator light element cannot be used normally; the control device is also used to detect a second retest parameter when the switch function of the switch element is tested to be abnormal according to the second electrical signal and the second control instruction triggered by the second electrical signal on the main board element, wherein the second retest parameter is used to indicate the number of times the host device repeatedly tests the switch function of the switch element; when the second retest parameter does not exceed the second retest threshold, the control device controls the function test process of the host device to run to the second test stage of the indicator light element, and controls the second retest parameter to increase by one; when the second retest parameter exceeds the second retest threshold, it is determined that the switch function of the switch element cannot be used normally. Through the above steps, the retest operation is automatically triggered when the functional test results show that the function is abnormal, reducing the impact of false tests on the test results.

[0053] As an optional implementation, the indicator light element includes a plurality of status indicator lights, the connection circuit includes a plurality of indicator light control circuits, and the plurality of status indicator lights correspond to the plurality of indicator light control circuits one by one;

[0054] The first electrical signal device comprises: a plurality of indicator light interfaces, a signal converter and a line controller, wherein the plurality of indicator light interfaces are connected one-to-one with the plurality of indicator light control lines, the input end of the signal converter is used to connect a target indicator light interface among the plurality of indicator light interfaces, the output end of the signal converter is connected to a first signal pin of the control device, the input end of the line controller is connected to a first control pin of the control device, the output end of the line controller is used to control the target indicator light interface among the plurality of indicator light interfaces that matches the first control signal to be connected to the input end of the signal converter, and the first control signal is a control signal on the first control pin received through the input end of the line controller;

[0055] The signal converter is used to receive the target electrical signal collected by the target indicator light interface from the target indicator light control circuit connected to the target indicator light interface; convert the target electrical signal into the first electrical signal; and transmit the first electrical signal to the first signal pin.

[0056] Optionally, in an embodiment of the present application, multiple status indicator lights include but are not limited to a power on indicator light and a power indicator light, multiple indicator light control circuits include but are not limited to having electrical signal test points pierced, and multiple indicator light interfaces in the first electrical signal device include but are not limited to being connected to the corresponding electrical signal test points on the multiple indicator light control circuits through a probe with a wire.

[0057] Optionally, in an embodiment of the present application, the signal converter includes but is not limited to an analog-to-digital converter, and the line controller includes but is not limited to a MOS tube and a first relay.

[0058] By connecting the input end of the line controller with the first control pin of the control device and connecting the output end of the line controller with the target indicator light interface that matches the first control signal among multiple indicator light interfaces and the input end of the signal converter, the first electrical signal device can accurately extract the electrical signal of the indicator light control circuit corresponding to the first control signal, thereby improving the test efficiency of the host device function test.

[0059] As an optional implementation, the multiple status indicator lights include a power indicator light and a power-on indicator light, the multiple indicator light control circuits include a power indicator light control circuit and a power-on indicator light control circuit, the power indicator light is connected to the mainboard component via the power indicator light control circuit, and the power-on indicator light is connected to the mainboard component via the power indicator light control circuit;

[0060] The multiple indicator light interfaces include a power indicator light interface and a power-on indicator light interface, the signal converter includes an analog-to-digital converter, the line controller includes a first control circuit and a first relay, the power indicator light interface is connected to the power indicator light control circuit, the power-on indicator light interface is connected to the power-on indicator light control circuit, one end of the first control circuit is connected to the first control pin, the other end of the first control circuit is connected to the input end of the first relay, and the output end of the first relay is used to control the target indicator light interface of the power indicator light interface and the power-on indicator light interface that matches the first control signal to be connected to the input end of the analog-to-digital converter;

[0061] The analog-to-digital converter is used to receive the analog voltage signal collected by the target indicator light interface from the target indicator light control circuit connected to the target indicator light interface, wherein the target electrical signal includes the analog voltage signal; convert the analog voltage signal into a digital voltage signal, wherein the first electrical signal includes the digital voltage signal; and transmit the digital voltage signal to the control device.

[0062] The collected analog voltage signal is converted into a digital voltage signal through an analog-to-digital converter, so that the control device can receive the digital voltage signal and analyze and process the digital voltage signal, thereby helping to automatically analyze and determine the test results of the indicator light and improving the test efficiency of the functional test.

[0063] As an optional embodiment, the control device is used to send the first control signal for instructing the test of the target indicator light to the line controller through the first control pin when the first test phase is a test phase of the target indicator light among the multiple status indicator lights; receive the first electrical signal corresponding to the target indicator light from the first signal pin; and test the lighting function of the target indicator light according to the first electrical signal, the optical signal corresponding to the target indicator light and the first control instruction sent by the mainboard component to the target indicator light in the first test phase.

[0064] As an optional implementation, the indicator light element includes a plurality of status indicator lights, and the optical signal device includes: a plurality of photosensitive devices and a plurality of light guides, the plurality of status indicator lights correspond to the plurality of photosensitive devices one-to-one, the plurality of photosensitive devices are connected to the plurality of light guides one-to-one, and the plurality of light guides are used to be respectively deployed in the light-emitting areas of the corresponding status indicator lights;

[0065] The control device is provided with a second signal pin and a plurality of second control pins, the plurality of second control pins correspond to the plurality of photosensitive devices one by one, the output end of each photosensitive device is connected to the second signal pin, and the enable end of each photosensitive device is connected to the corresponding second control pin;

[0066] The photosensitive device is used to collect the light signal from the light-emitting area through the corresponding light guide when receiving the second control signal on the corresponding second control pin; and transmit the light signal to the second signal pin.

[0067] Optionally, in an embodiment of the present application, the light signal collected by the photosensitive device includes but is not limited to collecting R, G, and B values ​​of the light in the light-emitting area.

[0068] The light signal of the luminous area is collected by the photosensitive device to replace the human eye to observe the light, which more accurately determines the lighting state of the current indicator light and improves the accuracy of the functional test results.

[0069] As an optional embodiment, the control device is used to send the second control signal to the target light sensing device corresponding to the target indicator light through the second control pin corresponding to the target indicator light, when the first test phase is a test phase of the target indicator light among the multiple status indicator lights, wherein the second control signal is used to enable the target light sensing device; receive the light signal corresponding to the target indicator light from the second signal pin; and test the lighting function of the target indicator light according to the first electrical signal, the light signal corresponding to the target indicator light and the first control instruction sent by the mainboard component to the target indicator light in the first test phase.

[0070] As an optional implementation, the control device is used for, when the first test stage is a test stage of a target indicator light in the indicator light element, detecting an actual lighting state of the target indicator light according to the first electrical signal, detecting actual light emitted by the target indicator light according to the light signal, and converting the first control instruction into an expected lighting state and expected light emitted by the target indicator light;

[0071] The actual lighting state is compared with the expected lighting state, and the actually emitted light is compared with the expected emitted light, to obtain a test result of the lighting function of the target indicator light.

[0072] Optionally, in an embodiment of the present application, the luminous state includes but is not limited to indicating the light intensity, and the emitted light includes but is not limited to the color of the light, and the color of the light is determined based on but is not limited to the composition ratio of the three primary colors (R, G, B) of the light that can be collected.

[0073] By converting the first control instruction into the expected lighting state and the expected light emitted of the target indicator light, and then comparing the actual lighting state with the expected lighting state and the actual light emitted with the expected light emitted, the machine can identify the light signal of the current indicator light. Compared with human judgment after collection by the human eye, the result obtained is more accurate, thereby improving the accuracy of the test results obtained from the test of the indicator light function.

[0074] As an optional implementation, the switch element includes a plurality of state controllers, the trigger circuit includes a plurality of state control circuits, the plurality of state controllers correspond one-to-one to the plurality of state control circuits, and the second electrical signal device includes: a plurality of drive controllers;

[0075] A plurality of third control pins are disposed on the control device, and the plurality of third control pins correspond to the plurality of drive controllers one by one, and the drive end of each drive controller is connected to the corresponding third control pin, and the output end of each drive controller is used to connect to the corresponding state control circuit;

[0076] Each of the drive controllers is used to output an analog signal to the corresponding state control circuit through the output end of the drive controller when receiving a drive signal on the corresponding third control pin, wherein the analog signal is used to simulate that the state controller connected to the corresponding state control circuit is triggered, and the second electrical signal includes the analog signal.

[0077] As an optional implementation, the multiple state controllers include a switch button and a sleep sensor, the multiple state control circuits include a switch control circuit and a sleep control circuit, the switch button is connected to the mainboard component via the switch control circuit, the sleep sensor is connected to the mainboard component via the sleep control circuit, and the multiple drive controllers include a second relay and a third relay;

[0078] The plurality of third control pins include a switch control pin and a sleep control pin, the driving end of the second relay is connected to the switch control pin, the output end of the second relay is used to connect to the switch control circuit, the driving end of the third relay is connected to the sleep control pin, and the output end of the third relay is used to connect to the sleep control circuit;

[0079] The second relay is used to output a switch simulation signal to the switch control circuit through the output end of the second relay when receiving the driving signal on the switch control pin, wherein the switch simulation signal is used to control the switch control circuit to be short-circuited to ground;

[0080] The third relay is used to output a sleep simulation signal to the sleep control circuit through the output end of the third relay when receiving a driving signal on the sleep control pin, wherein the sleep simulation signal is used to control the sleep control circuit to be short-circuited to ground.

[0081] The second relay and the third relay output a switch simulation signal and a sleep simulation signal when receiving the corresponding drive signal on the corresponding control pin, instead of manually pressing the reset button and manually moving the magnet to generate the drive signal. This reduces manual operation actions and improves manual efficiency while avoiding the occurrence of misdetection caused by inappropriate manual operation timing, thereby improving the test efficiency of functional testing.

[0082] As an optional implementation, the control device and the mainboard component are also connected via a universal serial bus;

[0083] The control device is used for sending the drive signal to the target state controller through the third control pin corresponding to the target state controller when the second test phase is the test phase of the target state controller among the multiple state controllers; extracting the second control instruction triggered on the mainboard component by the analog signal sent by the target state controller in response to the drive signal from the mainboard component through the universal serial bus; and testing the switching function of the switching element according to the analog signal and the second control instruction.

[0084] Optionally, in the embodiments of the present application, Figure 3 is a schematic diagram of a universal serial bus connection component according to an embodiment of the present application, and the control device and the mainboard component are also connected through the following Figure 3 The Universal Serial Bus connection components shown are connected.

[0085] As an optional implementation, the present application also provides a desktop IO interface testing method. According to the functional testing characteristics of LEDs (i.e., indicator light elements) and switches (i.e., switch elements) in desktop computers, an integrated functional testing circuit board (i.e., functional testing equipment) is designed to simulate manual operation and judgment of LED brightness and color, thereby realizing automated testing, improving testing efficiency, and reducing the test process's dependence on human operation, thereby improving fool-proofing. Moreover, during the LED testing process (i.e., the first testing stage), it is possible to directly locate whether the problem is with the LED itself or with the LED circuit connection, thereby facilitating maintenance.

[0086] Optional, Figure 4 is a schematic diagram of a control part of an integrated functional test circuit board according to an embodiment of the present application, Figure 5is a schematic diagram of a signal extraction part of an integrated functional test circuit board according to an embodiment of the present application, Figure 6 Schematic diagram of a method for connecting an integrated functional test circuit board to a host device to be tested according to an embodiment of the present application. Figure 4 , Figure 5 and Figure 6 As shown, the integrated functional test circuit board is respectively designed with a communication module, an AD conversion module, a light sensing module, a driving relay module, etc. The integrated functional test circuit board and the host computer (i.e., the mainboard component of the host device to be tested) communication module communicate with the host computer via USB transfer RS232cable; the AD conversion module (i.e., the signal converter in the first electrical signal device) is a module that converts analog signals and digital signals, which is mainly selected from the MCU (i.e., the control device) peripheral circuit and uses ADC0831 (i.e., the analog-to-digital converter) to measure the test point voltage of the LED power supply voltage in the IO circuit (i.e., extract the first electrical signal); the light sensing module (i.e., the light signal device) selects a light sensing device, and its function is to test the color and brightness of the LED (i.e., extract the light signal); the driving relay module has two functions, one is to cooperate with the AD digital-to-analog conversion module and the light sensing module (corresponding to the line controller in the first electrical signal device), and the other is to test the switch function on the IO interface (corresponding to the driving controller in the second electrical signal device).

[0087] Optionally, in the embodiments of the present application, Figure 5 As shown, the first electrical signal device includes an AD converter U8, a MOS tube Q0 and a first relay RELAY0, the second electrical signal device includes transistors Q3, Q4, a second relay RELAY1 and a third relay RELAY2, and the second electrical signal device includes transistors Q1, Q2 and photosensitive devices U6, U7, Figure 5 The IO board JP1-1 shown in FIG. 1 is used to provide an interface to connect the signal extraction part and the IO board JP1 in the host device to be tested.

[0088] Optionally, the integrated function test circuit board and PCB (i.e., the host device UUT to be tested) are connected in the following manner: the desktop PCB mainboard to be tested (corresponding to the host device to be tested) is placed on a fixture with a probe, and the PCB mainboard to be tested and the integrated function test circuit board are connected in the following manner: first, the USB interface on the integrated function test circuit board and the USB interface on the PCB mainboard to be tested are connected via a USB transfer RS232cable; second, the voltage test points test_point_1 and test_point_2 of the LED (i.e., the status indicator light) in the IO interface are pierced by the probe on the fixture, and the probe is then connected to the test_point_1_1 test point (i.e., the indicator light interface) and test_point_2_1 (i.e., the indicator light interface) test points on JP1-1 through a wire, and the test_point_1_1 and test_point_2_1 on JP1-1 are connected via a wire and relay RELAY0 (i.e., the first relay) Connection; 3. PWR_LED# and RTC_LED# on JP1 in PCB correspond to LED3 (i.e. power indicator light) and LED4 (i.e. power indicator light), which are connected through the light guide wire and the photosensitive device on the integrated function test circuit board. The light guide wire only needs to touch the LED body to transmit light for detection; 4. NOVO_BTN# and LED_SW# in JP1 are connected to NOVO_BTN_1# and LID_SW_1# on JP1-1, and NOVO_BTN_1# and LID_SW_1# are connected to relays RELAY1 (i.e. the second relay) and RELAY2 (i.e. the third relay).

[0089] Optionally, based on the above connection method, the test process of the function to be tested using the integrated functional test circuit board includes:

[0090] First, place the host device to be tested on the fixture with the probe and turn it on. After the system is turned on, the upper computer calls out the test interface of this interface and starts the test in the control interface. The upper computer (i.e., the host device to be tested) and the lower computer (i.e., the functional test device) communicate first. The upper computer sends a signal to the lower computer to control the relay module and the AD module to measure whether the voltage at the LED test point is normal. In order to match the AD conversion device with only one voltage measurement interface, the upper computer needs to control the corresponding IO interface in the lower computer to control RELAY0 to switch different switches to cooperate with the AD analog conversion module to measure the voltage of test_point_1 and test_point_2 (the first electrical signal) and feed it back to the MCU for processing to determine whether it is 5V. If the read voltage is 5V, the lower computer feeds back to the upper computer to confirm that the test is normal and proceed to the next test. If the read voltage is 0V, it means that the power supply is abnormal and the LED cannot light up normally. Similarly, the lower computer feeds back to the upper computer that the test fails.

[0091] Second, two photosensitive devices measure the brightness and color of the corresponding LED light sources. The MCU controls the transistor photosensitive device U6 through the IO interfaces P2.0 and P2.1. The enable port in U7 makes it work to test the brightness and color of LED3 and LED4. When the P2.0 interface is assigned a high level, the transistor starts to work to enable OE1, and U6 starts to work. By setting the corresponding R, G, and B values ​​in RGB (that is, the expected light-emitting state and the expected light emitted) and comparing the R, G, and B values ​​in the LED light source obtained by U6, the MCU feedbacks whether the LED lights up normally and whether the color is the required white. After the LED3 test is completed, the MCU assigns the IO interface P2.0 The low level makes the enable in U6 at a high level and U6 stops working. Next, the P2.1 interface is given a high level, the transistor starts working, OE2 is enabled at a low level, U7 starts working, LED4 is a two-color light, the upper computer and the lower computer communicate so that the test program will automatically switch the color of LED4. By setting the values ​​of R, G, and B to compare U7 to obtain the values ​​of R, G, and B of the LED light source, first determine whether the LED is normally lit and the color is white, then switch the LED to red, determine whether the LED is normally lit and the color is red, and determine whether the LED is normal based on the values ​​of LED3 and LED4 light sources. If it is normal, feedback to the upper computer for the next test. If it is abnormal, the test fails;

[0092] 3. The relay module pulls down the switch button signal to confirm whether the switch is effective. In the switch test interface, the upper computer controls the IO interfaces P2.2 and P2.3 in the lower computer to give it a high level control transistor drive, corresponding to the Y1 and Y2 in RELAY1 and RELAY2 in the lower computer short-circuiting to GND to form a working voltage difference to make the relay start working. During the relay working switching process, NOVO_BTN_1# and LID_SW_1# are short-circuited to GND. At this time, a signal will be fed back to the upper computer to confirm whether these two signals are short-circuited to GND. If short-circuited, it is equivalent to pressing the NOVO_BTN_1# button, and the Hallsensor in the corresponding circuit of LID_SW_1# is equivalent to touching the magnet, indicating that the function is effective.

[0093] 4. If PASS is displayed normally, exit the program. If FAIL is displayed abnormally, the test fails and the test is completed.

[0094] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0095] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A functional test device for a host device, It is characterized in that The device comprises: a first electric signal device, a second electric signal device, an optical signal device and a control device, wherein the control device is connected to the first electric signal device, the second electric signal device and the optical signal device respectively; the control device is used to connect to a mainboard component of a host device to be tested, the first electric signal device is used to connect to a connection line between an indicator light component on the host device and the mainboard component, the optical signal device is used to connect to a light-emitting area of ​​the indicator light component, and the second electric signal device is used to connect to a trigger line between a switch component on the host device and the mainboard component; The control device is used to control the first electrical signal device to extract the first electrical signal from the connection line and control the optical signal device to extract the optical signal from the light-emitting area when the function test process of the host device runs to the first test stage of the indicator light element; and test the light-emitting function of the indicator light element according to the first electrical signal, the optical signal and the first control instruction sent by the mainboard element to the indicator light element in the first test stage; The control device is also used to control the second electrical signal device to send a second electrical signal to the trigger circuit when the functional test process of the host device runs to the second test stage of the switch element; and test the switching function of the switch element according to the second electrical signal and the second control instruction triggered by the second electrical signal on the main board component.

2. The functional testing device according to claim 1, characterized in that: The indicator light element includes a plurality of status indicator lights, the connection circuit includes a plurality of indicator light control circuits, and the plurality of status indicator lights correspond to the plurality of indicator light control circuits one by one; The first electrical signal device comprises: a plurality of indicator light interfaces, a signal converter and a line controller, wherein the plurality of indicator light interfaces are connected one-to-one with the plurality of indicator light control lines, the input end of the signal converter is used to connect a target indicator light interface among the plurality of indicator light interfaces, the output end of the signal converter is connected to a first signal pin of the control device, the input end of the line controller is connected to a first control pin of the control device, the output end of the line controller is used to control the target indicator light interface among the plurality of indicator light interfaces that matches the first control signal to be connected to the input end of the signal converter, and the first control signal is a control signal on the first control pin received through the input end of the line controller; The signal converter is used to receive the target electrical signal collected by the target indicator light interface from the target indicator light control circuit connected to the target indicator light interface; The target electrical signal is converted into the first electrical signal; and the first electrical signal is transmitted to the first signal pin.

3. The functional testing device according to claim 2, characterized in that: The multiple status indicator lights include a power indicator light and a power-on indicator light, the multiple indicator light control circuits include a power indicator light control circuit and a power-on indicator light control circuit, the power indicator light is connected to the mainboard component via the power indicator light control circuit, and the power-on indicator light is connected to the mainboard component via the power indicator light control circuit; The multiple indicator light interfaces include a power indicator light interface and a power-on indicator light interface, the signal converter includes an analog-to-digital converter, the line controller includes a first control circuit and a first relay, the power indicator light interface is connected to the power indicator light control circuit, the power-on indicator light interface is connected to the power-on indicator light control circuit, one end of the first control circuit is connected to the first control pin, the other end of the first control circuit is connected to the input end of the first relay, and the output end of the first relay is used to control the target indicator light interface of the power indicator light interface and the power-on indicator light interface that matches the first control signal to be connected to the input end of the analog-to-digital converter; The analog-to-digital converter is used to receive the analog voltage signal collected by the target indicator light interface from the target indicator light control circuit connected to the target indicator light interface, wherein the target electrical signal includes the analog voltage signal; convert the analog voltage signal into a digital voltage signal, wherein the first electrical signal includes the digital voltage signal; and transmit the digital voltage signal to the control device.

4. The functional testing device according to claim 2, characterized in that: The control device is used to send the first control signal for instructing the test of the target indicator light to the line controller through the first control pin when the first test phase is the test phase of the target indicator light among the multiple status indicator lights; receive the first electrical signal corresponding to the target indicator light from the first signal pin; and test the lighting function of the target indicator light according to the first electrical signal, the optical signal corresponding to the target indicator light and the first control instruction sent by the mainboard component to the target indicator light during the first test phase.

5. The functional testing device according to claim 1, characterized in that: The indicator light element includes a plurality of status indicator lights, and the optical signal device includes: a plurality of photosensitive devices and a plurality of light guides, the plurality of status indicator lights correspond to the plurality of photosensitive devices one-to-one, the plurality of photosensitive devices are connected to the plurality of light guides one-to-one, and the plurality of light guides are respectively arranged in the light emitting areas of the corresponding status indicator lights; The control device is provided with a second signal pin and a plurality of second control pins, the plurality of second control pins correspond to the plurality of photosensitive devices one by one, the output end of each photosensitive device is connected to the second signal pin, and the enable end of each photosensitive device is connected to the corresponding second control pin; The photosensitive device is used to collect the light signal from the light-emitting area through the corresponding light guide when receiving the second control signal on the corresponding second control pin; and transmit the light signal to the second signal pin.

6. The functional testing device according to claim 5, characterized in that: The control device is used for sending the second control signal to the target light sensing device corresponding to the target indicator light through the second control pin corresponding to the target indicator light when the first test phase is the test phase of the target indicator light among the multiple status indicator lights, wherein the second control signal is used to enable the target light sensing device; receiving the light signal corresponding to the target indicator light from the second signal pin; and testing the lighting function of the target indicator light according to the first electrical signal, the light signal corresponding to the target indicator light and the first control instruction sent by the mainboard component to the target indicator light in the first test phase.

7. The functional testing device according to claim 1, characterized in that: The control device is used for, when the first test stage is a test stage of a target indicator light in the indicator light element, detecting an actual lighting state of the target indicator light according to the first electrical signal, detecting actual light emitted by the target indicator light according to the light signal, and converting the first control instruction into an expected lighting state and expected light emitted by the target indicator light; The actual lighting state is compared with the expected lighting state, and the actually emitted light is compared with the expected emitted light, to obtain a test result of the lighting function of the target indicator light.

8. The functional testing device according to claim 1, characterized in that: The switch element includes a plurality of state controllers, the trigger circuit includes a plurality of state control circuits, the plurality of state controllers correspond to the plurality of state control circuits one by one, and the second electrical signal device includes: a plurality of drive controllers; A plurality of third control pins are disposed on the control device, and the plurality of third control pins correspond to the plurality of drive controllers one by one, and the drive end of each drive controller is connected to the corresponding third control pin, and the output end of each drive controller is used to connect to the corresponding state control circuit; Each of the drive controllers is used to output an analog signal to the corresponding state control circuit through the output end of the drive controller when receiving a drive signal on the corresponding third control pin, wherein the analog signal is used to simulate that the state controller connected to the corresponding state control circuit is triggered, and the second electrical signal includes the analog signal.

9. The functional testing device according to claim 8, characterized in that: The multiple state controllers include a switch button and a sleep sensor, the multiple state control circuits include a switch control circuit and a sleep control circuit, the switch button is connected to the mainboard component via the switch control circuit, the sleep sensor is connected to the mainboard component via the sleep control circuit, and the multiple drive controllers include a second relay and a third relay; The plurality of third control pins include a switch control pin and a sleep control pin, the driving end of the second relay is connected to the switch control pin, the output end of the second relay is used to connect to the switch control circuit, the driving end of the third relay is connected to the sleep control pin, and the output end of the third relay is used to connect to the sleep control circuit; The second relay is used to output a switch simulation signal to the switch control circuit through the output end of the second relay when receiving the driving signal on the switch control pin, wherein the switch simulation signal is used to control the switch control circuit to be short-circuited to ground; The third relay is used to output a sleep simulation signal to the sleep control circuit through the output end of the third relay when receiving a driving signal on the sleep control pin, wherein the sleep simulation signal is used to control the sleep control circuit to be short-circuited to ground.

10. The functional testing device according to claim 8, characterized in that: The control device and the mainboard component are also connected via a universal serial bus; The control device is used for sending the driving signal to the target state controller through the third control pin corresponding to the target state controller when the second test phase is a test phase of the target state controller among the multiple state controllers; The second control instruction triggered on the mainboard component by the analog signal emitted by the target state controller in response to the drive signal is extracted from the mainboard component via the universal serial bus; the switching function of the switching element is tested according to the analog signal and the second control instruction.