A control method and control device for a panel indicator light

By generating drive commands and comparing the actual and expected states of the panel indicator lights, the problem of the panel indicator light controller being unable to determine its working state is solved, thus achieving accurate detection and fault diagnosis of the panel indicator lights.

CN122340671APending Publication Date: 2026-07-03SHENZHEN ZHENGYUAN TECH

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHENZHEN ZHENGYUAN TECH
Filing Date
2026-05-07
Publication Date
2026-07-03

AI Technical Summary

Technical Problem

In the prior art, the controller of the panel indicator light cannot determine whether the indicator light is working properly, resulting in providing incorrect indication information when it is damaged.

Method used

By analyzing the system operation log or real-time status signal of the device under test, drive commands are generated, the indicator lights on the drive panel display the expected state, and after stabilization, images are captured for feature comparison to determine whether it is normal or not.

Benefits of technology

It enables effective detection of panel indicator lights, ensuring their normal operation during production and use, and providing accurate status feedback.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122340671A_ABST
    Figure CN122340671A_ABST
Patent Text Reader

Abstract

The application relates to a panel indicator light control method and a control device, wherein the control method comprises the following steps: analyzing a standard state of each panel indicator light at a current time to generate a driving instruction; sending the driving instruction to a to-be-tested device through a communication interface; triggering an image acquisition device to shoot a panel indicator light area to obtain a panel image containing a panel indicator light state within a preset time window after the panel indicator light state is stable; pre-processing the panel image and positioning the panel indicator light area to extract actual displayed color feature values or brightness feature values; comparing the extracted actual feature values with the analyzed standard state; if the matching degree is within a preset threshold range, it is determined that the panel indicator light is normal, otherwise, it is determined that the panel indicator light is faulty. The application realizes panel indicator light detection, and ensures correct indication and testing of the panel indicator light.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of panel indicator lights, and more specifically to a control method and control device for panel indicator lights. Background Technology

[0002] Panel indicator lights are key components in the optoelectronics field, serving as visual indicators of the operational status of various equipment systems. These components are designed to provide operators and technicians with clear and intuitive feedback, ensuring they can quickly determine whether the equipment is operating normally or requires maintenance.

[0003] During the production and use of panel indicator lights, the panel indicator lights rely on the open-loop control of the indicator light controller. Since there is no feedback information on whether the indicator light is working properly, the controller itself cannot determine whether the indicator light is working properly. This leads to some indicator lights giving incorrect indication information when they are damaged. Summary of the Invention

[0004] This invention addresses the problem of detecting panel indicator lights by proposing a panel indicator light control method and control device.

[0005] Firstly, this application proposes a panel indicator light control method, comprising: S100: Based on the system operation log or real-time status signal of the device under test, analyze the standard state that each panel indicator light should be in at the current moment, and generate drive instructions; S200: The drive command is sent to the control board of the device under test through the communication interface to drive the panel indicator hardware circuit to output the corresponding level signal, so that the panel indicator shows the expected on / off or color state. S300: Within a preset time window after the panel indicator light status stabilizes, trigger the image acquisition device to capture images of the panel indicator light area to obtain a panel image containing the panel indicator light status; S400: Preprocess the panel image and locate the panel indicator area, and extract the actual displayed color features or brightness feature values; S500: Compare the extracted actual feature values ​​with the standard states parsed in step S100. If the matching degree is within the preset threshold range, the panel indicator light is determined to be working normally; otherwise, it is determined to be faulty.

[0006] In some embodiments, step S100, "parse out the standard state that each panel indicator light should be in at the current moment," specifically includes: Establish a mapping table between system operating logic and panel indicator light status; By monitoring system bus data or reading register status; The mapping table is queried in real time to determine the color, flashing frequency, or brightness level that the target panel indicator light should display under a specific system operating scenario.

[0007] In some embodiments, the step of "triggering the image acquisition device to capture images of the panel indicator area" in step S300 includes: When the status of the indicator light on the system drive panel changes, a hardware trigger signal is sent to the image acquisition device. The high-precision timestamp of the hardware trigger signal is used to ensure that the image acquisition time is strictly synchronized with the stable status of the panel indicator light.

[0008] In some embodiments, "extracting the actual displayed color features" in step S400 includes: Convert the acquired RGB image to the HSV color space; For each panel indicator light, the histogram distribution of the hue component is statistically analyzed within the region of interest (ROI). The dominant color and saturation of the current panel indicator light are determined by the Otsu method or threshold segmentation.

[0009] In some embodiments, the method further includes a step of determining the flashing state of the panel indicator lights: Multiple frames of images are continuously acquired within a preset time period; Calculate the brightness change frequency of a specific panel indicator area in consecutive frames; The frequency is compared with the flashing frequency set in the system drive command to determine whether the flashing function is normal.

[0010] Secondly, this application proposes a control device, comprising: Logic parsing and driving module: Based on the system operation log or real-time status signal of the device under test, it parses the standard state that each panel indicator should be in at the current moment and generates driving instructions; The communication interface sends the drive command to the control board of the device under test, so that the hardware circuit of the panel indicator light outputs the corresponding level signal, causing the panel indicator light to display the expected on / off or color state. Image acquisition module: Deployed in front of the panel of the device under test, it is used to trigger the image acquisition device to take pictures of the panel indicator area within a preset time window after the panel indicator light status has stabilized, and to obtain a panel image containing the panel indicator light status; Visual processing and judgment module: Connects the image acquisition module and the logic parsing and driving module, and is used to preprocess the panel image and locate the panel indicator area, extract the actual displayed color features or brightness feature values, and compare the extracted actual feature values ​​with the standard state parsed in step S100. If the matching degree is within the preset threshold range, the panel indicator is judged to be working normally; otherwise, it is judged to be faulty.

[0011] In some embodiments, the logic parsing and driving module includes: Status mapping unit: stores the correspondence between system operating status and panel indicator display logic; IO driver unit: The hardware interface that connects to the device under test (DUT) can bypass the upper-layer software of the DUT and directly output the on / off state, color mixing, and PWM wave of the control panel indicator lights through the lower-level IO port or DAC to simulate the state of the panel indicator lights under different system scenarios.

[0012] In some embodiments, the system further includes: An ambient light compensation module, which includes a brightness sensor and a controllable light source located near the panel indicator light; The visual processing and judgment module dynamically adjusts the exposure parameters of the image acquisition module or controls a controllable light source to provide supplementary lighting based on the ambient light intensity fed back by the brightness sensor, so as to eliminate the interference of ambient light on color recognition.

[0013] In some embodiments, the visual processing and determination module includes: Template matching unit: Pre-stores standard panel templates, which are used to register the actual captured images with the standard templates, automatically correct shooting angle deviations, and accurately locate the ROI area coordinates of each panel indicator light.

[0014] Thirdly, this application proposes a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-described panel indicator control method.

[0015] The panel indicator light control method of this application comprises the following steps: S100: Analyzing the standard state that each panel indicator light should be in at the current moment based on the system operation log or real-time status signal of the device under test, and generating a driving command; S200: Sending the driving command to the control board of the device under test through a communication interface to drive the panel indicator light hardware circuit to output the corresponding level signal, so that the panel indicator light presents the expected on / off or color state; S300: Within a preset time window after the panel indicator light state stabilizes, triggering an image acquisition device to capture an image of the panel indicator light area, obtaining a panel image containing the state of the panel indicator lights; S400: Preprocessing the panel image and locating the panel indicator light area, extracting the actual displayed color features or brightness feature values; S500: Comparing the extracted actual feature values ​​with the standard state analyzed in step S100. If the matching degree is within a preset threshold range, the panel indicator light is determined to be working normally; otherwise, it is determined to be faulty. This method enables the detection of panel indicator lights during production testing and can also perform anomaly detection of the indicator lights during actual use. Attached Figure Description

[0016] Figure 1 This is a schematic diagram of the control device structure of this application; Figure 2 This is a flowchart of an embodiment of the panel indicator light control method of this application. Detailed Implementation

[0017] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0018] In the description of this invention, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the stated features. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.

[0019] In the description of this invention, the term "for example" is used to mean "used as an example, illustration, or description." Any embodiment described as "for example" in this invention is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to make and use the invention. Details are set forth in the following description for purposes of explanation. It should be understood that those skilled in the art will recognize that the invention can be made without using these specific details. In other instances, well-known structures and processes will not be described in detail to avoid obscuring the description of the invention with unnecessary detail. Therefore, the invention is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed herein. Example 1

[0020] like Figure 1 As shown, the system architecture 100 of the present invention includes a device under test (DUT) 20, a test host 10, an image acquisition device 30, an ambient light compensation device 40, and network and hardware interfaces connecting these components. Among them, Device Under Test (DUT) 20: In this embodiment, a 2U rack-mount server is used as an example. Its front panel includes the following indicator lights: Power LED: Dual-color LED (green / amber), supporting constant on, flashing (1Hz, 2Hz), and off. HDD LED: Monochrome blue LED with adjustable brightness. Link / Act LED: Dual-color LED (yellow / green), used to indicate link speed and activity status. The DUT internally runs a BMC (Baseboard Management Controller), supports the IPMI 2.0 protocol (Intelligent Platform Management Interface), and can access the System Event Log (SEL) via the network interface.

[0021] Test Host 10: An industrial PC equipped with a processor and GPU (for accelerated image processing). It runs test control software, including logic parsing and driver modules, and vision processing and judgment modules. The test host connects to the DUT's BMC interface via a gigabit Ethernet port to acquire SEL logs and send RAW commands; it also connects to the image acquisition device 30 via a USB 3.0 interface and to the hardware trigger circuitry via a DAQ (data acquisition card).

[0022] Image acquisition device 30: A 5-megapixel industrial CMOS camera with a global shutter (such as the Basler ace series) equipped with a 25mm fixed-focus 1-megapixel industrial lens. The camera is mounted on an XYZ three-axis adjustable bracket, each axis of which is equipped with a motor for mechanical image stabilization and to ensure that the camera is vertically aligned with the DUT panel, ensuring that the panel fills the field of view without significant distortion. The camera supports external opto-isolated trigger input.

[0023] Ambient light compensation device 40: includes a programmable ring LED light source (adjustable color temperature, located around the camera lens) and a TSL2561 ambient light sensor (I2C interface). The light source provides stable standard D65 illumination, and the sensor monitors changes in ambient light in real time, feeding back to the test host for dynamic exposure adjustment.

[0024] Reference Figure 2 In some embodiments, the panel indicator light control method of this application is applied to the testing process of the panel indicator lights, and the method includes: S100: Based on the system operation log or real-time status signal of the device under test, analyze the standard state that each panel indicator light should be in at the current moment, and generate drive instructions; S200: The drive command is sent to the control board of the device under test through the communication interface to drive the panel indicator hardware circuit to output the corresponding level signal, so that the panel indicator shows the expected on / off or color state. S300: Within a preset time window after the panel indicator light status stabilizes, trigger the image acquisition device to capture images of the panel indicator light area to obtain a panel image containing the panel indicator light status; S400: Preprocess the panel image and locate the panel indicator area, and extract the actual displayed color features or brightness feature values; S500: Compare the extracted actual feature values ​​with the standard states parsed in step S100. If the matching degree is within the preset threshold range, the panel indicator light is determined to be working normally; otherwise, it is determined to be faulty.

[0025] Specifically, the first step is system initialization and calibration. After the system is powered on, camera intrinsic parameter calibration is performed first, using a checkerboard calibration board to eliminate lens distortion. Then, panel template calibration is performed. A standard panel image is captured, and the center coordinates (x, y) and radius r of each panel indicator light are manually selected or automatically identified (based on Hough circle transform) through the GUI interface to generate a ROI template library. Simultaneously, the "System Status - Panel Indicator Light Mapping Table" for this server model is entered. An example mapping table entry is as follows: Event: BMC received a "CPU overheating" signal (Sensor Reading > Threshold).

[0026] Expected behavior: The Power LED turns "Amber" and the blinking mode is a PWM wave with a blinking frequency of 2Hz and a duty cycle of 50%.

[0027] S100: Based on the system operation log or real-time status signal of the device under test, analyze the standard state that each panel indicator light should be in at the current moment, and generate drive instructions; Test host 10 reads the SEL log of device under test 20 via the IPMI protocol. Assume the current log displays: "Fan 1Failure (Lower Non-critical - Going low)". The logic parsing and driver module reads the mapping table and finds the corresponding response should be "Power LED turns amber and blinks at a frequency of 1Hz". The logic parsing and driver module generates the driver instruction set: Target: Power_LED; Color: Amber; Mode: Blink; Freq: 1Hz; Duty: 50%.

[0028] In some embodiments, step S100, "parse out the standard state that each panel indicator light should be in at the current moment", specifically includes: establishing a mapping table between the system operation logic and the state of the panel indicator lights; listening to system bus data or reading register states; querying the mapping table in real time to determine the color, flashing frequency, or brightness level that the target panel indicator light should display under a specific system operation scenario.

[0029] S200: The drive command is sent to the control board of the device under test through the communication interface to drive the panel indicator hardware circuit to output the corresponding level signal, so that the panel indicator shows the expected on / off or color state. The test host 10 sends instructions to the BMC of the device under test 20 via IPMI commands. After parsing the instructions, the BMC outputs two PWM waveforms through the GPIO controller: one controls the green LED to turn off (duty cycle 0%), and the other controls the amber LED to blink at a frequency of 1Hz (high level 500ms, low level 500ms).

[0030] S300: Within a preset time window after the panel indicator light status stabilizes, trigger the image acquisition device to capture images of the panel indicator light area to obtain a panel image containing the panel indicator light status; The key to this step lies in hardware synchronization triggering and image acquisition. When the BMC outputs the rising edge of the PWM waveform (the instant of lighting up), the test host 10 synchronously outputs a +5V TTL pulse signal (10µs wide) to the trigger port of the camera 30. After receiving the trigger signal, the camera begins exposure after a preset delay (e.g., 100µs, to ensure the LED is fully lit). The exposure time is set to 5ms, much shorter than the PWM period (1000ms), ensuring that the camera captures a clear image of the LED in full brightness, completely eliminating the problem of brightness doubling or halving caused by the exposure time covering the "bright + dark" cycle.

[0031] The steps for triggering the image acquisition device to capture images of the panel indicator area include: when the system drives the panel indicator state to change, a hardware trigger signal is sent to the image acquisition device, and the high-precision timestamp of the hardware trigger signal is used to ensure that the image acquisition time is strictly synchronized with the stable state of the panel indicator.

[0032] S400: Preprocess the panel image and locate the panel indicator area, and extract the actual displayed color features or brightness feature values; After receiving the image (24-bit RGB Bitmap), the vision processing and judgment module performs the following processing: Denoising and Enhancement: Non-local means (NL-Means) filtering algorithm is applied to remove image noise while enhancing edges.

[0033] Geometric correction: Due to mechanical installation errors, the panel may be tilted. Using a pre-stored panel standard template, the homography matrix H is calculated, and the acquired image is subjected to perspective transformation to "straighten" it into a standard front view.

[0034] ROI segmentation: Based on the calibrated coordinates, a circular region (mask) is cropped from the corrected image. For each panel indicator light, only the pixels inside the mask are retained, while the outer pixels are set to black to prevent scattering interference from adjacent lights.

[0035] Color feature extraction: Convert the RGB pixel values ​​within the ROI area to the HSV color space.

[0036] The H values ​​of all pixels within the ROI region are statistically analyzed to generate a histogram. Since amber color is typically distributed between 20-40 degrees, the Otsu algorithm is used to automatically calculate the threshold, remove background noise (such as panel reflections), and calculate the average H value (H_avg) and average S value (S_avg) of the effective pixels.

[0037] Extract the actual displayed color features and convert the acquired RGB image to the HSV color space; for each panel indicator light, calculate the histogram distribution of the hue component, and determine the dominant color and saturation of the current panel indicator light by using the Otsu method or threshold segmentation.

[0038] S500: Compare the extracted actual feature values ​​with the standard states parsed in step S100. If the matching degree is within the preset threshold range, the panel indicator light is determined to be working normally; otherwise, it is determined to be faulty.

[0039] Hue determination: If the difference between the standard amber pixel value and the measured pixel value is less than 5, the color is qualified.

[0040] Saturation determination: Standard saturation S_std = 0.8. If the saturation > 0.7, the saturation is qualified, and the whitening phenomenon caused by the aging of the LED beads is ruled out.

[0041] Flicker frequency verification: To verify 1Hz flicker, the system continuously acquired 20 frames of images (10fps, covering two complete cycles). The V-value sequence [V_1, V_2, ..., V_{20}] of the Power LED ROI region was extracted. An FFT transformation was performed on this sequence to obtain the spectrum. If the spectral peak appears around 1Hz (0.9Hz-1.1Hz), the frequency is considered acceptable.

[0042] Output results: When hue, saturation, and frequency are all within acceptable limits, a first command is output to the controller. When at least one of hue, saturation, and frequency is within acceptable limits, a second command is output to the controller. The first and second commands correspond to the normal and abnormal indicator lights on the panel of the device under test, respectively.

[0043] For example, in some scenarios, there is crosstalk between multiple lights.

[0044] In actual testing, the following complex situations are often encountered: 1. Color Crosstalk: If the red and green lights are close together (spacing < 2mm), when the red light is on, the light may diffuse through the panel and shine onto the transparent lens of the green light, causing the vision system to misjudge that the green light area contains a red component.

[0045] In the embodiments of this application, pixel-level masking and background subtraction are implemented.

[0046] First, take a "completely destroyed" image in a dark room to use as the background.

[0047] Secondly, in each test image, the background image is subtracted to eliminate environmental noise.

[0048] An independent circular feathered mask is created for each light. When calculating color, not only is the ROI range limited, but Gaussian weights are also applied to edge pixels, with a weight of 1 for the center and 0 for the edges. This ensures that even if a small amount of red light spills over to the edge of the green light, the extremely low weight will not affect the color statistics of the central area of ​​the green light.

[0049] 2. Ambient Light Color Temperature Interference: Office lighting may be warm white light (color temperature 3000K), while standard testing requires D65 (6500K). This will cause white light to appear yellowish in the image. Color calibration based on a color chart is used. A standard 24-color ColorChecker color chart is placed next to the panel. Before each test, a photo of the color chart is taken, and a 3x3 color correction matrix (CCM) is calculated using the least squares method. This CCM matrix is ​​then applied to the panel image. Through CCM transformation, the image colors are restored to their appearance under standard lighting conditions, eliminating the influence of ambient light color temperature.

[0050] In some embodiments, this application forces the driving mode and fault injection.

[0051] To test the hardware limits of the panel indicator lights, the system enters "forced drive mode." In this mode, the test host 10 does not directly send IPMI commands but bypasses the BMC, directly controlling the pins connected to the LEDs via a connected CPU / JTAG debugger. For example, the test host 10 controls the pin to output a non-standard voltage (e.g., 1.5V, while the normal logic high level is 3.3V), observing whether the panel indicator lights dim. The vision system detects the decrease in the brightness V value, verifying visibility under low voltage. Furthermore, a "pin short circuit" or "pin floating" state can be simulated; the vision system should detect that the LEDs are completely off or have extremely low brightness, thus verifying the integrity of the circuit protection. Example 2

[0052] This invention proposes a control device, comprising: Logic parsing and driving module: Based on the system operation log or real-time status signal of the device under test, it parses the standard state that each panel indicator should be in at the current moment and generates driving instructions; The communication interface sends the drive command to the control board of the device under test, so that the hardware circuit of the panel indicator light outputs the corresponding level signal, causing the panel indicator light to display the expected on / off or color state. Image acquisition module: Deployed in front of the panel of the device under test, it is used to trigger the image acquisition device to take pictures of the panel indicator area within a preset time window after the panel indicator light status has stabilized, and to obtain a panel image containing the panel indicator light status; Visual processing and judgment module: Connects the image acquisition module and the logic parsing and driving module, and is used to preprocess the panel image and locate the panel indicator area, extract the actual displayed color features or brightness feature values, and compare the extracted actual feature values ​​with the standard state parsed in step S100. If the matching degree is within the preset threshold range, the panel indicator is judged to be working normally; otherwise, it is judged to be faulty.

[0053] In some embodiments, the logic parsing and driving module includes: Status mapping unit: stores the correspondence between system operating status and panel indicator display logic; IO driver unit: The hardware interface that connects to the device under test (DUT) can bypass the upper-layer software of the DUT and directly output the on / off state, color mixing, and PWM wave of the control panel indicator lights through the lower-level IO port or DAC to simulate the state of the panel indicator lights under different system scenarios.

[0054] In some embodiments, the system further includes: An ambient light compensation module, which includes a brightness sensor and a controllable light source located near the panel indicator light; The visual processing and judgment module dynamically adjusts the exposure parameters of the image acquisition module or controls a controllable light source to provide supplementary lighting based on the ambient light intensity fed back by the brightness sensor, so as to eliminate the interference of ambient light on color recognition.

[0055] In some embodiments, the visual processing and determination module includes: Template matching unit: Pre-stores standard panel templates, which are used to register the actual captured images with the standard templates, automatically correct shooting angle deviations, and accurately locate the ROI area coordinates of each panel indicator light.

[0056] The present invention also provides a computer-readable storage medium, such as a hard disk, SSD, optical disk, or flash memory. A computer program is stored thereon, which, when executed by a processor, implements the method steps of embodiments 1-4 described above. Specifically, the program includes a driver program for implementing hardware trigger timing control, an algorithm library (such as OpenCV) for HSV / Lab color space conversion, and library functions for FFT analysis. The software architecture adopts a modular design, including a data acquisition layer, a logic processing layer, a visual algorithm layer, and a user interaction layer.

[0057] It should be noted that the descriptions of each embodiment in the above embodiments have different focuses. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0058] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0059] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0060] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0061] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0062] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including both the preferred embodiments and all changes and modifications falling within the scope of the invention.

[0063] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.

Claims

1. A method for controlling panel indicator lights, characterized in that, include: S100: Based on the system operation log or real-time status signal of the device under test, analyze the standard state that each panel indicator light should be in at the current moment, and generate drive instructions; S200: The drive command is sent to the control board of the device under test through the communication interface to drive the panel indicator hardware circuit to output the corresponding level signal, so that the panel indicator shows the expected on / off or color state. S300: Within a preset time window after the panel indicator light status stabilizes, trigger the image acquisition device to capture images of the panel indicator light area to obtain a panel image containing the panel indicator light status; S400: Preprocess the panel image and locate the panel indicator area, and extract the actual displayed color features or brightness feature values; S500: Compare the extracted actual feature values ​​with the standard states parsed in step S100. If the matching degree is within the preset threshold range, the panel indicator light is determined to be working normally; otherwise, it is determined to be faulty.

2. The panel indicator light control method according to claim 1, characterized in that, The step S100, "parse out the standard state that each panel indicator light should be in at the current moment", specifically includes: Establish a mapping table between system operating logic and panel indicator light status; By monitoring system bus data or reading register status; The mapping table is queried in real time to determine the color, flashing frequency, or brightness level that the target panel indicator light should display under a specific system operating scenario.

3. The panel indicator light control method according to claim 1, characterized in that, The step S300, "triggering the image acquisition device to capture images of the panel indicator area," includes: When the status of the indicator light on the system drive panel changes, a hardware trigger signal (TriggerSignal) is sent to the image acquisition device. The high-precision timestamp of the hardware trigger signal is used to ensure that the image acquisition time is strictly synchronized with the stable status of the panel indicator light.

4. The panel indicator light control method according to claim 1, characterized in that, The step S400 of "extracting the actual displayed color features" includes: Convert the acquired RGB image to the HSV color space; For each panel indicator light, the histogram distribution of the hue component is statistically analyzed within the region of interest (ROI). The dominant color and saturation of the current panel indicator light are determined by the Otsu method or threshold segmentation.

5. The panel indicator light control method according to claim 1, characterized in that, The method also includes a step of determining the flashing state of the panel indicator lights: Multiple frames of images are continuously acquired within a preset time period; Calculate the brightness change frequency of a specific panel indicator area in consecutive frames; The frequency is compared with the flashing frequency set in the system drive command to determine whether the flashing function is normal.

6. A control device, characterized in that, include: Logic parsing and driving module: Based on the system operation log or real-time status signal of the device under test, it parses the standard state that each panel indicator should be in at the current moment and generates driving instructions; The communication interface sends the drive command to the control board of the device under test, so that the hardware circuit of the panel indicator light outputs the corresponding level signal, causing the panel indicator light to display the expected on / off or color state. Image acquisition module: Deployed in front of the panel of the device under test, it is used to trigger the image acquisition device to take pictures of the panel indicator area within a preset time window after the panel indicator light status has stabilized, and to obtain a panel image containing the panel indicator light status; Visual processing and judgment module: Connects the image acquisition module and the logic parsing and driving module, and is used to preprocess the panel image and locate the panel indicator area, extract the actual displayed color features or brightness feature values, and compare the extracted actual feature values ​​with the standard state parsed in step S100. If the matching degree is within the preset threshold range, the panel indicator is judged to be working normally; otherwise, it is judged to be faulty.

7. The control device according to claim 6, characterized in that, The logic parsing and driving module includes: Status mapping unit: stores the correspondence between system operating status and panel indicator display logic; IO driver unit: The hardware interface that connects to the device under test (DUT) can bypass the upper-layer software of the DUT and directly output the on / off state, color mixing, and PWM wave of the control panel indicator lights through the lower-level IO port or DAC to simulate the state of the panel indicator lights under different system scenarios.

8. The control device according to claim 6, characterized in that, The system also includes: An ambient light compensation module, which includes a brightness sensor and a controllable light source located near the panel indicator light; The visual processing and judgment module dynamically adjusts the exposure parameters of the image acquisition module or controls a controllable light source to provide supplementary lighting based on the ambient light intensity fed back by the brightness sensor, so as to eliminate the interference of ambient light on color recognition.

9. The control device according to claim 6, characterized in that, The visual processing and determination module includes: Template matching unit: Pre-stores standard panel templates, which are used to register the actual captured images with the standard templates, automatically correct shooting angle deviations, and accurately locate the ROI area coordinates of each panel indicator light.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the panel indicator control method as described in any one of claims 1 to 5.