Test method and device for integrated power protection switch of server fan

By generating multiple test scenarios and controlling the server fan to run under the target scenario, current and voltage values ​​are obtained, and test results of the integrated power protection switch are generated. This solves the problem of insufficient eFuse load threshold in servers with different power levels and improves the leakage protection safety of the server.

CN117743045BActive Publication Date: 2026-07-24INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
INSPUR SUZHOU INTELLIGENT TECH CO LTD
Filing Date
2023-11-29
Publication Date
2026-07-24

Smart Images

  • Figure CN117743045B_ABST
    Figure CN117743045B_ABST
Patent Text Reader

Abstract

The embodiment of the application provides a kind of integrated power protection switch test method and device for server fan, it is related to the test field of integrated power protection switch for server fan, by generating multiple test scenarios, and from multiple the target scene is determined in the test scenario;Control server fan runs under target scene, and obtains the current value and voltage value for the server fan;The current value and the voltage value are used to generate the test result for the integrated power protection switch, to realize the test of integrated power protection switch of server fan, to improve the safety of leakage protection of server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of testing technology for integrated power protection switches for server fans, and in particular to a testing method for integrated power protection switches for server fans, a testing device for integrated power protection switches for server fans, an electronic device, and a computer-readable storage medium. Background Technology

[0002] When designing servers, in addition to considering improving energy efficiency and power density, it is also crucial to ensure safety and reliability as much as possible. eFuse is an integrated power protection switch that provides voltage and current protection during fault events. These include events such as short circuits, overcurrent, overvoltage, undervoltage, and overtemperature, which could otherwise damage downstream loads. During a short-circuit transient event, the current through the eFuse increases very rapidly. The eFuse enables a fast trip current threshold, which terminates this rapid increase in less than 200 ns, thus protecting the power supply. If an overvoltage event occurs on the voltage input (VIN), the eFuse monitors the voltage across the internal FET and clamps the output voltage until the input drops below the overvoltage threshold. eFuse also features built-in overtemperature protection, which shuts down the FET if the junction temperature exceeds 150°C (typical). After the junction temperature decreases, the eFuse remains off (latch-up version) or attempts to restart the device (auto-retry version). eFuse offers many additional features similar to load switches, including adjustable surge current control and reverse current protection.

[0003] In related technologies, since servers of different power levels use the same eFuse, the eFuse uses the same load threshold to protect the power of servers of different power levels. When some high-power servers experience overvoltage, overcurrent, or large voltage and current surges caused by a sudden increase in fan speed, the eFuse's load threshold may be insufficient, leading to server damage. Summary of the Invention

[0004] The present invention provides a testing method, apparatus, electronic device, and computer-readable storage medium for an integrated power protection switch for a server fan, in order to overcome or at least partially solve the above-mentioned problems.

[0005] This invention discloses a testing method for an integrated power protection switch for a server fan, comprising:

[0006] Multiple test scenarios are generated, and a target scenario is determined from the multiple test scenarios; the test scenario includes at least: a negative pressure rotation pressure test scenario for simulating the operation of the server fan in a negative pressure environment, and a target duty cycle rotation pressure test scenario for simulating the operation of the server fan at different speed duty cycles;

[0007] Control the server fan to operate in the target scenario, and obtain the current and voltage values ​​for the server fan;

[0008] The test results for the integrated power protection switch are generated using the current and voltage values.

[0009] Optionally, the step of generating multiple test scenarios and determining the target scenario from the multiple test scenarios includes:

[0010] Generate multiple scripts to represent the test scenario;

[0011] Store the script information in the execution pool;

[0012] The target scenario is randomly selected from the execution pool.

[0013] Optionally, the server fan is a cooling fan for a server, the server includes a server motherboard, the server fan is equipped with a corresponding external steering control device, and the steps of controlling the server fan to operate in the target scenario and obtaining the current and voltage values ​​for the server fan include:

[0014] The server fan is driven to rotate under negative pressure using the external steering control device.

[0015] When the server fan speed reaches a preset threshold, the server motherboard is powered on.

[0016] With the server motherboard powered on, acquire the current and voltage values ​​for the server fan;

[0017] Power off the server motherboard and execute the step of using the external steering control device to drive the server fan to rotate in negative pressure direction.

[0018] Optionally, the server fan is a cooling fan for a server, the server includes a server motherboard, and the step of controlling the server fan to operate in the target scenario and obtaining the current and voltage values ​​for the server fan includes:

[0019] Obtain the IP address, username, and permission verification information of the baseboard management controller;

[0020] The target baseboard management controller corresponding to the server fan is determined using the baseboard management controller IP address, the baseboard management controller username, and the baseboard management controller permission verification information.

[0021] Determine the first duty cycle and the full load duty cycle for the server fan;

[0022] The target substrate management controller controls the server fan based on the first duty cycle to obtain a first target current value and a first target voltage value for the server fan.

[0023] After completing the steps of using the target substrate management controller to control the server fan based on the first duty cycle and obtaining the first target current value and the first target voltage value for the server fan, the server fan is stopped by using the target substrate management controller within a first preset time period.

[0024] The target substrate management controller controls the server fan based on the full-load duty cycle to obtain a second target current value and a second target voltage value for the server fan.

[0025] After completing the steps of using the target baseboard management controller to control the server fan based on the full load duty cycle and obtaining the second target current value and the second target voltage value for the server fan, the server fan is stopped by using the target baseboard management controller within a first preset time period.

[0026] The step of using the target substrate management controller to control the server fan based on the first duty cycle to obtain the first target current value and the first target voltage value for the server fan is performed.

[0027] Optionally, the server fan is a cooling fan for a server, the server includes a server motherboard, and the step of controlling the server fan to operate in the target scenario and obtaining the current and voltage values ​​for the server fan includes:

[0028] Obtain the IP address, username, and permission verification information of the baseboard management controller;

[0029] The target baseboard management controller corresponding to the server fan is determined using the baseboard management controller IP address, the baseboard management controller username, and the baseboard management controller permission verification information.

[0030] Determine the second duty cycle and the full-load duty cycle for the server fan;

[0031] The target substrate management controller controls the server fan based on the second duty cycle to obtain a third target current value and a third target voltage value for the server fan;

[0032] After completing the steps of using the target substrate management controller to control the server fan based on the second duty cycle and obtaining the third target current value and the third target voltage value for the server fan, the server fan is controlled to stop within a second preset time period using the target substrate management controller.

[0033] The target baseboard management controller controls the server fan based on the full-load duty cycle to obtain a fourth target current value and a fourth target voltage value for the server fan;

[0034] After completing the steps of using the target baseboard management controller to control the server fan based on the full load duty cycle and obtaining the fourth target current value and the fourth target voltage value for the server fan, the server fan is stopped by using the target baseboard management controller during the second preset time period.

[0035] The step of using the target substrate management controller to control the server fan based on the second duty cycle to obtain the third target current value and the third target voltage value for the server fan is performed.

[0036] Optionally, the server fan is a cooling fan for a server, the server includes a server motherboard, and the step of controlling the server fan to operate in the target scenario and obtaining the current and voltage values ​​for the server fan includes:

[0037] Obtain the IP address, username, and permission verification information of the baseboard management controller;

[0038] The target baseboard management controller corresponding to the server fan is determined using the baseboard management controller IP address, the baseboard management controller username, and the baseboard management controller permission verification information.

[0039] Determine the full-load duty cycle for the server fan;

[0040] The target baseboard management controller controls the server fan based on the full-load duty cycle to obtain a fifth target current value and a fifth target voltage value for the server fan;

[0041] After completing the steps of using the target baseboard management controller to control the server fan based on the full load duty cycle and obtaining the fifth target current value and the fifth target voltage value for the server fan, the server fan is controlled to stop within a third preset time period using the target baseboard management controller.

[0042] The step of using the target baseboard management controller to control the server fan based on the full load duty cycle to obtain the fifth target current value and the fifth target voltage value for the server fan is performed.

[0043] Optionally, it also includes:

[0044] Generate a line graph to represent the current and voltage values.

[0045] This invention also provides a testing device for an integrated power protection switch for a server fan, comprising:

[0046] The test scenario generation module is used to generate multiple test scenarios and determine a target scenario from the multiple test scenarios; the test scenario includes at least: a negative pressure rotation pressure test scenario for simulating the server fan running in a negative pressure environment, and a target duty cycle rotation pressure test scenario for simulating the server fan running at different speed duty cycles;

[0047] The current and voltage value acquisition module is used to control the server fan to operate in the target scenario and acquire the current and voltage values ​​for the server fan.

[0048] An integrated power protection switch test module is used to generate test results for the integrated power protection switch using the current value and the voltage value.

[0049] This invention also discloses an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;

[0050] The memory is used to store computer programs;

[0051] When the processor executes a program stored in the memory, it implements the method described in the embodiments of the present invention.

[0052] This invention also discloses a computer-readable storage medium storing instructions that, when executed by one or more processors, cause the processors to perform the methods described in this invention.

[0053] The embodiments of the present invention have the following advantages:

[0054] In this embodiment of the invention, multiple test scenarios are generated, and a target scenario is determined from these scenarios. The test scenarios include at least: a negative pressure rotational pressure test scenario simulating the server fan operating under negative pressure, and a target duty cycle rotational pressure test scenario simulating the server fan operating at different speed duty cycles. The server fan is controlled to operate under the target scenario, and current and voltage values ​​for the server fan are obtained. Test results for the integrated power protection switch are generated using the current and voltage values, thereby achieving the testing of the integrated power protection switch for the server fan and improving the safety of leakage protection for the server. Attached Figure Description

[0055] Figure 1 This is a flowchart of the steps of a test method for an integrated power protection switch for a server fan provided in an embodiment of the present invention;

[0056] Figure 2 This is a schematic flowchart of a method for testing the resistance to negative pressure rotation provided in an embodiment of the present invention;

[0057] Figure 3 This is a flowchart illustrating a pressure test method for speeds from zero to full load provided in an embodiment of the present invention.

[0058] Figure 4 This is a flowchart illustrating a pressure test method for speed from half-load to full-load provided in an embodiment of the present invention.

[0059] Figure 5 This is a flowchart illustrating a method for testing pressure at full load speed provided in an embodiment of the present invention.

[0060] Figure 6 This is a structural block diagram of a test device for an integrated power protection switch for a server fan provided in an embodiment of the present invention;

[0061] Figure 7 This is a hardware structure block diagram of an electronic device provided in an embodiment of the present invention;

[0062] Figure 8 This is a schematic diagram of a computer-readable medium provided in an embodiment of the present invention. Detailed Implementation

[0063] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0064] Reference Figure 1The diagram illustrates a step-by-step flowchart of a test method for an integrated power protection switch for a server fan, provided in an embodiment of the present invention. Specifically, it may include the following steps:

[0065] Step 101: Generate multiple test scenarios and determine the target scenario from the multiple test scenarios;

[0066] Step 102: Control the server fan to operate in the target scenario and obtain the current and voltage values ​​for the server fan;

[0067] Step 103: Use the current value and the voltage value to generate test results for the integrated power protection switch.

[0068] In practical applications, embodiments of the present invention can be applied to test systems for integrated power protection switches, which can consist of software and / or hardware.

[0069] The software component can generate multiple test scenarios for the integrated power protection switch. For example, multiple test scenarios can be multiple speed control signals for the server fan. By controlling the server fan with different speed control signals, different rotation situations of the server fan in the server can be simulated.

[0070] In specific implementations, test scenarios may include negative pressure rotation pressure test scenarios to simulate server fans operating in a negative pressure environment, and target duty cycle rotation pressure test scenarios to simulate server fans operating at different speed duty cycles.

[0071] For example, the test scenarios may include: negative pressure rotation stress test, zero speed to full load speed stress test, half load speed to full load speed stress test, and full load speed stress test, etc.; among them, the negative pressure rotation stress test can simulate the server fan rotating in reverse when the server motherboard is not powered on and negative pressure exists inside the server, and control the server fan to rotate in the forward direction to reach a predetermined speed while the server fan is rotating in reverse; the zero speed to full load speed stress test can be a test of adjusting the server fan speed duty cycle from 0% to 100%; the half load speed to full load speed stress test can be a test of adjusting the server fan speed duty cycle from 50% to 100%; and the full load speed stress test can be a test of keeping the fan duty cycle continuously stable at 100%.

[0072] Of course, the above examples are merely illustrative. Those skilled in the art can determine the test scenario at any rotational speed according to actual needs, and the embodiments of the present invention do not limit this.

[0073] Before starting the test, this embodiment of the invention can determine the target scenario for the server fan from multiple test scenarios, and then control the server fan to run according to preset rules under the target scenario. When the server fan is running under the target scenario, the current value and voltage value of the server fan are obtained. For example, assuming that the current test scenario includes negative pressure rotation pressure test, zero speed to full load speed pressure test, and half load speed to full load speed pressure test, the half load speed to full load speed pressure test can be randomly selected as the target scenario. After determining the target scenario, the total test duration can be determined to be 60 minutes, and the unit switching time cycle is 30 seconds. First, the server fan is controlled to run at half load speed, then stopped for 30 seconds, then the server fan is controlled to run at full load speed, then stopped for 30 seconds, and then the server fan is controlled to run at half load speed again. In this way, the server fan is controlled to switch between zero speed and full speed within 60 minutes, and the current value and voltage value of the server fan are obtained.

[0074] Of course, the above examples are merely illustrative. Those skilled in the art can use any test scenario as the target scenario and set the test time according to actual needs. In this regard, the embodiments of the present invention do not impose any restrictions.

[0075] This invention can generate test results for integrated power protection switches using current and voltage values. For example, during the test, the power consumption of the prototype and the current and voltage of the oscilloscope are captured, and the current and voltage values ​​are analyzed to see if they are close to the design threshold or extreme value of the fan board efuse. If the phenomenon is close to the threshold or exceeds the extreme value, the test result is unqualified. That is, it can be determined that the efuse design is unreasonable and the current threshold needs to be redesigned. High-specification capacitors or resistors should be added to improve the safety of leakage protection for the server.

[0076] In this embodiment of the invention, multiple test scenarios are generated, and a target scenario is determined from these scenarios. The test scenarios include at least: a negative pressure rotational pressure test scenario simulating the server fan operating under negative pressure, and a target duty cycle rotational pressure test scenario simulating the server fan operating at different speed duty cycles. The server fan is controlled to operate under the target scenario, and current and voltage values ​​for the server fan are obtained. Test results for the integrated power protection switch are generated using the current and voltage values, thereby achieving the testing of the integrated power protection switch for the server fan and improving the safety of leakage protection for the server.

[0077] Based on the above embodiments, modified embodiments of the above embodiments are proposed. It should be noted that, in order to keep the description brief, only the differences from the above embodiments are described in the modified embodiments.

[0078] In an optional embodiment of the present invention, the step of generating multiple test scenarios and determining a target scenario from the multiple test scenarios includes:

[0079] Generate multiple scripts to represent the test scenario;

[0080] Store the script information in the execution pool;

[0081] The target scenario is randomly selected from the execution pool.

[0082] In practical applications, an execution pool can be a data storage pool. A storage pool refers to a group of local disks available for storage in a system, consisting of one or more disks of the same capacity, and the capacity of a storage pool is usually larger than that of a single disk. The function of a storage pool can generally be understood as coordinating the overall functionality of local storage devices. It is responsible for managing these devices, coordinating their usage, and consolidating and allocating their space. Storage pools can help users save time and minimize disk resource read and write times, thus reducing resource consumption. Furthermore, they can provide high availability to cope with accidents, disasters, and system failures, thereby ensuring data availability.

[0083] Storage pools minimize disk space utilization and connect spaces together according to certain rules, thereby reducing the utilization rate per unit space and creating an easily manageable storage pool. This avoids wasting disk space and is more conducive to utilizing disk performance and efficiency.

[0084] Storage pools allow users to increase disk space to meet storage needs without adding hardware, thereby improving the load capacity of the data storage system. Moreover, the local disks in the storage pool can be completely independent of the network storage system, or they can be connected to other network storage systems. This can effectively solve the problem of storage space fragmentation, thereby reducing the performance of the device.

[0085] Because of their robust functionality, storage pools are supported by various software and systems, enabling the acquisition of ample storage space. For example, Linux's Logical Volume Manager (LVM) utilizes multiple physical disks to form a storage pool, significantly improving disk space utilization. It also allows for the addition or reduction of sub-disk capacity within the pool at any time to meet system demands. Apple's Core Storage is another feature designed to improve storage device usage and achieve high-performance storage. It aggregates disk devices into a storage pool and then manages the pool's space according to system requirements.

[0086] In summary, storage pools offer users a way to instantly aggregate and optimize disk space, thereby improving storage utilization and making more efficient use of storage space. They effectively avoid disk fragmentation and minimize system failures, thus improving the reliability of storage devices.

[0087] In practical implementation, script information can be generated to express test scenarios. This script information can be used to control the server fan to simulate its working state at different speeds. The script information is then stored in the execution pool. For example, the model is used to determine the scenario mode and execution time to generate multiple script information to express the test scenarios. After storing the script information in the execution pool, the execution pool can contain: [Scenario A, 240S], [Scenario B, 120S], [Scenario C, 60S], [Scenario D, 30S]. The test system's running logic can randomly select a mode from the above execution pool and perform tests according to the scenario and time.

[0088] In this embodiment of the invention, multiple scripts expressing test scenarios are generated; the multiple scripts are stored in an execution pool; and a target scenario is randomly selected from the execution pool to achieve efficient determination of the target scenario, thereby improving the efficiency of target scenario determination.

[0089] In an optional embodiment of the present invention, after the server fan has been tested in the target test scenario, the target scenario can be randomly selected again from the execution pool and the test process can be repeated within a preset time interval.

[0090] In an optional embodiment of the present invention, the server fan is a cooling fan for a server, the server includes a server motherboard, the server fan is configured with a corresponding external steering control device, and the step of controlling the server fan to operate in a target scenario and obtaining the current and voltage values ​​for the server fan includes:

[0091] The server fan is driven to rotate under negative pressure using the external steering control device.

[0092] When the server fan speed reaches a preset threshold, the server motherboard is powered on.

[0093] With the server motherboard powered on, acquire the current and voltage values ​​for the server fan;

[0094] Power off the server motherboard and execute the step of using the external steering control device to drive the server fan to rotate in negative pressure direction.

[0095] In practice, if the server is under negative pressure, the fan may rotate in reverse. Therefore, it is necessary to conduct a negative pressure rotation stress test on the server fan.

[0096] The server fan in this embodiment of the invention can be a cooling fan for a server. The server can include a motherboard. The test system can include an external steering control device for the server fan, such as a blower. Of course, those skilled in the art can also use other air outlet devices as external steering control devices. This embodiment of the invention does not limit the scope of the invention.

[0097] refer to Figure 2 , Figure 2 This is a schematic flowchart of a method for testing the resistance to negative pressure rotation provided in an embodiment of the present invention.

[0098] For example, in the scenario of negative pressure rotation pressure test: the server motherboard, fan board, etc. are installed on a designated fixed frame, a blower is used to aim at the server fan to make the fan rotate in reverse. After all the fans have reached a certain reverse speed, the server is turned on and waited for 240 seconds. After turning off the server, this is one cycle. After 240 seconds, the blower is used again and the server is turned on again after the fan has reached a certain reverse speed. This cycle is repeated.

[0099] In this embodiment of the invention, the server fan is driven to rotate under negative pressure by using an external steering control device; when the server fan speed reaches a preset threshold, the server motherboard is powered on; while the server motherboard is powered on, the current and voltage values ​​for the server fan are acquired; the server motherboard is powered off, and the step of driving the server fan to rotate under negative pressure by using the external steering control device is executed. This realizes the testing of the server fan against negative pressure rotation scenarios, improves the testing efficiency of the server fan, and further enhances the safety of the server's leakage protection.

[0100] In an optional embodiment of the present invention, the server fan is a cooling fan for a server, the server includes a server motherboard, and the step of controlling the server fan to operate in a target scenario and obtaining the current and voltage values ​​for the server fan includes:

[0101] Obtain the IP address, username, and permission verification information of the baseboard management controller;

[0102] The target baseboard management controller corresponding to the server fan is determined using the baseboard management controller IP address, the baseboard management controller username, and the baseboard management controller permission verification information.

[0103] Determine the first duty cycle and the full load duty cycle for the server fan;

[0104] The target substrate management controller controls the server fan based on the first duty cycle to obtain a first target current value and a first target voltage value for the server fan.

[0105] After completing the steps of using the target substrate management controller to control the server fan based on the first duty cycle and obtaining the first target current value and the first target voltage value for the server fan, the server fan is stopped by using the target substrate management controller within a first preset time period.

[0106] The target substrate management controller controls the server fan based on the full-load duty cycle to obtain a second target current value and a second target voltage value for the server fan.

[0107] After completing the steps of using the target baseboard management controller to control the server fan based on the full load duty cycle and obtaining the second target current value and the second target voltage value for the server fan, the server fan is stopped by using the target baseboard management controller within a first preset time period.

[0108] The step of using the target substrate management controller to control the server fan based on the first duty cycle to obtain the first target current value and the first target voltage value for the server fan is performed.

[0109] BMC: BMC stands for Baseboard Management Controller, also known as Baseboard Management Controller. It is a dedicated controller used for monitoring and managing servers, and its four main functions are as follows:

[0110] ① Equipment Information Management: Record server information (model, manufacturer, date, production and technical information of each component, chassis information, motherboard information, etc.) and BMC information (server hostname, IP, BMC firmware version, etc.);

[0111] ② Server status monitoring and management: Monitor the health status of various server components (CPU, memory, hard drive, fan, chassis, etc.) such as temperature and voltage, and adjust the fan speed in real time according to the temperature data collection points to ensure that the server does not overheat, while controlling the overall power consumption to prevent it from being too high; if any abnormality occurs in a single board component, the information will be reported to the upper-level network management in a timely manner through various industry-standard protocols such as SNMP, SMTP, and Redfish.

[0112] ③ Remote control and management of the server: server power on / off, restart, maintenance, firmware updates, system installation, etc.;

[0113] ④ Maintenance and management: Log management, user management, BIOS management, alarm management, etc.

[0114] The Baseboard Management Controller (BMC) can perform operations such as firmware upgrades and device monitoring when the machine is not powered on. For example, the BMC manages devices through the high-speed serial computer expansion bus standard PCIe or the built-in integrated circuit channel I2C bus. It can also support MCTP to obtain information such as the manufacturer, temperature, voltage, and health status of the managed devices. It is an important component in computers.

[0115] A BMC (Browser Control Center) is a dedicated service processor that uses sensors to monitor the status of a computer, network server, or other hardware device and communicates with the system administrator via a separate connection. The BMC is part of the Intelligent Platform Management Interface (IPMI) and is typically contained within the motherboard or the main circuit board of the monitored device. The BMC's sensors measure internal physical variables such as temperature, humidity, power supply voltage, fan speed, communication parameters, and operating system (OS) functions. If any of these variables exceeds specified limits, it notifies the administrator. Relevant technicians can then take appropriate action remotely. The monitored device can be cycled or restarted when necessary. This allows a single administrator to remotely control numerous servers and other devices simultaneously. This reduces overall network costs and ensures reliability.

[0116] In practical applications, if the server is in a shutdown state, the server fan may encounter a situation where it changes from zero speed to full load speed during the motherboard power-on process. Therefore, it is necessary to perform a stress test on the server fan from zero speed to full load speed.

[0117] The test system of this invention may have a corresponding remote control unit, which may include a first BMC and the test system may include a second BMC. In the following description, the second BMC may be referred to as the test machine BMC.

[0118] Before testing the server fan, this embodiment of the invention can obtain the baseboard management controller IP address test_ip: the IP address of the test machine BMC, the baseboard management controller username test_user: the username of the test machine BMC, and the baseboard management controller permission verification information test_password: the password of the test machine BMC, so that the remote control machine BMC can determine the test machine BMC (target baseboard management controller) corresponding to the server fan.

[0119] refer to Figure 3 , Figure 3 This is a flowchart illustrating a pressure test method for speeds from zero to full load provided in an embodiment of the present invention.

[0120] This invention allows the server to be in an Idle state, and after a 60-second interval, the following fan speed adjustment is performed: The first duty cycle for the server fan is determined to be 0%, and the full-load duty cycle for the server fan is determined to be 100%. The ipmitool is used to control the fan to rotate based on a 0% duty cycle (i.e., the fan blades are stationary). Then, the ipmitool stops sending duty cycle signals to the server fan, controlling the server fan to stop for 60 seconds, while continuously connecting an oscilloscope to acquire the first target current and first target voltage values. The ipmitool is then used to control the fan to rotate based on a 100% duty cycle, then the ipmitool stops sending duty cycle signals to the server fan, controlling the server fan to stop for 60 seconds, while continuously connecting an oscilloscope to acquire the second target current and second target voltage values. This constitutes one cycle, and the script automatically executes this cycle every 120 seconds, repeating the cycle within 90 minutes.

[0121] For example, adjusting server fan speed using the ipmitool tool can be achieved through the following script.

[0122] S1:

[0123] 1. Set fan control mode: Automatic: 0; Manual: 1

[0124] ipmitool raw 0x3c 0x2f <Automatic: 0x00 / Manual: 0x01>

[0125] 2. Obtain fan control mode: Automatic: 0; Manual: 1

[0126] ipmitool raw 0x3c 0x30

[0127] S2:

[0128] 1. Set duty:

[0129] ipmitool raw 0x3c 0x2d<fan_id><fan_pwmduty>

[0130] 2. Obtain information such as fan duty and speed:

[0131] ipmitool raw 0x3c 0x2e<fan_id>

[0132] Reference script:

[0133]

[0134]

[0135] In this embodiment of the invention, the following steps are taken: First, the IP address, username, and permission verification information of the baseboard management controller (BMD) are obtained. Then, the target BMD corresponding to the server fan is determined using these parameters. Next, a first duty cycle and a full-load duty cycle for the server fan are determined. Finally, the target BMD controls the server fan based on the first duty cycle, obtaining a first target current value and a first target voltage value for the server fan. After completing the steps of controlling the server fan based on the first duty cycle and obtaining the first target current value and the first target voltage value, the target BMD controls the server fan within a first preset time period. The server fan is shut down; the target substrate management controller controls the server fan based on the full-load duty cycle to obtain a second target current value and a second target voltage value for the server fan; after completing the step of controlling the server fan based on the full-load duty cycle to obtain the second target current value and the second target voltage value for the server fan, the target substrate management controller controls the server fan to shut down within a first preset time period; the step of controlling the server fan based on the first duty cycle to obtain the first target current value and the first target voltage value for the server fan is executed, realizing the testing of the server fan under pressure scenarios from zero speed to full load speed, improving the testing efficiency of the server fan, and further improving the safety of leakage protection of the server.

[0136] In an optional embodiment of the present invention, the server fan is a cooling fan for a server, the server includes a server motherboard, and the step of controlling the server fan to operate in a target scenario and obtaining the current and voltage values ​​for the server fan includes:

[0137] Obtain the IP address, username, and permission verification information of the baseboard management controller;

[0138] The target baseboard management controller corresponding to the server fan is determined using the baseboard management controller IP address, the baseboard management controller username, and the baseboard management controller permission verification information.

[0139] Determine the second duty cycle and the full-load duty cycle for the server fan;

[0140] The target substrate management controller controls the server fan based on the second duty cycle to obtain a third target current value and a third target voltage value for the server fan;

[0141] After completing the steps of using the target substrate management controller to control the server fan based on the second duty cycle and obtaining the third target current value and the third target voltage value for the server fan, the server fan is controlled to stop within a second preset time period using the target substrate management controller.

[0142] The target baseboard management controller controls the server fan based on the full-load duty cycle to obtain a fourth target current value and a fourth target voltage value for the server fan;

[0143] After completing the steps of using the target baseboard management controller to control the server fan based on the full load duty cycle and obtaining the fourth target current value and the fourth target voltage value for the server fan, the server fan is controlled to stop during the second preset time period using the target baseboard management controller.

[0144] The step of using the target substrate management controller to control the server fan based on the second duty cycle to obtain a third target current value and a third target voltage value for the server fan is performed.

[0145] In practical applications, if the server is running, the server fan may switch between half-load speed and full-load speed during the motherboard power-on process. Therefore, it is necessary to perform a stress test on the server fan from half-load speed to full-load speed.

[0146] Before testing the server fan, this embodiment of the invention can obtain the baseboard management controller IP address test_ip: the IP address of the test machine BMC, the baseboard management controller username test_user: the username of the test machine BMC, and the baseboard management controller permission verification information test_password: the password of the test machine BMC, so that the remote control machine BMC can determine the test machine BMC (target baseboard management controller) corresponding to the server fan.

[0147] refer to Figure 4 , Figure 4 This is a schematic flowchart of a pressure test method for half-load speed to full-load speed provided in an embodiment of the present invention.

[0148] This invention embodiment allows the server to be in an Idle state, and after a 30-second interval, the following fan speed adjustments are performed: A second duty cycle for the server fan is determined to be 50%, and a full-load duty cycle for the server fan is determined to be 100%. The ipmitool is used to control the fan to rotate at a 50% duty cycle, then the duty cycle signal to the server fan is stopped, and the server fan is shut down for 30 seconds while continuously connecting an oscilloscope to acquire the third target current and third target voltage values. The ipmitool is then used to control the fan to rotate at a 100% duty cycle, then the duty cycle signal to the server fan is stopped, and the server fan is shut down for 30 seconds while continuously connecting an oscilloscope to acquire the fourth target current and fourth target voltage values. This constitutes one cycle, and the script automatically executes this cycle every 60 seconds, repeating the cycle over a 60-minute period.

[0149] For example, adjusting server fan speed using the ipmitool tool can be achieved through the following script.

[0150]

[0151]

[0152] In this embodiment of the invention, the following steps are taken: First, the IP address, username, and permission verification information of the baseboard management controller (BMD) are obtained. Then, the BMD IP address, username, and permission verification information are used to determine the target BMD corresponding to the server fan. Next, a second duty cycle and a full-load duty cycle for the server fan are determined. Finally, the target BMD controls the server fan based on the second duty cycle, and a third target current value and a third target voltage value for the server fan are obtained. After completing the steps of controlling the server fan based on the second duty cycle and obtaining the third target current and voltage values, the target BMD controls the server fan for a second preset time period. The system is shut down; the target baseboard management controller controls the server fan based on the full-load duty cycle to obtain a fourth target current value and a fourth target voltage value for the server fan; after completing the step of controlling the server fan based on the full-load duty cycle to obtain the fourth target current value and the fourth target voltage value for the server fan, the target baseboard management controller controls the server fan to shut down within a second preset time period; the step of controlling the server fan based on the second duty cycle to obtain a third target current value and a third target voltage value for the server fan is executed, thereby realizing the testing of the server fan under pressure scenarios from half-load speed to full-load speed, improving the testing efficiency of the server fan, and further enhancing the safety of the server's leakage protection.

[0153] In an optional embodiment of the present invention, the server fan is a cooling fan for a server, the server includes a server motherboard, and the step of controlling the server fan to operate in a target scenario and obtaining the current and voltage values ​​for the server fan includes:

[0154] Obtain the IP address, username, and permission verification information of the baseboard management controller;

[0155] The target baseboard management controller corresponding to the server fan is determined using the baseboard management controller IP address, the baseboard management controller username, and the baseboard management controller permission verification information.

[0156] Determine the full-load duty cycle for the server fan;

[0157] The target baseboard management controller controls the server fan based on the full-load duty cycle to obtain a fifth target current value and a fifth target voltage value for the server fan;

[0158] After completing the steps of using the target baseboard management controller to control the server fan based on the full load duty cycle and obtaining the fifth target current value and the fifth target voltage value for the server fan, the server fan is controlled to stop within a third preset time period using the target baseboard management controller.

[0159] The step of using the target baseboard management controller to control the server fan based on the full load duty cycle to obtain the fifth target current value and the fifth target voltage value for the server fan is performed.

[0160] In practical applications, if the server is at full power, the server fan may encounter a situation where it runs at full load speed for a long time. Therefore, it is necessary to perform a full load speed stress test on the server fan.

[0161] Before testing the server fan, this embodiment of the invention can obtain the baseboard management controller IP address test_ip: the IP address of the test machine BMC, the baseboard management controller username test_user: the username of the test machine BMC, and the baseboard management controller permission verification information test_password: the password of the test machine BMC, so that the remote control machine BMC can determine the test machine BMC (target baseboard management controller) corresponding to the server fan.

[0162] refer to Figure 5 , Figure 5 This is a flowchart illustrating a method for testing pressure at full load speed provided in an embodiment of the present invention.

[0163] In this embodiment of the invention, the server can be in an Idle state. The maintenance tool ipmitool is used to control the fan to run continuously at 100% duty cycle for 30 seconds. Then, the duty cycle signal sent to the server fan is stopped, and the server fan is stopped for 30 seconds. The fifth target current value and the fifth target voltage value are continuously obtained by connecting to an oscilloscope. This is a loop. The script information automatically executes the loop once every 30 seconds, and the loop is repeated within 30 minutes.

[0164] For example, adjusting server fan speed using the ipmitool tool can be achieved through the following script.

[0165]

[0166] This invention, through obtaining the IP address, username, and permission verification information of a baseboard management controller (BMDC), determines the target BMDC corresponding to the server fan using these information; determines the full-load duty cycle for the server fan; controls the server fan based on the full-load duty cycle using the target BMDC, and obtains a fifth target current value and a fifth target voltage value for the server fan; after completing the steps of controlling the server fan based on the full-load duty cycle using the target BMDC and obtaining the fifth target current value and the fifth target voltage value for the server fan, the target BMDC controls the server fan to shut down within a third preset time period; and executes the steps of controlling the server fan based on the full-load duty cycle using the target BMDC and obtaining the fifth target current value and the fifth target voltage value for the server fan. This achieves testing of the server fan under full-load speed and pressure scenarios, improves the testing efficiency of the server fan, and further enhances the safety of leakage protection for the server.

[0167] Optionally, after obtaining the current and voltage values, a line graph can be generated to represent the current and voltage values, so that maintenance personnel can more intuitively see the changes in the current and voltage values ​​of the server fan under different test scenarios.

[0168] To enable those skilled in the art to better understand the embodiments of the present invention, a complete example is used below to illustrate the embodiments of the present invention.

[0169] During the server testing phase, multiple fans from different manufacturers are selected from the project list for testing. In the actual implementation, multiple fans with significant differences in power consumption can be selected.

[0170] The server's BMC has been developed to support fan speed control.

[0171] When the server is in Idle state, it can be powered on normally, the fan speed is stable, the heat dissipation function is well supported, and the test conditions are met.

[0172] The test scenarios are divided into the following four types:

[0173] Scenario A: Fan resistance to negative pressure test;

[0174] Scenario B: Adjust the fan speed duty cycle from 0% to 100%;

[0175] Scenario C: Fan speed duty cycle adjusted from 50% to 100%;

[0176] Scenario D: The fan duty cycle remains consistently at 100%;

[0177] The current and power consumption of the fan are different in the four test scenarios above, and the test methods are also different. The specific tests can be conducted in the following ways.

[0178] For scenario A: The server motherboard, fan board, etc. are installed on the designated mounting bracket. A blower is used to aim at the server fans, causing the fans to rotate in the opposite direction. After all the fans have reached a certain reverse speed, the server is powered on. After waiting for 240 seconds, the server is powered off. This completes one cycle. After 240 seconds, the blower is used again, and after the fans have reached a certain reverse speed, the server is powered on again. This cycle is repeated.

[0179] For scenario B: The remote control machine can connect to the test machine's BMC normally through the BMC, put the server in Idle state, and after 60 seconds, perform the following fan speed adjustment. Use the ipmitool tool to adjust the fan speed duty cycle from 0% (i.e., the fan blades are stationary) to 100%, which is one cycle. The script will automatically execute the cycle once every 120 seconds.

[0180] For scenario C: The remote control machine can connect to the test machine's BMC normally through the BMC, put the server in Idle state, and perform the following fan speed adjustment after 30 seconds. Use the ipmitool tool to adjust the fan speed duty cycle from 50% to 100%, which is one cycle. The script will automatically execute the cycle once every 60 seconds.

[0181] For scenario D: The remote control machine can connect to the test machine's BMC normally through the BMC, put the server in Idle state, and perform the following fan speed adjustment. Use the ipmitool tool to adjust the fan speed duty cycle to 100%. The script will run continuously for 30 seconds as one loop.

[0182] In the above four scenarios, continuously use an oscilloscope to capture the backplane current and voltage values;

[0183] Using the model [scenario mode, execution time], the following execution pool is generated:

[0184] [Scene A, 240s], [Scene B, 120s], [Scene C, 60s], [Scene D, 30s]

[0185] Operational logic: Randomly select a mode from the above execution pool, test it according to the scenario and time. After the selected mode is completed, randomly select another mode from the execution pool and repeat the above operation steps for 12 hours.

[0186] The current and voltage of the fan rotor vary under different conditions; the interval duration and pressure test duration are also different.

[0187] During testing, the power consumption of the prototype and the current and voltage of the oscilloscope are captured. The oscilloscope current and voltage values ​​are analyzed to see if they are close to or exceed the design threshold or extreme value of the fan board efuse. If they are close to or exceed the threshold, the efuse design is unreasonable and the current threshold needs to be redesigned by adding high-specification capacitors or resistors.

[0188] By testing server fans in the above manner, we fill the current gap in the design of test schemes for efuse threshold of fan boards, and add a test method that is relatively unique in the server field; we also add a variety of ways to test server compatibility and application capabilities.

[0189] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.

[0190] Reference Figure 6 The diagram illustrates a structural block diagram of a test device for an integrated power protection switch for a server fan, provided in an embodiment of the present invention. Specifically, it may include the following modules:

[0191] The test scenario generation module 601 is used to generate multiple test scenarios and determine a target scenario from the multiple test scenarios; the test scenario includes at least: a negative pressure rotation pressure test scenario for simulating the operation of the server fan in a negative pressure environment, and a target duty cycle rotation pressure test scenario for simulating the operation of the server fan at different speed duty cycles.

[0192] The current and voltage value acquisition module 602 is used to control the server fan to operate in the target scenario and acquire the current and voltage values ​​for the server fan.

[0193] An integrated power protection switch test module 603 is used to generate test results for the integrated power protection switch using the current value and the voltage value.

[0194] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.

[0195] In addition, this invention also provides an electronic device, including: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the various processes of the above-described test method embodiment for the integrated power protection switch of the server fan and achieves the same technical effect. To avoid repetition, it will not be described again here.

[0196] This invention also provides a computer-readable storage medium storing a computer program. When executed by a processor, the computer program implements the various processes described in the above-described test method embodiment for the integrated power protection switch of a server fan, achieving the same technical effect. To avoid repetition, it will not be described again here. The computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.

[0197] Figure 7 A schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present invention.

[0198] The electronic device 700 includes, but is not limited to, components such as: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, and a power supply 711. Those skilled in the art will understand that... Figure 7 The electronic device structures shown are not intended to limit the electronic device. An electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements. In embodiments of the present invention, the electronic device includes, but is not limited to, mobile phones, tablet computers, laptops, PDAs, in-vehicle terminals, wearable devices, and pedometers.

[0199] It should be understood that, in this embodiment of the invention, the radio frequency unit 701 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink data from the base station and processes it with the processor 710; additionally, it transmits uplink data to the base station. Typically, the radio frequency unit 701 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, etc. Furthermore, the radio frequency unit 701 can also communicate with networks and other devices through a wireless communication system.

[0200] Electronic devices provide users with wireless broadband internet access through network module 702, such as helping users send and receive emails, browse web pages, and access streaming media.

[0201] The audio output unit 703 can convert audio data received by the radio frequency unit 701 or the network module 702 or stored in the memory 709 into audio signals and output them as sound. Furthermore, the audio output unit 703 can also provide audio output related to specific functions performed by the electronic device 700 (e.g., call signal reception sound, message reception sound, etc.). The audio output unit 703 includes a speaker, a buzzer, and a receiver, etc.

[0202] Input unit 704 is used to receive audio or video signals. Input unit 704 may include a graphics processing unit (GPU) 7041 and a microphone 7042. The GPU 7041 processes image data of still images or videos acquired by an image capture device (such as a camera) in video capture mode or image capture mode. The processed image frames can be displayed on display unit 706. The image frames processed by GPU 7041 can be stored in memory 709 (or other storage medium) or transmitted via radio frequency unit 701 or network module 702. Microphone 7042 can receive sound and process such sound into audio data. The processed audio data can be converted into a format that can be transmitted to a mobile communication base station via radio frequency unit 701 in telephone call mode.

[0203] The electronic device 700 also includes at least one sensor 705, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 7061 according to the ambient light level, and the proximity sensor can turn off the display panel 7061 and / or backlight when the electronic device 700 is moved to the ear. As a type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity and can be used to identify the posture of the electronic device (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc. The sensor 705 may also include a fingerprint sensor, pressure sensor, iris sensor, molecular sensor, gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc., which will not be described in detail here.

[0204] The display unit 706 is used to display information input by the user or information provided to the user. The display unit 706 may include a display panel 7061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0205] User input unit 707 can be used to receive input numerical or character information, and to generate key signal inputs related to user settings and function control of electronic devices. Specifically, user input unit 707 includes a touch panel 7071 and other input devices 7072. Touch panel 7071, also known as a touch screen, can collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near touch panel 7071). Touch panel 7071 may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends it to the processor 710, which receives and executes commands from the processor 710. In addition, touch panel 7071 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. Besides touch panel 7071, user input unit 707 may also include other input devices 7072. Specifically, other input devices 7072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, joysticks, etc., which will not be described in detail here.

[0206] Furthermore, the touch panel 7071 can cover the display panel 7061. When the touch panel 7071 detects a touch operation on or near it, it transmits the information to the processor 710 to determine the type of touch event. Subsequently, the processor 710 provides corresponding visual output on the display panel 7061 based on the type of touch event. Although in Figure 7 In this embodiment, the touch panel 7071 and the display panel 7061 are two independent components to realize the input and output functions of the electronic device. However, in some embodiments, the touch panel 7071 and the display panel 7061 can be integrated to realize the input and output functions of the electronic device. The specific implementation is not limited here.

[0207] Interface unit 708 serves as an interface for connecting external devices to electronic device 700. For example, external devices may include a wired or wireless headphone port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, and so on. Interface unit 708 can be used to receive input from external devices (e.g., data, power, etc.) and transmit the received input to one or more components within electronic device 700, or it can be used to transmit data between electronic device 700 and external devices.

[0208] The memory 709 can be used to store software programs and various data. The memory 709 may primarily include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function (such as sound playback, image playback, etc.), etc.; the data storage area may store data created based on the use of the mobile phone (such as audio data, phonebook, etc.). Furthermore, the memory 709 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0209] The processor 710 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 709, and by calling data stored in the memory 709, it performs various functions and processes data, thereby providing overall monitoring of the electronic device. The processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor and a modem processor. The application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 710.

[0210] The electronic device 700 may also include a power supply 711 (such as a battery) for supplying power to various components. Preferably, the power supply 711 is logically connected to the processor 710 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system.

[0211] In addition, the electronic device 700 includes some functional modules not shown, which will not be described in detail here.

[0212] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0213] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0214] like Figure 8 As shown, in another embodiment of the present invention, a computer-readable storage medium 801 is also provided, which stores instructions that, when executed on a computer, cause the computer to perform the test method for the integrated power protection switch of the server fan described in the above embodiment.

[0215] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of the present invention.

[0216] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed in this invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0217] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0218] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and 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 through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0219] 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.

[0220] 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.

[0221] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion 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 described in 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, ROM, RAM, magnetic disks, or optical disks.

[0222] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A test method for an integrated power protection switch for a server fan, characterized in that, include: Multiple test scenarios are generated, and a target scenario is determined from the multiple test scenarios; The test scenarios include at least: a negative pressure rotation pressure test scenario for simulating the server fan operating in a negative pressure environment, and a target duty cycle rotation pressure test scenario for simulating the server fan operating at different speed duty cycles. Control the server fan to operate in the target scenario, and obtain the current and voltage values ​​for the server fan; The current value and the voltage value are compared with the threshold or extreme value of the integrated power protection switch to generate test results for the integrated power protection switch. The steps of generating multiple test scenarios and determining the target scenario from the multiple test scenarios include: Generate multiple scripts to represent the test scenario; Store the script information in the execution pool; Randomly select the target scenario from the execution pool; The server fan is a cooling fan designed for a server. The server includes a server motherboard. The server fan is equipped with a corresponding external steering control device. The steps of controlling the server fan to operate under the target scenario and obtaining the current and voltage values ​​for the server fan include: The server fan is driven to rotate under negative pressure using the external steering control device. When the server fan speed reaches a preset threshold, the server motherboard is powered on. With the server motherboard powered on, acquire the current and voltage values ​​for the server fan; Power off the server motherboard and execute the step of using the external steering control device to drive the server fan to rotate in negative pressure direction.

2. The method according to claim 1, characterized in that, The server fan is a cooling fan designed for a server, the server includes a server motherboard, and the steps of controlling the server fan to operate under the target scenario and obtaining the current and voltage values ​​for the server fan include: Obtain the IP address, username, and permission verification information of the baseboard management controller; The target baseboard management controller corresponding to the server fan is determined using the baseboard management controller IP address, the baseboard management controller username, and the baseboard management controller permission verification information. Determine the first duty cycle and the full load duty cycle for the server fan; The target substrate management controller controls the server fan based on the first duty cycle to obtain a first target current value and a first target voltage value for the server fan. After completing the steps of using the target substrate management controller to control the server fan based on the first duty cycle and obtaining the first target current value and the first target voltage value for the server fan, the server fan is stopped by using the target substrate management controller within a first preset time period. The target substrate management controller controls the server fan based on the full-load duty cycle to obtain a second target current value and a second target voltage value for the server fan. After completing the steps of using the target baseboard management controller to control the server fan based on the full load duty cycle and obtaining the second target current value and the second target voltage value for the server fan, the server fan is stopped by using the target baseboard management controller within a first preset time period. The step of using the target substrate management controller to control the server fan based on the first duty cycle to obtain the first target current value and the first target voltage value for the server fan is performed.

3. The method according to claim 1, characterized in that, The server fan is a cooling fan designed for a server, the server includes a server motherboard, and the steps of controlling the server fan to operate under the target scenario and obtaining the current and voltage values ​​for the server fan include: Obtain the IP address, username, and permission verification information of the baseboard management controller; The target baseboard management controller corresponding to the server fan is determined using the baseboard management controller IP address, the baseboard management controller username, and the baseboard management controller permission verification information. Determine the second duty cycle and the full-load duty cycle for the server fan; The target substrate management controller controls the server fan based on the second duty cycle to obtain a third target current value and a third target voltage value for the server fan; After completing the steps of using the target substrate management controller to control the server fan based on the second duty cycle and obtaining the third target current value and the third target voltage value for the server fan, the server fan is controlled to stop within a second preset time period using the target substrate management controller. The target baseboard management controller controls the server fan based on the full-load duty cycle to obtain a fourth target current value and a fourth target voltage value for the server fan; After completing the steps of using the target baseboard management controller to control the server fan based on the full load duty cycle and obtaining the fourth target current value and the fourth target voltage value for the server fan, the server fan is controlled to stop during the second preset time period using the target baseboard management controller. The step of using the target substrate management controller to control the server fan based on the second duty cycle to obtain a third target current value and a third target voltage value for the server fan is performed.

4. The method according to claim 1, characterized in that, The server fan is a cooling fan designed for a server, the server includes a server motherboard, and the steps of controlling the server fan to operate under the target scenario and obtaining the current and voltage values ​​for the server fan include: Obtain the IP address, username, and permission verification information of the baseboard management controller; The target baseboard management controller corresponding to the server fan is determined using the baseboard management controller IP address, the baseboard management controller username, and the baseboard management controller permission verification information. Determine the full-load duty cycle for the server fan; The target baseboard management controller controls the server fan based on the full-load duty cycle to obtain a fifth target current value and a fifth target voltage value for the server fan; After completing the steps of using the target baseboard management controller to control the server fan based on the full load duty cycle and obtaining the fifth target current value and the fifth target voltage value for the server fan, the server fan is controlled to stop within a third preset time period using the target baseboard management controller. The step of using the target baseboard management controller to control the server fan based on the full load duty cycle to obtain the fifth target current value and the fifth target voltage value for the server fan is performed.

5. The method according to claim 1, characterized in that, Also includes: Generate a line graph to represent the current and voltage values.

6. A testing device for an integrated power protection switch for a server fan, characterized in that, include: The test scenario generation module is used to generate multiple test scenarios and determine the target scenario from the multiple test scenarios; The test scenarios include at least: a negative pressure rotation pressure test scenario for simulating the server fan operating in a negative pressure environment, and a target duty cycle rotation pressure test scenario for simulating the server fan operating at different speed duty cycles. The current and voltage value acquisition module is used to control the server fan to operate in the target scenario and acquire the current and voltage values ​​for the server fan. The current value and the voltage value are compared with the threshold or extreme value of the integrated power protection switch to generate test results for the integrated power protection switch. The test scenario generation module is also used to generate multiple scripts to express the test scenario; Store the script information in the execution pool; Randomly select the target scenario from the execution pool; The server fan is a cooling fan for a server. The server includes a server motherboard. The server fan is equipped with a corresponding external steering control device. The current and voltage value acquisition module is also used to drive the server fan to rotate in a negative pressure direction using the external steering control device. When the server fan speed reaches a preset threshold, the server motherboard is powered on. With the server motherboard powered on, acquire the current and voltage values ​​for the server fan; Power off the server motherboard and then use the external steering control device to drive the server fan to rotate under negative pressure.

7. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; The memory is used to store computer programs; When the processor executes a program stored in the memory, it implements the method as described in any one of claims 1-5.

8. A computer-readable storage medium having instructions stored thereon that, when executed by one or more processors, cause the processors to perform the method as described in any one of claims 1-5.