Monitoring module control method and device, equipment and medium
By setting the pre-on status and opening status of the monitoring module in the MCU and starting the monitoring module after initialization is completed, the problem of inconsistent timing between the MCU and the monitoring module is solved, the system reset and function loss is avoided, and the stability of the system during the initialization process is achieved.
Patent Information
- Application Number
- CN202510045919.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-10
- Publication Date
- 2025-05-23
AI Technical Summary
During the initialization process, the MCU cannot be consistent with the timing of the monitoring module, causing the monitoring module to time out to send a reset signal, resulting in the loss of system functions.
During the initialization of the driver chip, the status of the monitoring module identified in the MCU is set to the pre-on state, and after the initialization is completed, the start signal is sent according to the trigger mode of the monitoring module to ensure that the monitoring module is timed in the on state.
By keeping the timing information of the MCU side and the monitoring module synchronized, the system reset and function loss are avoided, and the system stability during the initialization process is ensured.
Smart Images

Figure CN120029123A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of automotive electronics technology, and in particular to a control method, device, equipment and medium for a monitoring module. Background Art
[0002] In order to meet the public's demand for various comfort features in cars, automobile manufacturers have to use various electronic controllers to implement corresponding functions. The more electronic controllers there are, the more complex driver chips are used, but the probability of problems is also greater. In order to ensure that there are no problems with their chips, complex driver chip manufacturers have designed various protection measures, the most important of which is the monitoring module designed to ensure the normal operation of chip functions, such as the watchdog timing module. The microcontroller unit (MCU) in the electronic controller (ECU) needs to send a trigger signal to the monitoring module at regular intervals, and the monitoring module will reset its counter after receiving the trigger signal. If the system fails, the monitoring module will not be able to receive the trigger signal sent by the MCU, nor can it reset its counter. At this time, the monitoring module will send a reset signal to the system, forcing the system to restart or perform other preset operations.
[0003] In the related art, during the initialization process after the system is started, the monitoring function of the monitoring module on each driver chip will be turned on, that is, the monitoring module starts timing. Since the MCU is performing the initialization work of the driver module, it has not started accurate timing. When the MCU completes the initialization work and starts accurate timing and periodically triggers the monitoring module, the monitoring module that is first initialized and enabled has timed out, that is, the monitoring module has not received the trigger signal sent by the MCU within the set time, which will cause the monitoring module to send a reset signal to the MCU after the set time is reached to force the system to perform a reset operation, and this operation can easily cause the loss of system functions. Summary of the invention
[0004] The embodiments of the present invention provide a control method, device, equipment and medium for a monitoring module, which are used to overcome the problem of system reset and function loss caused by the MCU failing to keep consistent with the timing sequence of the monitoring module due to the execution of an initialization operation.
[0005] In a first aspect, the present invention provides a control method for a monitoring module, which is applied to a microcontroller unit (MCU), wherein the monitoring module is arranged in a driver chip, and the monitoring module starts timing after it is started, and sends a system reset signal to the MCU when a preset time threshold is exceeded, and the method comprises:
[0006] During the initialization of the driver chip, when it is determined that the monitoring module needs to be turned on, the state of the monitoring module identified in the current MCU is set to a pre-on state, wherein the monitoring module in the driver chip is in a turned-off state during the initialization process;
[0007] After the initialization is completed, if it is determined that the trigger mode of the monitoring module is the automatic trigger mode, and when it is identified that the state of the monitoring module identified in the current MCU is the pre-start state, a start signal is sent to the monitoring module to control the start of the monitoring module, and the state of the monitoring module identified in the current MCU is set to the start state;
[0008] The timing is performed in the on state until the accumulated time reaches the time threshold, and a trigger signal is sent to the monitoring module, and the trigger signal is used to reset the timing information of the monitoring module.
[0009] Optionally, before initializing the driver chip, the method provided by the embodiment of the present invention further includes:
[0010] The monitoring module is configured to obtain configuration information, wherein the configuration information includes the enabling status of the monitoring module, the trigger mode of the monitoring module and the trigger period of the monitoring module, wherein the trigger mode includes an automatic trigger mode and a non-automatic trigger mode, wherein the automatic trigger mode indicates that there is no need to call a monitoring periodic trigger function when triggering the monitoring module, and the non-automatic trigger mode indicates that a monitoring periodic trigger function needs to be called when triggering the monitoring module, wherein the monitoring periodic trigger function is used during the calling process to send a control signal to the monitoring module when the trigger period of the monitoring module arrives, and the control signal is used to reset the timing information of the monitoring module.
[0011] Optionally, during the process of initializing the driver chip, when it is determined that the monitoring module needs to be turned on, setting the state of the monitoring module identified in the current MCU to a pre-turn-on state includes:
[0012] Calling the initialization function to initialize the driver chip, wherein, during the execution of the initialization function, the monitoring module in the driver chip is controlled to be turned off, and the control register of the driver chip is configured with parameters;
[0013] The enabling status of the monitoring module is determined according to the configuration information of the monitoring module. If the enabling status is that the monitoring module needs to be turned on, the state of the monitoring module identified in the current MCU is set to a pre-turn-on state.
[0014] Optionally, the configuration information also includes: a calling cycle of the monitoring control function, wherein the monitoring control function is used to send a start signal to the monitoring module to control the start of the monitoring module in the automatic trigger mode and when the state of the monitoring module identified in the current MCU is in the pre-start state, and set the state of the monitoring module identified in the current MCU to the start state, and perform timing in the start state until the accumulated time reaches the time threshold, and then send a trigger signal to the monitoring module;
[0015] Correspondingly, if it is determined that the trigger mode of the monitoring module is the automatic trigger mode, and when it is identified that the state of the monitoring module identified in the current MCU is in the pre-start state, a start signal is sent to the monitoring module to control the start of the monitoring module, and the state of the monitoring module identified in the current MCU is set to the start state, including:
[0016] When the monitoring control function is called for the first time, it is determined whether the trigger mode of the monitoring module is the automatic trigger mode according to the configuration information. If it is the automatic trigger mode, it is determined whether the state of the monitoring module identified in the current MCU is the pre-start state. If it is the pre-start state, a start signal is sent to the monitoring module to control the start of the monitoring module, and the state of the monitoring module identified in the current MCU is set to the start state;
[0017] Correspondingly, timing is performed in the on state until the accumulated time reaches the time threshold, and a trigger signal is sent to the monitoring module, including:
[0018] When the monitoring control function is called for the Nth time, when it is determined that the trigger mode of the monitoring module is the automatic trigger mode, it is determined whether the status of the monitoring module identified in the current MCU is in the on state. If it is in the on state, then in the on state, timing is performed based on the calling cycle of the current monitoring control function until the accumulated time reaches the time threshold, and then a trigger signal is sent to the monitoring module, where N≥2.
[0019] Optionally, the method provided by the embodiment of the present invention further includes:
[0020] After completing the initialization operation of the driver chip, when the state of the monitoring module identified in the current MCU is in the on state, if it is detected that there is a need to shut down the monitoring module, the monitoring shutdown function is called. During the execution of the monitoring shutdown function, a monitoring shutdown signal is sent to the monitoring module to control the shutdown of the monitoring module, and the state of the monitoring module identified in the current MCU is set to the off state.
[0021] Optionally, the method provided by the embodiment of the present invention further includes:
[0022] After the initialization of the driver chip is completed, when the monitoring module is in the closed state, if it is detected that there is a need to start the monitoring module, the monitoring enable function is called. During the execution of the monitoring enable function, the trigger mode of the monitoring module is determined according to the configuration information. If the trigger mode is determined to be the automatic trigger mode, the state of the monitoring module identified in the current MCU is set to the pre-start state.
[0023] Optionally, the method provided by the embodiment of the present invention further includes:
[0024] During the execution of the monitoring enable function, if it is determined that the trigger mode is a non-automatic trigger mode, a startup instruction is sent to the monitoring module to instruct the monitoring module to start, and the state of the monitoring module identified in the current MCU is set to the on state;
[0025] Correspondingly, the method provided by the embodiment of the present invention further includes: in a non-automatic trigger mode, periodically calling a monitoring periodic trigger function to periodically send the control signal to the monitoring module in the driver chip.
[0026] In a second aspect, an embodiment of the present invention further provides a control device of a monitoring module, which is applied to a micro-control unit MCU, wherein the monitoring module is arranged in a driver chip, and the monitoring module starts timing after it is started, and sends a system reset signal to the MCU when a preset time threshold is exceeded, and the device comprises:
[0027] The monitoring pre-starting module is configured to: during the initialization process of the driver chip, when it is determined that the monitoring module needs to be started, set the state of the monitoring module identified in the current MCU to the pre-starting state, wherein the monitoring module in the driver chip is in the closed state during the initialization process;
[0028] The monitoring startup module is configured to, after the initialization is completed, if it is determined that the trigger mode of the monitoring module is the automatic trigger mode, and when it is identified that the state of the monitoring module identified in the current MCU is the pre-start state, send a startup signal to the monitoring module to control the startup of the monitoring module, and set the state of the monitoring module identified in the current MCU to the start state;
[0029] The timing trigger module is configured to perform timing in an on state until the accumulated time reaches a time threshold, and then send a trigger signal to the monitoring module, wherein the trigger signal is used to reset the timing information of the monitoring module.
[0030] Optionally, the device provided by the embodiment of the present invention further includes:
[0031] The configuration module is configured to configure the monitoring module before initializing the driver chip to obtain configuration information, wherein the configuration information includes the enabling status of the monitoring module, the trigger mode of the monitoring module and the trigger period of the monitoring module, wherein the trigger mode includes an automatic trigger mode and a non-automatic trigger mode, wherein the automatic trigger mode indicates that there is no need to call the monitoring periodic trigger function when triggering the monitoring module, and the non-automatic trigger mode indicates that the monitoring periodic trigger function needs to be called when triggering the monitoring module, wherein the monitoring periodic trigger function is used during the calling process to send a control signal to the monitoring module when the trigger period of the monitoring module arrives, and the control signal is used to reset the timing information of the monitoring module.
[0032] Optionally, the monitoring pre-start module is specifically configured as follows:
[0033] Calling an initialization function to initialize the driver chip, wherein during the execution of the initialization function, the monitoring module in the driver chip is controlled to be turned off, and the control register of the driver chip is configured with parameters;
[0034] The enabling status of the monitoring module is determined according to the configuration information of the monitoring module. If the enabling status is that the monitoring module needs to be turned on, the state of the monitoring module identified in the current MCU is set to a pre-turn-on state.
[0035] Optionally, the configuration information also includes: a calling cycle of the monitoring control function, wherein the monitoring control function is used to send a start signal to the monitoring module to control the start of the monitoring module in the automatic trigger mode and when the state of the monitoring module identified in the current MCU is in the pre-start state, and set the state of the monitoring module identified in the current MCU to the start state, and perform timing in the start state until the accumulated time reaches the time threshold, and then send a trigger signal to the monitoring module;
[0036] Correspondingly, the monitoring startup module is specifically configured as follows:
[0037] When the monitoring control function is called for the first time, it is determined whether the trigger mode of the monitoring module is the automatic trigger mode according to the configuration information. If it is the automatic trigger mode, it is determined whether the state of the monitoring module identified in the current MCU is the pre-start state. If it is the pre-start state, a start signal is sent to the monitoring module to control the start of the monitoring module, and the state of the monitoring module identified in the current MCU is set to the start state;
[0038] Correspondingly, the timing trigger module is specifically configured as follows:
[0039] When the monitoring control function is called for the Nth time, when it is determined that the trigger mode of the monitoring module is the automatic trigger mode, it is determined whether the state of the monitoring module identified in the current MCU is the on state. If it is the on state, then in the on state, timing is performed based on the calling cycle until the accumulated time reaches the time threshold, and then a trigger signal is sent to the monitoring module, where N≥2.
[0040] Optionally, the device provided by the embodiment of the present invention further includes:
[0041] The monitoring shutdown module is configured to call the monitoring shutdown function after completing the initialization operation of the driver chip and when the state of the monitoring module identified in the current MCU is in the on state if a shutdown requirement of the monitoring module is detected, wherein during the execution of the monitoring shutdown function, a monitoring shutdown signal is sent to the monitoring module to control the shutdown of the monitoring module, and the state of the monitoring module identified in the current MCU is set to the off state.
[0042] Optionally, the device provided by the embodiment of the present invention further includes:
[0043] The monitoring automatic enabling module is configured to call the monitoring enabling function if it is detected that there is a need to start the monitoring module after the initialization of the driver chip is completed and the monitoring module is in a closed state. During the execution of the monitoring enabling function, the trigger mode of the monitoring module is determined according to the configuration information. If the trigger mode is determined to be the automatic trigger mode, the state of the monitoring module identified in the current MCU is set to the pre-starting state.
[0044] Optionally, the device provided by the embodiment of the present invention further includes:
[0045] The monitoring non-automatic enabling module is configured to send a startup instruction to the monitoring module to instruct the monitoring module to start, and set the state of the monitoring module identified in the current MCU to the on state if the trigger mode is determined to be the non-automatic trigger mode during the execution of the monitoring enabling function;
[0046] Accordingly, the device provided by the embodiment of the present invention further includes:
[0047] The periodic trigger module is configured to periodically call the monitoring periodic trigger function in the non-automatic trigger mode to periodically send a control signal to the monitoring module in the driver chip.
[0048] In a third aspect, an embodiment of the present invention further provides a computing device, including:
[0049] A memory storing executable program code;
[0050] a processor coupled to the memory;
[0051] The processor calls the executable program code stored in the memory to execute the control method of the monitoring module provided by any embodiment of the present invention.
[0052] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the control method of the monitoring module provided by any embodiment of the present invention.
[0053] According to the technical solution provided by the embodiment of the present invention, when the MCU performs an initialization operation on the driver chip, when it is identified that the monitoring module needs to be started, the state of the monitoring module currently identified in the MCU is set to a pre-start state, and at this time, the monitoring module in the driver chip is still closed and timing has not started. After the initialization is completed, when the MCU determines that the trigger mode of the monitoring module is the automatic trigger mode, and when it is identified that the state of the monitoring module is the pre-start state, it sends a start signal to the monitoring module to control the monitoring module to start timing, and synchronously sets the state of the monitoring module identified in the current MCU to the start state. The MCU performs timing in this start state until the accumulated time reaches the preset trigger time threshold of the monitoring module, and then sends a trigger signal to the monitoring module. By adopting the above technical solution, the timing information of the MCU-side software and the monitoring module on the driver chip side is kept synchronized during the monitoring process, avoiding problems such as system reset and function loss caused by the time difference between the two.
[0054] The innovative features of the embodiments of the present invention include:
[0055] 1. In the present application, three status identifiers of the monitoring module are set in the MCU, including a pre-startup state, a start-up state, and a shutdown state. This setting is to enable the MCU to more accurately monitor the actual state of the monitoring module in the driver chip during the execution of the system initialization operation and after the initialization is completed, so that the monitoring state identified in the MCU is consistent with the start-up state of the monitoring module in the driver chip, so that the timing information on the MCU side can be consistent with the actual timing information of the monitoring module, which is one of the innovations of the embodiments of the present invention.
[0056] 2. During the initialization process, when the MCU recognizes that the monitoring module needs to be turned on, it only sets the status of the monitoring module currently identified in the MCU to the pre-on state, while the monitoring module in the driver chip is in the off state and does not start timing during the entire initialization process. After the initialization is completed, the MCU sends a start signal to the monitoring module, and the monitoring module starts timing. The MCU also synchronously sets its internal identification information to the on state and performs timing in this on state. By adopting the above settings, the consistency of the timing sequence of the initialization process and the MCU end after initialization with the actual timing sequence of the monitoring module is guaranteed, avoiding the problem of system reset caused by the MCU being unable to send a trigger signal to the monitoring module when the trigger time of the monitoring module is reached during the execution of the initialization process. This is one of the innovative points of the embodiments of the present invention.
[0057] 3. By calling the initialization function, the initialization of each driver chip and the setting of the status of the monitoring module identified in the MCU are realized. In addition, by periodically calling the monitoring control function, the startup and timing automatic triggering of the monitoring module after initialization are realized, which is one of the innovative points of the embodiment of the present invention.
[0058] 4. By setting the monitoring module trigger mode recognition function, the monitoring module startup function in the non-automatic trigger mode, and the monitoring module pre-start function in the automatic trigger mode in the monitoring enable function, the diversity and flexibility of the monitoring enable function are increased to facilitate the on-demand startup of the monitoring module in different trigger modes, which is one of the innovations of the embodiment of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the embodiments of the present invention 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, 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 work.
[0060] Figure 1a A flowchart of a control method for a monitoring module provided in Embodiment 1 of the present invention;
[0061] Figure 1b A schematic diagram of the execution flow of a monitoring module initialization function provided in the first embodiment of the present invention;
[0062] Figure 1c A schematic diagram of an execution flow of a monitoring control function provided in the first embodiment of the present invention;
[0063] Figure 1d A schematic diagram of the execution flow of a monitoring shutdown function provided in the first embodiment of the present invention;
[0064] Figure 1e A schematic diagram of an execution flow of a monitoring enabling function provided in the first embodiment of the present invention;
[0065] Figure 2 A structural block diagram of a control device for a monitoring module provided in Embodiment 2 of the present invention;
[0066] Figure 3 A schematic diagram of the structure of a computing device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0067] 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 only 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.
[0068] It should be noted that the terms "including" and "having" and any variations thereof in the embodiments of the present invention and the accompanying drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.
[0069] The embodiments of the present invention disclose a control method, device, equipment and medium of a monitoring module, which are described in detail below.
[0070] Embodiment 1
[0071] Figure 1a This is a flow chart of a control method of a monitoring module provided in the first embodiment of the present invention. The method can be applied to the application scenario of using the monitoring module in the driver chip to monitor the system status. The execution subject of the method provided in this embodiment is the MCU, and it can be executed by the control device of the monitoring module of the MCU, which can be implemented by software and / or hardware. Figure 1a As shown, the method provided in this embodiment specifically includes:
[0072] S110. During the initialization of the driver chip, when it is determined that the monitoring module needs to be turned on, the state of the monitoring module identified in the current MCU is set to a pre-on state, wherein the monitoring module in the driver chip is in a turned-off state during the initialization process.
[0073] The monitoring module is a functional module on the driver chip for monitoring the operating status of the system. For example, the monitoring module can be used to monitor whether the system program has abnormalities such as dead loop or crash. The monitoring module can be a watchdog timer, or it can also be other functional modules that meet the monitoring function of this application. The monitoring module can be implemented by software and / or hardware, and this embodiment does not specifically limit this.
[0074] In this embodiment, the working principle of the monitoring module is: the monitoring module starts timing after startup, and when the accumulated timing time of the monitoring module reaches a preset time threshold, if the trigger signal sent by the MCU is not received, the monitoring module will send a system reset signal to the MCU. Therefore, in order to avoid the loss of system functions due to system reset, the MCU needs to send a trigger signal to the monitoring module at a set interval, and the monitoring module will reset its counter after receiving the trigger signal, that is, restart the timing.
[0075] In this embodiment, in order to realize the monitoring function of the monitoring module, the MCU needs to configure the parameters of the monitoring module before initializing the driver chip to obtain configuration information. Among them, the configuration information includes the enabling status of the monitoring module, that is, whether the monitoring function of the monitoring module needs to be turned on or off during the operation of the system, and the configuration information can be set according to the actual application scenario of the monitoring module. In addition, the configuration information also includes the trigger cycle of the monitoring module, that is, the time threshold at which the MCU needs to send a trigger signal to the monitoring module, and the trigger mode of the monitoring module, that is, automatic triggering or non-automatic triggering. Among them, the difference between the automatic trigger mode and the non-automatic trigger mode is whether the MCU needs to call the monitoring periodic trigger function, such as the Watchdog_Feed function, to periodically trigger the monitoring module. Among them, the function of the monitoring periodic trigger function is to send a control signal to the monitoring module when the trigger cycle of the monitoring module arrives, so as to control the monitoring module to reset its internal timing information. In the non-automatic trigger mode, the node for executing the trigger operation is pre-set by the R&D personnel. When the program executes to this node, the MCU needs to control the monitoring module to start, and call the monitoring periodic trigger function to periodically trigger the monitoring module. In the automatic trigger mode, the trigger operation is automatically triggered by the program, and there is no need to pre-set the nodes to be triggered, and the MCU does not need to call the monitoring periodic trigger function when triggering the monitoring module. The control method of the monitoring module provided in this embodiment is mainly aimed at the automatic trigger mode.
[0076] In order to realize the automatic triggering of the monitoring module, the MCU needs to accurately obtain the actual state of the monitoring module. In this embodiment, three state identifiers of the monitoring module are set in the MCU, namely, the pre-open state, the open state and the closed state. Among them, the pre-open state is the intermediate state between the closed state and the open state when the MCU determines that the monitoring module needs to be turned on during the initialization of the driver chip, that is, if the state of the monitoring module identified in the MCU is to be converted from the closed state to the open state, the state identifier must be converted from the closed state to the pre-open state during the initialization process, and then converted from the pre-open state to the open state after the initialization is completed. In this embodiment, the pre-open state indicates that the enabling state of the monitoring module during the operation of the system needs to be turned on. Specifically, during the process of the MCU performing the initialization operation on the driver chip, the MCU can determine the enabling state of the monitoring module according to the configuration information of the monitoring module, and when it is determined that the monitoring module needs to be turned on, the current state of the monitoring module is set to the pre-open state.
[0077] In this embodiment, the pre-open state and the closed state marked in the MCU correspond to the closed state of the monitoring module in the driver chip, that is, when the monitoring state marked in the MCU is the pre-open state and the closed state, the monitoring module in the driver chip does not start timing. The open state marked in the MCU corresponds to the monitoring module in the driver chip being in the open state, that is, when the monitoring state marked in the MCU is the open state, the monitoring module in the driver chip is in the timing state.
[0078] In the related art, the status of the monitoring module has only two states: on and off. The program developer will set the on node and off node of the monitoring module in the code according to the needs of the actual application scenario. When the program runs to the node where the monitoring module needs to be turned on, the MCU will control the monitoring module to start. When the program runs to the node where the monitoring module needs to be turned off, the MCU will control the monitoring function of the monitoring module to be turned off. There is no status identification information of the monitoring module on the MCU side.
[0079] In this embodiment, the status identification of the monitoring module is set in the MCU in order to more accurately monitor the actual status of the monitoring module in the driver chip during the execution of the system initialization operation and after the initialization is completed, so that the monitoring status identified in the MCU is consistent with the start-up status of the monitoring module in the driver chip, so that the timing information on the MCU side can be consistent with the actual timing information of the monitoring module. In this way, after the monitoring module in the driver chip is started, the MCU can promptly send a trigger signal to it within the time threshold of the monitoring module, and the monitoring module can also receive the trigger signal within the set time threshold to reset its timing information, thereby avoiding the system reset problem caused by the overflow of the monitoring module counter.
[0080] After the system is started, the MCU cannot perform a timed trigger on the monitoring module during the initialization operation of each driver chip. Therefore, during the initialization process, when the MCU recognizes that the monitoring module needs to be turned on, it only sets the state of the monitoring module currently identified in the MCU to the pre-on state, and the monitoring module in the driver chip is in the off state and does not start timing during the entire initialization process. After the initialization is completed, the MCU sends a start signal to the monitoring module, and the monitoring module starts timing only after receiving the start signal. At this time, the MCU also synchronously sets its internal identification information to the on state and performs timing in this on state. In this way, the consistency of the timing sequence of the initialization process and the MCU end after initialization and the actual timing sequence of the monitoring module in the driver chip is ensured, and the problem of system reset caused by the MCU being unable to send a trigger signal to the monitoring module when the trigger time of the monitoring module arrives during the execution of the initialization process is avoided.
[0081] In this embodiment, in order to ensure that all monitoring modules are in a closed state during the system initialization process, when the MCU starts the initialization operation, a monitoring closing signal can be sent to the monitoring module to ensure that the monitoring module is closed during the entire initialization process.
[0082] In this embodiment, the initialization function of the MCU in this application and the functions of setting the identification status of the monitoring module in the MCU according to the enabling status of the monitoring module can be encapsulated by the initialization function. After the system is started, the MCU can implement the initialization of each driver chip and the setting of the status of the monitoring module identified in the MCU by calling the initialization function.
[0083] Specifically, Figure 1b A schematic diagram of the execution flow of a monitoring module initialization function provided in the first embodiment of the present invention is shown in FIG. Figure 1b As shown, during the execution of the initialization function, the monitoring module in the control driver chip is turned off, and the control register of the driver module is initialized, such as writing initial values to the registers, writing control data, etc. Then, the enabling status of the monitoring module is determined according to the configuration information. If the enabling status is that the monitoring module needs to be turned on, the status of the monitoring module identified in the current MCU is set to the pre-enabling status (TobeEnable status); if the enabling status is that the monitoring module does not need to be turned on, it means that the system operation status does not need to be monitored by the monitoring module during the system operation. At this time, the status of the monitoring module identified in the current MCU can be set to the disabled status (Disable status).
[0084] S120. After initialization is completed, if the trigger mode of the monitoring module is determined to be the automatic trigger mode, and when it is identified that the state of the monitoring module identified in the current MCU is the pre-start state, a start signal is sent to the monitoring module to control the start of the monitoring module, and the state of the monitoring module identified in the current MCU is set to the start state.
[0085] In order to avoid problems such as system reset and function loss caused by the MCU executing a long initialization process and resulting in inconsistency between its timing and the timing of the monitoring module, in this embodiment, the monitoring module in the driver chip is controlled to start only after the initialization is completed, and the MCU side also synchronously sets the status identification information of its internal monitoring module to the on state after the initialization is completed.
[0086] Optionally, a monitoring control function module can be used to encapsulate functions such as the startup and timed automatic triggering of the monitoring module after initialization. Later, during the touch process of the monitoring module, the MCU can directly call the monitoring control function to realize the startup and timed triggering of the monitoring module. Such a setting can improve the reusability and scalability of the code. Among them, during the execution of the monitoring control function, when it is determined that the trigger mode of the monitoring module is the automatic trigger mode and when it is identified that the state of the monitoring module identified in the current MCU is in the pre-start state, a start signal is sent to the monitoring module to control the startup of the monitoring module, and the state of the monitoring module identified in the current MCU is set to the start state, and timing is performed in the start state until the accumulated time reaches the time threshold, and a trigger signal is sent to the monitoring module, and the trigger signal is used to reset the timing information of the monitoring module in the driver chip.
[0087] Specifically, Figure 1c A schematic diagram of the execution flow of a monitoring control function provided in the first embodiment of the present invention is shown in FIG. Figure 1c As shown, when the monitoring control function is called for the first time, the monitoring control function will determine whether the state of the monitoring module is in the closed state during execution. If it is in the closed state, no operation is required on the monitoring module during the execution of the monitoring control function, and the process ends. If the state of the monitoring module is not in the closed state, the trigger mode of the monitoring module is determined according to the configuration information. If it is in the non-automatic trigger mode, no operation is required on the monitoring module in the driver chip in the monitoring control function, and the process ends; if it is in the automatic trigger mode, it is determined whether the state of the monitoring module identified in the current MCU is in the pre-open state. If it is in the pre-open state, the MCU sends a start signal to the monitoring module to control the start of the monitoring module, and sets the state of the monitoring module identified in the current MCU to the open state.
[0088] S130, timing is performed in the on state until the accumulated time reaches a time threshold, and a trigger signal is sent to the monitoring module, where the trigger signal is used to reset the timing information of the monitoring module.
[0089] In this embodiment, in the process of realizing the startup and timing automatic triggering of the monitoring module by calling the monitoring control function, the on state of the monitoring module can be timed by the calling cycle of the monitoring control function. For example, the triggering cycle of the monitoring module is 100 milliseconds, that is, the MCU needs to send a trigger signal to the monitoring module every 100 milliseconds to reset the timing information of the monitoring module. If the calling cycle of the monitoring control function is 10 milliseconds, that is, the monitoring control function is called every 10 milliseconds, then in the process of calling the monitoring control function for the first time, after the state of the monitoring module identified in the MCU is set to the on state, the triggering time of the monitoring module is reached when the monitoring control function is called for the 11th time, that is, the MCU needs to send a trigger signal to the monitoring module when calling the monitoring control function for the 11th time to control the monitoring module to reset its timing information. Among them, the calling cycle of the monitoring control function can be set during the configuration process of the monitoring module.
[0090] Specifically, Figure 1c As shown, after the monitoring control function is called for the first time, in the automatic trigger mode, the monitoring module in the driver chip is in the open state, and the state of the monitoring module identified in the current MCU is in the open state. When the monitoring control function is called for the Nth time (N≥2), during the execution of the monitoring control function, it will be determined whether the state of the monitoring module is in the closed state. If it is in the closed state, no operation is required on the monitoring module during the execution of the control function, and the process ends; if the state of the monitoring module is not in the closed state, the trigger mode of the monitoring module is determined according to the configuration information. If it is in the non-automatic trigger mode, no operation is required on the monitoring module in the monitoring control function, and the process ends; if it is in the automatic trigger mode, it is determined whether the monitoring state of the monitoring module is in the pre-open state. If it is not in the pre-open state, it is determined whether the monitoring state of the monitoring module identified in the current MCU is in the open state. If it is in the open state, then in the open state, timing is performed based on the calling cycle of the current monitoring control function until the accumulated time reaches the time threshold required for the monitoring module to be triggered, and a trigger signal is sent to the monitoring module to control the monitoring module to reset its timing information.
[0091] In this embodiment, when the MCU performs an initialization operation on the driver chip, if it is identified that the monitoring module needs to be started, the state of the monitoring module currently identified in the MCU is set to the pre-start state. At this time, the monitoring module in the driver chip is still closed and the timing has not started. After the initialization is completed, when the MCU determines that the trigger mode of the monitoring module is the automatic trigger mode, and when it is identified that the state of the monitoring module is the pre-start state, it sends a start signal to the monitoring module to control the monitoring module to start timing, and synchronously sets the state of the monitoring module identified in the current MCU to the start state. The MCU performs timing in this start state until the accumulated time reaches the preset trigger time threshold of the monitoring module, and then sends a trigger signal to the monitoring module. By adopting the above technical solution, the timing information of the MCU-side software and the monitoring module on the driver chip side is kept synchronized during the monitoring process, avoiding problems such as system reset and function loss caused by the time difference between the two.
[0092] Furthermore, after completing the initialization operation of the driver chip, when the monitoring module is in the on state, in some specific scenarios, if it is detected that there is a need to shut down the monitoring module, the monitoring shutdown function can be called to shut down the monitoring module. For example, when the monitoring module is a watchdog timer, the monitoring shutdown function can be a watchdog shutdown function (Watchdog_Disable).
[0093] Specifically, Figure 1d A schematic diagram of the execution flow of a monitoring shutdown function provided in the first embodiment of the present invention is shown in FIG. Figure 1d As shown, during the execution of the monitoring shutdown function, the MCU sends a monitoring shutdown signal to the monitoring module to control the monitoring module to shut down, and sets the state of the monitoring module currently identified in the MCU to a closed state.
[0094] Furthermore, when the monitoring module is in a closed state, if a need to start the monitoring module is detected, such as when monitoring a long-running test program, or monitoring critical tasks, or in specific scenarios such as software updates and upgrade tests, if the MCU detects the need to start the monitoring module, it can call the monitoring enable function to pre-start the monitoring module after completing the initialization operation of the driver chip.
[0095] Specifically, Figure 1e The following is a schematic diagram of the execution flow of a monitoring enabling function provided in the first embodiment of the present invention. Figure 1eAs shown, during the operation of the monitoring enable function, the trigger mode of the monitoring module can be determined according to the configuration information of the monitoring module. If it is an automatic trigger mode, the monitoring state of the monitoring module identified in the current MCU is directly set to the pre-open state. At this time, the actual state of the monitoring module in the driver chip is still closed. In the subsequent program execution process, the monitoring module can be started and automatically triggered at a time by calling the monitoring control function. However, if it is determined that the trigger mode of the monitoring module is a non-automatic trigger mode, a startup instruction is sent to the monitoring module to control the startup of the monitoring module, and the state of the monitoring module identified in the current MCU is set to the open state. The MCU performs timing in the open state, and then calls the monitoring periodic trigger function at a regular interval to send a control signal to the monitoring module at a regular interval. After receiving the control signal, the monitoring module resets its timing information.
[0096] Specifically, when the monitoring module is a watchdog timer, for non-automatic triggering mode, the MCU can start the watchdog by calling the enable function (Watchdog_Enable) of the watchdog timer. The monitoring enable function provided in this embodiment adds the judgment of the watchdog triggering mode on the basis of the original function of the watchdog enable function, and adds the pre-starting function of the watchdog timer, that is, in the automatic triggering mode, the monitoring state device of the watchdog identified in the MCU is set to the pre-starting state, so that the subsequent timed automatic triggering of the watchdog can apply the self-triggering mode provided by this application.
[0097] In this embodiment, according to the needs of the actual application scenario, the monitoring module can be controlled to be closed by calling the monitoring close function, or the monitoring module can be controlled to be opened by the monitoring enable function. Among them, the monitoring enable function integrates the recognition function of the trigger mode of the monitoring module, the startup function of the monitoring module in the non-automatic trigger mode, and the pre-opening function of the monitoring module in the automatic trigger mode. The advantage of such a setting is that the diversity and flexibility of the monitoring enable function are increased. In the non-automatic trigger mode, the MCU can directly call this function to realize the opening and timing triggering of the monitoring module. In the automatic trigger mode, the MCU can also set the state of the monitoring module identified in the MCU to the pre-open state to prepare for the subsequent opening and timing automatic triggering of the monitoring module.
[0098] Embodiment 2
[0099] Figure 2 This is a structural block diagram of a control device of a monitoring module provided in the second embodiment of the present invention, wherein the monitoring module is arranged in the driver chip, the monitoring module starts timing after it is started, and sends a system reset signal to the MCU when the preset time threshold is exceeded. The device can be applied to the MCU end. Figure 2As shown, the device includes a monitoring pre-starting module 210, a monitoring start-up module 220 and a timing triggering module 230, wherein:
[0100] The monitoring pre-starting module is configured to: during the initialization process of the driver chip, when it is determined that the monitoring module needs to be started, set the state of the monitoring module identified in the current MCU to the pre-starting state, wherein the monitoring module in the driver chip is in the closed state during the initialization process;
[0101] The monitoring startup module is configured to, after the initialization is completed, if it is determined that the trigger mode of the monitoring module is the automatic trigger mode, and when it is identified that the state of the monitoring module identified in the current MCU is the pre-start state, send a startup signal to the monitoring module to control the startup of the monitoring module, and set the state of the monitoring module identified in the current MCU to the start state;
[0102] The timing trigger module is configured to perform timing in an on state until the accumulated time reaches a time threshold, and then send a trigger signal to the monitoring module, wherein the trigger signal is used to reset the timing information of the monitoring module.
[0103] Optionally, the device provided by the embodiment of the present invention further includes:
[0104] The configuration module is configured to configure the monitoring module before initializing the driver chip to obtain configuration information, wherein the configuration information includes the enabling status of the monitoring module, the trigger mode of the monitoring module and the trigger period of the monitoring module, wherein the trigger mode includes an automatic trigger mode and a non-automatic trigger mode, wherein the automatic trigger mode indicates that there is no need to call the monitoring periodic trigger function when triggering the monitoring module, and the non-automatic trigger mode indicates that the monitoring periodic trigger function needs to be called when triggering the monitoring module, wherein the monitoring periodic trigger function is used during the calling process to send a control signal to the monitoring module when the trigger period of the monitoring module arrives, and the control signal is used to reset the timing information of the monitoring module.
[0105] Optionally, the monitoring pre-start module is specifically configured as follows:
[0106] Calling an initialization function to initialize the driver chip, wherein during the execution of the initialization function, the monitoring module in the driver chip is controlled to be turned off, and the control register of the driver chip is configured with parameters;
[0107] The enabling status of the monitoring module is determined according to the configuration information of the monitoring module. If the enabling status is that the monitoring module needs to be turned on, the state of the monitoring module identified in the current MCU is set to a pre-turn-on state.
[0108] Optionally, the configuration information also includes: a calling cycle of the monitoring control function, wherein the monitoring control function is used to send a start signal to the monitoring module to control the start of the monitoring module in the automatic trigger mode and when the state of the monitoring module identified in the current MCU is in the pre-start state, and set the state of the monitoring module identified in the current MCU to the start state, and perform timing in the start state until the accumulated time reaches the time threshold, and then send a trigger signal to the monitoring module;
[0109] Correspondingly, the monitoring startup module is specifically configured as follows:
[0110] When the monitoring control function is called for the first time, it is determined whether the trigger mode of the monitoring module is the automatic trigger mode according to the configuration information. If it is the automatic trigger mode, it is determined whether the state of the monitoring module identified in the current MCU is the pre-start state. If it is the pre-start state, a start signal is sent to the monitoring module to control the start of the monitoring module, and the state of the monitoring module identified in the current MCU is set to the start state;
[0111] Correspondingly, the timing trigger module is specifically configured as follows:
[0112] When the monitoring control function is called for the Nth time, when it is determined that the trigger mode of the monitoring module is the automatic trigger mode, it is determined whether the state of the monitoring module identified in the current MCU is the on state. If it is the on state, then in the on state, timing is performed based on the calling cycle until the accumulated time reaches the time threshold, and then a trigger signal is sent to the monitoring module, where N≥2.
[0113] Optionally, the device provided by the embodiment of the present invention further includes:
[0114] The monitoring shutdown module is configured to call the monitoring shutdown function after completing the initialization operation of the driver chip and when the state of the monitoring module identified in the current MCU is in the on state if a shutdown requirement of the monitoring module is detected, wherein during the execution of the monitoring shutdown function, a monitoring shutdown signal is sent to the monitoring module to control the shutdown of the monitoring module, and the state of the monitoring module identified in the current MCU is set to the off state.
[0115] Optionally, the device provided by the embodiment of the present invention further includes:
[0116] The monitoring automatic enabling module is configured to call the monitoring enabling function if it is detected that there is a need to start the monitoring module after the initialization of the driver chip is completed and the monitoring module is in a closed state. During the execution of the monitoring enabling function, the trigger mode of the monitoring module is determined according to the configuration information. If the trigger mode is determined to be the automatic trigger mode, the state of the monitoring module identified in the current MCU is set to the pre-starting state.
[0117] Optionally, the device provided by the embodiment of the present invention further includes:
[0118] The monitoring non-automatic enabling module is configured to send a startup instruction to the monitoring module to instruct the monitoring module to start, and set the state of the monitoring module identified in the current MCU to the on state if the trigger mode is determined to be the non-automatic trigger mode during the execution of the monitoring enabling function;
[0119] Accordingly, the device provided by the embodiment of the present invention further includes:
[0120] The periodic trigger module is configured to periodically call the monitoring periodic trigger function in the non-automatic trigger mode to periodically send a control signal to the monitoring module in the driver chip.
[0121] Embodiment 3
[0122] See also Figure 3 , Figure 3 This is a schematic diagram of the structure of a computing device provided in Embodiment 3 of the present invention. Figure 3 As shown, the computing device may include:
[0123] A memory 701 storing executable program codes;
[0124] a processor 702 coupled to the memory 701;
[0125] The processor 702 calls the executable program code stored in the memory 701 to execute the control method of the monitoring module provided by any embodiment of the present invention.
[0126] An embodiment of the present invention discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute the control method of a monitoring module provided by any embodiment of the present invention.
[0127] In various embodiments of the present invention, it should be understood that the size of the serial numbers of the above-mentioned processes does not mean the necessary order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0128] In the embodiments provided by the present invention, it should be understood that "B corresponding to A" means that B is associated with A, and B can be determined according to A. However, it should also be understood that determining B according to A does not mean determining B only according to A, and B can also be determined according to A and / or other information.
[0129] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0130] If the above 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 computer-accessible memory. Based on this understanding, the technical solution of the present invention, in essence, 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, which is stored in a memory and includes several requests for a computer device (which can be a personal computer, a server or a network device, etc., specifically a processor in a computer device) to perform some or all of the steps of the above methods of various embodiments of the present invention.
[0131] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0132] Those skilled in the art can understand that the accompanying drawings are only schematic diagrams of an embodiment, and the modules or processes in the accompanying drawings are not necessarily required to implement the present invention.
[0133] Those skilled in the art can understand that the modules in the device in the embodiment can be distributed in the device in the embodiment according to the description of the embodiment, or can be changed accordingly and located in one or more devices different from the embodiment. The modules in the above embodiment can be combined into one module, or can be further divided into multiple sub-modules.
[0134] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A control method for a monitoring module, applied to a microcontroller unit MCU, wherein: The monitoring module is arranged in the driver chip, and the monitoring module starts timing after it is started, and sends a system reset signal to the MCU when a preset time threshold is exceeded. The method includes: During the process of initializing the driver chip, when it is determined that the monitoring module needs to be turned on, the state of the monitoring module identified in the current MCU is set to a pre-on state, wherein the monitoring module in the driver chip is in a turned-off state during the initialization process; After the initialization is completed, if it is determined that the trigger mode of the monitoring module is the automatic trigger mode, and when it is identified that the state of the monitoring module identified in the current MCU is in the pre-start state, a start signal is sent to the monitoring module to control the start of the monitoring module, and the state of the monitoring module identified in the current MCU is set to the start state; Timing is performed in the on state until the accumulated time reaches the time threshold, and a trigger signal is sent to the monitoring module, wherein the trigger signal is used to reset the timing information of the monitoring module.
2. The method according to claim 1, characterized in that Before initializing the driver chip, the method further includes: The monitoring module is configured to obtain configuration information, wherein the configuration information includes the enabling status of the monitoring module, the trigger mode of the monitoring module and the trigger period of the monitoring module, wherein the trigger mode includes an automatic trigger mode and a non-automatic trigger mode, wherein the automatic trigger mode indicates that there is no need to call a monitoring periodic trigger function when the monitoring module is triggered, and the non-automatic trigger mode indicates that a monitoring periodic trigger function needs to be called when the monitoring module is triggered, wherein the monitoring periodic trigger function is used during the calling process to send a control signal to the monitoring module when the trigger period of the monitoring module arrives, and the control signal is used to reset the timing information of the monitoring module.
3. The method according to claim 2, characterized in that In the process of initializing the driver chip, when it is determined that the monitoring module needs to be turned on, setting the state of the monitoring module identified in the current MCU to a pre-turn-on state includes: Calling an initialization function to initialize the driver chip, wherein during the execution of the initialization function, controlling the monitoring module in the driver chip to be turned off, and configuring parameters of the control register of the driver chip; The enabling status of the monitoring module is determined according to the configuration information of the monitoring module. If the enabling status is that the monitoring module needs to be turned on, the state of the monitoring module identified in the current MCU is set to a pre-turn-on state.
4. The method according to claim 2 or 3, characterized in that: The configuration information also includes: a calling cycle of a monitoring control function, wherein the monitoring control function is used to send a start signal to the monitoring module to control the start of the monitoring module in an automatic trigger mode and when the state of the monitoring module identified in the current MCU is in a pre-start state, and to set the state of the monitoring module identified in the current MCU to an on state, and to perform timing in the on state until the accumulated time reaches the time threshold, and then send a trigger signal to the monitoring module; Correspondingly, if it is determined that the trigger mode of the monitoring module is the automatic trigger mode, and when it is identified that the state of the monitoring module identified in the current MCU is in the pre-start state, a start signal is sent to the monitoring module to control the start of the monitoring module, and the state of the monitoring module identified in the current MCU is set to the start state, including: When the monitoring control function is called for the first time, judging whether the trigger mode of the monitoring module is the automatic trigger mode according to the configuration information, and if it is the automatic trigger mode, judging whether the state of the monitoring module identified in the current MCU is the pre-start state, and if it is the pre-start state, sending a start signal to the monitoring module to control the start of the monitoring module, and setting the state of the monitoring module identified in the current MCU to the start state; Correspondingly, timing is performed in the on state until the accumulated time reaches the time threshold, and a trigger signal is sent to the monitoring module, including: When the monitoring control function is called for the Nth time, when it is determined that the trigger mode of the monitoring module is the automatic trigger mode, it is determined whether the state of the monitoring module identified in the current MCU is in the on state. If it is in the on state, then in the on state, timing is performed based on the calling cycle until the accumulated time reaches the time threshold, and a trigger signal is sent to the monitoring module, where N≥2.
5. The method according to claim 2, characterized in that: The method further comprises: After completing the initialization operation of the driver chip, when the state of the monitoring module identified in the current MCU is in the on state, if it is detected that there is a need to shut down the monitoring module, the monitoring shutdown function is called, wherein during the execution of the monitoring shutdown function, a monitoring shutdown signal is sent to the monitoring module to control the shutdown of the monitoring module, and the state of the monitoring module identified in the current MCU is set to the off state.
6. The method according to claim 5, characterized in that The method further comprises: After the initialization of the driver chip is completed, when the monitoring module is in a closed state, if it is detected that there is a need to start the monitoring module, the monitoring enable function is called, wherein during the execution of the monitoring enable function, the trigger mode of the monitoring module is determined according to the configuration information, and if the trigger mode is determined to be an automatic trigger mode, the state of the monitoring module identified in the current MCU is set to a pre-start state.
7. The method according to claim 6, characterized in that The method further comprises: During the execution of the monitoring enable function, if it is determined that the trigger mode is a non-automatic trigger mode, a startup instruction is sent to the monitoring module to instruct the monitoring module to start, and the state of the monitoring module identified in the current MCU is set to the on state; Correspondingly, the method further includes: in the non-automatic trigger mode, periodically calling the monitoring periodic trigger function to periodically send the control signal to the monitoring module in the driver chip.
8. A control device for a monitoring module, applied to an MCU, wherein: The monitoring module is arranged in the driver chip, and the monitoring module starts timing after it is started, and sends a system reset signal to the MCU when a preset time threshold is exceeded. The device is characterized in that: A monitoring pre-starting module is configured to: during the initialization process of the driver chip, when it is determined that the monitoring module needs to be started, set the state of the monitoring module identified in the current MCU to a pre-starting state, wherein the monitoring module in the driver chip is in a closed state during the initialization process; A monitoring startup module is configured to, after the initialization is completed, if it is determined that the trigger mode of the monitoring module is the automatic trigger mode, and when it is identified that the state of the monitoring module identified in the current MCU is in the pre-start state, send a startup signal to the monitoring module to control the startup of the monitoring module, and set the state of the monitoring module identified in the current MCU to the start state; The timing trigger module is configured to perform timing in the on state until the accumulated time reaches the time threshold, and then send a trigger signal to the monitoring module, wherein the trigger signal is used to reset the timing information of the monitoring module.
9. A computing device, characterized in that The computing device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the monitoring module method as described in any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the monitoring module method described in any one of claims 1 to 7 is implemented.