Stress record alarm method, device, equipment and medium
By using backup batteries in the server to store stress shock data and reading and judging these data when the server is restored and powered on, the problem of data loss in the current technology of stress monitoring system when power is off is solved, timely monitoring and alarming of the server stress status is achieved, and the reliability of the equipment and after-sales service capabilities are improved.
Patent Information
- Application Number
- CN202411789397.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-03-07
AI Technical Summary
The existing stress monitoring system cannot obtain stress shock data in real time during the server's power outage or power outage, resulting in the inability to detect potential problems in time, which may damage the server's memory particles, chips, hard disks and other core components.
By using a backup battery in the server to power the controller module, it ensures that stress shock data can be continuously recorded and stored when the server is powered off. After the server returns to power-on state, read the stored pending data and determine whether it reaches the stress threshold. If it reaches it, an alarm will be displayed.
It effectively avoids potential damage to the equipment caused by mechanical impact during transportation and storage, ensures the integrity and reliability of stress impact data, provides a reliable basis for equipment maintenance, quality analysis and responsibility traceability, and improves the equipment's reliability and after-sales service capabilities.
Smart Images

Figure CN119580457A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of stress monitoring technology, and in particular to a stress recording alarm method, device, equipment and medium. Background Art
[0002] At present, with the widespread transportation and use of electronic equipment, especially server equipment, around the world, how to prevent mechanical stress shock from causing damage to these electronic equipment has become a key issue. Existing stress monitoring systems usually rely on real-time monitoring. If the monitoring system fails or the server loses power, the real-time data may be lost, resulting in potential problems that cannot be discovered in time, and the mechanical stress shocks to which electronic equipment is subjected during transportation and storage cannot be monitored and recorded in time, so that stress shocks may cause damage to the server's memory particles, chips, hard disks and other core components, ultimately affecting the normal operation and life of the equipment. Summary of the invention
[0003] The purpose of the present invention is to overcome the deficiencies of the prior art and provide a stress recording alarm method, device, equipment and medium.
[0004] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0005] In a first aspect, this embodiment provides a stress recording alarm method, comprising the following steps:
[0006] Obtain stress impact data;
[0007] Determine whether the server is in a power-off state;
[0008] If the server is in a power-off state, the stress impact data is stored to form data to be processed;
[0009] When the server is powered on again, the data to be processed is read;
[0010] Determining whether a value in the data to be processed reaches a stress threshold;
[0011] If the value in the data to be processed reaches the stress threshold, an alarm is displayed.
[0012] A further technical solution is: if the server is in a power-off state, the step of storing the stress impact data to form data to be processed includes the following sub-steps:
[0013] Using a backup battery to supply power to a controller module so that the controller module acquires the stress impact data;
[0014] The controller module is instructed to store the stress impact data to form data to be processed.
[0015] A further technical solution is: when the server is restored to a power-on state, the step of reading the data to be processed comprises the following sub-steps:
[0016] Switching the power supply of the controller module from the backup battery to the main power supply so that the main power supply supplies power to the controller module;
[0017] Instruct the controller module to read the data to be processed.
[0018] A further technical solution is: the step of determining whether the value in the data to be processed reaches the stress threshold comprises the following sub-steps:
[0019] Presetting a stress threshold in advance in the controller module;
[0020] The controller module is instructed to determine whether a value in the data to be processed reaches the stress threshold.
[0021] A further technical solution is: if the value in the data to be processed reaches the stress threshold, the step of displaying an alarm comprises the following sub-steps:
[0022] Using a main power supply to supply power to the alarm module so that the alarm module reads the data to be processed;
[0023] The alarm module is instructed to process the data to be processed to generate and display alarm information.
[0024] A further technical solution is: after the step of determining whether the value in the data to be processed reaches the stress threshold, the following steps are also included:
[0025] If the value in the data to be processed does not reach the stress threshold, the data to be processed is stored to form stored data.
[0026] In a second aspect, the present embodiment provides a stress recording alarm device, comprising: an acquisition unit, a first judgment unit, a first storage unit, a reading unit, a second judgment unit, and an alarm unit;
[0027] The acquisition unit is used to acquire stress impact data;
[0028] The first determination unit is used to determine whether the server is in a power-off state;
[0029] The first storage unit is used to store the stress impact data to form data to be processed if the server is in a power-off state;
[0030] The reading unit is used to read the data to be processed when the server is restored to a power-on state;
[0031] The second judgment unit is used to judge whether the value in the data to be processed reaches the stress threshold;
[0032] The alarm unit is used to display an alarm if the value in the data to be processed reaches the stress threshold.
[0033] Its further technical solution is: the stress recording alarm device also includes a second storage unit;
[0034] The second storage unit is used to store the data to be processed to form storage data if the value in the data to be processed does not reach the stress threshold.
[0035] In a third aspect, this embodiment provides a computer device, which includes a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the stress recording alarm method as described above is implemented.
[0036] In a fourth aspect, the present embodiment provides a storage medium, wherein the storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the stress recording alarm method as described above can be implemented.
[0037] Compared with the prior art, the beneficial effects of the present invention are as follows: by recording and storing stress impact data received by electronic equipment during various links such as transportation, installation, and use, and performing backtracking processing and abnormal warning on the stress impact data, potential damage to the equipment caused by mechanical impact during transportation and storage is effectively avoided, and a reliable basis is provided for subsequent equipment maintenance, equipment quality analysis, and responsibility tracing, thereby improving the reliability of the equipment and after-sales service capabilities.
[0038] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0040] Figure 1 A schematic diagram of an application scenario of the stress recording alarm method provided by an embodiment of the present invention;
[0041] Figure 2 A schematic diagram of a process flow of a stress recording alarm method provided by an embodiment of the present invention;
[0042] Figure 3 A schematic block diagram of a stress recording alarm device provided in an embodiment of the present invention;
[0043] Figure 4 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0044] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0045] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0046] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0047] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0048] See also Figure 1 to Figure 2 In the specific embodiment shown, the present invention discloses a stress recording alarm method, comprising the following steps:
[0049] S1, obtain stress impact data.
[0050] Specifically, see Figure 1As shown, by adding highly sensitive mechanical stress sensors to various stress-sensitive parts of electronic equipment, when the stress-sensitive parts are subjected to mechanical stress impact, the mechanical stress sensors can record the corresponding stress impact data, thereby achieving the acquisition of stress impact data. In this embodiment, taking the server as an example, TSK-1E-120-3A-11L50W5MS sensors are added to the CPLD chip, BMC chip, memory particles, south bridge chip and other positions of the server, so that when these positions are subjected to mechanical stress impact, the TSK-1E-120-3A-11L50W5MS sensors can record the corresponding stress impact data.
[0051] More specifically, the stress impact data includes a stress impact position, a stress impact time and a stress impact value.
[0052] The impact of stress shock on the server is related to multiple factors. Recording the location of stress shock can accurately locate the specific part of the server that is impacted, because the components at different locations inside the server (such as memory particles, chips, etc.) have different tolerance to mechanical stress and possible damage consequences. Clarifying the location will help to subsequently conduct targeted assessments of the risk of damage to components in specific areas. Recording the time of stress shock can help analyze when the stress shock event occurred during the entire server transportation, storage, etc., and combine the server's operation log or other relevant records to determine whether the time point is in a critical operation or static stage, and whether it is associated with other abnormal phenomena. The stress shock value intuitively reflects the intensity of the impact. The possibility and degree of damage to server components caused by stress values of different sizes vary greatly. By recording this value, it can be compared with the stress threshold that the server components can withstand, thereby determining whether damage may have occurred or a potential threat.
[0053] By comprehensively recording the stress impact location, stress impact time and stress impact value, a complete stress impact event information library can be built. This helps to quickly trace back the stress impact experienced when the server fails or has abnormal performance, accurately determine whether the failure is caused by mechanical stress impact and which specific impact caused the problem, and improve the efficiency and accuracy of fault diagnosis. At the same time, it is also of great significance for server maintenance and quality improvement. Based on these detailed data, the structural design, packaging method or transportation process of the server can be optimized to reduce the risk of damage caused by stress impact, extend the service life of the server and improve its reliability.
[0054] S2, determine whether the server is in a power-off state;
[0055] S3, if the server is in a power-off state, the stress impact data is stored to form data to be processed.
[0056] Specifically, step S3 includes the following sub-steps:
[0057] A backup battery is used to supply power to the controller module so that the controller module acquires the stress impact data.
[0058] When the server is in a power-off state (i.e., the server is not connected to the main power supply), in order to ensure that the stress impact data can be continuously recorded and stored, a backup battery is required to provide a stable power supply to the controller module. In this embodiment, the backup battery used is an RTC (Real Time C l ock, real-time clock) battery. The RTC battery is usually used to power the real-time clock module of the device to ensure that the device can still maintain the accuracy of time after power failure. In this solution, the RTC battery is extended to power the controller module to ensure that the controller module can continue to work during the server power failure, so that the stress impact data can be received and stored uninterruptedly, and by utilizing the existing RTC battery resources, there is no need to add an additional complex power management module, thereby reducing costs. In addition, the RTC battery usually has a long service life, can provide a stable power supply, and enhances the reliability of power supply.
[0059] The controller module is instructed to store the stress impact data to form data to be processed.
[0060] In this embodiment, the controller module used is an MCU (microcontroller unit), which usually contains a certain capacity of memory inside the MCU for storing temporary data or program code. In this scheme, the memory of the MCU is used to store stress shock data until the server is powered on again, thereby ensuring that the stress shock data captured during the power outage of the server will not be lost, maintaining the integrity of the data, and by using the memory inside the MCU to store data, there is no need to add additional storage devices, simplifying the system design, and also facilitating that when the server is powered on again, the MCU can immediately read the stored stress shock data, and process and analyze it, thereby quickly responding to potential stress problems. The mechanical stress sensor transmits the sensed stress shock data to the MCU, so that the MCU can efficiently process and analyze the stress shock data, ensuring the accuracy and integrity of the data. At the same time, the low power consumption characteristics of the MCU help to extend the life of the RTC battery, thereby extending the system's operating time during power outages.
[0061] Through the above step S3, it is ensured that the server can continuously capture and store stress impact data during the power outage, thereby avoiding data loss and omission. When the server is powered on again, these stored data to be processed can be read and analyzed to determine whether there is a potential stress problem. Therefore, step S3 not only improves the reliability and integrity of the system, but also provides strong data support for subsequent alarms and processing.
[0062] In addition, if the server is in a powered-on state, there is no need to use an MCU to store the stress impact data, but the stress impact data is directly used as data to be processed, so that the stress impact data directly enters the next step.
[0063] Specifically, when the server is powered on, its internal system (including MCU) is active and can process data immediately. By directly feeding the stress impact data into the processing flow, the additional storage and reading steps of the data in the MCU are avoided, thereby reducing the delay of data processing and improving the response speed and efficiency of the overall system. In addition, the storage and reading operations of data will consume certain system resources, including the processing power of the MCU and the number of read and write times of the memory. When the server is powered on, directly processing the data can reduce the consumption of these resources, so that the system can use limited hardware resources more efficiently. At the same time, by removing the intermediate storage steps, the data processing process is simplified, making the design and implementation of the entire system more intuitive and easy to maintain. This helps to reduce the complexity and development cost of the system, while improving the reliability and stability of the system. And for stress impact data that needs to be monitored and responded to in real time, direct processing of it can ensure the real-time nature of the data, which means that the system can detect potential stress problems more quickly and take corresponding measures to intervene, thereby improving the safety and reliability of the product. In addition, directly processing data when the server is powered on avoids the risk of data loss due to storage medium failure or data write errors. This helps ensure the integrity and accuracy of the data and provides reliable data support for subsequent warnings and processing.
[0064] S4, determining whether the value in the data to be processed reaches a stress threshold.
[0065] Specifically, step S4 includes the following sub-steps:
[0066] The power supply of the controller module is switched from the backup battery to the main power supply, so that the main power supply supplies power to the controller module.
[0067] When the server is powered on again, in order to ensure that the controller module (such as MCU) can run stably and efficiently, it is necessary to switch its power supply from the backup battery (such as RTC battery) back to the main power supply. The main power supply can usually provide a more stable and sufficient power supply to meet the energy consumption requirements of the controller module when processing large amounts of data. In addition, switching back to the main power supply also helps to extend the life of the backup battery, because the backup battery is mainly used to provide necessary power protection during server power outages. In this embodiment, when the server detects that the main power supply is connected and stable, the power supply of the controller module is switched from the RTC battery to the main power supply through the power management module. Providing more stable and sufficient power to the controller module through the main power supply helps to ensure the accuracy and efficiency of data processing, and also avoids the use of the backup battery when the server is powered on, thereby extending its service life and reducing the frequency and cost of battery replacement. The power supply is usually more energy-efficient than the backup battery, and switching back to the main power supply helps to reduce overall energy consumption. In addition, when the main power supply is supplying power to the controller module, the main power supply is also charging the backup battery. By charging the backup battery regularly, its performance and life can be maintained, the frequency and cost of battery replacement can be reduced, and it can also ensure that the backup battery can normally provide power to the controller module when the server is powered off, so that the controller module can still store stress impact data normally in the case of power outage, which helps to ensure the integrity and accuracy of the data and provides reliable data support for subsequent alarms and processing. At the same time, when the main power supply provides power to the server, there is usually a certain amount of redundancy or surplus power. Using this power to charge the backup battery can achieve effective use of energy and avoid energy waste.
[0068] Instruct the controller module to read the data to be processed.
[0069] In this embodiment, when the power supply of the controller module is switched back to the main power supply, the MCU immediately starts to read the data to be processed stored in its memory and / or the stress impact data acquired in real time by the mechanical stress sensor. These data include key information such as stress impact position, stress impact time and stress impact value. The MCU parses and preprocesses these data through its internal data processing unit for subsequent analysis and judgment. By timely reading the data stored in the controller module, data loss or damage is avoided, and the data is directly read through the controller module, the delay of data transmission and processing is reduced, the response speed of the overall system is improved, and the read data provides the necessary basic information for subsequent analysis and judgment, which helps to quickly identify potential stress problems.
[0070] S5, determining whether the value in the data to be processed reaches a stress threshold.
[0071] Specifically, step S5 includes the following sub-steps:
[0072] A stress threshold is preset in advance in the controller module.
[0073] The controller module is instructed to determine whether a value in the data to be processed reaches the stress threshold.
[0074] The MCU has preset corresponding stress thresholds for all stress impact positions. After the server is powered on again, the MCU processes and judges the data to be processed (i.e., stress impact data) from the mechanical stress sensor and the internal storage of the MCU. If the stress impact value corresponding to a certain stress impact position reaches the stress threshold corresponding to the stress impact position, it indicates that the stress impact position may have suffered excessive stress impact, and corresponding measures need to be taken for alarm or protection.
[0075] Through the above step S5, timely monitoring and processing of stress impact data is achieved, the response speed and accuracy of the system are improved, and through the preset stress threshold, accurate judgment of the server stress state is achieved, providing reliable data support for subsequent alarm or protection operations, and avoiding the risk of server damage or data loss due to excessive stress impact.
[0076] S6: If the value in the data to be processed reaches the stress threshold, an alarm is displayed.
[0077] Specifically, step S6 includes the following sub-steps:
[0078] Using a main power supply to supply power to the alarm module so that the alarm module reads the data to be processed;
[0079] In this embodiment, the alarm module used is BMC (Baseboard Management Controller), which is an independent subsystem in the server and is responsible for the out-of-band management of the server. It can monitor, manage and maintain the server through an independent power supply and network connection when the server operating system is unavailable. When the server is powered on again, the power management module on the server motherboard will start working and enable the main power supply to provide power to various components of the server, including BMC. This design principle ensures that the BMC can start quickly after the server is powered on again and is ready to receive and process data from the MCU. By ensuring that the BMC can start quickly after the server is powered on again, the system's response speed to stress impact data is improved. After the server is powered on again, the MCU will transmit the data to be processed (i.e., stress impact data) that reaches the stress threshold to the BMC. This is because the BMC has powerful data processing and presentation capabilities, and can convert these data into alarm information that is easy to understand and operate. Data transmission between the MCU and the BMC is usually implemented through an internal bus or a specific communication interface to ensure fast and accurate data transmission. By transmitting the data to be processed to the BMC through the MCU, the powerful data processing capability of the BMC can be used to quickly generate alarm information. The BMC can present the alarm information to the user in a graphical interface or other easy-to-understand manner, making it easier for the user to monitor the stress status of the server in real time.
[0080] The alarm module is instructed to process the data to be processed to generate and display alarm information.
[0081] According to the preset alarm rules (in this embodiment, the stress impact value reaches the stress threshold), the BMC will generate corresponding alarm information and display it through the server's display screen, log system or remote management interface. Through the real-time processing and alarm function of the BMC, the stress state of the server can be understood at the first time and countermeasures can be taken in time. Through the real-time processing and display function of the BMC, it is ensured that the system can timely warn of potential stress impact problems, and the visual presentation of the alarm information helps the administrator to quickly understand the stress state of the server, improve management efficiency, and avoid risks such as server damage or data loss caused by excessive stress impact, thereby enhancing the security of the system.
[0082] In addition, the step S5 may further include the following steps:
[0083] S7: If the value in the data to be processed does not reach the stress threshold, the data to be processed is stored to form stored data.
[0084] The step S7 includes the following sub-steps: instructing the controller module to store the data to be processed to form stored data.
[0085] Specifically, in the server stress shock monitoring and processing process, step S7 is responsible for determining whether the data to be processed reaches the stress threshold. If the data does not reach the threshold, it means that although the server has experienced stress shocks, these shocks have not reached the critical level that may cause failures or performance abnormalities. However, these data still have important reference value because they can reflect the various stress conditions that the server may encounter during transportation, storage or use. By storing the data to be processed that does not reach the stress threshold, the complete data record of the server when it experiences various stress shocks can be ensured. This helps to more comprehensively understand the stress state of the server and its evolution process in subsequent analysis. The stored data can serve as an important basis for fault prevention and diagnosis. Even if some stress shocks do not immediately trigger an alarm, these data may reveal potential failure trends or risk points. Through in-depth analysis of these data, potential problems can be discovered in advance and corresponding preventive measures can be taken. At the same time, the stored data can also provide valuable information for system optimization and improvement of the server. For example, by analyzing these data, the performance of the server under different stress conditions can be understood, thereby optimizing its structural design, packaging method or transportation process to reduce the risk of damage caused by stress shocks. In addition, the existence of stored data provides flexibility for subsequent data analysis and processing. As technology advances and needs change, more advanced analysis algorithms or functions can be developed based on these stored data to meet changing business needs. In addition, using MCU for data storage eliminates the need to add additional storage devices, thereby simplifying system design and reducing costs. At the same time, the low power consumption characteristics of MCU also help extend the server's operating time. In addition, MCU will automatically overwrite the stored data regularly, thereby reducing the impact of excessive data on the MCU's storage performance and data processing performance.
[0086] That is, through the design of step S7, the integrity of the data can be effectively protected, and strong support can be provided for subsequent fault prevention, diagnosis, system optimization and efficient use of resources. Through the implementation of this step, the reliability and security of the server can be further improved, and the potential risks caused by stress shock can be reduced.
[0087] See also Figure 3 As shown, the present invention also discloses a stress recording alarm device, comprising: an acquisition unit 10, a first judgment unit 20, a first storage unit 30, a reading unit 40, a second judgment unit 50, and an alarm unit 60;
[0088] The acquisition unit 10 is used to acquire stress impact data;
[0089] The first determination unit 20 is used to determine whether the server is in a power-off state;
[0090] The first storage unit 30 is used to store the stress impact data to form data to be processed if the server is in a power-off state;
[0091] The reading unit 40 is used to read the data to be processed when the server is powered on again;
[0092] The second judging unit 50 is used to judge whether the value in the data to be processed reaches the stress threshold;
[0093] The alarm unit 60 is used to display an alarm if the value in the data to be processed reaches the stress threshold.
[0094] In one embodiment, the stress recording alarm device further includes a second storage unit 70;
[0095] The second storage unit 70 is used to store the data to be processed to form storage data if the value in the data to be processed does not reach the stress threshold.
[0096] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned stress recording alarm device and each unit can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and brevity of description, it will not be repeated here.
[0097] The stress recording alarm device can be implemented in the form of a computer program. The computer program can be used in Figure 4 Runs on the computer device shown.
[0098] See also Figure 4 , Figure 4 is a schematic block diagram of a computer device provided in an embodiment of the present application; the computer device 500 may be a terminal or a server, wherein the terminal may be an electronic device with communication functions such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a personal digital assistant, and a wearable device. The server may be an independent server or a server cluster composed of multiple servers.
[0099] See also Figure 4 The computer device 500 includes a processor 502 , a memory and a network interface 505 connected via a system bus 501 , wherein the memory may include a non-volatile storage medium 503 and an internal memory 504 .
[0100] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions, and when the program instructions are executed, the processor 502 can execute a stress recording alarm method.
[0101] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .
[0102] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a stress recording alarm method.
[0103] The network interface 505 is used to communicate with other devices over the network. Figure 4 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0104] The processor 502 is used to run the computer program 5032 stored in the memory to implement the following steps:
[0105] Obtain stress impact data; determine whether the server is in a power-off state; if the server is in a power-off state, store the stress impact data to form data to be processed; when the server is restored to a power-on state, read the data to be processed; determine whether the value in the data to be processed reaches a stress threshold; if the value in the data to be processed reaches the stress threshold, display an alarm.
[0106] It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0107] It can be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.
[0108] Therefore, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions, and the program instructions, when executed by a processor, can implement the above-mentioned stress recording alarm method. The storage medium stores a computer program, wherein the computer program includes program instructions, and the program instructions, when executed by a processor, can implement the above-mentioned method. The program instructions include the following steps:
[0109] Obtain stress impact data; determine whether the server is in a power-off state; if the server is in a power-off state, store the stress impact data to form data to be processed; when the server is restored to a power-on state, read the data to be processed; determine whether the value in the data to be processed reaches a stress threshold; if the value in the data to be processed reaches the stress threshold, display an alarm.
[0110] The storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which are computer-readable storage media that can store program codes.
[0111] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0112] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or skipped.
[0113] The steps in the method of the embodiment of the present invention can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0114] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention.
[0115] The above embodiments are preferred implementation schemes of the present invention. In addition, the present invention may also be implemented in other ways. Any obvious replacement without departing from the concept of the present technical solution is within the protection scope of the present invention.
Claims
1. A stress recording alarm method, characterized in that: The following steps are involved: Obtain stress impact data; Determine whether the server is in a power-off state; If the server is in a power-off state, the stress impact data is stored to form data to be processed; When the server is powered on again, the data to be processed is read; Determining whether a value in the data to be processed reaches a stress threshold; If the value in the data to be processed reaches the stress threshold, an alarm is displayed.
2. The stress recording alarm method according to claim 1, characterized in that: If the server is in a power-off state, the step of storing the stress impact data to form data to be processed comprises the following sub-steps: Using a backup battery to supply power to a controller module so that the controller module acquires the stress impact data; The controller module is instructed to store the stress impact data to form data to be processed.
3. The stress recording alarm method according to claim 2, characterized in that: The step of reading the data to be processed after the server is powered on again comprises the following sub-steps: Switching the power supply of the controller module from the backup battery to the main power supply so that the main power supply supplies power to the controller module; Instruct the controller module to read the data to be processed.
4. The stress recording alarm method according to claim 3, characterized in that: The step of determining whether the value in the data to be processed reaches the stress threshold comprises the following sub-steps: Presetting a stress threshold in advance in the controller module; The controller module is instructed to determine whether a value in the data to be processed reaches the stress threshold.
5. The stress recording alarm method according to claim 2, characterized in that: The step of displaying an alarm if the value in the data to be processed reaches the stress threshold comprises the following sub-steps: Using a main power supply to supply power to the alarm module so that the alarm module reads the data to be processed; The alarm module is instructed to process the data to be processed to generate and display alarm information.
6. The stress recording alarm method according to claim 1, characterized in that: After the step of determining whether the value in the data to be processed reaches the stress threshold, the following steps are also included: If the value in the data to be processed does not reach the stress threshold, the data to be processed is stored to form stored data.
7. Stress recording alarm device, characterized in that: include: An acquisition unit, a first judgment unit, a first storage unit, a reading unit, a second judgment unit, and an alarm unit; The acquisition unit is used to acquire stress impact data; The first determination unit is used to determine whether the server is in a power-off state; The first storage unit is used to store the stress impact data to form data to be processed if the server is in a power-off state; The reading unit is used to read the data to be processed when the server is restored to a power-on state; The second judgment unit is used to judge whether the value in the data to be processed reaches the stress threshold; The alarm unit is used to display an alarm if the value in the data to be processed reaches the stress threshold.
8. The stress recording alarm method according to claim 7, characterized in that: Also included is a second storage unit; The second storage unit is used to store the data to be processed to form storage data if the value in the data to be processed does not reach the stress threshold.
9. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the stress recording alarm method according to any one of claims 1 to 6 when executing the computer program.
10. A storage medium, characterized in that: The storage medium stores a computer program, and the computer program includes program instructions. When the program instructions are executed by a processor, the stress recording alarm method according to any one of claims 1 to 6 is implemented.