Automatic test method for power supply stability of electronic equipment
Through automated testing methods and automatic control of power switch devices, the problems of low power stability testing efficiency and insufficient control accuracy in the prior art are solved, and efficient and accurate power stability testing is achieved, which is suitable for various electronic equipment.
Patent Information
- Application Number
- CN202411459100.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-18
- Publication Date
- 2025-01-07
AI Technical Summary
The method used in the prior art for power supply stability testing of electronic equipment is inefficient and relies on manual operation and timer control, making it difficult to ensure the consistency and accuracy of power supply stability, and the time intervals on power and power down are not accurately controlled, which limits the In-depth analysis of power supply stability.
Using automated testing methods, create test scripts by testing the main control device, set the power stability test cycles and power-off times, use the power switch device to realize automatic power-off control, gradually increase the power-off and power-off time, record the log and detect the power supply state, ensuring the accuracy and consistency of the test.
It improves test efficiency, reduces costs, enhances the repeatability and consistency of power supply stability tests, can more realistically simulate the power supply conditions in actual use, and deeply analyzes the performance of electronic devices under different power supply conditions.
Smart Images

Figure CN119270124A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power supply testing, and in particular to an automated testing method for power supply stability of electronic equipment. Background Art
[0002] Power supply refers to equipment that can provide electricity as a driving energy source. Common power supplies include DC power supply and AC power supply. Power supply is based on the principle of "magnetoelectricity" and is generated by renewable energy sources such as hydropower, wind power, sea tides, water pressure difference in dams, solar energy, and burning coal, oil residue, etc. Electronic equipment refers to electronic products that use power supply as a driving energy source. Common electronic equipment includes computers, servers, communication equipment, mobile terminals, etc.
[0003] Most electronic devices need to undergo a power stability test before use to detect the performance, quality, and adaptability of the electronic device to the power supply. In the prior art, the test methods for the power stability of electronic devices usually rely on manual operation or simple timer control, which is not only inefficient, but also difficult to ensure the consistency and accuracy of the power stability. In addition, the existing test methods are often unable to accurately control the time interval between power on and power off, as well as the length of the test cycle, which limits the in-depth analysis of the power stability of electronic devices and does not bring a good user experience. Summary of the invention
[0004] In order to solve the problems in the prior art, the present invention provides an automated testing method for the power supply stability of electronic equipment, which can realize the automated testing of the power supply stability of electronic equipment, reduce human operation errors, improve test efficiency, reduce test costs, and also improve the consistency and repeatability of power supply stability testing, thereby solving the problems of low efficiency, manual labor and low accuracy of timer control in the prior art testing method for the power supply stability of electronic equipment.
[0005] An automated testing method for power supply stability of electronic equipment of the present invention comprises the following steps:
[0006] Step 1: Create a test script on the test master control device, the test master control device is connected to the power control through the power switch device, the power supply is connected to the electronic equipment power supply, and the number of power stability test cycles and the number of power on and off times in each power stability test cycle are set in the test script;
[0007] Step 2: Start the power stability test cycle;
[0008] Step 3: Set the power on / off time increment rule in each power stability test cycle in the test script, and start the power on / off test;
[0009] Step 4: The test script automatically records the power-on log according to the set power-on and power-off time increment rule, and sends a power-on instruction to the power switch device at the same time. The power supply supplies power to the electronic device and waits for the electronic device to be fully started;
[0010] Step 5: The test script automatically records the power-off log according to the set power-on and power-off time increment rule, and sends a power-off instruction to the power switch device. The power supply disconnects the power supply of the electronic device and maintains the power-off state, waiting for the electronic device to be completely powered off;
[0011] Step 6: The test script gradually increases the power-on and power-off time according to the set power-on and power-off time increment rule, executes the power-on and power-off test cyclically, and detects whether the number of power-on and power-off times reaches the maximum number of power-on and power-off times in each power stability test set in the test script;
[0012] Step 7: When it is detected that the number of power on and off cycles has reached the maximum number of power on and off cycles in each power stability test set in the test script, the power stability test is terminated, and at the same time, it is determined whether the number of power stability tests has reached the maximum number of power stability test cycles set in the test script;
[0013] Step 8: When it is determined that the number of power stability tests has reached the maximum number of power stability test cycles set in the test script, the power stability test cycle is terminated.
[0014] The present invention is further improved. In step 6, when it is detected that the number of power on and off cycles does not reach the maximum number of power on and off cycles in each power stability test set in the test script, step 4 is executed.
[0015] The present invention is further improved. In step 7, when it is determined that the number of power stability tests has not reached the maximum number of power stability test cycles set in the test script, step 2 is executed.
[0016] The present invention is further improved, in step 6, the end condition of each power on and off test is that the electronic device can work normally at the specified power on time and power off time.
[0017] The present invention is further improved, in step 1, the power switch device is a relay, and the test main control device controls the power switch device through R485 communication.
[0018] The present invention is further improved. In step 1, the test main control device is a microprocessor, and the timer function of the microprocessor can set the number of power stability test cycles, the number of power on and off times in each power stability test cycle, and the power on and off time increment rules.
[0019] The present invention is further improved. In step 1, the power switch device is a MOS tube, and the test main control device controls the power switch device through serial communication or digital I / O interface communication.
[0020] The present invention is further improved. In step 1, the test main control device is a cloud server and a mobile terminal, and the mobile terminal is remotely communicated and controlled with the power switch device through the cloud server.
[0021] The beneficial effects of the present invention are as follows: an automated testing method for the power supply stability of an electronic device provided by the present invention can realize the automated testing of the power supply stability of the electronic device, reduce human operation errors, improve the testing efficiency, reduce the testing cost, and also improve the consistency and repeatability of the power supply stability testing. The precise power-on and power-off time control enables the power supply stability testing to more realistically simulate the power supply conditions that the electronic device may encounter in actual use. The gradually increased power-on and power-off time allows an in-depth analysis of the performance of the electronic device under different power supply conditions. The method can be widely used in the power supply stability testing of various electronic devices, has good versatility and adaptability, and solves the problems in the prior art of low efficiency, manual labor and low accuracy of timer control in the testing method for the power supply stability of electronic devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A flowchart of an automated testing method for power supply stability of electronic equipment according to the present invention;
[0023] Figure 2 The present invention is a principle block diagram of an automated testing method for power supply stability of electronic equipment. DETAILED DESCRIPTION
[0024] The present invention is further described in detail below with reference to the accompanying drawings and embodiments.
[0025] See also Figure 1-2 , an automated testing method for power supply stability of electronic equipment of the present invention comprises the following steps:
[0026] Step 1: Create a test script in the test main control device, the test main control device is connected to the power control through the power switch device, the power supply is connected to the electronic device power supply, and the number of power stability test cycles and the number of power on and off times in each power stability test cycle are set in the test script. In this embodiment, the power switch device is a relay, and the test main control device controls the power switch device through R485 communication, and uses relays and automated test scripts to achieve precise control of the power supply. Through the control of the test script, the power-on time is gradually increased until the electronic device is fully started, and the power-off time is also gradually increased through the control of the test script until the electronic device is completely powered off. A microprocessor can be used as the test main control device, and a test script can be created on the microprocessor. The timer function of the microprocessor can set the number of power stability test cycles, the number of power on and off times in each power stability test cycle, and the power on and off time increment rule. The power switch device can use a MOS tube, and the microprocessor controls the MOS tube through serial communication or digital I / O interface communication, thereby controlling the power supply to the electronic device. Cloud servers and mobile terminals can also be used as test main control devices. The mobile terminal is remotely controlled and connected to the power switch device through the cloud server, that is, the cloud server is used to realize remote control and management of the power supply. The power switch device communicates with the cloud server through the Internet, receives control instructions and uploads status information. The user sets the test parameters on the cloud server through the mobile terminal and monitors the power status in real time.
[0027] Step 2: Start the power stability test cycle.
[0028] Step 3: Set the power on / off time increment rule in each power stability test cycle in the test script, and start executing the power on / off test.
[0029] Step 4: The test script automatically records the power-on log according to the set power-on and power-off time increment rule, and sends a power-on instruction to the power switch device. The power supply supplies power to the electronic device and waits for the electronic device to be fully started.
[0030] Step 5: The test script automatically records the power-off log according to the set power-on and power-off time increment rule, and sends a power-off command to the power switch device. The power supply disconnects the power supply of the electronic device and maintains the power-off state, waiting for the electronic device to be completely powered off.
[0031] Step 6: The test script gradually increases the power-on and power-off time according to the set power-on and power-off time increasing rule, executes the power-on and power-off test in a loop, and detects whether the number of power-on and power-off times reaches the maximum number of power-on and power-off times in each power stability test set in the test script; when it is detected that the number of power-on and power-off times does not reach the maximum number of power-on and power-off times in each power stability test set in the test script, execute step 4; the end condition of each power-on and power-off test is that the electronic equipment can work normally at the specified power-on and power-off time.
[0032] Step 7: When it is detected that the number of power-on and power-off cycles has reached the maximum number of power-on and power-off cycles in each power stability test set in the test script, end the power stability test and determine whether the number of power stability tests has reached the maximum number of power stability test cycles set in the test script; when it is determined that the number of power stability tests has not reached the maximum number of power stability test cycles set in the test script, execute step 2.
[0033] Step 8: When it is determined that the number of power stability tests has reached the maximum number of power stability test cycles set in the test script, the power stability test cycle is terminated. In this embodiment, through the automated test method for the power stability of electronic equipment, the automated test of the power stability of electronic equipment can be achieved, human operation errors are reduced, test efficiency is improved, test costs are reduced, and the consistency and repeatability of the power stability test are improved. The precise power-on and power-off time control enables the power stability test to more realistically simulate the power conditions that the electronic equipment may encounter in actual use. The gradually increased power-on and power-off time allows the performance of the electronic equipment under different power conditions to be deeply analyzed. It can be widely used in the power stability test of various electronic equipment and has good versatility and adaptability.
[0034] As can be seen from the above, the beneficial effects of the present invention are: an automated testing method for the power supply stability of electronic equipment provided by the present invention can realize the automated testing of the power supply stability of electronic equipment, reduce human operation errors, improve test efficiency, reduce test costs, and also improve the consistency and repeatability of the power supply stability test. The precise power-on and power-off time control enables the power supply stability test to more realistically simulate the power supply conditions that the electronic equipment may encounter in actual use. The gradually increased power-on and power-off time allows an in-depth analysis of the performance of the electronic equipment under different power supply conditions. It can be widely used in power supply stability testing of various electronic devices, has good versatility and adaptability, and solves the problems of low efficiency, manual labor and low accuracy of timer control in the prior art testing methods for the power supply stability of electronic equipment.
[0035] The specific implementation modes described above are preferred implementation modes of the present invention, and are not intended to limit the specific implementation scope of the present invention. The scope of the present invention includes but is not limited to the specific implementation modes, and all equivalent changes made according to the present invention are within the protection scope of the present invention.
Claims
1. An automated testing method for power supply stability of electronic equipment, characterized in that: The following steps are included: Step 1: Create a test script on the test master control device, the test master control device is connected to the power control through the power switch device, the power supply is connected to the electronic equipment power supply, and the number of power stability test cycles and the number of power on and off times in each power stability test cycle are set in the test script; Step 2: Start the power stability test cycle; Step 3: Set the power on / off time increment rule in each power stability test cycle in the test script, and start the power on / off test; Step 4: The test script automatically records the power-on log according to the set power-on and power-off time increment rule, and sends a power-on instruction to the power switch device at the same time. The power supply supplies power to the electronic device and waits for the electronic device to be fully started; Step 5: The test script automatically records the power-off log according to the set power-on and power-off time increment rule, and sends a power-off instruction to the power switch device. The power supply disconnects the power supply of the electronic device and maintains the power-off state, waiting for the electronic device to be completely powered off; Step 6: The test script gradually increases the power-on and power-off time according to the set power-on and power-off time increment rule, executes the power-on and power-off test cyclically, and detects whether the number of power-on and power-off times reaches the maximum number of power-on and power-off times in each power stability test set in the test script; Step 7: When it is detected that the number of power on and off cycles has reached the maximum number of power on and off cycles in each power stability test set in the test script, the power stability test is terminated, and at the same time, it is determined whether the number of power stability tests has reached the maximum number of power stability test cycles set in the test script; Step 8: When it is determined that the number of power stability tests has reached the maximum number of power stability test cycles set in the test script, the power stability test cycle is terminated.
2. The automated testing method for power supply stability of electronic equipment according to claim 1, characterized in that: In step 6, when it is detected that the number of power on and off times of the power supply does not reach the maximum number of power on and off times of the power supply in each power stability test set in the test script, step 4 is executed.
3. The automated testing method for power supply stability of electronic equipment according to claim 2, characterized in that: In step 7, when it is determined that the number of power stability tests has not reached the maximum number of power stability test cycles set in the test script, step 2 is executed.
4. The automated testing method for power supply stability of electronic equipment according to claim 3, characterized in that: In step 6, the end condition of each power on and off test is that the electronic device can work normally at the specified power on time and power off time.
5. The automated testing method for power supply stability of electronic equipment according to claim 4, characterized in that: In the step 1, the power switch device is a relay, and the test main control device controls the power switch device through R485 communication.
6. The automated testing method for power supply stability of electronic equipment according to claim 5, characterized in that: In step 1, the test main control device is a microprocessor, and the timer function of the microprocessor can set the number of power stability test cycles, the number of power on and off times in each power stability test cycle, and the power on and off time increment rules.
7. The automated testing method for power supply stability of electronic equipment according to claim 4 or 6, characterized in that: In the step 1, the power switch device is a MOS tube, and the test main control device controls the power switch device through serial communication or digital I / O interface communication.
8. The automated testing method for electronic equipment power stability according to claim 4, characterized in that: In step 1, the test main control device is a cloud server and a mobile terminal, and the mobile terminal is remotely communicated and controlled with the power switch device through the cloud server.
Citation Information
Cited By
Power supply cycle test method and device, electronic equipment and readable storage medium
CN121764744A