CN116449800A - Control logic switching method, device, equipment and medium - Google Patents

Control logic switching method, device, equipment and medium Download PDF

Info

Publication number
CN116449800A
CN116449800A CN202310413373.0A CN202310413373A CN116449800A CN 116449800 A CN116449800 A CN 116449800A CN 202310413373 A CN202310413373 A CN 202310413373A CN 116449800 A CN116449800 A CN 116449800A
Authority
CN
China
Prior art keywords
management controller
programmable logic
complex programmable
logic device
baseboard management
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310413373.0A
Other languages
Chinese (zh)
Inventor
魏旭
赵现普
李岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN202310413373.0A priority Critical patent/CN116449800A/en
Publication of CN116449800A publication Critical patent/CN116449800A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0259Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the response to fault detection
    • G05B23/0286Modifications to the monitored process, e.g. stopping operation or adapting control
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Hardware Redundancy (AREA)

Abstract

The application discloses a control logic switching method, a control logic switching device and a control logic switching medium, and relates to the technical field of redundancy control. Acquiring temperature information of a main board of an edge server; controlling a baseboard management controller or a complex programmable logic device to output a driving signal to a fan according to the temperature information; judging whether the baseboard management controller or the complex programmable logic device has faults or not; if yes, the complex programmable logic device or the baseboard management controller is switched to output a driving signal to the fan so as to maintain the heat dissipation of the fan. Therefore, the scheme controls two groups of mutually redundant fan control logics respectively formed by the baseboard management controller and the complex programmable logic device through the singlechip, can realize the noninductive switching of the fan control logics when the baseboard management controller or the complex programmable logic device fails, avoids the out-of-control fan rotating speed caused by the failure of the control logics, realizes the reliable control of the fan rotating speed, and ensures the stable and efficient heat dissipation of the edge server.

Description

Control logic switching method, device, equipment and medium
Technical Field
The present disclosure relates to the field of redundant control technologies, and in particular, to a control logic switching method, device, apparatus, and medium.
Background
The air cooling heat dissipation scheme of the server is not separated from a fan, and the fan is used as a core component of air cooling heat dissipation and is extremely important for heat dissipation of the server. While edge servers are typically used by businesses and specific industrial services, users may come into close proximity with the edge servers during operation of the edge servers and are therefore very sensitive to fan noise. At present, the edge server obtains the temperature value on the main board of the server through a baseboard management controller (Baseboard Manager Controller, BMC) and controls the rotating speed of the cooling fan accordingly, so that the purpose of cooling the server is achieved.
However, when BMC firmware upgrades or BMC fails, the fan may run at a maximum or fixed speed due to failure of the fan control logic. The fan is very noisy when running at maximum speed, seriously affecting user experience, and running at fixed speed may affect server performance and operation of service due to insufficient heat dissipation.
In view of the above-mentioned problems, how to realize the non-inductive switching of the fan control logic when the edge server cooling fan control logic fails, so as to avoid influencing the service and the user of the edge server is a problem to be solved by those skilled in the art.
Disclosure of Invention
The purpose of the application is to provide a control logic switching method, a device, equipment and a medium, so that when an edge server cooling fan control logic fails, the fan control logic is switched in a noninductive manner, and influence on edge server service and users is avoided.
In order to solve the technical problems, the application provides a control logic switching method which is applied to a singlechip; the substrate management controller, the complex programmable logic device and the singlechip in the edge server are in communication connection; the baseboard management controller and the complex programmable logic device are respectively connected with a fan; the method comprises the following steps:
acquiring temperature information of the edge server main board;
controlling the baseboard management controller or the complex programmable logic device to output a driving signal to the fan according to the temperature information so as to drive the fan to radiate heat;
judging whether the baseboard management controller or the complex programmable logic device has faults or not;
and if the baseboard management controller or the complex programmable logic device is determined to be faulty, switching the complex programmable logic device or the baseboard management controller to output the driving signal to the fan so as to maintain the heat dissipation of the fan.
Preferably, said determining whether said baseboard management controller or said complex programmable logic device has failed comprises:
judging whether a first heartbeat signal transmitted by the baseboard management controller is received or not;
if the first heartbeat signal is received, confirming that the baseboard management controller does not have a fault;
if the first heartbeat signal is not received, confirming that the baseboard management controller fails;
judging whether a second heartbeat signal transmitted by the complex programmable logic device is received or not;
if the second heartbeat signal is received, confirming that the complex programmable logic device does not have a fault;
and if the second heartbeat signal is not received, confirming that the complex programmable logic device fails.
Preferably, before said determining whether the baseboard management controller or the complex programmable logic device fails, after said controlling the baseboard management controller or the complex programmable logic device to output a driving signal to the fan according to the temperature information, the method further comprises:
and controlling the complex programmable logic device to acquire the fan control information of the driving signal according to a preset period, or controlling the baseboard management controller to acquire the fan control information of the driving signal according to the preset period.
Preferably, said switching said complex programmable logic device or said baseboard management controller to output said driving signal to said fan comprises:
and controlling the complex programmable logic device to output the driving signal to the fan according to the fan control information, or controlling the baseboard management controller to output the driving signal to the fan according to the fan control information.
Preferably, said switching said complex programmable logic device or said baseboard management controller to output said driving signal to said fan comprises:
controlling a multiplexer to switch the complex programmable logic device or the baseboard management controller to output the driving signal to the fan;
the two input ends of the multiplexer are respectively connected with the baseboard management controller and the complex programmable logic device, the output end of the multiplexer is connected with the fan, and the signal end of the multiplexer is connected with the singlechip.
Preferably, after determining the baseboard management controller fault or the complex programmable logic device fault, the method further comprises:
and outputting prompt information of the fault of the baseboard management controller or the fault of the complex programmable logic device.
Preferably, after determining the baseboard management controller fault or the complex programmable logic device fault, the method further comprises:
generating a fault log of the baseboard management controller or a fault log of the complex programmable logic device;
and correspondingly analyzing the fault reason of the baseboard management controller or the fault reason of the complex programmable logic device according to the fault log of the baseboard management controller or the fault log of the complex programmable logic device.
In order to solve the technical problems, the application also provides a control logic switching device which is applied to the singlechip; the substrate management controller, the complex programmable logic device and the singlechip in the edge server are in communication connection; the baseboard management controller and the complex programmable logic device are respectively connected with a fan; the device comprises:
the acquisition module is used for acquiring the temperature information of the edge server main board;
the output control module is used for controlling the baseboard management controller or the complex programmable logic device to output a driving signal to the fan according to the temperature information so as to drive the fan to dissipate heat;
the judging module is used for judging whether the baseboard management controller or the complex programmable logic device has faults or not;
And the output switching module is used for switching the complex programmable logic device or the baseboard management controller to output the driving signal to the fan so as to maintain the heat dissipation of the fan if the baseboard management controller or the complex programmable logic device is determined to be faulty.
In order to solve the above technical problem, the present application further provides a control logic switching device, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the control logic switching method when executing the computer program.
In order to solve the above technical problem, the present application further provides a computer readable storage medium, where a computer program is stored, where the computer program implements the steps of the control logic switching method when executed by a processor.
The control logic switching method provided by the application is applied to a singlechip; the singlechip is in communication connection with the baseboard management controller and the complex programmable logic device in the edge server; the baseboard management controller and the complex programmable logic device are respectively connected with the fan; the method comprises the steps of obtaining temperature information of a main board of an edge server; controlling the baseboard management controller or the complex programmable logic device to output a driving signal to the fan according to the temperature information so as to drive the fan to dissipate heat; judging whether the baseboard management controller or the complex programmable logic device has faults or not; if the failure of the baseboard management controller or the failure of the complex programmable logic device is determined, the complex programmable logic device or the baseboard management controller is switched to output a driving signal to the fan so as to maintain the heat dissipation of the fan. Therefore, the scheme controls two groups of mutually redundant fan control logics respectively formed by the baseboard management controller and the complex programmable logic device through the singlechip, can realize the noninductive switching of the fan control logics when the baseboard management controller or the complex programmable logic device fails, avoids the out-of-control fan rotating speed caused by the failure of the control logics, realizes the reliable control of the fan rotating speed, and ensures the stable and efficient heat dissipation of the edge server.
In addition, the embodiment of the application also provides a control logic switching device, equipment and medium, and the effects are the same as those of the control logic switching device.
Drawings
For a clearer description of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described, it being apparent that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a control logic switching method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of a redundancy backup scheme for fan control logic according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a control logic switching device according to an embodiment of the present application;
fig. 4 is a schematic diagram of a control logic switching device according to an embodiment of the present application.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments herein without making any inventive effort are intended to fall within the scope of the present application.
The core of the application is to provide a control logic switching method, a device, equipment and a medium, which can realize the noninductive switching of fan control logic when the cooling fan control logic of an edge server fails, and avoid influencing the service of the edge server and users.
In order to provide a better understanding of the present application, those skilled in the art will now make further details of the present application with reference to the drawings and detailed description.
At present, a fan is taken as a core component for air cooling and heat dissipation, and is extremely important for heat dissipation of a server. The current server obtains the temperature value on the main board through the BMC to control the rotating speed of the fan so as to achieve the purpose of heat dissipation. While edge servers are typically used by businesses and specific industrial services, users may come into close proximity with the edge servers during operation of the edge servers and are therefore very sensitive to fan noise. However, when the BMC is firmware upgraded or the BMC fails, the fan may operate at a maximum or fixed speed due to failure of the fan control logic. The fan is very noisy when running at maximum speed, seriously affecting user experience, and running at fixed speed may affect server performance and operation of service due to insufficient heat dissipation. Therefore, the embodiment of the application provides a control logic switching method, which can realize the noninductive switching of the fan control logic when the cooling fan control logic of the edge server fails, and avoid influencing the service of the edge server and users. It should be noted that, the application scenario of the control logic switching method provided in the embodiment of the present application is an edge server, and in this embodiment, the application scenario of the control logic switching method is not limited, and the application scenario can be applied to other scenarios requiring control logic switching of a fan according to specific situations, and according to specific implementation situations.
Specifically, the control logic switching method provided by the application is applied to a single chip microcomputer, the single chip microcomputer can be arranged inside an edge server and can also be arranged outside the edge server, the setting position and the specific type of the single chip microcomputer are not limited, and the control logic switching method is determined according to specific implementation conditions. The substrate management controller, the complex programmable logic device and the singlechip in the edge server are all in communication connection; the baseboard management controller and the complex programmable logic device are respectively connected with the fan. It is understood that the fan is a cooling fan of the edge server.
The baseboard management controller, the BMC, is a specialized service processor that uses sensors to monitor the status of a computer, web server, or other hardware driven device and communicates with the system administrator via separate connection lines. The BMC is part of the intelligent platform control interface (Intelligent Platform Management Interface, IPMI) and is typically contained within a motherboard or main circuit board of the device being monitored. In this embodiment, the edge server has a baseboard management controller built in.
A complex programmable logic device (Complex Programmable Logic Device, CPLD) is a more complex logic element than a programmable logic device (Programmable Logic Device, PLD). A CPLD is a digital integrated circuit in which a user constructs logic functions by himself as required. The basic design method is to use integrated development software platform, using schematic diagram, hardware description language and other methods to generate corresponding target file, and transmitting code to target chip through downloading cable to realize designed digital system. In this embodiment, the edge server is built with a complex programmable logic device.
It should be noted that, in this embodiment, the specific connection modes of the single chip microcomputer, the baseboard management controller and the complex programmable logic device are not limited, and depend on the specific implementation situation. As a preferred embodiment, the three may be connected in an implementation by a bi-directional two-wire synchronous serial bus (Inter-Integrated Circuit, I2C). Among them, the I2C bus is a simple serial bus that requires only two wires to transfer information between devices connected to the bus. Based on the above structure, fig. 1 is a flowchart of a control logic switching method according to an embodiment of the present application. As shown in fig. 1, the method includes:
s10: and acquiring temperature information of the edge server main board.
In specific implementation, the singlechip acquires temperature information of the edge server mainboard through a temperature sensor arranged on the edge server mainboard. It can be understood that in this embodiment, the type of the temperature sensor is not limited, and the connection mode of the temperature sensor and the singlechip is also not limited, which depends on the specific implementation situation.
S11: and controlling the baseboard management controller or the complex programmable logic device to output a driving signal to the fan according to the temperature information so as to drive the fan to dissipate heat.
Further, the singlechip controls the baseboard management controller or the complex programmable logic device to output a driving signal to the fan according to the temperature information so as to drive the fan to dissipate heat.
It should be noted that at the same time, only one of the baseboard management controller and the complex programmable logic device is able to output a drive signal to the fan, the singlechip controls the baseboard management controller to output a driving signal to the fan, or controls the complex programmable logic device to output the driving signal to the fan according to the temperature information. In particular implementations, a default device may be set that outputs the drive signal, such as by a baseboard management controller to the fan. The default device for outputting the driving signal is not limited in this embodiment, and depends on the specific implementation.
In addition, the driving signal is not limited in this embodiment, and may be a pulse width modulation (Pulse Width Modulation, PWM) signal, or may be other signals, depending on the specific implementation.
S12: and judging whether the baseboard management controller or the complex programmable logic device has faults or not. If yes, go to step S13, if not, go to step S14.
Since the device outputting the driving signal may malfunction during the execution of the fan control logic, in order to avoid the failure of the fan control, it is also necessary to determine whether the device malfunctions. Specifically, the singlechip judges whether the baseboard management controller or the complex programmable logic device has faults or not. In this embodiment, a specific manner of determining whether the baseboard management controller or the complex programmable logic device has a fault is not limited, and depends on a specific implementation situation.
S13: the switching complex programmable logic device or baseboard management controller outputs driving signals to the fan to maintain the heat dissipation of the fan.
S14: the current control logic continues to execute and ends.
Finally, when the failure of the baseboard management controller or the complex programmable logic device is confirmed, the complex programmable logic device or the baseboard management controller is switched to output a driving signal to the fan so as to maintain the heat dissipation of the fan. And when the baseboard management controller or the complex programmable logic device is confirmed to fail, continuing to execute the current control logic and ending judgment.
It can be understood that, since only one device can output the driving signal to the fan at the same time, when the baseboard management controller outputs the driving signal and confirms that the baseboard management controller fails, in order to avoid failure of the fan control logic, the singlechip switches the complex programmable logic device to output the driving signal to the fan so as to maintain heat dissipation of the fan. When the complex programmable logic device outputs the driving signal and the fault of the complex programmable logic device is confirmed, in order to avoid the failure of the fan control logic, the singlechip is used for switching the baseboard management controller to output the driving signal to the fan so as to maintain the heat dissipation of the fan. It should be noted that, in the present embodiment, the specific process of switching the complex programmable logic device or the baseboard management controller to output the driving signal to the fan is not limited, and depends on the specific implementation.
In this embodiment, the control logic switching method is applied to the singlechip; the singlechip is in communication connection with the baseboard management controller and the complex programmable logic device in the edge server; the baseboard management controller and the complex programmable logic device are respectively connected with the fan; the method comprises the steps of obtaining temperature information of a main board of an edge server; controlling the baseboard management controller or the complex programmable logic device to output a driving signal to the fan according to the temperature information so as to drive the fan to dissipate heat; judging whether the baseboard management controller or the complex programmable logic device has faults or not; if the failure of the baseboard management controller or the failure of the complex programmable logic device is determined, the complex programmable logic device or the baseboard management controller is switched to output a driving signal to the fan so as to maintain the heat dissipation of the fan. Therefore, the scheme controls two groups of mutually redundant fan control logics respectively formed by the baseboard management controller and the complex programmable logic device through the singlechip, can realize the noninductive switching of the fan control logics when the baseboard management controller or the complex programmable logic device fails, avoids the out-of-control fan rotating speed caused by the failure of the control logics, realizes the reliable control of the fan rotating speed, and ensures the stable and efficient heat dissipation of the edge server.
In order to realize the determination of whether the baseboard management controller or the complex programmable logic device has a fault, on the basis of the foregoing embodiment, as a preferred embodiment, the determining whether the baseboard management controller or the complex programmable logic device has a fault includes:
judging whether a first heartbeat signal transmitted by a baseboard management controller is received or not;
if the first heartbeat signal is received, confirming that the baseboard management controller does not have a fault;
if the first heartbeat signal is not received, confirming that the baseboard management controller fails;
judging whether a second heartbeat signal transmitted by the complex programmable logic device is received or not;
if the second heartbeat signal is received, confirming that the complex programmable logic device does not have a fault;
and if the second heartbeat signal is not received, confirming that the complex programmable logic device fails.
In a specific implementation, the singlechip detects a first heartbeat signal transmitted by the baseboard management controller and a second heartbeat signal transmitted by the complex programmable logic device at the same time. When the first heartbeat signal is not received, the singlechip confirms that the fan control logic of the baseboard management controller is invalid, and the baseboard management controller can be subjected to firmware upgrading or has faults; when the second heartbeat signal is not received, the singlechip confirms that the fan control logic of the complex programmable logic device is invalid, and the complex programmable logic device may be in fault.
It should be noted that, in this embodiment, the specific types of the first heartbeat signal and the second heartbeat signal are not limited, and depend on the specific implementation. As a preferred embodiment, the first and second heartbeat signals may be specifically watchdog (watch) signals. A watchdog is essentially a timer circuit, typically having an input called a "watchdog" and an output, typically connected to a reset terminal of another part, typically a single-chip microcomputer. The function of the watchdog is to periodically check the internal condition of the chip and send a restart signal to the chip once an error occurs. The watchdog command has the highest priority among interrupts of the program. Therefore, in this embodiment, the determination of the failure of the baseboard management controller or the complex programmable logic device can be implemented according to whether the corresponding watchdog signal is received.
In particular, in order to realize the noninductive switching of the fan control logic, it is necessary to ensure the uniformity of the fan rotation speed before and after the switching of the control logic, and correspondingly, it is necessary to maintain the uniformity of the fan control information of the driving signals before and after the switching of the control logic, so as to realize the noninductive switching of the fan control logic. Therefore, on the basis of the above embodiment, as a preferred embodiment, before determining whether the baseboard management controller or the complex programmable logic device has failed, after controlling the baseboard management controller or the complex programmable logic device to output the driving signal to the fan according to the temperature information, the method further includes:
The control complex programmable logic device obtains the fan control information of the driving signal according to a preset period, or the control baseboard management controller obtains the fan control information of the driving signal according to the preset period.
In an implementation, when the fan control logic is executed normally, the fan control information of the driving signal at this time is backed up through the communication connection between the baseboard management controller and the complex programmable logic device.
For example, when the baseboard management controller executes the fan control logic, the complex programmable logic device backs up the fan control information of the driving signal output by the baseboard management controller at this time according to a preset period through the I2C bus with the baseboard management controller. Since the driving signal may be a PWM signal, the corresponding fan control information may be a duty cycle of the PWM signal. It should be noted that the preset period is not limited in this embodiment, and depends on the specific implementation. Preferably, the preset period may be set to 10ms, i.e., the complex programmable logic device acquires and backs up the duty cycle of the current PWM signal every 10 ms.
Correspondingly, as a preferred embodiment, switching the complex programmable logic device or the baseboard management controller to output the driving signal to the fan comprises:
The control complex programmable logic device outputs a driving signal to the fan according to the fan control information, or the control baseboard management controller outputs the driving signal to the fan according to the fan control information.
In a specific implementation, when switching the fan control logic to the complex programmable logic device, the singlechip controls the complex programmable logic device and outputs a driving signal to the fan according to the fan control information backed up before, and the fan control information of the driving signal is the same as the fan control information of the driving signal of the baseboard management controller before at the moment, so that the noninductive switching of the fan control logic is ensured. Similarly, when the fan control logic is switched to the baseboard management controller, the singlechip controls the baseboard management controller to output a driving signal to the fan according to the fan control information backed up before, and the fan control information of the driving signal is the same as the fan control information of the driving signal of the complex programmable logic device before at the moment, so that the noninductive switching of the fan control logic is ensured.
In order to better implement switching of the fan control logic, based on the above embodiments, as a preferred embodiment, switching the complex programmable logic device or the baseboard management controller to output the driving signal to the fan includes:
Controlling the multiplexer to switch the complex programmable logic device or the baseboard management controller to output a driving signal to the fan;
the two input ends of the multiplexer are respectively connected with the baseboard management controller and the complex programmable logic device, the output end of the multiplexer is connected with the fan, and the signal end of the multiplexer is connected with the singlechip.
Fig. 2 is a schematic diagram of a redundancy backup scheme for fan control logic according to an embodiment of the present application. As shown in fig. 2, to better implement the switching of the fan control logic, the cooperation of multiplexers (mux) is also required. It will be appreciated that the multiplexer is built into the edge server.
Specifically, two input ends of the multiplexer are respectively connected with the baseboard management controller and the complex programmable logic device, an output end of the multiplexer is connected with the fan, and a signal end of the multiplexer is connected with the singlechip. In the switching process of the fan control logic, the singlechip controls the multiplexer to output a drive signal from one to another, so that the complex programmable logic device or the baseboard management controller is switched to output the drive signal to the fan. It will be appreciated that the multiplexer in this embodiment is embodied as a 2:1 multiplexer. Thereby realizing more accurate switching of fan control logic.
In order to prompt the user that the fan control logic is changed and the device fails, on the basis of the above embodiment, as a preferred embodiment, after determining the failure of the baseboard management controller or the failure of the complex programmable logic device, the method further includes:
and outputting prompt information of the fault of the baseboard management controller or the fault of the complex programmable logic device.
Specifically, after the failure of the baseboard management controller or the failure of the complex programmable logic device is determined, the prompt information of the failure of the baseboard management controller or the failure of the complex programmable logic device is output, so that a user is prompted that the fan control logic is changed, and meanwhile, the prompt of the failure of the device can be realized, and the user can better grasp the running condition of the current edge server.
Further, as a preferred embodiment, after determining the failure of the baseboard management controller or the failure of the complex programmable logic device, the method further includes:
generating a fault log of the baseboard management controller or a fault log of the complex programmable logic device;
and correspondingly analyzing the fault reasons of the baseboard management controller or the fault reasons of the complex programmable logic device according to the fault logs of the baseboard management controller or the fault logs of the complex programmable logic device.
Specifically, after confirming the fault of the baseboard management controller or the fault of the complex programmable logic device, in order to realize fault analysis, a fault log of the baseboard management controller or a fault log of the complex programmable logic device is specifically generated, and the fault cause of the baseboard management controller or the fault cause of the complex programmable logic device is correspondingly analyzed according to the fault log of the baseboard management controller or the fault log of the complex programmable logic device, so that the fault analysis of the fault device of the edge server is realized, and the safety of the edge server is improved.
In the above embodiments, the control logic switching method is described in detail, and the present application further provides a corresponding embodiment of the control logic switching device.
Fig. 3 is a schematic diagram of a control logic switching device according to an embodiment of the present application. The device is applied to a singlechip; the substrate management controller and the complex programmable logic device in the edge server are in communication connection with the singlechip; the baseboard management controller and the complex programmable logic device are respectively connected with the fan; as shown in fig. 3, the control logic switching device includes:
and the acquiring module 10 is used for acquiring the temperature information of the edge server main board.
The output control module 11 is used for controlling the baseboard management controller or the complex programmable logic device to output a driving signal to the fan according to the temperature information so as to drive the fan to dissipate heat.
A judging module 12, configured to judge whether the baseboard management controller or the complex programmable logic device has a fault.
And the output switching module 13 is configured to switch the complex programmable logic device or the baseboard management controller to output a driving signal to the fan to maintain heat dissipation of the fan if the baseboard management controller or the complex programmable logic device is determined to be faulty.
As a preferred embodiment, the judging module includes:
the first receiving judging module is used for judging whether a first heartbeat signal transmitted by the baseboard management controller is received or not; if the first heartbeat signal is received, confirming that the baseboard management controller does not have a fault; if the first heartbeat signal is not received, confirming that the baseboard management controller is out of order.
The second receiving judging module is used for judging whether a second heartbeat signal transmitted by the complex programmable logic device is received or not; if the second heartbeat signal is received, confirming that the complex programmable logic device does not have a fault; and if the second heartbeat signal is not received, confirming that the complex programmable logic device fails.
As a preferred embodiment, further comprising:
a fan control information acquisition module for controlling the baseboard management controller or the complex programmable logic device according to the temperature information before judging whether the baseboard management controller or the complex programmable logic device has faults
After the logic device outputs the driving signal to the fan, the complex programmable logic device is controlled to acquire the fan control information of the driving signal according to a preset period, or the baseboard management controller is controlled to acquire the fan control information of the driving signal according to the preset period.
As a preferred embodiment, the output switching module is specifically configured to control the complex programmable logic device to output a driving signal to the fan according to the fan control information, or control the baseboard management controller to output the driving signal to the fan according to the fan control information.
As a preferred embodiment, the output switching module is specifically configured to control the multiplexer to switch the complex programmable logic device or the baseboard management controller to output the driving signal to the fan;
the two input ends of the multiplexer are respectively connected with the baseboard management controller and the complex programmable logic device, the output end of the multiplexer is connected with the fan, and the signal end of the multiplexer is connected with the singlechip.
As a preferred embodiment, further comprising:
and the prompt information output module is used for outputting prompt information of the fault of the baseboard management controller or the fault of the complex programmable logic device after determining the fault of the baseboard management controller or the fault of the complex programmable logic device.
As a preferred embodiment, further comprising:
the fault log generation module is used for generating a fault log of the baseboard management controller or a fault log of the complex programmable logic device after determining the fault of the baseboard management controller or the fault of the complex programmable logic device;
the fault reason analysis module is used for correspondingly analyzing the fault reason of the baseboard management controller or the fault reason of the complex programmable logic device according to the fault log of the baseboard management controller or the fault log of the complex programmable logic device.
In this embodiment, the control logic switching device is applied to the singlechip; the singlechip is in communication connection with the baseboard management controller and the complex programmable logic device in the edge server; the baseboard management controller and the complex programmable logic device are respectively connected with the fan. The control logic switching device comprises an acquisition module, an output control module, a judging module and an output switching module. The control logic switching device can realize all the steps of the control logic switching method when in operation. The method comprises the steps of obtaining temperature information of a main board of an edge server; controlling the baseboard management controller or the complex programmable logic device to output a driving signal to the fan according to the temperature information so as to drive the fan to dissipate heat; judging whether the baseboard management controller or the complex programmable logic device has faults or not; if the failure of the baseboard management controller or the failure of the complex programmable logic device is determined, the complex programmable logic device or the baseboard management controller is switched to output a driving signal to the fan so as to maintain the heat dissipation of the fan. Therefore, the scheme controls two groups of mutually redundant fan control logics respectively formed by the baseboard management controller and the complex programmable logic device through the singlechip, can realize the noninductive switching of the fan control logics when the baseboard management controller or the complex programmable logic device fails, avoids the out-of-control fan rotating speed caused by the failure of the control logics, realizes the reliable control of the fan rotating speed, and ensures the stable and efficient heat dissipation of the edge server.
Fig. 4 is a schematic diagram of a control logic switching device according to an embodiment of the present application. As shown in fig. 4, the control logic switching device includes:
a memory 20 for storing a computer program.
A processor 21 for carrying out the steps of the method of controlling the switching of logic as mentioned in the above embodiments when executing a computer program.
The control logic switching device provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like.
Processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 may be implemented in hardware in at least one of a digital signal processor (Digital Signal Processor, DSP), a Field programmable gate array (Field-Programmable Gate Array, FPGA), a programmable logic array (Programmable Logic Array, PLA). The processor 21 may also comprise a main processor, which is a processor for processing data in an awake state, also called central processor (Central Processing Unit, CPU), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a graphics processor (Graphics Processing Unit, GPU) for use in connection with rendering and rendering of content to be displayed by the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (Artificial Intelligence, AI) processor for processing computing operations related to machine learning.
Memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used for storing a computer program 201, which, when loaded and executed by the processor 21, is capable of implementing the relevant steps of the control logic switching method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may further include an operating system 202, data 203, and the like, where the storage manner may be transient storage or permanent storage. The operating system 202 may include Windows, unix, linux, among others. The data 203 may include, but is not limited to, data related to a control logic switching method.
In some embodiments, the control logic switching device may further include a display 22, an input/output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
Those skilled in the art will appreciate that the architecture shown in fig. 4 is not limiting of the control logic switching device and may include more or fewer components than shown.
In this embodiment, the control logic switching device includes a memory and a processor. The memory is used for storing a computer program. The processor is arranged to implement the steps of the method of controlling the switching of logic as mentioned in the above embodiments when executing the computer program. The method comprises the steps of obtaining temperature information of a main board of an edge server; controlling the baseboard management controller or the complex programmable logic device to output a driving signal to the fan according to the temperature information so as to drive the fan to dissipate heat; judging whether the baseboard management controller or the complex programmable logic device has faults or not; if the failure of the baseboard management controller or the failure of the complex programmable logic device is determined, the complex programmable logic device or the baseboard management controller is switched to output a driving signal to the fan so as to maintain the heat dissipation of the fan. Therefore, the scheme controls two groups of mutually redundant fan control logics respectively formed by the baseboard management controller and the complex programmable logic device through the singlechip, can realize the noninductive switching of the fan control logics when the baseboard management controller or the complex programmable logic device fails, avoids the out-of-control fan rotating speed caused by the failure of the control logics, realizes the reliable control of the fan rotating speed, and ensures the stable and efficient heat dissipation of the edge server.
Finally, the present application also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps as described in the method embodiments above.
It will be appreciated that the methods of the above embodiments, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored on a computer readable storage medium. With such understanding, the technical solution of the present application, or a part contributing to the prior art or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium, performing all or part of the steps of the method described in the various embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In this embodiment, a computer program is stored on a computer readable storage medium, and when the computer program is executed by a processor, the steps described in the above method embodiments are implemented. The method comprises the steps of obtaining temperature information of a main board of an edge server; controlling the baseboard management controller or the complex programmable logic device to output a driving signal to the fan according to the temperature information so as to drive the fan to dissipate heat; judging whether the baseboard management controller or the complex programmable logic device has faults or not; if the failure of the baseboard management controller or the failure of the complex programmable logic device is determined, the complex programmable logic device or the baseboard management controller is switched to output a driving signal to the fan so as to maintain the heat dissipation of the fan. Therefore, the scheme controls two groups of mutually redundant fan control logics respectively formed by the baseboard management controller and the complex programmable logic device through the singlechip, can realize the noninductive switching of the fan control logics when the baseboard management controller or the complex programmable logic device fails, avoids the out-of-control fan rotating speed caused by the failure of the control logics, realizes the reliable control of the fan rotating speed, and ensures the stable and efficient heat dissipation of the edge server.
The method, the device, the equipment and the medium for switching the control logic provided by the application are described in detail. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it would be obvious to those skilled in the art that various improvements and modifications can be made to the present application without departing from the principles of the present application, and such improvements and modifications fall within the scope of the claims of the present application.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A control logic switching method is characterized by being applied to a singlechip; the substrate management controller, the complex programmable logic device and the singlechip in the edge server are in communication connection; the baseboard management controller and the complex programmable logic device are respectively connected with a fan; the method comprises the following steps:
acquiring temperature information of the edge server main board;
controlling the baseboard management controller or the complex programmable logic device to output a driving signal to the fan according to the temperature information so as to drive the fan to radiate heat;
judging whether the baseboard management controller or the complex programmable logic device has faults or not;
and if the baseboard management controller or the complex programmable logic device is determined to be faulty, switching the complex programmable logic device or the baseboard management controller to output the driving signal to the fan so as to maintain the heat dissipation of the fan.
2. The method of claim 1, wherein determining whether the baseboard management controller or the complex programmable logic device has failed comprises:
judging whether a first heartbeat signal transmitted by the baseboard management controller is received or not;
If the first heartbeat signal is received, confirming that the baseboard management controller does not have a fault;
if the first heartbeat signal is not received, confirming that the baseboard management controller fails;
judging whether a second heartbeat signal transmitted by the complex programmable logic device is received or not;
if the second heartbeat signal is received, confirming that the complex programmable logic device does not have a fault;
and if the second heartbeat signal is not received, confirming that the complex programmable logic device fails.
3. The control logic switching method according to claim 1, wherein before said determining whether the baseboard management controller or the complex programmable logic device is faulty, after said controlling the baseboard management controller or the complex programmable logic device to output a driving signal to the fan according to the temperature information, further comprising:
and controlling the complex programmable logic device to acquire the fan control information of the driving signal according to a preset period, or controlling the baseboard management controller to acquire the fan control information of the driving signal according to the preset period.
4. The control logic switching method of claim 3, wherein the switching the complex programmable logic device or the baseboard management controller to output the driving signal to the fan comprises:
and controlling the complex programmable logic device to output the driving signal to the fan according to the fan control information, or controlling the baseboard management controller to output the driving signal to the fan according to the fan control information.
5. The control logic switching method according to any one of claims 1 to 4, wherein the switching the complex programmable logic device or the baseboard management controller to output the driving signal to the fan comprises:
controlling a multiplexer to switch the complex programmable logic device or the baseboard management controller to output the driving signal to the fan;
the two input ends of the multiplexer are respectively connected with the baseboard management controller and the complex programmable logic device, the output end of the multiplexer is connected with the fan, and the signal end of the multiplexer is connected with the singlechip.
6. The control logic switching method of claim 1, further comprising, after determining the baseboard management controller failure or the complex programmable logic device failure:
And outputting prompt information of the fault of the baseboard management controller or the fault of the complex programmable logic device.
7. The control logic switching method of claim 6, further comprising, after determining the baseboard management controller failure or the complex programmable logic device failure:
generating a fault log of the baseboard management controller or a fault log of the complex programmable logic device;
and correspondingly analyzing the fault reason of the baseboard management controller or the fault reason of the complex programmable logic device according to the fault log of the baseboard management controller or the fault log of the complex programmable logic device.
8. The control logic switching device is characterized by being applied to a singlechip; the substrate management controller, the complex programmable logic device and the singlechip in the edge server are in communication connection; the baseboard management controller and the complex programmable logic device are respectively connected with a fan; the device comprises:
the acquisition module is used for acquiring the temperature information of the edge server main board;
the output control module is used for controlling the baseboard management controller or the complex programmable logic device to output a driving signal to the fan according to the temperature information so as to drive the fan to dissipate heat;
The judging module is used for judging whether the baseboard management controller or the complex programmable logic device has faults or not;
and the output switching module is used for switching the complex programmable logic device or the baseboard management controller to output the driving signal to the fan so as to maintain the heat dissipation of the fan if the baseboard management controller or the complex programmable logic device is determined to be faulty.
9. A control logic switching device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the control logic switching method according to any one of claims 1 to 7 when executing said computer program.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the control logic switching method according to any of claims 1 to 7.
CN202310413373.0A 2023-04-13 2023-04-13 Control logic switching method, device, equipment and medium Pending CN116449800A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310413373.0A CN116449800A (en) 2023-04-13 2023-04-13 Control logic switching method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310413373.0A CN116449800A (en) 2023-04-13 2023-04-13 Control logic switching method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN116449800A true CN116449800A (en) 2023-07-18

Family

ID=87133324

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310413373.0A Pending CN116449800A (en) 2023-04-13 2023-04-13 Control logic switching method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN116449800A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117967597A (en) * 2024-03-29 2024-05-03 苏州元脑智能科技有限公司 Fan control circuit, method, device, equipment and medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117967597A (en) * 2024-03-29 2024-05-03 苏州元脑智能科技有限公司 Fan control circuit, method, device, equipment and medium
CN117967597B (en) * 2024-03-29 2024-06-18 苏州元脑智能科技有限公司 Fan control circuit, method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN107122321B (en) Hardware repair method, hardware repair system, and computer-readable storage device
CN107479721B (en) Storage device, system and method for remote multicomputer switching technology
US10691185B2 (en) Cooling behavior in computer systems
JP2003150280A (en) Backup management system and method
WO2014013499A1 (en) System and method for operating system agnostic hardware validation
US8745367B2 (en) Electronic system, and preheating method and apparatus thereof
EP3739446B1 (en) Method and system for communication channels to management controller
CN111737064A (en) BMC system control method and device, storage medium and computer equipment
CN116449800A (en) Control logic switching method, device, equipment and medium
CN115617550A (en) Processing device, control unit, electronic device, method, and computer program
EP3528125B1 (en) Power supply unit fan recovery process
CN114116276A (en) BMC hang-up self-recovery method, system, terminal and storage medium
JP2003150279A (en) Management system and backup management method in computer system
CN115480884A (en) Chip, test monitoring method of chip and computer readable storage medium
US10572435B2 (en) Techniques of accessing serial console of BMC using host serial port
CN103135728B (en) Power supply start-up control method and system thereof
US10176142B2 (en) Techniques of accessing BMC terminals through serial port
US8312126B2 (en) Managing at least one computer node
US10191875B2 (en) Techniques of providing serial port in non-legacy system via embedded-system device
CN113312214B (en) Method, apparatus, electronic device and storage medium for operating computer
CN114168393B (en) Server testing method, system, equipment and medium
CN112732486B (en) Redundant firmware switching method, device, equipment and storage medium
CN116561031A (en) Interface replacement method, device and medium of substrate management control chip
CN116954972A (en) Fault positioning method, positioning device, terminal equipment and storage medium
CN116069442A (en) Information processing device, vehicle, and information processing method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination