Server control method, device, terminal equipment and readable storage medium

By introducing complex programmable logic devices into the server, simulating control pulses and sending them to them, it solves the dysfunction caused by the failure of the baseboard management controller, realizes independent power-on and power-off operations, reduces usage limitations and covers more scenarios, improving server reliability and user experience.

CN117235004BActive Publication Date: 2024-08-30SUZHOU POWERCORE TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311308537.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-10
Publication Date
2024-08-30
Estimated Expiration
2043-10-10

AI Technical Summary

Technical Problem

When the baseboard management controller fails, the existing server cannot normally complete the startup or shutdown function, resulting in high usage limitations and many application scenarios that cannot be covered in some scenarios.

Method used

By introducing complex programmable logic devices into the server, the interface signals of the baseboard management controller are used for logic and processing, the control pulses are simulated and sent to the complex programmable logic devices, and the functions to be performed are performed, including reducing the need for control during the startup or shutdown sequence. The dependence of the baseboard management controller utilizes the collaborative work of the voltage regulation module and the central processor to achieve independent power-on and power-off operations.

Benefits of technology

It effectively reduces the dependence on the baseboard management controller, ensures the normal implementation of functions, covers more application scenarios, and improves the reliability and user experience of the server.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117235004B
    Figure CN117235004B
Patent Text Reader

Abstract

The present invention provides a control method, device, terminal equipment and readable storage medium of a server. The server includes a baseboard management controller and a complex programmable logic device; the output signal of the first interface of the baseboard management controller and the trigger signal of the function key of the first function to be executed are input into the first interface of the complex programmable logic device after the first logic and processing; the control method includes: when the processing result of the first logic and processing is detected to be triggered, simulating the control pulse corresponding to the first function to be executed; sending the control pulse to the first interface of the complex programmable logic device to execute the first function to be executed. By implementing the present invention, when the baseboard management controller fails, its first interface has no output signal. At this time, it can still be triggered by the function key to execute the first function to be executed, which effectively reduces the dependence of the function to be executed on the baseboard management controller and ensures the normal realization of the function.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of server control, and in particular to a server control method, device, terminal equipment and computer-readable storage medium. Background Art

[0002] At present, the mainstream processor architecture generally has a power button (Power Button, abbreviated as PWR_BTN) and a reset button (Reset Button, abbreviated as RST_BTN), and it can also execute a power control signal (Sleep S5#, abbreviated as SLP_S5#). When the server system needs to start or shut down, the external button signal or related instructions it receives will be sent to the central processing unit (CPU), which processes these instructions and controls the power on or off of the system through the power control signal.

[0003] When an existing server performs some specific functions, the function keys of its processor are connected to a baseboard management controller (BMC). When the function keys are detected to be triggered, the BMC processes the trigger signal of the function keys and then sends the signal to a complex programmable logic device (CPLD). Therefore, the existing technology relies on the BMC to implement these functions. When the BMC fails, these functions cannot be completed normally, which causes certain limitations on the use of the server. Summary of the invention

[0004] The present invention provides a control method and device for a server, a terminal device and a computer-readable storage medium to solve the technical problem that the prior art has high limitations on the use of the server.

[0005] In order to solve the above technical problems, an embodiment of the present invention provides a control method for a server, wherein the server includes a baseboard management controller and a complex programmable logic device; wherein an output signal of a first interface of the baseboard management controller and a trigger signal of a function key of a first function to be executed are input into the first interface of the complex programmable logic device after a first logic AND processing;

[0006] The control method comprises:

[0007] When a trigger is detected in the processing result of the first logic and processing, simulating a control pulse corresponding to the first function to be executed;

[0008] The control pulse is sent to a first interface of the complex programmable logic device to execute the first function to be executed.

[0009] As a preferred solution, the server further includes a central processor, and when the first function to be executed is a power-on function for the server, sending the control pulse to the first interface of the complex programmable logic device to execute the first function to be executed includes:

[0010] Sending the control pulse to a first interface of the complex programmable logic device;

[0011] Determine the current operating state of the server, and when the operating state is a shutdown state, start the voltage regulation modules in sequence according to a first preset timing;

[0012] When the preset voltage regulation condition is met, the central processing unit is controlled to be initialized to realize the power-on function.

[0013] As a preferred solution, when the preset voltage regulation conditions are met, the central processing unit is controlled to initialize, including: when the last voltage regulation module turned on reaches the preset output standard, a system ready instruction is sent to the central processing unit through the complex programmable logic device, and an initialization instruction is sent to the central processing unit after a preset time period, so that the central processing unit responds to the initialization instruction and performs an initialization operation.

[0014] As a preferred solution, the server further includes a central processor, and when the first function to be executed is a shutdown function of the server, sending the control pulse to the first interface of the complex programmable logic device to execute the first function to be executed includes:

[0015] Sending the control pulse to a first interface of the complex programmable logic device;

[0016] Determine the current running state of the server, and when the running state is the power-on state, send a shutdown request signal to the central processing unit through the complex programmable logic device, so that the central processing unit responds to the shutdown request signal and controls the operating system of the server to perform a shutdown action;

[0017] When the central processing unit meets the preset change conditions, the central processing unit sends a shutdown signal to the complex programmable logic device, so that the complex programmable logic device responds to the shutdown signal, performs a power-off operation, and sequentially shuts down the voltage regulation module according to a second preset timing to achieve the shutdown function.

[0018] As a preferred solution, when the central processing unit meets a preset change condition, the central processing unit sends an execution shutdown signal to the complex programmable logic device, including: when it is detected that the state of the register of the central processing unit changes, the central processing unit sends an execution shutdown signal to the complex programmable logic device.

[0019] As a preferred solution, the output signal of the second interface of the baseboard management controller and the trigger signal of the function key of the second function to be executed are input into the second interface of the complex programmable logic device after a second logic AND processing;

[0020] The control method further comprises:

[0021] When the processing result of the second logic and processing is detected to be triggered, simulating a control pulse corresponding to the second function to be executed;

[0022] The control pulse is sent to a second interface of the complex programmable logic device to execute the second function to be executed.

[0023] As a preferred solution, each of the voltage regulating modules is respectively connected to the complex programmable logic device for communication, and the complex programmable logic device is also used to detect the output state of each of the voltage regulating modules.

[0024] Correspondingly, an embodiment of the present invention further provides a control device for a server, the server comprising a baseboard management controller and a complex programmable logic device; wherein an output signal of a first interface of the baseboard management controller and a trigger signal of a function key of a first function to be executed are input to the first interface of the complex programmable logic device after a first logic AND processing;

[0025] The control device comprises a simulation module and a control module; wherein,

[0026] The simulation module is used to simulate the control pulse corresponding to the first to-be-executed function when detecting that the processing result of the first logic and processing is triggered;

[0027] The control module is used to send the control pulse to the first interface of the complex programmable logic device to execute the first function to be executed.

[0028] As a preferred solution, the server further includes a central processor, and when the first function to be executed is a power-on function for the server, the control module sends the control pulse to the first interface of the complex programmable logic device to execute the first function to be executed, including:

[0029] The control module sends the control pulse to the first interface of the complex programmable logic device;

[0030] Determine the current operating state of the server, and when the operating state is a shutdown state, start the voltage regulation modules in sequence according to a first preset timing;

[0031] When the preset voltage regulation condition is met, the central processing unit is controlled to be initialized to realize the power-on function.

[0032] As a preferred solution, the control module controls the central processing unit to initialize when the preset voltage regulation conditions are met, including: when the last voltage regulation module turned on reaches the preset output standard, the control module sends a system ready instruction to the central processing unit through the complex programmable logic device, and sends an initialization instruction to the central processing unit after a preset time period, so that the central processing unit responds to the initialization instruction and performs an initialization operation.

[0033] As a preferred solution, the server further includes a central processor, and when the first to-be-executed function is a shutdown function of the server, the control module sends the control pulse to the first interface of the complex programmable logic device to execute the first to-be-executed function, including:

[0034] The control module sends the control pulse to the first interface of the complex programmable logic device;

[0035] Determine the current running state of the server, and when the running state is the power-on state, send a shutdown request signal to the central processing unit through the complex programmable logic device, so that the central processing unit responds to the shutdown request signal and controls the operating system of the server to perform a shutdown action;

[0036] When the central processing unit meets the preset change conditions, the central processing unit sends a shutdown signal to the complex programmable logic device, so that the complex programmable logic device responds to the shutdown signal, performs a power-off operation, and sequentially shuts down the voltage regulation module according to a second preset timing to achieve the shutdown function.

[0037] As a preferred embodiment, when the central processing unit meets the preset change conditions, the control module sends an execution shutdown signal to the complex programmable logic device through the central processing unit, including: when the control module detects that the state of the register of the central processing unit changes, the control module sends an execution shutdown signal to the complex programmable logic device through the central processing unit.

[0038] As a preferred solution, the output signal of the second interface of the baseboard management controller and the trigger signal of the function key of the second function to be executed are input into the second interface of the complex programmable logic device after a second logic AND processing;

[0039] The simulation module is also used to simulate the control pulse corresponding to the second to-be-executed function when detecting that the processing result of the second logic and processing is triggered;

[0040] The control module is further configured to send the control pulse to a second interface of the complex programmable logic device to execute the second function to be executed.

[0041] As a preferred solution, each of the voltage regulating modules is respectively connected to the complex programmable logic device for communication, and the complex programmable logic device is also used to detect the output state of each of the voltage regulating modules.

[0042] Correspondingly, an embodiment of the present invention further provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the server control method when executing the computer program.

[0043] Correspondingly, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the server control method.

[0044] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0045] An embodiment of the present invention provides a control method, apparatus, terminal device and computer-readable storage medium for a server, wherein the server includes a baseboard management controller and a complex programmable logic device; wherein an output signal of a first interface of the baseboard management controller and a trigger signal of a function key of a first function to be executed are input to the first interface of the complex programmable logic device after a first logic and processing; the control method includes: when a trigger of a processing result of the first logic and processing is detected, simulating a control pulse corresponding to the first function to be executed; and sending the control pulse to the first interface of the complex programmable logic device to execute the first function to be executed. In implementing the embodiment of the present application, the output signal of the first interface of the baseboard management controller and the trigger signal of the function button of the first function to be executed are input into the first interface of the complex programmable logic device after a first logical AND processing. When the baseboard management controller fails, the first interface of the baseboard management controller has no output signal. At this time, it can still be triggered by the function key of the first function to be executed, simulating the control pulse corresponding to the first function to be executed, thereby sending the control pulse to the complex programmable logic device to execute the first function to be executed, effectively reducing the dependence of the function to be executed on the baseboard management controller, ensuring the normal implementation of the function, and reducing the limitations on the use of the server; in addition, in some special occasions, when the server cannot use the baseboard management controller, it can also be triggered by the function key of the function to be executed, without being limited to the case of the baseboard management controller, thereby covering a wider range of application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 : A flow chart of an embodiment of a method for controlling a server provided by the present invention.

[0047] Figure 2 : A topological diagram showing an example of the timing control of the server provided by the present invention.

[0048] Figure 3 : A flow chart of another embodiment of the server control method provided by the present invention.

[0049] Figure 4 : A schematic diagram of the timing control topology of an embodiment of the server control method provided by the present invention.

[0050] Figure 5 : A signal timing diagram of an embodiment of the server startup method provided by the present invention.

[0051] Figure 6 : A signal timing diagram of an embodiment of the server shutdown method provided by the present invention.

[0052] Figure 7 : A structural diagram of an embodiment of a control device for a server provided by the present invention. DETAILED DESCRIPTION

[0053] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0054] Embodiment 1

[0055] First, some terms in this application are explained to facilitate understanding by those skilled in the art.

[0056] (1) Baseboard Management Controller: BMC is the abbreviation of Baseboard Management Controller, also known as the server remote management controller. As the "housekeeper" of the server, it undertakes part of the server remote control function.

[0057] (2) Complex Programmable Logic Device (CPLD), short for Complex Programmable Logic Device, is a digital integrated circuit that allows users to construct their own logic functions according to their needs.

[0058] (3) Central Processing Unit (CPU) is the abbreviation of Central Processing Unit. It is the computing and control core of the computer system and the final execution unit for information processing and program execution.

[0059] (4) Operating System, or OS, is an abbreviation of Operating System. It is a set of interrelated system software programs that manage and control device operations, use and run hardware and software resources, and provide public services to organize user interactions.

[0060] (5) Voltage regulator module, or VRM, is an abbreviation of Voltage Regulator Module. It is a module that provides a suitable supply voltage for the microprocessor. It can be directly soldered to the motherboard or installed in the form of a module daughter card. Since it can change and adjust the supply voltage, the same motherboard can be equipped with processors with different supply voltages.

[0061] (6) General Purpose Input / Output, or GPIO, is an abbreviation of General Purpose Input Output. It has the advantages of low power consumption, small package, low cost, simple wiring, etc., and can provide additional control and monitoring functions.

[0062] According to relevant technical records, when an existing server performs some specific functions, the corresponding function keys of its processor are connected to the baseboard management controller. When the server detects that these function keys are triggered, the baseboard management controller processes the trigger signal of the function keys and then sends the signal to the complex programmable logic device (CPLD). Therefore, the existing technology relies on the baseboard management controller when implementing these functions. When the baseboard management controller fails, these functions cannot be completed normally, which causes certain limitations to the use of the server.

[0063] For example, when executing the power-on function or the power-off function, it needs to be executed under the condition of BMC Active. If the baseboard management controller cannot be started normally, the server cannot be powered on or off normally.

[0064] For another example, in some special occasions, the server cannot use the baseboard management controller (not because of the baseboard management controller failure), and the existing technology cannot cover such scenarios.

[0065] As an example, for some servers whose processor architecture cannot execute the power button signal (Power Button, abbreviated as PWR_BTN), reset button signal (Reset_BTN, RST_BTN) and power control signal (Sleep S5#, abbreviated as SLP_S5#), they usually use a baseboard management controller to implement related functions. Figure 2 , Figure 2 This is a timing topology diagram of power control of a server without a power-on / off related signal architecture processor. It specifically includes:

[0066] The baseboard management controller and the central processing unit are connected via an eSPI bus, which is used for command interaction between the baseboard management controller and the central processing unit.

[0067] The baseboard management controller is provided with a power button (PWR_BTN) for inputting a power operation, and a reset button (RST_BTN) for inputting a reset operation.

[0068] The baseboard management controller and the complex programmable logic device are connected through the System_pwr_on signal, which is used to notify the complex programmable logic device to start or stop power supply; when the baseboard management controller receives a command to start up, this signal is set high, and the complex programmable logic device controls the voltage regulation module to start power supply; when the baseboard management controller receives a shutdown signal, this signal needs to be set low, and the complex programmable logic device controls the voltage regulation module to stop power supply.

[0069] There is a System_pwr_ok signal connection between the complex programmable logic device and the central processing unit. This signal is used to inform the central processing unit that all power supplies on the mainboard have reached the working standard and can be initialized.

[0070] A CPU_Reset signal is provided between the complex programmable logic device and the central processing unit, and this signal is used to reset the central processing unit.

[0071] A Power Enable signal (EN for short) is provided between the complex programmable logic device and the voltage regulation module, which is used to enable or stop the output of the voltage regulation module; there are multiple voltage regulation modules in a server system, and each voltage regulation module has an independent EN signal.

[0072] A Power Good signal (abbreviated as PGD) is provided between the complex programmable logic device and the voltage regulation module, which is used to obtain the output status of the voltage regulation module; there are multiple voltage regulation modules in a system, and each voltage regulation module has an independent PGD signal.

[0073] For one or more of the above technical issues, please refer to Figure 1 or Figure 3 , Figure 1 A control method for a server is provided in an embodiment of the present invention. The server includes a baseboard management controller and a complex programmable logic device, wherein an output signal of a first interface of the baseboard management controller and a trigger signal of a function key of a first function to be executed are input to the first interface of the complex programmable logic device after a first logic AND processing.

[0074] The control method steps S1 and S2; wherein,

[0075] Step S1, when it is detected that the processing result of the first logic and processing is triggered, simulate the control pulse corresponding to the first to-be-executed function.

[0076] Step S2: sending the control pulse to the first interface of the complex programmable logic device to execute the first function to be executed.

[0077] For further information, please refer to Figure 4 , Figure 4 A schematic diagram of a server timing control topology according to an implementation scheme provided in this embodiment.

[0078] in,

[0079] The baseboard management controller and the central processing unit are connected via an eSPI bus, which is used for command interaction between the baseboard management controller and the central processing unit.

[0080] The baseboard management controller performs the first logic AND processing on BMC-GPIO2 and PWR_BTN and sends it to CPLD-GPIO5, which is the system power on / off signal input. When the PWR_BTN button is pressed, or the baseboard management controller receives a power on / off command, a low pulse is generated by simulating a button action through BMC-GPIO1 (i.e., simulating the control pulse corresponding to the first function to be executed), triggering the system to execute the power on or off sequence.

[0081] On the other hand, this embodiment may also have a second function to be executed. The output signal of the second interface of the baseboard management controller and the trigger signal of the function key of the second function to be executed are input into the second interface of the complex programmable logic device after a second logic and processing; thus, the control method further includes: when the processing result of the second logic and processing is detected to be triggered, simulating a control pulse corresponding to the second function to be executed; sending the control pulse to the second interface of the complex programmable logic device to execute the second function to be executed.

[0082] For example, the baseboard management controller performs a second logic and post-processing through BMC-GPIO1 and RST_BTN, and sends it to CPLD-GPIO6 as the system RST signal input. When RST_BTN is pressed or the baseboard management controller receives the RST command, a key action is simulated through BMC-GPIO1 to generate a low pulse (i.e., simulating the control pulse corresponding to the second function to be executed), triggering a system reset. It should be noted that the above is only a preferred implementation. In actual application, the first function to be executed can be a power-on function, a power-off function or a reset function, and the second function to be executed can also be a power-on function, a power-off function or a reset function. It can be set according to the actual application scenario of the server. Regardless of the above-mentioned power-on function, power-off function or reset function, it can be triggered by the corresponding function button without going through the baseboard management controller, thereby removing the limitations it causes to the use of the server.

[0083] In addition, the complex programmable logic device is connected to the central processing unit through the System_pwr_ok signal, which is used to inform the central processing unit that all power supplies on the mainboard have reached the working standard and can be initialized.

[0084] A CPU_Reset signal is provided between the complex programmable logic device and the central processing unit, and this signal is used to reset the central processing unit.

[0085] A Power Enable signal (EN for short) is provided between the complex programmable logic device and the voltage regulation module, which is used to enable or stop the output of the voltage regulation module; and there are multiple voltage regulation modules in a server system, and each voltage regulation module has an independent EN signal.

[0086] A Power Good signal (abbreviated as PGD) is provided between the complex programmable logic device and the voltage regulation module, which is used to obtain the output status of the voltage regulation module. Each voltage regulation module has an independent PGD signal.

[0087] There is a Poweroff_Req signal (Power offRequest, shutdown request signal) between the CPLD and the CPU. In the power-on state, when the CPLD detects that the PWR_BTN button is pressed or detects the Power Off signal sent by the baseboard management controller, it notifies the CPU through the Poweroff_Req signal and requests shutdown; after receiving this signal, the CPU will notify the operating system to stop the work of related applications until the CPU is allowed to power off. This signal defaults to a high level after powering on, and sends a low level pulse to the CPU when a shutdown request occurs.

[0088] When the central processing unit receives the instruction from the operating system to cut off the power, it notifies the complex programmable logic device through the Poweroff_Act signal (PowerOff ACT, execution shutdown signal). The specific manifestation is to pull down the Poweroff_Act signal until the central processing unit is powered off; when the complex programmable logic device detects that this signal changes from a high level to a low level, it executes the relevant shutdown timing, such as lowering the level of the CPU_Reset signal and the System_pwr_ok signal.

[0089] In the implementation of the present application, for the above step S1, when the processing result of the first logic and processing is detected to be triggered, it means that PWR_BTN is pressed or the baseboard management controller receives a command, and at this time, a PWR_BTN key action (corresponding control pulse) is simulated through BMC-GPIO2. Thus, the operation corresponding to the power-on function or the power-off function in step S2 can be further performed.

[0090] As an example of this embodiment, the first function to be executed may be a power-on function or a power-off function. The server further includes a central processor. When the first function to be executed is a power-on function for the server, please refer to Figure 5, sending the control pulse to the first interface of the complex programmable logic device to execute the first to-be-executed function, comprising:

[0091] The control pulse is sent to the first interface CPLD-GPIO5 of the complex programmable logic device; then the current operating state of the server is determined, and when the operating state is the shutdown state, the power-on action is started, that is, the voltage regulation module is turned on in sequence according to the first preset timing; when the preset voltage regulation conditions are met, the central processing unit is controlled to initialize to realize the power-on function.

[0092] Furthermore, when the preset voltage regulation condition is met, the central processor is controlled to initialize, including: when the last voltage regulation module turned on reaches the preset output standard, the complex programmable logic device sends a system ready instruction (System_pwr_ok signal) to the central processor, and sends an initialization instruction to the central processor after a preset time period, that is, releases the CPU_Reset signal, so that the central processor responds to the initialization instruction and performs the initialization operation, and the startup process ends at this time. The implementation of this application uses the voltage regulation module as the preset voltage regulation condition to determine the timing of the central processor to initialize, which can ensure that all voltage regulation modules are in a ready state when the server is turned on, so as to ensure the normal and stable operation of each module after the server is turned on.

[0093] When the first to-be-executed function is a shutdown function for the server, please refer to Figure 6 , sending the control pulse to the first interface of the complex programmable logic device to execute the first to-be-executed function, comprising:

[0094] The control pulse is sent to the first interface CPLD-GPIO5 of the complex programmable logic device; the current operating state of the server is judged, and when the operating state is the power-on state, a shutdown request signal is sent to the central processing unit through the complex programmable logic device, so that the central processing unit responds to the shutdown request signal and controls the operating system of the server to perform a shutdown action; when the central processing unit meets the preset change conditions, an execution shutdown signal Poweroff_Act is sent to the complex programmable logic device through the central processing unit, so that the complex programmable logic device responds to the execution shutdown signal and performs a power-off operation, and the complex programmable logic device detects that the execution shutdown signal Poweroff_Act is set low, and pulls down the levels of the CPU_Reset signal and the System_pwr_ok signal; and the voltage regulation module is sequentially turned off according to a predetermined timing, and the levels of the CPU_Reset signal and the System_pwr_ok signal are pulled down to realize the shutdown function of the server.

[0095] Preferably, when the operating system controlling the server executes the shutdown action, it will set the relevant registers of the central processing unit. Therefore, when the central processing unit meets the preset change condition, the central processing unit sends the shutdown execution signal to the complex programmable logic device, including: when detecting that the state of the register of the central processing unit changes, the central processing unit sends the shutdown execution signal to the complex programmable logic device.

[0096] In the implementation of the embodiment of the present application, since the output signal of the first interface of the baseboard management controller and the trigger signal of the function key of the first function to be executed are input into the first interface of the complex programmable logic device after the first logic and processing, both the power-on function and the power-off function can be realized by triggering the corresponding function key without relying on the baseboard management controller. For example, before the server is turned on, the baseboard control manager and the complex programmable logic device need to be started first. The startup of the former takes 2 minutes, and the startup of the latter takes tens of milliseconds. If the function key is triggered, there is no need to wait for the startup of the baseboard control manager, which shortens the user's waiting time. Similarly, when it is necessary to shut down, there is no need to spend time to determine the operating status of the baseboard control manager, nor to wait for the startup of the baseboard control manager, etc., so that the user experience can be effectively improved; in addition, considering that the complex programmable logic device itself is more stable than the baseboard control manager, the reliability of the server system can be improved while reducing the dependence on the baseboard control manager.

[0097] It should be noted that, for the shutdown function, in addition to detecting the trigger of the processing result of the first logic and processing as described in step S1, a shutdown command can also be issued directly within the operating system. If a shutdown command is issued in the operating system, after the operating system executes the shutdown process, it will also set the registers of the central processing unit, and then it can detect the change in the state of the registers of the central processing unit, and send a second shutdown instruction to the complex programmable logic device through the central processing unit to realize the shutdown of the server.

[0098] Exemplarily, the register of the central processing unit may be CPU_STATUS_REG, whose default value is 4'b 0000, and the specific meanings of different values ​​include: 0000: SLEEP_S5, 0001: SLEEP_S3, 0010: SLEEP_S0. When it is detected that CPU_STATUS_REG changes from 0010 to 0000, a power-off operation is performed. By detecting the state change of the relevant register of the central processing unit as a preset change condition, it can be determined whether the operating system has completely executed the shutdown process, thereby ensuring that the shutdown process of the server will not be damaged because the operating system does not execute a complete shutdown process.

[0099] Accordingly, refer to Figure 7 The embodiment of the present invention further provides a control device for a server, the server comprising a baseboard management controller and a complex programmable logic device; wherein an output signal of a first interface of the baseboard management controller and a trigger signal of a function key of a first function to be executed are input into the first interface of the complex programmable logic device after a first logic AND processing;

[0100] The control device comprises a simulation module 101 and a control module 102; wherein,

[0101] The simulation module 101 is used to simulate the control pulse corresponding to the first to-be-executed function when detecting that the processing result of the first logic and processing is triggered;

[0102] The control module 102 is used to send the control pulse to the first interface of the complex programmable logic device to execute the first function to be executed.

[0103] As a preferred solution, the server further includes a central processor. When the first function to be executed is a power-on function for the server, the control module 102 sends the control pulse to the first interface of the complex programmable logic device to execute the first function to be executed, including:

[0104] The control module 102 sends the control pulse to the first interface of the complex programmable logic device;

[0105] Determine the current operating state of the server, and when the operating state is a shutdown state, start the voltage regulation modules in sequence according to a first preset timing;

[0106] When the preset voltage regulation condition is met, the central processing unit is controlled to be initialized to realize the power-on function.

[0107] As a preferred solution, the control module 102 controls the central processing unit to initialize when the preset voltage regulation conditions are met, including: when the last voltage regulation module turned on reaches the preset output standard, the control module 102 sends a system ready instruction to the central processing unit through the complex programmable logic device, and sends an initialization instruction to the central processing unit after a preset time period, so that the central processing unit responds to the initialization instruction and performs an initialization operation.

[0108] As a preferred solution, the server further includes a central processor, and when the first to-be-executed function is a shutdown function of the server, the control module sends the control pulse to the first interface of the complex programmable logic device to execute the first to-be-executed function, including:

[0109] The control module sends the control pulse to the first interface of the complex programmable logic device;

[0110] Determine the current running state of the server, and when the running state is the power-on state, send a shutdown request signal to the central processing unit through the complex programmable logic device, so that the central processing unit responds to the shutdown request signal and controls the operating system of the server to perform a shutdown action;

[0111] When the central processing unit meets the preset change conditions, the central processing unit sends a shutdown signal to the complex programmable logic device, so that the complex programmable logic device responds to the shutdown signal, performs a power-off operation, and sequentially shuts down the voltage regulation module according to a second preset timing to achieve the shutdown function.

[0112] As a preferred solution, the control module 102 sends an execution shutdown signal to the complex programmable logic device through the central processing unit when the central processing unit meets the preset change conditions, including: when the control module 102 detects that the state of the register of the central processing unit changes, the control module 102 sends an execution shutdown signal to the complex programmable logic device through the central processing unit.

[0113] As a preferred solution, the output signal of the second interface of the baseboard management controller and the trigger signal of the function key of the second function to be executed are input into the second interface of the complex programmable logic device after a second logic AND processing;

[0114] The simulation module 101 is further used to simulate the control pulse corresponding to the second to-be-executed function when detecting that the processing result of the second logic and processing is triggered;

[0115] The control module 102 is further configured to send the control pulse to a second interface of the complex programmable logic device to execute the second function to be executed.

[0116] As a preferred solution, each of the voltage regulating modules is respectively connected to the complex programmable logic device for communication, and the complex programmable logic device is also used to detect the output state of each of the voltage regulating modules.

[0117] Correspondingly, an embodiment of the present invention further provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the server control method when executing the computer program.

[0118] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal, and various interfaces and lines are used to connect various parts of the entire terminal.

[0119] The memory can be used to store the computer program, and the processor realizes various functions of the terminal by running or executing the computer program stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0120] Correspondingly, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the server control method.

[0121] Wherein, if the module integrated in the control device of the server is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0122] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0123] An embodiment of the present invention provides a control method, apparatus, terminal device and computer-readable storage medium for a server, wherein the server includes a baseboard management controller and a complex programmable logic device; wherein an output signal of a first interface of the baseboard management controller and a trigger signal of a function key of a first function to be executed are input to the first interface of the complex programmable logic device after a first logic and processing; the control method includes: when a trigger of a processing result of the first logic and processing is detected, simulating a control pulse corresponding to the first function to be executed; and sending the control pulse to the first interface of the complex programmable logic device to execute the first function to be executed. In implementing the embodiment of the present application, the output signal of the first interface of the baseboard management controller and the trigger signal of the function button of the first function to be executed are input into the first interface of the complex programmable logic device after a first logical AND processing. When the baseboard management controller fails, the first interface of the baseboard management controller has no output signal. At this time, it can still be triggered by the function key of the first function to be executed, simulating the control pulse corresponding to the first function to be executed, thereby sending the control pulse to the complex programmable logic device to execute the first function to be executed, effectively reducing the dependence of the function to be executed on the baseboard management controller, ensuring the normal implementation of the function, and reducing the limitations on the use of the server; in addition, in some special occasions, when the server cannot use the baseboard management controller, it can also be triggered by the function key of the function to be executed, without being limited to the case of the baseboard management controller, thereby covering a wider range of application scenarios.

[0124] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for controlling a server, It is characterized in that The server comprises a baseboard management controller and a complex programmable logic device; wherein an output signal of a first interface of the baseboard management controller and a trigger signal of a function key of a first function to be executed are input into the first interface of the complex programmable logic device after a first logic AND processing; The control method comprises: When a trigger is detected in the processing result of the first logic and processing, simulating a control pulse corresponding to the first function to be executed; Sending the control pulse to the first interface of the complex programmable logic device to execute the first to-be-executed function; The server further includes a central processor, and when the first to-be-executed function is a power-on function for the server, sending the control pulse to the first interface of the complex programmable logic device to execute the first to-be-executed function includes: Sending the control pulse to a first interface of the complex programmable logic device; Determine the current operating state of the server, and when the operating state is a shutdown state, start the voltage regulation modules in sequence according to a first preset timing; When the preset voltage regulation condition is met, the central processing unit is controlled to be initialized to realize the power-on function; When the first to-be-executed function is a shutdown function for the server, sending the control pulse to the first interface of the complex programmable logic device to execute the first to-be-executed function includes: Sending the control pulse to a first interface of the complex programmable logic device; Determine the current running state of the server, and when the running state is the power-on state, send a shutdown request signal to the central processing unit through the complex programmable logic device, so that the central processing unit responds to the shutdown request signal and controls the operating system of the server to perform a shutdown action; When the central processing unit meets the preset change conditions, the central processing unit sends a shutdown signal to the complex programmable logic device, so that the complex programmable logic device responds to the shutdown signal, performs a power-off operation, and sequentially shuts down the voltage regulation module according to a second preset timing to achieve the shutdown function.

2. A method for controlling a server as claimed in claim 1, It is characterized in that When the preset voltage regulation conditions are met, the central processing unit is controlled to initialize, including: when the last voltage regulation module turned on reaches the preset output standard, a system ready instruction is sent to the central processing unit through the complex programmable logic device, and an initialization instruction is sent to the central processing unit after a preset time period, so that the central processing unit responds to the initialization instruction and performs an initialization operation.

3. A method for controlling a server as claimed in claim 1, It is characterized in that When the central processing unit meets the preset change conditions, sending the execution shutdown signal to the complex programmable logic device through the central processing unit includes: when detecting that the state of the register of the central processing unit changes, sending the execution shutdown signal to the complex programmable logic device through the central processing unit.

4. A method for controlling a server as claimed in claim 1, It is characterized in that Each of the voltage regulating modules is respectively connected to the complex programmable logic device for communication, and the complex programmable logic device is also used to detect the output state of each of the voltage regulating modules.

5. A method for controlling a server as claimed in claim 1, It is characterized in that The output signal of the second interface of the baseboard management controller and the trigger signal of the function key of the second function to be executed are input into the second interface of the complex programmable logic device after a second logic AND processing; The control method further comprises: When the processing result of the second logic and processing is detected to be triggered, simulating a control pulse corresponding to the second function to be executed; The control pulse is sent to a second interface of the complex programmable logic device to execute the second function to be executed.

6. A control device for a server, It is characterized in that The server comprises a baseboard management controller and a complex programmable logic device; wherein an output signal of a first interface of the baseboard management controller and a trigger signal of a function key of a first function to be executed are input into the first interface of the complex programmable logic device after a first logic AND processing; The control device comprises a simulation module and a control module; wherein, The simulation module is used to simulate the control pulse corresponding to the first to-be-executed function when detecting that the processing result of the first logic and processing is triggered; The control module is used to send the control pulse to the first interface of the complex programmable logic device to execute the first to-be-executed function; The server further includes a central processor. When the first to-be-executed function is a power-on function for the server, the control module sends the control pulse to the first interface of the complex programmable logic device to execute the first to-be-executed function, including: The control module sends the control pulse to the first interface of the complex programmable logic device; Determine the current operating state of the server, and when the operating state is a shutdown state, start the voltage regulation modules in sequence according to a first preset timing; When the preset voltage regulation condition is met, the central processing unit is controlled to be initialized to realize the power-on function; When the first to-be-executed function is a shutdown function for the server, the control module sends the control pulse to the first interface of the complex programmable logic device to execute the first to-be-executed function, including: The control module sends the control pulse to the first interface of the complex programmable logic device; Determine the current running state of the server, and when the running state is the power-on state, send a shutdown request signal to the central processing unit through the complex programmable logic device, so that the central processing unit responds to the shutdown request signal and controls the operating system of the server to perform a shutdown action; When the central processing unit meets the preset change conditions, the central processing unit sends a shutdown signal to the complex programmable logic device, so that the complex programmable logic device responds to the shutdown signal, performs a power-off operation, and sequentially shuts down the voltage regulation module according to a second preset timing to achieve the shutdown function.

7. A terminal device, It is characterized in that The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the server control method according to any one of claims 1 to 5 when executing the computer program.

8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the server control method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Server-based trust detection method and device

    CN107798246A

  • Server physical key operation control system and method, and server management system

    CN108170245A