Mainboard monitoring method and device, equipment, storage medium and product
By obtaining real-time data on the motherboard and using preset monitoring models for status control, the problem of low monitoring efficiency in the existing technology is solved, and more intelligent and flexible monitoring is achieved, which improves the stability and reliability of the motherboard and avoids the Equipment failure and safety risks.
Patent Information
- Application Number
- CN202411122782.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2024-11-26
AI Technical Summary
The existing motherboard monitoring methods only rely on mechanical execution of preset control schemes, resulting in low monitoring efficiency and ineffective prevention of problems such as overheating or power instability, especially in key application areas that may cause safety accidents.
By obtaining real-time detection data and communication generated control data on the motherboard, input it into the preset motherboard monitoring model, and generating control information for motherboard status control, including updating the preset model to adapt to changing CPU occupancy and fan speed regulation. Achieve intelligent and flexible monitoring.
It improves the stability and reliability of the motherboard, and can control the motherboard based on real-time data, avoid accidental downtime and data loss, extends the service life of the equipment, and reduces maintenance costs.
Smart Images

Figure CN119025378A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a motherboard monitoring method, device, equipment, storage medium and product. Background Art
[0002] In modern electronic systems, the motherboard is a core component, and its stability and reliability are crucial to the normal operation of the entire device. Therefore, it is particularly necessary to set up monitoring equipment on the motherboard. The monitoring equipment can monitor the key parameters of the motherboard in real time, such as temperature, voltage and current, so as to timely detect and prevent potential failures, avoid unexpected downtime and performance degradation. This real-time monitoring mechanism helps to maintain the motherboard in the best working state, optimize system performance, and extend the service life of the equipment.
[0003] In the absence of monitoring equipment, the motherboard may face a variety of risks. For example, overheating or unstable power supply may cause sudden shutdown, which not only affects production efficiency but also may cause data loss. Continuous overload or overheating may also gradually damage sensitive components on the motherboard, increasing the risk of hardware damage, resulting in expensive repair or replacement costs. In critical application areas such as industrial control or medical equipment, motherboard failure may even cause safety accidents with serious consequences. However, current monitoring equipment mechanically executes preset control schemes, and the motherboard monitoring efficiency is not high. Therefore, how to improve the efficiency of motherboard monitoring and make motherboard monitoring more intelligent and flexible has become a technical problem that needs to be solved urgently. Summary of the invention
[0004] The main purpose of the present application is to provide a motherboard monitoring method, device, equipment, storage medium and product, aiming to solve the technical problem that the existing motherboard monitoring only mechanically executes a preset control scheme, resulting in low motherboard monitoring efficiency.
[0005] To achieve the above purpose, the present application proposes a motherboard monitoring method, which includes:
[0006] After initialization is completed, the detection data and control data generated by communication are obtained;
[0007] Input the detection data and control data into the preset mainboard monitoring model to obtain the control information output by the preset mainboard monitoring model;
[0008] Mainboard status control is performed based on control information.
[0009] Optionally, before the step of inputting the detection data and the control data into the preset mainboard monitoring model to obtain the control information output by the preset mainboard monitoring model, the step further includes:
[0010] Obtain the mainboard detection data read by the monitoring module;
[0011] The motherboard detection data is sent to the host computer. The host computer determines whether the preset motherboard monitoring model needs to be updated based on the motherboard detection data and the current status information of the host computer. If necessary, the preset motherboard monitoring model is updated and the updated preset motherboard monitoring model is fed back;
[0012] After receiving the updated preset mainboard monitoring model fed back by the host computer, control information prediction is performed through the updated preset mainboard monitoring model.
[0013] Optionally, after the initialization is completed, before the step of obtaining the detection data and the control data generated by the communication, the method further includes:
[0014] Get the current CPU usage and predict the future CPU usage change value based on the current CPU usage;
[0015] Determine the target speed of the fan based on the CPU occupancy change value and a preset occupancy-speed comparison table;
[0016] The fan is controlled according to the target speed.
[0017] Optionally, before the step of predicting a future CPU usage change value according to the current CPU usage, the method further includes:
[0018] Obtain sample data, and determine the CPU usage prediction value based on the sample data using the Holt exponential smoothing method;
[0019] Determine the variance based on the actual value of CPU usage and the predicted value of CPU usage in the sample data;
[0020] Determine the smoothing coefficient based on the variance;
[0021] According to the smoothing coefficient, the Holt exponential smoothing method is used to predict the future CPU usage change value based on the current CPU usage.
[0022] Optionally, the mainboard monitoring method further includes:
[0023] Continuously monitor whether external control instructions are received;
[0024] After receiving the control instruction, determining whether the control instruction is a read instruction;
[0025] If the control instruction is a read instruction, the motherboard monitoring data corresponding to the control instruction is obtained, and the motherboard monitoring data is formatted and converted, and the motherboard monitoring data after the format conversion is fed back;
[0026] If the control instruction is not a read instruction, the control type of the control instruction is confirmed, the control instruction is saved according to the control type, and the control instruction is executed.
[0027] Optionally, the motherboard monitoring method is applied to an MCU integrated with FreeRTOS, and the motherboard monitoring method further includes:
[0028] After the software module is initialized, the sensor is initialized;
[0029] Read the monitoring data of the sensor;
[0030] The monitoring data is packaged and saved so that other tasks can retrieve the monitoring data.
[0031] In addition, to achieve the above purpose, the present application also proposes a motherboard monitoring device, which includes:
[0032] An acquisition module is used to acquire detection data and control data generated by communication after initialization is completed;
[0033] A prediction module, used to input the detection data and control data into a preset mainboard monitoring model to obtain control information output by the preset mainboard monitoring model;
[0034] The control module is used to control the mainboard status based on the control information.
[0035] In addition, to achieve the above objectives, the present application also proposes a motherboard monitoring device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the motherboard monitoring method as described above.
[0036] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium. A computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the motherboard monitoring method as described above are implemented.
[0037] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of the motherboard monitoring method as described above are implemented.
[0038] After initialization, the present application obtains detection data and control data generated by communication; inputs the detection data and control data into the preset motherboard monitoring model to obtain control information output by the preset motherboard monitoring model; and performs motherboard status control based on the control information. Since the present application is a technical solution for motherboard status control by generating control information through real-time data obtained by monitoring the motherboard and a preset motherboard monitoring model, compared to the existing mechanical execution of a preset control solution, the above-mentioned method of the present application can control the motherboard according to the real-time data on the motherboard, which is more intelligent and flexible, and improves the stability and reliability of the motherboard. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0041] Figure 1 A flowchart of the first embodiment of the motherboard monitoring method of the present application is provided;
[0042] Figure 2 A schematic diagram of a model calculation process provided in Example 1 of the motherboard monitoring method of this application;
[0043] Figure 3 A flowchart of the second embodiment of the motherboard monitoring method of the present application is provided;
[0044] Figure 4 A flowchart of the third embodiment of the motherboard monitoring method of the present application is provided;
[0045] Figure 5 A schematic diagram of the structure of the motherboard monitoring method provided in Embodiment 3 of the present application;
[0046] Figure 6 A schematic diagram of the process flow of the motherboard monitoring method provided in Embodiment 3 of the present application;
[0047] Figure 7 This is a schematic diagram of the module structure of the motherboard monitoring device according to an embodiment of the present application;
[0048] Figure 8 This is a schematic diagram of the device structure of the hardware operating environment involved in the motherboard monitoring method in the embodiment of the present application.
[0049] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0050] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0051] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0052] The main solution of the embodiment of the present application is: after the initialization is completed, the detection data and the control data generated by the communication are obtained; the detection data and the control data are input into the preset motherboard monitoring model to obtain the control information output by the preset motherboard monitoring model; the motherboard status is controlled based on the control information. Since the present application is a technical solution for motherboard status control by monitoring the real-time data obtained by the motherboard and generating control information by the preset motherboard monitoring model, compared with the existing mechanical execution of the preset control scheme, the above method of the present application can control the motherboard according to the real-time data on the motherboard, which is more intelligent and flexible, and improves the stability and reliability of the motherboard.
[0053] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a microcontroller unit (MCU) integrated with FreeRTOS, etc. The following takes MCU as an example to illustrate this embodiment and the following embodiments.
[0054] Based on this, the present application embodiment provides a motherboard monitoring method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the motherboard monitoring method of the present application.
[0055] In this embodiment, the mainboard monitoring method includes steps S10 to S30:
[0056] Step S10, after the initialization is completed, acquiring the detection data and the control data generated by the communication;
[0057] It should be noted that in order to achieve comprehensive detection and intelligent control of the mainboard, and to communicate with the host computer (depending on the needs, the host computer may also be different) to achieve the purpose of data reporting. The MCU in this embodiment may include a monitoring module, a control module, a data calculation module and a communication module. Initialization completion may be that the above-mentioned monitoring module, control module, data calculation module and communication module are all initialized. The detection data may be the hardware status, temperature, voltage, fan status and speed, power status, watchdog timer (watch dog timer, WDT) and other data on the mainboard collected by the monitoring module through various types of sensors. The control data generated by the communication may include pre-stored permanent data obtained from the storage device and communication data for data communication between the MCU and the host computer.
[0058] Step S20, inputting the detection data and the control data into the preset mainboard monitoring model to obtain the control information output by the preset mainboard monitoring model;
[0059] It should be noted that the preset motherboard monitoring model can be a model that is pre-trained by the host computer based on the motherboard monitoring data and the local status information, and can predict the optimal control information of the motherboard based on the input detection data and control data.
[0060] Furthermore, in order to realize intelligent control of the mainboard, before step S20, the following steps may be included: obtaining mainboard detection data read by the monitoring module;
[0061] The motherboard detection data is sent to the host computer. The host computer determines whether the preset motherboard monitoring model needs to be updated based on the motherboard detection data and the current status information of the host computer. If necessary, the preset motherboard monitoring model is updated and the updated preset motherboard monitoring model is fed back;
[0062] After receiving the updated preset mainboard monitoring model fed back by the host computer, control information prediction is performed through the updated preset mainboard monitoring model.
[0063] It should be understood that: this embodiment is used for motherboard monitoring, so as long as the motherboard is running, there must be a main system (i.e., the host computer). The computing power and storage space of the main system are far greater than those of the MCU. The main system can optimize the control model of the MCU (i.e., the preset motherboard monitoring model) by continuously acquiring the monitoring data of the MCU (i.e., the motherboard detection data), the local state (i.e., the current state information of the host computer), and other information. As the running time increases, the data of the training model will gradually increase, and its control effect will also be continuously optimized. Thus, the control model of the MCU is gradually optimized.
[0064] It should be noted that the host computer determines whether it is necessary to update the preset motherboard monitoring model based on the motherboard detection data and the current state information of the host computer. The motherboard detection data and the current state information of the host computer can be input into the preset motherboard monitoring model to obtain the prediction control information output by the preset motherboard monitoring model, and the prediction control information is compared with the target control information to obtain the control accuracy of the preset motherboard monitoring model. When the control accuracy is greater than the preset threshold, it is determined that the preset motherboard monitoring model does not need to be updated, otherwise, it is determined that the preset motherboard monitoring model needs to be updated. Among them, the target control information can be the optimal motherboard control scheme determined by the host computer based on the motherboard detection data and the current state information of the host computer according to the preset motherboard control strategy or by manual intervention. The preset motherboard control strategy can be a motherboard control scheme pre-stored in the host computer. Comparing the prediction control information with the target control information to obtain the control accuracy of the preset motherboard monitoring model can be calculating the similarity between the prediction control information and the target control information, and using the similarity as the control accuracy of the preset motherboard monitoring model. Updating the preset motherboard monitoring model can be to continue to train the preset motherboard monitoring model through the motherboard detection data, the current state information of the host computer and the optimal motherboard control scheme to obtain the updated preset motherboard monitoring model.
[0065] In the specific implementation, please refer to Figure 2 , Figure 2 A schematic diagram of the model calculation process provided for the first embodiment of the motherboard monitoring method of this application; the host computer first initializes the model, queries whether there is a previous model, enters and adopts it if there is, and initializes an empty model if there is no previous model. And establish communication with the lower computer (MCU). The current status information of the host computer of this machine is obtained, which may include: CPU load status, memory status, power load and other information. This information can know the operation status of the machine, whether it is a high-load calculation or an idle state. The lower computer data, that is, the motherboard detection data, is essentially the system data, but it is different from the hardware information (voltage, current, temperature) of the current status information (software operation information) of the host computer. Combined with the historical information saved in the past, it may include historical motherboard detection data and historical host computer current status information, and calculate the optimal motherboard monitoring model for the control calculation of the MCU. Then the previous motherboard monitoring model and the calculated model can be compared again. If they are different, the updated motherboard monitoring model is issued, and the models are the same and are not modified.
[0066] Step S30, controlling the mainboard status based on the control information.
[0067] It should be noted that the motherboard status control based on control information can be that the MCU controls the motherboard based on the control parameters in the control information output by the preset motherboard monitoring model, for example, adjusting the fan speed, controlling the on and off of the voltage, turning the indicator light on and off, etc.
[0068] This embodiment provides a motherboard monitoring method, including: after initialization is completed, obtaining detection data and control data generated by communication; inputting the detection data and control data into a preset motherboard monitoring model to obtain control information output by the preset motherboard monitoring model; and controlling the motherboard state based on the control information. Since this embodiment is a technical solution for controlling the motherboard state by generating control information based on real-time data obtained by monitoring the motherboard and a preset motherboard monitoring model, compared to the existing mechanical execution of a preset control solution, the above method of this embodiment can control the motherboard based on real-time data on the motherboard, which is more intelligent and flexible, and improves the stability and reliability of the motherboard.
[0069] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 3 , before step S10, further comprising:
[0070] Step S001: Obtain the current CPU occupancy rate, and predict the future CPU occupancy rate change value according to the current CPU occupancy rate;
[0071] It should be noted that the current CPU occupancy rate may be the current CPU occupancy rate of the host computer, and predicting the future CPU occupancy rate change value based on the current CPU occupancy rate may be predicting the future CPU occupancy rate change value through Holt's linear trend method.
[0072] It should be understood that temperature is a large inertia link, and its change speed is relatively slow. Generally, the main source of heat generation in a computer motherboard is the CPU part. It is only necessary to detect the CPU part and add the predicted data of CPU monitoring as a factor for fan bar regulation to the fan speed control to achieve a better temperature control effect. The target control temperature can be determined as Temp based on empirical values. target .
[0073] Furthermore, in order to accurately predict the change trend of the CPU occupancy rate, before step S001, the method further includes: obtaining sample data, and determining a predicted value of the CPU occupancy rate by using the Holt exponential smoothing method based on the sample data;
[0074] Determine the variance based on the actual value of CPU usage and the predicted value of CPU usage in the sample data;
[0075] Determine the smoothing coefficient based on the variance;
[0076] According to the smoothing coefficient, the Holt exponential smoothing method is used to predict the future CPU usage change value based on the current CPU usage.
[0077] It should be noted that the sample data can be historical CPU usage change information. The core principle of the Holt exponential smoothing method is to add a trend component on the basis of the simple exponential smoothing method. It uses two smoothing equations to estimate the horizontal part (long-term trend) and the trend part (trend change rate) of the time series respectively, and combines these two components to predict future values. The first exponential smoothing directly uses the smoothed value as the predicted value, and the second exponential smoothing law is a linear smoothing model obtained by correcting the trend using the smoothed value. Therefore, the second exponential smoothing method needs to be calculated after a first exponential smoothing calculation. That is, the Holt exponential smoothing method usually consists of two parts, namely the horizontal part and the trend part, which can be referred to the following formula:
[0078] F t =αX t +(1-α)(F t-1 +S t-1 )
[0079] S t =β(F t -F t-1 )+(1-β)S t-1
[0080]
[0081] Among them, t is used to represent the current moment or the current cycle, h is used to represent the prediction lead time (that is, the number of prediction steps), and F t It is used to represent the horizontal forecast value of the tth moment or period, α is the horizontal smoothing coefficient, β is the trend smoothing coefficient, and X t Used to represent the actual value of time t or period, F t-1 It is used to represent the level forecast value at time t-1 or period, S t-1 Used to characterize the trend forecast value at time t-1 or period. Used to represent the predicted value at time t+h or period.
[0082] It should be noted that the selection of smoothing coefficients α and β is closely related to system design and needs to be selected according to the system. Similar to the selection of PID parameters, different systems need to provide data based on actual measurement conditions. Reference for selecting data: α should reflect the rate of change of the data. If the data changes rapidly, selecting a larger α value can respond to these changes more sensitively. β should reflect the rate of change of the trend. For rapidly changing trends, select a larger β value; for slow or stable trends, select a smaller β value. Therefore, when determining the smoothing coefficients α and β, the output values of different smoothing coefficients can be substituted into the variance for calculation, so that the smoothing coefficient with the smallest variance is a relatively excellent coefficient value. The variance calculation formula is:
[0083]
[0084] Among them, MSE is the variance of the actual value and the predicted value, n is used to represent the total time or total number of periods of sample data used to select the smoothing coefficient, It is used to represent the predicted CPU usage at time t predicted by Holt exponential smoothing method with custom smoothing coefficients α and β, X t Indicates the actual value of the CPU usage at time t.
[0085] In a specific implementation, the CPU occupancy rate prediction value is determined based on the sample data using the Holt exponential smoothing method. The discrete data points in the sample data are first fitted using the ridge regression method to obtain a change curve. Then, some smoothing coefficients α and β are customized according to the change trend of the change curve, and the CPU occupancy rate in the sample data is predicted according to the customized smoothing coefficients. Then, the variance is calculated according to the predicted value and the actual value in the sample data, and the smoothing coefficients α and β that minimize the variance are selected and substituted into the Holt exponential smoothing method formula to predict the CPU occupancy rate.
[0086] Step S002: determining a target speed of the fan based on the CPU occupancy change value and a preset occupancy-speed comparison table;
[0087] It should be noted that the preset occupancy rate-speed comparison table can be a comparison relationship table of CPU occupancy rate and fan speed that is determined in advance through a heat dissipation capacity test to ensure that the temperature of the motherboard is at the target control temperature. Specifically, the heat dissipation capacity test is: when the fan speed is R0 (that is, the lowest speed when the CPU is in an idle state), gradually increase the CPU occupancy rate in steps of 1%, wait for the motherboard temperature to stabilize, when the CPU occupancy rate is i, the motherboard temperature is Tempi, and then increase the fan speed to stabilize the motherboard temperature at the target control temperature Temptarget. This process requires repeated adjustment of the fan to determine that the speed is Ri when stable. According to the above steps, the fan speed corresponding to each value of the CPU occupancy rate is tested to obtain a preset occupancy rate-speed comparison table.
[0088] Step S003: Control the fan according to the target speed.
[0089] It should be noted that controlling the fan according to the target rotation speed may be to enable the fan to dissipate heat at the target rotation speed.
[0090] In the specific implementation, the data processing control of the MCU is generally polled, and each cycle is set as time T0. In any computer system, the cooling system needs to have a minimum working output (the minimum fan speed to ensure the normal operation of the system without damage) R0. When the CPU is idle (idel) and the fan is at R0, the system motherboard temperature is Temp0. The CPU limit temperature (thermal protection temperature) is Temp max The CPU is pressed to 100% for a period of time T cpu-rise , the temperature ranges from Temp0 to Temp max Time is T temp-rise The CPU usage is the reason for the temperature increase, so T temp-rise >T cpu-rise is inevitable, and data processing control is polling, in order to avoid T temp-rise -T cpu-rise Small, resulting in MCU not controlling the fan speed in time. Controlling the fan speed requires an advance amount, which can be calculated by T temp-rise -T cpu-rise +T0=T pre . T pre It is the lead time of fan speed control, that is, the time from the change of system CPU occupancy to the actual change of system temperature plus one cycle.
[0091] This embodiment obtains the current CPU occupancy rate, predicts the future CPU occupancy rate change value based on the current CPU occupancy rate; determines the target speed of the fan based on the CPU occupancy rate change value and a preset occupancy rate-speed comparison table; and controls the fan according to the target speed. This embodiment increases the advance amount of fan speed regulation based on the predicted future CPU occupancy rate change value, ensures that the temperature of the motherboard is at the target control temperature, and improves the stability and reliability of the motherboard.
[0092] Based on the above embodiments of the present application, in the third embodiment of the present application, the same or similar contents as those in the above embodiments can be referred to the above introduction, and will not be described in detail later. Figure 4 , Figure 4 A flowchart of the third embodiment of the motherboard monitoring method of the present application is provided; the motherboard monitoring method of the present application also includes:
[0093] Step S01: continuously monitoring whether an external control instruction is received;
[0094] It should be noted that the control instruction may be a control command sent by the host computer. Figure 5 , Figure 5A schematic diagram of the structure of the motherboard monitoring method provided in Example 3 of the present application; In this embodiment, the MCU includes a detection module (i.e., a monitoring module), a control module, a data calculation module, and a communication module, wherein, in order to comprehensively monitor the motherboard, the detection module: is used to detect the status of the motherboard, and the detection items include: hardware status, temperature, voltage, fan status and speed, power status, watchdog timer, etc. Control module: is used to adjust the system status and output custom status according to the monitoring module, and the control items include: fan, custom GPIO, custom LED. The control module is used to convert the data given by the host computer into actual output. Data calculation module: processes the data of the detection module and the control module for control and information communication. Communication module: communication interface between MCU and main CPU, used for data exchange between MCU and main CPU.
[0095] Step S02: after receiving the control instruction, determining whether the control instruction is a read instruction;
[0096] Step S03: if the control instruction is a read instruction, then the motherboard monitoring data corresponding to the control instruction is obtained, and the motherboard monitoring data is formatted and converted, and the motherboard monitoring data after the format conversion is fed back;
[0097] It should be noted that when the communication module receives a control instruction, it analyzes the control instruction to determine whether the control instruction is a read instruction. If the control instruction is a read instruction, it obtains the mainboard monitoring data corresponding to the control instruction and converts the format of the mainboard monitoring data, that is, converts the mainboard monitoring data into data that can be recognized by the host computer, and feeds back the mainboard monitoring data after format conversion.
[0098] Step S04: If the control instruction is not a read instruction, confirm the control type of the control instruction, save the control instruction according to the control type, and execute the control instruction.
[0099] It should be noted that the control type may include instructions for changing the motherboard state, power on and off, display light state, etc. Saving the control instruction according to the control type may be saving the control instruction according to the type of the control instruction so that the computing task (ie, the data computing module) reads and executes it.
[0100] Furthermore, in order to accurately detect various hardware information on the motherboard, the motherboard monitoring method also includes: after the software module is initialized, initializing the sensor; reading the monitoring data of the sensor; packaging the monitoring data, and saving the packaged monitoring data so that other tasks can retrieve the monitoring data.
[0101] It should be noted that the software modules are the above detection module, control module, data calculation module and communication module. Sensor initialization may be initializing each connected sensor to ensure that the sensor can correctly read and transmit data.
[0102] In the specific implementation, please refer to Figure 6 , Figure 6 A schematic diagram of the process flow of the motherboard monitoring method provided in Embodiment 3 of the present application; Figure 6 The monitoring module in is the detection module mentioned above, and the data monitoring module is the data calculation module mentioned above. The process of motherboard monitoring is as follows: First, initialize the MCU: At this stage, the MCU performs basic hardware configuration, such as setting the clock frequency, configuring the general input and output (GPIO) pins, initializing the peripheral interface, etc., to prepare for the operation of the system. Then initialize FreeRTOS: FreeRTOS is started and configured, including setting the task scheduling strategy, memory allocation mechanism, etc., so that the system can effectively manage multiple concurrently running tasks. The above-mentioned detection module, control module, data calculation module and communication module correspond to Figure 6 The detection tasks, communication tasks, control tasks and calculation tasks in the FreeRTOS system are carried out synchronously under the configuration of the FreeRTOS system. Specifically, the detection tasks include: Monitoring module initialization: Start and configure the monitoring module. This module is responsible for continuously monitoring the key parameters of the system, such as temperature, voltage, etc., to ensure that the system runs in a safe state. Sensor initialization: After all software modules (the above four modules) are initialized, the connected sensors will be initialized to ensure that data can be read and transmitted correctly. Read sensor information: MCU reads the real-time data of the sensor for monitoring and analysis. Result data encapsulation: The acquired sensor data is encapsulated into a specific format and is ready to be uploaded to the host computer or other system for further analysis or recording. Detection data preservation: The system saves the detected data so that other tasks can retrieve data, and it is also conducive to historical data analysis or fault diagnosis, which helps to maintain the health of the system. At this point, a detection task is completed, and it returns to the step of reading sensor information and executes in a loop.
[0103] Communication task: Communication module initialization: Configure the communication module so that it can exchange data with external devices or host computers, which may involve serial communication, network communication or other communication protocols. Get control instructions: Check whether there are control instructions from the host computer or other external sources. If there are no control instructions, loop detection. If there are control instructions, analyze the instructions and determine the specific operations that need to be performed. Determine whether it is a read instruction. If it is a read instruction, obtain the detection data and status data of the MCU. Upload the acquired data and return to the step of checking whether there are control instructions from the host computer or other external sources, and execute it in a loop. If it is not a read instruction, it is a control instruction. Process instruction data: Process the received control instruction data, confirm its type, and save this data for reading the computing task. So that the MCU can execute the correct control logic and ensure the responsiveness and accuracy of the system. Write computing tasks: The processed control instructions are written to the computing tasks, which are processed by the computing tasks.
[0104] Control task: Control module initialization: Start the control module, which is responsible for executing corresponding control commands according to monitoring data, such as adjusting fan speed or changing system working mode. Get control instructions: Get the saved control instructions from the data saved by the computing task. Determine whether the state needs to be modified. If necessary, execute control actions: According to the analyzed control instructions, execute corresponding control actions, such as adjusting fan speed, shutting down overheated components, etc. After completing the control, return to the step of obtaining control instructions and execute in a loop.
[0105] Computation task: Computation module initialization: Initialize the calculation parameters and configure some output values (fan speed, display light, etc.) by default. Obtain parameters: The system may read previously saved data from the storage device (permanent data), which includes: detection data and control data generated by communication. The acquired data is input into the model sent by the host computer for data calculation to obtain the control information output by the model. This information is saved so that it can be called by other tasks.
[0106] Furthermore, the freeRTOS in this embodiment can also be replaced by other real-time MCU systems. The MCU is not specified, and other control chips can be used. This embodiment is not limited here.
[0107] This embodiment continuously monitors whether an external control instruction is received; after receiving the control instruction, it determines whether the control instruction is a read instruction; if the control instruction is a read instruction, the motherboard monitoring data corresponding to the control instruction is obtained, and the motherboard monitoring data is formatted, and the motherboard monitoring data after format conversion is fed back; if the control instruction is not a read instruction, the control type of the control instruction is confirmed, the control instruction is saved according to the control type, and the control instruction is executed. This embodiment has detection and control functions, can report data, has active and passive control functions, and is equipped with a freeRTOS system, multi-tasking, resource management and other functions, which can improve the monitoring efficiency of the motherboard.
[0108] This application also provides a motherboard monitoring device, please refer to Figure 7 , the mainboard monitoring device includes:
[0109] The acquisition module 10 is used to acquire the detection data and the control data generated by the communication after the initialization is completed;
[0110] The prediction module 20 is used to input the detection data and the control data into the preset mainboard monitoring model to obtain the control information output by the preset mainboard monitoring model;
[0111] The control module 30 is used to control the mainboard status based on the control information.
[0112] After the motherboard monitoring device of this embodiment is initialized, it obtains the detection data and the control data generated by the communication; inputs the detection data and the control data into the preset motherboard monitoring model to obtain the control information output by the preset motherboard monitoring model; and performs the motherboard state control based on the control information. Since this embodiment is a technical solution for motherboard state control by monitoring the real-time data obtained by the motherboard and generating the control information by the preset motherboard monitoring model, compared with the existing mechanical execution of the preset control solution, the above method of this embodiment can control the motherboard according to the real-time data on the motherboard, which is more intelligent and flexible, and improves the stability and reliability of the motherboard.
[0113] The motherboard monitoring device provided by the present application adopts the motherboard monitoring method in the above embodiment, which can solve the technical problem that the existing motherboard monitoring only mechanically executes the preset control scheme, resulting in low motherboard monitoring efficiency. Compared with the prior art, the beneficial effects of the motherboard monitoring device provided by the present application are the same as the beneficial effects of the motherboard monitoring method provided by the above embodiment, and other technical features in the motherboard monitoring device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0114] The present application provides a motherboard monitoring device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the motherboard monitoring method in the above-mentioned embodiment one.
[0115] Reference below Figure 8 , which shows a schematic diagram of the structure of a motherboard monitoring device suitable for implementing the embodiment of the present application. The motherboard monitoring device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The motherboard monitoring device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0116] like Figure 8 As shown, the motherboard monitoring device may include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In the RAM 1004, various programs and data required for the operation of the motherboard monitoring device are also stored. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the motherboard monitoring device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a motherboard monitoring device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have alternatively.
[0117] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0118] The motherboard monitoring device provided by the present application adopts the motherboard monitoring method in the above embodiment, which can solve the technical problem that the existing motherboard monitoring only mechanically executes the preset control scheme, resulting in low motherboard monitoring efficiency. Compared with the prior art, the beneficial effects of the motherboard monitoring device provided by the present application are the same as the beneficial effects of the motherboard monitoring method provided by the above embodiment, and the other technical features of the motherboard monitoring device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0119] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0120] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0121] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the motherboard monitoring method in the above-mentioned embodiment.
[0122] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0123] The computer-readable storage medium may be included in the mainboard monitoring device; or may exist independently without being assembled into the mainboard monitoring device.
[0124] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the mainboard monitoring device, the mainboard monitoring device executes the mainboard monitoring method.
[0125] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0126] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0127] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0128] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned motherboard monitoring method, and can solve the technical problem that the existing motherboard monitoring only mechanically executes a preset control scheme, resulting in low efficiency of motherboard monitoring. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the motherboard monitoring method provided by the above-mentioned embodiment, and will not be repeated here.
[0129] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned motherboard monitoring method when executed by a processor.
[0130] The computer program product provided by the present application can solve the technical problem that the existing motherboard monitoring only mechanically executes a preset control scheme, resulting in low motherboard monitoring efficiency. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the motherboard monitoring method provided by the above embodiment, and will not be repeated here.
[0131] The above are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A motherboard monitoring method, characterized in that: The mainboard monitoring method comprises the following steps: After initialization is completed, the detection data and control data generated by communication are obtained; Inputting the detection data and the control data into a preset mainboard monitoring model to obtain control information output by the preset mainboard monitoring model; Mainboard status control is performed based on the control information.
2. The motherboard monitoring method according to claim 1, characterized in that: Before the step of inputting the detection data and the control data into the preset mainboard monitoring model to obtain the control information output by the preset mainboard monitoring model, the step further includes: Obtain the mainboard detection data read by the monitoring module; The motherboard detection data is sent to the host computer, and the host computer determines whether it is necessary to update the preset motherboard monitoring model based on the motherboard detection data and the current state information of the host computer. If necessary, the preset motherboard monitoring model is updated, and the updated preset motherboard monitoring model is fed back; After receiving the updated preset mainboard monitoring model fed back by the host computer, control information prediction is performed using the updated preset mainboard monitoring model.
3. The motherboard monitoring method according to claim 1, characterized in that: After the initialization is completed, before the step of obtaining the detection data and the control data generated by the communication, it also includes: Obtain the current CPU occupancy rate, and predict the future CPU occupancy rate change value according to the current CPU occupancy rate; Determine a target speed of the fan based on the CPU occupancy rate change value and a preset occupancy rate-speed comparison table; The fan is controlled according to the target rotation speed.
4. The motherboard monitoring method according to claim 3, characterized in that: Before the step of predicting the future CPU occupancy rate change value according to the current CPU occupancy rate, the method further includes: Obtain sample data, and determine a CPU occupancy prediction value based on the sample data using a Holt exponential smoothing method; Determine the variance according to the actual value of the CPU occupancy rate in the sample data and the predicted value of the CPU occupancy rate; determining a smoothing coefficient based on the variance; The future CPU occupancy rate change value is predicted based on the current CPU occupancy rate using the Holt exponential smoothing method according to the smoothing coefficient.
5. The motherboard monitoring method according to any one of claims 1 to 4, characterized in that: The mainboard monitoring method further includes: Continuously monitor whether external control instructions are received; After receiving the control instruction, determining whether the control instruction is a read instruction; If the control instruction is a read instruction, then the motherboard monitoring data corresponding to the control instruction is obtained, and the motherboard monitoring data is format-converted, and the motherboard monitoring data after the format conversion is fed back; If the control instruction is not a read instruction, the control type of the control instruction is confirmed, the control instruction is saved according to the control type, and the control instruction is executed.
6. The motherboard monitoring method according to any one of claims 1 to 4, characterized in that: The motherboard monitoring method is applied to an MCU integrated with FreeRTOS, and the motherboard monitoring method further includes: After the software module is initialized, the sensor is initialized; Read the monitoring data of the sensor; The monitoring data is packaged and saved so that other tasks can retrieve the monitoring data.
7. A motherboard monitoring device, characterized in that: The mainboard monitoring device comprises: An acquisition module is used to acquire detection data and control data generated by communication after initialization is completed; A prediction module, used for inputting the detection data and the control data into a preset mainboard monitoring model to obtain control information output by the preset mainboard monitoring model; A control module is used to control the mainboard status based on the control information.
8. A motherboard monitoring device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the mainboard monitoring method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the motherboard monitoring method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the mainboard monitoring method according to any one of claims 1 to 6 are implemented.
