Server communication method and device, equipment and medium

By introducing a microcontrol unit (MCU) between the power supply and the server, the problem of high complexity in communication detection of power supply and server is solved, direct and accurate communication detection is achieved, and detection efficiency and problem positioning accuracy are improved.

CN120371623AActive Publication Date: 2025-07-25INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510864563.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-25
Publication Date
2025-07-25
Estimated Expiration
2045-06-25

AI Technical Summary

Technical Problem

In the prior art, communication detection between power supply and server is complex and difficult to implement accurately and directly, and it is difficult for engineers to analyze on-site when they are on the client or off-site, resulting in low detection efficiency.

Method used

Add a microcontrol unit (MCU) between the power supply and the management controller of the server. By obtaining the configuration information after power supply is powered on, it determines whether it complies with the server's adaptation list, detects the consistency of the communication signal timing, and sends communication instructions and data when inconsistent, realizing direct communication detection.

Benefits of technology

It reduces the complexity of communication detection, improves detection efficiency, can accurately and directly detect problem points, reduces analysis time, and provides clear error information when problems occur.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120371623A_ABST
    Figure CN120371623A_ABST
Patent Text Reader

Abstract

The invention discloses a server communication method and device, equipment and a medium, and relates to the technical field of computers, and the method comprises the steps: obtaining power supply configuration information after a power supply is powered on; if the power supply configuration information is in the power supply adaptation list corresponding to the server, detecting whether a time sequence of a first communication signal sent by a management controller of the server is consistent with a preset time sequence; if the time sequence of the first communication signal sent by the management controller of the server is consistent with the preset time sequence, sending the communication instruction to the power supply; acquiring communication data sent by the power supply based on the communication instruction and a second communication signal time sequence, and detecting whether the second communication signal time sequence sent by the power supply is consistent with a preset time sequence; and if the time sequence of the second communication signal sent by the power supply is consistent with the preset time sequence, sending the communication data to a management controller of the server. Through the technical scheme, communication detection between the power supply and the server can be accurately and directly realized, the complexity of communication detection is reduced, and the efficiency of communication detection is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular, to a server communication method, device, equipment and medium. Background Art

[0002] Currently, if a communication anomaly occurs, the server will report an abnormal power supply or a false alarm of an abnormal power supply. The management controller will only report a problem and cannot locate the specific anomaly information. It is necessary to use devices such as communication software or oscilloscopes to measure whether there are problems with the timing of the SDA (Skill Development Activity, bidirectional data) and SCL (Serial Clock Line, serial clock) signals used for communication and the signal quality. However, when using devices such as communication software or oscilloscopes for communication detection, a lot of data needs to be captured, and the detection takes a long time. And sometimes, abnormal data may not be captured or there is a lot of data, which is very troublesome to analyze. If an oscilloscope is used for communication detection, there are many PMbus (Power Management Bus) communication timing specifications, and each timing needs to be tested to find out the problem, which also takes a lot of time. Moreover, if the server with problems is at the client or in a different place, it is very difficult for engineers to go to the site and analyze it on site.

[0003] It can be seen that how to accurately and directly implement communication detection between the power supply and the server, reduce the complexity of communication detection, and improve the efficiency of communication detection are problems that need to be solved by those skilled in the art. Summary of the Invention

[0004] The present application provides a server communication method, device, equipment and medium, which can accurately and directly implement communication detection between the power supply and the server, reduce the complexity of communication detection, and improve the efficiency of communication detection. The specific solutions are as follows: The present application provides a server communication method applied to a microcontroller unit, including: Obtaining power supply configuration information after the power supply is powered on; If the power supply configuration information is in the power supply adaptation list corresponding to the server, detecting whether the timing of the first communication signal sent by the management controller of the server is consistent with the preset timing; If the timing of the first communication signal sent by the management controller of the server is consistent with the preset timing, sending a communication instruction to the power supply; Obtaining communication data sent by the power supply based on the communication instruction and the timing of the second communication signal, and detecting whether the timing of the second communication signal sent by the power supply is consistent with the preset timing; If the timing of the second communication signal sent by the power supply is consistent with the preset timing, sending the communication data to the management controller of the server.

[0005] The present application also provides a server communication device, which is applied to a microcontroller unit and includes: An information acquisition module, configured to acquire power configuration information after the power supply is powered on; A first detection module, configured to detect whether the timing of a first communication signal sent by the management controller of the server is consistent with a preset timing if the power configuration information is in a power adaptation list corresponding to the server; A communication instruction sending module, configured to send a communication instruction to the power supply if the timing of the first communication signal sent by the management controller of the server is consistent with the preset timing; A second detection module, configured to acquire communication data and a second communication signal timing sent by the power supply based on the communication instruction, and detect whether the timing of the second communication signal sent by the power supply is consistent with the preset timing; A communication data sending module, configured to send the communication data to the management controller of the server if the timing of the second communication signal sent by the power supply is consistent with the preset timing.

[0006] In a third aspect, the present application discloses an electronic device, which includes a processor and a memory; wherein, the memory is used to store a computer program, and the computer program is loaded and executed by the processor to implement the foregoing server communication method.

[0007] In a fourth aspect, the present application discloses a computer-readable storage medium, which is used to store a computer program; wherein the computer program implements the foregoing server communication method when executed by a processor.

[0008] It can be seen that the present application provides a server communication method, including: obtaining power configuration information after the power supply is powered on; if the power configuration information is in the power adaptation list corresponding to the server, detecting whether the timing of the first communication signal sent by the management controller of the server is consistent with the preset timing; if the timing of the first communication signal sent by the management controller of the server is consistent with the preset timing, sending a communication instruction to the power supply; obtaining communication data sent by the power supply based on the communication instruction and the timing of the second communication signal, and detecting whether the timing of the second communication signal sent by the power supply is consistent with the preset timing; if the timing of the second communication signal sent by the power supply is consistent with the preset timing, sending the communication data to the management controller of the server. The present application is applied to a microcontroller unit, adding a microcontroller unit between the communication lines of the power supply and the management controller of the server, determining whether the power configuration information after the power supply is powered on is in the power adaptation list corresponding to the server. If so, detecting whether the timing of the first communication signal sent by the management controller of the server is consistent with the preset timing. If consistent, detecting whether the timing of the second communication signal sent by the power supply is consistent with the preset timing. If consistent, sending the communication data to the management controller of the server. By using the microcontroller unit to respectively determine whether the timing of the first communication signal sent by the management controller of the server and the timing of the second communication signal sent by the power supply are consistent with the preset timing, it can accurately and directly implement communication detection between the power supply and the server, and can detect the quality of the communication signal between the power supply and the server, reducing the difficulty of finding problem points and the complexity of communication detection, and improving the efficiency of communication detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0010] Figure 1 It is a flowchart of a server communication method disclosed in the present application; Figure 2 It is a standard power management bus timing specification diagram provided by the present application; Figure 3 It is a timing details and error details diagram provided by the present application; Figure 4 It is a specific flowchart for implementing server communication provided by the present application; Figure 5 It is a schematic structural diagram of a server communication device disclosed in the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0011] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts belong to the protection scope of the present application.

[0012] Currently, if there is a communication anomaly, the server will report an abnormal power supply or a false alarm of an abnormal power supply. The management controller will only report that there is a problem and cannot locate the specific anomaly information. It is necessary to use devices such as communication software or an oscilloscope to measure whether there is a problem with the timing of the SDA signal used for communication and the signal quality. However, when using devices such as communication software or an oscilloscope for communication detection, a lot of data needs to be captured, and the detection takes a long time. And sometimes, abnormal data may not be captured or there is a lot of data, which is very troublesome to analyze. If an oscilloscope is used for communication detection, there are many PMbus communication timing specifications, and each timing needs to be tested to find out the problem, which also takes a lot of time. Moreover, if the server with problems is at the client or in a different location, it is very difficult for engineers to go to the site and analyze it on site. It can be seen that how to accurately and directly implement communication detection between the power supply and the server, reduce the complexity of communication detection, and improve the efficiency of communication detection is a problem that those skilled in the art need to solve.

[0013] See Figure 1 As shown, an embodiment of the present invention discloses a server communication method, which is applied to a microcontroller unit and specifically may include: Step S11: Obtain the power supply configuration information after the power supply is powered on.

[0014] In this embodiment, a connection relationship between the local and the power supply and a connection relationship between the local and the management controller of the server are respectively established; the timing specifications of the power management bus adapted to the server, the custom timing error types, and the custom operations are obtained; the timing specifications, the custom timing error types, and the custom operations are added to the local power adaptation list; when the power supply is powered on, the power supply configuration information and the communication frequency range after the power supply is powered on are obtained; the power supply model is determined from the power supply configuration information, and it is judged whether the power supply model is in the power adaptation list corresponding to the server; if the power supply model is not in the power adaptation list corresponding to the server, the power supply adaptation error information is sent to the management controller of the server, so that the management controller reports the power supply adaptation error information to the system log and sends a power supply replacement prompt message to the client.

[0015] Among them, the management controller of the server in the present invention includes, but is not limited to, BMC (Baseboard Management Controller, baseboard management controller).

[0016] It is understandable that when the PSU (Power Supply Unit) is inserted and powered on, it will report the power configuration information including the power supply model and the communication frequency range to the MCU (Micro Controller Unit). The MCU determines whether the power supply model is in the power supply adaptation list corresponding to the server. If not, the MCU reports the power supply adaptation error information to the BMC. The BMC will alarm PSU mismatch in the sel log (system log) and turn on the red light to prompt the user to replace the power supply.

[0017] Since different timings represent different signal responses, the corresponding PMbus timing specifications must be followed. Specifically, there are four basic signals in the PMbus protocol used between the power supply and the server, including start, stop, acknowledge, and non-acknowledge signals: Start signal: When SCL is at a high level, SDA changes from high to low. This signal is the start signal; Stop signal: When SCL is at a high level, SDA changes from low to high. This signal is the stop signal; Sampling of data by I2C (Inter-Integrated Circuit, a serial communication protocol) occurs during the high level of SCL. Except for the start and stop signals, during data transmission, when SCL is at a high level, SDA must remain stable and is not allowed to change. It can only change when SCL is at a low level. The acknowledge signal appears after the transmission of 1 byte, that is, within the 9th SCL clock cycle. At this time, the host needs to release the SDA bus and hand over the bus control to the slave. Due to the pull-up resistor, the bus is at a high level at this time. If the slave correctly receives the data sent by the host, it will pull SDA low to indicate an acknowledge response. Usually, the power supply will set SDA to a high-impedance input state at the 9th SCL clock cycle. If SDA is read as low, it means the data has been successfully received and the next operation can be carried out. When at the 9th SCL clock cycle, SDA remains at a high level, indicating a non-acknowledge signal, which means the power supply is performing some other operations and is in a busy state and not ready to communicate with the BMC or some control commands sent by the BMC are not supported by the power supply; or when the BMC receives power supply data, the BMC generates a non-acknowledge signal to notify the end of data transmission from the power supply and not to send data anymore.

[0018] In this embodiment, the timing specifications of the PMbus of the power supply used by the server are added to the local power supply adaptation list, and corresponding timing error types are formulated to correspond to different timing errors. At the same time, the specifications or operations (i.e., custom operations) formulated by the manufacturer to ensure normal communication are also added to the local power supply adaptation list. Standard power management bus timing specifications such as Figure 2As shown, the timing details and error details are as Figure 3 shown.

[0019] Step S12: If the power configuration information is in the power adaptation list corresponding to the server, then detect whether the timing of the first communication signal sent by the management controller of the server is consistent with the preset timing.

[0020] In this embodiment, if the power configuration information is in the power adaptation list corresponding to the server, then detect whether the timing of the first bidirectional data signal sent by the management controller of the server is consistent with the preset bidirectional data signal timing in the preset timing; and, detect whether the timing of the first serial clock signal sent by the management controller of the server is consistent with the preset serial clock signal timing in the preset timing.

[0021] Among them, if the timing of the first communication signal sent by the management controller of the server is inconsistent with the preset timing, then screen out the target timing error type corresponding to the first communication signal timing from the custom timing error types in the local power adaptation list; send the communication error information corresponding to the target timing error type to the management controller of the server, so that the management controller reports the communication error information to the system log.

[0022] That is to say, when the MCU detects that the power configuration information is in the power adaptation list corresponding to the server, for the timing of the first communication signal sent by the BMC, the MCU will detect in real time whether the timing of the first SDA signal and the first SCL signal is consistent with the preset timing. If they are consistent, the MCU will directly send the communication instruction to the power supply; if they are inconsistent, the MCU will upload the corresponding target timing error type to the BMC, and the BMC will display the target timing error type and the communication error information in the sel log. Engineers can directly obtain the clearly located error information from the sel log. At the same time, the MCU will record the communication data and voltage at the time of communication error, which is convenient for subsequent tracking of whether there are other alarms and impacts.

[0023] Step S13: If the timing of the first communication signal sent by the management controller of the server is consistent with the preset timing, then send the communication instruction to the power supply.

[0024] Step S14: Obtain the communication data and the second communication signal timing sent by the power supply based on the communication instruction, and detect whether the timing of the second communication signal sent by the power supply is consistent with the preset timing.

[0025] In this embodiment, when the timing of the second communication signal sent by the power supply is inconsistent with the preset timing, send an action instruction to the power supply so that the power supply performs corresponding actions on itself based on the action instruction; the action instruction includes a signal restart instruction.

[0026] That is to say, when the timing of the second communication signal sent by the power supply is inconsistent with the preset timing, the BMC can also send an action instruction to the power supply so that the power supply can perform self-operations, such as signal restart and other actions. The MCU can notify the BMC that this operation is a normal behavior to prevent the BMC from misreporting faults.

[0027] Step S15: If the timing of the second communication signal sent by the power supply is consistent with the preset timing, the communication data is sent to the management controller of the server.

[0028] In addition, the server communication method of the present application further includes: using a preset firmware update alarm type library; based on the updated alarm type library, the custom timing error types in the local power supply adaptation list are updated in real time. By updating the preset FW (firmware), the alarm type library is updated, self-detection alarm types are added, and the debugging time is reduced.

[0029] In this embodiment, the specific process of implementing server communication is as Figure 4 shown, and the steps are as follows: 1. Add an MCU between the power supply and the BMC of the server; 2. Write the timing specifications of the power management bus adapted to the server, custom timing error types, and custom operations into the MCU. After the power supply is powered on, the MCU reads the power supply model and makes an adaptation list determination; 3. If the power supply model is in the power supply adaptation list corresponding to the server, the MCU obtains the timing of the first communication signal sent by the BMC, and then determines whether the timing of the first communication signal is consistent with the preset timing; 4. If they are consistent, the communication instruction is sent to the power supply. After receiving it, the power supply sends the communication data and the timing of the second communication signal to the MCU again. The MCU makes another detection to determine whether the timing of the second communication signal is consistent with the preset timing. If they are consistent, the communication data is sent to the BMC; 5. If they are inconsistent, the MCU sends the code corresponding to the abnormal timing to the BMC, and the BMC reports the corresponding communication error information in the system log to facilitate finding the corresponding problem.

[0030] The present invention adds an MCU between the communication lines of the power supply and the BMC. The MCU can determine the timing of the power supply SDA and SCL. By analyzing whether the timing of the communication signal is consistent with the preset timing, it can accurately and directly implement the communication detection between the power supply and the server, discover problems, and directly report them, reducing the difficulty of finding problem points; at the same time, the MCU has the functions of storage and software update. If there are new specifications added or new communication-related problems are discovered, it can be updated in time to cover more error types. When a communication problem occurs, the timing of the problem can be directly determined through the sel log of the BMC, and the root cause can be found, reducing the time for finding problems.

[0031] In addition, the present invention can also introduce an encryption algorithm, such as AES-256 (Advanced Encryption Standard - 256-bit), into the connection relationships between the MCU and the BMC, and between the MCU and the power supply. This can not only prevent communication data from being stolen during transmission but also effectively resist potential man-in-the-middle attacks. For example, in a data center environment, it can prevent malicious attackers from tampering with or intercepting power management instructions, thus ensuring the secure and stable operation of the server power system. Moreover, a redundancy mechanism can be introduced based on the MCU. For example, a dual-MCU architecture can be adopted. When the primary MCU fails (such as hardware damage, software failure, etc.), the standby MCU can quickly take over the work, which can greatly improve the reliability of the entire power management system and reduce the risk of server power management getting out of control due to a single-point failure of the MCU.

[0032] In this embodiment, the power configuration information after the power supply is powered on is obtained; if the power configuration information is in the power adaptation list corresponding to the server, it is detected whether the timing of the first communication signal sent by the management controller of the server is consistent with the preset timing; if the timing of the first communication signal sent by the management controller of the server is consistent with the preset timing, a communication instruction is sent to the power supply; the communication data sent by the power supply based on the communication instruction and the second communication signal timing are obtained, and it is detected whether the timing of the second communication signal sent by the power supply is consistent with the preset timing; if the timing of the second communication signal sent by the power supply is consistent with the preset timing, the communication data is sent to the management controller of the server. This application is applied to a microcontroller unit. A microcontroller unit is added between the communication lines of the power supply and the management controller of the server. It is judged whether the power configuration information after the power supply is powered on is in the power adaptation list corresponding to the server. If so, it is detected whether the timing of the first communication signal sent by the management controller of the server is consistent with the preset timing. If they are consistent, it is detected whether the timing of the second communication signal sent by the power supply is consistent with the preset timing. If they are consistent, the communication data is sent to the management controller of the server. By using the microcontroller unit to respectively judge whether the timing of the first communication signal sent by the management controller of the server and the timing of the second communication signal sent by the power supply are consistent with the preset timing, the communication detection between the power supply and the server can be accurately and directly realized, and the quality of the communication signal between the power supply and the server can be detected, reducing the difficulty of finding problem points and the complexity of communication detection, and improving the efficiency of communication detection.

[0033] See Figure 5 As shown, an embodiment of the present invention discloses a server communication device, which is applied to a microcontroller unit and specifically may include: An information acquisition module 11, configured to acquire the power configuration information after the power supply is powered on; The first detection module 12 is configured to detect whether the timing of the first communication signal sent by the management controller of the server is consistent with a preset timing if the power supply configuration information is in the power supply adaptation list corresponding to the server; The communication instruction sending module 13 is configured to send a communication instruction to the power supply if the timing of the first communication signal sent by the management controller of the server is consistent with the preset timing; The second detection module 14 is configured to obtain the communication data sent by the power supply based on the communication instruction and the second communication signal timing, and detect whether the timing of the second communication signal sent by the power supply is consistent with the preset timing; The communication data sending module 15 is configured to send the communication data to the management controller of the server if the timing of the second communication signal sent by the power supply is consistent with the preset timing.

[0034] In this embodiment, the power supply configuration information after the power supply is powered on is obtained; if the power supply configuration information is in the power supply adaptation list corresponding to the server, it is detected whether the timing of the first communication signal sent by the management controller of the server is consistent with the preset timing; if the timing of the first communication signal sent by the management controller of the server is consistent with the preset timing, a communication instruction is sent to the power supply; the communication data sent by the power supply based on the communication instruction and the second communication signal timing are obtained, and it is detected whether the timing of the second communication signal sent by the power supply is consistent with the preset timing; if the timing of the second communication signal sent by the power supply is consistent with the preset timing, the communication data is sent to the management controller of the server. This application is applied to a microcontroller unit, and a microcontroller unit is added between the communication lines of the power supply and the management controller of the server to determine whether the power supply configuration information after the power supply is powered on is in the power supply adaptation list corresponding to the server. If so, it is detected whether the timing of the first communication signal sent by the management controller of the server is consistent with the preset timing. If they are consistent, it is detected whether the timing of the second communication signal sent by the power supply is consistent with the preset timing. If they are consistent, the communication data is sent to the management controller of the server. By using the microcontroller unit to respectively determine whether the timing of the first communication signal sent by the management controller of the server and the timing of the second communication signal sent by the power supply are consistent with the preset timing, the communication detection between the power supply and the server can be accurately and directly realized, and the quality of the communication signal between the power supply and the server can be detected, reducing the difficulty of finding problem points and the complexity of communication detection, and improving the efficiency of communication detection.

[0035] In some specific embodiments, the information acquisition module 11 may specifically include: The connection relationship establishment module is configured to establish a connection relationship between the local device and the power supply, and a connection relationship between the local device and the management controller of the server respectively; The timing specification, type and custom operation acquisition module is configured to obtain the timing specification of the power management bus adapted to the server, the custom timing error type, and the custom operation; An adding module, configured to add the timing specification, the custom timing error type, and the custom operation to the local power adaptation list. A configuration information and frequency range acquisition module, configured to acquire the power configuration information and the communication frequency range after the power supply is powered on. A power supply model judgment module, configured to determine the power supply model from the power supply configuration information and judge whether the power supply model is in the power adaptation list corresponding to the server.

[0036] In some specific embodiments, the information acquisition module 11 may specifically include: A power adaptation error information reporting module, configured to, if the power supply model is not in the power adaptation list corresponding to the server, send the power adaptation error information to the management controller of the server, so that the management controller reports the power adaptation error information to the system log and sends a power supply replacement prompt information to the client.

[0037] In some specific embodiments, the first detection module 12 may specifically include: A first bidirectional data signal timing detection module, configured to detect whether the timing of the first bidirectional data signal sent by the management controller of the server is consistent with the preset bidirectional data signal timing in the preset timing. A first serial clock signal timing detection module, configured to, and, detect whether the timing of the first serial clock signal sent by the management controller of the server is consistent with the preset serial clock signal timing in the preset timing.

[0038] In some specific embodiments, the first detection module 12 may specifically include: A target timing error type screening module, configured to, if the timing of the first communication signal sent by the management controller of the server is inconsistent with the preset timing, screen out the target timing error type corresponding to the timing of the first communication signal from the custom timing error types in the local power adaptation list. A communication error information sending module, configured to send the communication error information corresponding to the target timing error type to the management controller of the server, so that the management controller reports the communication error information to the system log.

[0039] In some specific embodiments, the server communication device further includes: An action instruction sending module, configured to, when the timing of the second communication signal sent by the power supply is inconsistent with the preset timing, send an action instruction to the power supply, so that the power supply performs corresponding actions on itself based on the action instruction; the action instruction includes a signal restart instruction.

[0040] In some specific embodiments, the server communication device further includes: An alarm type library update module, configured to update the alarm type library by using a preset firmware. A timing error type update module, configured to update the custom timing error types in the local power adapter list in real time based on the updated alarm type library.

[0041] Among them, for the description of the features in the embodiments corresponding to the server communication device, reference can be made to the relevant descriptions in the embodiments corresponding to the server communication method, which will not be elaborated here one by one.

[0042] An embodiment of the present application further provides an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above embodiments of the server communication method.

[0043] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. The computer program is configured to execute the steps in any one of the above embodiments of the server communication method when running.

[0044] In an exemplary embodiment, the above computer-readable storage medium may include, but is not limited to: USB flash drives, read-only memories (ROMs), random access memories (RAMs), mobile hard disks, magnetic disks, or optical discs, etc., various media that can store computer programs.

[0045] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner 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 implementation should not be considered to exceed the scope of the present application.

[0046] The above has introduced in detail a server communication method, device, equipment, and medium provided by the present application. Specific examples are used in this article to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application. It should be noted that for those of ordinary skill in the art in the technical field, without departing from the principle of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.

Claims

1. A server communication method, characterized in that, Applied to a microcontroller unit, including: Obtain the power configuration information after the power supply is powered on; If the power configuration information is in the power adaptation list corresponding to the server, detect whether the timing of the first communication signal sent by the management controller of the server is consistent with the preset timing; If the timing of the first communication signal sent by the management controller of the server is consistent with the preset timing, send a communication instruction to the power supply; Obtain the communication data sent by the power supply based on the communication instruction and the second communication signal timing, and detect whether the timing of the second communication signal sent by the power supply is consistent with the preset timing; If the timing of the second communication signal sent by the power supply is consistent with the preset timing, send the communication data to the management controller of the server.

2. The server communication method according to claim 1, characterized in that, The obtaining the power configuration information after the power supply is powered on includes: Establish a connection relationship between the local and the power supply, and a connection relationship between the local and the management controller of the server respectively; Obtain the timing specification of the power management bus adapted to the server, the custom timing error type, and the custom operation; Add the timing specification, the custom timing error type, and the custom operation to the local power adaptation list; When the power supply is powered on, obtain the power configuration information and the communication frequency range after the power supply is powered on; Determine the power supply model from the power configuration information, and judge whether the power supply model is in the power adaptation list corresponding to the server.

3. The server communication method according to claim 2, wherein, After judging whether the power supply model is in the power adaptation list corresponding to the server, it further includes: If the power supply model is not in the power adaptation list corresponding to the server, send a power adaptation error message to the management controller of the server, so that the management controller reports the power adaptation error message to the system log and sends a power supply replacement prompt message to the client.

4. The server communication method according to claim 1, wherein The detecting whether the timing of the first communication signal sent by the management controller of the server is consistent with the preset timing includes: Detect whether the timing of the first bidirectional data signal sent by the management controller of the server is consistent with the preset bidirectional data signal timing in the preset timing; And, detect whether the timing of the first serial clock signal sent by the management controller of the server is consistent with the preset serial clock signal timing in the preset timing.

5. The server communication method according to claim 1, wherein After detecting whether the timing of the first communication signal sent by the management controller of the server is consistent with the preset timing, it further includes: If the timing of the first communication signal sent by the management controller of the server is inconsistent with the preset timing, screen out the target timing error type corresponding to the first communication signal timing from the custom timing error types in the local power adaptation list; Send the communication error message corresponding to the target timing error type to the management controller of the server, so that the management controller reports the communication error message to the system log.

6. The server communication method according to claim 1, wherein It further includes: When the timing of the second communication signal sent by the power supply is inconsistent with the preset timing, an action instruction is sent to the power supply so that the power supply performs corresponding actions on itself based on the action instruction; the action instruction includes a signal restart instruction.

7. The server communication method according to any one of claims 1 to 6, characterized in that, It further includes: Using a preset firmware update warning type library; Based on the updated warning type library, the custom timing error types in the local power supply adaptation list are updated in real time.

8. A server communication device, characterized in that, Applied to a microcontroller unit, it includes: An information acquisition module for acquiring the power supply configuration information after the power supply is powered on; A first detection module for detecting whether the timing of the first communication signal sent by the management controller of the server is consistent with the preset timing if the power supply configuration information is in the power supply adaptation list corresponding to the server; A communication instruction sending module for sending a communication instruction to the power supply if the timing of the first communication signal sent by the management controller of the server is consistent with the preset timing; A second detection module for acquiring the communication data and the second communication signal timing sent by the power supply based on the communication instruction, and detecting whether the timing of the second communication signal sent by the power supply is consistent with the preset timing; A communication data sending module for sending the communication data to the management controller of the server if the timing of the second communication signal sent by the power supply is consistent with the preset timing.

9. An electronic device, characterized in that, It includes: A memory for storing a computer program; A processor for implementing the steps of the server communication method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that, A computer program is stored in the computer-readable storage medium, wherein the computer program implements the steps of the server communication method according to any one of claims 1 to 7 when executed by a processor.

Citation Information

Patent Citations

  • Internet of things-based novel vehicle detection device

    CN106023643A

  • Server power supply module sequential control method, system and device

    CN114442784A

  • Displaying device and controlling method thereof

    US20230343281A1