CN115097879B - Temperature regulation and control method, device, equipment and medium - Google Patents

Temperature regulation and control method, device, equipment and medium Download PDF

Info

Publication number
CN115097879B
CN115097879B CN202210751006.7A CN202210751006A CN115097879B CN 115097879 B CN115097879 B CN 115097879B CN 202210751006 A CN202210751006 A CN 202210751006A CN 115097879 B CN115097879 B CN 115097879B
Authority
CN
China
Prior art keywords
temperature
temperature sensor
mode
return value
wide
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.)
Active
Application number
CN202210751006.7A
Other languages
Chinese (zh)
Other versions
CN115097879A (en
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210751006.7A priority Critical patent/CN115097879B/en
Publication of CN115097879A publication Critical patent/CN115097879A/en
Application granted granted Critical
Publication of CN115097879B publication Critical patent/CN115097879B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D23/00Control of temperature
    • G05D23/19Control of temperature characterised by the use of electric means
    • G05D23/20Control of temperature characterised by the use of electric means with sensing elements having variation of electric or magnetic properties with change of temperature
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01KMEASURING TEMPERATURE; MEASURING QUANTITY OF HEAT; THERMALLY-SENSITIVE ELEMENTS NOT OTHERWISE PROVIDED FOR
    • G01K15/00Testing or calibrating of thermometers
    • G01K15/007Testing
    • 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
    • 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
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Control Of Temperature (AREA)

Abstract

The application discloses a temperature regulation and control method, a device, equipment and a medium, which relate to the technical field of computers and comprise the following steps: polling by using a first temperature sensor to obtain the ambient temperature of the edge server, and judging whether the ambient temperature is lower than zero degree; if the temperature of the first temperature sensor is lower than the temperature of the second temperature sensor, determining a first target component supporting a wide temperature mode in the edge server, and sending a control command to the second temperature sensor of the first target component so that the second temperature sensor starts the wide temperature mode based on the control command; and checking the second temperature sensor by using a preset checking rule to determine whether the wide temperature mode is successfully started, and if so, controlling the edge server to enter the wide temperature regulation mode. According to the method and the device, whether the wide temperature mode of the edge server is started or not can be determined according to whether the environmental temperature is lower than zero, namely, the server can regulate and control the temperature of the component and the temperature of the server independently so as to adapt to different environmental temperatures.

Description

Temperature regulation and control method, device, equipment and medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a medium for temperature regulation.
Background
The environment in which the general server should be placed for most application scenes is limited, and the general server is generally placed in a machine room cabinet, but for another field, namely, an edge terminal, the general server should be weak to various strategies and schemes of the general environment. For this application scenario of the edge terminal, a new type of server for edge applications, called edge server, has been generated in recent years. Because the edge server has a scene implementation that is placed at the roadside or in an extreme environment, compared with the general server, policy adjustment for various requirements is generated with respect to environmental policies and temperature regulation supported by the server. One of the great challenges that needs to be faced for an edge server that is applied to a drive-test environment computing unit is: how to ensure that the components of the edge server can operate properly when the edge server is in an extremely harsh environment, such as an environment temperature below zero. Because a general purpose server is without a sub-zero management scheme when the ambient temperature reaches below zero, however for an edge server an ambient temperature below zero is one of the scenario schemes that must be implemented.
In summary, how to realize that the edge server can adapt to the environmental temperature change so as to ensure that each component in the edge server can normally operate is a problem to be solved at present.
Disclosure of Invention
In view of the above, the present invention aims to provide a temperature regulation method, a device, equipment and a medium, which can realize that an edge server can adapt to environmental temperature changes, so as to ensure that each component in the edge server can normally operate. The specific scheme is as follows:
in a first aspect, the present application discloses a temperature regulation method applied to a baseboard management controller, including:
polling by using a first temperature sensor to obtain the ambient temperature of the edge server, and judging whether the ambient temperature is lower than zero degree;
if the temperature of the first temperature sensor is lower than the temperature of the second temperature sensor, determining a first target component supporting a wide temperature mode in the edge server, and sending a control command to the second temperature sensor of the first target component so that the second temperature sensor starts the wide temperature mode based on the control command;
and checking the second temperature sensor by using a preset checking rule to determine whether the wide temperature mode is successfully started, and if so, controlling the edge server to enter the wide temperature regulation mode.
Optionally, after the determining whether the ambient temperature is lower than zero degrees, the method further includes:
and if the temperature of the third temperature sensor of the second target component is lower than the temperature of the second target component, determining the second target component which does not support the wide temperature mode in the edge server, and setting the temperature of the third temperature sensor of the second target component to be zero.
Optionally, after the sending a control command to the second temperature sensor of the first target component, the method further includes:
resetting the data bit of the register in the second temperature sensor to obtain the current data bit.
Optionally, the verifying the second temperature sensor with a preset verification rule to determine whether the wide temperature mode is successfully turned on includes:
and reading the current data bit of a register in the second temperature sensor so as to determine whether the second temperature sensor successfully starts a wide temperature mode according to the current data bit.
Optionally, after the controlling the edge server to enter the wide temperature regulation mode, the method further includes:
acquiring identification information of each second temperature sensor, and reading a wide temperature compatible range corresponding to the identification information from a predefined database to obtain a reading result;
and processing the read result in a preset mode to obtain a corresponding return value, and realizing overall temperature regulation by utilizing a preset heat dissipation regulation strategy based on the return value.
Optionally, the processing the read result in a preset manner to obtain a corresponding return value includes:
and determining the type of the currently set return value, and processing the read result based on the type of the return value to obtain a corresponding return value.
Optionally, the processing the read result based on the return value type to obtain a corresponding return value includes:
if the value type of the return value is a positive value type, judging whether the read result has a negative value, if so, adding the read result by using a preset value to obtain the read result with the positive value, and then carrying out reverse data processing on the read result to obtain a corresponding return value;
and if the return value type is not the positive value type, carrying out data forward processing on the read result to obtain a corresponding return value.
In a second aspect, the present application discloses a temperature regulation apparatus, applied to a baseboard management controller, comprising:
the environment temperature acquisition module is used for acquiring the environment temperature of the edge server by utilizing polling of the first temperature sensor and judging whether the environment temperature is lower than zero or not;
the wide temperature mode control module is used for determining a first target component supporting a wide temperature mode in the edge server and sending a control command to a second temperature sensor of the first target component if the temperature is lower than the first target component, so that the second temperature sensor starts the wide temperature mode based on the control command;
and the verification module is used for verifying the second temperature sensor by utilizing a preset verification rule to determine whether the wide temperature mode is successfully started, and if so, controlling the edge server to enter the wide temperature regulation mode.
In a third aspect, the present application discloses an electronic device comprising:
a memory for storing a computer program;
and a processor for executing the computer program to implement the steps of the temperature regulation method disclosed above.
In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein the computer program when executed by a processor implements the steps of the previously disclosed temperature regulation method.
As can be seen, the temperature regulation method of the present application is applied to a baseboard management controller, and includes: polling by using a first temperature sensor to obtain the ambient temperature of the edge server, and judging whether the ambient temperature is lower than zero degree; if the temperature of the first temperature sensor is lower than the temperature of the second temperature sensor, determining a first target component supporting a wide temperature mode in the edge server, and sending a control command to the second temperature sensor of the first target component so that the second temperature sensor starts the wide temperature mode based on the control command; and checking the second temperature sensor by using a preset checking rule to determine whether the wide temperature mode is successfully started, and if so, controlling the edge server to enter the wide temperature regulation mode. Therefore, the method and the device for controlling the wide temperature mode of the edge server acquire the ambient temperature of the edge server by utilizing the first temperature sensor in a polling way, judge whether the ambient temperature is lower than zero, send a control command to a second temperature sensor of a first target component supporting the wide temperature mode in the edge server to control the second temperature sensor to start the wide temperature mode, check whether the wide temperature mode is successfully started, and control the edge server to enter the wide temperature regulation mode if the wide temperature mode is successfully started. Therefore, the substrate management controller can automatically start the wide temperature mode of the edge server according to the change of the ambient temperature, so that the server can automatically regulate and control the temperature of the components and the temperature of the server to adapt to the ambient temperature for the two environmental modes of above zero and below zero, and each component part in the edge server can normally operate.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings may be obtained according to the provided drawings without inventive effort to a person skilled in the art.
FIG. 1 is a flow chart of a temperature regulation method disclosed in the present application;
FIG. 2 is a flow chart of a specific temperature regulation method disclosed in the present application;
FIG. 3 is a schematic diagram of a specific temperature control flow disclosed herein;
FIG. 4 is a flow chart of a specific temperature regulation method disclosed in the present application;
FIG. 5 is a schematic diagram of a specific temperature control flow disclosed herein;
FIG. 6 is a schematic view of a temperature control device disclosed in the present application;
fig. 7 is a block diagram of an electronic device disclosed in the present application.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present invention, 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.
Currently, edge servers are implemented in roadside or extreme environments, so that compared with general servers, policy adjustment for various requirements is generated in terms of environmental policies and temperature regulation supported by the servers. One of the great challenges that needs to be faced for an edge server that is applied to a drive-test environment computing unit is: how to ensure that the components of the edge server can operate properly when the edge server is in an extremely harsh environment, such as an environment temperature below zero. Because a general purpose server is without a sub-zero management scheme when the ambient temperature reaches below zero, however for an edge server an ambient temperature below zero is one of the scenario schemes that must be implemented. Therefore, the embodiment of the application discloses a temperature regulation and control method, a device, equipment and a medium, which can realize that an edge server can adapt to environmental temperature change so as to ensure that each component part in the edge server can normally operate.
Referring to fig. 1, an embodiment of the present application discloses a temperature regulation method, which is applied to a baseboard management controller, and includes:
step S11: and polling by using a first temperature sensor to acquire the ambient temperature of the edge server, and judging whether the ambient temperature is lower than zero.
In this embodiment, the baseboard management controller (Baseboard Management Controller, i.e., BMC) polls and acquires the ambient temperature of the edge server by using a first temperature sensor (i.e., sensor), where the first temperature sensor may specifically be a temperature sensor at the air inlet, that is, the air inlet temperature sensor senses the external ambient temperature autonomously, and feeds back the ambient temperature to the baseboard management controller in a specified time, and then the baseboard management controller determines whether the ambient temperature is lower than zero according to the acquired ambient temperature.
Step S12: and if the temperature of the first temperature sensor is lower than the temperature of the second temperature sensor, determining a first target component supporting the wide temperature mode in the edge server, and sending a control command to a second temperature sensor of the first target component so that the second temperature sensor starts the wide temperature mode based on the control command.
In this embodiment, if the ambient temperature is lower than zero degrees, a first target component supporting a wide temperature mode in the edge server is determined, and a control command is sent to a second temperature sensor of the first target component, so that the second temperature sensor starts the wide temperature mode based on the control command, where the control command may specifically be an i2c (Inter-Integrated Circuit, i.e. two-wire serial bus) command. It is understood that not all components or chips in the edge server support the wide temperature mode, and for chips or components supporting the wide temperature mode, a temperature environment below zero degrees may be provided for the corresponding temperature sensor. It should be noted that the wide temperature mode in this embodiment refers to a temperature mode in which each chip and component is downward compatible with the ambient temperature when the ambient temperature reaches below zero.
Step S13: and checking the second temperature sensor by using a preset checking rule to determine whether the wide temperature mode is successfully started, and if so, controlling the edge server to enter the wide temperature regulation mode.
In this embodiment, after a control command for starting the wide temperature mode is sent to the second temperature sensor of the first target component, the second temperature sensor is further checked by using a preset check rule to determine whether the wide temperature mode is successfully started, and if the second temperature sensor is determined to successfully start the wide temperature mode, the edge server is controlled to enter the wide temperature regulation mode. In addition, if the second temperature sensor fails to start the wide temperature mode, log logs are recorded and alarm notification is given.
As can be seen, the temperature regulation method of the present application is applied to a baseboard management controller, and includes: polling by using a first temperature sensor to obtain the ambient temperature of the edge server, and judging whether the ambient temperature is lower than zero degree; if the temperature of the first temperature sensor is lower than the temperature of the second temperature sensor, determining a first target component supporting a wide temperature mode in the edge server, and sending a control command to the second temperature sensor of the first target component so that the second temperature sensor starts the wide temperature mode based on the control command; and checking the second temperature sensor by using a preset checking rule to determine whether the wide temperature mode is successfully started, and if so, controlling the edge server to enter the wide temperature regulation mode. Therefore, the method and the device for controlling the wide temperature mode of the edge server acquire the ambient temperature of the edge server by utilizing the first temperature sensor in a polling way, judge whether the ambient temperature is lower than zero, send a control command to a second temperature sensor of a first target component supporting the wide temperature mode in the edge server to control the second temperature sensor to start the wide temperature mode, check whether the wide temperature mode is successfully started, and control the edge server to enter the wide temperature regulation mode if the wide temperature mode is successfully started. Therefore, the substrate management controller can automatically start the wide temperature mode of the edge server according to the change of the ambient temperature, so that the server can automatically regulate and control the temperature of the components and the temperature of the server to adapt to the ambient temperature for the two environmental modes of above zero and below zero, and each component part in the edge server can normally operate.
Referring to fig. 2 and fig. 3, a specific temperature regulation method is disclosed in the embodiment of the present application, and compared with the previous embodiment, the technical solution is further described and optimized in this embodiment. The method specifically comprises the following steps:
step S21: and polling by using a first temperature sensor to acquire the ambient temperature of the edge server, and judging whether the ambient temperature is lower than zero.
Step S22: and if the temperature of the first temperature sensor is lower than the temperature of the second temperature sensor, determining a first target component supporting the wide temperature mode in the edge server, and sending a control command to a second temperature sensor of the first target component so that the second temperature sensor starts the wide temperature mode based on the control command.
In another embodiment, after the determining whether the ambient temperature is lower than zero, the method further includes: and if the temperature of the third temperature sensor of the second target component is lower than the temperature of the second target component, determining the second target component which does not support the wide temperature mode in the edge server, and setting the temperature of the third temperature sensor of the second target component to be zero. It will be appreciated that if the ambient temperature is below zero, it is also necessary to determine a second target component in the edge server that does not support the wide temperature mode, and set the temperature of the third temperature sensor of the second target component to zero. Specifically, when the temperature reaches below zero, a chip or component that does not support the wide temperature mode will set the temperature to zero and return to component status to zero, i.e., indicate that the component temperature sensor is out of place.
Further, if the ambient temperature is not lower than zero, the baseboard management controller does not respond to any reaction, and each component or chip is in a default off wide temperature mode state. That is, if the ambient temperature is zero degrees or higher, the temperature sensor of each component or chip is kept in a state of closing the wide temperature mode.
Step S23: resetting the data bit of the register in the second temperature sensor to obtain the current data bit.
In this embodiment, after a control command for turning on the wide temperature mode is sent to the second temperature sensor of the first target component, the data bit of the register in the second temperature sensor needs to be reset to obtain the current data bit. That is, after sending an i2c command for turning on the wide temperature mode to the second temperature sensor supporting the wide temperature mode, the register data bit in the second temperature sensor needs to be rewritten to realize the turning on of the wide temperature mode, and the edge server will also enter the wide temperature mode regulation strategy.
Step S24: and reading the current data bit of the register in the second temperature sensor, so as to determine whether the second temperature sensor successfully starts a wide temperature mode according to the current data bit, and if so, controlling the edge server to enter a wide temperature regulation mode.
In this embodiment, when it is checked whether the second temperature sensor successfully starts the wide temperature mode, it may be determined whether the second temperature sensor successfully starts the wide temperature mode by reading the current data bit of the register in the second temperature sensor. As can be seen from the foregoing disclosure, when it is necessary to reset the data bit of the register in the second temperature sensor after a control command for turning on the wide temperature mode is transmitted to the second temperature sensor of the first target component, it can be determined whether the wide temperature mode is successfully turned on by reading the current data bit of the register in the second temperature sensor through the baseboard management controller. If the control is successful, the edge server is controlled to enter a wide temperature regulation mode.
For more specific processing in step S21, reference may be made to the corresponding content disclosed in the foregoing embodiment, and no further description is given here.
It can be seen that, in the embodiment of the present application, after the control command is sent to the second temperature sensor of the first target component, the data bit of the register in the second temperature sensor needs to be reset to obtain the current data bit, and whether the wide temperature mode is successfully started by the second temperature sensor is determined according to the current data bit by using the current data bit of the register in the second temperature sensor. It can be seen that when the ambient temperature is lower than zero degree, the baseboard management controller automatically sends a control command for starting the wide temperature mode to the second temperature sensor in the first target component supporting the wide temperature mode, rewrites the data bit of the register in the second temperature sensor, and then determines whether the wide temperature mode is started successfully by reading the data bit; and setting the temperature of the third temperature sensor in the second target component that does not support the wide temperature mode to zero degrees; when the ambient temperature is lower than zero, the baseboard management controller does not react to the ambient temperature, and still keeps the state of closing the wide temperature mode. Therefore, each part or chip in the edge server can be automatically switched to different temperature regulation modes under different environmental temperatures, and the normal operation and the service life of each part or chip in the edge server are protected to a great extent while the diversification of scenes of the edge server is realized.
Referring to fig. 4 and fig. 5, a specific temperature regulation method is disclosed in the embodiment of the present application, and compared with the previous embodiment, the technical solution is further described and optimized in this embodiment. The method specifically comprises the following steps:
step S31: and polling by using a first temperature sensor to acquire the ambient temperature of the edge server, and judging whether the ambient temperature is lower than zero.
Step S32: and if the temperature of the first temperature sensor is lower than the temperature of the second temperature sensor, determining a first target component supporting the wide temperature mode in the edge server, and sending a control command to a second temperature sensor of the first target component so that the second temperature sensor starts the wide temperature mode based on the control command.
Step S33: and checking the second temperature sensor by using a preset checking rule to determine whether the wide temperature mode is successfully started, and if so, controlling the edge server to enter the wide temperature regulation mode.
Step S34: and acquiring identification information of each second temperature sensor, and reading a wide temperature compatible range corresponding to the identification information from a predefined database to obtain a reading result.
In this embodiment, as is known from the foregoing disclosure, a control command for starting the wide temperature mode has been sent to the second temperature sensors of the first target component supporting the wide temperature mode, then after the temperature sensors enter the wide temperature mode, the baseboard management controller obtains signals, obtains identification information corresponding to each second temperature sensor, and reads a wide temperature compatible range corresponding to the identification information from a predefined database to obtain a reading result. That is, the database stores a wide temperature compatible range corresponding to the identification information of each second sensor, and the identification information may specifically be a sensor identification number. It will be appreciated that the regulation strategy of the baseboard management controller is typically compatible into the regulation strategy of the machine as a whole, according to a downward compatible temperature range specified by the chip or component specifications.
Step S35: and processing the read result in a preset mode to obtain a corresponding return value, and realizing overall temperature regulation by utilizing a preset heat dissipation regulation strategy based on the return value.
In this embodiment, the read result needs to be processed in a preset manner to obtain a corresponding return value, and then the integral temperature regulation is realized by using a preset heat dissipation regulation strategy based on the return value, specifically, the return value is input into the integral temperature regulation according to a certain format by using the preset heat dissipation regulation strategy so as to realize the temperature regulation of the integral machine. It should be noted that the processing the read result in the preset manner to obtain the corresponding return value includes: and determining the type of the currently set return value, and processing the read result based on the type of the return value to obtain a corresponding return value. It will be appreciated that the return value type is preset, and then the read result is processed according to the return value type to obtain the corresponding return value.
Further, the processing the read result based on the return value type to obtain a corresponding return value includes: if the value type of the return value is a positive value type, judging whether the read result has a negative value, if so, adding the read result by using a preset value to obtain the read result with the positive value, and then carrying out reverse data processing on the read result to obtain a corresponding return value; and if the return value type is not the positive value type, carrying out data forward processing on the read result to obtain a corresponding return value. It will be appreciated that there are two types of return value values, one of which is that the return value type can only be positive and the other of which can be negative.
In a specific embodiment, if the value type of the return value is positive, the sensor chip needs to process the actual temperature return value, that is, the read result, specifically, determine whether the read result has a negative value, if so, add the read result by using a preset value to obtain the read result with a positive value, that is, the negative value needs to be reinforced by a fixed value to be positive, and the baseboard management controller needs to perform reverse data processing on the condition to obtain the corresponding return value.
In another embodiment, if the return value type is not positive, that is, indicates that a negative value can be returned, the baseboard management controller needs to process the forward data to obtain the corresponding return value.
For more specific processing procedures in the steps S31, S32, and S33, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and no detailed description is given here.
It can be seen that in the embodiment of the present application, the temperature range of downward compatibility specified by the chip or component specification needs to be compatible into the overall regulation policy of the machine through the regulation policy of the baseboard management controller. Specifically, identification information of each second temperature sensor is obtained, a wide temperature compatible range corresponding to the identification information is read from a predefined database to obtain a read result, the read result is processed in a preset mode to obtain a corresponding return value, and overall temperature regulation is achieved by utilizing a preset heat dissipation regulation strategy based on the return value. That is, after the wide temperature mode is successfully started, the baseboard management controller can respectively preprocess the wide temperature compatible ranges of different specifications according to the setting of the temperature specification on each chip or component so as to be compatible with the heat dissipation strategy of the whole chassis to realize the whole regulation and control, and finally, the edge server can adapt to various environmental requirements.
Referring to fig. 6, an embodiment of the present application discloses a temperature regulation apparatus, which is applied to a baseboard management controller, and includes:
an ambient temperature obtaining module 11, configured to obtain an ambient temperature of the edge server by using a first temperature sensor in a polling manner, and determine whether the ambient temperature is lower than zero degrees;
a wide temperature mode control module 12, configured to determine a first target component in the edge server that supports a wide temperature mode if the first target component is lower than the first target component, and send a control command to a second temperature sensor of the first target component, so that the second temperature sensor turns on the wide temperature mode based on the control command;
and the verification module 13 is configured to verify the second temperature sensor by using a preset verification rule to determine whether the wide temperature mode is successfully started, and if so, control the edge server to enter the wide temperature regulation mode.
As can be seen, the temperature regulation method of the present application is applied to a baseboard management controller, and includes: polling by using a first temperature sensor to obtain the ambient temperature of the edge server, and judging whether the ambient temperature is lower than zero degree; if the temperature of the first temperature sensor is lower than the temperature of the second temperature sensor, determining a first target component supporting a wide temperature mode in the edge server, and sending a control command to the second temperature sensor of the first target component so that the second temperature sensor starts the wide temperature mode based on the control command; and checking the second temperature sensor by using a preset checking rule to determine whether the wide temperature mode is successfully started, and if so, controlling the edge server to enter the wide temperature regulation mode. Therefore, the method and the device for controlling the wide temperature mode of the edge server acquire the ambient temperature of the edge server by utilizing the first temperature sensor in a polling way, judge whether the ambient temperature is lower than zero, send a control command to a second temperature sensor of a first target component supporting the wide temperature mode in the edge server to control the second temperature sensor to start the wide temperature mode, check whether the wide temperature mode is successfully started, and control the edge server to enter the wide temperature regulation mode if the wide temperature mode is successfully started. Therefore, the substrate management controller can automatically start the wide temperature mode of the edge server according to the change of the ambient temperature, so that the server can automatically regulate and control the temperature of the components and the temperature of the server to adapt to the ambient temperature for the two environmental modes of above zero and below zero, and each component part in the edge server can normally operate.
In some specific embodiments, after the ambient temperature obtaining module 11, the method may further include:
and the temperature setting unit is used for determining a second target component which does not support the wide temperature mode in the edge server if the temperature is lower than the first target component, and setting the temperature of a third temperature sensor of the second target component to be zero.
In some embodiments, the wide temperature mode control module 12 may further include:
and the data bit setting unit is used for resetting the data bit of the register in the second temperature sensor to obtain the current data bit.
In some specific embodiments, the verification module 13 may specifically include:
and the data bit reading unit is used for reading the current data bit of the register in the second temperature sensor so as to determine whether the second temperature sensor successfully starts a wide temperature mode according to the current data bit.
In some embodiments, after the verification module 13, the method may further include:
a reading result obtaining unit, configured to obtain identification information of each second temperature sensor, and read a wide temperature compatibility range corresponding to the identification information from a predefined database to obtain a reading result;
and the reading result processing unit is used for processing the reading result in a preset mode to obtain a corresponding return value, and realizing integral temperature regulation by utilizing a preset heat dissipation regulation strategy based on the return value.
In some specific embodiments, the read result processing unit may specifically include:
and the return value type determining unit is used for determining the current set return value numerical value type and processing the read result based on the return value numerical value type to obtain a corresponding return value.
In some specific embodiments, the return value type determining unit may specifically include:
the first type processing unit is used for judging whether the reading result has a negative value or not if the value type of the return value is a positive value type, if so, carrying out addition processing on the reading result by using a preset value to obtain the reading result with the positive value, and then carrying out reverse data processing on the reading result to obtain a corresponding return value;
and the second type processing unit is used for carrying out data forward processing on the read result to obtain a corresponding return value if the return value numerical value type is not the positive value type.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Specifically, the method comprises the following steps: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. Wherein the memory 22 is used for storing a computer program, which is loaded and executed by the processor 21 for realizing the following steps:
polling by using a first temperature sensor to obtain the ambient temperature of the edge server, and judging whether the ambient temperature is lower than zero degree;
if the temperature of the first temperature sensor is lower than the temperature of the second temperature sensor, determining a first target component supporting a wide temperature mode in the edge server, and sending a control command to the second temperature sensor of the first target component so that the second temperature sensor starts the wide temperature mode based on the control command;
and checking the second temperature sensor by using a preset checking rule to determine whether the wide temperature mode is successfully started, and if so, controlling the edge server to enter the wide temperature regulation mode.
In some embodiments, the processor may specifically implement the following steps by executing the computer program stored in the memory:
and if the temperature of the third temperature sensor of the second target component is lower than the temperature of the second target component, determining the second target component which does not support the wide temperature mode in the edge server, and setting the temperature of the third temperature sensor of the second target component to be zero.
In some embodiments, the processor may specifically implement the following steps by executing the computer program stored in the memory:
resetting the data bit of the register in the second temperature sensor to obtain the current data bit.
In some embodiments, the processor may specifically implement the following steps by executing the computer program stored in the memory:
and reading the current data bit of a register in the second temperature sensor so as to determine whether the second temperature sensor successfully starts a wide temperature mode according to the current data bit.
In some embodiments, the processor may specifically implement the following steps by executing the computer program stored in the memory:
acquiring identification information of each second temperature sensor, and reading a wide temperature compatible range corresponding to the identification information from a predefined database to obtain a reading result;
and processing the read result in a preset mode to obtain a corresponding return value, and realizing overall temperature regulation by utilizing a preset heat dissipation regulation strategy based on the return value.
In some embodiments, the processor may specifically implement the following steps by executing the computer program stored in the memory:
and determining the type of the currently set return value, and processing the read result based on the type of the return value to obtain a corresponding return value.
In some embodiments, the processor may specifically implement the following steps by executing the computer program stored in the memory:
if the value type of the return value is a positive value type, judging whether the read result has a negative value, if so, adding the read result by using a preset value to obtain the read result with the positive value, and then carrying out reverse data processing on the read result to obtain a corresponding return value;
and if the return value type is not the positive value type, carrying out data forward processing on the read result to obtain a corresponding return value.
In this embodiment, the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and the communication protocol to be followed is any communication protocol applicable to the technical solution of the present application, which is not specifically limited herein; the input/output interface 25 is used for acquiring external input data or outputting external output data, and the specific interface type thereof may be selected according to the specific application requirement, which is not limited herein.
Processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 may be implemented in at least one hardware form of DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). The processor 21 may also comprise a main processor, which is a processor for processing data in an awake state, also called CPU (Central Processing Unit ); a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 21 may integrate a GPU (Graphics Processing Unit, image processor) for rendering and drawing of content required to be displayed by the display screen. In some embodiments, the processor 21 may also include an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
The memory 22 may be a carrier for storing resources, such as a read-only memory, a random access memory, a magnetic disk, or an optical disk, and the resources stored thereon include an operating system 221, a computer program 222, and data 223, and the storage may be temporary storage or permanent storage.
The operating system 221 is used for managing and controlling various hardware devices on the electronic device 20 and the computer program 222, so as to implement the operation and processing of the processor 21 on the mass data 223 in the memory 22, which may be Windows, unix, linux. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the temperature regulation method performed by the electronic device 20 disclosed in any of the foregoing embodiments. The data 223 may include, in addition to data received by the electronic device and transmitted by the external device, data collected by the input/output interface 25 itself, and so on.
Further, the embodiment of the application also discloses a computer readable storage medium, wherein the storage medium stores a computer program, and when the computer program is loaded and executed by a processor, the method steps executed in the temperature regulation process disclosed in any embodiment are realized.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above detailed description of a temperature regulation method, device, apparatus and storage medium provided by the present invention applies specific examples to illustrate the principles and embodiments of the present invention, and the above examples are only used to help understand the method and core ideas of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (5)

1. A temperature regulation method, which is applied to a substrate management controller, comprising:
polling by using a first temperature sensor to obtain the ambient temperature of the edge server, and judging whether the ambient temperature is lower than zero degree;
if the temperature of the first temperature sensor is lower than the temperature of the second temperature sensor, determining a first target component supporting a wide temperature mode in the edge server, and sending a control command to the second temperature sensor of the first target component so that the second temperature sensor starts the wide temperature mode based on the control command; the wide temperature mode is a temperature mode in which the chip and the components are downward compatible with the ambient temperature when the ambient temperature reaches below zero;
checking the second temperature sensor by using a preset checking rule to determine whether the wide temperature mode is successfully started, and if so, controlling the edge server to enter a wide temperature regulation mode;
wherein after the control command is sent to the second temperature sensor of the first target component, the method further comprises:
resetting the data bit of the register in the second temperature sensor to obtain the current data bit;
the verifying the second temperature sensor by using a preset verification rule to determine whether the wide temperature mode is successfully started, including:
reading the current data bit of a register in the second temperature sensor so as to determine whether the second temperature sensor successfully starts a wide temperature mode according to the current data bit;
after the edge server is controlled to enter the wide temperature regulation mode, the method further comprises the following steps:
acquiring identification information of each second temperature sensor, and reading a wide temperature compatible range corresponding to the identification information from a predefined database to obtain a reading result;
processing the read result in a preset mode to obtain a corresponding return value, and realizing overall temperature regulation by utilizing a preset heat dissipation regulation strategy based on the return value;
the processing the read result in a preset manner to obtain a corresponding return value includes:
determining the type of the currently set return value, and processing the read result based on the type of the return value to obtain a corresponding return value;
the processing the read result based on the return value type to obtain a corresponding return value includes:
if the value type of the return value is a positive value type, judging whether the read result has a negative value, if so, adding the read result by using a preset value to obtain the read result with the positive value, and then carrying out reverse data processing on the read result to obtain a corresponding return value;
and if the return value type is not the positive value type, carrying out data forward processing on the read result to obtain a corresponding return value.
2. The temperature regulation method of claim 1, wherein after determining whether the ambient temperature is below zero, further comprising:
and if the temperature of the third temperature sensor of the second target component is lower than the temperature of the second target component, determining the second target component which does not support the wide temperature mode in the edge server, and setting the temperature of the third temperature sensor of the second target component to be zero.
3. A temperature regulation apparatus, applied to a substrate management controller, comprising:
the environment temperature acquisition module is used for acquiring the environment temperature of the edge server by utilizing polling of the first temperature sensor and judging whether the environment temperature is lower than zero or not;
the wide temperature mode control module is used for determining a first target component supporting a wide temperature mode in the edge server and sending a control command to a second temperature sensor of the first target component if the temperature is lower than the first target component, so that the second temperature sensor starts the wide temperature mode based on the control command; the wide temperature mode is a temperature mode in which the chip and the components are downward compatible with the ambient temperature when the ambient temperature reaches below zero;
the verification module is used for verifying the second temperature sensor by using a preset verification rule to determine whether the wide temperature mode is successfully started, and if so, controlling the edge server to enter a wide temperature regulation mode;
the temperature regulating device is further used for resetting the data bit of the register in the second temperature sensor to obtain the current data bit;
the checking module is used for reading the current data bit of the register in the second temperature sensor so as to determine whether the second temperature sensor successfully starts a wide temperature mode according to the current data bit;
the temperature regulation and control device is further used for acquiring identification information of each second temperature sensor, and reading a wide temperature compatibility range corresponding to the identification information from a predefined database to obtain a reading result; processing the read result in a preset mode to obtain a corresponding return value, and realizing overall temperature regulation by utilizing a preset heat dissipation regulation strategy based on the return value;
the temperature regulation and control device is further used for determining the value type of the currently set return value and processing the read result based on the value type of the return value to obtain a corresponding return value;
the temperature regulation and control device is further used for judging whether the read result has a negative value or not if the type of the value of the return value is a positive value type, if so, adding the read result by using a preset value to obtain the read result with the positive value, and then carrying out reverse data processing on the read result to obtain a corresponding return value; and if the return value type is not the positive value type, carrying out data forward processing on the read result to obtain a corresponding return value.
4. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the temperature regulation method according to any one of claims 1 or 2.
5. A computer-readable storage medium storing a computer program; wherein the computer program when executed by a processor implements the steps of the temperature regulation method according to any one of claims 1 or 2.
CN202210751006.7A 2022-06-29 2022-06-29 Temperature regulation and control method, device, equipment and medium Active CN115097879B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210751006.7A CN115097879B (en) 2022-06-29 2022-06-29 Temperature regulation and control method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210751006.7A CN115097879B (en) 2022-06-29 2022-06-29 Temperature regulation and control method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN115097879A CN115097879A (en) 2022-09-23
CN115097879B true CN115097879B (en) 2023-08-04

Family

ID=83295432

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210751006.7A Active CN115097879B (en) 2022-06-29 2022-06-29 Temperature regulation and control method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN115097879B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106200840A (en) * 2016-07-07 2016-12-07 山东超越数控电子有限公司 A kind of computer temperature method for handover control
CN107340833A (en) * 2017-05-27 2017-11-10 努比亚技术有限公司 Terminal temperature control method, terminal and computer-readable recording medium
CN110377414A (en) * 2019-07-25 2019-10-25 Oppo广东移动通信有限公司 Adjusting method, device, terminal and the storage medium of capacitive touch screen
CN112462868A (en) * 2020-08-28 2021-03-09 苏州浪潮智能科技有限公司 Low-temperature automatic identification heating system and method for edge server
CN113672074A (en) * 2021-08-24 2021-11-19 努比亚技术有限公司 Terminal temperature control method, terminal and storage medium
CN114020120A (en) * 2021-10-18 2022-02-08 中国联合网络通信集团有限公司 Terminal equipment protection method and device and storage medium
CN114138345A (en) * 2021-10-29 2022-03-04 苏州浪潮智能科技有限公司 Method, device and equipment for low-temperature starting of edge server and readable medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8364940B2 (en) * 2010-05-28 2013-01-29 Microsoft Corporation Automatically starting servers at low temperatures

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106200840A (en) * 2016-07-07 2016-12-07 山东超越数控电子有限公司 A kind of computer temperature method for handover control
CN107340833A (en) * 2017-05-27 2017-11-10 努比亚技术有限公司 Terminal temperature control method, terminal and computer-readable recording medium
CN110377414A (en) * 2019-07-25 2019-10-25 Oppo广东移动通信有限公司 Adjusting method, device, terminal and the storage medium of capacitive touch screen
CN112462868A (en) * 2020-08-28 2021-03-09 苏州浪潮智能科技有限公司 Low-temperature automatic identification heating system and method for edge server
CN113672074A (en) * 2021-08-24 2021-11-19 努比亚技术有限公司 Terminal temperature control method, terminal and storage medium
CN114020120A (en) * 2021-10-18 2022-02-08 中国联合网络通信集团有限公司 Terminal equipment protection method and device and storage medium
CN114138345A (en) * 2021-10-29 2022-03-04 苏州浪潮智能科技有限公司 Method, device and equipment for low-temperature starting of edge server and readable medium

Also Published As

Publication number Publication date
CN115097879A (en) 2022-09-23

Similar Documents

Publication Publication Date Title
CN106547645B (en) Method for automatically restoring image file and server system
EP4130953A1 (en) Device state identification method and apparatus, and smart terminal
WO2019024641A1 (en) Data synchronization method and apparatus, storage medium and electronic device
CN104516838A (en) Management path determining method and device
WO2020134566A1 (en) Control method for doze mode of mobile terminal, storage medium and mobile terminal
CN105260655A (en) Application program starting protection method, device and system
US11740681B2 (en) Electronic device and application managing method thereof
CN114201197A (en) Firmware upgrading method and device, electronic equipment and readable storage medium
CN116382746A (en) Firmware upgrading method, device, equipment and medium
CN113760333A (en) Software upgrading method and device, electronic equipment and computer readable storage medium
CN113672306B (en) Server component self-checking abnormity recovery method, device, system and medium
CN114121131A (en) External flash self-adaption method, device, equipment and medium
CN115097879B (en) Temperature regulation and control method, device, equipment and medium
US9454381B2 (en) Method for controlling registration of input device in input handler instance, terminal and storage device
CN113254304A (en) Method for determining shutdown type of server, server and storage medium
CN114489711A (en) Terminal upgrading method and device and storage medium
CN114816539A (en) Equipment board card, electronic equipment and control method of equipment board card
CN102243520A (en) Method for controlling fan
TWI757923B (en) Pre-boot execution environment determination system and method thereof
CN110750408A (en) Method, device and apparatus for controlling USB debug mode switch, and storage medium
US20210349516A1 (en) Energy saving device and method for saving energy in data center
CN212411180U (en) Credible starting printer and printing system
US11431820B1 (en) Method and system for implementing inter-process communications
CN113900890B (en) Method, device, equipment and medium for collecting server component information
TWI391825B (en) Processing module, operation system and processing method utilizing the same

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
GR01 Patent grant
GR01 Patent grant