Equipment outage restarting method and circuit and Internet of Things equipment
The power-off restart method and circuit address the inability of existing watchdog systems to restart devices by detecting application abnormalities and controlling power supply to ensure normal operation and prevent freezing.
Patent Information
- Application Number
- CN202411418063.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-11
- Publication Date
- 2024-12-31
AI Technical Summary
Existing watchdog systems in Android and Linux operating systems cannot power off and restart the entire device when physical media outside the system needs to be powered off, leading to issues with device freezing and applications not automatically restarting.
A power-off restart method and circuit that detects the normal operation of a target application, maintains power supply when normal, cuts off power for a preset time if abnormal, and then reconnects power after the time period to restart the device.
Effectively restarts the device by powering off and on when the application is abnormal, ensuring normal operation by preventing frequent failures and system freezes.
Smart Images

Figure CN119226022A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of Internet of Things, and in particular to a method for powering off and restarting a device, a circuit and an Internet of Things device. Background Art
[0002] At present, the edge devices of the Internet of Things are developing in the direction of intelligence, and all hardware devices also use Android, Linux and other systems. Due to the complexity of the external environment, the device system is prone to freezing, and the App applications running on the system cannot be automatically started after exiting.
[0003] Currently, the operating systems Android and Linux have built-in watchdog systems, but they are only for the system software itself. If the physical media outside the system itself needs to be powered off for the device to operate normally, and the system's watchdog cannot power off the entire device and then power it on again, the existing watchdog system cannot solve this problem. Summary of the invention
[0004] Based on this, it is necessary to provide a device power-off and restart method, circuit and Internet of Things device that can power off and then power on the entire device to restart in response to the above technical problems.
[0005] In a first aspect, the present application provides a device power-off restart method, characterized in that it is applied to a power-off restart circuit, the power-off restart circuit is connected to a power supply system and a target device respectively, and a target application is running on the target device, and the method includes:
[0006] The power-off restart circuit detects whether the target application is running normally;
[0007] Keep the power line between the power supply system and the target device connected while the target application is running normally;
[0008] In the case where the target application runs abnormally, the power supply line between the power supply system and the target device is cut off for a first preset time period, and then the power supply line between the power supply system and the target device is controlled to be connected after the first preset time period.
[0009] In one embodiment, the power-off restart circuit includes a power-off restart control circuit and a logic circuit, the power-off restart control circuit is connected to the power supply system, the target device and the logic circuit respectively, and the logic circuit is also connected to the target device; the target application is used to send a first heartbeat signal to the logic circuit, and the logic circuit is used to send an application normal operation signal to the power-off restart control circuit when receiving the first heartbeat signal;
[0010] The power-off restart circuit detects whether the target application is operating normally, including:
[0011] When the power-off restart control circuit receives the normal application operation signal sent by the logic circuit, it determines that the target application is operating normally; when the power-off restart control circuit does not receive the normal application operation signal sent by the logic circuit, it determines that the target application is operating abnormally.
[0012] In one embodiment, the power-off restart circuit further includes a system startup phase control circuit, the startup phase control circuit is connected to a power supply line between the power supply system and the target device, and the startup phase control circuit is also connected to the logic circuit;
[0013] The method also includes:
[0014] After the startup phase control circuit detects that the power supply line between the power supply system and the target device is connected, it sends a second heartbeat signal to the logic circuit; after receiving the second heartbeat signal, the logic circuit sends a system startup signal to the power-off restart control circuit; after receiving the second heartbeat signal from the target application, the logic circuit sends a startup success signal to the system startup phase control circuit; after receiving the startup success signal, the system startup phase control circuit stops sending the second heartbeat signal.
[0015] In one embodiment, the method further comprises:
[0016] In the startup phase, the control circuit starts the timer after detecting that the power supply line between the power supply system and the target device is connected; in the system startup phase, if the control circuit has not received the startup success signal when the timer stops, it stops sending the second heartbeat signal.
[0017] In one embodiment, when the power-off restart control circuit does not receive the normal operation signal of the application sent by the logic circuit, determining that the target application is operating abnormally includes:
[0018] When the power-off restart control circuit does not receive the normal application operation signal sent by the logic circuit for a second preset period of time, it is determined that the target application program is operating abnormally.
[0019] In one embodiment, the first heartbeat signal and the second heartbeat signal are square wave signals; the application normal operation signal and the startup success signal are high level signals or low level signals.
[0020] On the second aspect, the present application also provides a power-off and restart circuit, characterized in that the power-off and restart circuit is respectively connected to the power supply system and the target device, a target application is running on the target device, and the power-off and restart circuit is used to detect whether the target application is running normally; when the target application is running normally, the power supply line between the power supply system and the target device is kept conductive; when the target application is running abnormally, the power supply line between the power supply system and the target device is isolated for a first preset time period, and the power supply line between the power supply system and the target device is controlled to be conductive after the first preset time period.
[0021] In one of the embodiments, the power-off restart circuit includes a power-off restart control circuit and a logic circuit, the power-off restart control circuit is respectively connected to the power supply system, the target device and the logic circuit, and the logic circuit is also connected to the target device; the target application is used to send a first heartbeat signal to the logic circuit, and the logic circuit is used to send an application normal operation signal to the power-off restart control circuit when the first heartbeat signal is received; the power-off restart control circuit is used to: determine that the target application is operating normally when the application normal operation signal sent by the logic circuit is received; and determine that the target application is operating abnormally when the application normal operation signal sent by the logic circuit is not received.
[0022] In one of the embodiments, the power-off restart circuit also includes a system startup phase control circuit, which is connected to the power supply line between the power supply system and the target device, and is also connected to the logic circuit; the startup phase control circuit is used to send a second heartbeat signal to the logic circuit after detecting that the power supply line between the power supply system and the target device is connected; the logic circuit is used to send a system startup signal to the power-off restart control circuit after receiving the second heartbeat signal; the logic circuit is used to send a startup success signal to the system startup phase control circuit after receiving the second heartbeat signal from the target application; the system startup phase control circuit is used to stop sending the second heartbeat signal after receiving the startup success signal.
[0023] On the third aspect, the present application also provides an Internet of Things device, which includes a power-off and restart circuit, which is respectively connected to a power supply system and a target device, a target application is running on the target device, and the power-off and restart circuit is used to detect whether the target application is running normally; when the target application is running normally, the power supply line between the power supply system and the target device is kept conductive; when the target application is running abnormally, the power supply line between the power supply system and the target device is isolated for a first preset time period, and the power supply line between the power supply system and the target device is controlled to be conductive after the first preset time period.
[0024] The above-mentioned device power-off restart method, circuit and IoT device firstly detect whether the target application is running normally by the power-off restart circuit; when the target application is running normally, keep the power supply line between the power supply system and the target device connected; when the target application is running abnormally, cut off the power supply line between the power supply system and the target device for a first preset time, and then control the power supply line between the power supply system and the target device to be connected after the first preset time. This application can solve the problem of physical media outside the system itself by adopting the operation of restarting after power off. When there is a problem with the physical media of the system, the device can be restarted by powering off the device to make the device work normally. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0026] FIG1 is a diagram showing an application environment of a method for electrically restarting a device in one embodiment;
[0027] Figure 2 A schematic diagram of a flow chart of a method for powering off and restarting a device in one embodiment;
[0028] Figure 3 A flowchart of a device power restart control method in one embodiment;
[0029] Figure 4 A schematic diagram of a power-off restart circuit for a device in one embodiment;
[0030] FIG. 5 is a diagram showing the internal structure of an IoT device in one embodiment. DETAILED DESCRIPTION
[0031] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0032] The device power-off restart method provided in the embodiment of the present application can be applied to the application environment as shown in FIG. 1. Among them, the data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. The power-off restart circuit 106 is connected to the power supply system 108 and the target device 102 respectively, and the target device 102 runs a target application. The power-off restart circuit detects whether the target application is running normally; when the target application is running normally, the power supply line between the power supply system and the target device is kept connected; when the target application is running abnormally, the power supply line between the power supply system and the target device is cut off for a first preset time, and the power supply line between the power supply system and the target device is controlled to be connected after the first preset time. Among them, the target device 102 is an Internet of Things device. The server 104 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.
[0033] In an exemplary embodiment, Figure 2 As shown, a method for restarting a device after power failure is provided, and the method is described by taking the method applied to the power failure restart circuit 106 in FIG. 1 as an example, including the following steps 202 to 206. Among them:
[0034] Step 202: Cut off the power and restart the circuit to detect whether the target application is running normally.
[0035] Among them, the target application is the application in the IoT device.
[0036] Exemplarily, the power-off restart circuit detects whether the target application is running normally according to whether the first heartbeat signal from the application can be received.
[0037] Step 204: When the target application is running normally, keep the power supply line between the power supply system and the target device connected.
[0038] Among them, the power supply system is used to supply power to the power-off restart circuit and application programs.
[0039] Exemplarily, when the power-off restart circuit can receive a signal from the application, it indicates that the target application is running normally, and the power supply line between the power supply system and the target device is kept connected.
[0040] Step 206, when the target application runs abnormally, the power supply line between the power supply system and the target device is cut off for a first preset time period, and the power supply line between the power supply system and the target device is controlled to be turned on after the first preset time period.
[0041] Optionally, the first preset duration may be 10 seconds.
[0042] For example, when the power-off and restart circuit cannot receive a signal from the application, it indicates that the target application is running abnormally. The power-off and restart circuit disconnects the power supply line between the power supply system and the target device for 10 seconds, and then controls the power supply line between the power supply system and the target device to be turned on after 10 seconds.
[0043] The above-mentioned device power-off restart method, circuit and IoT device firstly detect whether the target application is running normally by the power-off restart circuit; when the target application is running normally, keep the power supply line between the power supply system and the target device connected; when the target application is running abnormally, cut off the power supply line between the power supply system and the target device for a first preset time, and then control the power supply line between the power supply system and the target device to be connected after the first preset time. This application can solve the problem of physical media outside the system itself by adopting the operation of restarting after power off. When there is a problem with the physical media of the system, the device can be restarted by powering off the device to make the device work normally.
[0044] In an exemplary embodiment, the power-off restart circuit includes a power-off restart control circuit and a logic circuit, the power-off restart control circuit is respectively connected to the power supply system, the target device and the logic circuit, and the logic circuit is also connected to the target device; the target application is used to send a first heartbeat signal to the logic circuit, and the logic circuit is used to send an application normal operation signal to the power-off restart control circuit when the first heartbeat signal is received; the power-off restart circuit detects whether the target application is operating normally, including: when the power-off restart control circuit receives the application normal operation signal sent by the logic circuit, determining that the target application is operating normally; when the power-off restart control circuit does not receive the application normal operation signal sent by the logic circuit, determining that the target application is operating abnormally.
[0045] The first heartbeat signal is a 1 Hz square wave.
[0046] Exemplarily, the power-off and restart circuit includes a power-off and restart control circuit and a logic circuit, the power-off and restart control circuit is respectively connected to the power supply system, the target device and the logic circuit, and the logic circuit is also connected to the target device; the target application is used to send a first heartbeat signal of a 1Hz square wave to the logic circuit, and the logic circuit is used to send an application normal operation signal to the power-off and restart control circuit when receiving the first heartbeat signal; if the power-off and restart control circuit receives the application normal operation signal sent by the logic circuit, it is determined that the target application is operating normally; if the power-off and restart control circuit does not receive the application normal operation signal sent by the logic circuit, it is determined that the target application is operating abnormally.
[0047] In this embodiment, the normal operation signal can be used to accurately determine whether the operation status of the application program is normal or abnormal.
[0048] In an exemplary embodiment, the power-off restart circuit also includes a system startup phase control circuit, which is connected to the power supply line between the power supply system and the target device, and is also connected to the logic circuit; the method also includes: after the startup phase control circuit detects that the power supply line between the power supply system and the target device is connected, the second heartbeat signal is sent to the logic circuit; after receiving the second heartbeat signal, the logic circuit sends a system startup signal to the power-off restart control circuit; after receiving the first heartbeat signal from the target application, the logic circuit sends a startup success signal to the system startup phase control circuit; after receiving the startup success signal, the system startup phase control circuit stops sending the second heartbeat signal.
[0049] The second heartbeat signal is a 1 Hz square wave.
[0050] Exemplarily, the power-off restart circuit also includes a system startup phase control circuit, which is connected to the power supply line between the power supply system and the target device, and is also connected to the logic circuit; after the startup phase control circuit detects the current, it confirms that the power supply line between the power supply system and the target device is turned on, and sends a second heartbeat signal of a 1Hz square wave to the logic circuit; after receiving the second heartbeat signal, the logic circuit sends a system startup signal to the power-off restart control circuit; after receiving the first heartbeat signal from the target application, the logic circuit sends a startup success signal to the system startup phase control circuit; after receiving the startup success signal, the system startup phase control circuit stops sending the second heartbeat signal.
[0051] In this embodiment, the startup control circuit is used to send the second heartbeat signal to maintain the circuit connection, so that the device has enough time to restart, thereby preventing the application from failing to send the first heartbeat signal during system startup and causing frequent power outages and restarts.
[0052] In an exemplary embodiment, the method further comprises:
[0053] In the startup phase, the control circuit starts the timer after detecting that the power supply line between the power supply system and the target device is connected; in the system startup phase, if the control circuit has not received the startup success signal when the timer stops, it stops sending the second heartbeat signal.
[0054] Optionally, a timer can be set for 60 seconds.
[0055] Exemplarily, after the startup phase control circuit detects that the power supply line between the power supply system and the target device is connected, the timer is started and timing begins. If the system startup phase still does not receive a startup success signal after 60 seconds, the second heartbeat signal is stopped.
[0056] In this embodiment, when the device still does not restart after exceeding the preset time, restarting the device again can effectively solve the problem of device startup failure.
[0057] In an exemplary embodiment, when the power-off restart control circuit does not receive the normal operation signal of the application sent by the logic circuit, determining that the target application program is operating abnormally includes:
[0058] When the power-off restart control circuit does not receive the normal application operation signal sent by the logic circuit for a second preset period of time, it is determined that the target application program is operating abnormally.
[0059] Exemplarily, when the power-off restart control circuit does not receive the normal application operation signal sent by the logic circuit for a second preset period of time, it will enter the timeout process and determine that the target application program is operating abnormally.
[0060] In this embodiment, the target application is confirmed to be operating abnormally only when the normal operating signal of the application cannot be received for more than a certain period of time, to prevent the device from restarting due to the temporary inability of the application to send a normal operating signal due to a freeze.
[0061] In an exemplary embodiment, the first heartbeat signal and the second heartbeat signal are square wave signals; the application normal operation signal and the startup success signal are high level signals or low level signals.
[0062] Among them, the square wave signal refers to the signal in the circuit system that can be transmitted from the source end to the receiving end without distortion within the required time.
[0063] Exemplarily, the first heartbeat signal and the second heartbeat signal are square wave signals that can be transmitted from the source end to the receiving end without distortion within the required time; the application normal operation signal and the startup success signal are high-level signals or low-level signals.
[0064] In this embodiment, different signals are used at different positions of the circuit, which can effectively prevent circuit failures caused by problems with the signal itself.
[0065] In an exemplary embodiment, Figure 3As shown, the power-off restart circuit is connected to the power supply system and the target device respectively, and the target application is running on the target device; the power-off restart circuit detects whether the target application is running normally according to whether the first heartbeat signal from the application can be detected. The power-off restart circuit includes a power-off restart control circuit and a logic circuit, and the power-off restart control circuit is connected to the power supply system, the target device and the logic circuit respectively, and the logic circuit is also connected to the target device; the target application is used to send a first heartbeat signal of a 1Hz square wave to the logic circuit, and the logic circuit is used to send an application normal operation signal to the power-off restart control circuit when receiving the first heartbeat signal; if the power-off restart control circuit receives the application normal operation signal sent by the logic circuit, it is determined that the target application is running normally; if the power-off restart control circuit does not receive the application normal operation signal sent by the logic circuit for a second preset time, it will enter the timeout process, determine that the target application is running abnormally, and disconnect the power supply line between the power supply system and the target device for 10 seconds by disconnecting the circuit switch, and then control the power supply line between the power supply system and the target device to be turned on after 10 seconds. The power-off restart circuit also includes a system startup phase control circuit, which is connected to the power supply line between the power supply system and the target device, and is also connected to the logic circuit; after the startup phase control circuit detects the current, it confirms that the power supply line between the power supply system and the target device is connected, and sends a second heartbeat signal of a 1Hz square wave to the logic circuit; after receiving the second heartbeat signal, the logic circuit sends a system startup signal to the power-off restart control circuit; after receiving the first heartbeat signal from the target application, the logic circuit sends a startup success signal to the system startup phase control circuit; after receiving the startup success signal, the system startup phase control circuit stops sending the second heartbeat signal. After the startup phase control circuit detects that the power supply line between the power supply system and the target device is connected, the timer is started and the timing begins. When the system startup phase still does not receive the startup success signal after more than 60 seconds, the second heartbeat signal is stopped. The first heartbeat signal and the second heartbeat signal are square wave signals that can be transmitted from the source end to the receiving end without distortion within the required time; the application normal operation signal and the startup success signal are high-level signals or low-level signals.
[0066] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0067] In an exemplary embodiment, a power-off and restart circuit is provided, which is respectively connected to a power supply system and a target device, a target application is running on the target device, and the power-off and restart circuit is used to detect whether the target application is running normally; when the target application is running normally, the power supply line between the power supply system and the target device is kept conductive; when the target application is running abnormally, the power supply line between the power supply system and the target device is isolated for a first preset time period, and the power supply line between the power supply system and the target device is controlled to be conductive again after the first preset time period.
[0068] In one embodiment, the power-off restart circuit includes a power-off restart control circuit and a logic circuit, wherein the power-off restart control circuit is respectively connected to the power supply system, the target device and the logic circuit, and the logic circuit is also connected to the target device; the target application is used to send a first heartbeat signal to the logic circuit, and the logic circuit is used to send an application normal operation signal to the power-off restart control circuit when the first heartbeat signal is received; the power-off restart control circuit is used to: determine that the target application is operating normally when the application normal operation signal sent by the logic circuit is received; and determine that the target application is operating abnormally when the application normal operation signal sent by the logic circuit is not received.
[0069] In one embodiment, the power-off restart circuit also includes a system startup phase control circuit, which is connected to the power supply line between the power supply system and the target device, and is also connected to the logic circuit; the startup phase control circuit is used to send a second heartbeat signal to the logic circuit after detecting that the power supply line between the power supply system and the target device is connected; the logic circuit is used to send a system startup signal to the power-off restart control circuit after receiving the second heartbeat signal; the logic circuit is used to send a startup success signal to the system startup phase control circuit after receiving the second heartbeat signal from the target application; the system startup phase control circuit is used to stop sending the second heartbeat signal after receiving the startup success signal.
[0070] In an exemplary embodiment, an Internet of Things device is provided, which may be a server, and its internal structure diagram may be shown in FIG5. The Internet of Things includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the Internet of Things is used to provide computing and control capabilities. The memory of the Internet of Things includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the Internet of Things is used to exchange information between the processor and an external device. The communication interface of the Internet of Things is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for restarting a device after power failure is implemented.
[0071] Those skilled in the art will understand that the structure shown in FIG. 5 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the Internet of Things to which the solution of the present application is applied. The specific Internet of Things may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0072] In an exemplary embodiment, an Internet of Things device is provided, including a power-off and restart circuit; the power-off and restart circuit is respectively connected to a power supply system and a target device, a target application is running on the target device, and the power-off and restart circuit is used to detect whether the target application is running normally; when the target application is running normally, the power supply line between the power supply system and the target device is kept conductive; when the target application is running abnormally, the power supply line between the power supply system and the target device is isolated for a first preset time period, and the power supply line between the power supply system and the target device is controlled to be conductive again after the first preset time period.
[0073] In one embodiment, the power-off restart circuit includes a power-off restart control circuit and a logic circuit, wherein the power-off restart control circuit is respectively connected to the power supply system, the target device and the logic circuit, and the logic circuit is also connected to the target device; the target application is used to send a first heartbeat signal to the logic circuit, and the logic circuit is used to send an application normal operation signal to the power-off restart control circuit when the first heartbeat signal is received; the power-off restart control circuit is used to: determine that the target application is operating normally when the application normal operation signal sent by the logic circuit is received; and determine that the target application is operating abnormally when the application normal operation signal sent by the logic circuit is not received.
[0074] In one embodiment, the power-off restart circuit also includes a system startup phase control circuit, which is connected to the power supply line between the power supply system and the target device, and is also connected to the logic circuit; the startup phase control circuit is used to send a second heartbeat signal to the logic circuit after detecting that the power supply line between the power supply system and the target device is connected; the logic circuit is used to send a system startup signal to the power-off restart control circuit after receiving the second heartbeat signal; the logic circuit is used to send a startup success signal to the system startup phase control circuit after receiving the second heartbeat signal from the target application; the system startup phase control circuit is used to stop sending the second heartbeat signal after receiving the startup success signal.
[0075] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0076] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for restarting a device after power failure, characterized in that: Applied to a power-off restart circuit, the power-off restart circuit is connected to a power supply system and a target device respectively, and a target application is running on the target device. The method includes: The power-off restart circuit detects whether the target application is running normally; When the target application is operating normally, maintaining the power supply line between the power supply system and the target device connected; In the case where the target application runs abnormally, the power supply line between the power supply system and the target device is cut off for a first preset time period, and then the power supply line between the power supply system and the target device is controlled to be turned on after the first preset time period.
2. The method according to claim 1, characterized in that The power-off restart circuit comprises a power-off restart control circuit and a logic circuit, wherein the power-off restart control circuit is respectively connected to the power supply system, the target device and the logic circuit, and the logic circuit is also connected to the target device; the target application is used to send a first heartbeat signal to the logic circuit, and the logic circuit is used to send an application normal operation signal to the power-off restart control circuit when receiving the first heartbeat signal; The power-off restart circuit detects whether the target application is running normally, including: When the power-off restart control circuit receives the normal application running signal sent by the logic circuit, it determines that the target application is running normally; When the power-off restart control circuit does not receive the normal application operation signal sent by the logic circuit, it is determined that the target application program is operating abnormally.
3. The method according to claim 2, characterized in that The power-off restart circuit further includes a system startup phase control circuit, the startup phase control circuit is connected to a power supply line between the power supply system and the target device, and the startup phase control circuit is also connected to the logic circuit; The method further comprises: After the startup phase control circuit detects that the power supply line between the power supply system and the target device is connected, the control circuit sends a second heartbeat signal to the logic circuit; After receiving the second heartbeat signal, the logic circuit sends a system startup signal to the power-off restart control circuit; After receiving the first heartbeat signal from the target application, the logic circuit sends a startup success signal to the system startup phase control circuit; After receiving the startup success signal, the control circuit in the system startup phase stops sending the second heartbeat signal.
4. The method according to claim 3, characterized in that The method further comprises: After the startup phase control circuit detects that the power supply line between the power supply system and the target device is connected, the timer is started; The system startup phase control circuit stops sending the second heartbeat signal if the startup success signal has not been received when the timer stops.
5. The method according to claim 2, characterized in that: When the power-off restart control circuit does not receive the normal application operation signal sent by the logic circuit, determining that the target application program is operating abnormally includes: When the power-off restart control circuit fails to receive the normal operation signal of the application sent by the logic circuit for a second preset time period, it is determined that the target application program is operating abnormally.
6. The method according to claim 3, characterized in that The first heartbeat signal and the second heartbeat signal are square wave signals; the normal application operation signal and the successful startup signal are high level signals or low level signals.
7. A power-off restart circuit, characterized in that: The power-off restart circuit is connected to the power supply system and the target device respectively. A target application is running on the target device. The power-off restart circuit is used to detect whether the target application is running normally; when the target application is running normally, the power supply line between the power supply system and the target device is kept connected; In the case that the target application runs abnormally, the power supply line between the power supply system and the target device is cut off for a first preset time period, and then the power supply line between the power supply system and the target device is controlled to be turned on after the first preset time period.
8. The power-off restart circuit according to claim 7, characterized in that: The power-off restart circuit comprises a power-off restart control circuit and a logic circuit, wherein the power-off restart control circuit is respectively connected to the power supply system, the target device and the logic circuit, and the logic circuit is also connected to the target device; the target application is used to send a first heartbeat signal to the logic circuit, and the logic circuit is used to send an application normal operation signal to the power-off restart control circuit when receiving the first heartbeat signal; the power-off restart control circuit is used to: determine that the target application is operating normally when receiving the application normal operation signal sent by the logic circuit; In the case where the normal application operation signal sent by the logic circuit is not received, it is determined that the target application program is operating abnormally.
9. The power-off restart circuit according to claim 7, characterized in that: The power-off and restart circuit also includes a system startup phase control circuit, which is connected to the power supply line between the power supply system and the target device, and is also connected to the logic circuit; the startup phase control circuit is used to send a second heartbeat signal to the logic circuit after detecting that the power supply line between the power supply system and the target device is connected; the logic circuit is used to send a system startup signal to the power-off and restart control circuit after receiving the second heartbeat signal; the logic circuit is used to send a startup success signal to the system startup phase control circuit after receiving the second heartbeat signal from the target application; the system startup phase control circuit is used to stop sending the second heartbeat signal after receiving the startup success signal.
10. An Internet of Things device, characterized in that: The Internet of Things device includes the power-off restart circuit described in any one of claims 7-9.
