Automated test method, circuit, and apparatus

By generating control commands corresponding to the test items, the connection status of the capacitive load at the output of the switching power supply is automatically adjusted, solving the problems of discontinuous and inaccurate capacitive load configuration in the existing technology, and realizing efficient and stable automated testing of switching power supplies.

CN122330752APending Publication Date: 2026-07-03DONGGUAN YUANTU FUTURE TECHNOLOGY CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
DONGGUAN YUANTU FUTURE TECHNOLOGY CO LTD
Filing Date
2026-05-19
Publication Date
2026-07-03

AI Technical Summary

Technical Problem

In existing automated testing of switching power supplies, the continuity, adaptability, and reliability of capacitive load configuration are insufficient, resulting in low testing efficiency and unstable results, making it difficult to meet the requirements of high efficiency and high consistency.

Method used

By generating control commands that correspond one-to-one with the test items, and traversing the control commands in a preset order, the connection status of the preset capacitor and the output line of the switching power supply is automatically adjusted to ensure that the connection status meets the preset conditions before the test items are executed, thereby achieving rapid switching and accurate matching of capacitive loads.

Benefits of technology

It improves the continuity and adaptability of the testing process, reduces interruptions and configuration deviations caused by manual intervention, and enhances the stability and reliability of test results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122330752A_ABST
    Figure CN122330752A_ABST
Patent Text Reader

Abstract

This application provides an automated testing method, circuit, and device to address the problems of test interruption, inaccurate load matching, and difficulty in confirming connection status caused by manual switching of capacitive loads in existing server power supply testing. This solution establishes a load control sequence corresponding to each test item based on preset test information. It automatically controls the switching actions corresponding to each capacitor in a predetermined order, changing the connection status of the capacitor bank and the switching power supply output line to form the target capacitive load. The corresponding test item is executed only after confirming that the connection status meets the requirements. This enables continuous automatic configuration, accurate matching, and status verification of capacitive loads under different test items, improving test continuity, automation, and the reliability of test results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electrical testing, and more particularly to an automated testing method, circuit, and device. Background Technology

[0002] In automated testing of switching power supplies, capacitive loads are typically configured at the output to accommodate test conditions such as dynamic load, transient response, and ripple.

[0003] However, existing solutions rely heavily on manual adjustment of capacitive load when switching test projects, requiring frequent pauses in the test process and resulting in a decrease in overall efficiency. At the same time, manual methods are difficult to quickly and accurately match the conditions required by different projects, and lack effective confirmation of connection status, which can easily cause test anomalies and affect the stability of results.

[0004] Therefore, improving the continuity, adaptability, and reliability of capacitive load configuration during automated testing of switching power supplies has become a technical problem that needs to be solved. Summary of the Invention

[0005] This application provides an automated testing method, circuit, and device to solve the aforementioned technical problems. This solution addresses the automated testing scenarios of switching power supplies. Based on preset test information, it correlates and controls each test item according to preset test information, and completes the switching and execution of test items in a preset order. This allows the output capacitive load of the switching power supply to be adjusted in an orderly manner along with the testing process, thereby improving the continuity, adaptability, and reliability of the testing process.

[0006] In a first aspect, embodiments of this application provide an automated testing method, including:

[0007] Based on the preset test information, at least one control command is generated; the preset test information represents at least one test item to be executed in a preset order, and the test item represents a test item that has specific requirements for the capacitive load output of the switching power supply. The control command corresponds one-to-one with the test item. The control command is used to control the on / off state of each preset switch to adjust the connection state of each preset capacitor and the output line of the switching power supply, thereby adjusting the capacitive load output of the switching power supply. The preset switch corresponds one-to-one with the preset capacitor.

[0008] Based on a preset order, all control commands are traversed. For the currently traversed control command, the on / off state of each preset switch is controlled according to the control command.

[0009] If the connection status of each preset capacitor and the output line of the switching power supply meets the preset conditions, then the test item corresponding to the control command will be executed.

[0010] In one possible embodiment, at least one control command is generated based on preset test information, including:

[0011] It iterates through all test items in the preset test information. For the currently iterated test item, it generates the corresponding control command based on the target capacitance value required by the test item. The target capacitance value represents the equivalent capacitance value that meets the capacitive load requirements of the current test item for the output of the switching power supply.

[0012] In one possible embodiment, control instructions corresponding to the test item are generated based on the target tolerance value required for the test item, including:

[0013] Based on the target capacitance value required for the test item, at least one candidate instruction is generated; the candidate instruction represents the initially generated instruction used to control the on / off state of each preset switch.

[0014] Based on the current on / off state of each preset switch, the control command corresponding to the test item is determined from all candidate commands.

[0015] In one possible embodiment, if the connection status of each preset capacitor to the output line of the switching power supply meets preset conditions, then the test item corresponding to the control command is executed, including:

[0016] Detect the actual on / off state of each preset switch to obtain the actual connection state between each preset capacitor and the output line of the switching power supply.

[0017] Based on the actual connection status, determine the actual equivalent capacitance value of all currently connected preset capacitors;

[0018] If the actual equivalent capacitance value is consistent with the target capacitance value corresponding to the control command, then it is determined that the connection status of each preset capacitor and the output line of the switching power supply meets the preset conditions, and the test item corresponding to the control command is executed.

[0019] In one possible embodiment, detecting the actual on / off state of each preset switch includes:

[0020] In response to the control command taking effect, the current signal of the capacitor branch corresponding to each preset switch is obtained;

[0021] The actual on / off state of each preset switch is determined based on the current signal of each capacitor branch.

[0022] In one possible embodiment, it also includes:

[0023] If the connection status of each preset capacitor and the output line of the switching power supply does not meet the preset conditions, a prompt message will be generated and the execution of the current test item will be paused; the prompt message is used to indicate that the capacitor connection is abnormal.

[0024] Secondly, embodiments of this application provide an automated test circuit, including a multi-capacitor combination circuit, a power supply unit, and an automated test unit;

[0025] The multi-capacitor combination circuit is connected between the power supply unit and the automated test unit;

[0026] The multi-capacitor combination circuit includes at least two capacitor branches. Each capacitor branch includes at least one preset capacitor and a preset switch connected in series. One end of each capacitor branch is connected in parallel to the line between the power supply unit and the automated test unit, and the other end is grounded.

[0027] In one possible embodiment, the capacitor branch further includes a status indication branch;

[0028] The status indicator branch includes a current-limiting resistor and a light-emitting diode connected in series. The status indicator branch is connected in parallel across the two ends of a preset capacitor in the capacitor branch to indicate the conduction status of the corresponding capacitor branch.

[0029] In one possible embodiment, the preset switch includes any of the following: an electromagnetic relay, a power semiconductor, or a knife switch.

[0030] Thirdly, embodiments of this application provide an automated testing device, including: a memory and a processor;

[0031] The memory stores the instructions that the computer executes;

[0032] The processor executes computer execution instructions stored in memory, causing the processor to perform the methods described above.

[0033] The automated testing method, circuit, and equipment provided in this application generate control commands corresponding to each test item based on preset test information, and traverse all control commands in a preset order to control the on / off state of each preset switch. This enables the orderly adjustment of the connection state between each preset capacitor and the output line of the switching power supply, so that the capacitive load output by the switching power supply matches the requirements of the current test item. Furthermore, by executing the corresponding test item when the connection state meets the preset conditions, it can reduce process interruptions and configuration deviations caused by manual adjustments, improve test switching efficiency, and enhance the stability and reliability of test results. Attached Figure Description

[0034] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0035] Figure 1 Flowchart of the automated testing method provided in this application Figure 1 ;

[0036] Figure 2Flowchart of the automated testing method provided in this application Figure 2 ;

[0037] Figure 3 Schematic diagram of the automated test circuit provided in this application Figure 1 ;

[0038] Figure 4 Schematic diagram of the automated test circuit provided in this application Figure 2 ;

[0039] Figure 5 A schematic diagram of the automated testing device provided in this application;

[0040] Figure 6 A schematic diagram of the automated testing equipment provided in this application.

[0041] The accompanying drawings have illustrated specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to specific embodiments. Detailed Implementation

[0042] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0043] Automated testing of switching power supplies falls under the field of electrical testing and power performance verification, and is particularly suitable for testing scenarios of server power supply units during the research and development, verification, and mass production quality control processes.

[0044] In real-world testing environments, the switching power supply under test (SUT) typically needs to be connected to an automated testing system and configured with different types of capacitive loads at the output to simulate load characteristics under real operating conditions.

[0045] This type of test system generally consists of a test control host, a test execution platform, a switching power supply output line, a preset capacitor bank, and controllable switches corresponding to each capacitor. The test control host controls the configuration state of the capacitive load at the output end according to the requirements of different test items, so as to meet the different requirements of power supply output conditions for items such as dynamic load test, transient response test, and ripple test.

[0046] Since different test items have significantly different requirements for output capacitive load, the test system must not only ensure the timeliness of load configuration, but also ensure that the configuration results are consistent with the requirements of the test items. Otherwise, it will directly affect the validity and comparability of the test results.

[0047] Therefore, in server power supply automation testing scenarios, how to achieve rapid switching, accurate matching, and continuous execution of output capacitive loads has become a key issue in test system design.

[0048] Existing automated testing of switching power supplies typically involves pre-configuring several capacitors in the testing process and manually or semi-automatically changing the capacitor connection status to adapt to the requirements of different test items.

[0049] Specifically, when the test process reaches a certain test item, the test system will pause the current test according to the capacitive load requirement of that test item. The operator will then select a suitable combination of capacitors based on experience and connect the corresponding capacitors to the output line of the switching power supply before resuming the test.

[0050] While this method appears to allow for switching between different test conditions, it has significant shortcomings in practical applications. First, manually configuring capacitive loads requires pausing the test process, disrupting the continuous coordination between the test control program, test instruments, and the power supply under test. This results in a longer overall test cycle, especially when multiple test items are executed consecutively in a preset order; frequent shutdowns and resets significantly reduce test efficiency.

[0051] Secondly, different test items often correspond to different capacitance requirements. However, manual methods are easily affected by operating experience, response speed and on-site environment when selecting capacitor combinations and completing wiring, making it difficult to meet the target capacitance requirements in a timely and accurate manner, which can easily lead to test condition deviations.

[0052] Furthermore, manually removing and installing capacitors requires direct intervention in the test circuit, which carries risks such as poor contact, incorrect wiring, missing connections, or incorrect connections. If the capacitive load is not connected as expected, it may cause abnormal power output waveforms, distorted test data, or even test interruption or equipment malfunction.

[0053] More importantly, traditional methods usually only focus on whether the load is configured, but lack an effective mechanism to confirm the connection status of capacitors and output lines. The test system has difficulty in timely detecting problems such as switches not operating, contacts failing, or load status deviating from expectations. This means that abnormal situations may only be discovered after the test is completed, affecting the reliability and traceability of the test results.

[0054] It is evident that existing technologies are inadequate in terms of continuity, adaptability, and reliability of capacitive load configurations, making it difficult to meet the requirements of automated testing for high efficiency, high consistency, and high stability.

[0055] Against this backdrop, existing technologies typically employ a method of verifying switching power supplies item by item according to a fixed test procedure, and manually adjusting the capacitive load to adapt to test conditions between different test items. When performing dynamic load, transient response, or ripple-related tests, the test system determines whether an additional set of capacitors needs to be connected based on the current project requirements. Operators then select the appropriate capacitor specifications and connect or disconnect them according to the test specifications.

[0056] Since the capacitance values ​​of capacitors often need to be precisely matched according to test requirements, manual methods usually rely on several pre-prepared capacitor modules, and different equivalent capacitance values ​​are formed by changing the number of connected capacitors or the wiring method.

[0057] Although the working principle of this type of solution is simple, its essence is still that the load switching is completed by humans. The test control system does not really participate in the automatic decision-making and automatic switching of capacitive loads. Therefore, the test process is easily dominated by human factors.

[0058] For server power supply automation testing scenarios with fast testing cycles and many test items, this approach creates a significant efficiency bottleneck: whenever a test item changes, the ongoing process needs to be paused, and manual judgment, disassembly, and verification are required before the test can be restarted. Throughout the process, the test equipment operates intermittently, which increases time costs and reduces the degree of automation.

[0059] At the same time, different test items have different requirements for capacitive loads. Some items require a smaller capacitance value to observe the power supply’s real response under sudden load changes, while others require a larger capacitance value to suppress ripple or simulate specific working conditions. Manual methods are prone to problems such as selecting the wrong capacitor, improper combination, or incorrect connection sequence during repeated switching, which makes it impossible to accurately achieve the target capacitance value.

[0060] Because capacitor wiring involves physical connections, if the operator fails to correctly confirm the switch status, some capacitors that are not actually connected to the output line may be mistakenly considered to be configured. This will cause the test system to continue to operate under incorrect load conditions, ultimately resulting in distorted test results.

[0061] Furthermore, existing solutions often lack real-time feedback on capacitor connection status, making it impossible to immediately verify whether the current load truly meets test requirements after the switching action is completed. If the relay contacts are faulty, the wiring is loose, or the control signal is abnormal, the system cannot identify and correct the abnormality in time. The test process may continue to run for a long time under erroneous conditions, ultimately affecting the stability and repeatability of the test data.

[0062] Therefore, although existing technologies can achieve manual configuration of capacitive loads to a certain extent, they still have significant shortcomings in terms of automated continuous execution, load matching accuracy, and status confirmation capabilities, making it difficult to support the high-frequency, multi-scenario server power supply testing needs.

[0063] Therefore, how to achieve continuous configuration, accurate matching and status confirmation of capacitive loads in the automated testing process of switching power supplies has become an urgent technical problem to be solved.

[0064] To address the aforementioned issues, an automated testing method is provided. This method generates control commands corresponding to each test item based on preset test information and executes these commands in a preset order. This controls the on / off states of preset switches, altering the connection states of preset capacitors to the output lines of the switching power supply, thereby adjusting the capacitive load of the power supply output. When the connection states of the capacitors and output lines meet preset conditions, the corresponding test item is then executed. The core of this approach lies in transforming the capacitive load switching process, which originally relied on manual intervention, into an automated command execution process driven by test information. This allows the testing system to automatically switch load configurations according to the requirements of different test items during the testing process and continue subsequent tests once the conditions are met, thereby reducing test interruptions and improving test continuity and adaptability. Furthermore, by checking the capacitor connection states after executing control commands to ensure they meet the conditions, the system can confirm that the load configuration is in place before the test actually begins, avoiding test deviations caused by switches not operating or abnormal connection states. Compared to traditional methods that rely on manual adjustments, this technical concept, which combines preset test information, control commands, and status judgments, is more suitable for application scenarios involving dynamic configuration of capacitive loads in automated server power supply testing. It can improve overall testing efficiency while ensuring the accuracy of test conditions, and provides a clear technical path for the subsequent implementation of automatic capacitor switching and status monitoring.

[0065] The technical solution of this application and how it solves the above-mentioned technical problems will be described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.

[0066] Figure 1 Flowchart of the automated testing method provided in this application Figure 1 ,like Figure 1 As shown, the method includes:

[0067] S101: Generate at least one control command based on preset test information; the preset test information represents at least one test item to be executed in a preset order, the test item represents a test item that has specific requirements for the capacitive load output of the switching power supply, the control command corresponds one-to-one with the test item, the control command is used to control the on / off state of each preset switch to adjust the connection state of each preset capacitor and the output line of the switching power supply, thereby adjusting the capacitive load output of the switching power supply, and the preset switch corresponds one-to-one with the preset capacitor.

[0068] In this embodiment of the application, the executing entity of the automated testing method may be a test control host, an industrial control computer, an embedded controller, or a host computer software system that communicates with the test execution platform.

[0069] Test information can be understood as a set of data used to describe the entire test task. This set of data includes at least the test item identifier, execution order, target capacitive load requirements for each test item, and startup conditions associated with that test item.

[0070] Test items can be dynamic load tests, output voltage transient response tests, ripple tests, startup characteristic tests, or other items that require pre-configuration of the capacitive load at the output.

[0071] Control commands can be understood as a set of target state data for the switch drive module. The core content is that each preset switch should be in a closed or open state before the current test item begins.

[0072] The preset capacitor is a capacitor component that is pre-installed in multiple capacitor branches in the test platform. The switching power supply output line is the conductive connection path between the output terminal of the switching power supply under test and the test load, measuring instruments and capacitive configuration network. The connection status is used to characterize whether each capacitor branch is actually connected to the output line and participates in forming the target equivalent capacitance value.

[0073] In practice, the test control host can obtain the test information to be executed before the test starts from the test script file, database configuration table, information input from the user operation interface, or work order parameters issued by the manufacturing execution system.

[0074] To ensure the feasibility of subsequent controls, the test information may include not only the test item name and execution order, but also parameters such as target tolerance, target tolerance tolerance error range, test duration, instrument range configuration, number of fault retries, and anomaly handling strategies.

[0075] After receiving the test information, the system first checks the format and completeness of the test information to confirm that each test item is associated with an identifiable capacitive load requirement. If a test item is found to be missing a target capacity value or has an execution order conflict, the system can output a configuration error message and prevent the test from starting before generating control commands to avoid invalid switching later.

[0076] During the control command generation process, the system can first read the capacitance parameters, withstand voltage ratings, branch numbers, and corresponding switch numbers of each preset capacitor installed in the current test platform. Since there is a one-to-one correspondence between preset switches and preset capacitors, the system can abstract each capacitor branch as a binary state unit, where a closed state indicates that the corresponding capacitor is connected to the output line, and an open state indicates that the corresponding capacitor is disconnected from the output line.

[0077] For a given target capacitance value for a certain test item, the system can perform combined calculations based on the equivalent relationship of parallel capacitors. If each branch is connected in parallel, the equivalent capacitance value can be expressed as the sum of the capacitance values ​​of each connected branch, that is, the target equivalent capacitance value is equal to the sum of the capacitance values ​​of each branch.

[0078] The system can obtain one or more candidate capacitor combinations that meet the target capacitance requirements through enumeration, table lookup, or search algorithms based on combinatorial optimization, and further map each candidate combination to a corresponding switch state vector.

[0079] For example, when the test requires an equivalent capacitance of 470 microfarads at the output, if the platform has multiple capacitor branches of 100 microfarads, 220 microfarads, 150 microfarads and 330 microfarads pre-set, the system can choose to combine 220 microfarads with 150 microfarads and 100 microfarads to form 470 microfarads. Alternatively, when there are tolerance constraints, a combination closer to the target value and with fewer switching actions can be selected.

[0080] In one possible embodiment, the system does not simply select any combination that meets the target capacitance value, but further filters candidate combinations by combining the real-time status of each preset switch, the capacitance value configuration at the end of the previous test item, and the preset switch life management strategy.

[0081] Specifically, the switching cost can be obtained by calculating the number of switches that need to be changed relative to the current state for the candidate combination, and the candidate combination with the lower switching cost can be determined as the final control command, so as to reduce the number of relay engagement and disengagement, shorten the switching setup time and reduce mechanical wear.

[0082] In another possible embodiment, the system can also build a cache table for commonly used capacitance value combinations based on historical test frequencies. When the target capacitance value hits the cache table, the system can directly call the verified and feasible switch state mapping relationship, thereby improving the instruction generation speed.

[0083] To ensure a one-to-one correspondence between control commands and test items, the system can create a unique index for each test item during the generation phase and write this index into the corresponding control command. The data structure of the control command can include fields such as test item number, target switch status bitmap, target equivalent capacitance, allowable deviation, action timeout time, and status confirmation method. This way, during subsequent execution, the system can directly drive the switch and perform status verification based on the complete parameters in the control command, without needing to repeatedly parse the original test script.

[0084] Based on the above analysis, it can be seen that by first generating control commands driven by test information, and then clarifying the connection method of each capacitor branch by the control commands, the capacitive load configuration that originally relied on manual judgment and manual wiring can be transformed into an automatic control process that is calculable, verifiable, and traceable. This establishes a deterministic mapping relationship between test items and target load conditions before the test begins, solving the problems of untimely and inaccurate capacitance matching and large human selection errors in traditional testing.

[0085] S102: Based on a preset order, traverse all control commands. For the currently traversed control command, control the on / off state of each preset switch according to the control command.

[0086] In this embodiment, the preset order is the execution order of test items defined in advance in the test information, or it can be the sequence of orders confirmed by the scheduler after the test task is started, based on the test specifications, model parameters, or previous test results.

[0087] Traversing all control commands means that the control system reads the control commands corresponding to each test item one by one in this order, and sends the target switching state required by the current test item to the switch drive unit.

[0088] The preset switch can be an electromagnetic relay, a solid-state relay, a MOS control switch, or other controllable devices that can turn a branch on and off. If a relay solution is used, the control command is converted into a high or low level signal via the drive port of a digital output board or microcontroller to drive the relay coil. If a semiconductor switch solution is used, the control command can be converted into a gate control signal or an isolation drive signal to turn the corresponding branch on and off.

[0089] In practice, after generating control commands, the test control host can establish an execution queue arranged in the test order and set the current execution pointer.

[0090] After the system starts the test task, it first reads the first control instruction in the queue, parses the switch state bitmap contained within it, and obtains the target state for each preset switch. Subsequently, the system can collect the current actual state of each preset switch or the previously confirmed state record, and compare the current state with the target state bit by bit. For switches with consistent states, the system can maintain their current state; for switches with inconsistent states, the system sends an action command to the corresponding drive channel. This differentiated switching strategy reduces invalid operations, especially when the capacitance requirements of multiple adjacent test items are relatively similar, significantly reducing switching time and component losses.

[0091] In terms of specific operation procedures, after receiving the target state from the test control host, the drive module can perform switching actions according to a preset timing sequence. If the capacitance in the platform is large and the simultaneous connection of multiple branches may cause transient impacts, the system can adopt a time-division sequence switching method, such as first disconnecting the unnecessary branches and then connecting the target branches sequentially at set intervals, in order to control surge current and contact stress.

[0092] If the platform supports a pre-charging channel or a current-limiting branch, the system can also pre-charge the capacitor to be connected through the current-limiting path, and close the main switch after the output potential is close, thereby improving the switching stability.

[0093] In another implementation, the control flow can be managed by a state machine, with idle state, instruction issuance state, switching waiting state, state confirmation state and test execution state transitioning sequentially according to preset logic, thus giving the entire automated testing process clear step boundaries and exception fallback paths.

[0094] To enable continuous testing in engineering, the switch control and the test instrument control can also be linked in this embodiment.

[0095] For example, before encountering a certain control command, the system first notifies the electronic load, oscilloscope, power analyzer, or data acquisition card to enter a waiting state; after completing the switch switching and confirming the establishment of capacitive load, a test start trigger signal is sent uniformly.

[0096] This timing coordination prevents the instrument from collecting transient data before the load has stabilized. Simultaneously, the system can record the issuance time, target status, actual feedback status, action completion time, and exception code for each control command, forming a complete test log for easy subsequent traceability and quality analysis.

[0097] In one possible implementation, traversing all control commands does not necessarily mean completing all test items at once. Instead, after completing each test item, the next control command can be read according to the strategy, forming a continuous closed-loop process of "switching - confirmation - testing - recording - continuing to switch".

[0098] If the result of the previous test item triggers the process adjustment condition, the scheduler can also reorder the subsequent control instructions based on the current queue. However, no matter how the order changes, for the control instructions currently being traversed, the system still controls each preset switch action according to its defined target switch state.

[0099] Based on the above analysis, this step enables the test system to truly take over the capacitive load switching behavior, and implements the requirements of different test items on the output capacitive load into the specific on / off actions of each capacitor branch. This eliminates the test interruption problem caused by traditional manual disassembly or manual switching, and enables the test process to proceed continuously under unified scheduling.

[0100] S103: If the connection status of each preset capacitor and the output line of the switching power supply meets the preset conditions, then execute the test item corresponding to this control command.

[0101] In this embodiment of the application, the connection status meeting the preset conditions means that the actual connection result of each preset capacitor branch is consistent with the target connection result required by the current control command, and the resulting output capacitive load reaches the allowable range of the current test item.

[0102] The preset conditions can be that the switch feedback state is completely consistent with the target state, or that the equivalent capacitance value falls within the error range corresponding to the target capacitance value, or that the judgment conditions are indirectly characterized by voltage, current or waveform characteristics to indicate that the capacitive load has been correctly established.

[0103] Executing the test item corresponding to the control command means that after the above conditions are met, the control system triggers the test instruments, data acquisition programs and judgment programs related to the test item to start running, and records and analyzes the output performance of the switching power supply according to the test specification of the test item.

[0104] In practice, after the switch action command is issued, the system enters the status confirmation phase. For schemes using relay contact feedback, the system can read the feedback signal of each relay auxiliary contact through the digital input channel and compare it with the target status one by one. For schemes using semiconductor switches, the system can determine whether the branch is actually conducting through the drive return signal, branch voltage sampling signal, or Hall current detection signal. If a target branch that should be closed does not detect a conduction signal, or if a target branch that should be disconnected still has abnormal residual current, the system determines that the connection status does not meet the preset conditions.

[0105] In addition to direct continuity detection, the system can also collect voltage response data from the output of the switching power supply and determine whether the equivalent capacitance value has reached the expected value by comparing the waveform changes before and after switching. For example, when a group of capacitors is successfully connected, the voltage drop slope and recovery time at the output under load step will change accordingly, and the system can use these characteristic quantities as auxiliary confirmation criteria.

[0106] To ensure the judgment results are engineering-operable, the system typically sets a confirmation waiting window. Within this waiting window, the mechanical action of the switch, contact stabilization, and capacitor charging and discharging processes are allowed to complete before status sampling is performed.

[0107] If all target branch states meet the requirements by the end of the window, the system marks the current control command as successfully executed and sends a test start command to the test execution module. The test execution module then controls the electronic load to apply dynamic load, controls the oscilloscope to capture transient waveforms, and controls the data acquisition unit to record ripple values ​​or other performance parameters according to the definition of the current test item.

[0108] The data collected during the execution of the test item can be bound and stored with the current control command number, target capacity information and confirmation results to ensure that the test data corresponds one-to-one with the load configuration conditions.

[0109] If the connection status does not meet the preset conditions, the system can execute an exception handling procedure. The exception handling procedure may include resending the control command, switching to a safe state, disconnecting all capacitor branches, issuing an audible and visual alarm, displaying the faulty branch number on the operation interface, and pausing subsequent tests.

[0110] For scenarios where retries are allowed, the system can re-drive the faulty branch within a preset number of retries and reconfirm its status. If the preset conditions still cannot be met after continuous retries, the corresponding test item will be terminated and a failure report will be output to prevent the collection of invalid data under erroneous load conditions.

[0111] The reason for this setting is that if the test is performed directly under the condition of incorrect capacitive load configuration, the results will not accurately reflect the performance of the switching power supply under the target test conditions, and may even cause the power supply under test to enter the protection state or cause the test equipment to malfunction due to abnormal load.

[0112] In one possible embodiment, the preset condition can also be determined by the equivalent capacitance range. For example, when the target capacitance is 1000 microfarads and the allowable error is ±5%, the preset condition can be determined to be met as long as the equivalent capacitance obtained by branch state calculation or online measurement estimation is between 950 microfarads and 1050 microfarads.

[0113] Setting this parameter range helps to accommodate manufacturing errors, temperature drift, and detection errors in the capacitor itself, avoiding frequent false alarms caused by overly stringent absolute consistency criteria. If expressed as a formula, the equivalent capacitance value determination can be written as " ",in This represents the actual equivalent capacitance value formed by the current access branch. This indicates the target tolerance value required by the test item. This indicates the allowable error range. The purpose of this formula is to extend the connection status verification from simple structural consistency checks to functional consistency checks. As long as the actual capacitive load is sufficient to meet the test requirements, the test execution phase can begin, thus balancing accuracy and efficiency.

[0114] Based on the above analysis, this step constitutes a key closed-loop control link in the automated testing process. It does not immediately assume successful load configuration after the switch action, but instead uses a feedback confirmation mechanism to determine whether the connection status of each preset capacitor and the output line truly meets the test requirements. Only when the preset conditions are met is the corresponding test item initiated. This effectively avoids erroneous tests caused by switch failure, poor contact, loose wiring, control abnormalities, or branch failures, significantly improving the reliability, consistency, and traceability of test results. Simultaneously, it ensures that the entire testing process retains the necessary condition verification capabilities while executing continuously.

[0115] Based on the above analysis, this application provides an automated testing method, including: generating at least one control instruction based on preset test information, whereby the preset test information represents at least one test item to be executed in a preset order, and the test item represents a test item with specific requirements for the capacitive load output by the switching power supply. Each control instruction corresponds to a test item, and the control instruction is used to control the on / off state of each preset switch to adjust the connection state of each preset capacitor with the output line of the switching power supply, thereby adjusting the capacitive load output by the switching power supply. Each preset switch corresponds to a preset capacitor. All control instructions are traversed according to a preset order. For the currently traversed control instruction, the on / off state of each preset switch is controlled according to the control instruction. If the connection state of each preset capacitor with the output line of the switching power supply meets a preset condition, the test item corresponding to the control instruction is executed. In this embodiment, by parsing the test item requirements into executable control instructions and mapping the control instructions to automatic control of the switch state of each capacitor branch, combined with a test triggering mechanism after the connection state meets the preset condition, a complete closed-loop process of "test information generating instruction, instruction driving switch, switch establishing capacitive load, and execution of test after state confirmation" is formed. This process not only enables rapid switching and accurate matching of output capacitive loads during automated server power supply testing, but also improves the consistency between load configuration results and test requirements by introducing a status verification step. This reduces the risks of interruptions, misconnections, and omissions caused by manual intervention, thereby improving testing efficiency, stability, and the validity of test data. For example, the functions of generating control commands, executing switch switching, detecting connection status, and initiating testing can be centrally performed by the same controller, or collaboratively by the test host, switch driver module, status acquisition module, and test instrument control module.

[0116] It should be understood that the above examples are merely illustrative and not limiting. Any method that can automatically generate control commands based on test items, control preset switches to adjust the output capacitive load, and execute corresponding test items after satisfying preset connection conditions can be applied to the technical concept of the embodiments of this application.

[0117] Figure 2 Flowchart of the automated testing method provided in this application Figure 2 ,like Figure 2 As shown, in this embodiment... Figure 1Based on the embodiments, S101 and S103 above are further explained. The above-mentioned generation of at least one control command based on preset test information includes: traversing all test items in the preset test information; for the currently traversed test item, generating a control command corresponding to the test item based on the target capacitance value required by the test item; the target capacitance value represents the equivalent capacitance value that satisfies the capacitive load requirement of the current test item on the output terminal of the switching power supply. If the connection state of each preset capacitor and the output line of the switching power supply meets preset conditions, then the test item corresponding to the control command is executed, including: detecting the actual on / off state of each preset switch to obtain the actual connection state of each preset capacitor and the output line of the switching power supply; determining the actual equivalent capacitance value of all currently connected preset capacitors based on the actual connection state; if the actual equivalent capacitance value is consistent with the target capacitance value corresponding to the control command, then it is determined that the connection state of each preset capacitor and the output line of the switching power supply meets the preset conditions, and the test item corresponding to the control command is executed. The above method includes:

[0118] S201. Traverse all test items in the preset test information. For the currently traversed test item, generate the corresponding control command based on the target capacitance value required for the test item. The target capacitance value represents the equivalent capacitance value that meets the capacitive load requirements of the current test item for the output of the switching power supply. In this embodiment, the preset test information can be pre-written by the host computer according to the test specifications of the server power supply. The test items are used to characterize test items that have different requirements for the capacitive load at the output, such as dynamic load, transient response, or ripple detection.

[0119] The target capacitance value can correspond to the nominal value of a single capacitor or to the equivalent capacitance value formed by multiple preset capacitors connected in parallel. Its function is to indicate the output load state required for the current test item.

[0120] The control commands can be automatically generated by the test control program based on the target capacitance value and preset capacitor parameters, and mapped to the on / off combinations of each preset switch, thereby driving the capacitor bank to connect to or disconnect the switching power supply output line.

[0121] In practical applications, control commands can also be implemented using different types of controllers, relay arrays, or solid-state switches, and this application does not limit this.

[0122] When generating control commands, the system first reads the test information arranged in a preset order, extracts the target capacitance value corresponding to the current test item item by item, and then determines the control combination that can meet the target capacitance value based on the capacitance value parameters of each capacitor in the preset capacitor group, the series and parallel equivalent rules, and the switching state constraints, and encapsulates the control combination into the control command corresponding to the current test item.

[0123] When a target capacitance value can be achieved by multiple combinations of capacitors, the system can determine the candidate combination based on the criteria of having the fewest number of capacitors, the fewest switching times, or the highest execution stability, and output one or more sets of control commands to adapt to different test scenarios.

[0124] The traversal process is executed sequentially by the main control program. Once the control instruction corresponding to the current test item is generated, it can be called by subsequent switch controls, thus forming a set of instructions that correspond one-to-one with the test item.

[0125] The working principle of this method is to convert the capacitive load requirement of the test item into a target capacitance value, and then further convert the target capacitance value into a specific switching control relationship. This allows the test system to automatically generate corresponding control commands according to the sequence of test items, without the need for manual selection of capacitors and manual wiring. Through this method, a clear mapping relationship is formed between test information, target capacitance values, and control commands. The system can quickly switch the output capacitive load between different test items and ensure that the configuration result is consistent with the requirements of the current test item.

[0126] By adopting this implementation method, the generation process of control commands is closely linked to the test items, which can significantly reduce misconfigurations, omissions, and switching delays caused by manual intervention, and improve the accuracy and continuity of capacitive load configuration. Simultaneously, since the control commands are automatically generated based on the target capacitance value, the test system can improve test execution efficiency and enhance the consistency and repeatability of automated test results while ensuring that the equivalent capacitance meets the requirements. In one possible implementation, generating control commands corresponding to the test items based on the target capacitance value required for the test items includes: generating at least one candidate command based on the target capacitance value required for the test items; the candidate command characterizing the initially generated command for controlling the on / off state of each preset switch; and determining the control command corresponding to the test item from all candidate commands based on the current on / off state of each preset switch.

[0127] The target capacitance value refers to the equivalent capacitance value that matches the capacitive load requirement of the current test item. Each preset switch corresponds to a preset capacitor. The candidate instruction is used to describe the expected state of each switch being closed or open.

[0128] The preset switch can be a relay, a solid-state relay, or other actuators with on / off control capabilities. In practical applications, other models of this component can also be selected, and this application embodiment does not limit this.

[0129] The on / off status of each preset switch can be acquired in real time by the detection circuit. The detection circuit may include status feedback contacts, sampling resistors or optocoupler isolation detection units, which are used to output the actual connection information of the current circuit to the control host.

[0130] In practical implementation, after receiving the target capacitance value corresponding to the test item, the control host first calculates multiple on / off combinations that can meet the target capacitance value by combining the nominal capacitance value, allowable error and parallel equivalent relationship of each preset capacitor, and converts each on / off combination into a corresponding candidate instruction.

[0131] Candidate instructions can be represented as binary state vectors, where "1" indicates that the corresponding switch is closed and "0" indicates that the corresponding switch is open, or they can be represented as a set of switches that need to be activated.

[0132] After generating candidate instructions, the control host further reads the actual on / off state of each preset switch and compares the actual state with each candidate instruction to select the candidate instruction with the lowest cost of transitioning to the current state, the fewest number of switches to be switched, or the shortest execution time, as the control instruction corresponding to the test item.

[0133] During operation, the system first generates several feasible control schemes based on the target capacitance value, and then determines the final control command based on the actual state of the current switch. This ensures that the final command not only meets the target capacitance value requirement but also maintains a high degree of consistency with the current circuit state. As a result, the control host can avoid repeated or invalid switching, reduce the number of relay actions, and lower command execution latency.

[0134] By adopting this implementation method, the control command generation process corresponding to the test item takes into account both target capacitance matching and current state adaptation, which can improve the accuracy and efficiency of capacitive load switching, reduce misconfiguration caused by inconsistent switching states, and thus improve the stability and repeatability of automatic test results of switching power supplies.

[0135] S202. Based on a preset order, traverse all control commands. For the currently traversed control command, control the on / off state of each preset switch according to the control command.

[0136] S203. Detect the actual on / off state of each preset switch to obtain the actual connection state of each preset capacitor and the output line of the switching power supply.

[0137] In this embodiment, a one-to-one correspondence is established between preset switches and preset capacitors. The preset capacitors can be capacitor modules connected in parallel to the output line of the switching power supply. The capacitance parameters of the capacitor modules are pre-written into the test control system for subsequent equivalent capacitance calculation. The actual on / off state characterizes whether each switch has been closed or opened according to the control command. The system can obtain this state through switch feedback contacts, auxiliary contacts, current sampling signals, or relay status quantities, and accordingly restore the actual connection relationship between each capacitor and the output line. The actual equivalent capacitance value characterizes the combined capacitance value of all capacitors currently actually connected to the output line. When capacitors are connected in parallel, the rated capacitance values ​​of the connected capacitors can be accumulated to obtain this value, which reflects the capacitive load level borne by the switching power supply under test under the current load configuration.

[0138] For example, after issuing a control command, the test control system first reads the status feedback signal of each switch and compares it with the expected status of the command to determine whether the corresponding capacitor branch has been connected or disconnected.

[0139] S204. Determine the actual equivalent capacitance value of all currently connected preset capacitors based on the actual connection status.

[0140] For example, the system calculates the actual equivalent capacitance value of the currently connected capacitor bank based on the confirmed capacitor number and its pre-stored capacitance value parameters, and performs a consistency check between the result and the target capacitance value corresponding to the current control command.

[0141] S205. If the actual equivalent capacitance value is consistent with the target capacitance value corresponding to the control command, then determine that the connection status of each preset capacitor and the output line of the switching power supply meets the preset conditions, and execute the test item corresponding to the control command.

[0142] In practice, if the two conditions are consistent, it indicates that the current connection status of the capacitor bank has met the preset conditions, and the system allows subsequent test items to continue running; if they are inconsistent, the test items are kept paused or not executed, and the switch status can continue to be adjusted until the requirements are met.

[0143] To improve applicability, the switch can be a relay, a solid-state switch, or other controllable switching device. In practical applications, other models of this component can also be selected, and this application does not limit this.

[0144] This implementation method uses a closed-loop verification process involving "state detection, equivalent capacitance calculation, and consistency confirmation." This allows the testing system to verify whether the capacitive load truly meets the target requirements before executing any test item, thus avoiding false tests caused by malfunctioning switches, incorrect wiring, or poor contact. Since test items are only executed when the connection state matches the target capacitance value, it ensures that the load conditions required for different test items accurately correspond, improving the continuity, stability, and traceability of automated testing.

[0145] In one possible implementation, detecting the actual on / off state of each preset switch includes: in response to the control command taking effect, acquiring the current signal of the capacitor branch corresponding to each preset switch; and determining the actual on / off state of each preset switch based on the current signal of each capacitor branch.

[0146] Among them, the capacitor branch refers to the branch formed by connecting a single preset capacitor and its corresponding preset switch in series. One end of the branch is connected to the output line of the switching power supply, and the other end is connected to the capacitor through the preset switch so that a detectable branch current is formed when the switch is turned on.

[0147] The current signal can be acquired by a current detection unit installed in the branch. The current detection unit can be a Hall current sensor, a shunt resistor sampling circuit or a current transformer sampling circuit. Its output signal is sent to the controller after analog-to-digital conversion for subsequent status determination.

[0148] After the control command takes effect, the controller synchronously samples each capacitor branch at a preset sampling time, or continuously collects the current waveform of each branch at a fixed sampling period, and performs filtering and noise reduction on the collected results to reduce interference caused by relay contact jitter, switching transient impact and power supply ripple.

[0149] The controller compares the current of each branch with a preset threshold. When the current of a branch is greater than the threshold and the duration meets the judgment condition, it determines that the preset switch corresponding to that branch is in the on state; when the current of a branch is lower than the threshold or close to zero, it determines that the preset switch corresponding to that branch is in the off state.

[0150] In cases of abnormal current amplitude, intermittent waveform, or insufficient duration caused by poor contact, the controller can determine that the actual on / off state of the corresponding switch is inconsistent with the control command, and thus output abnormal status information.

[0151] In practical applications, the current detection unit can be integrated into the test execution platform, with each branch corresponding to an independent detection channel to improve the accuracy of status identification. When there are many branches, multiplexing sampling can be used to collect data centrally, and then the controller will analyze the data in channel order. Using a stable current sensor with bandwidth that meets the test requirements is beneficial to improving the accuracy of current signal acquisition. In practical applications, other models of this component can also be selected, and this application embodiment does not limit this.

[0152] Using the above method, the system can directly deduce the actual operation results of each preset switch based on the branch current after the control command is executed, thereby confirming whether the capacitor is connected to the output line as expected. This method eliminates the reliance on simple control command feedback for switch status confirmation, instead using actual current as the criterion, enabling timely detection of problems such as switch malfunction, contact failure, or abnormal line connections. Therefore, connection status verification can be completed before executing corresponding test items, ensuring that the capacitive load configuration results are consistent with the target requirements, and improving the continuity, reliability, and traceability of automated testing.

[0153] S206. If the connection status of each preset capacitor and the output line of the switching power supply does not meet the preset conditions, a prompt message will be generated and the execution of the current test item will be paused; the prompt message is used to indicate that the capacitor connection is abnormal.

[0154] The prompt information can be generated by the test control host and output through the test software interface, the audible and visual alarm module, or the log recording module, so as to promptly remind the operator that there are abnormalities such as open circuit, misconnection, failure to operate, or excessive deviation of equivalent capacitance value in the current capacitor branch.

[0155] To improve the efficiency of anomaly location, the prompt message can also carry the anomaly branch identifier, the currently detected connection status, and the corresponding test item name, thereby facilitating rapid troubleshooting.

[0156] In actual execution, after completing the switch status detection and equivalent capacitance value determination, if the system determines that the connection status of each preset capacitor and the output line of the switching power supply does not meet the preset conditions, it will not continue to trigger the current test item, but will keep the test process in a paused state.

[0157] The pause state can be achieved by blocking the test trigger signal, freezing the test timer, or locking the control variable of the current test item, preventing the current test item from being executed until the anomaly is cleared. After the operator corrects the capacitor connection status, the system can reacquire the actual on / off status of each switch and re-verify it. Once the verification is successful, the execution of the current test item will resume.

[0158] By implementing the above steps, testing under incorrect load conditions can be avoided, thereby reducing the risk of test data distortion and equipment malfunction. Since abnormal states can be identified and intercepted before the test item is started, the reliability of capacitive load configuration and the consistency of test results can be improved, while reducing manual review costs and enhancing the stability of the automated testing process. Figure 3 Schematic diagram of the automated test circuit provided in this application Figure 1 ,like Figure 3 As shown, it includes a multi-capacitor combination circuit, a power supply unit, and an automated testing unit; the multi-capacitor combination circuit is connected between the power supply unit and the automated testing unit; the multi-capacitor combination circuit includes at least two capacitor branches ( Figure 3Taking three capacitor branches as an example), each capacitor branch includes at least one preset capacitor connected in series and a preset switch (such as...). Figure 3 K1-K3 are the preset switches for the corresponding capacitor branches. One end of each capacitor branch is connected in parallel to the line between the power supply unit and the automated test unit, and the other end is grounded.

[0159] In this embodiment, a multi-capacitor combination circuit is disposed between the power supply unit and the automated test unit, enabling the automated test unit to directly configure capacitive loads around the power output line.

[0160] Each capacitor branch is connected in parallel, and each branch is equipped with a preset capacitor and a preset switch. This allows for the formation of various equivalent capacitance combinations by controlling the connection status of different branches, enabling the capacitive load requirements corresponding to different test items to be quickly matched.

[0161] The preset switch includes any of the following: electromagnetic relay, power semiconductor, and knife switch. Electromagnetic relays achieve switching by driving contacts with a coil; power semiconductor switches include solid-state switching devices such as MOSFETs (Metal-Oxide-Semiconductor Field-Effect Transistors) and IGBTs (Insulated Gate Bipolar Transistors); and knife switches are mechanical physical switches.

[0162] Each preset switch is independently controlled and can act alone according to control commands, realizing various combination configurations such as single capacitor connection and multiple capacitor parallel connection, so as to accurately match the target capacitance value required by different test items.

[0163] The other end of each branch is grounded, which clarifies the connection path of the capacitive load and facilitates stable simulation of the capacitive conditions at the output end under actual working conditions during the test.

[0164] Therefore, this circuit can reduce test interruptions caused by manual capacitor installation and removal, improve load switching efficiency and test continuity, and help improve the consistency of test conditions and the reliability of results.

[0165] Figure 4 Schematic diagram of the automated test circuit provided in this application Figure 2 ,like Figure 4 As shown, in this embodiment... Figure 3 Based on the embodiment, the status indication branch is further described. The capacitor branch also includes a status indication branch; the status indication branch includes a current-limiting resistor 404 and a light-emitting diode 405 connected in series, and the status indication branch is connected in parallel across the two ends of the preset capacitor 403 in the capacitor branch to indicate the conduction state of the corresponding capacitor branch.

[0166] The current-limiting resistor 404 is used to limit the current flowing through the light-emitting diode 405, so as to prevent the light-emitting diode 405 from being damaged by overcurrent and to ensure that the status indication function is stable and reliable.

[0167] When the preset switch is closed and the preset capacitor 403 is connected to the output line of the switching power supply, the current flows through the current limiting resistor 404 and the light-emitting diode 405, and the light-emitting diode 405 lights up, indicating that the capacitor branch is conducting.

[0168] When the preset switch is open and the preset capacitor 403 is disconnected from the switching power supply output line, there is no current in the branch, the LED 405 is off, indicating that the capacitor branch is open. In some specific embodiments of this example, the preset switches K1-K3 are single-pole single-throw switches, which control the opening and closing of the corresponding branches through a program, and are used as control signal switches for the electromagnetic relay. The capacitor branch also includes a buffer 401 and an electromagnetic relay 402. The buffer 401 is used to buffer the signal, enhance the driving capability of the control signal, and ensure that the coil of the electromagnetic relay 402 is reliably engaged. The coil side of the electromagnetic relay 402 is driven by the control signal, and the contact side realizes the opening and closing of the high-voltage or high-current circuit.

[0169] The power supply unit includes a switching power supply 406, which powers the entire circuit. Three capacitor branches are connected in parallel to the output terminal 407 of the switching power supply 406 to provide power output to the automated test unit.

[0170] Figure 5 A schematic diagram of the automated testing device provided in this application is shown below. Figure 5 As shown, the device includes:

[0171] The generation module 501 is used to generate at least one control instruction based on preset test information. The preset test information represents at least one test item to be executed in a preset order. The test item represents a test item that has specific requirements for the capacitive load output of the switching power supply. The control instruction corresponds one-to-one with the test item. The control instruction is used to control the on / off state of each preset switch to adjust the connection state of each preset capacitor and the output line of the switching power supply, thereby adjusting the capacitive load output of the switching power supply. The preset switch corresponds one-to-one with the preset capacitor.

[0172] The control module 502 is used to traverse all control commands in a preset order, and for the currently traversed control command, control the on / off state of each preset switch according to the control command.

[0173] The execution module 503 is used to execute the test item corresponding to the control command if the connection status of each preset capacitor and the output line of the switching power supply meets the preset conditions.

[0174] In one possible implementation, the generation module 501 is further configured to:

[0175] It iterates through all test items in the preset test information. For the currently iterated test item, it generates the corresponding control command based on the target capacitance value required by the test item. The target capacitance value represents the equivalent capacitance value that meets the capacitive load requirements of the current test item for the output of the switching power supply.

[0176] In one possible implementation, the generation module 501 is further configured to:

[0177] Based on the target capacitance value required for the test item, at least one candidate instruction is generated; the candidate instruction represents the initially generated instruction used to control the on / off state of each preset switch.

[0178] Based on the current on / off state of each preset switch, the control command corresponding to the test item is determined from all candidate commands.

[0179] In one possible implementation, execution module 503 is further configured to:

[0180] Detect the actual on / off state of each preset switch to obtain the actual connection state between each preset capacitor and the output line of the switching power supply.

[0181] Based on the actual connection status, determine the actual equivalent capacitance value of all currently connected preset capacitors;

[0182] If the actual equivalent capacitance value is consistent with the target capacitance value corresponding to the control command, then it is determined that the connection status of each preset capacitor and the output line of the switching power supply meets the preset conditions, and the test item corresponding to the control command is executed.

[0183] In one possible implementation, execution module 503 is further configured to:

[0184] In response to the control command taking effect, the current signal of the capacitor branch corresponding to each preset switch is obtained;

[0185] The actual on / off state of each preset switch is determined based on the current signal of each capacitor branch.

[0186] In one possible implementation, execution module 503 is further configured to:

[0187] If the connection status of each preset capacitor and the output line of the switching power supply does not meet the preset conditions, a prompt message will be generated and the execution of the current test item will be paused; the prompt message is used to indicate that the capacitor connection is abnormal.

[0188] Figure 6 A schematic diagram of the structure of the automated testing equipment provided in this application is shown below. Figure 6As shown, the automated testing device 60 provided in this embodiment includes: at least one memory 601 and a processor 602; the memory 601 stores computer execution instructions; the processor 602 executes the computer execution instructions stored in the memory 601, causing the processor 602 to execute the method provided above.

[0189] Optionally, the automated testing equipment 60 also includes a communication component 603. The processor 601, memory 602, and communication component 603 are connected via a bus.

[0190] In implementation, the memory 601 is used to store the automated test program, preset test information, and control logic corresponding to each test item. After the processor 602 calls and executes the computer execution instructions, it can automatically execute the above methods during the server switching power supply test. This allows for the generation and execution of corresponding control instructions based on the requirements of different test items, controlling the preset switches to change the connection status of each preset capacitor and output line, thereby automatically adjusting the capacitive load. The corresponding test item is then started only after the connection status meets preset conditions, eliminating the need for frequent manual intervention in the test process. This improves the continuity, matching accuracy, and reliability of status confirmation during capacitive load switching, thus enhancing automated testing efficiency, test result consistency, and the detectability of abnormal states.

[0191] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.

[0192] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.

[0193] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0194] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.

[0195] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.

[0196] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.

[0197] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.

[0198] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0199] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0200] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0201] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0202] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0203] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.

Claims

1. An automated testing method, characterized by, include: Generate at least one control command based on the preset test information; The preset test information represents at least one test item executed in a preset order. The test item represents a test item that has specific requirements for the capacitive load output by the switching power supply. The control command corresponds one-to-one with the test item. The control command is used to control the on / off state of each preset switch to adjust the connection state of each preset capacitor and the output line of the switching power supply, thereby adjusting the capacitive load output by the switching power supply. The preset switch corresponds one-to-one with the preset capacitor. Based on the preset order, all control commands are traversed. For the currently traversed control command, the on / off state of each preset switch is controlled according to the control command. If the connection status of each preset capacitor and the output line of the switching power supply meets the preset conditions, then the test item corresponding to the control command will be executed.

2. The method of claim 1, wherein, Based on preset test information, generate at least one control command, including: The system iterates through all test items in the preset test information. For the currently iterated test item, it generates the corresponding control command based on the target capacitance value required by the test item. The target capacitance value represents the equivalent capacitance value that satisfies the capacitive load requirements of the current test item on the output of the switching power supply.

3. The method of claim 2, wherein, Based on the target tolerance value required for the test item, generate the corresponding control instructions for the test item, including: Based on the target capacitance value required for the test item, at least one candidate instruction is generated; the candidate instruction represents the initially generated instruction for controlling the on / off state of each preset switch; Based on the current on / off state of each preset switch, the control command corresponding to the test item is determined from all candidate commands.

4. The method according to claim 1, characterized in that, If the connection status of each preset capacitor to the output line of the switching power supply meets the preset conditions, then the test item corresponding to this control command will be executed, including: Detect the actual on / off state of each preset switch to obtain the actual connection state between each preset capacitor and the output line of the switching power supply. Based on the actual connection status described above, determine the actual equivalent capacitance value of all currently connected preset capacitors; If the actual equivalent capacitance value is consistent with the target capacitance value corresponding to the control command, then it is determined that the connection status of each preset capacitor and the output line of the switching power supply meets the preset conditions, and the test item corresponding to the control command is executed.

5. The method according to claim 4, characterized in that, Detect the actual on / off state of each preset switch, including: In response to the control command taking effect, the current signal of the capacitor branch corresponding to each preset switch is obtained; The actual on / off state of each preset switch is determined based on the current signal of each capacitor branch.

6. The method according to any one of claims 1-5, characterized in that, Also includes: If the connection status of each preset capacitor and the output line of the switching power supply does not meet the preset conditions, a prompt message will be generated and the execution of the current test item will be paused. The prompt message is used to indicate an abnormal capacitor connection.

7. An automated test circuit, characterized in that, Includes multi-capacitor combination circuits, power supply units, and automated testing units; The multi-capacitor combination circuit is connected between the power supply unit and the automated testing unit; The multi-capacitor combination circuit includes at least two capacitor branches. Each capacitor branch includes at least one preset capacitor and a preset switch connected in series. One end of each capacitor branch is connected in parallel to the line between the power supply unit and the automated test unit, and the other end is grounded.

8. The circuit according to claim 7, characterized in that, The capacitor branch also includes a status indication branch; The status indicator branch includes a current-limiting resistor and a light-emitting diode connected in series. The status indicator branch is connected in parallel across the two ends of a preset capacitor in the capacitor branch to indicate the conduction state of the corresponding capacitor branch.

9. The circuit according to any one of claims 7-8, characterized in that, The preset switch includes any one of the following: electromagnetic relay, power semiconductor, knife switch.

10. An automated testing device, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1-6.