CN107506251B - Method and device for resetting intelligent equipment - Google Patents

Method and device for resetting intelligent equipment Download PDF

Info

Publication number
CN107506251B
CN107506251B CN201710612205.9A CN201710612205A CN107506251B CN 107506251 B CN107506251 B CN 107506251B CN 201710612205 A CN201710612205 A CN 201710612205A CN 107506251 B CN107506251 B CN 107506251B
Authority
CN
China
Prior art keywords
monitored module
target monitored
module
reset
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710612205.9A
Other languages
Chinese (zh)
Other versions
CN107506251A (en
Inventor
宋天敬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Visual Technology Co Ltd
Original Assignee
Hisense Visual Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Visual Technology Co Ltd filed Critical Hisense Visual Technology Co Ltd
Priority to CN201710612205.9A priority Critical patent/CN107506251B/en
Publication of CN107506251A publication Critical patent/CN107506251A/en
Application granted granted Critical
Publication of CN107506251B publication Critical patent/CN107506251B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/24Resetting means

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method and a device for resetting an intelligent device, and belongs to the technical field of electronics. The method comprises the following steps: monitoring an input pin connected with a target monitored module at preset time intervals; the target monitored module corresponds to one input pin and one output pin in the resetting device; and when the monitoring result does not meet the preset condition, resetting the target monitored module through an output pin connected with the target monitored module. Since the reset device can be provided with an independent clock by the crystal oscillation circuit of the reset device, even if the external crystal oscillator stops vibrating, the reset device can still reset the monitored module with the abnormity.

Description

Method and device for resetting intelligent equipment
Technical Field
The invention relates to the technical field of electronics, in particular to a method and a device for resetting intelligent equipment.
Background
At present, the use environment of smart devices is becoming more and more extensive, wherein smart devices may be used in better environments such as home, office, etc., and of course, may also be used in some more severe environments, for example, factories where electromagnetic field interference is strong. When the smart device is used in these severe environments, due to environmental interference, a blue screen, a crash, or a part of modules of the smart device may be abnormal in operation, and in this case, the abnormal modules in the smart device need to be reset, so that the smart device can be restored to an initial state and restarted to operate.
In the related art, a built-in watchdog may be used to monitor a module of a smart device. That is, the intelligent device may have a built-in counter, and under normal conditions, the monitored module performs timing according to the external crystal oscillator, and sends a clear instruction to the counter at every preset time interval to clear the counter, and if the monitored module is abnormal, such as stuck, the monitored module cannot send a clear instruction to the counter at every preset time interval. And the counter determines whether a zero clearing instruction sent by the monitored module is received or not at preset time intervals according to the external crystal oscillator, and when the zero clearing instruction sent by the monitored module is not received, the counter overflows and is interrupted, and then the reset operation is executed to reset the monitored module.
When the module of the intelligent device is monitored and the monitored module is reset by the method, the counter stops working when the external crystal oscillator stops vibrating, and at the moment, if the monitored module is abnormal, the counter cannot reset the monitored module.
Disclosure of Invention
In order to solve the problem that the monitored module cannot be reset if the monitored module is abnormal when the external crystal oscillator stops vibrating in the related art, the embodiment of the invention provides a method and a device for resetting an intelligent device. The technical scheme is as follows:
in a first aspect, a method for resetting a smart device is provided, where the smart device includes a plurality of monitored modules, and the method is applied in a resetting apparatus, and the method includes:
monitoring an input pin connected with the target monitored module at preset time intervals;
the reset device comprises a plurality of input pins and a plurality of output pins, the reset device comprises a crystal oscillation circuit, the crystal oscillation circuit is used for providing independent clocks for the reset device, and the target monitored module corresponds to one input pin and one output pin in the reset device;
and when the monitoring result does not meet the preset condition, resetting the target monitored module through an output pin connected with the target monitored module.
Optionally, the monitoring an input pin connected to the target monitored module includes:
monitoring whether an input pin connected with the target monitored module receives a pulse signal or not;
when the pulse signal is not received or the pulse signal is received and the received pulse signal is different from a preset pulse signal, determining that the monitoring result does not meet the preset condition;
and when the pulse signal is received and the received pulse signal is the same as the preset pulse signal, determining that the monitoring result meets the preset condition.
Optionally, the resetting the target monitored module through an output pin connected to the target monitored module includes:
and sending a reset signal to the target monitored module through an output pin connected with the target monitored module so as to reset the target monitored module.
Optionally, before sending the reset signal to the target monitored module through the output pin connected to the target monitored module, the method further includes:
counting the resetting times of the target monitored module, wherein the resetting times refer to the times of continuous resetting of the target monitored module before the current time;
when the reset times of the target monitored module are smaller than or equal to a first preset value, executing a step of sending a reset signal to the target monitored module through an output pin connected with the target monitored module, and updating the reset times of the target monitored module;
and when the reset times of the target monitored module are larger than the first preset value, re-electrifying the signal control circuit and the display panel in the intelligent equipment through a first electrifying pin in the plurality of output pins, and clearing the reset times of the target monitored module.
Optionally, after the signal control circuit and the display panel in the smart device are powered on again through the first power-on pin of the plurality of output pins, the method further includes:
detecting the level state of an input pin connected with a standby module within a preset time length, and monitoring whether a pulse signal is received on the input pin connected with the target monitored module, wherein the standby module is one monitored module in a plurality of monitored modules;
when the level state of an input pin connected with the standby module is a standby level state, or a pulse signal is not received, or a pulse signal is received and the received pulse signal is different from a preset pulse signal, the whole intelligent equipment is electrified again through a second electrifying pin in the plurality of output pins, and the standby level state refers to the level state of the input pin connected with the standby module when the intelligent equipment is in a standby state.
Optionally, after monitoring the input pin connected to the target monitored module, the method further includes:
and when the monitoring result meets the preset condition, resetting the reset times of the target monitored module.
Optionally, the monitoring an input pin connected to the target monitored module includes:
monitoring the level state of an input pin connected with the target monitored module;
when the level state of an input pin connected with the target monitored module is different from the stored normal level state, determining that the monitoring result does not meet the preset condition, wherein the normal level state refers to the level state of the input pin connected with the target monitored module when the target monitored module operates normally;
and when the level state of the input pin connected with the target monitored module is the same as the stored normal level state, determining that the monitoring result meets the preset condition.
Optionally, the monitoring an input pin connected to the target monitored module includes:
monitoring the level state of an input pin connected with the target monitored module, and monitoring whether a state detection instruction sent by the monitored module is received on the input pin connected with the target monitored module, wherein the state detection instruction is used for indicating that the target monitored module is in a normal operation state;
when the level state of an input pin connected with the target monitored module is different from the stored normal level state, or the state detection instruction sent by the target monitored module is not received, determining that the monitoring result does not meet the preset condition, wherein the normal level state refers to the level state of the input pin connected with the target monitored module when the target monitored module operates normally;
and when the level state on the input pin connected with the target monitored module is the same as the stored normal level state and the state detection instruction sent by the target monitored module is received, determining that the monitoring result meets the preset condition.
Optionally, the resetting the target monitored module through an output pin connected to the target monitored module includes:
and sending a power-on command to the target monitored module through an output pin connected with the target monitored module so as to reset the target monitored module.
In a second aspect, an apparatus for resetting a smart device is provided, the smart device including a plurality of monitored modules, the apparatus being included in a resetting apparatus, the apparatus including:
the monitoring module is used for monitoring the input pin connected with the target monitored module at preset time intervals;
the reset device comprises a plurality of input pins and a plurality of output pins, the reset device comprises a crystal oscillation circuit, the crystal oscillation circuit is used for providing independent clocks for the reset device, and the target monitored module corresponds to one input pin and one output pin in the reset device;
and the reset module is used for resetting the target monitored module through an output pin connected with the target monitored module when the monitoring result does not meet the preset condition.
Optionally, the monitoring module comprises:
the first monitoring submodule is used for monitoring whether a pulse signal is received on an input pin connected with the target monitored module;
the first determining submodule is used for determining that the monitoring result does not meet the preset condition when the pulse signal is not received or the pulse signal is received and the received pulse signal is different from a preset pulse signal;
and the second determining submodule is used for determining that the monitoring result meets the preset condition when the pulse signal is received and the received pulse signal is the same as the preset pulse signal.
Optionally, the reset module includes:
and the first reset submodule is used for sending a reset signal to the target monitored module through an output pin connected with the target monitored module so as to reset the target monitored module.
Optionally, the apparatus further comprises:
the counting module is used for counting the resetting times of the target monitored module, wherein the resetting times refer to the times of continuous resetting of the target monitored module before the current time;
the triggering module is used for triggering the first resetting submodule to send a resetting signal to the target monitored module through an output pin connected with the target monitored module and updating the resetting times of the target monitored module when the resetting times of the target monitored module is smaller than or equal to a first preset value;
and the first power-on module is used for re-powering on a signal control circuit and a display panel in the intelligent equipment through a first power-on pin in the plurality of output pins and resetting the number of times of resetting the target monitored module when the number of times of resetting the target monitored module is greater than the first preset value.
Optionally, the apparatus further comprises:
the detection module is used for detecting the level state of an input pin connected with the standby module within a preset time length and monitoring whether a pulse signal is received on the input pin connected with the target monitored module, wherein the standby module is one monitored module in a plurality of monitored modules;
and the second power-on module is used for re-powering on the whole intelligent equipment through a second power-on pin in the plurality of output pins when the level state of the input pin connected with the standby module is a standby level state, or a pulse signal is not received, or the pulse signal is received and the received pulse signal is different from a preset pulse signal, wherein the standby level state refers to the level state on the input pin connected with the standby module when the intelligent equipment is in a standby state.
Optionally, the apparatus further comprises:
and the zero clearing module is used for clearing the reset times of the target monitored module when the monitoring result meets the preset condition.
Optionally, the monitoring module comprises:
the second monitoring submodule is used for monitoring the level state on an input pin connected with the target monitored module;
a third determining submodule, configured to determine that a monitoring result does not satisfy the preset condition when a level state on an input pin connected to the monitored module is different from a stored normal level state, where the normal level state is a level state on the input pin connected to the monitored module when the monitored module operates normally;
and the fourth determining submodule is used for determining that the monitoring result meets the preset condition when the level state on the input pin connected with the target monitored module is the same as the stored normal level state.
Optionally, the monitoring module comprises:
the third monitoring submodule is used for monitoring the level state of an input pin connected with the target monitored module and monitoring whether a state detection instruction sent by the target monitored module is received on the input pin connected with the target monitored module, wherein the state detection instruction is used for indicating that the target monitored module is in a normal operation state;
a fifth determining submodule, configured to determine that a monitoring result does not meet the preset condition when a level state on an input pin connected to the target monitored module is different from a stored normal level state, or the state detection instruction sent by the target monitored module is not received, where the normal level state is a level state on an input pin connected to the target monitored module when the target monitored module operates normally;
and the sixth determining submodule is used for determining that the monitoring result meets the preset condition when the level state on the input pin connected with the target monitored module is the same as the stored normal level state and the state detection instruction sent by the target monitored module is received.
Optionally, the reset module includes:
and the second reset submodule is used for sending a power-on command to the target monitored module through an output pin connected with the target monitored module so as to reset the target monitored module.
In a third aspect, a computer-readable storage medium is provided, having stored thereon instructions, which when executed by a resetting device, implement the steps of any of the methods of the first aspect described above.
The technical scheme provided by the embodiment of the invention has the following beneficial effects: in the embodiment of the present invention, the reset device may monitor the input pin connected to the target monitored module at preset time intervals, and reset the target monitored module through the output pin connected to the target monitored module when the monitoring result does not satisfy the preset condition. Because this resetting means includes crystal oscillator circuit, consequently, can provide independent clock for this resetting means by this crystal oscillator circuit, like this, even outside crystal oscillator stops the vibration, this resetting means also can not stop work, promptly, this resetting means still can be reset the target monitored module that takes place the anomaly, need not the user and carries out the interchange switch machine manually and can guarantee timely normal work that resumes of smart machine, has improved user experience.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1A is an implementation environment diagram of a method for resetting an intelligent device according to an embodiment of the present invention;
fig. 1B is a schematic diagram of a connection relationship between a resetting apparatus and an intelligent device according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for resetting an intelligent device according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for resetting an intelligent device according to an embodiment of the present invention;
fig. 4 is a flowchart of a method for resetting an intelligent device according to an embodiment of the present invention;
fig. 5A is a schematic structural diagram of an apparatus for resetting a smart device according to an embodiment of the present invention;
fig. 5B is a schematic structural diagram of an apparatus for resetting a smart device according to an embodiment of the present invention;
fig. 5C is a schematic structural diagram of an apparatus for resetting a smart device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an intelligent device including a resetting apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Before explaining the embodiments of the present invention in detail, an application scenario of the embodiments of the present invention will be described. Currently, the use environments of smart devices such as smart televisions, computers, and the like are becoming more and more widespread. These smart devices may be used in places such as homes and offices where electromagnetic environments are relatively simple, and may also be used in places where electromagnetic environments are relatively complex. For example, in a factory building with strong electromagnetic interference, a computer for monitoring data, or a smart television arranged in the factory building for production needs. When the intelligent equipment is in a place with a complex electromagnetic environment, due to the influence of an electromagnetic field, the intelligent equipment may have the situations of blue screen, dead halt or abnormal work of part of modules, and the like.
In addition, various software programs are usually run in some modules of the smart device, and when the running software programs are jammed and cause the modules of the smart device to work abnormally, the modules of the smart device, which are abnormal, need to be reset. The method for resetting the intelligent equipment provided by the embodiment of the invention can be used for resetting the intelligent equipment with abnormal work under the condition so as to ensure that the intelligent equipment can recover to work normally in time.
After introducing the application scenario of the embodiment of the present invention, the following explains the implementation environment related to the embodiment of the present invention in detail.
Fig. 1A is an implementation environment diagram of a method for resetting an intelligent device according to an embodiment of the present invention. As shown in fig. 1, the implementation environment includes a reset device 101, monitored modules 102 and 103, a standby module 104, a signal control circuit 105, and a motherboard 106.
The reset device 101 may be located inside the smart device, and the reset device 101 includes a plurality of input pins and a plurality of output pins, and the plurality of output pins further includes a first power-on pin and a second power-on pin, and the reset device 101 is connected to the monitored modules 102 and 103, the standby module 104, the signal control circuit 105, and the motherboard 106 in the smart device through the plurality of input pins and the plurality of output pins. The monitored modules 102 and 103 and the standby module 104 respectively correspond to an input pin and an output pin in the reset device 101. In addition, the reset device 101 includes a crystal oscillation circuit for providing an independent clock to the reset device 101. Alternatively, the reset device 101 may be a separate module circuit with a crystal oscillator, for example, the reset device 101 may be a power management chip with a wide power supply and less susceptible to interference.
The monitored module 102 may be a MCU (micro controller Unit), a display screen, or the like, and when the reset device 101 is used to monitor the monitored module 102, the monitored module 102 may send a pulse signal to the reset device 101 at preset time intervals.
Monitored module 103 can be other modules connected through a special symbolic I/O (Input/Output) port. When the reset device 101 is used to monitor the monitored module 103, the reset device 101 needs to detect the level state of the input pin connected to the monitored module at preset time intervals, so as to determine whether the monitored module 103 is in a normal operating state.
The standby module 104 may be used as a monitored module, and is monitored by the reset device 101, or may be used to detect whether the intelligent device has recovered to a normal operating state after the reset device 101 powers on the signal control circuit 105. When the standby module 104 is used as a monitored module, the reset device 101 needs to detect the level state of the input pin connected to the standby module 104 at preset time intervals, so as to determine whether the intelligent device is in a normal operating state.
It should be noted that the signal control circuit 105 is connected to the reset device 101 through the first power-on pin, and when the reset device 101 cannot restore the normal operation of the monitored module 102 by sending a reset signal, the signal control circuit 105 may be powered on again through the first power-on pin to implement hardware reset. In addition, the main board 106 is connected to the reset device 101 through the second power-on pin, and after the reset device 101 powers on the signal control circuit 105 again, the intelligent device still cannot be enabled to resume normal operation, and at this time, the reset device 101 may power on the main board again through the second power-on pin, so as to implement automatic restart of the whole machine.
As can be seen from the above description, the monitored module 102 and the monitored module 103 belong to two different types of monitored modules, and the resetting device 101 can be connected to at least one monitored module 102 and at least one monitored module 103 at the same time, where when at least one monitored module 102 is an MCU and a display screen, and at least one monitored module 103 is a module with a special symbolic I/O port and a standby module, the connection relationship between the resetting device and the intelligent device is as shown in fig. 1B. The reset device can be connected with the input pin a1And a2And corresponding output pin b1And b2Respectively connected with MCU and display screen, and the reset device can also pass through input pin a3And a4And corresponding output pin b3And b4And connecting the standby module and the module with the input/output port with special mark. In addition, the output pin of the reset device also comprises a first power-on pin b5And a second power-on pin b6Through the first power-on pin b5The reset device can power up the signal control circuit 105 again through the second power-up pin b6The reset means may power up the motherboard 106 of the smart device again.
After the description of the implementation environment related to the embodiment of the present invention, a detailed description will be given below of a specific implementation of the method for resetting the smart device according to the embodiment of the present invention with reference to the drawings.
Fig. 2 is a method for resetting an intelligent device according to an embodiment of the present invention, where the method is used in a resetting apparatus, the intelligent device includes a plurality of monitored modules, the resetting apparatus includes a plurality of input pins and a plurality of output pins, and the resetting apparatus includes a crystal oscillation circuit, and the crystal oscillation circuit is used to provide an independent clock for the resetting apparatus. As shown in fig. 2, the method comprises the steps of:
step 201: and monitoring an input pin connected with the target monitored module at preset time intervals.
The resetting device can monitor a plurality of modules in the intelligent equipment at the same time. The embodiment of the present invention will be explained by taking one monitored module of a plurality of monitored modules as an example, and for convenience of description, this monitored module is referred to as a target monitored module. The target monitored module corresponds to an input pin and an output pin in the reset device. The reset device monitors the target monitored module by monitoring the input pin connected with the target monitored module. In addition, the plurality of monitored modules may include a standby module.
Step 202: and when the monitoring result does not meet the preset condition, resetting the target monitored module through an output pin connected with the target monitored module.
When the input pin connected with the target monitored module is monitored and the obtained monitoring result does not meet the preset condition, the reset device can reset the target monitored module through the output pin connected with the target monitored module.
In the embodiment of the present invention, the reset device may monitor the input pin connected to the target monitored module at preset time intervals, and reset the target monitored module through the output pin connected to the target monitored module when the monitoring result does not satisfy the preset condition. Because this resetting means includes crystal oscillator circuit, consequently, can provide independent clock for this resetting means by this crystal oscillator circuit, like this, even outside crystal oscillator stops the vibration, this resetting means also can not stop work, promptly, this resetting means still can be reset the target monitored module that takes place the anomaly, need not the user and carries out the interchange switch machine manually and can guarantee timely normal work that resumes of smart machine, has improved user experience.
Based on the foregoing description of the implementation environment related to the embodiments of the present invention, the monitored modules can be classified into two types. Wherein, software program runs in one type of monitored module, and no software program runs in the other type of monitored module. For different types of monitored modules, the monitoring mode and the resetting mode of the resetting device are different, and next, the embodiment of the present invention will respectively describe specific implementation modes of the resetting device for resetting two different types of monitored modules with reference to fig. 3 and 4.
Fig. 3 is a flowchart of a method for resetting a smart device, according to an embodiment of the present invention, the method is used in a resetting apparatus, the smart device includes a plurality of monitored modules, the resetting apparatus includes a plurality of input pins and a plurality of output pins, and the resetting apparatus includes a crystal oscillation circuit, the crystal oscillation circuit is used for providing an independent clock for the resetting apparatus. As shown in fig. 3, the method comprises the steps of:
step 301: and monitoring whether a pulse signal is received on an input pin connected with the target monitored module at preset time intervals.
The intelligent device comprises a plurality of modules, wherein some modules can run software programs, and when the modules are monitored by the resetting device, the modules can actively send pulse signals to the resetting device according to preset time intervals. For such modules, the reset device may monitor multiple modules simultaneously. The clocks of the monitored modules can be the same clock provided by an external crystal oscillator or the clock provided by a self crystal oscillation circuit. In the embodiment of the present invention, a specific implementation manner of resetting the monitored module by the resetting device will be described by taking one monitored module of the multiple monitored modules as an example, and for convenience of description, the monitored module currently monitored by the resetting device may be referred to as a target monitored module.
When the target monitored module is in a normal running state, the target monitored module can send a preset pulse signal to the resetting device at preset time intervals according to a clock of the target monitored module, and when the target monitored module is in abnormal conditions such as jamming and the like, the target monitored module cannot send the preset pulse signal to the resetting device at the preset time intervals according to the clock.
For the above reasons, the reset device may monitor whether the input pin connected to the target monitored module receives the pulse signal at preset time intervals according to the clock provided by the crystal oscillation circuit of the reset device, and then, the reset device may determine whether the monitoring result satisfies the preset condition, so as to determine whether to reset the target monitored module.
When the reset device monitors the pulse signal and the pulse signal is the same as the preset pulse signal, it can be determined that the monitoring result meets the preset condition, that is, the target monitored module is currently in a normal operation state. When the reset device does not monitor the pulse signal or the monitored pulse signal is different from the preset pulse signal, it can be determined that the monitoring result does not satisfy the preset condition, that is, the target monitored module is currently in an abnormal operating state.
It should be noted that the preset time interval is a preset time interval for the target monitored module to send the preset pulse signal in the normal operation state, and is also a time interval for the reset device to monitor the pulse signal. In addition, the preset pulse signal may be a high pulse or a low pulse. Moreover, the preset pulse signals may be different for different target monitored modules, and may of course be the same.
Step 302: and when the monitoring result does not meet the preset condition, sending a reset signal to the target monitored module through an output pin connected with the target monitored module so as to reset the target monitored module.
When the reset device determines that the monitoring result does not satisfy the preset condition, that is, when the reset device does not detect the preset pulse signal after the preset time interval, the reset device may determine that the target monitored module is currently in an abnormal working state, and at this time, the reset device may send the reset signal to the target monitored module through an output pin connected to the target monitored module. After the target monitored module receives the reset signal, the running program in the target monitored module can be forcibly interrupted according to the reset signal, so that the target monitored module is restored to the initial state to restart working.
Alternatively, after the reset device sends the reset signal to the target monitored module, the target monitored module may fail to be reset, in which case, when the reset device detects the input pin connected to the target monitored module for a preset time interval, the monitoring result still does not satisfy the preset condition. In order to avoid the situation that the target monitored module is in an abnormal operation state for a long time due to the fact that the target monitored module cannot be reset by sending the reset signal for multiple times, before the reset device sends the reset signal through the output pin connected with the target monitored module, the reset device can also perform hardware reset on the intelligent device through the following steps.
(1) And counting the resetting times of the target monitored module, wherein the resetting times refer to the times of continuous resetting of the target monitored module before the current time.
When the monitoring result does not satisfy the preset condition, the resetting device may count the number of times that the target monitored module is continuously reset before the current time before the resetting device sends the reset signal to the target monitored module. That is, the reset means may count the number of times the reset signal has been sent to the target monitored module by the current time.
Alternatively, when the monitoring result satisfies a preset condition, it indicates that the target monitored module has been successfully reset, in which case the resetting device may set the number of resets to 0.
(2) When the reset times of the target monitored module are smaller than or equal to a first preset value, the reset signal is continuously sent to the target monitored module through an output pin connected with the target monitored module, and the reset times of the target monitored module are updated.
After the reset means determines the number of resets, if the number of resets is less than or equal to the first preset value, the reset means may try to reset the target monitored module again by sending a reset signal. That is, the reset device may continue to send the reset signal to the target monitored module through the output pin connected to the target monitored module.
After the reset signal is transmitted, the reset means may add 1 to the reset number to complete the update of the reset number.
The first preset value is a preset value according to the specific condition of the target monitored module. When the first preset value is larger, the reset device has more chances to continue to reset with the reset signal when the reset fails. For example, when the first preset value is 2, then, after the first reset failure, the reset device will only have one chance to reset the target monitored module by the reset signal. It should be noted that, the larger the first preset value is, the better the first preset value is, and if the reset signal sent by the reset device cannot reset the target monitored module all the time, the larger the first preset value is, the longer the time for the intelligent device to resume normal operation will be.
(3) When the reset times of the target monitored module are larger than a first preset value, the signal control circuit and the display panel in the intelligent device are powered on again through a first power-on pin in the plurality of output pins, and the reset times of the target monitored module are cleared.
When the reset device determines that the reset times is greater than the first preset value, the reset device may determine that sending the reset signal does not enable the target monitored module to reset, and at this time, the reset device may re-power on the signal control circuit and the display panel in the intelligent device through a first power-on pin of the plurality of output pins to perform hardware reset on the intelligent device. When the reset device powers on the signal control circuit and the display panel in the intelligent device again, the reset times of the target monitored module can be cleared.
In this case, the resetting device can determine whether the target monitored module recovers normal operation or not by the means in (4) and (5), and re-powers the whole intelligent device when the target monitored module does not recover normal operation.
(4) And detecting the level state of an input pin connected with the standby module within a preset time length, and monitoring whether a pulse signal is received on the input pin connected with the target monitored module.
After the reset device powers on the signal control circuit and the display panel in the intelligent device again through the first power-on pin, the reset device may detect whether the signal control circuit and the display panel in the intelligent device have completely recovered power supply within a preset time period.
Generally, when the smart device is in a standby state, a level state on an input pin connected to the standby module is a low level, and when the smart device is in a normal operation state, the level state is a high level. Therefore, the reset device can judge whether the intelligent equipment is powered back or not by detecting the level state of the input pin connected with the standby module. In addition, the reset device can also continuously monitor whether the input pin connected with the target monitored module receives the pulse signal, so as to judge whether the target monitored module recovers normal work.
(5) When the level state of the input pin connected with the standby module is the standby level state, or a pulse signal is not received, the pulse signal is received, and the received pulse signal is different from a preset pulse signal, the whole intelligent equipment is electrified again through a second electrifying pin in the plurality of output pins, wherein the standby level state refers to the level state of the input pin connected with the standby module when the intelligent equipment is in standby.
When the reset device detects that the level state of the input pin connected with the standby module is the standby level state within the preset time length, it indicates that the signal control circuit and the display panel of the intelligent device do not recover power supply after the preset time length after being powered on again, and at the moment, the reset device can directly power on the whole intelligent device again through the second power-on pin.
If the reset device detects that the level state of the input pin connected with the standby module is a non-standby level state within the preset time length, the state indicates that the power supply of the signal control circuit and the display panel of the intelligent device is restored after the preset time length after the signal control circuit and the display panel are powered on again. At this time, if the reset device does not receive the pulse signal or the received pulse signal is not the preset pulse signal, the reset device may determine that the signal control circuit and the display panel of the intelligent device are powered on again and the monitored module cannot be reset, and at this time, the reset device may power on the whole intelligent device again through the second power-on pin.
It should be noted that, in the embodiment of the present invention, the resetting device may reset the monitored module only in the manner of step 301 and step 302, or may reset the monitored module through steps 301 and 302 in combination with the operations (1) - (3), and of course, the resetting device may also reset the monitored module through steps 301 and 302 in combination with the operations (1) - (5).
The following is code provided by an embodiment of the present invention to reset the smart device through steps 301 and 302 in conjunction with operations (1) - (3). Assuming that the chip a is a target monitored module and is an IC (Integrated Circuit) with a program running, when the chip a is in a normal operating state, 1 high pulse is sent to the reset device through the input pin 1 connected thereto every 5s, when the chip a is in an abnormal operating state, the high pulse cannot be sent to the reset device through the input pin 1, when the reset device does not receive the high pulse for the first time, the reset device may interrupt the program running in the chip a by sending a reset signal, and when the reset device does not detect the high pulse twice continuously, the signal control Circuit may be powered up again to implement hardware reset. The specific codes are as follows:
Figure BDA0001359785250000141
Figure BDA0001359785250000151
in the embodiment of the invention, the reset device can determine whether to send the reset signal to the target monitored module by monitoring whether the preset pulse signal is received on the input pin connected with the target monitored module, and the reset device has an independent clock, so that the reset device does not stop working even if the external crystal oscillator stops vibrating, and can still reset the target monitored module which sends the abnormal signal. In addition, when the reset signal can not reset the target monitored module, the reset device can also power on the intelligent device again through the first power-on pin and the second power-on pin so as to reset the intelligent device through hardware. In addition, as can be known from the description in the foregoing implementation environment, the reset device may be located inside the smart device as a module circuit, and therefore, when the smart device is powered on, the reset device may be powered on to operate.
The above embodiments describe a method for resetting a monitored module by a resetting device when the monitored module is a module which runs a program and can actively send a pulse signal. Next, a specific implementation manner of resetting the monitored module by the resetting device when the monitored module runs without a program and needs the resetting device to actively monitor a level state will be described.
Fig. 4 is a flowchart of a method for resetting a smart device, according to an embodiment of the present invention, where the method is used in a resetting apparatus, the smart device includes a plurality of monitored modules, the resetting apparatus includes a plurality of input pins and a plurality of output pins, and the resetting apparatus includes a crystal oscillation circuit, and the crystal oscillation circuit is used to provide an independent clock for the resetting apparatus. As shown in fig. 4, the method comprises the steps of:
step 401: and monitoring the level state of an input pin connected with the target monitored module at preset time intervals.
The intelligent device usually comprises a plurality of modules which run without programs, and the resetting device can monitor a plurality of modules. When the target monitored module is a module without program operation, the reset device can detect the level state on the input pin connected with the target monitored module at preset time intervals according to the clock provided by the crystal oscillator of the reset device, and then the reset device can judge whether the monitoring result meets the preset condition so as to determine whether to reset the target monitored module.
When the reset device detects that the level state of the input pin connected with the target monitored module is the same as the stored normal level state, it can be determined that the monitoring result meets the preset condition, that is, the target monitored module is currently in a normal working state. When the reset device detects that the level state of the input pin connected with the target monitored module is different from the stored level state, it can be determined that the monitoring result does not satisfy the preset condition, that is, the target monitored module is currently in an abnormal working state. The normal level state refers to a level state on an input pin connected with the target monitored module when the target monitored module operates normally.
Optionally, in order to avoid a situation that the level state of the input pin connected to the target monitored module is not abnormal when the target monitored module is in an abnormal operation state, the reset device may monitor whether a state detection instruction sent by the target monitored module is received while monitoring the level state, where the state detection instruction is used to indicate that the target monitored module is in a normal operation state; specifically, the reset device monitors whether a pulse signal is received on an input pin connected with the target monitored module, and if the pulse signal is received, the target monitored module is considered to be in a normal operation state, otherwise, the target monitored module is in an abnormal operation state.
In this case, when the reset device detects that the level state of the input pin connected to the target monitored module is the same as the stored normal level state and receives the state detection instruction sent by the target monitored module, the monitoring result may satisfy the preset condition, that is, the target monitored module is currently in the normal working state. If the reset device detects that the level state of the input pin connected with the target monitored module is different from the stored normal level state or does not receive the state detection instruction sent by the target monitored module, at this time, the reset device can determine that the monitoring result does not meet the preset condition, that is, the target monitored module is currently in an abnormal working state.
Step 402: and when the monitoring result does not meet the preset condition, sending a re-electrifying instruction to the target monitored module through an output pin connected with the target monitored module so as to reset the target monitored module.
When the reset device determines that the monitoring result does not meet the preset condition, because no program runs on the target monitored module, the reset device can directly send a power-on command to the monitored module through an output pin connected with the target monitored module, so as to perform hardware reset on the monitored module.
Optionally, in practical applications, the monitored target module may only temporarily become abnormal, and the monitoring result monitored by the resetting device may not meet the preset condition, in this case, the monitored target module may automatically resume normal operation without being powered on again, and at this time, if the resetting device directly powers on the monitored target module again, the time for the monitored target module to resume normal operation is prolonged. In order to avoid the foregoing situation, in the embodiment of the present invention, after the resetting device determines that the monitoring result does not satisfy the preset condition, the resetting device may count the number of times that the monitoring result does not satisfy the preset condition until the current time, and when the number of times is greater than a second preset value, the resetting device sends a power-on resuming instruction to the monitored module through an output pin connected to the target monitored module, so as to reset the target monitored module.
The following is implementation code of a method for resetting a target monitored module through steps 401 and 402 according to an embodiment of the present invention. When the chip B is in the normal operating state, it is assumed that the level state on the input pin 2 connected to the chip B is a high level, which is represented by x ═ 1, and when the chip B is in the abnormal operating state, it is assumed that the level state on the input pin 2 connected to the chip B is a low level, which is represented by x ═ 0. When the reset device detects that the level state on the input pin 2 connected with the chip B is low level three times continuously, the chip B is powered on again, and the specific codes are as follows:
Figure BDA0001359785250000171
Figure BDA0001359785250000181
in the embodiment of the present invention, the reset device may determine whether to power up the target monitored module again by monitoring a level state on an input pin connected to the target monitored module. Because the reset device has an independent clock, even if the external crystal oscillator stops vibrating, the reset device does not stop working, and the monitored module of the target sending the abnormity can still be reset. Moreover, by the reset method provided by the embodiment, for the target monitored module without program operation, the reset device can automatically reset the target monitored module through hardware reset, so that the problem that the module without program operation in the related art cannot be automatically reset because the module without program operation does not have a watchdog is solved. Meanwhile, the reset device can directly carry out automatic hardware reset on the target monitored module, so that a user does not need to manually carry out alternating current on-off, user operation is simplified, and user experience is provided.
It should be noted that, when the resetting device provided in the embodiment of the present invention is used to reset an intelligent device, the resetting device may monitor the two monitored modules simultaneously, that is, in practical applications, the resetting device may reset different monitored modules of different types through the two methods shown in fig. 3 and fig. 4.
Fig. 5A is a block diagram of an apparatus 500 for resetting a smart device, the smart device including a plurality of monitored modules, the apparatus being included in a resetting apparatus, the resetting apparatus including a plurality of input pins and a plurality of output pins, and the resetting apparatus including a crystal oscillation circuit for providing an independent clock for the resetting apparatus, as shown in fig. 5A, the apparatus including a monitoring module 501 and a resetting module 502:
the monitoring module 501 is configured to monitor an input pin connected to a target monitored module at preset time intervals;
the target monitored module corresponds to an input pin and an output pin in the resetting device;
the reset module 502 is configured to reset the target monitored module through an output pin connected to the target monitored module when the monitoring result does not satisfy the preset condition.
Optionally, the monitoring module 501 comprises:
the first monitoring submodule is used for monitoring whether a pulse signal is received on an input pin connected with the target monitored module;
the first determining submodule is used for determining that the monitoring result does not meet the preset condition when the pulse signal is not received or the pulse signal is received and the received pulse signal is different from the preset pulse signal;
and the second determining submodule is used for determining that the monitoring result meets the preset condition when the pulse signal is received and the received pulse signal is the same as the preset pulse signal.
Optionally, the reset module 502 includes:
and the first reset submodule is used for sending a reset signal to the target monitored module through an output pin connected with the target monitored module so as to reset the target monitored module.
Optionally, referring to fig. 5B, the apparatus 500 further comprises:
a counting module 503, configured to count the number of times that the target monitored module is reset, where the number of times that the target monitored module is continuously reset before the current time is counted;
the triggering module 504 is configured to trigger the first resetting sub-module to send a resetting signal to the target monitored module through an output pin connected to the target monitored module when the number of times of resetting of the target monitored module is less than or equal to a first preset value, and update the number of times of resetting of the target monitored module;
the first power-on module 505 is configured to, when the number of times of resetting of the target monitored module is greater than a first preset value, power on the signal control circuit and the display panel in the intelligent device again through a first power-on pin of the plurality of output pins, and clear the number of times of resetting of the target monitored module.
Optionally, referring to fig. 5C, the apparatus 500 further comprises:
a detecting module 506, configured to detect a level state of an input pin connected to the standby module within a preset time period, and monitor whether a pulse signal is received at the input pin connected to the target monitored module;
the second power-on module 507 is configured to power on the whole intelligent device again through a second power-on pin of the multiple output pins when the level state of the input pin connected to the standby module is a standby level state, or a pulse signal is not received, or a pulse signal is received and the received pulse signal is different from a preset pulse signal, where the standby level state is a level state on the input pin connected to the standby module when the intelligent device is in a standby state.
Optionally, the apparatus further comprises:
and the zero clearing module is used for clearing the reset times of the target monitored module when the monitoring result meets the preset condition.
Optionally, the monitoring module 501 comprises:
the second monitoring submodule is used for monitoring the level state on an input pin connected with the target monitored module;
the third determining submodule is used for determining that the monitoring result does not meet the preset condition when the level state of the input pin connected with the target monitored module is different from the stored normal level state, wherein the normal level state refers to the level state of the input pin connected with the target monitored module when the target monitored module operates normally;
and the fourth determining submodule is used for determining that the monitoring result meets the preset condition when the level state on the input pin connected with the target monitored module is the same as the stored normal level state.
Optionally, the monitoring module 501 comprises:
the third monitoring submodule is used for monitoring the level state of an input pin connected with the target monitored module and monitoring whether a state detection instruction sent by the target monitored module is received on the input pin connected with the target monitored module, wherein the state detection instruction is used for indicating that the target monitored module is in a normal operation state;
a fifth determining submodule, configured to determine that a monitoring result does not meet a preset condition when a level state on an input pin connected to the target monitored module is different from a stored normal level state, or a state detection instruction sent by the target monitored module is not received, where the normal level state is a level state on an input pin connected to the target monitored module when the target monitored module operates normally;
and the sixth determining submodule is used for determining that the monitoring result meets the preset condition when the level state on the input pin connected with the target monitored module is the same as the stored normal level state and the state detection instruction sent by the target monitored module is received.
Optionally, the reset module 502 includes:
and the second reset submodule is used for sending a power-on command to the target monitored module through an output pin connected with the target monitored module so as to reset the target monitored module.
In summary, in the embodiment of the present invention, the reset device may monitor the input pin connected to the target monitored module at preset time intervals, and reset the target monitored module through the output pin connected to the target monitored module when the monitoring result does not satisfy the preset condition. Because this resetting means includes crystal oscillator circuit, consequently, can provide independent clock for this resetting means by this crystal oscillator circuit, like this, even outside crystal oscillator stops the vibration, this resetting means also can not stop work, promptly, this resetting means still can be reset the target monitored module that takes place the anomaly, need not the user and carries out the interchange switch machine manually and can guarantee timely normal work that resumes of smart machine, has improved user experience.
Fig. 6 is a block diagram of an intelligent device 600 according to an embodiment of the present invention, where the intelligent device 600 includes a resetting apparatus, and the resetting apparatus may be configured to execute the method for resetting the intelligent device provided in the foregoing embodiments. Referring to fig. 6:
the smart device 600 may include RF (Radio Frequency) circuitry 610, a memory 620 including one or more computer-readable storage media, an input unit 630, a display unit 640, a reset device 650, audio circuitry 660, a WiFi (Wireless Fidelity) module 670, a processor 680 including one or more processing cores, and a power supply 690. Those skilled in the art will appreciate that the smart device architecture shown in FIG. 6 does not constitute a limitation of smart devices and may include more or fewer components than shown, or some components in combination, or a different arrangement of components. Wherein:
the RF circuit 610 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for receiving downlink information from a base station and then processing the received downlink information by the one or more processors 680; in addition, data relating to uplink is transmitted to the base station. In general, RF circuitry 610 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the RF circuitry 610 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), email, SMS (Short Messaging Service), and the like.
The memory 620 may be used to store software programs and modules, and the processor 680 may execute various functional applications and data processing by operating the software programs and modules stored in the memory 620. The memory 620 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the smart device 600, and the like. Further, the memory 620 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 620 may also include a memory controller to provide the processor 680 and the input unit 630 access to the memory 620.
The input unit 630 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 630 may include a touch sensitive surface 631 as well as other input devices 632. The touch sensitive surface 631, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on the touch sensitive surface 631 or near the touch sensitive surface 631 using any suitable object or attachment such as a finger, a stylus, etc.) on or near the touch sensitive surface 631 and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 631 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 680, and can receive and execute commands sent by the processor 680. In addition, the touch sensitive surface 631 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 630 may include other input devices 632 in addition to the touch-sensitive surface 631. In particular, other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 640 may be used to display information input by or provided to a user and various graphical user interfaces of the smart device 600, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 640 may include a Display panel 641, and optionally, the Display panel 641 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 631 may overlay the display panel 641, and when the touch-sensitive surface 631 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 680 to determine the type of the touch event, and then the processor 680 provides a corresponding visual output on the display panel 641 according to the type of the touch event. Although in FIG. 5, the touch-sensitive surface 631 and the display panel 641 are implemented as two separate components to implement input and output functions, in some embodiments, the touch-sensitive surface 631 and the display panel 641 may be integrated to implement input and output functions.
The smart device 600 may further include at least one reset device 650, wherein the reset device 650 may be a modular circuit with an independent clock provided by its own crystal oscillator and includes a plurality of input pins and output pins. Alternatively, the reset device may be a wide power management chip that is not susceptible to interference.
Audio circuit 660, speaker 661, microphone 662 can provide an audio interface between a user and smart device 600. The audio circuit 660 may transmit the electrical signal converted from the received audio data to the speaker 661, and convert the electrical signal into an audio signal through the speaker 661 for output; on the other hand, the microphone 662 converts the collected sound signals into electrical signals, which are received by the audio circuit 660 and converted into audio data, which are processed by the audio data output processor 680 and then passed through the RF circuit 610 for transmission to, for example, another smart device, or output to the memory 620 for further processing. The audio circuit 660 may also include an earbud jack to provide communication of peripheral headphones with the smart device 600.
WiFi belongs to short-distance wireless transmission technology, and the intelligent device 600 can help a user to send and receive e-mails, browse webpages, access streaming media and the like through the WiFi module 670, and provides wireless broadband Internet access for the user. Although fig. 5 shows the WiFi module 670, it is understood that it does not belong to the essential constitution of the smart device 600, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 680 is a control center of the smart device 600, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the smart device 600 and processes data by operating or executing software programs and/or modules stored in the memory 620 and calling data stored in the memory 620, thereby performing overall monitoring of the mobile phone. Optionally, processor 680 may include one or more processing cores; preferably, the processor 680 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 680.
The smart device 600 also includes a power supply 690 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 680 via a power management system to manage charging, discharging, and power consumption via the power management system. The power supply 690 may also include any component including one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the smart device 600 may further include a camera, a bluetooth module, and the like, which are not described in detail herein. In this embodiment, the display unit of the smart device is a touch screen display, and the smart device further includes a memory and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors. The one or more programs include instructions for performing the method of resetting a smart device provided in any of the embodiments described above.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 620 comprising instructions, executable by the reset means 650 of the smart device 600 to perform the above method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions that, when executed by a reset apparatus of a smart device, enable the reset apparatus to perform a method of resetting the smart device, the method comprising:
monitoring an input pin connected with a target monitored module at preset time intervals;
the reset device comprises a plurality of input pins and a plurality of output pins, the reset device comprises a crystal oscillation circuit, the crystal oscillation circuit is used for providing independent clocks for the reset device, the monitored modules are modules included in intelligent equipment, and the target monitored module corresponds to one input pin and one output pin in the reset device;
and when the monitoring result does not meet the preset condition, resetting the target monitored module through an output pin connected with the target monitored module.
Optionally, the monitoring an input pin connected to the target monitored module includes:
monitoring whether an input pin connected with the target monitored module receives a pulse signal or not;
when the pulse signal is not received or the pulse signal is received and the received pulse signal is different from a preset pulse signal, determining that the monitoring result does not meet the preset condition;
and when the pulse signal is received and the received pulse signal is the same as the preset pulse signal, determining that the monitoring result meets the preset condition.
Optionally, the resetting the target monitored module through an output pin connected to the target monitored module includes:
and sending a reset signal to the target monitored module through an output pin connected with the target monitored module so as to reset the monitored module.
Optionally, before sending the reset signal to the target monitored module through the output pin connected to the target monitored module, the method further includes:
counting the resetting times of the target monitored module, wherein the resetting times refer to the times of continuous resetting of the target monitored module before the current time;
when the reset times of the target monitored module are smaller than or equal to a first preset value, executing a step of sending a reset signal to the target monitored module through an output pin connected with the target monitored module, and updating the reset times of the target monitored module;
and when the reset times of the target monitored module are larger than the first preset value, re-electrifying the signal control circuit and the display panel in the intelligent equipment through a first electrifying pin in the plurality of output pins, and clearing the reset times of the target monitored module.
Optionally, after the signal control circuit and the display panel in the smart device are powered on again through the first power-on pin of the plurality of output pins, the method further includes:
detecting the level state of an input pin connected with a standby module within a preset time length, and monitoring whether a pulse signal is received on the input pin connected with the target monitored module, wherein the standby module is one monitored module in a plurality of monitored modules;
when the level state of an input pin connected with the standby module is a standby level state, or a pulse signal is not received, or a pulse signal is received and the received pulse signal is different from a preset pulse signal, the whole intelligent equipment is electrified again through a second electrifying pin in the plurality of output pins, and the standby level state refers to the level state of the input pin connected with the standby module when the intelligent equipment is in a standby state.
Optionally, after monitoring the input pin connected to the target monitored module, the method further includes:
and when the monitoring result meets the preset condition, resetting the reset times of the target monitored module.
Optionally, the monitoring an input pin connected to the target monitored module includes:
monitoring the level state of an input pin connected with the target monitored module;
when the level state of an input pin connected with the target monitored module is different from the stored normal level state, determining that the monitoring result does not meet the preset condition, wherein the normal level state refers to the level state of the input pin connected with the target monitored module when the target monitored module operates normally;
and when the level state of the input pin connected with the target monitored module is the same as the stored normal level state, determining that the monitoring result meets the preset condition.
Optionally, the monitoring an input pin connected to the target monitored module includes:
monitoring the level state of an input pin connected with the target monitored module, and monitoring whether a state detection instruction sent by the target monitored module is received on the input pin connected with the target monitored module, wherein the state detection instruction is used for indicating that the target monitored module is in a normal operation state;
when the level state of an input pin connected with the target monitored module is different from the stored normal level state, or the state detection instruction sent by the target monitored module is not received, determining that the monitoring result does not meet the preset condition, wherein the normal level state refers to the level state of the input pin connected with the target monitored module when the target monitored module operates normally;
and when the level state on the input pin connected with the target monitored module is the same as the stored normal level state and the state detection instruction sent by the target monitored module is received, determining that the monitoring result meets the preset condition.
Optionally, the resetting the target monitored module through an output pin connected to the target monitored module includes:
and sending a power-on command to the target monitored module through an output pin connected with the target monitored module so as to reset the target monitored module.
It should be noted that: in the reset device provided in the above embodiment, when resetting the intelligent device, only the division of the functional modules is illustrated, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the reset device provided in the above embodiment and the method embodiment for resetting the intelligent device belong to the same concept, and specific implementation processes thereof are described in the method embodiment and are not described herein again.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (8)

1. A method for resetting a smart device, the smart device comprising a plurality of monitored modules, and being applied to a resetting apparatus, the method comprising:
monitoring an input pin connected with a target monitored module at preset time intervals;
the reset device comprises a plurality of input pins and a plurality of output pins, the reset device comprises a crystal oscillation circuit, the crystal oscillation circuit is used for providing independent clocks for the reset device, and the target monitored module corresponds to one input pin and one output pin in the reset device;
when the monitoring result does not meet the preset condition, counting the resetting times of the target monitored module, wherein the resetting times refer to the times of continuous resetting of the target monitored module before the current time, or counting the times of the monitoring result not meeting the preset condition until the current time;
when the reset times of the target monitored module are smaller than or equal to a first preset value, or when the times that the monitoring result does not meet the preset condition are larger than a second preset value, resetting the target monitored module through an output pin connected with the target monitored module;
when no software program runs in the target monitored module, the monitoring the input pin connected with the target monitored module includes:
monitoring the level state of an input pin connected with the target monitored module, and monitoring whether a state detection instruction sent by the target monitored module is received on the input pin connected with the target monitored module, wherein the state detection instruction is used for indicating that the target monitored module is in a normal operation state;
when the level state of an input pin connected with the target monitored module is different from the stored normal level state, or the state detection instruction sent by the target monitored module is not received, determining that the monitoring result does not meet the preset condition, wherein the normal level state refers to the level state of the input pin connected with the target monitored module when the target monitored module operates normally;
and when the level state on the input pin connected with the target monitored module is the same as the stored normal level state and the state detection instruction sent by the target monitored module is received, determining that the monitoring result meets the preset condition.
2. The method of claim 1, wherein monitoring the input pin connected to the target monitored module when the target monitored module has a software program running therein comprises:
monitoring whether an input pin connected with the target monitored module receives a pulse signal or not;
when the pulse signal is not received or the pulse signal is received and the received pulse signal is different from a preset pulse signal, determining that the monitoring result does not meet the preset condition;
and when the pulse signal is received and the received pulse signal is the same as the preset pulse signal, determining that the monitoring result meets the preset condition.
3. The method of claim 2, wherein the resetting the target monitored module via an output pin connected to the target monitored module comprises:
and sending a reset signal to the target monitored module through an output pin connected with the target monitored module so as to reset the target monitored module.
4. The method of claim 3, wherein before sending a reset signal to the target monitored module via an output pin connected to the target monitored module, further comprising:
updating the reset times of the target monitored module;
and when the reset times of the target monitored module are larger than the first preset value, re-electrifying the signal control circuit and the display panel in the intelligent equipment through a first electrifying pin in the plurality of output pins, and clearing the reset times of the target monitored module.
5. The method of claim 4, wherein after re-powering up the signal control circuit and the display panel in the smart device via the first power-up pin of the plurality of output pins, further comprising:
detecting the level state of an input pin connected with a standby module within a preset time length, and monitoring whether a pulse signal is received on the input pin connected with the target monitored module, wherein the standby module is one monitored module in a plurality of monitored modules;
when the level state of an input pin connected with the standby module is a standby level state, or a pulse signal is not received, or a pulse signal is received and the received pulse signal is different from a preset pulse signal, the whole intelligent equipment is electrified again through a second electrifying pin in the plurality of output pins, and the standby level state refers to the level state of the input pin connected with the standby module when the intelligent equipment is in a standby state.
6. The method according to claim 4 or 5, wherein after monitoring the input pin connected to the target monitored module, the method further comprises:
and when the monitoring result meets the preset condition, resetting the reset times of the target monitored module.
7. The method of claim 1, wherein the resetting the target monitored module through an output pin connected to the target monitored module comprises:
and sending a power-on command to the target monitored module through an output pin connected with the target monitored module so as to reset the target monitored module.
8. An apparatus for resetting a smart device, the smart device including a plurality of monitored modules, the apparatus being included in a resetting apparatus, the apparatus comprising:
the monitoring module is used for monitoring the input pin connected with the target monitored module at preset time intervals;
the reset device comprises a plurality of input pins and a plurality of output pins, the reset device comprises a crystal oscillation circuit, the crystal oscillation circuit is used for providing independent clocks for the reset device, and the target monitored module corresponds to one input pin and one output pin in the reset device;
the reset module is used for resetting the target monitored module through an output pin connected with the target monitored module when the monitoring result does not meet the preset condition;
the counting module is used for counting the resetting times of the target monitored module, wherein the resetting times refer to the times that the target monitored module is continuously reset before the current time, or counting the times that the monitoring result does not meet the preset condition until the current time;
the trigger module is used for resetting the target monitored module through an output pin connected with the target monitored module when the resetting frequency of the target monitored module is less than or equal to a first preset value or when the frequency of the monitoring result not meeting the preset condition is greater than a second preset value;
when no software program runs in the target monitored module, the monitoring module comprises:
the third monitoring submodule is used for monitoring the level state of an input pin connected with the target monitored module and monitoring whether a state detection instruction sent by the target monitored module is received on the input pin connected with the target monitored module, wherein the state detection instruction is used for indicating that the target monitored module is in a normal operation state;
a fifth determining submodule, configured to determine that a monitoring result does not meet the preset condition when a level state on an input pin connected to the target monitored module is different from a stored normal level state, or the state detection instruction sent by the target monitored module is not received, where the normal level state is a level state on an input pin connected to the target monitored module when the target monitored module operates normally;
and the sixth determining submodule is used for determining that the monitoring result meets the preset condition when the level state on the input pin connected with the target monitored module is the same as the stored normal level state and the state detection instruction sent by the target monitored module is received.
CN201710612205.9A 2017-07-25 2017-07-25 Method and device for resetting intelligent equipment Active CN107506251B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710612205.9A CN107506251B (en) 2017-07-25 2017-07-25 Method and device for resetting intelligent equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710612205.9A CN107506251B (en) 2017-07-25 2017-07-25 Method and device for resetting intelligent equipment

Publications (2)

Publication Number Publication Date
CN107506251A CN107506251A (en) 2017-12-22
CN107506251B true CN107506251B (en) 2021-07-06

Family

ID=60689358

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710612205.9A Active CN107506251B (en) 2017-07-25 2017-07-25 Method and device for resetting intelligent equipment

Country Status (1)

Country Link
CN (1) CN107506251B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3941078A4 (en) 2019-03-13 2022-12-07 Hisense Visual Technology Co., Ltd. Reset device and display equipment
CN109982147B (en) * 2019-03-13 2020-09-29 海信视像科技股份有限公司 Reset device, reset processing method and display equipment
CN110262452A (en) * 2019-06-24 2019-09-20 五邑大学 A kind of Intelligent fish tank control method, device and storage medium to automatically reset
CN113868185B (en) * 2020-06-30 2024-07-23 Oppo广东移动通信有限公司 Multi-chip system, electronic equipment and data transmission method
CN111813207B (en) * 2020-07-27 2022-05-17 南方电网数字电网研究院有限公司 Chip resetting device and relay protection device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103105915A (en) * 2013-02-18 2013-05-15 广东欧珀移动通信有限公司 Intelligent terminal reset method and intelligent terminal reset system
CN104636221A (en) * 2013-11-12 2015-05-20 研祥智能科技股份有限公司 Method and device for processing computer system fault
CN104991625A (en) * 2015-06-23 2015-10-21 小米科技有限责任公司 Electronic device and reset method and apparatus thereof
CN105334936A (en) * 2015-11-26 2016-02-17 济南大学 Resetting system based on programmable logic chip

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3031293B2 (en) * 1997-06-02 2000-04-10 日本電気株式会社 Power-on reset circuit
TWI307038B (en) * 2005-12-27 2009-03-01 Ind Tech Res Inst Random number generator for radio frequency identifciation tag and seed number generator for generating a seed number for operation of the random number generator
CN203537356U (en) * 2013-09-12 2014-04-09 成都成电光信科技有限责任公司 Power on reset circuit
CN205121468U (en) * 2015-11-26 2016-03-30 济南大学 System resets based on programmable logic chip
CN106201755B (en) * 2016-07-11 2019-06-14 锐捷网络股份有限公司 The repositioning method and device of the network equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103105915A (en) * 2013-02-18 2013-05-15 广东欧珀移动通信有限公司 Intelligent terminal reset method and intelligent terminal reset system
CN104636221A (en) * 2013-11-12 2015-05-20 研祥智能科技股份有限公司 Method and device for processing computer system fault
CN104991625A (en) * 2015-06-23 2015-10-21 小米科技有限责任公司 Electronic device and reset method and apparatus thereof
CN105334936A (en) * 2015-11-26 2016-02-17 济南大学 Resetting system based on programmable logic chip

Also Published As

Publication number Publication date
CN107506251A (en) 2017-12-22

Similar Documents

Publication Publication Date Title
CN107506251B (en) Method and device for resetting intelligent equipment
US20200278737A1 (en) Terminal control method and apparatus, and terminal
CN106874077B (en) Process running method and device
CN109560905B (en) Activation control method, user terminal and network side equipment
CN103500002A (en) Method, device and terminal equipment for managing application program
CN108616897B (en) Configuration method, terminal and network equipment for Discontinuous Reception (DRX) parameters
CN107104763B (en) Method and device for setting timeout retransmission duration
CN104850274A (en) Method and device for realizing key function by infrared induction
CN104253870A (en) Method and device for controlling data access period
CN113064384A (en) Intelligent household appliance, cloud server and method for monitoring abnormity
US11947481B2 (en) Terminal and type C interface anti-corrosion method
CN111432387B (en) Many-to-many switching module, multi-machine wireless communication system and communication method thereof
CN107635277B (en) Power saving management method of terminal equipment of Internet of things and terminal equipment of Internet of things
US10813051B2 (en) Power management method and terminal device
WO2015070718A1 (en) Communication number notification method and communication device
CN110011752B (en) CQI reporting method, terminal equipment and network equipment
CN114661515B (en) Alarm information convergence method and device, electronic equipment and storage medium
CN110688339A (en) Data transmission method and device, mobile terminal and storage medium
US11138062B2 (en) Terminal device troubleshooting method and terminal device
CN110995324B (en) Bluetooth communication method, device, storage medium and terminal equipment
CN109828652B (en) Control method of power consumption mode and terminal equipment
CN110022189B (en) Data transmission method, device, terminal and storage medium
CN106506821B (en) The method and mobile terminal of reading data
CN112542867A (en) Mobile terminal power supply control method and device, terminal equipment and storage medium
CN105279175B (en) Data transmission method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB03 Change of inventor or designer information

Inventor after: Song Tianjing

Inventor before: Qiu Lianxing

CB03 Change of inventor or designer information
CB02 Change of applicant information

Address after: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Applicant after: Hisense Visual Technology Co., Ltd.

Address before: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Applicant before: QINGDAO HISENSE ELECTRONICS Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant