Test method and system for storing LED indicating lamp
Through the combination of stepper motor and position sensor, the color test of LED indicator lights is automatically carried out, which solves the problems of subjectivity and low efficiency of manual detection in the prior art, and realizes efficient and accurate color detection, which is suitable for large-scale production.
Patent Information
- Application Number
- CN202411110586.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-13
- Publication Date
- 2024-11-22
AI Technical Summary
The existing color testing methods of LED indicator lights have problems such as strong subjectivity, low efficiency, high cost and complex operation, which are difficult to meet the needs of mass production.
The stepper motor is used to control the precise rotation of the filter, and the position sensor determines the filter position. The voltage value is recorded in the position without filters and specific color filters through the light sensor to automatically evaluate the color output of the LED indicator light. Whether it meets the preset standards.
It reduces artificial intervention and subjective errors, improves the repetition and reliability of tests, improves detection speed and production efficiency, and is suitable for large-scale production environments.
Smart Images

Figure CN119000019A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of LED indicator light testing, and in particular to a method and system for testing a storage LED indicator light. Background Art
[0002] Currently, in the field of LED indicator manufacturing and quality control, ensuring that the color of LED indicators meets specifications is a critical task. LED indicators are used to convey important status information in different applications, and the accuracy of their color directly affects the use of the device and the user experience. Traditional color testing methods mainly rely on manual visual inspection or use simple optical instruments, which have several significant disadvantages.
[0003] First, manual inspection is highly subjective, and it is easy to cause inconsistent results due to operator visual fatigue or subjective judgment differences, affecting the uniformity of product quality. In addition, this method is inefficient and difficult to adapt to the needs of mass production. Secondly, although the use of traditional optical instruments for LED color testing can improve certain detection efficiency and accuracy, it still faces problems such as high equipment cost, complex operation and slow response speed. Therefore, there is an urgent need for a more efficient, accurate and cost-effective LED color testing method that reduces manual intervention and improves test speed and accuracy to meet the development needs of the modern LED manufacturing industry. Summary of the invention
[0004] The embodiments of the present disclosure provide a method and system for testing a storage LED indicator light, aiming to solve the problems existing in the above-mentioned background technology.
[0005] In order to solve the above technical problems, the present disclosure is implemented as follows:
[0006] In a first aspect, an embodiment of the present disclosure provides a method for testing a storage LED indicator light, the method comprising:
[0007] In response to a color test instruction from a test client, a target color is determined, where the target color is the color of normal light emission of the target LED indicator to be tested;
[0008] Controlling the stepper motor to rotate and drive the filter to rotate, so that the light sensor is located at a position without the filter, and recording the voltage value of the light sensor as a first voltage value, wherein the position reached by the filter is determined by the position sensor;
[0009] Controlling the stepper motor to rotate and drive the filter to rotate, so that the light sensor is located at the position of the filter with the same color as the target color, and recording the voltage value of the light sensor as a second voltage value;
[0010] By comparing the first voltage value and the second voltage value, it is determined whether the luminous color of the target LED indicator light passes the color test.
[0011] Optionally, judging whether the luminous color of the target LED indicator light passes a color test by comparing the first voltage value and the second voltage value includes:
[0012] Comparing the first voltage value with the second voltage value, and determining that the target LED indicator light passes the color test if the error range between the first voltage value and the second voltage value is within a preset first threshold; otherwise, determining that the target LED indicator light fails the color test;
[0013] The method further comprises:
[0014] When it is determined that the target LED indicator fails the color test, the stepper motor is controlled to rotate to drive the filter to rotate so that the light sensor is located at a position of a filter of a color different from the target color, and the voltage value of the light sensor is recorded as a third voltage value;
[0015] When the third voltage value exceeds a preset second threshold value, it is determined that the light emitting color of the target LED indicator light is abnormal.
[0016] Optionally, when it is determined that the target LED indicator light passes the color test, the method further includes:
[0017] In response to a light-off instruction from a test client, controlling the target LED indicator to turn off;
[0018] Controlling the stepper motor to rotate and drive the filter to rotate, so that the light sensor is located at a position without the filter, and recording the voltage value of the light sensor as a fourth voltage value;
[0019] When the fourth voltage value is lower than the preset third threshold value, it is determined that the target LED indicator light passes the on / off state test; otherwise, it is determined that the on / off state of the target LED indicator light is abnormal.
[0020] Optionally, when it is determined that the target LED indicator light passes the color test, the method further includes:
[0021] In response to a monitoring instruction from a test client, start timing, and monitor the second voltage value in real time during the timing;
[0022] When the timing reaches the preset monitoring time, if the change value of the second voltage value does not exceed the preset fourth threshold value within the monitoring time, it is determined that the target LED indicator light passes the constant light stability test; otherwise, it is determined that the constant light stability of the target LED indicator light is abnormal.
[0023] Optionally, before determining the target color in response to the color test instruction from the test client, the method further includes:
[0024] Connecting the network port of the baseboard management controller BMC of the target storage device where the target LED indicator light is located to the IP network;
[0025] Connect the RJ45 network interface of the control terminal to the IP network via an Ethernet cable, and the control terminal is used to respond to the instructions sent by the test client and perform corresponding control operations;
[0026] Starting the test client software on the test client, and adding the IP address of the control terminal and the IP address of the BMC on the target storage device in the test client software;
[0027] Enter the user name and password in the test client software, log in to the baseboard management controller BMC of the target storage device through SSH, and configure the corresponding test parameters according to the items to be tested by the target LED indicator, and the test parameters include: warning light, warning light test times and / or test time, positioning light color, positioning light test times and / or test time, normal operation status light color and normal operation status light test times and / or test time;
[0028] Based on the TCP / IP protocol, the test client communicates with the control terminal through the IP network.
[0029] Optionally, the method further comprises:
[0030] When it is determined that the target LED indicator light is abnormal, an alarm is sent to the test client, the test is stopped, and the environmental status of the current test is saved. The abnormal light emission includes but is not limited to at least one of the following: abnormal light color, abnormal on and off state, and abnormal constant light stability.
[0031] Optionally, after determining that the target LED indicator light passes the on-off state test, the method further includes:
[0032] Determine the number of tests that the current test has reached;
[0033] In the case that the number of tests reached by the current test is less than the preset number of tests, the number of tests reached by the current test is updated, and the steps are performed: in response to a light-off instruction from the test client, the target LED indicator light is controlled to be turned off;
[0034] When the number of tests reached by the current test is equal to the preset number of tests, the test is terminated;
[0035] After determining that the target LED indicator light passes the constant light stability test, the method further includes:
[0036] Determine the test duration that has been reached for the current test;
[0037] In the case that the test duration reached by the current test is less than the preset test duration, the number of tests reached by the current test is updated, and the steps of: responding to a monitoring instruction from the test client, starting timing and monitoring the second voltage value in real time during the timing;
[0038] When the test duration of the current test is equal to the preset test duration, the test is terminated.
[0039] Optionally, before determining the target color in response to the color test instruction from the test client, the method further includes:
[0040] The target storage device where the target LED indicator light is located is placed in a dark environment, and the distance between the target storage device, the filter and the light sensor is adjusted so that the light sensor receives the light signal from the target LED indicator light through the filter.
[0041] In a second aspect, an embodiment of the present disclosure provides a test system for storing an LED indicator light, which is applied to a test method for storing an LED indicator light, the system comprising: a test client, a control terminal, a stepper motor, a light sensor, a position sensor, a filter, and a target storage device where a target LED indicator light to be tested is located, the filter being connected to the stepper motor via a transmission shaft, and the position sensor being disposed on the transmission shaft;
[0042] The control terminal is used to respond to the instruction sent by the test client and perform the corresponding control operation;
[0043] The stepper motor is used to drive the filter to rotate so that the filter reaches the position required for testing;
[0044] The light sensor is used to receive the light signal from the target LED indicator through the filter.
[0045] Optionally, the control terminal includes an alarm device for sending an alarm signal to the test client when abnormal lighting of the target LED indicator is detected.
[0046] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:
[0047] The present invention uses a stepper motor to control the precise rotation of the filter, and combines a position sensor to determine the specific position of the filter, so as to automatically perform color calibration on the LED indicator, thereby reducing the influence of human intervention and subjective errors. In addition, the present invention reliably evaluates whether the color output of the target LED indicator meets the preset standard by comparing the voltage values recorded by the light sensor without the filter and at the position of a specific color filter. The use of the automated and quantitative test method of the present invention not only improves the repeatability and reliability of the test, but also improves the detection speed, making it more suitable for application in a large-scale production environment, thereby effectively improving production efficiency and product quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0049] Figure 1 It is a schematic diagram of the steps of a method for testing a storage LED indicator light provided by an embodiment of the present disclosure;
[0050] Figure 2 It is an overall flow chart of a method for testing a storage LED indicator light provided by an embodiment of the present disclosure;
[0051] Figure 3 It is a schematic diagram of the architecture of a test system for storing a target LED indicator light provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0052] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0053] The present disclosure provides a storage LED indicator test method and system, which controls the color and on / off duration of the LED indicator through a baseboard management controller BMC, and quickly determines the color of the LED by automatically switching the combination of the filter and the light sensor, thereby achieving efficient and low-cost automated testing. The test method provided by the embodiment of the present disclosure can be widely used in scenarios such as data centers, server manufacturing, storage device development and quality control, and provides strong guarantees for the reliability and user experience of related products.
[0054] Figure 1 FIG. 1 is a schematic diagram of the steps of a method for testing a storage LED indicator light provided by an embodiment of the present disclosure. Figure 1 As shown, the method includes:
[0055] Step S101, in response to a color test instruction from a test client, determining a target color, wherein the target color is a normal light-emitting color of a target LED indicator to be tested;
[0056] Step S102, controlling the stepper motor to rotate and drive the filter to rotate, so that the light sensor is located at a position without the filter, and recording the voltage value of the light sensor as a first voltage value, wherein the position reached by the filter is determined by the position sensor;
[0057] Step S103, controlling the stepper motor to rotate and drive the filter to rotate, so that the light sensor is located at the position of the filter of the same color as the target color, and recording the voltage value of the light sensor as a second voltage value;
[0058] Step S104: By comparing the first voltage value and the second voltage value, it is determined whether the luminous color of the target LED indicator light passes the color test.
[0059] In step S101, the test client sends a color test instruction to the BMC of the storage device under test through the specially developed test client software. The color test instruction contains the target color requirements of the target LED indicator to be tested, as well as the corresponding test parameters (such as the number of on and off times and the duration of on and off). The target color can be any one of the three primary colors (red, green, and blue), or other colors formed by the combination of the three primary colors (such as yellow, purple, orange, etc.).
[0060] In step S102, in the disclosed embodiment, a stepper motor is used to accurately control the rotation position of the filter, and the stepper motor steps according to the set angle to drive the filter mounted on its transmission shaft to rotate step by step. Before the test starts, the filter needs to be in an initial position, that is, there is no filter in front of the light sensor. At this time, the light sensor can directly measure the light intensity emitted by the target LED indicator without any color filtering. In the absence of a filter, the voltage value (V1) measured by the light sensor is recorded as the first voltage value, which is used as a reference voltage value for comparison in subsequent color judgment. The voltage value in the absence of a filter reflects the original light intensity emitted by the target LED indicator. The reference voltage value is equivalent to providing a standard for correcting and eliminating the influence of ambient light or minor errors of the device itself that may exist during the test. In the subsequent filter test, by comparing the voltage values (such as the second voltage value and the third voltage value) under different filter position states with the reference voltage value, the color component of the light can be accurately determined.
[0061] In step S103, when the light sensor is located in front of the target color filter, the voltage value (V2) output by the light sensor at this time is recorded as the second voltage value. The second voltage value reflects the light intensity of the target LED indicator after passing through the target color filter, and reflects the proportion of the target color component in the LED light.
[0062] In step S104, assuming that the target color is red, if the target LED indicator light normally displays red, then the comparison result of the first voltage value and the second voltage value should be within a reasonable error range. If the difference in the comparison falls within the preset error range, it means that the luminous color of the target LED indicator light meets the expectation and the target LED indicator light passes the color test; otherwise, it means that the target color does not meet the requirements and the target LED indicator light fails the color test.
[0063] The present invention uses a stepper motor to control the precise rotation of the filter, and combines a position sensor to determine the specific position of the filter, so as to automatically perform color calibration on the LED indicator, thereby reducing the influence of human intervention and subjective errors. In addition, the present invention reliably evaluates whether the color output of the target LED indicator meets the preset standard by comparing the voltage values recorded by the light sensor without the filter and at the position of a specific color filter. The use of the automated and quantitative test method of the present invention not only improves the repeatability and reliability of the test, but also improves the detection speed, making it more suitable for application in a large-scale production environment, thereby effectively improving production efficiency and product quality.
[0064] Exemplarily, judging whether the luminous color of the target LED indicator light passes the color test by comparing the first voltage value and the second voltage value includes:
[0065] The first voltage value and the second voltage value are compared. If the error range between the first voltage value and the second voltage value is within a preset first threshold, it is determined that the target LED indicator light passes the color test; otherwise, it is determined that the target LED indicator light fails the color test.
[0066] The first threshold value can be a specific voltage value or a specific percentage interval. For example, the ratio of the second voltage value to the first voltage value is calculated, that is, it is used to measure the intensity of the target color component in the LED light. The first threshold value is set as the voltage value under the red filter should account for a certain percentage range of the original voltage value. Compare the calculated ratio with the preset first threshold value. If the ratio falls within the preset range, it means that the luminous color of the target LED indicator meets the expectations and passes the color test. If the ratio is not within the preset range, it means that the luminous color of the target LED indicator does not meet the requirements and fails the color test. For example, the voltage values V1 and V2 measured by the light sensor, assuming that V1 is 100mV and V2 is 80mV, then the calculated ratio is 0.8 (80%), and the calculated ratio value (e.g., 80%) is compared with the preset first threshold value (e.g., 70% to 90%). The ratio value 80% falls within the range of 70% to 90% defined by the first threshold value, so it is determined that the target LED indicator passes the color test.
[0067] Exemplarily, the method also includes: when it is determined that the target LED indicator light fails the color test, controlling the stepper motor to rotate and drive the filter to rotate so that the light sensor is located at a position of a filter of a color different from the target color, and recording the voltage value of the light sensor as a third voltage value; when the third voltage value exceeds a preset second threshold value, determining that the luminous color of the target LED indicator light is abnormal.
[0068] In the process of determining the color of the target LED indicator, if it is detected that the target LED indicator fails the color test, further steps are taken to confirm the color abnormality, control the stepper motor to rotate, and move the filter to a filter position different from the target color. For example, if the target color is red, a blue or green filter can be selected. Let the light sensor measure the light intensity after passing through this different color filter, record the voltage value (V3) as the third voltage value, compare the third voltage value with the preset second threshold value, and determine whether the target LED indicator light color is abnormal. For example, for a red LED, in order to confirm the specific cause of the color abnormality, select a filter different from the target color (such as a blue filter). The voltage value after passing through the blue filter should be very low. Compare the measured third voltage value with the second threshold value. If V3 exceeds the preset second threshold value, it means that the light intensity emitted by the LED is also strong under the blue filter, indicating that there is a problem with the LED light emission, such as mixed light instead of pure red light, and determine that the light color of the target LED indicator is abnormal.
[0069] Exemplarily, when it is determined that the target LED indicator light passes the color test, the method further includes: in response to a light-off instruction from the test client, controlling the target LED indicator light to turn off; controlling the stepper motor to rotate and drive the filter to rotate so that the light sensor is located at a position without a filter, and recording the voltage value of the light sensor as a fourth voltage value; when the fourth voltage value is lower than a preset third threshold value, determining that the target LED indicator light passes the on-off state test; otherwise, determining that the on-off state of the target LED indicator light is abnormal.
[0070] Assuming that the color test of the target LED indicator has passed, the specific method is as described above. After receiving the light-off command from the test client, the BMC is controlled to control the target LED indicator to turn off. The stepper motor is controlled to rotate, and the filter is moved away so that the light sensor is located at a position without a filter. The voltage value (V4) measured by the light sensor at this time is the fourth voltage value. The fourth voltage value represents the voltage value of the light sensor without a filter after the LED is turned off, reflecting the ambient light intensity after the light is turned off. Assuming that the third threshold is 10mV, if the measured fourth voltage value is lower than the third threshold (ie, V4<10mV), it can be confirmed that the target LED indicator is indeed off, and the on-off state test has passed. If V4 exceeds 10mV, it means that the light sensor still detects a higher light intensity, indicating that the target LED indicator is not completely off, and it is judged that the on-off state of the target LED indicator is abnormal.
[0071] Exemplarily, when it is determined that the target LED indicator light passes the color test, the method further includes: in response to a monitoring instruction from a test client, starting timing, and monitoring the second voltage value in real time during the timing; when the timing reaches a preset monitoring time, if the change in the second voltage value does not exceed a preset fourth threshold value during the monitoring time, determining that the target LED indicator light passes the constant light stability test; otherwise, determining that the constant light stability of the target LED indicator light is abnormal.
[0072] After the color test of the target LED indicator light passes, the further test is for the stability of the target LED indicator light. After receiving the monitoring instruction from the test client, the timing is started and the second voltage value measured by the light sensor is monitored in real time to ensure that the target LED indicator light can maintain stable brightness within the set time (for example, the monitoring time is 60 minutes). During the entire monitoring time, the light sensor continuously measures and records the second voltage value. If the light intensity of the target LED indicator light is stable, then the second voltage value should be maintained within a relatively fixed range. According to the preset fourth threshold, it is determined whether the brightness is stable. Assuming that the fourth threshold value is 5mV, at the end of the set monitoring time (such as 60 minutes), the recorded second voltage value is checked. If the change value of the second voltage value does not exceed the preset fourth threshold value during the entire monitoring period (that is, the fluctuation of the second voltage value within 60 minutes does not exceed ±5mV), then it can be determined that the brightness of the target LED indicator light is stable and the stability test of the constant light is passed. If the fluctuation of the second voltage value exceeds 5mV (for example, the second voltage value drops to 63mV or rises to 78mV at a certain moment, or even goes out directly), then it is determined that the brightness of the target LED indicator light is unstable and the stability test of the constant light is not passed.
[0073] Exemplarily, before determining the target color in response to a color test instruction from a test client, the method further includes: connecting a network port of a baseboard management controller BMC of a target storage device where the target LED indicator light is located to an IP network; connecting an RJ45 network interface of a control terminal to the IP network via an Ethernet cable, the control terminal being used to respond to instructions sent by the test client and perform corresponding control operations; starting a test client software on the test client, and adding the IP address of the control terminal and the IP address of the BMC on the target storage device in the test client software; entering a user name and password in the test client software, logging in to the baseboard management controller BMC of the target storage device via SSH, and configuring corresponding test parameters according to the items to be tested for the target LED indicator light, the test parameters including: an alarm light, the number of alarm light tests and / or the test time, the color of a positioning light, the number of positioning light tests and / or the test time, the color of a normal operating status light, and the number of normal operating status light tests and / or the test time; based on the TCP / IP protocol, the test client communicates with the control terminal via the IP network.
[0074] Before starting the color test for the target LED indicator, a series of pre-environment configurations are performed. The network interface of the baseboard management controller (BMC) on the target storage device is connected to the IP network and connected to a network switch or router via a standard Ethernet cable to ensure that the BMC is accessible in the network. The RJ45 network interface of the control terminal also needs to be connected to the same IP network via an Ethernet cable. The control terminal and the BMC of the target storage device need to be in the same local area network to ensure that they can communicate with each other. Start the test client software installed on the test client. In the test client software, add the IP address of the control terminal and the IP address of the BMC on the target storage device to establish a communication connection in the subsequent steps. Enter the username and password for accessing the BMC in the test client software as the administrator credentials. Then, log in to the BMC of the target storage device via SSH (Secure Shell Protocol), which provides a secure remote login function. Once the login is successful, the test client software will configure the corresponding test parameters, which include but are not limited to: the color of the alarm light, the number of tests and / or the test time, the color of the positioning light, the number of tests and / or the test time, and the color of the normal operating status light, the number of tests and / or the test time. The test client communicates with the control terminal in the IP network through the TCP / IP protocol, and the test instructions and test results are transmitted between the test client and the control terminal through the network.
[0075] For example, the BMC network port of the target storage device is connected to the network switch of the data center and obtains the IP address 192.168.1.10. The control terminal is connected to the same network switch through an Ethernet cable and obtains the IP address 192.168.1.20. Run the test client software on the test client and enter the IP address 192.168.1.20 of the control terminal and the IP address 192.168.1.10 of the BMC. Enter the login credentials of the BMC in the test client software, such as username: admin, password: password, and log in to the BMC through SSH. Set the alarm light to red and test 5 times, each lasting 10 seconds; set the positioning light to blue and test 3 times, each lasting 15 seconds; set the normal operation status light to green and test 10 times, each lasting 5 seconds. The test client sends test instructions to the control terminal, and the control terminal sends specific LED control instructions to the BMC through the IP network. The BMC executes these instructions and returns test results, such as whether the LED status changes correctly and the actual duration of each test.
[0076] Through the above steps, the automatic test of the color and reliability of the LED indicator light of the storage device is realized, which greatly improves the test efficiency and accuracy and reduces the test cost.
[0077] Exemplarily, the method also includes: when it is determined that the target LED indicator light is abnormal, sending an alarm prompt to the test client, stopping the test, and saving the environmental status of the current test, wherein the abnormal light emission includes but is not limited to at least one of the following: abnormal light color, abnormal on and off state, and abnormal constant light stability.
[0078] When it is determined that the target LED indicator is abnormally emitting light, an alarm is activated for the abnormality. The abnormal emitting conditions include but are not limited to at least one of the following: abnormal emitting color, the light color emitted by the target LED indicator is inconsistent with the expectation; abnormal on and off state, the on and off frequency or cycle of the target LED indicator is inconsistent with the set test parameters; abnormal constant lighting stability, within the set time, the light intensity fluctuation of the target LED indicator exceeds the reasonable range and cannot maintain stable brightness. If the emitting color, on and off state or constant lighting stability is found to be abnormal, the control terminal sends an alarm prompt to the test client and stops the test. Save the current test environment status to quickly locate and solve the problem.
[0079] Exemplarily, after determining that the target LED indicator light has passed the on-off status test, the method further includes: determining the number of tests that the current test has reached; when the number of tests that the current test has reached is less than the preset number of tests, updating the number of tests that the current test has reached, and executing the steps: in response to a light-off instruction from the test client, controlling the target LED indicator light to turn off; when the number of tests that the current test has reached is equal to the preset number of tests, ending the test.
[0080] After the target LED indicator passes the preliminary color and brightness test, read the number of tests that have been reached in the current test, and compare the current number of tests with the preset number of tests. If the current number of tests is less than the preset number of tests, start counting, add one to the current number of tests, and the test client sends a light-off command to control the target LED indicator to turn off. Wait for the set time interval to ensure that the target LED indicator is completely off. Send the light-on command again to control the target LED indicator to light up and continue the next round of testing. When the current number of tests is equal to the preset number of tests, the test ends.
[0081] After determining that the target LED indicator light passes the constant-light stability test, the method further includes: determining the test duration reached by the current test; when the test duration reached by the current test is less than the preset test duration, updating the number of tests reached by the current test, and executing the steps: responding to a monitoring instruction from the test client, starting timing and monitoring the second voltage value in real time during timing; and ending the test when the test duration reached by the current test is equal to the preset test duration.
[0082] After the target LED indicator passes the preliminary color and brightness test, record the duration of the current test as a reference time point for further testing. Compare the duration of the current test with the preset test duration: If the duration of the current test is less than the preset test duration, it indicates that the test needs to be continued. If the duration of the current test is equal to or greater than the preset test duration, the test ends, indicating that the LED indicator has passed the test. If it is determined that the test needs to continue, update the number of times the current test has been performed, keep track of the test progress, and ensure that the results of each test cycle are correctly recorded until the test reaches the preset duration.
[0083] Exemplarily, before determining the target color in response to a color test instruction from a test client, the method further includes: placing a target storage device where the target LED indicator light is located in a dark environment, and adjusting the distance between the target storage device, the filter, and the light sensor so that the light sensor receives the light signal from the target LED indicator light through the filter.
[0084] Before conducting the color test, place the target device in a dark environment. The dark environment can be a closed constant temperature box or other device that can completely isolate external light. The purpose is to avoid the interference of ambient light on the test results and ensure that the light signal received by the light sensor is purely from the target LED indicator. Adjust the distance between the target storage device, the filter and the light sensor so that the light sensor can accurately receive the light signal of the target LED indicator that passes through the filter. Place the target storage device, the filter and the light sensor roughly in a straight line layout, and ensure that the light sensor is facing the target LED indicator. By fine-tuning the position of the device, ensure that the light sensor can receive the light signal from the target LED indicator through the filter. This step may require the use of some measuring tools or rulers to ensure the precise distance and angle. The purpose of adjusting the distance is to ensure that the light signal received by the light sensor is the best. The position of the light sensor needs to be adjusted to a position where it can receive the maximum light signal of the target LED indicator that passes through the filter. Move the light sensor step by step to find the position with the strongest light signal, and confirm that the position of the filter between the light sensor and the target LED indicator is accurate to ensure that the filter can correctly filter out unwanted light wavelengths.
[0085] Through the above steps, it can be ensured that before responding to the color test instruction of the test client, the light signal of the target LED indicator can be accurately received and measured in a stable and controllable environment, thereby providing accurate data support for subsequent color judgment.
[0086] Exemplarily, after determining the target color in response to a color test instruction from a test client, the method further includes: adjusting the optical axis angles of the filter and the light sensor according to the color test result of the target LED indicator, and re-recording the voltage value of the light sensor.
[0087] According to the color test result, if the error range between the first voltage value and the second voltage value is within the preset first threshold value, proceed to the next step; if the error range exceeds the preset first threshold value, it is determined that there may be an error in the optical axis angle. The stepper motor is controlled to adjust the optical axis angle of the filter and the light sensor to ensure that the light signal received by the light sensor through the filter is accurate. After adjusting the optical axis angle, the stepper motor is controlled to rotate and drive the filter to rotate, so that the light sensor is located at the position without the filter again, and the voltage value of the light sensor is re-recorded as the first voltage value. The stepper motor is controlled to rotate and drive the filter to rotate, so that the light sensor is located at the position of the filter of the same color as the target color, and the voltage value of the light sensor is re-recorded as the second voltage value. By comparing the re-recorded first voltage value and the second voltage value, it is determined whether the luminous color of the target LED indicator passes the color test. If the error range is within the preset first threshold value, it is determined that the target LED indicator passes the color test, otherwise it is determined that the target LED indicator fails the color test. If it is determined that the target LED indicator passes the color test, the corresponding test steps as described above are performed according to the instructions of the test client.
[0088] Through the above steps, when the preliminary test results are not ideal, the optical axis angle can be adjusted and retested to reduce the test error caused by the optical axis offset, improve the reliability of the test results, and provide more accurate basic data for subsequent test steps.
[0089] Figure 2 FIG. 1 is an overall flow chart of a method for testing a storage LED indicator light provided by an embodiment of the present disclosure. Figure 2 As shown, the present disclosure provides two test routes that can be executed in parallel. For test route 1 ( Figure 2The control terminal executes the instructions issued by the test client, and correspondingly executes the color and on / off test of the target LED indicator, and starts the test process; the test client sends a color test instruction to determine the target color of the target LED indicator, and records the initial voltage value. The test client issues an instruction to control the target LED indicator to emit light of the target color. By comparing the recorded voltage value, it is determined whether the color of the target LED indicator meets the preset requirements. If the color does not meet the requirements, stop the test and issue an alarm signal to end the process. If the color meets the requirements, proceed to the next step. The test client issues an instruction to control the target LED indicator to turn off. The test client issues an instruction to obtain the actual on / off status of the target LED indicator and record the relevant voltage value. By comparing the voltage value, it is determined whether the target LED indicator is indeed off. If the LED is not off, stop the test and issue an alarm signal to end the process; if the LED is off, proceed to the next step. If the number of tests reaches the preset number, the test ends; if the number of tests does not reach the preset number, return to step: the test client issues an instruction to control the target LED indicator to emit light of the target color, and restart the test process.
[0090] For test route 2 ( Figure 2 The control terminal executes the instructions issued by the test client, and correspondingly executes the color and brightness state test of the target LED indicator to start the test process. The test client sends a color test instruction to determine the target color of the target LED indicator and record the initial voltage value. The test client sends an instruction to control the target LED indicator to emit light of the target color. By comparing the recorded voltage value, it is determined whether the color of the target LED indicator meets the preset requirements. If the color does not meet the requirements, stop the test and issue an alarm signal to end the process; if the color meets the requirements, proceed to the next step. The test client sends an instruction to obtain the brightness state of the target LED indicator in real time and record the relevant voltage value. By comparing the voltage value, it is determined whether the brightness state of the target LED indicator meets the preset requirements. If the brightness state does not meet the requirements, stop the test and issue an alarm signal to end the process; if the brightness state meets the requirements, proceed to the next step. If the test time reaches the preset time, the test ends; if the test time does not reach the preset time, return to step: the test client sends an instruction to obtain the brightness state of the target LED indicator in real time, record the relevant voltage value, and continue to determine the brightness state of the target LED indicator in real time.
[0091] Figure 3 1 is a schematic diagram of the architecture of a test system for storing an LED indicator light provided by an embodiment of the present disclosure. The system is applied to the test method for storing an LED indicator light as described above. Figure 3As shown, the system includes: a test client 201, a control terminal 202, a stepper motor 203, a light sensor 204, a position sensor 205, a filter 206 and a target storage device 207 where a target LED indicator to be tested is located, the filter 206 is connected to the stepper motor 203 through a transmission shaft 208, and the position sensor 205 is arranged on the transmission shaft 208;
[0092] The control terminal 202 is used to respond to the instruction sent by the test client 201 and perform the corresponding control operation;
[0093] The stepper motor 203 is used to drive the filter 206 to rotate, so that the filter 206 reaches the position required for testing;
[0094] The light sensor 204 is used to receive the light signal from the target LED indicator through the filter 206 .
[0095] The following is a detailed description of the architecture of a test system for storing LED indicator lights provided by an embodiment of the present disclosure. The test client 201 is the main control device of the system, which is installed with the test client software and is responsible for sending test instructions. The user sets the test parameters, such as the color of the LED, the duration of on and off, etc., through the test client. The test client is also responsible for receiving and processing the test results returned from the control terminal.
[0096] The control terminal 202 receives instructions from the test client 201 and performs corresponding control operations. It coordinates the movement of the stepper motor, the position adjustment of the filter, and the data collection of the light sensor. The control terminal is the core controller of the entire system, ensuring that the test process proceeds according to the predetermined steps.
[0097] The stepper motor 203 is used to accurately control the position of the filter 206. The stepper motor can convert electrical signals into precise angular displacements, and each rotation step is controlled by an input pulse signal, so that the stepper motor can accurately drive the filter to a specified position.
[0098] The optical sensor 204 is used to receive the optical signal from the target LED indicator. It can convert the received optical signal into an electrical signal (voltage value), which is then used for color determination. The accuracy and sensitivity of the optical sensor directly affect the accuracy of the test results.
[0099] The position sensor 205 is mounted on the transmission shaft 208 and is used to detect the position of the optical filter. The position sensor can be used to determine whether the optical filter has reached a specified position, thereby ensuring that the optical signal received by the optical sensor passes through the correct optical filter.
[0100] The filter 206 is an optical device that selectively absorbs or transmits light through an optical filter of a specific wavelength. Filters of different colors (such as red, blue, green, etc.) only allow light of the corresponding color to pass through. By switching different filters, LED light signals of different colors can be tested.
[0101] The target storage device 207 includes a target LED indicator to be tested. In order to avoid interference from ambient light, it is placed in a dark environment (such as a closed constant temperature box) to ensure that the light signal received by the light sensor is purely from the target LED indicator.
[0102] The transmission shaft 208 connects the stepper motor 203 and the filter 206. Through the control of the stepper motor, the transmission shaft can drive the filter to rotate accurately, ensuring that the filter can be switched to the correct position to filter the optical signal.
[0103] Exemplarily, the control terminal includes an alarm device for sending an alarm signal to the test client when abnormal lighting of the target LED indicator is detected.
[0104] The control terminal 202 is not only responsible for executing the test instructions, but also includes a component alarm device. The alarm device is used to send an alarm signal to the test client 201 when the target LED indicator light is detected to be abnormal. During the test, the control terminal 202 continuously monitors the voltage signal fed back by the light sensor 204. By comparing the preset reasonable voltage range (for example, the allowable error is 3%), the alarm device can detect any abnormal fluctuations in the light signal. Once an abnormal light signal is detected (for example, the LED color does not meet the requirements, the light intensity fluctuation exceeds the reasonable range, etc.), the alarm device will immediately generate an alarm signal. The alarm signal is transmitted to the test client 201 via the IP network to ensure that the tester can receive the abnormal notification in time. At the same time as the alarm signal is issued, the control terminal 202 will immediately stop the current test process and save the environmental status. This helps to quickly locate and troubleshoot problems.
[0105] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods and systems. Therefore, the embodiments of the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present disclosure may take the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0106] The embodiments of the present disclosure are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present disclosure. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing terminal device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded into a computer or other programmable data processing terminal device, so that a series of operation steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable terminal device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0107] Although the preferred embodiments of the present disclosure have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present disclosure.
[0108] Finally, it should be noted that, in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "include..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements. The above is a detailed introduction to a test method and system for storing LED indicator lights provided by the present disclosure. The present disclosure is described in detail using specific examples in this article to explain the principles and implementation methods of the present disclosure. The description of the above embodiments is only used to help understand the method and its core idea of the present disclosure; at the same time, for those skilled in the art, according to the idea of the present disclosure, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present disclosure.
Claims
1. A method for testing a storage LED indicator light, characterized in that: The method comprises: In response to a color test instruction from a test client, a target color is determined, where the target color is the color of normal light emission of the target LED indicator to be tested; Controlling the stepper motor to rotate and drive the filter to rotate, so that the light sensor is located at a position without the filter, and recording the voltage value of the light sensor as a first voltage value, wherein the position reached by the filter is determined by the position sensor; Controlling the stepper motor to rotate and drive the filter to rotate, so that the light sensor is located at the position of the filter with the same color as the target color, and recording the voltage value of the light sensor as a second voltage value; By comparing the first voltage value and the second voltage value, it is determined whether the luminous color of the target LED indicator light passes the color test.
2. The method according to claim 1, characterized in that By comparing the first voltage value and the second voltage value, determining whether the luminous color of the target LED indicator light passes the color test, comprises: Comparing the first voltage value with the second voltage value, and determining that the target LED indicator light passes the color test if the error range between the first voltage value and the second voltage value is within a preset first threshold; otherwise, determining that the target LED indicator light fails the color test; The method further comprises: When it is determined that the target LED indicator fails the color test, the stepper motor is controlled to rotate to drive the filter to rotate so that the light sensor is located at a position of a filter of a color different from the target color, and the voltage value of the light sensor is recorded as a third voltage value; When the third voltage value exceeds a preset second threshold value, it is determined that the light emitting color of the target LED indicator light is abnormal.
3. The method according to claim 2, characterized in that In the case where it is determined that the target LED indicator light passes the color test, the method further includes: In response to a light-off instruction from a test client, controlling the target LED indicator to turn off; Controlling the stepper motor to rotate and drive the filter to rotate, so that the light sensor is located at a position without the filter, and recording the voltage value of the light sensor as a fourth voltage value; When the fourth voltage value is lower than the preset third threshold value, it is determined that the target LED indicator light passes the on / off state test; otherwise, it is determined that the on / off state of the target LED indicator light is abnormal.
4. The method according to claim 2, characterized in that: In the case where it is determined that the target LED indicator light passes the color test, the method further includes: In response to a monitoring instruction from a test client, start timing, and monitor the second voltage value in real time during the timing; When the timing reaches the preset monitoring time, if the change value of the second voltage value does not exceed the preset fourth threshold value within the monitoring time, it is determined that the target LED indicator light passes the constant light stability test; otherwise, it is determined that the constant light stability of the target LED indicator light is abnormal.
5. The method according to claim 1, characterized in that Before determining the target color in response to the color test instruction from the test client, the method further includes: Connecting the network port of the baseboard management controller BMC of the target storage device where the target LED indicator light is located to the IP network; Connect the RJ45 network interface of the control terminal to the IP network via an Ethernet cable, and the control terminal is used to respond to the instructions sent by the test client and perform corresponding control operations; Starting the test client software on the test client, and adding the IP address of the control terminal and the IP address of the BMC on the target storage device in the test client software; Enter the user name and password in the test client software, log in to the baseboard management controller BMC of the target storage device through SSH, and configure the corresponding test parameters according to the items to be tested by the target LED indicator, and the test parameters include: warning light, warning light test times and / or test time, positioning light color, positioning light test times and / or test time, normal operation status light color and normal operation status light test times and / or test time; Based on the TCP / IP protocol, the test client communicates with the control terminal through the IP network.
6. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: When it is determined that the target LED indicator light is abnormal, an alarm is sent to the test client, the test is stopped, and the environmental status of the current test is saved. The abnormal light emission includes but is not limited to at least one of the following: abnormal light color, abnormal on and off state, and abnormal constant light stability.
7. The method according to claim 3, characterized in that After determining that the target LED indicator light passes the on-off state test, the method further includes: Determine the number of tests that the current test has reached; In the case that the number of tests reached by the current test is less than the preset number of tests, the number of tests reached by the current test is updated, and the steps are performed: in response to a light-off instruction from the test client, the target LED indicator light is controlled to be turned off; When the number of tests reached by the current test is equal to the preset number of tests, the test is terminated; After determining that the target LED indicator light passes the constant light stability test, the method further includes: Determine the test duration that has been reached for the current test; In the case that the test duration reached by the current test is less than the preset test duration, the number of tests reached by the current test is updated, and the steps of: responding to a monitoring instruction from the test client, starting timing and monitoring the second voltage value in real time during the timing; When the test duration of the current test is equal to the preset test duration, the test is terminated.
8. The method according to claim 1, characterized in that Before determining the target color in response to the color test instruction from the test client, the method further includes: The target storage device where the target LED indicator light is located is placed in a dark environment, and the distance between the target storage device, the filter and the light sensor is adjusted so that the light sensor receives the light signal from the target LED indicator light through the filter.
9. A test system for storing LED indicator lights, characterized in that: Applied to the method according to any one of claims 1 to 8, the system comprises: a test client, a control terminal, a stepper motor, a light sensor, a position sensor, a filter, and a target storage device where a target LED indicator to be tested is located, the filter is connected to the stepper motor through a transmission shaft, and the position sensor is arranged on the transmission shaft; The control terminal is used to respond to the instruction sent by the test client and perform the corresponding control operation; The stepper motor is used to drive the filter to rotate so that the filter reaches the position required for testing; The light sensor is used to receive the light signal from the target LED indicator through the filter.
10. The system according to claim 9, characterized in that The control terminal includes an alarm device for sending an alarm signal to the test client when abnormal lighting of the target LED indicator is detected.
