Panel key pressure testing method and device and computer readable storage medium
By using an automated panel button pressure testing method, which combines servo motors and photosensitive sensors with data processing, efficient and reliable pressure testing of smart switch panel buttons has been achieved, solving the problems of low automation and poor testing reliability in existing technologies.
Patent Information
- Application Number
- CN202511936968.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-19
- Publication Date
- 2026-03-17
AI Technical Summary
In existing technologies, the pressure testing of smart switch panels has low automation, poor reliability, long testing cycle, high labor costs, and cannot achieve continuous testing around the clock, and consistency is difficult to guarantee.
An automated panel button pressure testing method is adopted, which uses servo motors to control the pressing and releasing states, combined with photosensitive sensor detection and data recording, to achieve stable waiting, status detection and interval waiting, and uses computer programs for data processing and analysis.
It improves the automation, efficiency, and reliability of testing, solves the problems of low testing efficiency, reliance on manual operation, and poor consistency, and achieves efficient and reliable key pressure testing.
Smart Images

Figure CN121679309A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of button pressure testing technology, and in particular to a method, device and computer-readable storage medium for testing panel button pressure. Background Technology
[0002] In existing technologies, stress testing of the switch buttons on smart switch panels typically involves manual operation. Testers manually press the switch buttons and observe whether the connected lights turn on or off as expected, thus determining if the button function is normal. However, in stress testing scenarios requiring thousands of repeated tests, this existing technology has the following inherent drawbacks: First, the testing cycle is long and the labor cost is high. It takes several weeks to complete a full test, consuming dozens of person-days of work. Second, the test results rely on subjective human judgment and lack objective, quantifiable data support. Third, it is impossible to conduct continuous testing around the clock, and the testing process is limited by the working hours and fatigue of the personnel; Fourth, test consistency is difficult to guarantee, and differences in operation by different personnel or at different times can easily introduce test errors.
[0003] Therefore, how to achieve an automated, efficient, and highly reliable intelligent switch panel switch button pressure testing solution has become an urgent technical problem to be solved. Summary of the Invention
[0004] In order to overcome the shortcomings of the prior art, the purpose of this invention is to provide a method to solve the problems of low automation and poor test reliability in the current pressure test of smart switch panel switch buttons.
[0005] This invention proposes a method for testing the pressure of panel buttons, the method comprising: In the current test cycle, after performing the first pressing action, the second stable waiting period begins. The status is checked in the third period after the stabilization period, and the results are recorded in the fourth period after the status check. After recording the test results, a waiting period is taken in the fifth time interval, and then preparation is made for the next cycle of testing.
[0006] Optionally, the pressing action during the first time period specifically includes: Control the servo motor to rotate to the first preset angle to enter the pressing state; After maintaining the pressed state during the first period, the servo is controlled to rotate to a second preset angle to transition from the pressed state to the released state.
[0007] Optionally, the stable waiting period before entering the second time period specifically includes: The duration of the second time period is set according to the charging characteristics of the capacitive load, the pull-in time of the relay, the response time of the control system, and the preset safety margin. After transitioning from the pressed state to the released state, the system enters a stable waiting period in the second phase.
[0008] Optionally, the state detection during the third time period after the stable waiting period specifically includes: Acquire multiple analog values cyclically collected by a photosensitive sensor; Take the average of multiple simulated values, and return the current state detection status based on the relationship between the average value and a preset threshold.
[0009] Optionally, recording the detection result in the fourth time period after the state detection specifically includes: Create an empty list of test records, and record the analysis start time through the empty list of test records; Create a plain text file with a timestamped filename, and record the test result data through the plain text file.
[0010] Optionally, the step of waiting at the fifth time interval after recording the test results, and then preparing for the next cycle of testing after the waiting period, specifically includes: Create test data structures, including a test data structure and a press phase data structure; The test data structure records the pressing data of multiple test stages, and the pressing stage data structure records the status data of multiple test stages.
[0011] Optionally, the method further includes: The photosensitive sensor is controlled to collect multiple sets of light intensity data, and the data, mean, and standard deviation are calculated based on the multiple sets of light intensity data. Outliers in the raw data acquired by the photosensitive sensor are identified based on a dynamic threshold of the standard deviation.
[0012] Optionally, identifying outliers among the simulated values based on a dynamic threshold of the standard deviation specifically includes: The upper and lower boundaries are calculated based on the standard deviation and the dynamic threshold. Based on the traversal of the upper and lower boundaries, normal and abnormal data are filtered out from the original data, and multiple simulated values are selected from the normal data.
[0013] The present invention also proposes a panel button pressure testing device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the panel button pressure testing method as described in any of the preceding claims.
[0014] The present invention also proposes a computer-readable storage medium storing a panel button pressure test program, wherein when the panel button pressure test program is executed by a processor, the steps of the panel button pressure test method as described in any of the above claims are implemented.
[0015] The panel button pressure testing method, device, and computer-readable storage medium of the present invention, by performing a pressing action in the first time period during the current cycle of testing, enters a stable waiting period in the second time period; performs status detection in the third time period after the stable waiting period, and records the detection results in the fourth time period after the status detection; performs an interval waiting period in the fifth time period after recording the detection results, and prepares for the next cycle of testing after the interval waiting period; thereby realizing a switch panel switch button pressure testing scheme with higher automation, detection efficiency, and detection reliability, effectively solving the problems of low testing efficiency, reliance on manual operation, inability to achieve continuous testing, and poor testing consistency in the prior art. Attached Figure Description
[0016] The present invention will be further described below with reference to the accompanying drawings and embodiments. In the accompanying drawings: Figure 1 This is a flowchart of the first embodiment of the panel button pressure testing method of the present invention; Figure 2 This is a flowchart of the second embodiment of the panel button pressure testing method of the present invention; Figure 3 This is a flowchart of the third embodiment of the panel button pressure testing method of the present invention; Figure 4 This is a flowchart of the fourth embodiment of the panel button pressure testing method of the present invention; Figure 5 This is a flowchart of the fifth embodiment of the panel button pressure testing method of the present invention; Figure 6 This is a flowchart of the sixth embodiment of the panel button pressure testing method of the present invention; Figure 7 This is a flowchart of the seventh embodiment of the panel button pressure testing method of the present invention; Figure 8 This is a flowchart of the eighth embodiment of the panel button pressure testing method of the present invention; Figure 9 This is a control timing diagram of the panel button pressure testing method of the present invention. Detailed Implementation
[0017] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention.
[0018] In the following description, the use of suffixes such as "module," "part," or "unit" to denote elements is solely for the purpose of illustrative purposes and has no specific meaning in itself. Therefore, "module," "part," or "unit" may be used interchangeably.
[0019] Example 1 Figure 1 This is a flowchart of the first embodiment of the panel button pressure testing method of the present invention. A panel button pressure testing method, the method comprising: S1. In the current cycle of testing, after performing the pressing action in the first period, the system enters the stable waiting period in the second period. S2. Perform status detection in the third time period after stabilization and record the detection results in the fourth time period after status detection. S3. After recording the test results, wait for the fifth time interval, and then prepare for the next cycle of testing.
[0020] In this embodiment, the testing system applying the above-described panel button pressure testing method includes a hardware module and a software module. The hardware module includes a mechanical pressing module (e.g., a servo-based precision pressing actuator), a status detection module (e.g., a non-contact photosensitive sensor for status detection), a control core module (e.g., an Arduino Uno microcontroller), a data communication module (e.g., a serial communication interface), a power management module (e.g., a system power supply circuit), and a structural support module (e.g., a 3D-printed custom fixture). The software module includes a host computer data processing program (e.g., a Python data analysis platform), a slave computer control program (e.g., an Arduino IDE development environment), and a test report generation program, which automatically generates test reports.
[0021] In this embodiment, the 3D printed fixture in the aforementioned hardware module is implemented based on parametric design. Its design parameters include: a pressing head design that adapts to a standard 86mm×86mm panel size and considers a 1.5mm switch protrusion height, a precise pressing stroke of 2.5mm, and a positioning tolerance of ±0.1mm. Furthermore, the fixture structure includes a base plate, a servo mounting base, and precise positioning features to ensure the repeatability and consistency of testing. Furthermore, the fixture adopts an adaptive structural design to generate corresponding fixture models according to different switch types, ensuring precise adaptation to various switch panels.
[0022] In this embodiment, the servo motor in the above-mentioned hardware module is installed with the geometric center of the switch panel as the reference, and the installation height is 10mm above the panel surface. The accuracy and efficiency of the pressing action are ensured by optimizing the angle design. Furthermore, the transmission mechanism of the servo motor has a positioning accuracy of ±1.0° and a repeatability error of 0.1mm. The accuracy and consistency of the pressing action are ensured by the return backlash compensation mechanism.
[0023] In this embodiment, please refer to Figure 9 The diagram illustrates the timing control of this method, where: the first time period (500 milliseconds) is the execution duration of the pressing action; the second time period (5000 milliseconds) is the duration of stable waiting; the third time period (500 milliseconds) is the duration of status detection; the fourth time period (500 milliseconds) is the duration of result recording; the fifth time period (5500 milliseconds) is the duration of interval waiting; and the sixth time period (500 milliseconds) is the duration of preparing for the next loop test.
[0024] In this embodiment, a precise timing control mechanism is used for each of the above samplings; a single complete test cycle includes a 500ms pressing action, a 5-second circuit stabilization wait, and a 500ms state detection; furthermore, the above 5-second stabilization time is determined based on the capacitive load charging characteristics, relay engagement time, control system response time, and safety margin, thereby ensuring that the circuit state is completely stable.
[0025] In this embodiment, a state machine control mechanism is used to implement the above-mentioned single sampling, which specifically includes six main states: initialization, self-test, calibration, testing, fault handling, and test completion. Furthermore, the state transition is automatically performed according to the test progress and results. When the number of consecutive failures exceeds a set threshold, the system automatically enters the fault handling state, thereby ensuring the safety and reliability of the test process.
[0026] The beneficial effect of this embodiment is that, in the current cycle of testing, after performing the pressing action in the first time period, a stable waiting period is entered in the second time period; in the third time period after the stable waiting period, the status is detected, and the detection result is recorded in the fourth time period after the status detection; in the fifth time period after recording the detection result, an interval waiting period is performed, and the next cycle of testing is prepared after the interval waiting period; thereby realizing a switch panel switch button pressure testing scheme with higher automation, detection efficiency and detection reliability, effectively solving the problems of low testing efficiency, reliance on manual operation, inability to achieve continuous testing and poor testing consistency in the prior art.
[0027] Example 2 Figure 2 This is a flowchart of the second embodiment of the panel button pressure testing method of the present invention. Based on the above embodiment, the execution of the pressing action in the first time period specifically includes: S11. Control the servo motor to rotate to the first preset angle to enter the pressing state; S12. After maintaining the pressing state during the first time period, control the servo motor to rotate to a second preset angle to enter the release state from the pressing state.
[0028] In this embodiment, the test process is controlled by a lower-level computer control program. Specifically: a function is defined to execute a single test with no return value; a test data structure instance is created; the current test loop count is assigned to the data record; the test start time is recorded (e.g., the number of milliseconds after the Arduino starts); the first press and stabilization process of the first stage is entered, that is, the first stage press is executed by changing the switch state; the success of the first stage is checked; if it fails, the failure information is recorded and the test failure state is returned; if it succeeds, the state is maintained, that is, the current state is maintained for 500 milliseconds to ensure the state is stable; the second press and stabilization process of the second stage is entered, that is, the second stage press is executed by returning to the original state; the success of the second stage is judged, and if it fails, it is recorded... The test records and returns a failure status upon failure; upon success, it records the successful test and its data, and increments the test loop counter by 1. Further, a push-button function is defined, returning a Boolean value indicating success or failure. An exception handling block ensures the safety of the push-button operation. Specifically, the push-button control involves rotating the servo motor to a 60-degree position to enter the push-button state and maintaining it for 500 milliseconds; the release control involves rotating the servo motor to a 90-degree position to enter the release state and maintaining it for 500 milliseconds. If the push-button operation is successfully completed, a success message is returned; otherwise, if any exception is caught, a failure message is returned.
[0029] The beneficial effect of this embodiment is that the automation level of the press test is improved through the above-described control of pressing and releasing.
[0030] Example 3 Figure 3 This is a flowchart of the third embodiment of the panel button pressure testing method of the present invention. Based on the above embodiment, the stabilization waiting period in the second time period specifically includes: S13. Set the duration of the second time period according to the charging characteristics of the capacitive load, the pull-in time of the relay, the response time of the control system, and the preset safety margin. S14. After transitioning from the pressing state to the releasing state, the system enters a stable waiting period in the second time phase.
[0031] In this embodiment, firstly, the duration of the second time period is set according to the charging characteristics of the capacitive load, the pull-in time of the relay, the response time of the control system, and the preset safety margin; then, after entering the release state from the pressing state, the second time period enters a stable waiting period; optionally, the duration of the second time period is 5000 milliseconds.
[0032] The beneficial effect of this embodiment is that by setting the above-mentioned stable waiting time, the status detection is performed only after the program and circuit are running stably, thereby improving the program stability of the press test.
[0033] Example 4 Figure 4 This is a flowchart of the fourth embodiment of the panel button pressure testing method of the present invention. Based on the above embodiment, the step of performing state detection in the third time period after stabilization specifically includes: S21. Obtain multiple analog values cyclically collected by the photosensitive sensor; S22. Take the average value of multiple simulated values, and return the current state detection state based on the relationship between the average value and a preset threshold.
[0034] In this embodiment, a function for reading the light state is defined based on the aforementioned lower-level computer program; analog values are read from the photosensitive sensor pin, wherein multiple samples are taken and the average value is taken to improve accuracy; specifically, an accumulation variable is initialized, for example, sampling is performed 10 times in a loop; the sensor reading is accumulated each time, and the sampling interval is 10 milliseconds; for example, the average value of 10 samples is calculated, and the average value is compared with a threshold to return the light state (e.g., on or off).
[0035] Furthermore, in this embodiment, the detection system of the aforementioned photosensitive sensor is configured with multi-mode automatic calibration, and through an intelligent triggering mechanism and a progressive parameter update strategy, the detection accuracy is maintained during continuous testing for up to 20 hours and 7000 cycles. Furthermore, in this embodiment, four automatic calibration triggering modes are configured: First, initial forced calibration, where a complete calibration is automatically performed upon system startup to establish an accurate initial benchmark. For example, a forced calibration is performed upon system startup to determine the current benchmark value, lower boundary, and upper boundary, thereby executing the complete calibration process. Second, timed periodic calibration, a preventative calibration based on time intervals (e.g., 6 hours) to adapt to slow environmental changes. Third, performance-triggered calibration, where calibration is automatically triggered when the detection success rate drops below a preset percentage (e.g., 95%) or the reading continuously deviates beyond a preset percentage (e.g., 30%).
[0036] The beneficial effect of this embodiment is that by acquiring multiple simulated values cyclically collected by a photosensitive sensor, taking the average value of the multiple simulated values, and returning the current state detection state based on the relationship between the average value and a preset threshold, the accuracy of the press test is improved.
[0037] Example 5 Figure 5 This is a flowchart of the fifth embodiment of the panel button pressure testing method of the present invention. Based on the above embodiment, the step of recording the test result in the fourth time period after the state detection specifically includes: S23. Create an empty list of test records, and record the analysis start time through the empty list of test records; S24. Create a plain text file with a timestamp and record the test result data through the plain text file.
[0038] In this embodiment, a stress test analyzer class is defined using the aforementioned host computer program. The constructor receives serial port parameters and initializes the serial port connection. Further, an empty list of test records is created to record the analysis start time. A test session monitoring function is defined to monitor the entire test session. A timestamped CSV plain text file is generated; the CSV file is opened in write mode, and the CSV writer is set. An exception handling block is used in an infinite loop to continuously monitor the serial port, read and decode serial port data, and process test result rows. Specifically, it checks if a row is a test result data row; if so, it parses the test result and writes the record to the CSV file. The record is added to a memory list, and the real-time progress is displayed. The test completion signal is checked; upon generating and processing the test completion signal, a test completion report is generated, and the monitoring loop exits. During the above process, user interrupts are captured; if a user interrupt is captured, the serial port connection is closed.
[0039] The beneficial effect of this embodiment is that by creating an empty list of test records and recording the analysis start time through the empty list of test records; creating a plain text file with a timestamped filename and recording the test result data through the plain text file; thus, the above-mentioned host computer program realizes the automated recording of the press test, and the cooperation with the above-mentioned slave computer program improves the automation of the test.
[0040] Example 6 Figure 6 This is a flowchart of the sixth embodiment of the panel button pressure testing method of the present invention. Based on the above embodiment, the step of waiting at an interval in the fifth time period after recording the test results, and preparing for the next cycle of testing after the interval waiting period, specifically includes: S31. Create test data structures, including test data structure and press phase data structure; S32. Record the pressing data of multiple test stages in the test data structure, and record the status data of multiple test stages in the pressing stage data structure.
[0041] In this embodiment, the lower-level machine program described above is used to define a test data structure, which includes a test loop number (unsigned long integer), a test start timestamp, and records the first and second stage pressing data and the final test result (success or failure). A pressing stage data structure is defined, and records whether the stage is successfully completed, including whether the pressing operation is successful, the expected switch state, the actual detected switch state, whether the actual state matches the expected state, the stage start time, the pressing operation time, the state detection time, and the total stage time.
[0042] The beneficial effect of this embodiment is that by creating a test data structure, including a test data structure and a pressing stage data structure; the pressing data of multiple test stages is recorded in the test data structure, and the state data of multiple test stages is recorded in the pressing stage data structure; thereby improving the automation level of pressing test, eliminating the need for manual pressing data collection and pressing state detection.
[0043] Example 7 Figure 7 This is a flowchart of the seventh embodiment of the panel button pressure testing method of the present invention. Based on the above embodiment, the method further includes: S41. Control the photosensitive sensor to collect multiple sets of light intensity data, and calculate the data, mean and standard deviation based on the multiple sets of light intensity data; S42. Identify outliers in the raw data collected by the photosensitive sensor based on the dynamic threshold of the standard deviation.
[0044] In this embodiment, firstly, light intensity data is collected multiple times (e.g., 50 times) using a photosensor; then, the collected data is preprocessed to calculate the data, mean, and standard deviation. The formula for the mean is: mean = sum(raw data) / len(raw data) # arithmetic mean, and the formula for the standard deviation is: standard deviation = sqrt(sum((x-mean)²for x in raw data) / len(raw data)) # standard deviation; finally, based on a dynamic threshold of the standard deviation, outliers in the raw data collected by the photosensor are identified.
[0045] The beneficial effect of this embodiment is that it eliminates subjective judgment errors through photosensitive detection, thereby improving the reliability of button press test results.
[0046] Example 8 Figure 8 This is a flowchart of the eighth embodiment of the panel button pressure testing method of the present invention. Based on the above embodiment, the step of identifying outliers among the multiple simulated values according to the dynamic threshold of the standard deviation specifically includes: S51. Calculate the upper and lower boundaries based on the standard deviation and the dynamic threshold; S52. Based on the upper boundary and the lower boundary, normal data and abnormal data are filtered out from the original data, and multiple simulated values are selected from the normal data.
[0047] In this embodiment, on the one hand, the upper and lower boundaries are calculated, where the upper boundary = mean + 3 * standard deviation # 99.7% confidence interval upper bound; on the other hand, the lower boundary is calculated, where the lower boundary = mean - 3 * standard deviation # 99.7% confidence interval lower bound. Then, the original data is traversed through the above-mentioned host computer program to filter out normal and abnormal data.
[0048] In this embodiment, the filtering method is as follows: if the lower boundary <= the reading <= the upper boundary, the reading is determined to be within the normal range and is valid data; otherwise, it is determined to be abnormal data and needs to be excluded.
[0049] The beneficial effect of this embodiment is that by calculating the upper and lower boundaries based on the standard deviation and the dynamic threshold, and by traversing the upper and lower boundaries, normal and abnormal data are filtered out from the original data, and multiple simulated values are selected from the normal data, thereby improving the stability and effectiveness of the press test.
[0050] Example 9 Based on the above embodiments, the present invention also proposes a panel button pressure testing device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the panel button pressure testing method as described in any of the above embodiments.
[0051] It should be noted that the above-described device embodiments and method embodiments belong to the same concept. The specific implementation process can be found in the method embodiments, and the technical features in the method embodiments are also applicable to the device embodiments, which will not be repeated here.
[0052] Example 10 Based on the above embodiments, the present invention also proposes a computer-readable storage medium storing a panel button pressure test program, wherein when the panel button pressure test program is executed by a processor, the steps of the panel button pressure test method as described in any of the above claims are implemented.
[0053] It should be noted that the above-described medium embodiments and method embodiments belong to the same concept. The specific implementation process can be found in the method embodiments, and the technical features in the method embodiments are also applicable to the medium embodiments, which will not be repeated here.
[0054] The panel button pressure testing method, device, and computer-readable storage medium of the present invention, by performing a pressing action in the first time period during the current cycle of testing, enters a stable waiting period in the second time period; performs status detection in the third time period after the stable waiting period, and records the detection results in the fourth time period after the status detection; performs an interval waiting period in the fifth time period after recording the detection results, and prepares for the next cycle of testing after the interval waiting period; thereby realizing a switch panel switch button pressure testing scheme with higher automation, detection efficiency, and detection reliability, effectively solving the problems of low testing efficiency, reliance on manual operation, inability to achieve continuous testing, and poor testing consistency in the prior art.
[0055] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0056] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0057] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0058] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims. All of these forms are within the protection scope of the present invention.
Claims
1. A method for testing the pressure of panel buttons, characterized in that, The method includes: In the current test cycle, after performing the first pressing action, the second stable waiting period begins. The status is checked in the third period after the stabilization period, and the results are recorded in the fourth period after the status check. After recording the test results, a waiting period is taken in the fifth time interval, and then preparation is made for the next cycle of testing.
2. The panel button pressure testing method according to claim 1, characterized in that, The pressing action performed in the first phase specifically includes: Control the servo motor to rotate to the first preset angle to enter the pressing state; After maintaining the pressed state during the first period, the servo is controlled to rotate to a second preset angle to transition from the pressed state to the released state.
3. The panel button pressure testing method according to claim 2, characterized in that, The stable waiting period before entering the second phase specifically includes: The duration of the second time period is set according to the charging characteristics of the capacitive load, the pull-in time of the relay, the response time of the control system, and the preset safety margin. After transitioning from the pressed state to the released state, the system enters a stable waiting period in the second phase.
4. The panel button pressure testing method according to claim 1, characterized in that, The state detection during the third time period after stabilization includes: Acquire multiple analog values cyclically collected by a photosensitive sensor; Take the average of multiple simulated values, and return the current state detection status based on the relationship between the average value and a preset threshold.
5. The panel button pressure testing method according to claim 1, characterized in that, The recording of the detection results in the fourth time period after the state detection specifically includes: Create an empty list of test records, and record the analysis start time through the empty list of test records; Create a plain text file with a timestamped filename, and record the test result data through the plain text file.
6. The panel button pressure testing method according to claim 1, characterized in that, The step of waiting for a fifth time interval after recording the test results, and then preparing for the next testing cycle, specifically includes: Create test data structures, including a test data structure and a press phase data structure; The test data structure records the pressing data of multiple test stages, and the pressing stage data structure records the status data of multiple test stages.
7. The panel button pressure testing method according to claim 4, characterized in that, The method further includes: The photosensitive sensor is controlled to collect multiple sets of light intensity data, and the data, mean, and standard deviation are calculated based on the multiple sets of light intensity data. Outliers in the raw data acquired by the photosensitive sensor are identified based on a dynamic threshold of the standard deviation.
8. The panel button pressure testing method according to claim 7, characterized in that, The step of identifying outliers among the multiple simulated values based on a dynamic threshold of the standard deviation specifically includes: The upper and lower boundaries are calculated based on the standard deviation and the dynamic threshold. Traverse the upper and lower boundaries, filter out normal and abnormal data from the original data, and select multiple simulated values from the normal data.
9. A panel button pressure testing device, characterized in that, The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the panel button pressure testing method as described in any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores an application panel button pressure test program, which, when executed by a processor, implements the steps of the panel button pressure test method as described in any one of claims 1 to 8.
