CN117235004A - Control method and device of server, terminal equipment and readable storage medium - Google Patents

Control method and device of server, terminal equipment and readable storage medium Download PDF

Info

Publication number
CN117235004A
CN117235004A CN202311308537.XA CN202311308537A CN117235004A CN 117235004 A CN117235004 A CN 117235004A CN 202311308537 A CN202311308537 A CN 202311308537A CN 117235004 A CN117235004 A CN 117235004A
Authority
CN
China
Prior art keywords
function
programmable logic
complex programmable
logic device
server
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
CN202311308537.XA
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.)
Hexin Technology Co ltd
Hexin Technology Suzhou Co ltd
Original Assignee
Hexin Technology Co ltd
Hexin Technology Suzhou 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 Hexin Technology Co ltd, Hexin Technology Suzhou Co ltd filed Critical Hexin Technology Co ltd
Priority to CN202311308537.XA priority Critical patent/CN117235004A/en
Publication of CN117235004A publication Critical patent/CN117235004A/en
Pending legal-status Critical Current

Links

Classifications

    • 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

  • Programmable Controllers (AREA)

Abstract

The invention provides a control method and device of a server, terminal equipment and a readable storage medium server, wherein the server comprises 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 is carried out; the control method comprises the following steps: simulating a control pulse corresponding to the first function to be executed when the triggering of the processing result of the first logic AND processing is detected; and sending the control pulse to a first interface of the complex programmable logic device to execute the first function to be executed. When the substrate management controller fails, the first interface of the substrate management controller has no output signal, and the first function to be executed can be still triggered by the function keys at the moment, so that the dependence of the function to be executed on the substrate management controller is effectively reduced, and the normal realization of the function is ensured.

Description

Control method and device of server, terminal equipment and readable storage medium
Technical Field
The present invention relates to the field of server control, and in particular, to a method and apparatus for controlling a server, a terminal device, and a computer readable storage medium.
Background
Currently, the mainstream processor architecture is generally provided with a Power Button (abbreviated pwr_btn) and a Reset Button (abbreviated rst_btn), and may execute a Power control signal (Sleep s5#, abbreviated slp_s5#). When the server system needs to execute the starting or shutting down action, the external key signals or related instructions received by the server system are sent to a Central Processing Unit (CPU), and the CPU processes the instructions and performs power-on or power-off control of the system through a power control signal.
When the existing server executes some specific functions, the function keys of the processor are connected to a baseboard management controller (Baseboard Management Controller, abbreviated as BMC), and when the function keys are detected to trigger, the baseboard management controller processes trigger signals of the function keys and then sends the signals to a Complex Programmable Logic Device (CPLD). Therefore, the prior art relies on the baseboard management controller to realize the functions, and when the baseboard management controller fails, the functions cannot be completed normally, so that a certain limitation is caused to the use of the server.
Disclosure of Invention
The invention provides a control method, a control device, terminal equipment and a computer readable storage medium of a server, which are used for solving the technical problem of high limitation of the prior art on the use of the server.
In order to solve the technical problems, an embodiment of the present invention provides a method for controlling a server, where 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 first logic AND processing is carried out;
the control method comprises the following steps:
simulating a control pulse corresponding to the first function to be executed when the triggering of the processing result of the first logic AND processing is detected;
and sending the control pulse to a first interface of the complex programmable logic device to execute the first function to be executed.
Preferably, the server further includes a central processing unit, and when the first function to be executed is a power-on function of the server, the sending the control pulse to the first interface of the complex programmable logic device to execute the first function to be executed includes:
Transmitting the control pulse to a first interface of the complex programmable logic device;
judging the current running state of the server, and when the running state is a shutdown state, sequentially starting the voltage regulation modules according to a first preset time sequence;
and when the preset voltage regulation condition is met, the central processing unit is controlled to initialize so as to realize the starting-up function.
Preferably, when the preset voltage regulation condition is met, the central processing unit is controlled to initialize, including: and when the finally opened voltage regulation module reaches a preset output standard, sending a system ready instruction to the central processing unit through the complex programmable logic device, and sending an initialization instruction to the central processing unit after a preset time period so that the central processing unit responds to the initialization instruction to execute initialization operation.
Preferably, the server further includes a central processor, and when the first function to be executed is a shutdown function of the server, the sending the control pulse to the first interface of the complex programmable logic device to execute the first function to be executed includes:
Transmitting the control pulse to a first interface of the complex programmable logic device;
judging the current running state of the server, and when the running state is a starting state, sending 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 to control an operating system of the server to execute shutdown actions;
when the central processing unit accords with a preset change condition, sending an execution shutdown signal to the complex programmable logic device through the central processing unit so that the complex programmable logic device responds to the execution shutdown signal, executing power-down operation, and sequentially closing the voltage regulation modules according to a second preset time sequence to realize the shutdown function.
Preferably, when the central processing unit meets a preset change condition, sending, by the central processing unit, an execution shutdown signal to the complex programmable logic device, including: and when detecting that the state of the register of the central processing unit changes, sending an execution shutdown signal to the complex programmable logic device through the central processing unit.
As a preferred scheme, 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 being processed by the second logic AND;
the control method further includes:
simulating a control pulse corresponding to the second function to be executed when the trigger of the second logic and the processing result is detected;
and sending the control pulse to a second interface of the complex programmable logic device to execute the second function to be executed.
Preferably, each voltage regulation module is respectively connected with the complex programmable logic device in a communication way, and the complex programmable logic device is further used for detecting the output state of each voltage regulation module.
Correspondingly, the embodiment of the invention also provides a control device of the server, wherein the server comprises 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 first logic AND processing is carried out;
The control device comprises an analog module and a control module; wherein,
the simulation module is used for simulating the control pulse corresponding to the first function to be executed when the triggering of the processing result of the first logic and the processing is detected;
the control module is configured to send the control pulse to a first interface of the complex programmable logic device to execute the first function to be executed.
Preferably, the server further includes a central processing unit, and when the first function to be executed is a power-on function of the server, the control module sends the control pulse to a first interface of the complex programmable logic device to execute the first function to be executed, including:
the control module sends the control pulse to a first interface of the complex programmable logic device;
judging the current running state of the server, and when the running state is a shutdown state, sequentially starting the voltage regulation modules according to a first preset time sequence;
and when the preset voltage regulation condition is met, the central processing unit is controlled to initialize so as to realize the starting-up function.
Preferably, the control module controls the central processing unit to initialize when the control module accords with a preset voltage regulation condition, and the control module comprises: when the last opened voltage regulation module reaches a 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 to execute initialization operation.
Preferably, the server further includes a central processing unit, and when the first function to be executed is a shutdown function of the server, the control module sends the control pulse to a first interface of the complex programmable logic device to execute the first function to be executed, including:
the control module sends the control pulse to a first interface of the complex programmable logic device;
judging the current running state of the server, and when the running state is a starting state, sending 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 to control an operating system of the server to execute shutdown actions;
when the central processing unit accords with a preset change condition, sending an execution shutdown signal to the complex programmable logic device through the central processing unit so that the complex programmable logic device responds to the execution shutdown signal, executing power-down operation, and sequentially closing the voltage regulation modules according to a second preset time sequence to realize the shutdown function.
Preferably, when the central processing unit meets a preset change condition, the control module sends an execution shutdown signal to the complex programmable logic device through the central processing unit, including: and 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.
As a preferred scheme, 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 being processed by the second logic AND;
the simulation module is also used for simulating control pulses corresponding to the second function to be executed when the triggering of the second logic and the processing result is detected;
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.
Preferably, each voltage regulation module is respectively connected with the complex programmable logic device in a communication way, and the complex programmable logic device is further used for detecting the output state of each voltage regulation module.
Correspondingly, the embodiment of the invention also provides a terminal device, which comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein the processor realizes the control method of the server when executing the computer program.
Correspondingly, the embodiment of the invention also provides a computer readable storage medium, which comprises a stored computer program, wherein the computer program is used for controlling equipment where the computer readable storage medium is located to execute the control method of the server.
Compared with the prior art, the embodiment of the application has the following beneficial effects:
the embodiment of the application provides a control method, a device, terminal equipment and a computer readable storage medium of a server, wherein the server comprises 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 first logic AND processing is carried out; the control method comprises the following steps: simulating a control pulse corresponding to the first function to be executed when the triggering of the processing result of the first logic AND processing is detected; and sending the control pulse to a first interface of the complex programmable logic device to execute the first function to be executed. When the first interface of the baseboard management controller is not provided with the output signal, the first interface of the baseboard management controller can still be triggered by the function key of the first function to be executed, and the control pulse corresponding to the first function to be executed is simulated, so that the control pulse is sent to the complex programmable logic device to execute the first function to be executed, the dependence of the function to be executed on the baseboard management controller is effectively reduced, the normal realization of the function is ensured, and the limitation caused by the use of a server is reduced; in addition, in some special occasions, when the server cannot use the baseboard management controller, the server can also be triggered by the function keys of the functions to be executed, and the server is not limited to the baseboard management controller, so that wider application scenes can be covered.
Drawings
Fig. 1: the invention provides a flow diagram of one embodiment of a control method of a server.
Fig. 2: an exemplary topology diagram for timing control of a server is provided.
Fig. 3: the invention provides a flow chart of another embodiment of a control method of a server.
Fig. 4: the invention provides a time sequence control topological diagram of one embodiment of a control method of a server.
Fig. 5: the signal timing diagram of one embodiment of the method for starting up the server is provided.
Fig. 6: the signal timing diagram of one embodiment of the shutdown method of the server is provided by the invention.
Fig. 7: the invention provides a structural schematic diagram of one embodiment of a control device of a server.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1
First, some terms in the present application will be explained in order to be understood by those skilled in the art.
(1) A baseboard management controller: i.e., BMC, baseboard Management Controlle, also known as executing server remote management controllers. It serves as a "housekeeping" for the server, assuming part of the server remote control functionality.
(2) A complex programmable logic device, i.e., a CPLD, a acronym for Complex Programmable Logic Device, is a digital integrated circuit that a user self-constructs logic functions according to their respective needs.
(3) The acronym for central processing unit, CPU, central Processing Unit. Is the operation and control core of the computer system, and is the final execution unit for information processing and program running.
(4) The Operating System, i.e., OS, is a acronym for Operating System. Is a set of interrelated system software programs that host and control the operation, deployment and execution of hardware, software resources, and provide common services to organize user interactions.
(5) The voltage regulating module, i.e. the acronym VRM, voltage Regulator Module, is a module for providing a microprocessor with proper supply voltage, and can be directly welded on a main board or installed in a mode of a module sub-card.
(6) General purpose input/output, i.e., GPIO, acronym for General Purpose Input Output. The system has the advantages of low power consumption, small package, low cost, simple wiring and the like, and can provide additional control and monitoring functions.
According to the related art, when a server performs some specific functions, the function keys corresponding to the processor are connected to a baseboard management controller, and when the server detects the triggering of the function keys, the baseboard management controller processes the triggering signals of the function keys and then sends the signals to a Complex Programmable Logic Device (CPLD). Therefore, the prior art relies on the baseboard management controller to realize the functions, and when the baseboard management controller fails, the functions cannot be completed normally, so that a certain limitation is caused to the use of the server.
For example, when the startup function or the shutdown function is executed, the startup function and the shutdown function need to be executed under the BMC Active condition, and if the baseboard management controller cannot be started normally, the server cannot be started or shut down normally.
As another example, in some special situations, where the server cannot use the baseboard management controller (not because of the failure of the baseboard management controller), the prior art cannot cover such scenarios.
As an example, for some processor architectures servers that are not capable of executing a Power Button (pwr_btn) signal, a Reset Button (reset_btn, rst_btn) signal, and a Power control signal (Sleep s5#, slp_s5#), a baseboard management controller is typically employed to implement the relevant functions. For example, referring to fig. 2, fig. 2 is a timing topology diagram of power control of a server without a switch related signal architecture processor. The method specifically comprises the following steps:
the baseboard management controller is connected with the central processing unit through an eSPI bus, and the bus is used for command interaction between the baseboard management controller and the central processing unit.
The baseboard management controller is provided with an input of a switch-on button (PWR_BTN) for a switch operation, and an input of a reset button (RST_BTN) for a reset operation.
The baseboard management controller is connected with the complex programmable logic device through a system_pwr_on signal, and the signal is used for informing the complex programmable logic device to start or stop power supply; when the baseboard management controller receives a command and needs to start, the signal is set high, and the voltage regulation module is controlled by the complex programmable logic device to start power supply; when the baseboard management controller receives the shutdown signal, the signal needs to be set low, and the voltage regulation module is controlled by the complex programmable logic device to stop supplying power.
The complex programmable logic device is connected with the central processing unit through a system_pwr_ok signal, and the signal is used for informing the central processing unit that all power supplies on the main board of the central processing unit reach the working standard and can perform initialization work.
A cpu_reset signal is provided between the complex programmable logic device and the central processing unit, and is used for resetting the central processing unit.
A Power Enable signal (abbreviated as EN) is arranged between the complex programmable logic device and the voltage regulation module and is used for enabling or stopping the output of the voltage regulation module; there are multiple voltage regulation modules within a server system, each with an independent EN signal.
A Power Good signal (PGD for short) is arranged between the complex programmable logic device and the voltage regulation module, and is used for obtaining the output state of the voltage regulation module; there are multiple voltage regulation modules within a system, each with an independent PGD signal.
Referring to fig. 1 or fig. 3, fig. 1 is a schematic diagram illustrating a control method of a server according to an embodiment of the present invention. The server comprises 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 first logic AND processing.
The control method comprises a step S1 and a step S2; wherein,
step S1, when the triggering of the processing result of the first logic AND processing is detected, simulating the control pulse corresponding to the first function to be executed.
And step S2, the control pulse is sent to a first interface of the complex programmable logic device so as to execute the first function to be executed.
Further, referring to fig. 4, fig. 4 is a schematic diagram of a timing control topology of a server according to an embodiment of the present disclosure.
Wherein,
the baseboard management controller is connected with the central processing unit through an eSPI bus, and the bus is used for command interaction between the baseboard management controller and the central processing unit.
The baseboard management controller performs first logic and processing through BMC-GPIO2 and PWR_BTN and then sends the processed result to CPLD-GPIO5 to input a system on-off signal. When the PWR_BTN key is pressed or the baseboard management controller receives a startup and shutdown command, a key action is simulated through the BMC-GPIO1 to generate a low pulse (namely, a control pulse corresponding to the first function to be executed is simulated), and the system is triggered to execute startup or shutdown time sequence.
On the other hand, the embodiment may further 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 the second logic AND processing is carried out; whereby the control method further comprises: simulating a control pulse corresponding to the second function to be executed when the trigger of the second logic and the processing result is detected; and sending the control pulse to a second interface of the complex programmable logic device to execute the second function to be executed.
For example, the baseboard management controller performs second logic and post-processing through BMC-GPIO1 and RST_BTN, and sends the second logic and post-processing to CPLD-GPIO6 for inputting a system RST signal. When RST_BTN is pressed or RST command is received by the baseboard management controller, a key action is simulated through BMC-GPIO1 to generate a low pulse (namely, a control pulse corresponding to the second function to be executed is simulated), and system reset is triggered. It should be noted that, in the foregoing preferred embodiment, in the actual application process, the first function to be executed may be a power-on function, a power-off function or a reset function, and the second function to be executed may be a power-on function, a power-off function or a reset function, which may be specifically set according to the actual application scenario requirement of the server. The startup function, the shutdown function and the reset function can be triggered by corresponding function keys without a baseboard management controller, so that the limitation of the baseboard management controller on the server can be relieved.
In addition, the complex programmable logic device is connected with the central processing unit through a system_pwr_ok signal, and the signal is used for informing the central processing unit that all power supplies on the main board of the central processing unit reach the working standard, so that the initialization work can be performed.
A cpu_reset signal is provided between the complex programmable logic device and the central processing unit, and is used for resetting the central processing unit.
A Power Enable signal (abbreviated as EN) is arranged between the complex programmable logic device and the voltage regulation module and is used for enabling or stopping the output of the voltage regulation module; and there are multiple voltage regulation modules in a server system, each voltage regulation module having an independent EN signal.
A Power Good signal (abbreviated PGD) is arranged between the complex programmable logic device and the voltage regulation modules, and is used for obtaining the output state of the voltage regulation modules, and each voltage regulation module has an independent PGD signal.
A poweroff_req signal (Power off Request, shutdown request signal) is provided between the complex programmable logic device and the central processing unit. In the starting-up state, when the complex programmable logic device detects that the PWR_BTN key is pressed or a Power Off signal sent by the baseboard management controller is detected, the CPU is notified through the Power off_req signal, and shutdown is requested; after receiving the signal, the CPU informs the operation system to stop the operation of the related application until the CPU is allowed to be powered off. The signal defaults to high level after power-on, and a low level pulse is sent to the central processing unit when a power-off request occurs.
After the central processing unit receives an instruction that the operating system can be powered Off, the central processing unit informs the complex programmable logic device through a Poweroff_Act signal (Poweroff_Act, executing a shutdown signal), and the Poweroff_Act signal is pulled down until the central processing unit is powered Off; the complex programmable logic device detects that this signal changes from high to low, and then performs the associated shutdown sequence, such as pulling down the level of the cpu_reset signal, the system_pwr_ok signal, and so on.
For the implementation of the embodiment of the present application, for the step S1, the detection of the triggering of the processing result of the first logical and processing means that the pwr_btn is pressed or the baseboard management controller receives an instruction, and at this time, a pwr_btn button action (corresponding control pulse) is simulated through the BMC-GPIO 2. Thus, the operation corresponding to the power-on function or the power-off function in step S2 can be further performed.
As an example of the present embodiment, the first function to be executed may be a power-on function or a power-off function. The server further includes a central processing unit, when the first function to be executed is a power-on function of the server, please refer to fig. 5, the sending the control pulse to the first interface of the complex programmable logic device to execute the first function to be executed includes:
Transmitting the control pulse to a first interface CPLD-GPIO5 of the complex programmable logic device; then judging the current running state of the server, and starting to execute a starting action when the running state is a shutdown state, namely starting the voltage regulation modules in sequence according to a first preset time sequence; and when the preset voltage regulation condition is met, the central processing unit is controlled to initialize so as to realize the starting-up function.
Further, when the preset voltage regulation condition is met, the central processing unit is controlled to initialize, including: when the last opened voltage regulation module reaches a preset output standard, a System ready instruction (system_pwr_ok signal) 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, namely, the CPU_reset signal is released, so that the central processing unit responds to the initialization instruction to execute initialization operation, and the starting-up flow is ended at the moment. The implementation of the application takes the voltage regulating module as the preset voltage regulating condition for judging the initialization time of the central processing unit, and can ensure that all the voltage regulating modules reach the ready state when the server is started, so as to ensure the normal and stable operation of each module after the server is started.
When the first function to be executed is a shutdown function of the server, referring to fig. 6, the sending the control pulse to the first interface of the complex programmable logic device to execute the first function to be executed includes:
transmitting the control pulse to a first interface CPLD-GPIO5 of the complex programmable logic device; judging the current running state of the server, and when the running state is a starting state, sending 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 to control an operating system of the server to execute shutdown actions; when the central processing unit accords with a preset change condition, sending an execution shutdown signal Poweroff_Act to the complex programmable logic device through the central processing unit so that the complex programmable logic device responds to the execution shutdown signal to execute power-down operation, wherein the complex programmable logic device detects that the execution shutdown signal Poweroff_Act is set low, and the levels of a CPU_reset signal and a system_pwr_ok signal are pulled down; and sequentially closing the voltage regulation module according to a preset time sequence, and pulling down the level of the CPU_reset signal and the level of the system_pwr_ok signal so as to realize the shutdown function of the server.
Preferably, the shutdown action is performed in an operating system controlling the server, which sets the relevant registers of the central processing unit. And when the central processing unit meets the preset change condition, sending an execution shutdown signal to the complex programmable logic device through the central processing unit, wherein the execution shutdown signal comprises the following steps: and when detecting that the state of the register of the central processing unit changes, sending an execution shutdown signal to the complex programmable logic device through the central processing unit.
By implementing the embodiment of the application, as 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 subjected to the first logic AND processing and then input into the first interface of the complex programmable logic device, the first interface can be realized through the triggering of the corresponding function key without depending on the baseboard management controller, and the first interface is not powered on or powered off. For example, before the server is started, the baseboard control manager needs to be started first, the starting time of the baseboard control manager needs 2 minutes, the starting time of the baseboard control manager needs tens of milliseconds, and if the baseboard control manager is triggered through the function keys, the baseboard control manager does not need to be started, so that the waiting time of a user is shortened. Similarly, when the power-off is needed, the running state of the substrate control manager can be determined without spending time, starting of the substrate control manager is not needed to be waited, and the like, 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 dependency on the baseboard control manager.
It should be noted that, when the shutdown function is aimed at, in addition to the detection of the triggering of the processing result of the first logic and the processing in step S1, a shutdown command may be directly issued in the operating system, if the shutdown command is issued in the operating system, after the operating system completes the shutdown process, the operating system also sets a register of the central processing unit, and then the state of the register of the central processing unit may be detected to change, and a second shutdown command is sent to the complex programmable logic device through the central processing unit, so as to implement shutdown of the server.
For example, the set register of the central processing unit may be a cpu_status_reg, with a default value of 4' b 0000, where the specific meanings of the different values respectively include: 0000: sleep_s5, 0001: sleep_s3, 0010: sleep_s0. Upon detecting that the cpu_status_reg is changed from 0010 to 0000, a power-down operation is performed. The state change of the related register of the central processing unit is detected as a preset change condition, and whether the operating system completely executes the shutdown process can be determined, so that the shutdown process of the server is prevented from being damaged because the operating system does not execute the complete shutdown process.
Correspondingly, referring to fig. 7, the embodiment of the invention also provides a control device of a server, wherein the server comprises 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 first logic AND processing is carried out;
the control device comprises an analog module 101 and a control module 102; wherein,
the simulation module 101 is configured to simulate a control pulse corresponding to the first function to be executed when the trigger of the processing result of the first logical AND processing is detected;
the control module 102 is configured to send the control pulse to a first interface of the complex programmable logic device to execute the first function to be executed.
Preferably, the server further includes a central processor, and when the first function to be executed is a power-on function of the server, the control module 102 sends the control pulse to a first interface of the complex programmable logic device to execute the first function to be executed, including:
The control module 102 sends the control pulse to a first interface of the complex programmable logic device;
judging the current running state of the server, and when the running state is a shutdown state, sequentially starting the voltage regulation modules according to a first preset time sequence;
and when the preset voltage regulation condition is met, the central processing unit is controlled to initialize so as to realize the starting-up function.
Preferably, the control module 102 controls the cpu to initialize when a preset voltage adjustment condition is met, including: when the last-opened voltage regulation module reaches a 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 to execute initialization operation.
Preferably, the server further includes a central processing unit, and when the first function to be executed is a shutdown function of the server, the control module sends the control pulse to a first interface of the complex programmable logic device to execute the first function to be executed, including:
The control module sends the control pulse to a first interface of the complex programmable logic device;
judging the current running state of the server, and when the running state is a starting state, sending 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 to control an operating system of the server to execute shutdown actions;
when the central processing unit accords with a preset change condition, sending an execution shutdown signal to the complex programmable logic device through the central processing unit so that the complex programmable logic device responds to the execution shutdown signal, executing power-down operation, and sequentially closing the voltage regulation modules according to a second preset time sequence to realize the shutdown function.
Preferably, when the central processing unit meets a preset change condition, the control module 102 sends an execution shutdown signal to the complex programmable logic device through the central processing unit, including: the control module 102 sends an execution shutdown signal to the complex programmable logic device through the central processing unit when detecting that the state of the register of the central processing unit changes.
As a preferred scheme, 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 being processed by the second logic AND;
the simulation module 101 is further configured to simulate a control pulse corresponding to the second function to be executed when the trigger of the second logic and the processing result is detected;
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.
Preferably, each voltage regulation module is respectively connected with the complex programmable logic device in a communication way, and the complex programmable logic device is further used for detecting the output state of each voltage regulation module.
Correspondingly, the embodiment of the invention also provides a terminal device, which comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein the processor realizes the control method of the server when executing the computer program.
The processor may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, which is a control center of the terminal, connecting various parts of the entire terminal using various interfaces and lines.
The memory may be used to store the computer program, and the processor may implement various functions of the terminal by running or executing the computer program stored in the memory and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, smart Media Card (SMC), secure Digital (SD) Card, flash Card (Flash Card), at least one disk storage device, flash memory device, or other volatile solid-state storage device.
Correspondingly, the embodiment of the invention also provides a computer readable storage medium, which comprises a stored computer program, wherein the computer program is used for controlling equipment where the computer readable storage medium is located to execute the control method of the server.
Wherein the modules integrated by the control means of the server may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the present invention may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may 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, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth.
Compared with the prior art, the embodiment of the application has the following beneficial effects:
the embodiment of the application provides a control method, a device, terminal equipment and a computer readable storage medium of a server, wherein the server comprises 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 first logic AND processing is carried out; the control method comprises the following steps: simulating a control pulse corresponding to the first function to be executed when the triggering of the processing result of the first logic AND processing is detected; and sending the control pulse to a first interface of the complex programmable logic device to execute the first function to be executed. When the first interface of the baseboard management controller is not provided with the output signal, the first interface of the baseboard management controller can still be triggered by the function key of the first function to be executed, and the control pulse corresponding to the first function to be executed is simulated, so that the control pulse is sent to the complex programmable logic device to execute the first function to be executed, the dependence of the function to be executed on the baseboard management controller is effectively reduced, the normal realization of the function is ensured, and the limitation caused by the use of a server is reduced; in addition, in some special occasions, when the server cannot use the baseboard management controller, the server can also be triggered by the function keys of the functions to be executed, and the server is not limited to the baseboard management controller, so that wider application scenes can be covered.
The foregoing embodiments have been provided for the purpose of illustrating the general principles of the present invention, and are not to be construed as limiting the scope of the invention. It should be noted that any modifications, equivalent substitutions, improvements, etc. made by those skilled in the art without departing from the spirit and principles of the present invention are intended to be included in the scope of the present invention.

Claims (10)

1. A control method of a server, wherein the server comprises 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 first logic AND processing is carried out;
the control method comprises the following steps:
simulating a control pulse corresponding to the first function to be executed when the triggering of the processing result of the first logic AND processing is detected;
and sending the control pulse to a first interface of the complex programmable logic device to execute the first function to be executed.
2. The method of claim 1, wherein the server further comprises a central processor, and when the first function to be executed is a power-on function for the server, the sending the control pulse to the first interface of the complex programmable logic device to execute the first function to be executed comprises:
transmitting the control pulse to a first interface of the complex programmable logic device;
judging the current running state of the server, and when the running state is a shutdown state, sequentially starting the voltage regulation modules according to a first preset time sequence;
and when the preset voltage regulation condition is met, the central processing unit is controlled to initialize so as to realize the starting-up function.
3. The method for controlling a server according to claim 2, wherein when a preset voltage adjustment condition is met, the method for controlling the cpu to initialize comprises: and when the finally opened voltage regulation module reaches a preset output standard, sending a system ready instruction to the central processing unit through the complex programmable logic device, and sending an initialization instruction to the central processing unit after a preset time period so that the central processing unit responds to the initialization instruction to execute initialization operation.
4. The method of claim 1, wherein the server further comprises a central processor, and when the first function to be executed is a shutdown function for the server, the sending the control pulse to the first interface of the complex programmable logic device to execute the first function to be executed comprises:
transmitting the control pulse to a first interface of the complex programmable logic device;
judging the current running state of the server, and when the running state is a starting state, sending 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 to control an operating system of the server to execute shutdown actions;
when the central processing unit accords with a preset change condition, sending an execution shutdown signal to the complex programmable logic device through the central processing unit so that the complex programmable logic device responds to the execution shutdown signal, executing power-down operation, and sequentially closing the voltage regulation modules according to a second preset time sequence to realize the shutdown function.
5. The method for controlling a server according to claim 4, wherein when the cpu meets a preset change condition, sending, by the cpu, an execution shutdown signal to the complex programmable logic device, includes: and when detecting that the state of the register of the central processing unit changes, sending an execution shutdown signal to the complex programmable logic device through the central processing unit.
6. A method of controlling a server according to any one of claims 2 to 5, wherein each of the voltage regulation modules is communicatively coupled to a respective one of the complex programmable logic devices, the complex programmable logic device being further configured to detect an output state of each of the voltage regulation modules.
7. The control method of a server according to claim 1, wherein 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 perform a second logic AND process and then input the processed second logic AND process to the second interface of the complex programmable logic device;
the control method further includes:
simulating a control pulse corresponding to the second function to be executed when the trigger of the second logic and the processing result is detected;
And sending the control pulse to a second interface of the complex programmable logic device to execute the second function to be executed.
8. A control device of a server, wherein the server comprises 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 first logic AND processing is carried out;
the control device comprises an analog module and a control module; wherein,
the simulation module is used for simulating the control pulse corresponding to the first function to be executed when the triggering of the processing result of the first logic and the processing is detected;
the control module is configured to send the control pulse to a first interface of the complex programmable logic device to execute the first function to be executed.
9. A terminal device comprising a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the control method of the server according to any one of claims 1 to 7 when executing the computer program.
10. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored computer program, wherein the computer program, when run, controls a device in which the computer readable storage medium is located to execute the control method of the server according to any one of claims 1 to 7.
CN202311308537.XA 2023-10-10 2023-10-10 Control method and device of server, terminal equipment and readable storage medium Pending CN117235004A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311308537.XA CN117235004A (en) 2023-10-10 2023-10-10 Control method and device of server, terminal equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311308537.XA CN117235004A (en) 2023-10-10 2023-10-10 Control method and device of server, terminal equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN117235004A true CN117235004A (en) 2023-12-15

Family

ID=89089395

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311308537.XA Pending CN117235004A (en) 2023-10-10 2023-10-10 Control method and device of server, terminal equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN117235004A (en)

Similar Documents

Publication Publication Date Title
US8935558B2 (en) Overclocking module, a computer system and a method for overclocking
CN109976816B (en) Computer system configuration method and server
US11175715B2 (en) Method of supplying electric power to a computer system
CN111488048A (en) Power supply management method and system
US11579977B2 (en) Data storage device restoring method
US10235185B2 (en) Computer and controlling method thereof
KR20080058904A (en) Image display apparatus having network communicating function and control method thereof
US11243592B2 (en) System and method for controlling a power-on sequence and power throttling using power brake
WO2016110000A1 (en) Adjustment method, device and system for power-down reboot of single plate
CN113411212B (en) BIOS control system of intelligent network card and BIOS control method of intelligent network card
CN112559082B (en) Terminal device, NFC clock control method, NFC module and medium
US7523336B2 (en) Controlled power sequencing for independent logic circuits that transfers voltage at a first level for a predetermined period of time and subsequently at a highest level
CN103135728B (en) Power supply start-up control method and system thereof
CN117235004A (en) Control method and device of server, terminal equipment and readable storage medium
CN110389643B (en) Server and remote control method thereof
CN116449800A (en) Control logic switching method, device, equipment and medium
US10437310B2 (en) Technologies for secure hybrid standby power management
CN109298892B (en) Device and method for controlling startup and shutdown of server
CN114546612A (en) System mode switching method and electronic equipment
US10921875B2 (en) Computer system, operational method for a microcontroller, and computer program product
CN107093408B (en) The control method and device of backlight lightening when smart machine is switched on
CN112732486B (en) Redundant firmware switching method, device, equipment and storage medium
US11803491B1 (en) Method for controlling a target memory by programmably selecting an action execution circuit module corresponding to a triggered preset state
KR860000494B1 (en) Initial program loading method
TWI757923B (en) Pre-boot execution environment determination system and method thereof

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