BIT self-inspection result information output method, BIT self-inspection result information acquisition method and computer program product
By dynamically selecting the self-test result output method on the device, and using serial port, buzzer or indicator light to output the self-test result, the problem of self-test information output of devices without serial port is solved, and reliable transmission of self-test results is realized.
Patent Information
- Application Number
- CN202610111684.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-27
- Publication Date
- 2026-05-15
AI Technical Summary
The existing BIT self-test program cannot output self-test result information correctly on devices without a serial port.
The self-test result information output method is dynamically selected according to the equipment status. The self-test result information is output using serial port, buzzer or indicator light, and the self-test result is obtained through voice or image analysis.
This ensures that self-test results are output normally under different equipment conditions, improving the reliability and applicability of the self-test results.
Smart Images

Figure CN122044970A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of BIT self-testing technology, and in particular to a method for outputting and acquiring BIT self-testing result information, and a computer program product. Background Technology
[0002] Built-in Test (BIT) refers to an automated testing mechanism integrated within a system that automatically checks whether the hardware and software functions are normal, ensuring that the device can operate normally. Existing BIT programs all output test results via a serial port. If some devices, due to their special design requirements, do not have a serial port, they will not be able to output test results. Summary of the Invention
[0003] The purpose of this invention is to provide a method for outputting BIT self-test result information and a computer program product thereof, which can dynamically select the output mode of self-test result information according to the device conditions to ensure normal output of self-test result information.
[0004] The purpose of this invention is to provide a method for receiving BIT self-test result information and a computer program product thereof, which can dynamically select the self-test result information receiving method according to the device conditions and determine the normal reception of self-test result information.
[0005] To achieve the above objectives, the present invention provides a method for outputting BIT self-test result information. The device automatically performs a self-test to obtain self-test result information. If the device has a serial port, the self-test result information is output using the serial port. If the device does not have a serial port but has a buzzer or indicator light, the self-test result information is output using a buzzer as an audio signal or using an indicator light as an optical signal.
[0006] Furthermore, if the device does not have a serial port but has a buzzer and indicator light, it will detect the ambient light and ambient noise at the location of the device: if the ambient light exceeds the preset brightness threshold, it will use the buzzer to output the self-test result information instead of the indicator light; if the ambient noise is higher than the preset decibel threshold, it will use the indicator light to output the self-test result information instead of the buzzer.
[0007] Furthermore, the equipment system converts the self-test result information into a sound signal based on the pre-stored buzzer self-test result comparison table, and then uses the buzzer to output the sound signal.
[0008] Furthermore, the equipment system converts the self-test result information into an optical signal based on the pre-stored indicator self-test result comparison table, and then uses the indicator lights to output the optical signal.
[0009] The present invention also provides a method for receiving BIT self-test result information. If the device uses a buzzer to output self-test result information in the form of an audio signal, a microphone is used to record the buzzer audio emitted by the device, and then a voice analysis step is performed: the self-test result information is obtained by performing voice analysis on the buzzer audio.
[0010] Furthermore: a corresponding combination of long and short beep sounds is pre-set for each self-test item, and a corresponding combination of long and short beep sounds is set for each self-test result, thereby generating a buzzer self-test result comparison table; in the speech analysis step, speech analysis is performed on the buzzer audio to obtain multiple combinations of long and short beep sounds, and the corresponding self-test result information is obtained by searching the pre-stored buzzer self-test result comparison table.
[0011] Furthermore, if the device uses indicator lights to output self-test result information in the form of light signals, then the camera records the light video displayed by the device's indicator lights, and then performs an image analysis step: performing image analysis on the recorded light video to obtain self-test result information.
[0012] Furthermore: a corresponding indicator light color flashing combination is pre-set for each self-test item and a corresponding indicator light color flashing combination is set for each self-test result, thereby generating an indicator light self-test result comparison table; in the image analysis step, the recorded light video is image analyzed to obtain multiple indicator light color flashing combinations, and the corresponding self-test result information is obtained by searching the pre-stored indicator light self-test result comparison table.
[0013] The present invention also provides a computer program product, including a computer program that, when executed, implements the BIT self-test result information output method as described above, or implements the BIT self-test result information receiving method as described above.
[0014] The above-mentioned BIT self-test result information output method can automatically and dynamically select the self-test result information output method according to the device status. If the device has a serial port, it will prioritize outputting the self-test result information through the serial port. If there is no serial port but there is a buzzer or indicator light, the self-test result information will be output through the buzzer or the indicator light to ensure normal output of the self-test result information. Attached Figure Description
[0015] Figure 1 This is a flowchart illustrating the BIT self-test result information output method provided by the present invention. Detailed Implementation
[0016] The present invention will be further described in detail below with reference to specific embodiments.
[0017] In this embodiment, a computer program product is obtained by a technician using computer code. This computer program product includes a computer program, which is installed on the device that needs to perform a BIT self-test. The controller of the device executes the computer program to achieve the following: Figure 1 The method for outputting BIT self-test results is shown below. The execution steps of this method are described in detail below.
[0018] Technicians install the aforementioned computer program on the equipment requiring a BIT self-test and set it to start automatically upon power-on. When the equipment powers on, the program will automatically execute to perform the BIT self-test. After power-on, the program automatically checks the functionality of all hardware and software components, obtaining self-test results. These results include each self-test item and its corresponding result (either normal or abnormal).
[0019] In this embodiment, the technicians pre-constructed a buzzer self-test result comparison table. Specifically, they set corresponding combinations of long and short beep sounds for each self-test item, corresponding combinations of long and short beep sounds for normal self-test results, and corresponding combinations of long and short beep sounds for abnormal self-test results. Based on this, a buzzer self-test result comparison table was generated, as shown in Table 1 below. The technicians also pre-constructed an indicator light self-test result comparison table. Specifically, they set corresponding combinations of indicator light color flashing for each self-test item, and then set corresponding combinations of indicator light color flashing for normal self-test results and corresponding combinations of indicator light color flashing for abnormal self-test results. Based on this, an indicator light self-test result comparison table was generated, as shown in Table 2 below.
[0020] Table 1
[0021] Table 2
[0022] When technicians install the aforementioned computer program on the device, they simultaneously store the self-test results of the buzzer and indicator lights into the device. After obtaining the self-test results, the device needs to output them to the host computer. Therefore, after obtaining the self-test results, the device determines whether it has a serial port, a buzzer, and indicator lights. If the device has a serial port, it uses the serial port to output the self-test results as electrical signals, and the host computer receives the self-test results from the device via the serial port. If this device does not have a serial port but has a buzzer, it converts the self-test result information into an audio signal according to a pre-stored buzzer self-test result lookup table. Specifically, the device looks up the pre-stored buzzer self-test result lookup table for each self-test item and its result to obtain the corresponding long and short beep combinations, which are then used as the audio signal for that self-test item and its result. For example, if the self-test result information includes "Self-test item: Network port self-test result normal," the device looks up the pre-stored buzzer self-test result lookup table and finds that the long and short beep combination for the network port is a long beep + short beep, and the long and short beep combination for the self-test result being normal is a long beep. Therefore, it will output "long beep + short beep, with a 10-second interval before a long beep." The device uses a buzzer to output the sound signal indicating that the network port self-test result is normal. For example, if the self-test result information includes "self-test item: video interface self-test result abnormal," the device searches a pre-stored buzzer self-test result lookup table. The combination of long and short beeps for the video interface is long + short + short, while the combination for an abnormal result is short. Therefore, "long + short + short, with a 10-second interval before short beep" is used as the sound signal for the video interface self-test result abnormality. This process continues, with the device converting each self-test item and its result in the self-test result information into a sound signal. The device then outputs these sound signals using a buzzer, thus displaying the self-test result information as an audio signal. After outputting the sound signal for one self-test item and its result, the device waits 20 seconds before outputting the sound signal for the next self-test item and its result.
[0023] The aforementioned device uses a buzzer to output self-test result information. Therefore, the host computer uses a microphone to record the buzzer audio emitted by the device, and then performs a speech analysis step: performing speech analysis on the buzzer audio to obtain self-test result information. Specifically, in this embodiment, a combination of long and short beeps corresponding to a self-test item and its self-test result buzzer combination are grouped together. The host computer performs speech analysis on the buzzer audio to obtain multiple combinations of long and short beeps, and then, based on the time interval between each combination of long and short beeps (the combination of long and short beeps for the self-test item and its corresponding self-test result), the results are analyzed. The interval between the long and short beep combinations of the self-test results is 10 seconds. After the long and short beep combinations of the self-test results of the previous self-test item are output, the buzzer will output the long and short beep combinations of the next self-test item after a 20-second interval. The above multiple long and short beep combinations are divided into multiple groups, each group corresponding to a self-test item and its self-test result. Then, for each group of long and short beep combinations, the pre-stored buzzer self-test result lookup table is consulted to obtain the self-test item and its self-test result corresponding to that group of long and short beep combinations. In this way, the self-test result information of the above device can be obtained.
[0024] If this device does not have a serial port but has indicator lights, it converts the self-test result information into an optical signal according to a pre-stored indicator light self-test result lookup table. Specifically, the device looks up the pre-stored indicator light self-test result lookup table for each self-test item and its result to obtain the corresponding indicator light color flashing combination, which is then used as the optical signal for that self-test item and its result. For example, if the self-test result information includes "Self-test item: Network port self-test result normal," the device looks up the pre-stored indicator light self-test result lookup table and finds that the corresponding indicator light color flashing combination for the network port is green. If the self-test result is normal, the indicator light flashing combination is a solid green light. Therefore, "green light flashing, then solid green light after 10 seconds" is taken as the optical signal indicating a normal self-test result for the network port. For example, if the self-test result information includes "video interface self-test result abnormal," the device searches the pre-stored indicator light self-test result lookup table. If the flashing combination for the video interface is a flashing yellow light, and the flashing combination for an abnormal self-test result is a solid red light, then "yellow light flashing, then solid red light after 10 seconds" is taken as the optical signal indicating an abnormal self-test result for the video interface. This process continues, converting each self-test item and its result in the self-test result information into an optical signal, and then outputting these optical signals using the three-color indicator lights. After outputting the optical signal for one self-test item and its result using the three-color indicator lights, the device waits 20 seconds before outputting the optical signal for the next self-test item and its result. The device then uses the tri-color indicator lights to output these light signals, thus displaying the self-test results as optical signals. After outputting the light signal for one self-test item and its result using the tri-color indicator lights, the device outputs the light signal for the next self-test item and its result after a 20-second interval. In other embodiments, if there are many self-test items, the number of tri-color indicator lights can be increased, and different indicator lights and their flashing color combinations can be set for different self-test items.
[0025] The aforementioned device uses indicator lights to output self-test result information. Therefore, the host computer uses a camera to record the video of the lights displayed by the device's indicator lights, and then performs an image analysis step: performing image analysis on the recorded light video to obtain self-test result information. Specifically, in this embodiment, a combination of indicator light color flashing corresponding to a self-test item and its self-test result indicator light color flashing combination are taken as a group. The host computer performs image analysis on the light video to obtain multiple indicator light color flashing combinations. Then, based on the time interval between each indicator light color flashing combination (the interval between the indicator light color flashing combination of the self-test item and its self-test result indicator light color flashing combination is 10 seconds, and after the output of the indicator light color flashing combination of the self-test result of the previous self-test item is completed, the indicator light will output the indicator light color flashing combination of the next self-test item after a 20-second interval), the aforementioned multiple indicator light color flashing combinations are divided into multiple groups, each group corresponding to a self-test item and its self-test result. Then, for each group of indicator light color flashing combinations, a pre-stored indicator light self-test result lookup table is searched to obtain the self-test item and its self-test result corresponding to that group of indicator light color flashing combinations. In this way, the self-test result information of the aforementioned device can be obtained.
[0026] The BIT self-test result information output method of this embodiment can automatically and dynamically select the self-test result information output method according to the device status. If the device has a serial port, it will prioritize outputting the self-test result information through the serial port. If there is no serial port but there is a buzzer or indicator light, the self-test result information will be output through the buzzer or the indicator light to ensure normal output of the self-test result information.
[0027] If this device lacks a serial port but includes a buzzer and indicator light, it uses a light sensor and a noise sensor to detect ambient light and noise levels at the device's location. If the ambient light exceeds a preset brightness threshold (e.g., 7000 lux), the buzzer will be used to output the self-test result instead of the indicator light. If the ambient noise exceeds a preset decibel threshold (e.g., 70 dB), the indicator light will be used to output the self-test result instead of the buzzer. If the ambient light is too bright, glare may occur when the host computer records the lighting video, potentially leading to inaccurate color flashing combinations obtained from image analysis. Therefore, a buzzer is used to output the self-test result to ensure the host computer accurately receives the device's self-test information. If the ambient noise is too high, excessive noise in the recorded buzzer audio may result in inaccurate combinations of long and short beeps obtained from voice analysis. Therefore, an indicator light is used to output the self-test result to ensure the host computer accurately receives the device's self-test information.
[0028] The above description is merely an embodiment of the present invention and does not limit the scope of patent protection. Any non-substantial changes or substitutions made by those skilled in the art based on the present invention will still fall within the scope of patent protection.
Claims
1. A method for outputting BIT self-test result information, wherein the device automatically performs a self-test to obtain self-test result information, characterized in that: If the device has a serial port, the self-test result information is output using the serial port; if the device does not have a serial port but has a buzzer or indicator light, the self-test result information is output using the buzzer as an audio signal or using the indicator light as an optical signal.
2. The BIT self-test result information output method as described in claim 1, characterized in that, If this device does not have a serial port but has a buzzer and indicator light, it will detect the ambient light and ambient noise at the location of the device: if the ambient light exceeds the preset brightness threshold, it will use the buzzer to output the self-test result information instead of the indicator light; if the ambient noise is higher than the preset decibel threshold, it will use the indicator light to output the self-test result information instead of the buzzer.
3. The BIT self-test result information output method as described in claim 1 or 2, characterized in that, The equipment system converts the self-test result information into a sound signal based on a pre-stored buzzer self-test result comparison table, and then uses the buzzer to output the sound signal.
4. The BIT self-test result information output method as described in claim 1 or 2, characterized in that, The equipment system converts the self-test result information into an optical signal based on the pre-stored indicator light self-test result comparison table, and then uses the indicator lights to output the optical signal.
5. A method for receiving BIT self-test result information, characterized in that: If the device uses a serial port to output self-test result information, then the self-test result information is received via the serial port; if the device uses a buzzer to output self-test result information as an audio signal, then the buzzer audio emitted by the device is recorded by a microphone, and then the voice analysis step is performed: the self-test result information is obtained by performing voice analysis on the buzzer audio.
6. The BIT self-test result information receiving method as described in claim 5, characterized in that: Pre-set a corresponding combination of long and short beeps for each self-test item and a corresponding combination of long and short beeps for each self-test result, and generate a buzzer self-test result comparison table accordingly. In the speech analysis step, the buzzer audio is analyzed to obtain multiple combinations of long and short beeps. Based on this, the corresponding self-test result information is obtained by looking up the pre-stored buzzer self-test result comparison table.
7. The BIT self-test result information receiving method as described in claim 5, characterized in that, If the device uses indicator lights to output self-test results via light signals, then the camera records the video of the lights displayed by the device's indicator lights, and then the image analysis step is performed: the recorded light video is analyzed to obtain the self-test results.
8. The BIT self-test result information receiving method as described in claim 7, characterized in that: Pre-set corresponding indicator light color flashing combinations for each self-test item and for each self-test result, thereby generating an indicator light self-test result lookup table; in the image analysis step, perform image analysis on the recorded light video to obtain multiple indicator light color flashing combinations, and then look up the pre-stored indicator light self-test result lookup table to obtain the corresponding self-test result information.
9. A computer program product comprising a computer program, characterized in that, When the computer program is executed, it implements the BIT self-test result information output method as described in any one of claims 1 to 4, or the BIT self-test result information receiving method as described in any one of claims 5 to 8.