Detection Method, Device and System for the Lid of a Server

By measuring the temperature, power and fan speed of the server, and combining software logic to determine the box cover status, the problem of increasing material costs caused by adding detection components or circuits in the prior art is solved, and the rapid application of new and old servers is achieved.

CN115906202BActive Publication Date: 2025-06-13INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211337994.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-28
Publication Date
2025-06-13
Estimated Expiration
2042-10-28

AI Technical Summary

Technical Problem

The existing server open-cover detection solution requires adding additional detection components or circuits to the internal board or chassis of the server, resulting in increased material costs and cannot be applied to sold servers, and the iteration speed is slow.

Method used

By obtaining the server's measured temperature, power and fan speed, calculating the temperature difference, and judging the status of the server's box cover with the temperature threshold, software logic changes are realized without additional design circuits.

Benefits of technology

It realizes rapid and convenient application on new and old server products, avoids the defect of increasing server material costs, and solves the application problems for sold servers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115906202B_ABST
    Figure CN115906202B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a method, device, and system for detecting a cover of a server. The method includes: obtaining the temperature and power of the server at the current moment to obtain the measured temperature and measured power, where the measured temperature is used to characterize the temperature inside the cabinet of the server at the current moment; obtaining the rotation speed of the fan inside the cabinet of the server at the current moment to obtain the measured rotation speed; determining the state of the cover of the server based on at least the measured temperature, measured power, and measured rotation speed, where the state of the cover of the server is a state where the cover of the server has been opened or a state where the cover of the server has not been opened. Through the present application, the problem in the existing solution that additional detection elements or detection circuits need to be added to the internal board of the server or the server chassis, which increases the material cost of the server, is solved, and at the same time, the material cost of the server is not increased too much.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of server cover detection. Specifically, the embodiments relate to a method, device, and system for detecting the cover of a server. Background Art

[0002] Servers are usually placed in computer rooms. Server administrators generally monitor the running status of servers remotely and do not stay on-site continuously. To prevent malicious people from privately opening the server chassis cover to modify the server, etc., servers usually add a cover detection function to detect and record illegal intrusion behaviors in the log.

[0003] Existing server cover detection solutions all require adding additional detection components or detection circuits on the internal board of the server or the server chassis, which increases the material cost of the server. Moreover, adding detection components on the board will occupy board space, and adding detection circuits on the chassis will increase the complexity of server production and assembly. In addition, such solutions can only be applied to newly developed servers and are powerless for sold servers. At the same time, because the usage cycle of servers is long and the iteration speed is slow, the wide application of new server cover detection solutions takes a long time. Summary of the Invention

[0004] The embodiments of the present application provide a method, device, and system for detecting the cover of a server, so as to at least solve the problem in the existing solution that additional detection components or detection circuits need to be added on the internal board of the server or the server chassis, thereby increasing the material cost of the server.

[0005] According to an embodiment of the present application, a method for detecting the cover of a server is provided. The method includes: obtaining the temperature and power of the server at the current moment to obtain the measured temperature and the measured power, where the measured temperature is used to represent the temperature inside the cabinet of the server at the current moment; obtaining the rotation speed of the fan inside the cabinet of the server at the current moment to obtain the measured rotation speed; determining the state of the cover of the server based on at least the measured temperature, the measured power, and the measured rotation speed, where the state of the cover of the server is the state that the cover of the server has been opened or the state that the cover of the server has not been opened.

[0006] In an exemplary embodiment, determining the state of the cover of the server based on at least the measured temperature, the measured power, and the measured rotation speed includes: determining the temperature of the server in the ideal state at the current moment based on the measured temperature, the measured power, and the measured rotation speed to obtain the ideal temperature; calculating the difference between the measured temperature and the ideal temperature to obtain the temperature difference; determining the state of the cover of the server based on at least the temperature difference.

[0007] In an exemplary embodiment, determining the state of the server's lid at least according to the temperature difference includes: obtaining a temperature threshold; in a case where the temperature difference is greater than or equal to the temperature threshold, determining that the state of the server is that the lid of the server has been opened.

[0008] In an exemplary embodiment, determining the state of the server's lid at least according to the temperature difference includes: obtaining a temperature threshold; in a case where the temperature difference is less than the temperature threshold, determining that the state of the server is that the lid of the server has not been opened.

[0009] In an exemplary embodiment, according to the measured temperature, the measured power, and the measured rotation speed, determining the temperature of the server in an ideal state at the current moment to obtain an ideal temperature includes: according to calculating the ideal temperature, where T x is the ideal temperature, M is a power coefficient, P is the measured power, N is the rotation speed coefficient of the fan, R is the measured rotation speed, and K is a temperature coefficient.

[0010] In an exemplary embodiment, before determining the state of the server's lid at least according to the measured temperature, the measured power, and the measured rotation speed, the method further includes: in a case of obtaining the presence information of the fan, obtaining a first rotation speed threshold and a second rotation speed threshold, where the first rotation speed threshold is less than the second rotation speed threshold, and the presence information is used to indicate that the fan is electrically connected to the server; in a case where the measured rotation speed is greater than or equal to the first rotation speed threshold and less than or equal to the second rotation speed threshold, determining that the operating condition of the fan is a normal operating condition; in a case where the measured rotation speed is less than the first rotation speed threshold or greater than the second rotation speed threshold, determining that the operating condition of the fan is an abnormal operating condition, and controlling a first alarm of the fan to give an alarm, where the first rotation speed threshold is less than the second rotation speed threshold.

[0011] In an exemplary embodiment, after determining that the state of the server is that the lid of the server has been opened, the method further includes: controlling a second alarm of the server to give an alarm.

[0012] According to another embodiment of the present application, a detection device for the cover of a server is provided. The device includes a first acquisition module, a second acquisition module, and a determination module. The first acquisition module is used to acquire the temperature and power of the server at the current moment to obtain the measured temperature and the measured power, and the measured temperature is used to characterize the temperature inside the cabinet of the server at the current moment. The second acquisition module is used to acquire the rotation speed of the fan inside the cabinet of the server at the current moment to obtain the measured rotation speed. The determination module is used to determine the state of the cover of the server at least according to the measured temperature, the measured power, and the measured rotation speed. The state of the cover of the server is the state that the cover of the server has been opened or the state that the cover of the server has not been opened.

[0013] According to still another embodiment of the present application, a detection system for the cover of a server is further provided, including a baseboard management controller, a power supply unit, a temperature sensor, and a fan. The baseboard management controller communicates with the power supply unit, the temperature sensor, and the fan respectively, and the baseboard management controller is used to execute the steps of any one of the above methods.

[0014] In an exemplary embodiment, the detection system for the cover of the server further includes a programmable logic device. The baseboard management controller communicates with the fan via the programmable logic device. The programmable logic device is used to acquire the rotation speed of the fan at the current moment to obtain the measured rotation speed, and generate a presence information when the fan is electrically connected to the server, and send the measured rotation speed and the presence information to the baseboard management controller.

[0015] Through the present application, since the state of the cover of the server can be determined only by the measured temperature, the measured power, and the measured rotation speed, only software logic changes are involved, and no additional circuit design is required, which can be quickly and conveniently applied to new and old server products. Therefore, the problem that additional detection components or detection circuits need to be added to the internal board cards or the chassis of the server in the existing solutions, which increases the material cost of the server, can be solved, and at the same time, the material cost of the server is not increased too much. Description of the Drawings

[0016] Figure 1 is a hardware structure block diagram of a mobile terminal for a detection method of the cover of a server according to an embodiment of the present application;

[0017] Figure 2 is a schematic diagram of a detection system for the cover of a server according to an embodiment of the present application;

[0018] Figure 3 is a flowchart of a detection method of the cover of a server according to an embodiment of the present application;

[0019] Figure 4 is a flowchart of a detection solution for the cover of a server according to an embodiment of the present application;

[0020] Figure 5 is a flowchart of another detection solution for the cover of a server according to an embodiment of the present application;

[0021] Figure 6 is a structural block diagram of a detection device for the cover of a server according to an embodiment of the present application.

[0022] Reference numerals:

[0023] 102, processor; 104, memory; 106, transmission device; 108, input / output device; 210, baseboard management controller; 220, power supply unit; 230, temperature sensor; 240, fan; 250, complex programmable logic device. Detailed implementation manners

[0024] In the following, embodiments of the present application will be described in detail with reference to the drawings and in conjunction with embodiments.

[0025] It should be noted that the terms "first", "second", etc. in the description and claims of the present application and the above drawings are used to distinguish similar objects, and do not necessarily need to describe a specific order or sequence.

[0026] Glossary of terms:

[0027] BMC: Baseboard Management Controller, baseboard management controller.

[0028] PSU: Power Supply Unit, power supply unit.

[0029] CPLD: Complex Programmable Logic Device, complex programmable logic device.

[0030] TACH: tachometer, tachometer.

[0031] The method embodiments provided in the embodiments of the present application can be executed in a server. Taking running on a mobile terminal as an example, Figure 1 is a hardware structural block diagram of a server for a detection method of the cover of a server according to an embodiment of the present application. As Figure 1 shown, the server may include one or more ( Figure 1Only one processor 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a field-programmable gate array FPGA) and a memory 104 for storing data are shown. Among them, the above server may further include a transmission device 106 for communication functions and an input / output device 108. Those of ordinary skill in the art can understand that Figure 1 The structure shown is only schematic and does not limit the structure of the above server. For example, the server may further include more or fewer components than Figure 1 shown in, or have a different configuration from Figure 1 shown.

[0032] The memory 104 can be used to store computer programs. For example, software programs and modules of application software, such as the computer program corresponding to the detection method of the server's lid in the embodiments of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, implements the above method. The memory 104 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memories. In some instances, the memory 104 may further include a memory remotely set relative to the processor 102, and these remote memories can be connected to the server through a network. Examples of the above network include, but are not limited to, the Internet, enterprise intranets, local area networks, mobile communication networks, and combinations thereof.

[0033] The transmission device 106 is used to receive or send data via a network. Specific examples of the above network may include a wireless network provided by the communication provider of the server. In one instance, the transmission device 106 includes a network adapter (abbreviated as NIC), which can be connected to other network devices through a base station and thus can communicate with the Internet. In one instance, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0034] The embodiments of the present application can run on Figure 2 the detection system of the server's lid shown, as Figure 2 shown. The detection system of the server's lid includes a baseboard management controller 210, a power supply unit 220, a temperature sensor 230, and a fan 240. The above baseboard management controller 210 communicates with the above power supply unit 220, the above temperature sensor 230, and the above fan 240 respectively. The above baseboard management controller 210 is used to execute the steps of any of the above methods.

[0035] Temperature sensors are placed on each board in the server and communicate with the BMC (Baseboard Management Controller) via the SMBUS bus (System Management Bus). The BMC reads the temperature data (measured temperature) of each temperature sensor in real time. At the same time, the BMC obtains the current power of the PSU (Power Supply Unit) (equivalent to the measured power of the server) through the PMBUS (Power Management Bus). In addition, it obtains the presence information and rotation speed information (TACH) of the fan through the CPLD (Complex Programmable Logic Device). When the system is running stably, the heat exchange between the inside and outside of the server will gradually reach equilibrium, and the temperature inside the server is basically stable and there is no obvious change. When the server chassis cover is illegally opened, the air duct of the server changes, and the heat exchange balance is broken, so the temperature will change significantly. By real-time monitoring and analysis of the temperature data, combined with the server power and fan status, it can be determined whether the server chassis cover has been illegally opened, and then record the event and send an alarm message.

[0036] In an exemplary embodiment, the detection system of the server chassis cover further includes a programmable logic device 250. The baseboard management controller 210 communicates with the fan 240 via the programmable logic device 250. The programmable logic device 250 is configured to obtain the rotation speed of the fan 240 at the current moment to obtain the measured rotation speed, and generate presence information when the fan 240 is electrically connected to the server, and send the measured rotation speed and the presence information to the baseboard management controller 210.

[0037] In this embodiment, a method for detecting the server chassis cover of a detection system running on a server is provided. Figure 3 It is a flowchart of a method for detecting the server chassis cover according to an embodiment of the present application, as Figure 3 shown. The process includes the following steps:

[0038] Step S102, obtain the temperature and power of the server at the current moment to obtain the measured temperature and the measured power. The measured temperature is used to represent the temperature inside the cabinet of the server at the current moment.

[0039] Step S104, obtain the rotation speed of the fan in the cabinet of the server at the current moment to obtain the measured rotation speed.

[0040] Step S106, determine the state of the server chassis cover based on at least the measured temperature, the measured power, and the measured rotation speed. The state of the server chassis cover is the state that the server chassis cover has been opened or the state that the server chassis cover has not been opened.

[0041] Through the above steps, the problem in the existing solution of adding additional detection components or detection circuits on the internal boards of the server or in the server chassis, which increases the material cost of the server, is solved. Since the status of the server's cover can be determined only by the measured temperature, measured power, and measured rotational speed, only software logic changes are involved, without the need for additional circuit design, and it can be quickly and conveniently applied to new and old server products.

[0042] With its excellent performance, the server has also risen rapidly and is widely favored by the market in the fields of cloud computing, big data processing, and artificial intelligence. To ensure the safe and stable operation of the server, the server will monitor various operating states of the system, including the temperature of boards and chips, power, fan status, etc.

[0043] Servers are usually located in computer rooms. Server administrators generally use remote monitoring to check the operating status of the servers and do not stay on-site continuously. To prevent malicious people from privately opening the server chassis cover to modify the server, etc., the server usually adds a cover opening detection function to detect and record illegal intrusion behaviors in the log.

[0044] Among them, the execution subject of the above steps can be a server, a terminal, etc., but is not limited thereto.

[0045] The execution order of step S102 and step S104 can be interchanged, that is, step S104 can be executed first, and then S102 can be executed.

[0046] In an exemplary embodiment, at least based on the above-mentioned measured temperature, the above-mentioned measured power, and the above-mentioned measured rotational speed, to determine the status of the server's cover, including: based on the above-mentioned measured temperature, the above-mentioned measured power, and the above-mentioned measured rotational speed, determine the temperature of the server in the ideal state at the current moment to obtain the ideal temperature; calculate the difference between the above-mentioned measured temperature and the above-mentioned ideal temperature to obtain the temperature difference; at least based on the above-mentioned temperature difference, determine the status of the server's cover. By at least based on the above-mentioned temperature difference, the status of the server's cover can be quickly determined.

[0047] In an exemplary embodiment, at least based on the above-mentioned temperature difference, to determine the status of the server's cover, including: obtain a temperature threshold; in the case where the above-mentioned temperature difference is greater than or equal to the above-mentioned temperature threshold, determine that the status of the above-mentioned server is that the cover of the above-mentioned server has been opened.

[0048] Specifically, for example, if the temperature difference is 10°C and the temperature threshold is 6°C, it is considered that the status of the above-mentioned server is that the cover of the above-mentioned server has been opened, and an alarm needs to be issued to remind the staff to process it as soon as possible.

[0049] In an exemplary embodiment, determining the state of the server's cabinet cover at least according to the above temperature difference includes: obtaining a temperature threshold; when the above temperature difference is less than the above temperature threshold, determining that the condition of the above server is that the cabinet cover of the above server has not been opened.

[0050] Specifically, for example, if the temperature difference is 5°C and the temperature threshold is 6°C, it is considered that the condition of the above server is that the cabinet cover of the above server has not been opened, and no alarm needs to be issued.

[0051] In an exemplary embodiment, according to the above measured temperature, the above measured power, and the above measured rotational speed, determining the temperature of the server in the ideal state at the current moment to obtain the ideal temperature includes: According to Calculating the above ideal temperature, where T x is the above ideal temperature, M is the power coefficient, P is the above measured power, N is the rotational speed coefficient of the above fan, R is the above measured rotational speed, and K is the temperature coefficient.

[0052] Specifically, the power coefficient, the temperature coefficient, and the rotational speed coefficient of the above fan can be obtained by curve fitting of power, temperature, and rotational speed.

[0053] In an exemplary embodiment, before determining the state of the server's cabinet cover at least according to the above measured temperature, the above measured power, and the above measured rotational speed, the above method further includes: when obtaining the in-place information of the above fan, obtaining a first rotational speed threshold and a second rotational speed threshold, the first rotational speed threshold being less than the second rotational speed threshold, the in-place information being used to indicate that the above fan has been electrically connected to the above server; when the above measured rotational speed is greater than or equal to the first rotational speed threshold and less than or equal to the second rotational speed threshold, determining that the operating condition of the above fan is a normal operating condition; when the above measured rotational speed is less than the first rotational speed threshold or greater than the second rotational speed threshold, determining that the operating condition of the above fan is an abnormal operating condition, and controlling the first alarm of the above fan to issue an alarm, the first rotational speed threshold being less than the second rotational speed threshold.

[0054] Specifically, only when the in-position information of the above-mentioned fan is obtained (that is, only when it is known that the above-mentioned fan is electrically connected to the above-mentioned server), the operating condition of the fan will be determined, and the measured rotational speed will be compared with the first rotational speed threshold and the second rotational speed threshold. And only when the above-mentioned measured rotational speed is greater than or equal to the above-mentioned first rotational speed threshold and the above-mentioned measured rotational speed is less than or equal to the above-mentioned second rotational speed threshold, it is determined that the operating condition of the above-mentioned fan is a normal operating condition. At this time, it is determined that the state of the cabinet cover of the above-mentioned server is a correct judgment. If it is determined that the operating condition of the above-mentioned fan is an abnormal operating condition, then it is determined that the state of the cabinet cover of the above-mentioned server is an incorrect judgment. Therefore, it is necessary to control the first alarm of the above-mentioned fan to alarm to remind the staff that the fan is abnormal.

[0055] In an exemplary embodiment, after determining that the state of the above-mentioned server is the state that the cabinet cover of the above-mentioned server has been opened, the method further includes: controlling the second alarm of the above-mentioned server to alarm to remind the staff that the cabinet cover of the above-mentioned server has been illegally opened and needs to be processed quickly.

[0056] Embodiment 1

[0057] This application also provides a detection solution for the cabinet cover of a server, as Figure 4 shown. This solution includes the following steps:

[0058] Step 1: Obtain the temperature and power of the server at the current moment to obtain the measured temperature and the measured power. The above-mentioned measured temperature is used to represent the temperature inside the cabinet of the above-mentioned server at the current moment; obtain the rotational speed of the fan in the cabinet of the server at the current moment to obtain the measured rotational speed;

[0059] Step 2: Calculate the above-mentioned ideal temperature according to where T x is the above-mentioned ideal temperature, M is the power coefficient, P is the above-mentioned measured power, N is the rotational speed coefficient of the above-mentioned fan, R is the above-mentioned measured rotational speed, and K is the temperature coefficient;

[0060] Step 3: When obtaining the in-position information of the above-mentioned fan, obtain the first rotational speed threshold and the second rotational speed threshold. The above-mentioned first rotational speed threshold is less than the above-mentioned second rotational speed threshold. The above-mentioned in-position information is used to represent that the above-mentioned fan is electrically connected to the above-mentioned server;

[0061] Step 4: When the measured rotational speed is less than the first rotational speed threshold and greater than the second rotational speed threshold, determine that the operating condition of the fan is an abnormal operating condition, and control the first alarm of the fan to give an alarm; when the measured rotational speed is greater than or equal to the first rotational speed threshold and less than or equal to the second rotational speed threshold, determine that the operating condition of the fan is a normal operating condition; meanwhile, when the temperature difference is greater than or equal to the temperature threshold, determine that the condition of the server is that the cover of the server has been opened, and then proceed to Step 5; when the temperature difference is less than the temperature threshold, determine that the condition of the server is that the cover of the server has not been opened, and then proceed to Step 1;

[0062] Step 5: Control the second alarm of the server to give an alarm.

[0063] In the above solution, the measured rotational speed and the temperature difference are determined simultaneously, which solves the problem in the existing solution that additional detection components or detection circuits need to be added on the internal board or chassis of the server, increasing the material cost of the server. Because only through the measured temperature, measured power, and measured rotational speed, the state of the cover of the server can be determined, only software logic changes are involved, without the need for additional circuit design, and it can be quickly and conveniently applied to new and old server products.

[0064] Embodiment 2

[0065] This application also provides a detection solution for the cover of a server, as Figure 5 shown. This solution includes the following steps:

[0066] Step 1: Obtain the temperature and power of the server at the current moment to obtain the measured temperature and measured power. The measured temperature is used to represent the temperature inside the cabinet of the server at the current moment; obtain the rotational speed of the fan inside the cabinet of the server at the current moment to obtain the measured rotational speed;

[0067] Step 2: Calculate the above ideal temperature according to where T x is the above ideal temperature, M is the power coefficient, P is the above measured power, N is the rotational speed coefficient of the fan, R is the above measured rotational speed, and K is the temperature coefficient;

[0068] Step 3: When obtaining the in-place information of the above fan, obtain the first rotational speed threshold and the second rotational speed threshold. The first rotational speed threshold is less than the second rotational speed threshold. The in-place information is used to represent that the fan has been electrically connected to the server;

[0069] Step 4: When the above temperature difference is greater than or equal to the above temperature threshold, determine that the condition of the above server is that the cover of the above server has been opened, and then proceed to Step 5; when the above temperature difference is less than the above temperature threshold, determine that the condition of the above server is that the cover of the above server has not been opened, and then proceed to Step 1;

[0070] Step 5: When the measured rotation speed is less than the first rotation speed threshold or the measured rotation speed is greater than the second rotation speed threshold, determine that the operating condition of the above fan is an abnormal operating condition, and control the first alarm of the above fan to give an alarm; when the measured rotation speed is greater than or equal to the above first rotation speed threshold and the measured rotation speed is less than or equal to the above second rotation speed threshold, determine that the operating condition of the above fan is a normal operating condition;

[0071] Step 6: When the operating condition of the above fan is a normal operating condition and the condition of the above server is that the cover of the above server has been opened, control the second alarm of the above server to give an alarm.

[0072] In the above solution, the temperature difference is determined first, and then the measured rotation speed is determined, which solves the problem in the existing solution that additional detection elements or detection circuits need to be added to the internal board of the server or the server chassis, increasing the material cost of the server. Because the state of the cover of the server can be determined only by the measured temperature, measured power, and measured rotation speed, only software logic changes are involved, and no additional circuit design is required, so it can be quickly and conveniently applied to new and old server products.

[0073] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disc), and includes several instructions to enable a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present application.

[0074] In this embodiment, a detection device for the cover of a server is also provided. This device is used to implement the above embodiments and preferred implementation manners, and those that have been described will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that can implement a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.

[0075] Figure 6 is a structural block diagram of a detection device for the cover of a server according to an embodiment of the present application. As Figure 6 shown, the device includes a first acquisition module 62, a second acquisition module 64, and a determination module 66. The first acquisition module 62 is configured to acquire the temperature and power of the server at the current moment to obtain the measured temperature and the measured power. The above-mentioned measured temperature is used to characterize the temperature inside the cabinet of the server at the current moment. The second acquisition module 64 is configured to acquire the rotation speed of the fan inside the cabinet of the server at the current moment to obtain the measured rotation speed. The determination module 66 is configured to determine the state of the cover of the server based on at least the above-mentioned measured temperature, the above-mentioned measured power, and the above-mentioned measured rotation speed. The state of the cover of the server is a state where the cover of the server has been opened or a state where the cover of the server has not been opened.

[0076] In the above device, the problem in the existing solution that additional detection elements or detection circuits need to be added to the internal board of the server or the server chassis, which increases the material cost of the server, is solved. Because the state of the cover of the server can be determined only by the measured temperature, the measured power, and the measured rotation speed, only software logic changes are involved, and no additional circuit design is required, so it can be quickly and conveniently applied to new and old server products.

[0077] In an exemplary embodiment, the determination module includes a first determination sub-module, a first calculation sub-module, and a second determination sub-module. The first determination sub-module is configured to determine the temperature of the server in the ideal state at the current moment based on the above-mentioned measured temperature, the above-mentioned measured power, and the above-mentioned measured rotation speed to obtain the ideal temperature. The first calculation sub-module is configured to calculate the difference between the above-mentioned measured temperature and the above-mentioned ideal temperature to obtain the temperature difference. The second determination sub-module is configured to determine the state of the cover of the server based on at least the above-mentioned temperature difference.

[0078] In an exemplary embodiment, the second determination sub-module includes a first acquisition sub-module and a third determination sub-module. The first acquisition sub-module is configured to acquire a temperature threshold. The third determination sub-module is configured to determine that the condition of the server is a state where the cover of the server has been opened when the above-mentioned temperature difference is greater than or equal to the above-mentioned temperature threshold.

[0079] Specifically, for example, if the temperature difference is 10 °C and the temperature threshold is 6 °C, it is considered that the condition of the server is a state where the cover of the server has been opened, and an alarm needs to be issued to remind the staff to deal with it as soon as possible.

[0080] In an exemplary embodiment, the determination module includes a second acquisition sub-module and a fourth determination sub-module. The second acquisition sub-module is configured to acquire a temperature threshold. The fourth determination sub-module is configured to determine that the condition of the server is that the cover of the server is not opened when the temperature difference is less than the temperature threshold.

[0081] Specifically, for example, if the temperature difference is 5 °C and the temperature threshold is 6 °C, it is considered that the condition of the server is that the cover of the server is not opened, and no alarm needs to be made.

[0082] In an exemplary embodiment, the first determination sub-module includes a second calculation sub-module, and the second calculation sub-module is configured to calculate the ideal temperature, where T x is the ideal temperature, M is the power coefficient, P is the measured power, N is the rotation speed coefficient of the fan, R is the measured rotation speed, and K is the temperature coefficient.

[0083] Specifically, the power coefficient, the temperature coefficient, and the rotation speed coefficient of the fan can be obtained by curve fitting of power, temperature, and rotation speed.

[0084] In an exemplary embodiment, the device further includes a third acquisition module, a first processing module, and a second processing module. Before determining the state of the cover of the server based on at least the measured temperature, the measured power, and the measured rotation speed, the third acquisition module is configured to acquire a first rotation speed threshold and a second rotation speed threshold when acquiring the in-place information of the fan. The first rotation speed threshold is less than the second rotation speed threshold, and the in-place information is used to indicate that the fan is electrically connected to the server. The first processing module is configured to determine that the operating condition of the fan is a normal operating condition when the measured rotation speed is greater than or equal to the first rotation speed threshold and less than or equal to the second rotation speed threshold. The second processing module is configured to determine that the operating condition of the fan is an abnormal operating condition when the measured rotation speed is less than the first rotation speed threshold or greater than the second rotation speed threshold, and control the first alarm of the fan to give an alarm. The first rotation speed threshold is less than the second rotation speed threshold.

[0085] Specifically, only when the above-mentioned fan is in place (i.e., only when it is known that the above-mentioned fan is electrically connected to the above-mentioned server), the operating condition of the fan will be determined, and the measured rotational speed will be compared with the first rotational speed threshold and the second rotational speed threshold. And only when the above-mentioned measured rotational speed is greater than or equal to the above-mentioned first rotational speed threshold and the above-mentioned measured rotational speed is less than or equal to the above-mentioned second rotational speed threshold, the operating condition of the above-mentioned fan is determined to be a normal operating condition. At this time, the state of the cover of the above-mentioned server is determined to be a correct judgment. If the operating condition of the above-mentioned fan is determined to be an abnormal operating condition, then the state of the cover of the above-mentioned server is determined to be an incorrect judgment. Therefore, it is necessary to control the first alarm of the above-mentioned fan to give an alarm to remind the staff that the fan is abnormal.

[0086] In an exemplary embodiment, the device further includes an alarm module. After determining that the state of the above-mentioned server is the state that the cover of the above-mentioned server has been opened, the alarm module is used to control the second alarm of the above-mentioned server to give an alarm, so as to remind the staff that the cover of the above-mentioned server has been illegally opened and needs to be processed promptly.

[0087] It should be noted that the above-mentioned various modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above-mentioned modules are all located in the same processor; or, the above-mentioned various modules are respectively located in different processors in any combination form.

[0088] The embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored. Wherein, the computer program is set to execute the steps in any one of the above method embodiments when running.

[0089] In an exemplary embodiment, the above-mentioned computer-readable storage medium may include, but is not limited to: USB flash drive, read-only memory (abbreviated as ROM), random access memory (abbreviated as RAM), mobile hard disk, magnetic disk or optical disc and other various media that can store computer programs.

[0090] The embodiment of the present application also provides an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is set to run the computer program to execute the steps in any one of the above method embodiments.

[0091] In an exemplary embodiment, the above-mentioned electronic device may further include a transmission device and an input / output device. Wherein, the transmission device is connected to the above-mentioned processor, and the input / output device is connected to the above-mentioned processor.

[0092] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details thereof will not be repeated here.

[0093] Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present application can be implemented by a general-purpose computing device. They can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. They can be implemented by program codes executable by the computing device. Thus, they can be stored in a storage device and executed by the computing device. And in some cases, the steps shown or described can be executed in a sequence different from that here, or they can be separately fabricated into individual integrated circuit modules, or multiple modules or steps among them can be fabricated into a single integrated circuit module for implementation. In this way, the present application is not limited to any specific combination of hardware and software.

[0094] The above are only the preferred embodiments of the present application and are not used to limit the present application. For those skilled in the art, various changes and modifications can be made to the present application. Any modification, equivalent replacement, improvement, etc. made within the principle of the present application shall be included in the protection scope of the present application.

Claims

1. A method for detecting the cover of a server, characterized in that, comprising: Obtaining the temperature and power of the server at the current moment to obtain the measured temperature and the measured power, where the measured temperature is used to characterize the temperature inside the cabinet of the server at the current moment; Obtaining the rotation speed of the fan inside the cabinet of the server at the current moment to obtain the measured rotation speed; Determining the state of the cover of the server based on at least the measured temperature, the measured power, and the measured rotation speed, where the state of the cover of the server is the state where the cover of the server has been opened or the state where the cover of the server has not been opened; Among them, determining the state of the cover of the server based on at least the measured temperature, the measured power, and the measured rotation speed includes: determining the temperature of the server in the ideal state at the current moment based on the measured temperature, the measured power, and the measured rotation speed to obtain the ideal temperature; calculating the difference between the measured temperature and the ideal temperature to obtain the temperature difference; determining the state of the cover of the server based on at least the temperature difference; Determining the state of the cover of the server based on at least the temperature difference includes: obtaining a temperature threshold; in the case where the temperature difference is greater than or equal to the temperature threshold, determining that the condition of the server is the state where the cover of the server has been opened; Determining the state of the cover of the server based on at least the temperature difference includes: obtaining a temperature threshold; in the case where the temperature difference is less than the temperature threshold, determining that the condition of the server is the state where the cover of the server has not been opened; Determine the temperature of the server under the ideal state at the current moment based on the measured temperature, the measured power, and the measured rotational speed to obtain the ideal temperature, including: According to Calculate the ideal temperature, where T x is the ideal temperature, M is the power coefficient, P is the measured power, N is the rotational speed coefficient of the fan, R is the measured rotational speed, and K is the temperature coefficient.

2. The method according to claim 1, characterized in that, Before determining the state of the cover of the server based on at least the measured temperature, the measured power, and the measured rotation speed, the method further includes: When obtaining the presence information of the fan, obtaining a first rotation speed threshold and a second rotation speed threshold, where the first rotation speed threshold is less than the second rotation speed threshold, and the presence information is used to characterize that the fan is electrically connected to the server; In the case where the measured rotation speed is greater than or equal to the first rotation speed threshold and the measured rotation speed is less than or equal to the second rotation speed threshold, determining that the operating condition of the fan is a normal operating condition; In the case where the measured rotation speed is less than the first rotation speed threshold or the measured rotation speed is greater than the second rotation speed threshold, determining that the operating condition of the fan is an abnormal operating condition, and controlling the first alarm of the fan to give an alarm, where the first rotation speed threshold is less than the second rotation speed threshold.

3. The method according to any one of claims 1 to 2, characterized in that, After determining that the state of the server is the state where the cover of the server has been opened, the method further includes: Controlling the second alarm of the server to give an alarm.

4. A detection device for the cover of a server, characterized in that, comprising: A first acquisition module for obtaining the temperature and power of the server at the current moment to obtain the measured temperature and the measured power, where the measured temperature is used to characterize the temperature inside the cabinet of the server at the current moment; A second acquisition module, configured to acquire the rotation speed of the fan in the cabinet of the server at the current moment to obtain the measured rotation speed; A determination module, configured to determine the state of the cabinet cover of the server based on at least the measured temperature, the measured power, and the measured rotation speed, where the state of the cabinet cover of the server is a state where the cabinet cover of the server has been opened or a state where the cabinet cover of the server has not been opened; Among them, the determination module includes a first determination sub-module, a first calculation sub-module, and a second determination sub-module. The first determination sub-module is configured to determine the temperature of the server in the ideal state at the current moment based on the measured temperature, the measured power, and the measured rotation speed to obtain the ideal temperature; the first calculation sub-module is configured to calculate the difference between the measured temperature and the ideal temperature to obtain the temperature difference; the second determination sub-module is configured to determine the state of the cabinet cover of the server based on at least the temperature difference; The second determination sub-module includes a first acquisition sub-module and a third determination sub-module. The first acquisition sub-module is configured to acquire a temperature threshold; the third determination sub-module is configured to determine that the condition of the server is a state where the cabinet cover of the server has been opened when the temperature difference is greater than or equal to the temperature threshold; The determination module includes a second acquisition sub-module and a fourth determination sub-module. The second acquisition sub-module is configured to acquire a temperature threshold; the fourth determination sub-module is configured to determine that the condition of the server is a state where the cabinet cover of the server has not been opened when the temperature difference is less than the temperature threshold; The first determination sub-module includes a second calculation sub-module, and the second calculation sub-module is configured to calculate the ideal temperature according to calculate the ideal temperature, where T x is the ideal temperature, M is the power coefficient, P is the measured power, N is the rotational speed coefficient of the fan, R is the measured rotational speed, and K is the temperature coefficient.

5. A detection system for the cabinet cover of a server, including a baseboard management controller, a power supply unit, a temperature sensor, and a fan. The baseboard management controller communicates with the power supply unit, the temperature sensor, and the fan respectively. Characterized in that The baseboard management controller is configured to execute the steps of the method according to any one of claims 1 to 2.

6. The system according to claim 5, Characterized in that The detection system for the cabinet cover of the server further includes a programmable logic device. The baseboard management controller communicates with the fan via the programmable logic device. The programmable logic device is configured to acquire the rotation speed of the fan at the current moment to obtain the measured rotation speed, and generate a presence information when the fan is electrically connected to the server, and send the measured rotation speed and the presence information to the baseboard management controller.

Citation Information

Patent Citations

  • Server case, image acquisition method and storage medium

    CN112612329A

  • Big data server with good heat dissipation

    CN212160593U