Power supply simulation method, device, storage medium and power supply

By receiving and matching the electrical characteristic files of the power supply, the compatibility of the power supply to be verified is determined, which solves the problem of long verification time after the power supply is discontinued, realizes fast and effective power supply replacement, and ensures the normal operation of the server.

CN119961626BActive Publication Date: 2026-01-27INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510052572.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-13
Publication Date
2026-01-27
Estimated Expiration
2045-01-13

AI Technical Summary

Technical Problem

In the server technology field, after a power supply is discontinued, it takes a lot of time to verify a new power supply, resulting in low production efficiency.

Method used

By receiving the electrical characteristic file of the original power supply, the electrical index values ​​of the power supply to be verified are obtained to determine whether it is a replacement power supply. The functional characteristics of the original power supply are simulated using the electrical characteristic file, including matching the maximum power value and power supply duration, to ensure the compatibility of the power supply replacement.

Benefits of technology

It shortens the power supply verification time, improves verification efficiency, ensures the normal operation of the server, and avoids the risk of equipment damage or failure due to incompatible power supplies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119961626B_ABST
    Figure CN119961626B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of servers and discloses a power supply simulation method and device, a storage medium and a power supply, which comprise the following steps: receiving a first electrical characteristic file of an original power supply sent by a target central processing unit, wherein the first electrical characteristic file comprises first function indication information and electrical index values of the original power supply; obtaining electrical index values of a to-be-verified power supply; determining whether the to-be-verified power supply is a replacement power supply corresponding to the original power supply according to the electrical index values of the original power supply and the electrical index values of the to-be-verified power supply; when it is determined that the to-be-verified power supply is the replacement power supply, covering a second electrical characteristic file pre-stored in a target controller by using the first electrical characteristic file; setting the connection state of at least one link in an output function adapter according to the first function indication information, so as to simulate the function characteristics of the original power supply; and simulating the electrical characteristics of the original power supply in the to-be-verified power supply according to each electrical index value of the original power supply. The application can shorten the verification time length of the power supply.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of server technology, and more specifically to power simulation methods, devices, storage media, and power supplies. Background Technology

[0002] In the server technology field, power supply vendors develop different power supply models based on server configurations. When a particular power supply model is discontinued, server manufacturers need to contact a new power supply vendor to produce the corresponding model for their servers. However, after producing the new power supply, the vendor needs to conduct extensive verification to ensure its proper functioning, which takes a considerable amount of time. Summary of the Invention

[0003] In view of this, the present invention provides a power supply simulation method, apparatus, controller, storage medium, program product, and power supply to solve the problem of long power supply verification time.

[0004] In a first aspect, the present invention provides a power supply simulation method, which is applied to a power supply to be verified, the power supply to be verified including a target controller and an output function adapter, the method being executed by the target controller, and the method comprising:

[0005] Receive the first electrical characteristic file of the original power supply sent by the target central processing unit, wherein the first electrical characteristic file includes the first function indication information and various electrical index values ​​of the original power supply;

[0006] Obtain various electrical parameter values ​​of the power supply to be verified;

[0007] Based on the various electrical performance values ​​of the original power supply and the power supply to be verified, determine whether the power supply to be verified is a replacement power supply corresponding to the original power supply.

[0008] When it is determined that the power supply to be verified is a replacement power supply, the second electrical characteristic file pre-stored in the target controller is overwritten using the first electrical characteristic file;

[0009] Based on the first function instruction information, the connection status of at least one link in the output function adapter is set to simulate the functional characteristics of the original power supply.

[0010] Based on each electrical parameter value of the original power supply, the electrical characteristics of the original power supply are simulated in the power supply to be verified.

[0011] The method provided by this invention has the following advantages:

[0012] The first electrical characteristic file includes the original power supply's first functional indication information and electrical index values. After accessing the original power supply's first electrical characteristic file and obtaining the electrical characteristic values ​​of the power supply to be verified, the target controller can determine whether the power supply to be verified can replace the original power supply based on the original power supply's electrical index values ​​and the electrical index values ​​of the power supply to be replaced. If so, the target controller overwrites the pre-stored second electrical characteristic file using the first electrical characteristic file. After the power supply to be verified is connected to the server adapted to the original power supply, it can simulate the original power supply's functional characteristics based on the first functional indication information in the first electrical characteristic file, and simulate the original power supply's electrical characteristics based on the electrical index values ​​in the first electrical characteristic file. In this way, by using power supplies that have already passed safety verification in the market, and finding a replacement power supply for the original power supply through simple electrical characteristic value analysis, the replacement power supply can simulate the original power supply based on the original power supply's functional indication information and electrical index values. This eliminates the need to develop new power supplies for complex and lengthy safety verification operations, shortening verification time, improving verification efficiency, and ensuring the normal operation of the server.

[0013] In one optional implementation, the electrical characteristic index values ​​of both the original power supply and the power supply to be verified include at least the maximum power value of the power supply and the duration of power supply maintained when the power cord is unplugged.

[0014] Based on the various electrical performance values ​​of the original power supply and the power supply to be verified, determine whether the power supply to be verified is a replacement power supply corresponding to the original power supply, including:

[0015] Determine whether the maximum power value of the power supply to be verified is greater than or equal to the maximum power value of the original power supply;

[0016] When it is determined that the maximum power value of the power supply to be verified is greater than or equal to the maximum power value of the original power supply, determine whether the power supply duration of the power supply to be verified is greater than or equal to the power supply duration of the original power supply.

[0017] When the power supply duration of the power supply to be verified is greater than or equal to the power supply duration of the original power supply, the power supply to be verified is determined to be the replacement power supply.

[0018] Specifically, since maximum power output and power supply duration are crucial for servers, ensuring that the maximum power output of the power supply to be verified is not lower than that of the original power supply and can maintain at least the same or longer power supply time (when the power cord is unplugged) effectively guarantees the normal operation of the new power supply and can also cope with temporary power supply needs in the event of a sudden power outage. Furthermore, proceeding to the next step of the judgment process only after determining that the maximum power output of the power supply to be verified is greater than or equal to that of the original power supply can conserve resources.

[0019] In one alternative implementation, the method further includes:

[0020] When it is determined that the maximum power value of the power supply to be verified is less than the maximum power value of the original power supply, or when it is determined that the power supply duration of the power supply to be verified is less than the power supply duration of the original power supply, it is determined that the power supply to be verified is not a replacement power supply.

[0021] Specifically, by excluding power supplies that fail to meet key performance requirements, the risk of equipment damage or malfunction due to the use of incompatible power supplies can be avoided.

[0022] In one optional implementation, obtaining the power supply duration of the power source to be verified specifically includes:

[0023] When a verification command is received, monitor the current input signal;

[0024] When the current input signal is detected to meet the first condition, the timing is started and the power supply indication signal is monitored, wherein the first condition is used to indicate that the power cord has been unplugged.

[0025] When the power supply indication signal is detected to meet the second condition, the timing is stopped to obtain the power supply duration of the power supply to be verified. The second condition is used to indicate that the power supply should stop supplying power.

[0026] Specifically, by monitoring changes in the power supply status in real time and starting and stopping the timing according to actual conditions, it can be ensured that the measurement results reflect the power supply's performance under actual usage conditions, rather than being based on theoretical values ​​or estimates under laboratory conditions, thus ensuring greater accuracy. In this way, by realistically simulating the situation where the power cord is unplugged, the emergency power supply capability of the power supply in the event of an unexpected power outage can be more accurately assessed, so as to accurately determine whether the power supply under test can be used as a replacement power supply.

[0027] In one alternative implementation, the method further includes:

[0028] When it is determined that the power supply to be verified is not a replacement power supply, an alarm notification is sent to the target central processing unit to indicate that the power supply to be verified cannot be used as a replacement power supply corresponding to the original power supply.

[0029] Specifically, by issuing timely alarms, users can be promptly informed that the power supply to be verified cannot be used as a replacement power supply, thus avoiding the risk of equipment damage, performance degradation, or safety issues caused by installing incompatible power supplies.

[0030] In one optional implementation, the first function indication information includes link indication information corresponding to at least one function provided by the original power supply.

[0031] Based on the first function instruction information, the connection status of at least one link in the output function adapter is set, including:

[0032] Based on the target link indication information corresponding to the target function, the target link in the output function adapter corresponding to the target function is connected to complete the setting of the connection status of the target link, wherein the target function is any one of at least one function.

[0033] Specifically, by configuring the links according to the functional indication information provided by the original power supply, it can be ensured that the output function of the power supply to be verified is consistent with that of the original power supply. Furthermore, different links can be flexibly configured to support various functional requirements.

[0034] In one optional implementation, the link indication information includes at least pin identification information;

[0035] Based on the target link indication information corresponding to the target function, the target link in the output function adapter corresponding to the target function is connected, including:

[0036] Determine whether the target link indication information includes topology circuit identification information;

[0037] When it is determined that the target link indication information includes the identification information of the topology circuit, the target link is connected according to the identification information and pin identification information of the topology circuit included in the target link indication information.

[0038] or,

[0039] When it is determined that the target link indication information does not include the identification information of the topology circuit, the target link is connected according to the pin identification information included in the target link indication information.

[0040] Specifically, by including pin identification information in the link indication information, it is ensured that the link configuration for each function is accurate to the specific physical connection point. This improves the accuracy and reliability of the configuration and reduces the risk of incorrect connections. Furthermore, this solution not only considers simple pin-to-pin connections but also allows configuration based on more complex topologies. This flexibility enables the system to adapt to various power supply architectures.

[0041] In one optional implementation, the original power supply provides one or more of the following functions: power supply indication function, alarm function, and communication function. When the target function is power supply indication function, the target link indication information does not include the identification information of the topology circuit corresponding to the target function. Alternatively, when the target function is alarm function or communication function, the target link indication information includes the identification information of the topology circuit corresponding to the target function.

[0042] Specifically, different configuration logic is used for different functions (power indication, alarm, and communication). For the simple power indication function, only pin identification information is needed for configuration, while for more complex alarm and communication functions, additional topology identification information is required. This specific configuration ensures that each function receives the most appropriate hardware support.

[0043] In a second aspect, the present invention provides a power supply simulation device, which is configured on a power supply to be verified, the power supply to be verified including a target controller and an output function adapter, the device comprising:

[0044] The receiving module is used to receive the first electrical characteristic file of the original power supply sent by the target central processing unit. The first electrical characteristic file includes the first function indication information and various electrical index values ​​of the original power supply.

[0045] The acquisition module is used to acquire various electrical parameter values ​​of the power supply to be verified;

[0046] The determination module is used to determine whether the power supply to be verified is a replacement power supply corresponding to the original power supply based on the various electrical index values ​​of the original power supply and the various electrical index values ​​of the power supply to be verified.

[0047] The overlay module is used to overwrite the second electrical characteristic file pre-stored in the target controller with the first electrical characteristic file when it is determined that the power supply to be verified is a replacement power supply.

[0048] The simulation module is used to set the connection status of at least one link in the output function adapter according to the first function indication information, so as to simulate the functional characteristics of the original power supply; and to simulate the electrical characteristics of the original power supply in the power supply to be verified according to each electrical index value of the original power supply.

[0049] Thirdly, the present invention provides a controller comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to perform the power simulation method of the first aspect or any corresponding embodiment thereof.

[0050] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions for causing a controller to perform the power supply method of the first aspect or any corresponding embodiment thereof.

[0051] Fifthly, the present invention provides a computer program product, including computer instructions for causing a controller to execute the power simulation method of the first aspect or any corresponding embodiment thereof.

[0052] In a sixth aspect, the present invention provides a power supply, including a controller and an output function adapter, wherein the controller is electrically connected to the output function adapter; the controller is used to perform the power supply simulation method of the first aspect above or any corresponding embodiment thereof. Attached Figure Description

[0053] To more clearly illustrate the technical solutions in the specific embodiments or related technologies of the present invention, the drawings used in the description of the specific embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0054] Figure 1 This is a schematic flowchart of a power supply simulation method according to an embodiment of the present invention;

[0055] Figure 2 This is a schematic diagram of the server cluster architecture according to an embodiment of the present invention;

[0056] Figure 3 This is a schematic diagram of the power supply structure according to an embodiment of the present invention;

[0057] Figure 4 This is a schematic diagram of the structure of another power supply according to an embodiment of the present invention;

[0058] Figure 5 This is a schematic diagram of the structure of another power supply according to an embodiment of the present invention;

[0059] Figure 6 This is a schematic diagram of the structure of another power supply according to an embodiment of the present invention;

[0060] Figure 7 This is a structural block diagram of a power supply simulation device according to an embodiment of the present invention. Detailed Implementation

[0061] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0062] In the server technology field, power supply suppliers typically develop different power supply models based on the needs of servers. When a particular power supply model is discontinued, server manufacturers will seek alternative power supplies for servers using that model.

[0063] This invention provides a power supply simulation method. By overwriting the first electrical characteristic file of the original power supply into the controller of the power supply to be verified, the power supply to be verified can simulate the functional and electrical characteristics of the original power supply based on the information in the first electrical characteristic file, without the need to develop a new power supply for verification.

[0064] According to an embodiment of the present invention, a power supply simulation method embodiment is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0065] This embodiment provides a power supply simulation method that can be applied to a power supply to be verified, which includes a target controller and an output function adapter. Figure 1 This is a flowchart of a power supply simulation method according to an embodiment of the present invention, such as... Figure 1 As shown, the process includes the following steps:

[0066] Step S101: Receive the first electrical characteristic file of the original power supply sent by the target central processing unit.

[0067] The target central processing unit (CPU) can be the CPU of the first server to which the power supply to be verified belongs. The first electrical characteristic file includes the original power supply's first functional indication information and various electrical indicator values. These electrical indicator values ​​can be maximum power values, the duration the power supply maintains power when the power cord is unplugged, etc. The first functional indication information can be pre-stored in the original power supply's controller during production, and the CPU of the second server to which the original power supply belongs can read this information from the controller. The original power supply's electrical characteristic values ​​can be pre-stored in the controller during production, or obtained through an operation similar to step S102 and transmitted to the CPU of the second server. The CPU of the second server can generate a first electrical characteristic file based on the read first functional indication information and various electrical characteristic values, storing it in non-volatile memory, uploading it to an online data storage platform, or storing it on the second server.

[0068] Specifically, due to the different storage locations of the first electrical characteristic files, the methods by which the target central processing unit obtains the first electrical characteristic files differ:

[0069] First, when the first electrical characteristic file is stored in removable non-volatile memory, such as a USB flash drive, the target central processing unit can migrate the first electrical characteristic file stored in the non-volatile memory to the target controller of the power supply to be verified when the non-volatile memory is inserted into the first server.

[0070] Second, when the first electrical characteristic file is stored on an online data storage platform, during the verification operation, the target central processing unit can download the first electrical characteristic file corresponding to the original power supply from the data storage platform and send it to the target controller of the power supply to be verified.

[0071] Third, when the first electrical characteristic file is stored on the second server to which the original power supply belongs, the target central processing unit can communicate with the second server to obtain the first electrical characteristic file and send it to the target controller of the power supply to be verified during the verification operation.

[0072] In this way, the target controller can receive the first electrical characteristic file sent by the target central processing unit.

[0073] Step S102: Obtain various electrical parameter values ​​of the power supply to be verified.

[0074] Specifically, the target controller can read the maximum power value and power supply duration corresponding to the power supply to be verified from its own firmware. The power supply duration can also be obtained through the following methods, which may include the following steps:

[0075] Step 1: When a verification command is received, monitor the current input signal.

[0076] Step two: When the current input signal is detected to meet the first condition, start timing and monitor the power supply indication signal.

[0077] The first condition is used to indicate that the power cord has been unplugged, which can specifically mean that the AC signal has disappeared.

[0078] Step 3: When the power supply indication signal is detected to meet the second condition, stop timing and obtain the power supply duration of the power supply to be verified.

[0079] The second condition is used to instruct the power supply to stop supplying power; specifically, the power supply indication signal can be in a low logic level. The verification instruction can be generated when the controller determines that the maximum power value of the power supply to be verified is greater than or equal to the maximum power value of the original power supply, or it can be an instruction issued by the target central processing unit.

[0080] Specifically, the verification process of the power supply to be verified can be controlled by the user through the target central processing unit (CPU). Since the power cord needs to be unplugged when the power supply is being supplied, the user can output a command on the terminal device that has established a communication connection with the target CPU before unplugging the power cord. In this way, the target CPU can obtain the verification command and send it to the controller.

[0081] Alternatively, when the controller determines that the maximum power value of the power supply to be verified is greater than or equal to the maximum power value of the original power supply, it can generate a verification command and send an instruction to the target central processing unit. The target central processing unit forwards the instruction to the terminal device, and the terminal device can display the instruction to inform the user to unplug the power cord.

[0082] After the power cord is unplugged, the state of the AC signal input to the power supply to be verified changes. The power supply has no input voltage (e.g., 220V) and can only maintain an output voltage (e.g., 12V) for a short time (i.e., power supply duration) to allow the first server to operate normally. The first server can store important information during this time to avoid data loss due to power outages. Since different servers require different amounts of time, it is necessary to determine whether the power supply duration of the power supply to be verified meets the needs of the second server. Specifically, the target controller can immediately start a timing operation after detecting the disappearance of the AC signal and monitor the state of the power supply indicator signal. When the power supply indicator signal changes to a low logic level, it indicates that the power supply has stopped supplying power to the first server. At this point, the timing can be stopped, and the timing duration is obtained. This timing duration is the corresponding power supply duration of the power supply to be verified.

[0083] Step S103: Based on the various electrical index values ​​of the original power supply and the various electrical index values ​​of the power supply to be verified, determine whether the power supply to be verified is a replacement power supply corresponding to the original power supply.

[0084] Specifically, the target controller can pre-store the verification sequence corresponding to various electrical indicators. During the verification operation, it can determine whether the power supply to be verified can be used as a replacement power supply for the original power supply based on the verification sequence corresponding to each electrical indicator, the electrical indicator value of the power supply to be verified, and the electrical indicator value of the original power supply. For example, step S103 may include:

[0085] Step 1: Determine whether the maximum power value of the power supply to be verified is greater than or equal to the maximum power value of the original power supply.

[0086] Step 2: When it is determined that the maximum power value of the power supply to be verified is greater than or equal to the maximum power value of the original power supply, determine whether the power supply duration of the power supply to be verified is greater than or equal to the power supply duration of the original power supply.

[0087] Step 3: When it is determined that the power supply duration of the power supply to be verified is greater than or equal to the power supply duration of the original power supply, the power supply to be verified is determined to be the replacement power supply.

[0088] In some alternative implementations, when it is determined that the maximum power value of the power supply to be verified is greater than or equal to the maximum power value of the original power supply, the target controller can perform the above-mentioned operation of obtaining the power supply duration. In this way, when it is determined that the maximum power value of the power supply to be verified is less than the maximum power value of the original power supply, the operation of obtaining the power supply duration can be omitted, thus saving resources.

[0089] In some alternative implementations, the power supply to be verified is determined not to be a replacement power supply when it is determined that the maximum power value of the power supply to be verified is less than the maximum power value of the original power supply, or when it is determined that the power supply duration of the power supply to be verified is less than the power supply duration of the original power supply.

[0090] In some alternative implementations, when it is determined that the power supply to be verified is not a replacement power supply, an alarm notification is sent to the central processing unit to indicate that the power supply to be verified cannot be used as a replacement power supply corresponding to the original power supply.

[0091] Step S104: When it is determined that the power supply to be verified is a replacement power supply, the second electrical characteristic file pre-stored in the target controller is overwritten using the first electrical characteristic file.

[0092] Specifically, when it is determined that the power supply to be verified is a replacement power supply, the target controller can delete the first electrical characteristic file pre-stored in the target controller and store the second electrical characteristic file in itself. After completing the storage operation, the target controller can send a verification completion notification to the target central processing unit (CPU). The CPU then transmits the verification completion notification to the terminal device, which displays the notification upon receiving it. The user then knows that the verification operation is complete. At this point, the user can disconnect the power supply to be verified from the first server, completely discharge it, and then connect it to the second server.

[0093] Step S105: Based on the first function indication information, set the connection status of at least one link in the output function adapter to simulate the functional characteristics of the original power supply.

[0094] The first function indication information may include link indication information corresponding to at least one function provided by the original power supply. The link indication information may include only pin identification information, or it may include both pin identification information and topology circuit identification information. For example, the functions provided by the original power supply may include one or more of power supply indication, alarm, and communication functions. When the target function (which is any one of the at least one functions) is a power supply indication function, the target link indication information does not include the identification information of the topology circuit corresponding to the target function; or, when the target function is an alarm function or a communication function, the target link indication information includes the identification information of the topology circuit corresponding to the target function.

[0095] The output adapter may include a topology circuit, input pins, and output pins. The input pins of the target controller are connected to the target controller, and the output pins can be directly connected to the target CPU, or the output pins can be connected to the gold fingers of the power supply to be verified, which in turn connect to the target CPU. A topology circuit can implement the signal or information transmission function corresponding to a specific function of the power supply. For example, the topology circuit can be pull-up resistors of different ohmic values, buffer circuits, etc.

[0096] Specifically, in related technologies, the circuit structure for implementing output functions in different power supplies is fixed during development. Furthermore, the functions of the same pin differ between the central processing units (CPUs) of different servers, and the function of each pin connecting the CPU to the power supply is also fixed, making power supply replacement impossible. For example, in server 1, CPU 1's pin 1 corresponds to detecting power supply indication signals, pin 2 corresponds to transmitting communication information, and pin 3 corresponds to detecting alarm signals. In server 2, CPU 2's pin 1 corresponds to detecting and transmitting communication information, pin 2 corresponds to detecting alarm signals, and pin 3 corresponds to detecting power supply indication signals. Therefore, this solution adjusts the fixed circuit structure for implementing output functions in the power supply, i.e., replaces it with an output function adapter, allowing the power supply to be flexibly adjusted to implement output functions for different CPUs in different servers.

[0097] Accordingly, after the power supply to be verified is connected to the second server, the target controller can connect the target link corresponding to the target function in the output function adapter according to the target link indication information corresponding to the target function after the power supply is powered on. Specifically, this can include the following steps:

[0098] Step 1: Determine whether the target link indication information includes topology circuit identification information.

[0099] The target function is any one of at least one functions.

[0100] Step 2: When it is determined that the target link indication information includes the identification information of the topology circuit, the target link is connected according to the identification information and pin identification information of the topology circuit included in the target link indication information.

[0101] Step 3: When it is determined that the target link indication information does not include the identification information of the topology circuit, the target link is connected according to the pin identification information included in the target link indication information.

[0102] Specifically, the target controller can iterate through the link indication information corresponding to each function in the first function indication information. Taking the iteration to the target link indication information as an example, since the implementation of some functions of the power supply requires the participation of the topology circuit, while the implementation of some functions does not require the participation of the topology circuit, the target controller can first determine whether the target link indication information includes topology circuit identification information. When it is determined that the target link indication information includes the identification information of the topology circuit corresponding to the target function, the target controller can determine the position of the topology circuit according to the identification information of the topology circuit corresponding to the target function, and determine the position of the input pin and the position of the output pin corresponding to the pin identification information according to the pin identification information. Then, based on the position of the topology circuit, the position of the input pin, and the position of the output pin, the topology circuit is connected to the input pin and the output pin.

[0103] Alternatively, when it is determined that the target link indication information does not include the identification information of the topology circuit corresponding to the target function, the target controller can determine the position of the input pin and the position of the output pin corresponding to the pin identification information based on the pin identification information, and then connect the input pin and the output pin based on the position of the input pin and the position of the output pin.

[0104] In this way, links corresponding to each function can be connected to simulate the same functional characteristics as the original power supply. For example, a power supply indication signal can be sent to the target central processing unit via link 1, an alarm signal can be sent to the target central processing unit via link 2, and communication information (such as the aforementioned verification instructions and alarm notifications) can be exchanged with the target central processing unit via link 3.

[0105] Example 1, taking the target function of transmitting alarm signals as an example, shows that pin 1 of the CPU 1 in server 1 corresponds to detecting alarm signals, and pin 3 of the CPU 2 in server 2 corresponds to detecting alarm signals. The original power supply is compatible with server 1, and the power supply to be verified is originally compatible with server 2. The identification information of the topology circuit corresponding to the target function in the second function indication information of the power supply to be verified is 001, and the pin identification information is 3. The identification information of the topology circuit corresponding to the target function in the first function indication information is 001, and the pin identification information is 1. When the power supply to be verified can be used as a replacement power supply and connected to server 1, the topology circuit corresponding to 001 can be connected to input pin 1 and output pin 1. In this way, since output pin 1 is connected to pin 1 of CPU 1, after the topology circuit corresponding to 001 and output pin 1 are turned on, CPU 1 can determine whether the power supply to be verified is outputting alarm signals normally based on the alarm signals transmitted by its own pin 1.

[0106] Example 2, taking the transmission of a power supply indication signal as an example, illustrates this. Pin 2 of CPU 1 in server 1 corresponds to the detection of the power supply indication signal, and pin 1 of CPU 2 in server 2 corresponds to the detection of the power supply indication signal. The original power supply is compatible with server 1, and the power supply to be verified is originally compatible with server 2. The identification information of the topology circuit corresponding to the target function in the second function indication information of the power supply to be verified is 002, and the pin identification information is 1. The identification information of the topology circuit corresponding to the target function in the first function indication information is 002, and the pin identification information is 2. When the power supply to be verified can be used as a replacement power supply and connected to server 1, the topology circuit corresponding to 002 can be connected to input pin 2 and output pin 1. In this way, since output pin 2 is connected to pin 2 of CPU 1, and the topology circuit corresponding to 001 is connected to output pin 2, CPU 1 can determine whether the power supply to be verified is outputting the power supply indication signal normally based on the power supply indication signal transmitted by its own pin 2.

[0107] In some alternative implementations, the output function adapter may include a processor, and the target controller may also send target function link indication information to the processor, which will then perform the link connection operation.

[0108] Step S106: Simulate the electrical characteristics of the original power supply in the power supply to be verified based on each electrical index value of the original power supply.

[0109] Specifically, the target controller can use the maximum power value of the original power supply as a standard to control its operation within the maximum power value. Furthermore, based on the original power supply duration, when the power cord becomes loose or is unplugged, the second server is powered according to the original power supply duration, ensuring that the second server can complete the data saving operation within the power supply duration corresponding to the original power supply.

[0110] In some optional implementations, the second electrical characteristics file may include second function indication information of the power supply to be verified. The first function indication information includes identification information of the output pins corresponding to at least one function provided by the power supply to be verified. Accordingly, after the power supply to be verified is connected to the first server and the power-on operation is completed, the second function indication information can be read from the second electrical characteristics file. According to the second function indication information, the connection status of at least one link in the output adapter function adapter is set (detailed operation can be referred to step S105 above, and will not be repeated here).

[0111] The power supply simulation method provided in this embodiment includes a first electrical characteristic file containing the first functional indication information and electrical index values ​​of the original power supply. After the target controller accesses the first electrical characteristic file of the original power supply and obtains the electrical characteristic values ​​of the power supply to be verified, it can determine whether the power supply to be verified can be used as a replacement power supply for the original power supply based on the electrical index values ​​of the original power supply and the electrical index values ​​of the power supply to be replaced. If so, the target controller uses the first electrical characteristic file to overwrite the second electrical characteristic file pre-stored in the target controller. After the power supply to be verified is connected to the server adapted to the original power supply, it can simulate the functional characteristics of the original power supply based on the first functional indication information in the first electrical characteristic file, and simulate the electrical characteristics of the original power supply based on the electrical index values ​​in the first electrical characteristic file. In this way, by using a power supply that has already passed safety verification in the current market, and finding a replacement power supply for the original power supply through simple electrical characteristic value analysis, the replacement power supply can simulate the original power supply based on the functional indication information and electrical index values ​​of the original power supply. This eliminates the need to develop a new power supply for complex and lengthy safety verification operations, shortening the verification time, improving verification efficiency, and ensuring the normal operation of the server.

[0112] like Figure 2 The diagram shows the architecture of a server cluster. Each server in the cluster can include a power supply and a central processing unit.

[0113] like Figure 3 The diagram shown is a schematic of a power supply structure provided in an embodiment of the present invention. The power supply may include an output function adapter and a controller. The controller may be electrically connected to the output function adapter, which in turn is connected to a central processing unit. Alternatively, the schematic diagram of the power supply structure may be as follows: Figure 4 As shown, the controller can be electrically connected to the output function adapter, which in turn connects to the gold fingers, which in turn connect to the central processing unit. The power supply, through the cooperation of its internal components, processes the input AC power and transmits it to the central processing unit.

[0114] The controller can control the state of the output function adapter, which can be enabled or disabled. The default state of the output function adapter is enabled, indicating that the power supply's output function is working normally. Furthermore, the controller can send communication signals to the output function adapter to control the state of the links within it, for example, activating the link corresponding to function A. For example, the controller can be a microcontroller unit (MCU). Specifically, the output function adapter can include input pins, a topology circuit, and output pins. The input pins can be connected to the controller, and the output pins can be connected to the gold fingers (or contacts).

[0115] For example, suppose the power supply can perform the following functions: power indication (corresponding to function 1), communication (corresponding to function 2), and alarm (corresponding to function 3). The internal connections of the power supply can be as follows: Figure 5 As shown, power supply 1 and power supply 2 can be the same model and belong to the same server. The central processing unit can communicate with the corresponding power supply based on different I2C addresses. In the figure, the I2C address of power supply 1 is "0xB0" and the I2C address of power supply 2 is "0xB2".

[0116] like Figure 6 As shown, the controller may internally include a core controller, a timing unit, a detection unit, a storage unit, multiple communication units, and multiple control units. The power simulation method will be described in detail below, focusing on the various components within the controller. The control units, communication units, timing units, and detection units can be circuits composed of various electronic components, used to perform different functions. For example, the control units can be used to transmit various digital signals, such as power indication signals, alarm signals, enable signals, and disable signals. The communication units can be used to transmit instructions issued by the controller or central processing unit, such as transmitting various execution instructions between the central processing unit and the controller, and transmitting instructions for setting the link connection status in the controller's control output function adapter.

[0117] Assuming the original power supply is model A (e.g., a 1000W power supply from manufacturer-1), the power supplies to be verified include model B (another 1000W power supply from manufacturer-1), model C (a 1200W power supply from manufacturer-2), and model D (an 800W power supply from manufacturer-2).

[0118] Step 1: After powering on Server 1 by connecting Model A power supply, the controller of Model A power supply can set the link connection status in the output function adapter according to the function indication information stored in the storage unit. Then, it can send a power supply indication signal to the central processing unit (CPU) through control unit 1, and an alarm signal to the CPU of Server 1 through control unit 2. The CPU can confirm whether the power supply is providing stable power by monitoring the status of the power supply indication signal and the alarm signal in real time.

[0119] Step 2: The central processing unit of server 1 communicates with the original power supply 1 through communication unit 1.

[0120] The central processing unit of server 1 sends instruction 1 to the A-type power supply. The controller of the A-type power supply can read the maximum power output value of 1000W recorded in its own firmware and store the maximum functional output value at location 1 in the volatile memory of the storage unit.

[0121] Step 3: The central processing unit of server 1 communicates with the original power supply 1 through communication unit 1.

[0122] The central processing unit of server 1 sends instruction 2 to power supply A. The controller of power supply A can read the identification information and pin identification information of the topology circuit corresponding to function A from the non-volatile memory of the storage unit and store them in the volatile memory of the storage unit. For example, [1] if the topology circuit of function A is none, the information is stored in position 1 of the function A area in the volatile memory of the storage unit. [2] if the pin identification information of function A is Pin1, the information is stored in position 2 of the function A area in the volatile memory of the storage unit.

[0123] Step 4: The central processing unit of server 1 communicates with the original power supply 1 through communication unit 1.

[0124] The central processing unit of server 1 sends instruction 3 to power supply A. The controller of power supply A can read the identification information and pin identification information of the topology circuit corresponding to function B from the non-volatile memory of the storage unit and store them in the volatile memory of the storage unit. For example, [1] the topology circuit of function B is topology circuit 1, and this information is stored in position 1 of the function B area in the volatile memory of the storage unit. [2] The pin identification information corresponding to function B is Pin2, and this information is stored in position 2 of the function B area in the volatile memory of the storage unit.

[0125] Step 5: The central processing unit of server 1 communicates with the original power supply 1 through communication unit 1.

[0126] The central processing unit of server 1 sends instruction 4 to power supply A. The controller of power supply A can read the identification information and pin identification information of the topology circuit corresponding to function B from the non-volatile memory of the storage unit and store them in the volatile memory of the storage unit. For example, [1] the topology circuit of function C is topology circuit 2, and this information is stored in position 1 of the function C area in the volatile memory of the storage unit. [2] the pin identification information corresponding to function C is Pin2, and this information is stored in position 2 of the function C area in the volatile memory of the storage unit.

[0127] Step 6: The central processing unit of server 1 communicates with the original power supply 1 through communication unit 1.

[0128] The central processing unit of server 1 sends instruction 5 to the model A power supply. The controller of model A power supply monitors the AC input signal through the detection unit. When the power cord is detected to be unplugged, the timing unit is started, and the power supply indication signal of control unit-1 is detected. When the power supply indication signal is detected to be abnormal (meeting the second condition), it means that model A power supply can no longer maintain normal power supply. At this time, the timing unit is stopped, and the power supply duration is obtained. For example, the power supply duration is 10ms. The power supply duration is stored in the volatile memory of the storage unit at position 1 of the time zone.

[0129] After completing the above operations, the information recorded in the volatile memory of the storage unit can be as shown in Table 1 below. Table 1 can be the first electrical characteristic file mentioned above.

[0130] Table 1

[0131] Storage location (volatile memory) Stored content Maximum output power zone (position-1) <instruction-1> 1000W Function Area A (Location-1) <Instruction-2> none Function Area A (Location-2) <Instruction-2> Pin1 Function Area B (Location-1) <Instruction-3> Topology-1 Function Area B (Location-2) <Instruction-3> Pin2 Function Area C (Location-1) <Instruction-4> Topology-2 Function Area C (Location-2) <Instruction-4> Pin3 Hold time zone (position-1) <instruction-5> 10ms

[0132] Step 7: The central processing unit of server 1 communicates with the original power supply 1 through communication unit 1.

[0133] The central processing unit of server 1 sends instruction 6 to the A-type power supply. The controller of the A-type power supply reads the electrical characteristic values ​​and function indication information recorded in the volatile memory of the storage unit and sends them to the central processing unit of server 1.

[0134] Step 8: After confirming that the electrical characteristic values ​​and function indication information of the read A-type power supply are complete, the user sends instruction 7 to the A-type power supply. The controller can then store the electrical characteristic values ​​and function indication information stored in the volatile memory of the storage unit into the non-volatile memory.

[0135] The following verification operations are performed on power supplies of type B (compatible with server 2), type C (compatible with server 3), and type D (compatible with server 4).

[0136] Step 9: Connect the non-volatile memory to server 2. The controller of the B-type power supply performs the verification operation on the B-type power supply according to the specific processing of steps S101 to S104. The verification result is that it cannot be used as a replacement power supply because the power supply duration of the B-type power supply is 8ms, which is less than the power supply duration of the A-type power supply, which is 10ms.

[0137] Step 10: Connect the non-volatile memory to server 3. The controller of the C-type power supply performs a verification operation on the C-type power supply according to the specific processing of steps S101 to S104. The verification result is that it can be used as a replacement power supply because the maximum power value of the C-type power supply (1200W) is greater than the maximum power value of the A-type power supply (1000W), and the power supply duration of the C-type power supply (12ms) is greater than the maximum power value of the A-type power supply (10ms).

[0138] Step 11: Connect the non-volatile memory to server 4. The controller of the D-type power supply performs a verification operation on the D-type power supply according to the specific processing of steps S101 to S104. The verification result is that it cannot be used as a replacement power supply because the maximum power value of the D-type power supply (800W) is less than the maximum power value of the A-type power supply (1000W).

[0139] Step 12: The central processing unit of server 1 communicates with the original power supply 1 through communication unit 1.

[0140] The central processing unit of server 1 sends instruction 8 to the A-type power supply, and the controller of the C-type power supply stores the first electrical characteristic file in the non-volatile memory of the C-type power supply's storage unit.

[0141] Step 13: After completely discharging the C-type power supply, connect it to server 1 and power it on again. The controller of the C-type power supply can simulate the A-type power supply according to the first electrical characteristic file stored in the non-volatile memory of the storage unit in the C-type power supply. For specific operations, please refer to steps S105 and S106 above.

[0142] This embodiment also provides a power supply simulation device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0143] This embodiment provides a power supply simulation device, such as... Figure 7 As shown, it includes:

[0144] The receiving module 701 is used to receive the first electrical characteristic file of the original power supply sent by the target central processing unit, wherein the first electrical characteristic file includes the first function indication information of the original power supply and various electrical index values.

[0145] The acquisition module 702 is used to acquire various electrical indicator values ​​of the power supply to be verified;

[0146] The determination module 703 is used to determine whether the power supply to be verified is a replacement power supply corresponding to the original power supply based on the multiple electrical index values ​​of the original power supply and the multiple electrical index values ​​of the power supply to be verified.

[0147] The overlay module 704 is used to overwrite the second electrical characteristic file pre-stored in the target controller with the first electrical characteristic file when it is determined that the power supply to be verified is a replacement power supply;

[0148] The simulation module 705 is used to set the connection status of at least one link in the output function adapter according to the first function indication information, so as to simulate the functional characteristics of the original power supply; and to simulate the electrical characteristics of the original power supply in the power supply to be verified according to each electrical index value of the original power supply.

[0149] In some optional implementations, the electrical characteristic parameters of both the original power supply and the power supply to be verified include at least the maximum power value of the power supply and the duration of power supply when the power cord is unplugged.

[0150] Module 703 is specifically used for:

[0151] Determine whether the maximum power value of the power supply to be verified is greater than or equal to the maximum power value of the original power supply;

[0152] When it is determined that the maximum power value of the power supply to be verified is greater than or equal to the maximum power value of the original power supply, determine whether the power supply duration of the power supply to be verified is greater than or equal to the power supply duration of the original power supply.

[0153] When the power supply duration of the power supply to be verified is greater than or equal to the power supply duration of the original power supply, the power supply to be verified is determined to be the replacement power supply.

[0154] In some alternative implementations, the determining module 703 is specifically used for:

[0155] When it is determined that the maximum power value of the power supply to be verified is less than the maximum power value of the original power supply, or when it is determined that the power supply duration of the power supply to be verified is less than the power supply duration of the original power supply, it is determined that the power supply to be verified is not a replacement power supply.

[0156] In some optional implementations, the acquisition module 702 is specifically used for:

[0157] When a verification command is received, monitor the current input signal;

[0158] When the current input signal is detected to meet the first condition, the timing is started and the power supply indication signal is monitored, wherein the first condition is used to indicate that the power cord has been unplugged.

[0159] When the power supply indication signal is detected to meet the second condition, the timing is stopped to obtain the power supply duration of the power supply to be verified. The second condition is used to indicate that the power supply should stop supplying power.

[0160] In some alternative embodiments, the device further includes a transmitting module 706, for:

[0161] When it is determined that the power supply to be verified is not a replacement power supply, an alarm notification is sent to the target central processing unit to indicate that the power supply to be verified cannot be used as a replacement power supply corresponding to the original power supply.

[0162] In some optional implementations, the first function indication information includes link indication information corresponding to at least one function provided by the original power supply;

[0163] Analog module 705 is specifically used for:

[0164] Based on the target link indication information corresponding to the target function, the target link in the output function adapter corresponding to the target function is connected to complete the setting of the connection status of the target link, wherein the target function is any one of at least one function.

[0165] In some optional implementations, the link indication information includes at least pin identification information;

[0166] Analog module 705 is specifically used for:

[0167] Determine whether the target link indication information includes topology circuit identification information;

[0168] When it is determined that the target link indication information includes the identification information of the topology circuit, the target link is connected according to the identification information and pin identification information of the topology circuit included in the target link indication information.

[0169] or,

[0170] When it is determined that the target link indication information does not include the identification information of the topology circuit, the target link is connected according to the pin identification information included in the target link indication information.

[0171] Further functional descriptions of the above modules are the same as those in the corresponding embodiments described above, and will not be repeated here.

[0172] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and subsequently stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a controller. The storage medium can be read-only memory, random access memory, flash memory, etc.; further, the storage medium can also include combinations of the above types of memory. When the software or computer code is accessed and executed by the controller, the methods shown in the above embodiments are implemented.

[0173] A portion of this invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to the invention through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.

[0174] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A power supply simulation method, characterized in that, The method is applied to a power supply to be verified, the power supply to be verified including a target controller and an output function adapter, the method is executed by the target controller, and the method includes: The system receives a first electrical characteristic file of the original power supply sent by the target central processing unit. The first electrical characteristic file includes first function indication information of the original power supply and multiple electrical indicator values. The electrical characteristic indicator values ​​of the original power supply and the electrical characteristic indicator values ​​of the power supply to be verified both include at least the maximum power value of the power supply and the power supply duration for indicating when the power cord is unplugged. The first function indication information includes link indication information corresponding to at least one function provided by the original power supply. Obtain various electrical parameter values ​​of the power supply to be verified; Determine whether the maximum power value of the power supply to be verified is greater than or equal to the maximum power value of the original power supply; When it is determined that the maximum power value of the power supply to be verified is greater than or equal to the maximum power value of the original power supply, it is determined whether the power supply duration of the power supply to be verified is greater than or equal to the power supply duration of the original power supply. When it is determined that the power supply duration of the power supply to be verified is greater than or equal to the power supply duration of the original power supply, the power supply to be verified is determined to be a replacement power supply corresponding to the original power supply. When it is determined that the power supply to be verified is the replacement power supply, the first electrical characteristic file is used to overwrite the second electrical characteristic file pre-stored in the target controller; According to the target link indication information corresponding to the target function, the target link in the output function adapter corresponding to the target function is connected to complete the setting of the connection state of the target link, so as to simulate the functional characteristics of the original power supply. The target function is any one of at least one of the functions. The electrical characteristics of the original power supply are simulated in the power supply to be verified based on each of the electrical index values ​​of the original power supply.

2. The method according to claim 1, characterized in that, The method further includes: When it is determined that the maximum power value of the power supply to be verified is less than the maximum power value of the original power supply, or when it is determined that the power supply duration of the power supply to be verified is less than the power supply duration of the original power supply, it is determined that the power supply to be verified is not the replacement power supply.

3. The method according to claim 1 or 2, characterized in that, The power supply duration of the power source to be verified is obtained, specifically including: When a verification command is received, monitor the current input signal; When the current input signal is detected to meet the first condition, a timer is started and the power supply indication signal is monitored, wherein the first condition is used to indicate that the power cord has been unplugged. When the power supply indication signal is detected to meet the second condition, the timing is stopped to obtain the power supply duration of the power supply to be verified, wherein the second condition is used to indicate that the power supply stops supplying power.

4. The method according to claim 2, characterized in that, The method further includes: When it is determined that the power supply to be verified is not the replacement power supply, an alarm notification is sent to the target central processing unit to indicate that the power supply to be verified cannot be used as a replacement power supply corresponding to the original power supply.

5. The method according to claim 1 or 2, characterized in that, The link indication information includes at least pin identification information; The step of connecting the target link in the output function adapter corresponding to the target function according to the target link indication information corresponding to the target function includes: Determine whether the target link indication information includes topology circuit identification information; When it is determined that the target link indication information includes the identification information of the topology circuit, the target link is connected according to the identification information and pin identification information of the topology circuit included in the target link indication information; or, When it is determined that the target link indication information does not include the identification information of the topology circuit, the target link is connected according to the pin identification information included in the target link indication information.

6. A power supply simulation device, characterized in that, The device is configured in a power supply to be verified, the power supply to be verified including a target controller and an output function adapter, and the device includes: The receiving module is used to receive a first electrical characteristic file of the original power supply sent by the target central processing unit. The first electrical characteristic file includes first function indication information of the original power supply and multiple electrical indicator values. The electrical characteristic indicator values ​​of the original power supply and the electrical characteristic indicator values ​​of the power supply to be verified both include at least the maximum power value of the power supply and the power supply duration for indicating when the power cord is unplugged. The first function indication information includes link indication information corresponding to at least one function provided by the original power supply. The acquisition module is used to acquire various electrical indicator values ​​of the power supply to be verified; The determination module is used to determine whether the maximum power value of the power supply to be verified is greater than or equal to the maximum power value of the original power supply; when the maximum power value of the power supply to be verified is greater than or equal to the maximum power value of the original power supply, it determines whether the power supply duration of the power supply to be verified is greater than or equal to the power supply duration of the original power supply; when the power supply duration of the power supply to be verified is greater than or equal to the power supply duration of the original power supply, it determines that the power supply to be verified is a replacement power supply corresponding to the original power supply. The overlay module is used to overwrite the second electrical characteristic file pre-stored in the target controller with the first electrical characteristic file when it is determined that the power supply to be verified is the replacement power supply; The simulation module is used to connect the target link in the output function adapter corresponding to the target function according to the target link indication information corresponding to the target function, so as to complete the connection state setting of the target link and simulate the functional characteristics of the original power supply, wherein the target function is any one of at least one of the functions; and to simulate the electrical characteristics of the original power supply in the power supply to be verified according to each of the electrical index values ​​of the original power supply.

7. A power supply, characterized in that, The power supply includes a controller and an output function adapter, wherein the controller is electrically connected to the output function adapter; The controller is used to perform the power simulation method as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the controller to perform the power simulation method of any one of claims 1 to 5.

Citation Information

Patent Citations

  • Current sharing control method and device for parallel connection of multiple power modules without host

    CN118336669A

  • Power supplies

    WO2021216055A1