A monitoring method, system, device and electronic equipment
By using an independent processor in the electronic device to detect the status of the control chip and send a reset signal, the problem of device instability caused by the stuck control chip is solved and a stable restart of the device is achieved.
Patent Information
- Application Number
- CN202210453023.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-27
- Publication Date
- 2025-01-21
- Estimated Expiration
- 2042-04-27
AI Technical Summary
In electronic devices, the control chip cannot be restarted when it is stuck, causing the device to be in a constant unstable state and affects user use.
An independent processor is used to detect the working status of the control chip. If an abnormality in the control chip is detected, a reset signal is sent through the PMIC to power off and on again the control chip.
Even if the control chip is completely stuck, it can be reset through an independent processor to prevent the device from being unstable for a long time and improve the user experience.
Smart Images

Figure CN114740783B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of control of electronic equipment, and in particular to a monitoring method, system, device and electronic equipment. Background Art
[0002] Intelligent electronic devices appear in all aspects of our lives, bringing great convenience to our lives. However, due to the design of the electronic devices themselves, they often get stuck or work unstably during use. At present, the way to deal with this situation is: when the electronic device is working unstably, the MCU (Microcontroller Unit) inside the electronic device sends a signal to the PMIC (Power Management IC) so that the PMIC controls the MCU to power off and power on again to reset the MCU. However, when the MCU is completely stuck, the MCU cannot send a signal to the PMIC. At this time, the electronic device continues to be stuck, affecting the normal use of the user. Summary of the invention
[0003] The purpose of the present application is to provide a monitoring method, system, device and electronic device, which use an independent processor to detect the working status of the control chip. Even if the control chip is completely stuck, the processor can be used to control the PMIC to power off and power on the control chip again, thereby realizing the function of resetting the control chip.
[0004] In order to solve the above technical problems, the present application provides a monitoring method, which is applied to a processor connected to a control chip in an electronic device at one end and to a PMIC at the other end, and the method includes:
[0005] Determining whether a detection signal sent by the control chip according to a preset rule is received;
[0006] If not, it is determined that the control chip is abnormal, and a reset signal is sent to the PMIC, so that the PMIC controls the control chip to power off and then power on again.
[0007] Preferably, determining whether a detection signal sent by the control chip according to a preset rule is received includes:
[0008] Determine whether a detection signal sent by the control chip every preset period is received.
[0009] Preferably, determining whether a detection signal sent by the control chip according to a preset rule is received includes:
[0010] Determine whether a preset level signal sent by the control chip according to the preset rule is received.
[0011] Preferably, the preset level signal includes a first preset level of a first preset duration and a second preset level of a second preset duration, and the first preset level is opposite to the second preset level.
[0012] Preferably, after determining that the control chip is abnormal and sending a reset signal to the PMIC so that the PMIC controls the control chip to power off and then power on again, the method further includes:
[0013] The control prompt device outputs prompt information.
[0014] Preferably, controlling the prompt device to output prompt information includes:
[0015] The display prompt device is controlled to display the first prompt information and / or the sound prompt device is controlled to issue the second prompt information.
[0016] Preferably, before determining that the control chip is abnormal and sending a reset signal to the PMIC so that the PMIC controls the control chip to power off and power on again, the method further includes:
[0017] Determine whether the operating voltage of the control chip is within a first preset range and / or determine whether the operating current of the control chip is within a second preset range;
[0018] If the operating voltage is not within the first preset range or the operating current is no longer within the second preset range, a power-off signal is sent to the PMIC so that the PMIC controls the control chip to power off.
[0019] In order to solve the above technical problems, the present application also provides a monitoring system, which is applied to a processor connected to a control chip in an electronic device at one end and to a PMIC at the other end, and the system includes:
[0020] A determination unit, used to determine whether a detection signal sent by the control chip according to a preset rule is received;
[0021] The determination unit is used to determine that the control chip is abnormal when the detection signal sent by the control chip according to the preset rule is not received, and send a reset signal to the PMIC so that the PMIC controls the control chip to reset.
[0022] In order to solve the above technical problems, the present application also provides a monitoring device, comprising:
[0023] Memory for storing computer programs;
[0024] The processor is used to implement the steps of the monitoring method described above when storing the computer program.
[0025] In order to solve the above technical problems, the present application also provides an electronic device, including a control chip, a PMIC and the above-mentioned monitoring device.
[0026] The present application provides a monitoring method, which is applied to the control field of electronic devices, and is mainly used to monitor the working state of the control chip in the electronic device and make corresponding processing methods. The monitoring method in the present application is applied to a processor independent of the control chip and the PMIC. Specifically, it is determined whether a detection signal sent by the control chip according to a preset rule is received; if not, the control chip is determined to be abnormal, and a reset signal is sent to the PMIC, so that the PMIC controls the control chip to power off and power on again. It can be seen that the present application uses an independent processor to detect the working state of the control chip. Even if the control chip is completely stuck, the PMIC can control the control chip to power off and power on again through this processor, thereby realizing the function of resetting the control chip.
[0027] The present application also provides a monitoring system, device and electronic equipment, which have the same beneficial effects as the monitoring method described above. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0029] Figure 1 A flow chart of a monitoring method provided in this application;
[0030] Figure 2 A connection diagram of a processor provided in this application;
[0031] Figure 3 A schematic diagram of a specific implementation of a detection signal provided in this application;
[0032] Figure 4 A structural block diagram of a monitoring system provided by this application;
[0033] Figure 5 This is a structural block diagram of a monitoring device provided in this application. DETAILED DESCRIPTION
[0034] The core of this application is to provide a monitoring method, system, device and electronic device, which use an independent processor to detect the working status of the control chip. Even if the control chip is completely stuck, the processor can control the PMIC to power off and power on the control chip again, thereby realizing the function of resetting the control chip.
[0035] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0036] Please refer to Figure 1 and Figure 2 , Figure 1 A flow chart of a monitoring method provided in this application is shown in FIG. Figure 2 A connection diagram of a processor provided in the present application. The method is used for a processor connected to a control chip in an electronic device at one end and to a PMIC at the other end, and the method includes:
[0037] S11: Determine whether a detection signal sent by the control chip according to a preset rule is received;
[0038] Specifically, in the present application, an independent processor is set in the electronic device, through which the processor communicates with the control chip in the electronic device and the PMIC that powers the control chip, and detects the working status of the control chip. At this time, even if the control chip is stuck, the independent processor can communicate with the PMIC to enable the PMIC to control the control chip to power off and power on again.
[0039] Specifically, the control chip sends a detection signal to the processor according to a preset rule. When the control chip works normally, the processor will receive the detection signal from the control chip according to the preset rule. However, when the control chip works abnormally (such as when the control chip works unstably or the control chip is stuck), at this time, the detection signal output by the control chip to the processor is also unstable (the instability here can be that the control chip does not send the detection signal to the processor according to the preset rule, that is, the detection signal received by the processor is irregular, or the control chip no longer sends the detection signal to the processor, that is, the processor cannot receive the detection signal). At this time, as long as the processor detects that it has not received a regular detection signal, it will determine that the control chip is working abnormally, and the monitoring function of the control chip can be realized.
[0040] It should be noted that the preset rules in this application only need to follow certain rules. It can be sending the same detection signal according to a fixed period, or sending different detection signals according to a fixed rule. This application is no longer limited here.
[0041] Furthermore, the detection signal in the present application may be a fixed character or character segment, or a fixed level signal, etc., and the present application is not limited thereto.
[0042] Furthermore, the control chip in the present application may be, but is not limited to, an MCU.
[0043] S12: If not, it is determined that the control chip is abnormal, and a reset signal is sent to the PMIC, so that the PMIC controls the control chip to power off and then power on again.
[0044] Specifically, when the above-mentioned processor does not receive the detection signal of the preset rule, it determines that the control chip cannot send the detection signal according to the preset rule, that is, it determines that the control chip is in an abnormal state, that is, the control chip needs to be restarted. At this time, the processor sends a reset signal to the PMIC to make the PMIC control the control chip to power off and power on again to complete the reset of the control chip.
[0045] It should also be noted that the reason for the abnormal operation of the control chip in the present application may be that the control chip finds that its own operation is unstable or crashes through self-detection (such as uncontrollable memory or data anomalies). Compared with the method of using a watchdog to monitor the control chip, the monitoring method in the present application is more reliable.
[0046] Specifically, the way in which the watchdog monitors the control chip is specifically described as follows: after the control chip is initialized, the watchdog module is started, and the watchdog module has its own counting function, which counts down from N to 0. When the count reaches 0, the control chip is judged to be abnormal and the control chip is reset. Therefore, when the control chip is abnormal, the count value will be reset to N regularly. Specifically, assuming that it takes 3 minutes to count down from N to 0, when the control chip is normal, the count value can be reset to N every 2 minutes to indicate the normal state of the control chip. When the control chip is abnormal, the control chip cannot reset the count value to N regularly. At this time, the watchdog module will continue to count down N to 0, thereby resetting the control chip. However, when the watchdog module is abnormal, counting abnormalities may occur, resulting in abnormal reset of the control chip. It can be obtained that the method in this application is more reliable than the watchdog method.
[0047] In summary, the monitoring method in this application can use an independent processor to detect the working status of the control chip. Even if the control chip is completely stuck, the PMIC can be used to control the control chip to power off and then power on again through this processor, thereby resetting the control chip.
[0048] Based on the above embodiments:
[0049] As a preferred embodiment, determining whether a detection signal sent by a control chip according to a preset rule is received includes:
[0050] Determine whether a detection signal sent by the control chip every preset period is received.
[0051] Furthermore, this embodiment aims to limit the preset rule described above to a preset period. Specifically, the control chip may send a detection signal to the processor once according to a preset period. That is, the control chip sends a detection signal once every preset period. If the processor does not receive the detection signal within each preset period, the control chip is determined to be abnormal.
[0052] It should be noted that the preset period in the present application may be but is not limited to 10 ms.
[0053] Of course, the present invention is not limited to the above examples, and other implementation methods are also possible, and the present application will not limit them here.
[0054] As a preferred embodiment, determining whether a detection signal sent by a control chip according to a preset rule is received includes:
[0055] Determine whether a preset level signal sent by the control chip according to a preset rule is received.
[0056] Further, this embodiment aims to limit the specific implementation of the detection signal described above. Specifically, the detection signal may be, but is not limited to, a preset level signal, wherein the preset level signal may be, but is not limited to, a high level signal or a low level signal. Assuming that the preset level signal is a high level signal, the specific implementation of the processor is: determining whether a high level signal with a preset regularity is received, if so, determining that the control chip is working normally, otherwise, determining that the control chip is working abnormally.
[0057] Further, as a preferred embodiment, the specific implementation method can be to determine whether a preset level signal sent by the control chip every preset period is received. Assuming that the preset level signal is a high level signal and the preset period is 10ms, the specific implementation method is: determine whether a high level signal is received every 10ms. If so, it is determined that the control chip is working normally, otherwise it is determined that the control chip is working abnormally.
[0058] It should be noted that the high-level signal in the present application can be a high-level signal of a preset time length, or it can be a short-level pulse. The specific implementation method is not limited in this embodiment.
[0059] As a preferred embodiment, the preset level signal includes a first preset level of a first preset duration and a second preset level of a second preset duration, and the first preset level is opposite to the second preset level.
[0060] Further, this embodiment aims to limit the specific implementation method of the preset level signal, wherein the preset level signal may be a first preset level including a first preset duration and a second preset level including a second preset duration. Assuming that the first level signal is a low level signal and the second level signal is a high level signal, in this case, in a specific embodiment, reference may be made to Figure 3 , Figure 3 A schematic diagram of a specific implementation of a detection signal provided in the present application. The first preset duration may be, but is not limited to, 8ms, and the second preset duration may be, but is not limited to, 2ms. A period of the preset level signal is exactly 10ms. At this time, if the period of the level signal monitored by the processor is exactly 10ms, and 8ms of it is a low level, it is determined that the control chip is working normally and can output a correct detection signal. At this time, the processor will not send a reset signal to the PMIC, and the control chip will not reset or reset. Otherwise, the control chip is reset.
[0061] It can be seen that the implementation method in this embodiment can realize the function of detecting signals, and the implementation method is simple and reliable.
[0062] As a preferred embodiment, after determining that the control chip is abnormal and sending a reset signal to the PMIC so that the PMIC controls the control chip to power off and then power on again, the method further includes:
[0063] The control prompt device outputs prompt information.
[0064] In this embodiment, in order to enable the staff to more conveniently and promptly discover the abnormal working situation of the control chip when the control chip works abnormally and handle the abnormal situation of the control chip in a timely manner, a prompt device is added.
[0065] In addition, the prompt device can be connected to the output end of the processor. When the processor determines that the control chip is working abnormally, the processor controls the prompt device to output prompt information.
[0066] As a preferred embodiment, controlling the prompt device to output prompt information includes:
[0067] The display prompt device is controlled to display the first prompt information and / or the sound prompt device is controlled to issue the second prompt information.
[0068] In this embodiment, the prompt device can use a sound prompt device and / or a display prompt device. Specifically, only one of the sound prompt device and the display prompt device can be selected as the prompt device, that is, when it is confirmed that an alarm is issued, the sound prompt device issues a sound alarm; or the display prompt device issues a display alarm for prompting; or the two can be used in combination, that is, there are both a sound prompt device and a display prompt device. When a single prompt device is not easy to attract the attention of the staff, such as when the surrounding environment is noisy and the staff cannot hear the sound alarm, such as when the display alarm is far away from the staff and out of sight, the two prompt devices can be combined to provide multiple options for the setting of the prompt device, which is convenient for the staff to discover the abnormal working of the control chip more promptly and accurately, and to process the control chip.
[0069] As a preferred embodiment, the sound prompting device is a buzzer.
[0070] In this embodiment, a buzzer is selected as the sound prompt device and connected to the output end of the processor. The sound alarm of the buzzer has a warning effect, prompting the staff to promptly discover the abnormal working of the processing control chip. In addition, the buzzer has low cost, simple connection method and easy operation.
[0071] Of course, the sound prompt device is not limited to a buzzer, and the present application does not impose any particular limitation on the specific sound prompt device to be used.
[0072] As a preferred embodiment, the display prompting device is an indicator light.
[0073] In this embodiment, an indicator light is selected as the display prompt device. The indicator light is connected to the output end of the processor to serve as a warning to the staff in noisy places. In addition, the indicator light has low cost, simple connection method and easy operation.
[0074] Of course, the display prompt device is not limited to the indicator light, and the present application does not impose any particular limitation on the specific display prompt device to be used.
[0075] As a preferred embodiment, before determining that the control chip is abnormal and sending a reset signal to the PMIC so that the PMIC controls the control chip to power off and then power on again, the method further includes:
[0076] Determine whether the operating voltage of the control chip is within a first preset range and / or determine whether the operating current of the control chip is within a second preset range;
[0077] If the operating voltage is not within the first preset range or the operating current is no longer within the second preset range, a power-off signal is sent to the PMIC to control the control chip to power off.
[0078] Furthermore, when the processor in the present application detects the control chip, in addition to detecting the detection signal, it can also monitor the operating voltage and / or operating current of the control chip. When it is not within the corresponding preset range, it is determined that the working state of the control chip is abnormal. If the control chip continues to work, it may cause damage to the control chip or even damage to the electronic equipment. Therefore, when it is detected that the operating voltage and / or operating current are not within the corresponding preset range, a power-off signal is sent to the PMIC to control the control chip to power off, so that the control chip stops working, and the control chip and the electronic or equipment are prevented from being damaged, thereby further ensuring the safety and reliability of the control chip and the electronic equipment.
[0079] Please refer to Figure 4 , Figure 4 This is a structural block diagram of a monitoring system provided by the present application. The system is applied to a processor connected to a control chip in an electronic device at one end and to a PMIC at the other end. The system includes:
[0080] A determination unit 41 is used to determine whether a detection signal sent by the control chip according to a preset rule is received;
[0081] The determination unit 42 is used to determine that the control chip is abnormal when the detection signal sent by the control chip according to a preset rule is not received, and send a reset signal to the PMIC to make the PMIC control the control chip to reset.
[0082] In order to solve the above technical problems, the present application also provides a monitoring system. For the introduction of the monitoring system, please refer to the above embodiments, and the present application will not go into details here.
[0083] Please refer to Figure 5 , Figure 5 This is a structural block diagram of a monitoring device provided in this application, and the monitoring device includes:
[0084] A memory 51, used for storing computer programs;
[0085] The processor 52 is used to implement the steps of the above-mentioned monitoring method when storing the computer program.
[0086] In order to solve the above technical problems, the present application also provides a monitoring device. For the introduction of the monitoring device, please refer to the above embodiment, and the present application will not go into details here.
[0087] An electronic device comprises a control chip, a PMIC and the above-mentioned monitoring device.
[0088] In order to solve the above technical problems, the present application also provides an electronic device. For the introduction of the electronic device, please refer to the above embodiments, and the present application will not go into details here.
[0089] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0090] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A monitoring method, characterized in that: The method is applied to a processor connected to a control chip in an electronic device at one end and connected to a PMIC at the other end, and comprises: Determining whether a detection signal sent by the control chip according to a preset rule is received; If not, it is determined that the control chip is abnormal, and a reset signal is sent to the PMIC, so that the PMIC controls the control chip to power off and power on again, controls the display prompt device to display the first prompt information, and controls the sound prompt device to send the second prompt information; Determining whether a detection signal sent by the control chip according to a preset rule is received includes: Determining whether a preset level signal sent by the control chip according to the preset rule is received; The preset level signal includes a first preset level of a first preset duration and a second preset level of a second preset duration, and the first preset level is opposite to the second preset level; Before determining that the control chip is abnormal and sending a reset signal to the PMIC so that the PMIC controls the control chip to power off and power on again, the method further includes: Determine whether the operating voltage of the control chip is within a first preset range and determine whether the operating current of the control chip is within a second preset range; If the operating voltage is not within the first preset range or the operating current is not within the second preset range, a power-off signal is sent to the PMIC so that the PMIC controls the control chip to power off.
2. A monitoring system, characterized in that: The system is applied to a processor connected to a control chip in an electronic device at one end and connected to a PMIC at the other end, and includes: A determination unit, used to determine whether a detection signal sent by the control chip according to a preset rule is received; a determination unit, configured to determine that the control chip is abnormal when the detection signal sent by the control chip according to the preset rule is not received, and to send a reset signal to the PMIC so that the PMIC controls the control chip to reset, controls the display prompt device to display the first prompt information, and / or controls the sound prompt device to send the second prompt information; a determination unit, specifically used to determine whether a preset level signal sent by the control chip according to the preset rule is received; The preset level signal includes a first preset level of a first preset duration and a second preset level of a second preset duration, and the first preset level is opposite to the second preset level; The monitoring system is also used to determine that the control chip is abnormal and send a reset signal to the PMIC so that before the PMIC controls the control chip to power off and power on again, it determines whether the operating voltage of the control chip is within a first preset range and / or determines whether the operating current of the control chip is within a second preset range; if the operating voltage is not within the first preset range or the operating current is not within the second preset range, a power-off signal is sent to the PMIC so that the PMIC controls the control chip to power off.
3. A monitoring device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the monitoring method as claimed in claim 1 when storing a computer program.
4. An electronic device, characterized in that: It comprises a control chip, a PMIC and the monitoring device as claimed in claim 3.
Citation Information
Patent Citations
Method for realizing hardware watchdog function through CPLD (complex programmable logic device)
CN107133119A
Watchdog circuit implementation method and system
CN108762971A
MCU reset and restart method and circuit
CN111090548A
Electronic equipment and customer front-end equipment
CN113225626A