Charge-triggered reset restart circuit and electronic device

The reset and restart module is triggered through the charging interface output signal, and the microprocessor reset of small electronic devices is controlled, solving the problem of equipment failure caused by the built-in battery without reset buttons, and achieving cost-free improvement of user experience.

CN117435390BActive Publication Date: 2024-12-17WUXI WINSEMI MICROELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310211839.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-03
Publication Date
2024-12-17
Estimated Expiration
2043-03-03

AI Technical Summary

Technical Problem

Small electronic devices such as Bluetooth headphones and electronic cigarettes cannot be used normally due to built-in batteries and no reset buttons, resulting in poor user experience.

Method used

Design a charging triggered reset and restart circuit, triggering the reset and restart module through the signal output from the charging interface, and controlling the rechargeable battery to power the microprocessor to realize program reset and troubleshooting.

Benefits of technology

There is no need for users to disassemble and assemble the battery or add peripheral devices. The original charging interface is used to realize the reset and restart of the microprocessor, reduce costs, improve user experience and product competitiveness, and solve the problem of the device being unable to be used normally after the device crashes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117435390B_ABST
    Figure CN117435390B_ABST
Patent Text Reader

Abstract

The present application provides a reset and restart circuit and an electronic device triggered by charging, wherein the reset and restart circuit includes a reset and restart module, a first switch unit and a charging interface, the reset and restart module is connected to the control end of the first switch unit, the first switch unit is used to control the rechargeable battery to supply power to the microprocessor, the reset input end of the reset and restart module is connected to the charging interface including the interface power supply end or the interface ground end, when the first signal received at the reset input end of the reset and restart module meets the preset condition, the first switch unit is controlled to be disconnected so that the rechargeable battery stops supplying power to the microprocessor, and after the first switch unit is disconnected for a preset target time, the first switch unit is controlled to be turned on to restore the rechargeable battery to supply power to the microprocessor. This solution uses the charging interface to achieve the reset and restart of the microprocessor, solves the problem that the device cannot be used normally, and improves the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of reset and restart technology, and in particular to a charge-triggered reset and restart circuit and an electronic device. Background Art

[0002] With the rapid development of electronic technology, electronic devices have become an indispensable part of daily life. However, electronic devices may freeze during use. One of the reasons for freezing is that the microcontroller unit (MCU) program in the electronic device runs abnormally, causing the device to fail to work properly. At this time, the electronic device needs to be restarted or reset. When the electronic device is restarted or reset, the MCU will reload the program to eliminate the fault and restart, thereby restoring the normal use of the electronic device.

[0003] In the prior art, the reset and restart methods of electronic devices are mainly to restart by plugging and unplugging the battery or operating the reset button. However, for small electronic devices, such as Bluetooth headsets and electronic cigarettes, in order to reduce the size and production cost of the device, the battery of the electronic device can be built-in and no reset button is designed. In this case, the user cannot reset and restart the electronic device by manually plugging and unplugging the battery and operating the reset button, resulting in the device being unable to be used normally when it fails, and the user experience is poor. Summary of the invention

[0004] The present application provides a charging-triggered reset and restart circuit and an electronic device to solve the problem that the device cannot be used normally due to failure.

[0005] In a first aspect, the present application provides a charging-triggered reset and restart circuit, comprising a reset and restart module, a first switch unit, and a charging interface;

[0006] The reset and restart module is connected to the control end of the first switch unit, the first switch unit is used to control the rechargeable battery to supply power to the microprocessor, the reset and restart module includes a reset input end, the charging interface includes an interface power supply end and an interface ground end, and the reset input end is connected to the interface power supply end or the interface ground end;

[0007] When the first signal received at the reset input terminal meets a preset condition, the reset and restart module controls the first switch unit to be disconnected so that the rechargeable battery stops supplying power to the microprocessor. After the first switch unit is disconnected for a target preset time, the reset and restart module controls the first switch unit to be turned on to restore the rechargeable battery to supply power to the microprocessor. The first signal includes a first edge signal or a first level signal.

[0008] In a possible design of the first aspect, the reset input terminal is connected to the interface power supply terminal, the reset and restart module includes a first resistor and a battery ground terminal, and the reset input terminal is connected to the battery ground terminal through the first resistor;

[0009] When the charging interface is connected to a power source through a charger, the interface power supply end outputs a first signal, and when the first signal received at the reset input end meets a preset condition, the reset restart module controls the first switch unit to disconnect so that the rechargeable battery stops supplying power to the microprocessor.

[0010] In another possible design of the first aspect, the reset input terminal is connected to the interface ground terminal, the reset and restart module includes a second resistor and a first power supply terminal, and the reset input terminal is connected to the first power supply terminal through the second resistor;

[0011] When the charging interface is connected to a power source through a charger, the interface ground terminal outputs a second signal, and when the second signal received at the reset input terminal meets a preset condition, the reset restart module controls the first switch unit to disconnect so that the rechargeable battery stops supplying power to the microprocessor.

[0012] In another possible design of the first aspect, the reset and restart module includes a first timing unit and a control unit; a first end of the first timing unit is connected to the reset input end, and a second end of the first timing unit is connected to the control unit;

[0013] The first timing unit is in a non-timing state and is triggered to start timing when the reset input terminal receives a first edge signal. The first timing unit is used to time the duration of the first level signal received by the reset input terminal, and output a first timing arrival signal to the control unit when the timing duration of the first timing unit reaches a first preset duration, so that the control unit disconnects the first switch unit, wherein the first edge signal is an edge signal when the second level signal changes to the first level signal.

[0014] Optionally, the first preset duration is less than or equal to 1 hour; and / or,

[0015] The target preset duration is in the range of less than or equal to 300 ms.

[0016] In another possible design of the first aspect, the reset and restart module includes a second timing unit, a counting unit, and a control unit, the first end of the counting unit and the first end of the second timing unit are both connected to the reset input end, and the control unit is respectively connected to the second end of the second timing unit and the second end of the counting unit;

[0017] The second timing unit is in a non-timing state and is triggered to start timing when the reset input terminal receives a first edge signal or a first level signal, and the counting unit is used to perform cumulative counting when receiving the first edge signal or the first level signal, and the first edge signal is an edge signal when the second level signal changes to the first level signal;

[0018] When the timing duration of the second timing unit reaches the second preset duration, the second timing arrival signal is output to the control unit, and the control unit obtains the counting times of the counting unit, and when the counting times is greater than or equal to the preset times, the control unit controls the first switch unit to disconnect, wherein the preset times is greater than or equal to 2.

[0019] Optionally, the reset and restart module further includes a third timing unit; the third timing unit is connected to the reset input terminal and the counting unit respectively;

[0020] The third timing unit is triggered to start timing when the reset input terminal receives the first edge signal or the first level signal, and is triggered to stop timing when the reset input terminal receives the second edge signal. The third timing unit outputs a third timing arrival signal to the counting unit when its timing duration reaches a third preset duration. When the third timing unit stops timing, if the timing duration is less than the third preset duration, the timing is reset, and the second edge signal is an edge signal that changes from a first level signal to a second level signal.

[0021] The counting unit performs cumulative counting upon receiving the third timing arrival signal.

[0022] Optionally, the reset and restart module further includes a fourth timing unit, and the fourth timing unit is respectively connected to the reset input terminal, the third timing unit and the counting unit;

[0023] The counting unit locks the count after accumulating the count;

[0024] The fourth timing unit receives the third timing arrival signal and is triggered to start timing when the reset input terminal receives a second edge signal or a second level signal, and is triggered to stop timing when the reset input terminal receives a first edge signal or a first level signal. The fourth timing unit outputs an unlocking signal to the counting unit when the timing duration reaches a fourth preset duration to release the counting lock of the counting unit. When the fourth timing unit stops timing, if its timing duration is less than the fourth preset duration, the timing is reset.

[0025] Optionally, the second preset time length is in a range of greater than or equal to 1 second and less than or equal to 5 seconds; and / or,

[0026] The range of the preset number of times is greater than or equal to 2 times and less than or equal to 6 times; and / or,

[0027] The target preset duration is less than or equal to 300 ms; and / or,

[0028] The third preset duration is less than or equal to 1s; and / or,

[0029] The fourth preset time length is in the range of less than or equal to 1s.

[0030] As an example, the reset and restart module includes a battery protection module;

[0031] The battery protection module comprises a first power supply terminal, a battery ground terminal and the reset input terminal; the first power supply terminal and the battery ground terminal are respectively used to be connected to the positive electrode and the negative electrode of the rechargeable battery;

[0032] The first end of the first switch unit is connected to the first power supply end or the battery ground end, the second end of the first switch unit is used to connect to the microprocessor, and the control end of the first switch unit is connected to the battery protection module.

[0033] As another example, the reset and restart module includes a reset and restart chip.

[0034] Optionally, the reset and restart module and the first switch unit are located on the same chip, or the reset and restart module and the first switch unit are located on different chips.

[0035] In a second aspect, an embodiment of the present application provides an electronic device, including:

[0036] A rechargeable battery, a microprocessor, a system circuit, and a reset and restart circuit triggered by charging according to the first aspect and various possible designs;

[0037] The microprocessor is connected to the rechargeable battery via the first switch unit of the reset and restart circuit, and the microprocessor is connected to the system circuit.

[0038] In a possible design of the second aspect, the electronic device is an electronic cigarette, the electronic cigarette further includes an airflow sensor, the system circuit includes an airflow detection module and a heating branch, and the heating branch includes a second switch unit and a heating element connected in series;

[0039] The airflow detection module includes a ground terminal, an airflow terminal and an output terminal; the airflow terminal is connected to one end of the airflow sensor, the other end of the airflow sensor is connected to the ground terminal, the output terminal is connected to the microprocessor, and the microprocessor is connected to the control end of the second switch unit. When there is airflow flowing on the airflow sensor, the airflow detection module outputs an airflow signal to the microprocessor through the output terminal, and the microprocessor controls the opening or closing of the second switch unit according to whether the airflow signal is received, so as to control the heating branch to be turned on or off.

[0040] In another possible design of the second aspect, the electronic device is an electronic cigarette, the electronic cigarette further includes an airflow sensor, and the system circuit includes an atomization module and a heating element;

[0041] The atomization module includes a grounding end, an airflow end and an atomization end; the airflow end is connected to one end of the airflow sensor, the other end of the airflow sensor is connected to the grounding end, the atomization end is connected to the heating element, and the atomization module determines whether to control the heating element to generate heat according to whether there is airflow flowing on the airflow sensor; the atomization module also includes an indication end, the indication end is connected to the microprocessor, the microprocessor is used to connect to an indicator light, and the microprocessor controls the on and off of the indicator light according to the output signal of the indication end.

[0042] The charging-triggered reset and restart circuit and electronic device provided in the present application include a reset and restart circuit, a first switch unit and a charging interface, the reset and restart module is connected to the control end of the first switch unit, the first switch unit is used to control the rechargeable battery to supply power to the microprocessor, and the reset input end of the reset and restart module is connected to the interface power supply end or the interface ground end of the charging interface. In this way, when the user charges the electronic device through the charging interface or the charging time meets the preset conditions, the reset and restart module can be triggered to reset and restart the connected microprocessor, so that the microprocessor reloads the program and restarts after troubleshooting, thereby restoring the normal use of the electronic device, solving the problem that the device cannot be used normally due to failure. In addition, the embodiment of the present application can use the original charging interface of the electronic cigarette to realize the reset and restart of the microprocessor, without the user disassembling the battery of the device, and without adding peripheral devices that require manual operation by the user, which is conducive to reducing costs and will not damage the appearance. The user experience is good and the product competitiveness is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0044] Figure 1This is a schematic diagram of a circuit module of an electronic device provided in the first embodiment of the present application;

[0045] Figure 2 is another circuit module schematic diagram of the electronic device provided in the first embodiment of the present application;

[0046] Figure 3A This is a schematic diagram of a composition of a reset and restart module in a reset and restart circuit provided in an embodiment of the present application;

[0047] Figure 3B yes Figure 3A The schematic diagram of the working principle of the reset and restart module shown;

[0048] Figure 3C is another schematic diagram of the composition of the reset and restart module in the reset and restart circuit provided in an embodiment of the present application;

[0049] Figure 4A This is another schematic diagram of the composition of the reset and restart module in the reset and restart circuit provided in the embodiment of the present application;

[0050] Figure 4B yes Figure 4A The schematic diagram of the working principle of the reset and restart module shown;

[0051] Figure 4C This is another schematic diagram of the composition of the reset and restart module in the reset and restart circuit provided in the embodiment of the present application;

[0052] Figure 4D yes Figure 4C A schematic diagram of a working principle of the reset and restart module shown;

[0053] Figure 4E This is another schematic diagram of the composition of the reset and restart module in the reset and restart circuit provided in the embodiment of the present application;

[0054] Figure 4F yes Figure 4E A schematic diagram of a working principle of the reset and restart module shown;

[0055] FIG. 5A to FIG. 5D is a schematic diagram of some circuit modules of an electronic device provided in the second embodiment of the present application;

[0056] Figure 6 is a schematic diagram of a circuit module of an electronic device provided in a third embodiment of the present application;

[0057] Fig. 7A This is a schematic diagram of a circuit module of an electronic cigarette provided in an embodiment of the present application;

[0058] Figure 7B This is another circuit module schematic diagram of the electronic cigarette provided in an embodiment of the present application.

[0059] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0060] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0061] The terms "including" and "having" and any variations thereof appearing in the specification, claims and drawings of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or modules is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.

[0062] In addition, the terms "first", "second" and "third" are used to distinguish different objects, rather than to describe a specific order. The electrical connection of the present application includes direct electrical connection and indirect electrical connection. Indirect electrical connection means that other electronic components, pins, etc. may exist between the two electrically connected components. The XX end mentioned in the present application may be an actual terminal, or it may not be an actual terminal, for example, it is only one end of a component or one end of a wire. The "and / or" mentioned in the present application includes three situations. For example, A and / or B includes three situations: A, B, A and B.

[0063] With the development of circuit technology, more and more electronic devices have charging and discharging functions, that is, rechargeable batteries are built into the electronic devices, and charging interfaces are arranged on the electronic devices. In this way, when the electronic device cannot function normally due to insufficient power of the rechargeable battery, a charger can be connected to the charging interface, and the charger can be connected to a power source to charge the rechargeable battery.

[0064] In actual applications, in order to improve the performance of electronic devices, many electronic devices will be equipped with microprocessors to achieve certain functions. However, the electronic devices may occasionally experience software freezes (crashes) during operation. One of the reasons may be that the program of the microprocessor runs abnormally. In this case, the microprocessor needs to be reset and restarted so that the microprocessor can be powered off and then powered on to repair the abnormal program operation of the microprocessor.

[0065] Typically, electronic devices are provided with an operable hardware reset button or other reset device to reset and restart the microprocessor. However, in actual applications, some electronic devices may not be provided with an operable hardware reset button or other reset device. In this case, the only way to reset the system software and get the system running again is to directly cut off the power or disassemble the machine for repair. This is not only troublesome to operate, but also causes unnecessary waste of time, resulting in a poor user experience.

[0066] In view of this, it is important to design a reset and restart circuit that can be widely used in electronic devices, which can greatly improve the reliability of the operation of electronic devices.

[0067] After research and experiments on electronic devices, the inventors found that the characteristic of the charging interface having a signal output during charging can be utilized, and the reset and restart module can be used to set the preset conditions for resetting and restarting the microprocessor. When the signal output by the charging interface meets the preset conditions, the electronic device is triggered to perform a reset and restart operation.

[0068] Based on the above technical conception process, an embodiment of the present application provides a charging-triggered reset and restart circuit, which includes a reset and restart module, a first switch unit and a charging interface, wherein the reset and restart module is connected to the control end of the first switch unit, the first switch unit is used to control the rechargeable battery to supply power to the microprocessor, the reset and restart module includes a reset input end, the charging interface includes an interface power supply end and an interface ground end, and the reset input end is connected to the interface power supply end or the interface ground end, so that when the first signal received at the reset input end meets a preset condition, the reset and restart module can control the first switch unit to disconnect so that the rechargeable battery stops supplying power to the microprocessor. After the first switch unit is disconnected for a preset target time, the first switch unit is controlled to turn on to restore the rechargeable battery to supply power to the microprocessor.

[0069] That is, in an embodiment of the present application, when the user charges the electronic device through the charging interface or the charging time meets the preset conditions, the reset and restart module can be triggered to reset and restart the connected microprocessor, so that the microprocessor reloads the program and restarts after troubleshooting, thereby restoring the normal use of the electronic device, solving the problem of equipment failure and inability to use normally, and improving the user experience.

[0070] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0071] Figure 1 This is a schematic diagram of a circuit module of an electronic device provided in the first embodiment of the present application. Figure 2 is another circuit module schematic diagram of the electronic device provided in the first embodiment of the present application. Figure 1 and Figure 2 As shown, the electronic device includes a rechargeable battery 10, a reset and restart circuit 20 and a microprocessor 30. The reset and restart circuit 20 is a reset and restart circuit based on a charging interface, and is a reset and restart circuit triggered by charging. The reset and restart circuit 20 may include a reset and restart module 201, a first switch unit 202 and a charging interface 203.

[0072] Reference Figure 1 and Figure 2 As shown, in an embodiment of the present application, the reset and restart module 201 is connected to the control end of the first switch unit 202, the first switch unit 202 is used to control whether the rechargeable battery 10 supplies power to the microprocessor 30, the reset and restart module 201 includes a reset input terminal RST, and the charging interface 203 includes an interface power supply terminal VBUS and an interface ground terminal GND1, and the reset input terminal RST is connected to the interface power supply terminal VBUS or the interface ground terminal GND1.

[0073] When the first signal received by the reset input terminal RST meets a preset condition, the reset and restart module 201 controls the first switch unit 202 to be disconnected so that the rechargeable battery 10 stops supplying power to the microprocessor 30. After the first switch unit 202 is disconnected for a preset target time, the reset and restart module 201 controls the first switch unit 202 to be turned on to resume supplying power to the microprocessor 30 from the rechargeable battery 10. The first signal includes a first edge signal or a first level signal.

[0074] In practical applications, refer to Figure 1 and Figure 2 As shown, the reset and restart circuit 20 also includes a charging management module. At this time, the interface power supply terminal VBUS can be connected to the positive electrode of the rechargeable battery 10 through the charging management module. The charging management module can manage the charging status of the rechargeable battery 10 when the charging interface is connected to the power supply through the charger.

[0075] In an embodiment of the present application, when the electronic device where the reset and restart circuit 20 is located cannot work normally due to a freeze, the user can connect the electronic device to a power source through a charger so that there is a signal output from the interface power supply terminal VBUS and the interface ground terminal GND1 of the charging interface 203.

[0076] Optionally, when the charging interface 203 is connected to a power source through a charger, the interface ground terminal GND1 of the charging interface 203 will output a low-level signal, and the interface power supply terminal VBUS of the charging interface 203 will output a high-level signal. When the reset input terminal RST is connected to the interface power supply terminal VBUS or the reset input terminal RST is connected to the interface ground terminal GND1, the signal received by the reset input terminal RST when connected to the power source through the charger and when not connected to the power source through the charger will be different.

[0077] As an example, Figure 1 As shown, the reset input terminal RST is connected to the interface power supply terminal VBUS. At this time, the reset and restart module 201 includes a first resistor R1 and a battery ground terminal VBAT-. The reset input terminal RST is connected to the battery ground terminal VBAT- through the first resistor R1.

[0078] In this example, when the charging interface 203 is not connected to an external power source through a charger, the voltages of the interface power supply terminal VBUS, the reset input terminal RST, and the battery ground terminal VBAT- are the same, all at a low level; when the charging interface 203 is connected to a power source through a charger, the interface power supply terminal VBUS outputs a first signal, and when the first signal received at the reset input terminal RST by the reset restart module 201 meets a preset condition, the first switch unit 202 is controlled to be disconnected so that the rechargeable battery 10 stops supplying power to the microprocessor 30.

[0079] Optionally, when the charging interface 203 is connected to a power source through a charger, the interface power supply terminal VBUS will obtain a rising edge signal at the moment the power is turned on, and then output a high level signal, so the first signal is a rising edge signal or a high level signal.

[0080] Correspondingly, the reset and restart module 201 can perform a reset and restart operation on the microprocessor 30 when the high-level signal received at the reset input terminal RST meets the preset condition, that is, by controlling the first switch unit 202 to be disconnected so that the rechargeable battery 10 stops supplying power to the microprocessor 30, and after the first switch unit 202 is disconnected for a target preset time, the first switch unit 202 is controlled to be turned on to restore the rechargeable battery 10 to supply power to the microprocessor 30, so that the microprocessor 30 is powered on again after the power-off target preset time, so as to realize the reset and restart operation of the microprocessor 30.

[0081] As another example, Figure 2As shown, the reset input terminal RST is connected to the interface ground terminal GND1. At this time, the interface power supply terminal VBUS may include an interface power supply terminal VBUS0 and an interface power supply terminal VBUS1. Both the interface power supply terminal VBUS0 and the interface power supply terminal VBUS1 are connected to the positive electrode of the rechargeable battery 10 through the charging management module. The charging interface 203 may include an interface ground terminal GND0 and an interface ground terminal GND1, wherein the interface ground terminal GND1 is connected to the reset input terminal RST, and the interface ground terminal GND0 is connected to the system ground.

[0082] In actual applications, when the charging interface is not connected to the power supply through the charger, that is, when not charging, the interface ground terminal GND1 is suspended and is not directly connected to the system ground. When the charging interface is connected to the power supply through the charger, the interface ground terminal GND1 is also connected to the system ground.

[0083] The reset and restart module 201 includes a second resistor R2 and a first power supply terminal VDD1 , and the reset input terminal RST is connected to the first power supply terminal VDD1 through the second resistor R2 .

[0084] In this example, when the charging interface 203 is not connected to an external power source through a charger, the voltages of the interface ground terminal GND1, the reset input terminal RST, and the first power supply terminal VDD1 are the same, all of which are high levels; when the charging interface 203 is connected to a power source through a charger, the interface ground terminal GND1 outputs a second signal, and when the second signal received by the reset input terminal RST of the reset restart module 201 meets a preset condition, the first switch unit 202 is controlled to be disconnected so that the rechargeable battery 10 stops supplying power to the microprocessor 30.

[0085] Optionally, when the charging interface 203 is connected to a power source through a charger, the interface ground terminal GND1 will obtain a falling edge signal at the moment the power is turned on, and then output a low level signal, so the second signal is a falling edge signal or a low level signal.

[0086] Correspondingly, the reset and restart module 201 can perform a reset and restart operation on the microprocessor 30 when the low-level signal received at the reset input terminal RST meets the preset condition, that is, by controlling the first switch unit 202 to disconnect so that the rechargeable battery 10 stops supplying power to the microprocessor 30, and after the first switch unit 202 is disconnected for a target preset time, the first switch unit 202 is controlled to be turned on to restore the rechargeable battery 10 to supply power to the microprocessor 30, so that the microprocessor 30 is powered on again after the power-off target preset time, so as to realize the reset and restart operation of the microprocessor 30.

[0087] It is understandable that when the user connects the charging interface 203 to a power source through a charger, the user can control both the duration of the power connection and the number of times the power is connected within a certain time period. Therefore, when the user performs different operations on the charging interface 203 through the charger connected to the power source, the signal received by the reset input terminal RST within a certain time period is expressed in different forms, and thus, the implementation forms of the above-mentioned preset conditions are different.

[0088] Optionally, in one possible design of an embodiment of the present application, the preset condition may be that the duration of the first signal (high level signal or low level signal) meets the duration requirement. In another possible design of an embodiment of the present application, the preset condition may be that the number of occurrences of the first signal (first level signal or first edge signal) within a preset duration meets the number requirement. The embodiment of the present application does not limit the specific form of expression of the preset condition, and it can be set according to actual needs.

[0089] As an example, the first switch unit 202 may include a switch tube and a substrate control circuit. The switch tube may be a MOS tube. The control end of the switch tube and the substrate control circuit are both electrically connected to the reset and restart module 201. The substrate control circuit is used to achieve correct biasing of the substrate of the switch tube.

[0090] As another example, the first switch unit 202 may include a charging switch and a discharging switch, wherein the charging switch and the discharging switch are both MOS tubes, and the charging switch and the discharging switch are electrically connected to the reset and restart module 201 respectively.

[0091] It is understandable that in other possible designs of the present application, the first switch unit 202 can also be implemented in other design forms, for example, including only one switch tube. The present application embodiment does not limit the specific design of the first switch unit 202, which can be set according to actual needs and will not be described here.

[0092] Optional, in Figure 1 and Figure 2 In the illustrated embodiment, the first switch unit 202 is connected between the negative electrode of the rechargeable battery 10 and the microprocessor 30 for explanation. In practical applications, the first switch unit 202 can also be connected between the positive electrode of the rechargeable battery 10 and the microprocessor 30, and the implementation principle is similar, which will not be repeated here.

[0093] The charging-triggered reset and restart circuit provided in the embodiment of the present application has an interface power supply terminal or an interface ground terminal of the charging interface connected to the reset input terminal of the reset and restart module. Thus, when the charging interface is connected to a power source through a charger, the interface power supply terminal or the interface ground terminal will output a signal. Therefore, when the first signal received at the reset input terminal meets a preset condition, the reset and restart module can control the first switch unit to disconnect so that the rechargeable battery stops supplying power to the microprocessor, and after the first switch unit is disconnected for a preset target time, the first switch unit is controlled to open to restore the rechargeable battery to supply power to the microprocessor. In this technical solution, for electronic devices with a charging function, the microprocessor can be reset and restarted using the charging interface of the electronic device, without the need to disassemble the battery of the device or to add peripheral devices that require manual operation by the user. This not only solves the problem that the device cannot be used normally due to a device freeze, but also helps to reduce costs, does not damage the appearance, and improves the user experience.

[0094] Based on the above embodiments, Figure 3A Schematic diagram of a reset and restart module in a reset and restart circuit provided in an embodiment of the present application. Figure 3A As shown, in the embodiment of the present application, the reset and restart module 201 includes a control unit 2011 and a first timing unit 2012 .

[0095] Reference Figure 3A As shown, a first end of the first timing unit 2012 is connected to the reset input end RST, and a second end of the first timing unit 2012 is connected to the control unit 2011 .

[0096] Optional, Figure 3B yes Figure 3A The working principle diagram of the reset and restart module is shown in Figure 1. Figure 3B As shown, the first timing unit 2012 is in a non-timing state and is triggered to start timing when the reset input terminal RST receives a first edge signal. The first timing unit 2012 is used to time the duration of the first level signal received by the reset input terminal RST, and outputs a first timing arrival signal to the control unit 2011 when the timing duration of the first timing unit 2012 reaches the first preset duration T1, so that the control unit 2011 disconnects the first switch unit 202. Through such a setting, as long as the charging duration is greater than or equal to the first preset duration T1, the microprocessor will inevitably be reset and restarted.

[0097] It can be understood that in this embodiment, when the reset input terminal RST is connected to the interface power supply terminal VBUS, the first level signal is exemplarily a high level signal, and the first edge signal is exemplarily a rising edge signal, and when the reset input terminal RST is connected to the interface ground terminal GND1, the first level signal is exemplarily a low level signal, and the first edge signal is exemplarily a falling edge signal. That is, the first edge signal is an edge signal when the second level signal changes to the first level signal.

[0098] In the embodiments of the present application, refer to Figure 3B As shown, in the initial state, the reset input terminal RST does not receive the first edge signal. At this time, the first timing unit 2012 is in a non-timing state, and the branch between the rechargeable battery 10 and the microprocessor 30 is in a conducting state, that is, the first switch unit 202 is in an on-state, and the rechargeable battery 10 can supply power to the microprocessor 30 through the first switch unit 202.

[0099] Optionally, when the charging interface 203 is connected to a power source through a charger, the reset input terminal RST of the reset and restart module 201 will first receive a first edge signal and then a first level signal. Therefore, when the first timing unit 2012 is in an untimed state and the reset input terminal RST of the reset and restart module 201 receives a first edge signal, the first timing unit 2012 will be triggered to start timing and then the duration of the first level signal will be timed. Accordingly, the first timing unit 2012 triggers the first timing unit 2012 to stop timing when the reset input terminal RST receives a second edge signal, wherein the second edge signal is an edge signal when the first level signal changes to the second level signal.

[0100] As an example, if the timing duration of the first timing unit 2012 is less than the first preset duration T1 when it stops timing, that is, the duration that the charging interface 203 is connected to the power supply through the charger is less than the first preset duration T1, then the first timing unit 2012 can perform a reset operation after receiving a reset instruction from the control unit 2011.

[0101] As another example, if the timing duration of the first timing unit 2012 reaches the first preset duration T1, it can output a first timing arrival signal to the control unit 2011, and trigger the first timing unit 2012 to be reset when outputting the first timing arrival signal.

[0102] It is understandable that after the first timing unit 2012 is cleared, when the reset input terminal RST receives the first edge signal again, the first timing unit 2012 will be triggered to restart timing. Moreover, in actual applications, the clearing method of the first timing unit 2012 can also adopt other triggering methods, which can be set according to actual needs and will not be elaborated here.

[0103] Optional, in Figure 3A and Figure 3B In the implementation shown, the range of the first preset duration T1 is less than or equal to 1 hour; and / or the range of the target preset duration T0 is less than or equal to 300 ms.

[0104] Exemplarily, assuming that the target preset time T0 is equal to 50ms and the first preset time T1 is equal to 100ms, when the timing time of the first timing unit 2012 reaches 100ms or the timing time of the first timing unit 2012 is greater than or equal to 100ms, the control unit 2011 determines that the received first signal meets the preset condition, that is, the continuous charging time of the electronic device is greater than 100ms. Therefore, the control unit 2011 can disconnect the first switch unit 202 through the control end of the first switch unit 202, and close (or open) the first switch unit 202 after the first switch unit 202 is disconnected for the target preset time T0 (for example, 50ms) to restore the power supply of the rechargeable battery 10 to the microprocessor 30.

[0105] It is understandable that the specific value of the first preset duration T1 can be 50ms, 100ms, 200ms, 300ms, 400ms, 500ms, 1 minute, 5 minutes, 10 minutes, 30 minutes, 1 hour, etc., or any value less than or equal to 1 hour, and the specific value of the target preset duration T0 can be 20ms, 30ms, 40ms, 50ms, 60ms, 70ms, 80ms, 90ms, 100ms, 200ms, 300ms, etc., or any value less than 300ms. In practical applications, the specific values ​​of the first preset duration T1 and the target preset duration T0 can be set according to actual needs, and this embodiment does not limit them.

[0106] In an embodiment of the present application, the reset and restart module includes a first timing unit and a control unit, the first end of the first timing unit is connected to the reset input end, and the second end of the first timing unit is connected to the control unit, so that the first timing unit times the duration of the first level signal, and when the timing duration of the first timing unit reaches the first preset duration, the control unit disconnects the branch between the rechargeable battery and the microprocessor through the first switch unit, and closes the branch between the rechargeable battery and the microprocessor after the first switch unit is disconnected for the target preset duration, so as to restore the power supply of the rechargeable battery to the microprocessor, that is, the reset and restart of the microprocessor is realized based on the charging trigger method, which solves the problem that the microprocessor cannot be restarted due to the electronic device not being equipped with peripheral devices such as a reset button.

[0107] Optional, in Figure 3A Based on the schematic diagram of the composition shown, Figure 3Cis another schematic diagram of the composition of the reset and restart module in the reset and restart circuit provided in the embodiment of the present application. Figure 3C As shown, the reset and restart module 201 also includes a first timing comparison unit 2012A, a first input end of the first timing comparison unit 2012A is connected to the second end of the first timing unit 2012, the second input end of the first timing comparison unit 2012A is used to access the first preset duration, and the output end of the first timing comparison unit 2012A is connected to the control unit 2011.

[0108] The first timing comparison unit 2012A can be used to compare the first timing duration of the first timing unit 2012 with the first preset duration, and output a first timing arrival signal to the control unit 2011 when the first timing duration is greater than or equal to the first preset duration, so that the control unit 2011 disconnects the first switch unit 202.

[0109] Optional, continue to refer to Figure 3C As shown, in an embodiment of the present application, the reset and restart module 201 may also include a fifth timing unit 2013 and a fifth timing comparison unit 2013A, the first end of the fifth timing unit 2013 is connected to the control unit 2011, the second end of the fifth timing unit 2013 is connected to the first input end of the fifth timing comparison unit 2013A, the second input end of the fifth timing comparison unit 2013A is used to receive the target preset duration, and the output end of the fifth timing comparison unit 2013A is connected to the control unit 2011.

[0110] The fifth timing unit 2013 is triggered to start timing when the control unit 2011 controls the first switch unit 202 to be disconnected. When the timing duration of the fifth timing unit 2013 reaches the target preset duration, the fifth timing arrival signal is output to the control unit 2011 so that the control unit 2011 controls the first switch unit 202 to be turned on or conducted.

[0111] Specifically, the fifth timing comparison unit 2013A can obtain the fifth timing duration of the fifth timing unit 2013 in real time, and compare the fifth timing duration with the target preset duration, and output the fifth timing arrival signal to the control unit 2011 when the fifth timing duration is greater than or equal to the target preset duration, so that the control unit 2011 turns on the first switch unit 202, so that the control unit 2011 can accurately control the duration of stopping power supply to the microprocessor 30 to reduce the impact on use.

[0112] Optionally, in an embodiment of the present application, the reset and restart module 201 further includes a reference duration generating unit (not shown). The reference duration generating unit can be used to generate a reference duration, such as a target preset duration, a first preset duration, etc., which will not be described in detail here.

[0113] It can be understood that in actual applications, the target preset duration and the first preset duration can be generated by different benchmark duration generating units or by the same benchmark duration generating unit, which can be determined according to actual needs or the port of the benchmark duration generating unit, and is not limited here.

[0114] Optional, in Figure 1 or Figure 2 Based on the embodiment shown, Figure 4A FIG. 1 is another schematic diagram of a reset and restart module in a reset and restart circuit provided in an embodiment of the present application. Figure 4A As shown, in an embodiment of the present application, the reset and restart module 201 includes a second timing unit 2014, a counting unit 2015 and a control unit 2011, the first end of the counting unit 2015 and the first end of the second timing unit 2014 are both connected to the reset input terminal RST, and the control unit 2011 is respectively connected to the second end of the second timing unit 2014 and the second end of the counting unit 2015.

[0115] Optional, Figure 4B yes Figure 4A The working principle diagram of the reset and restart module is shown in Figure 1. Figure 4B As shown, the second timing unit 2014 is in a non-timing state and is triggered to start timing when the reset input terminal RST receives a first edge signal or a first level signal. The counting unit 2015 is used to accumulate counting when receiving a first edge signal or a first level signal. The first edge signal is an edge signal when the second level signal changes to the first level signal.

[0116] In this embodiment, when the timing duration of the second timing unit 2014 reaches the second preset duration, the second timing arrival signal is output to the control unit 2011, and the control unit 2011 obtains the counting times of the counting unit 2015, and when the counting times are greater than or equal to the preset times, the control unit 2011 controls the first switch unit 202 to disconnect, wherein the preset times are greater than or equal to 2.

[0117] In the embodiments of the present application, refer to Figure 4B As shown, in the initial state, the reset input terminal RST does not receive the first edge signal and the first level signal. At this time, the second timing unit 2014 is in a non-timing state, the counting unit 2015 is in a non-counting state, and the branch between the rechargeable battery 10 and the microprocessor 30 is in a conducting state, that is, the first switch unit 202 is in an on-state.

[0118] Optionally, when the charging interface 203 is connected to a power source through a charger, the interface power supply terminal VBUS or the interface ground terminal GND1 will first output a first edge signal to the reset input terminal RST, and then output a first level signal to the reset input terminal RST. Accordingly, the second timing unit 2014 is in a non-timing state and is triggered to start timing when the reset input terminal RST of the reset and restart module 201 receives a first edge signal or a first level signal, and the counting unit 2015 is in a non-counting state and is triggered to accumulate counting when the reset input terminal RST receives a first edge signal or a first level signal.

[0119] As an example, when the second timing duration of the second timing unit 2014 reaches the second preset duration, if the counting number of the counting unit 2015 is greater than or equal to the preset number, at this time, the first signal received by the reset and restart module 201 meets the reset and restart conditions, and the control unit 2011 can disconnect the first switch unit 202 through the control end of the first switch unit 202, and turn on (or open) the first switch unit 202 after the first switch unit 202 is disconnected for a target preset time T0 (for example, 50ms) to restore the rechargeable battery 10 to supply power to the microprocessor 30.

[0120] Optionally, in actual applications, the range of the second preset duration T2 is greater than or equal to 1 second and less than or equal to 5 seconds; and / or, the range of the preset number of times is greater than or equal to 2 times and less than or equal to 6 times; and / or, the range of the target preset duration is less than or equal to 300ms.

[0121] Exemplarily, the second preset duration may be equal to 1 second, 2 seconds, 3 seconds, 4 seconds, 1.5 seconds, 2.5 seconds, 3.5 seconds, 4.5 seconds, 5 seconds, etc. The range of the preset number of times may be 2 times, 3 times, 4 times, 5 times, 6 times, etc. The target preset duration may be 20ms, 30ms, 40ms, 50ms, 60ms, 70ms, 80ms, 90ms, 100ms, 200ms, 300ms, etc. It is understandable that the second preset duration and the target preset duration may also be other durations, and the preset number of times may also be other times, which may all be determined according to actual conditions, and this embodiment does not limit them.

[0122] In a possible design of the present application, the second preset time length is 2s, the preset number of times may be 3 times, and the target preset time length may be 50ms. That is, when the reset input terminal RST receives the first edge signal 3 times within 2s, the reset restart module 201 can control the first switch unit 202 to be disconnected, and after 50ms, control the first switch unit 202 to be turned on, so that the rechargeable battery 10 stops supplying power to the microprocessor 30 for 50ms and then supplies power to the microprocessor 30 again.

[0123] In an embodiment of the present application, the reset and restart module includes a second timing unit, a counting unit and a control unit. The first end of the counting unit and the first end of the second timing unit are both connected to the reset input end, and the control unit is respectively connected to the second end of the second timing unit and the second end of the counting unit. In this way, the second timing unit can perform timing when the reset input end receives the first edge signal, and the counting unit can count the number of times the first edge signal appears within a second preset time period. When the second timing time period reaches the second preset time period, if the number of counts of the counting unit is greater than or equal to the preset number, the control unit can disconnect the branch between the rechargeable battery and the microprocessor through the first switch unit, and close the branch between the rechargeable battery and the microprocessor after the first switch unit is disconnected for the target preset time period, so as to restore the power supply of the rechargeable battery to the microprocessor, thereby realizing the reset and restart of the microprocessor and solving the problem that the microprocessor cannot be restarted.

[0124] Optional, in Figure 4A Based on the schematic diagram of the composition shown, Figure 4C FIG. 1 is another schematic diagram of a reset and restart module in a reset and restart circuit provided in an embodiment of the present application. Figure 4C As shown, the reset and restart module 201 further includes a third timing unit 2016 ; the third timing unit 2016 is connected to the reset input terminal RST and the counting unit 2015 , respectively.

[0125] Optional, Figure 4D yes Figure 4C The following is a schematic diagram of the working principle of the reset and restart module. Figure 4D As shown, the third timing unit 2016 is triggered to start timing when the reset input terminal RST receives a first edge signal or a first level signal, and is triggered to stop timing when the reset input terminal RST receives a second edge signal. The third timing unit 2016 outputs a third timing arrival signal to the counting unit 2015 when its timing duration reaches a third preset duration; when the third timing unit 2016 stops timing, if the timing duration is less than the third preset duration, the timing is reset, and the second edge signal is an edge signal that changes from a first level signal to a second level signal.

[0126] Correspondingly, in this embodiment, the counting unit 2015 performs cumulative counting upon receiving the third timing arrival signal.

[0127] In an embodiment of the present application, the third timing unit 2016 can time the length of time that the charging interface is connected to the power supply through the charger, and trigger the counting unit to count when the timing length meets the length requirement, thereby avoiding the influence of jitter on the counting and improving the counting accuracy.

[0128] Optional, in Figure 4C Based on the schematic diagram of the composition shown, Figure 4E FIG. 1 is another schematic diagram of a reset and restart module in a reset and restart circuit provided in an embodiment of the present application. Figure 4E As shown, the reset and restart module 201 further includes a fourth timing unit 2017 , and the fourth timing unit 2017 is connected to the reset input terminal RST, the third timing unit 2016 and the counting unit 2015 respectively.

[0129] Optional, Figure 4F yes Figure 4E The following is a schematic diagram of the working principle of the reset and restart module. Figure 4F As shown, the counting unit 2015 locks the count after accumulating the count, the fourth timing unit 2017 receives the third timing arrival signal and is triggered to start timing when the reset input terminal RST receives the second edge signal or the second level signal, and is triggered to stop timing when the reset input terminal RST receives the first edge signal or the first level signal, the fourth timing unit 2017 outputs an unlocking signal to the counting unit 2015 when the timing duration reaches the fourth preset duration, so as to release the counting unit 2015 from locking the count, and when the fourth timing unit 2017 stops timing, if its timing duration is less than the fourth preset duration, the timing is reset.

[0130] In this embodiment, the fourth timing unit 2017 is used to time the duration of power off after charging. Only when the power off duration meets the requirements, for example, it is greater than or equal to the fourth preset duration T4, it is recognized as a valid count. This can also avoid the influence of non-human factors such as unstable charging interface connection on the counting number, thereby improving the control accuracy.

[0131] Optionally, in an embodiment of the present application, the range of the third preset duration is less than or equal to 1s; and / or, the range of the fourth preset duration is less than or equal to 1s. That is, the third preset duration and the fourth preset duration can be any value less than or equal to 1s, for example, any value in 10ms, 50ms, 100ms, 200ms, 300ms, 400ms, 500ms, 600ms, 700ms, 800ms, 900ms, and 1s. It can be understood that the third preset duration and the fourth preset duration can also be other values, which are not limited in the embodiment of the present application. They can be set according to actual needs and will not be elaborated here.

[0132] Optionally, the third preset time length and the fourth preset time length are both equal to 100 ms.

[0133] Optionally, based on the above embodiment, the reset and restart module 201 further includes a second timing comparison unit, a third timing comparison unit, a fourth timing comparison unit and a counting comparison unit.

[0134] The first input end of the second timing comparison unit is connected to the second timing unit 2014, the second input end of the second timing comparison unit is used to receive the second preset duration, and the output end of the second timing comparison unit is connected to the control unit 2011. The second timing comparison unit is used to compare the second timing duration of the second timing unit 2014 with the second preset duration, and output a second timing arrival signal to the control unit 2011 when the second timing duration is greater than or equal to the second preset duration.

[0135] The first input end of the third timing comparison unit is connected to the third timing unit 2015, and the second input end of the third timing comparison unit is used to receive the third preset duration; the output end of the third timing comparison unit is connected to the counting unit 2015; the third timing comparison unit is used to compare the third timing duration of the third timing unit 2015 with the third preset duration, and output a third timing arrival signal to the counting unit 2015 and the fourth timing unit 2017 when the third timing duration is greater than or equal to the third preset duration, so as to trigger the counting unit 2015 to perform cumulative counting and trigger the fourth timing unit 2017 to start timing when the third timing arrival signal is received and the reset input end receives the second edge signal or the second level signal.

[0136] The first input end of the fourth timing comparison unit is connected to the second end of the fourth timing unit, the second input end of the fourth timing comparison unit is used to receive the fourth preset duration, and the output end of the fourth timing comparison unit is connected to the counting unit 2015. The fourth timing comparison unit is used to compare the fourth timing duration of the fourth timing unit 2017 with the fourth preset duration, and output a fourth timing arrival signal to the counting unit 2015 when the fourth timing duration is greater than or equal to the fourth preset duration, so as to release the counting lock of the counting unit 2015.

[0137] In this embodiment, the first input end of the counting comparison unit is connected to the counting unit 2015, the second input end of the counting comparison unit is used to receive a preset number of times, and the output end of the counting comparison unit is connected to the control unit 2011; the counting comparison unit is used to compare the counting number of the counting unit 2015 with the preset number of times, and output a counting arrival signal to the control unit 2011 when the counting number is greater than or equal to the preset number of times, so that the control unit 2011 determines whether the restart reset condition for the microprocessor 30 is met based on whether the second timing arrival signal and the counting arrival signal are received.

[0138] As an example, if the control unit 2011 also receives a counting arrival signal before or when receiving the second timing arrival signal, it is considered that the restart and reset conditions for the microprocessor 30 are met. At this time, the first switch unit 202 can be controlled to be disconnected, and after the first switch unit 202 is disconnected for a target preset time, the first switch unit 202 can be controlled to be closed.

[0139] Optionally, similar to the above embodiment, the reset and restart module 201 further includes a fifth timing unit and a fifth timing comparison unit, wherein the first end of the fifth timing unit is connected to the control unit 2011, the second end of the fifth timing unit is connected to the first input end of the fifth timing comparison unit, the second input end of the fifth timing comparison unit is used to receive the target preset duration, and the output end of the fifth timing comparison unit is connected to the control unit 2011. The fifth timing unit is triggered to start timing when the control unit 2011 controls the first switch unit 202 to be disconnected, and the fifth timing unit outputs a fifth timing arrival signal to the control unit 2011 when the timing reaches the target preset duration, so that the control unit 2011 controls the first switch unit 202 to be turned on or turned on.

[0140] For the implementation principle of the fifth timing unit and the fifth timing comparison unit, please refer to Figure 3C The description in the illustrated embodiment will not be repeated here.

[0141] For example, in a possible design of an embodiment of the present application, FIG. 5A to FIG. 5D Schematic diagram of some circuit modules of the electronic device provided in the second embodiment of the present application. FIG. 5A to FIG. 5D As shown, in this embodiment, the reset and restart module 201 may include a battery protection module 201A, which includes a first power supply terminal VDD1, a battery ground terminal VBAT- and a reset input terminal RST; the first power supply terminal VDD1 and the battery ground terminal VBAT- are correspondingly connected to the positive and negative electrodes of the rechargeable battery 10.

[0142] As an example, see Figure 5A and Figure 5B As shown, the first end of the first switch unit 202 is connected to the battery ground terminal VBAT-, the second end of the first switch unit 202 is used to connect to the microprocessor 30, and the control end of the first switch unit 202 is connected to the battery protection module 201A. Optionally, by disconnecting the first switch unit 202, the path between the negative electrode of the rechargeable battery 10 and the microprocessor 30 can be disconnected to achieve power-off of the microprocessor 30, and by opening the first switch unit 202, the path between the negative electrode of the rechargeable battery 10 and the microprocessor 30 can be connected to achieve power-on restart of the microprocessor 30. That is, Figure 5A is in the above Figure 1 The circuit module schematic shown is obtained on the basis of the Figure 5B is in the above Figure 2 The circuit module schematic shown is obtained on the basis of the

[0143] As another example, refer to Figure 5C and Figure 5DAs shown, the first end of the first switch unit 202 is connected to the first power supply terminal VDD1, the second end of the first switch unit 202 is used to connect to the microprocessor 30, and the control end of the first switch unit 202 is connected to the battery protection module 201A. Optionally, by disconnecting the first switch unit 202, the path between the positive electrode of the rechargeable battery 10 and the microprocessor 30 can be disconnected to achieve power-off of the microprocessor 30, and by opening the first switch unit 202, the path between the positive electrode of the rechargeable battery 10 and the microprocessor 30 can be connected to achieve power-on restart of the microprocessor 30.

[0144] Figure 5A and Figure 5B The difference Figure 5C and Figure 5D The difference between the two is that the reset input terminal RST of the battery protection module 201A is different from the connection interface of the charging interface 203. Figure 5A and Figure 5C In the embodiment, the reset input terminal RST is connected to the interface power supply terminal VBUS of the charging interface 203, and the reset input terminal RST is inside the battery protection module 201A and connected to the battery ground terminal VBAT- through the first resistor R1; Figure 5B and Figure 5D In the embodiment, the reset input terminal RST is connected to the interface ground terminal GND1 of the charging interface 203 . The reset input terminal RST is inside the battery protection module 201A and is connected to the first power supply terminal VDD1 through the second resistor R2 .

[0145] Understandable, continue to see FIG. 5A to FIG. 5D As shown, the battery protection module 201A further includes a system terminal VM, which is connected to the second terminal of the first switch unit 202 .

[0146] In this embodiment, when the battery protection module 201A determines that the first signal received by the reset input terminal RST meets the preset condition, the path between the rechargeable battery 10 and the microprocessor 30 can be disconnected through the control end of the first switch unit 202, so that the rechargeable battery 10 stops supplying power to the microprocessor 30. After the first switch unit 202 is disconnected for a target preset time, the battery protection module 201A turns on the path between the rechargeable battery 10 and the microprocessor 30 to restore the rechargeable battery 10 to supply power to the microprocessor 30, thereby resetting and restarting the microprocessor 30.

[0147] Optionally, when the rechargeable battery 10 has an abnormality and needs protection, such as overcharge voltage, over-discharge voltage, overcurrent, etc., the battery protection module 201A can also control the first switch unit 202 to remain disconnected. That is, in this embodiment, the first switch unit 202 can be used for resetting and restarting, and can also be used for protecting the rechargeable battery 10, that is, the first switch unit 202 has multiple functions, which can reduce costs.

[0148] For example, in another possible design of the embodiment of the present application, Figure 6 Schematic diagram of a circuit module of an electronic device provided in the third embodiment of the present application. Figure 6 As shown, in this embodiment, the reset and restart module 201 includes a reset and restart chip 201B.

[0149] When the reset and restart chip 201B determines that the first signal received by the reset input terminal RST meets the preset condition, it can control the first switch unit 202 to be disconnected so that the rechargeable battery 10 stops supplying power to the microprocessor 30. After the first switch unit 202 is disconnected for a preset target time, the reset and restart chip 201B controls the first switch unit 202 to be turned on to restore the rechargeable battery 10 to supply power to the microprocessor 30, thereby resetting and restarting the microprocessor 30.

[0150] Continue to refer to Figure 6 As shown, in an embodiment of the present application, the electronic device may further include a battery protection circuit 40, which is connected to the first switch unit 202. The battery protection circuit 40 includes a battery protection module 401 and a third switch unit 402. The battery protection module 401 can control the third switch unit 402 to turn on to control the rechargeable battery 10 to power the reset and restart circuit 20 and the microprocessor 30, and can also control the third switch unit 402 to turn off to control the rechargeable battery 10 to stop powering the reset and restart circuit 20 and the microprocessor 30. That is, the third switch unit 402 can be understood as the main power supply switch of the circuit in the electronic device, the first switch unit 202 is the power supply switch of the microprocessor 30 or the system circuit, and the third switch unit 402 and the battery protection module 401 are used to protect the rechargeable battery 10, such as overcharge voltage protection, over-discharge voltage protection, overcurrent protection, etc.

[0151] It is understandable that, in practical applications, the third switch unit 402 and the battery protection module 401 may be located on the same chip or on different chips, which is not limited in this embodiment.

[0152] In addition, the battery protection module 401 may include a first power supply terminal VDD1, a battery ground terminal VBAT- and a system terminal VM. The third switch unit 402 may be connected between the first power supply terminal VDD1 and the system terminal VM, or may be connected between the battery ground terminal VBAT- and the system terminal VM, and may be adjusted based on actual needs.

[0153] Optionally, in a possible design of the embodiment of the present application, the reset and restart module 201 and the first switch unit 202 are located on the same chip. Optionally, in another possible design of the embodiment of the present application, the reset and restart module 201 and the first switch unit 202 are located on different chips, for example, the reset and restart module 201 is located on one chip, and the first switch unit 202 is located on another chip.

[0154] It is understandable that the embodiment of the present application does not limit the specific position relationship between the reset and restart module 201 and the first switch unit 202, which can be set according to actual needs and will not be elaborated here.

[0155] The above embodiment introduces an implementation scheme for resetting and restarting a microprocessor by a reset and restart circuit triggered by charging. When the charging interface in the reset and restart circuit is connected to a power source through a charger, a signal will be output through the interface power supply terminal and the interface ground terminal. Therefore, when the reset and restart module determines that the first signal received at the reset input terminal meets the preset conditions, it can control the first switch unit to disconnect so that the rechargeable battery stops supplying power to the microprocessor, and after the first switch unit is disconnected for a preset target time, the first switch unit is controlled to open to restore the rechargeable battery to supply power to the microprocessor. This technical solution can solve the problem of being unable to use the device normally due to a device freeze, and improve the user experience.

[0156] Optionally, the present application embodiment further provides an electronic device, which may include the above-mentioned rechargeable battery 10, a microprocessor 30, a system circuit and the above-mentioned Figures 1 to 6 The illustrated embodiment provides a reset and restart circuit 20 .

[0157] In practical applications, the electronic device may be a rechargeable device such as an electronic cigarette, a Bluetooth headset, etc., which is not limited in this embodiment.

[0158] In the embodiment of the present application, the microprocessor 30 may be connected to the rechargeable battery via the first switch unit 202 of the reset and restart circuit 20 , and the microprocessor 30 is connected to the system circuit.

[0159] Optionally, when the first switch unit 202 is turned on or turned on, the rechargeable battery 10 can supply power to the microprocessor 30 , and when the first switch unit 202 is turned off, the rechargeable battery 10 stops supplying power to the microprocessor 30 .

[0160] In actual applications, when the program of the microprocessor 30 runs normally, it can achieve specific functions by coordinating with the system circuit.

[0161] Optionally, the capacity of the rechargeable battery 10 can be 100mAh-2000mAh, for example, 100mAh, 200mAh, 300mAh, 400mAh, 500mAh, 600mAh, 700mAh, 800mAh, 900mAh, 1000mAh, 1100mAh, 1200mAh, 1300mAh, 1400mAh, 1500mAh, 1600mAh, 1700mAh, 1800mAh, 1900mAh, 2000mAh, etc.

[0162] As an example, the capacity of the rechargeable battery 10 is 300 mAh-800 mAh. Optionally, in an electronic cigarette product, the capacity of the rechargeable battery 10 may be 300-500 mAH.

[0163] Optionally, the number of rechargeable batteries 10 may be one or more. When there are more than one rechargeable batteries, the multiple rechargeable batteries may be connected in parallel, in series, or in a mixture of series and parallel. It may be arranged according to actual needs and is not limited in this embodiment.

[0164] Optionally, this embodiment is explained by connecting the interface power supply terminal VBUS of the charging interface 203 in the reset and restart circuit 20 to the reset input terminal RST, and the electronic device is explained as an electronic cigarette. The electronic cigarette provided in the embodiment of the present application is a rechargeable electronic cigarette. For example, the electronic cigarette includes a cigarette cartridge and a cigarette rod, and the cigarette cartridge and the cigarette rod are detachably connected. Among them, the detachable connection can be that the cigarette cartridge is clamped on the cigarette rod (for example, the top of the cigarette rod), or the cigarette cartridge is set on the cigarette rod, or the cigarette cartridge is plugged into the cigarette rod or screwed on the cigarette rod, etc. This application does not limit the specific connection method of the cigarette rod and the cigarette cartridge, which can be set according to actual needs and is not limited here.

[0165] Fig. 7A This is a schematic diagram of a circuit module of the electronic cigarette provided in an embodiment of the present application. Figure 7B is another circuit module schematic diagram of the electronic cigarette provided in the embodiment of the present application. Fig. 7A and Figure 7B As shown, the electronic cigarette may include a rechargeable battery 10 , a reset and restart circuit 20 , a microprocessor 30 , a system circuit 50 and an airflow sensor 60 .

[0166] In a possible design of this embodiment, Fig. 7A As shown, the system circuit 50 includes an airflow detection module 501A and a heating branch 502, wherein the heating branch 502 includes a second switch unit 502A and a heating element R connected in series.L .

[0167] The airflow detection module 501A may be an application specific integrated circuit (ASIC) chip of the electronic cigarette, and has a terminal connected to the airflow sensor 60 .

[0168] The airflow sensor 60 is, for example, a capacitive microphone, a switch microphone, a micro-electromechanical system (MEMS) sensor, etc.

[0169] In this possible design, refer to Fig. 7A As shown, the airflow detection module 501A includes a ground terminal GND3, an airflow terminal CAP and an output terminal OUT; the airflow terminal CAP is connected to one end of the airflow sensor 60, the other end of the airflow sensor 60 is connected to the ground terminal GND3, the output terminal OUT is connected to the microprocessor 30, and the microprocessor 30 is connected to the control end of the second switch unit 502A. When there is airflow flowing on the airflow sensor 60, the airflow detection module 501A outputs an airflow signal to the microprocessor 30 through the output terminal OUT. The microprocessor 30 controls the opening or closing of the second switch unit 502A according to whether the airflow signal is received, so as to control the heating branch 502 to be turned on or off.

[0170] Exemplarily, when the user inhales the electronic cigarette, there will be airflow on the airflow sensor 60. At this time, the airflow detection module 501A will output an airflow signal to the microprocessor 30 through the output terminal OUT, so that when the microprocessor 30 receives the airflow signal, it controls the second switch unit 502A to turn on or intermittently turn on (for example, PWM signal) to control the heating branch 502 to be turned on, and when the microprocessor 30 does not receive the airflow signal, it controls the second switch unit 502A to remain disconnected to control the heating branch 502 to be turned off.

[0171] Optionally, the microprocessor 30 can also be used to connect an indicator light. As an example, the indicator light is an indicator light for the on or off state of the heating circuit. In this case, when the microprocessor 30 controls the second switch unit 502A to be turned on or turned on intermittently, the microprocessor 30 also controls the indicator light to be turned on. When the microprocessor 30 controls the second switch unit 502A to be turned off, the microprocessor 30 controls the indicator light to be turned off, so that the user can determine the on or off state of the heating branch 502 by the on and off state of the indicator light.

[0172] In this possible implementation of the embodiment of the present application, the airflow detection module 501A also includes an indication end, which is connected to the indicator light. When the airflow detection module 501A outputs an airflow signal to the microprocessor 30 through the output end OUT so that the microprocessor 30 controls the opening and closing of the second switch unit 502A, the airflow detection module 501A can also directly control the on and off of the indicator light. The specific implementation method can be set according to actual needs and is not limited here.

[0173] Optionally, the output signal of the output terminal OUT may be a signal of a different function, for example, a control signal for controlling the opening or closing of the second switch unit 502A. The output terminal OUT may also be connected to an indicator light, in which case the output signal of the output terminal OUT is a control signal for controlling the on and off of the indicator light. It is understandable that the output signal of the output terminal OUT may also be an indication signal for indicating the working state of the airflow detection module 203, etc. The embodiment of the present application does not limit the type and function of the signal output by the output terminal OUT.

[0174] In another possible design of the embodiment of the present application, referring to Figure 7B As shown, the system circuit 50 includes an atomization module 501B and a heating element R L The atomization module 501B includes a ground terminal GND3, an airflow terminal CAP and an atomization terminal AT; the airflow terminal CAP is connected to one end of the airflow sensor 60, the other end of the airflow sensor 60 is connected to the ground terminal GND3, and the atomization terminal AT is connected to the heating element R L In this embodiment, the atomization module 501B determines whether to control the heating element R according to whether there is air flow on the air flow sensor 60. L fever.

[0175] Optionally, the atomization module 501B further includes an indicator end LED, which is connected to a microprocessor 30. The microprocessor 30 is used to connect to an indicator light. The microprocessor 30 controls the on and off of the indicator light according to an output signal of the indicator end LED.

[0176] In the embodiment of the present application, the atomization module 501B may be integrated with a second switch unit. When the user draws the electronic cigarette, the atomization module 501B determines that there is airflow on the airflow sensor 60, and the second switch unit may be controlled to be turned on or turned on intermittently (for example, a PWM signal), so that the atomization end AT and the heating element R L The circuit between them is turned on to control the heating element R L When there is no airflow on the airflow sensor 60, the heating element R L No fever.

[0177] As an example, the indicator light connected to the microprocessor 30 is a heating element R LThe indicator light indicates whether the heating element is on. At this time, the atomization module 501B controls the heating element R L When heating, the indicator LED can send a lighting signal to the microprocessor 30, so that the microprocessor 30 controls the indicator light to light up, and the heating element R L When the heating element is not in operation, the indicator light is off, which allows the user to know in time whether the heating element is in operation.

[0178] In this possible implementation of the embodiment of the present application, the indicator end LED of the atomization module 501B can be used to connect the indicator light. When the atomization module 501B controls the heating element R L When heating, the atomization module 501B can also directly control the on and off of the indicator light. The specific implementation method can be set according to actual needs and is not limited here.

[0179] Understandably, Fig. 7A and Figure 7B In the schematic diagram shown, the number of indicator lights provided on the electronic cigarette may be one or more. When the number of indicator lights is one, the indicator lights may indicate different working states by means of different on and off modes, which is not limited in this embodiment. The above-mentioned indicator lights may also include indicator lights for powering on and / or charging the microprocessor 30. In this case, the microprocessor 30 may also control the on and off of the indicator lights according to the received signals, which will not be described in detail here.

[0180] It is understood that in the embodiments of the present application, see Fig. 7A As shown, the airflow detection module 501A may also include a charging terminal CHRG and a power supply terminal VDD3. Figure 7B As shown, the atomization module 501B may also include a charging terminal CHRG and a power supply terminal VDD3. When the charging interface 203 is connected to a power source through a charger, the charging terminal CHRG may receive a first signal, so that the airflow detection module 501A or the atomization module 501B learns the charging state of the rechargeable battery 10. The power supply terminal VDD3 is connected to the positive electrode of the rechargeable battery 10.

[0181] For rechargeable electronic cigarettes, the embodiments of the present application can utilize the original charging interface of the electronic cigarette to achieve the reset and restart of the microprocessor. For example, the reset and restart module can determine whether to reset and restart the microprocessor based on the first signal output by the charging interface. There is no need for the user to disassemble the battery of the device, nor is there any need to add peripheral devices that require manual operation by the user. This is conducive to reducing costs and will not damage the appearance. It solves the problem that the device cannot be used normally due to device freezing and inability to reset and restart, improves user experience, and improves product competitiveness.

[0182] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the application disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0183] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A charge-triggered reset and restart circuit, characterized in that: It includes a reset and restart module, a first switch unit and a charging interface; The reset and restart module is connected to the control end of the first switch unit, the first switch unit is used to control the rechargeable battery to supply power to the microprocessor, the reset and restart module includes a reset input end, the charging interface includes an interface power supply end and an interface ground end, and the reset input end is connected to the interface power supply end or the interface ground end; When the signal received by the reset input terminal meets a preset condition, the reset and restart module controls the first switch unit to be disconnected so that the rechargeable battery stops supplying power to the microprocessor, and after the first switch unit is disconnected for a preset target time, controls the first switch unit to be turned on to resume the rechargeable battery supplying power to the microprocessor, wherein the signal includes an edge signal or a level signal, and the signal corresponds to the signal of the charging interface; Wherein, when the reset input terminal is connected to the interface ground terminal, the reset and restart module includes a second resistor and a first power supply terminal, and the reset input terminal is connected to the first power supply terminal through the second resistor; When the charging interface is connected to a power source through a charger, the interface ground terminal outputs a second signal, and when the second signal received at the reset input terminal meets a preset condition, the reset restart module controls the first switch unit to disconnect so that the rechargeable battery stops supplying power to the microprocessor.

2. The reset and restart circuit according to claim 1, characterized in that: The reset input terminal is connected to the interface power supply terminal, the reset restart module includes a first resistor and a battery ground terminal, and the reset input terminal is connected to the battery ground terminal through the first resistor; When the charging interface is connected to a power source through a charger, the interface power supply end outputs a first signal, and when the first signal received at the reset input end meets a preset condition, the reset restart module controls the first switch unit to disconnect so that the rechargeable battery stops supplying power to the microprocessor.

3. The reset and restart circuit according to claim 1 or 2, characterized in that: The reset and restart module includes a first timing unit and a control unit; the first end of the first timing unit is connected to the reset input end, and the second end of the first timing unit is connected to the control unit; The first timing unit is in a non-timing state and is triggered to start timing when the reset input terminal receives a first edge signal. The first timing unit is used to time the duration of the first level signal received by the reset input terminal, and output a first timing arrival signal to the control unit when the timing duration of the first timing unit reaches a first preset duration, so that the control unit disconnects the first switch unit, wherein the first edge signal is an edge signal when the second level signal changes to the first level signal.

4. The reset and restart circuit according to claim 3, characterized in that: The first preset duration is less than or equal to 1 hour; and / or, The target preset duration is in the range of less than or equal to 300 ms.

5. The reset and restart circuit according to claim 1 or 2, characterized in that: The reset and restart module comprises a second timing unit, a counting unit and a control unit, wherein the first end of the counting unit and the first end of the second timing unit are both connected to the reset input end, and the control unit is respectively connected to the second end of the second timing unit and the second end of the counting unit; The second timing unit is in a non-timing state and is triggered to start timing when the reset input terminal receives a first edge signal or a first level signal, and the counting unit is used to perform cumulative counting when receiving the first edge signal or the first level signal, and the first edge signal is an edge signal when the second level signal changes to the first level signal; When the timing duration of the second timing unit reaches the second preset duration, the second timing arrival signal is output to the control unit, and the control unit obtains the counting times of the counting unit, and when the counting times is greater than or equal to the preset times, the control unit controls the first switch unit to disconnect, wherein the preset times is greater than or equal to 2.

6. The reset and restart circuit according to claim 5, characterized in that: The reset and restart module further includes a third timing unit; the third timing unit is connected to the reset input terminal and the counting unit respectively; The third timing unit is triggered to start timing when the reset input terminal receives the first edge signal or the first level signal, and is triggered to stop timing when the reset input terminal receives the second edge signal. The third timing unit outputs a third timing arrival signal to the counting unit when its timing duration reaches a third preset duration. When the third timing unit stops timing, if the timing duration is less than the third preset duration, the timing is reset, and the second edge signal is an edge signal that changes from a first level signal to a second level signal. The counting unit performs cumulative counting upon receiving the third timing arrival signal.

7. The reset and restart circuit according to claim 6, characterized in that: The reset and restart module further includes a fourth timing unit, which is connected to the reset input terminal, the third timing unit and the counting unit respectively; The counting unit locks the count after accumulating the count; The fourth timing unit receives the third timing arrival signal and is triggered to start timing when the reset input terminal receives a second edge signal or a second level signal, and is triggered to stop timing when the reset input terminal receives a first edge signal or a first level signal. The fourth timing unit outputs an unlocking signal to the counting unit when the timing duration reaches a fourth preset duration to release the counting lock of the counting unit. When the fourth timing unit stops timing, if its timing duration is less than the fourth preset duration, the timing is reset.

8. The reset and restart circuit according to claim 7, characterized in that: The second preset time length is in the range of greater than or equal to 1 second and less than or equal to 5 seconds; and / or, The range of the preset number of times is greater than or equal to 2 times and less than or equal to 6 times; and / or, The target preset duration is less than or equal to 300 ms; and / or, The third preset duration is less than or equal to 1s; and / or, The fourth preset time length is in the range of less than or equal to 1s.

9. The reset and restart circuit according to claim 1 or 2, characterized in that: The reset and restart module includes a battery protection module; The battery protection module comprises a first power supply terminal, a battery ground terminal and the reset input terminal; the first power supply terminal and the battery ground terminal are respectively used to be connected to the positive electrode and the negative electrode of the rechargeable battery; The first end of the first switch unit is connected to the first power supply end or the battery ground end, the second end of the first switch unit is used to connect to the microprocessor, and the control end of the first switch unit is connected to the battery protection module.

10. The reset and restart circuit according to claim 1 or 2, characterized in that: The reset and restart module includes a reset and restart chip.

11. The reset and restart circuit according to claim 1 or 2, characterized in that: The reset and restart module and the first switch unit are located on the same chip, or the reset and restart module and the first switch unit are located on different chips.

12. An electronic device, characterized in that: include: A rechargeable battery, a microprocessor, a system circuit, and a charge-triggered reset and restart circuit according to any one of claims 1 to 11; The microprocessor is connected to the rechargeable battery via the first switch unit of the reset and restart circuit, and the microprocessor is connected to the system circuit.

13. The electronic device according to claim 12, characterized in that: The electronic device is an electronic cigarette, the electronic cigarette further comprises an airflow sensor, the system circuit comprises an airflow detection module and a heating branch, the heating branch comprises a second switch unit and a heating element connected in series; The airflow detection module includes a ground terminal, an airflow terminal and an output terminal; the airflow terminal is connected to one end of the airflow sensor, the other end of the airflow sensor is connected to the ground terminal, the output terminal is connected to the microprocessor, and the microprocessor is connected to the control end of the second switch unit. When there is airflow flowing on the airflow sensor, the airflow detection module outputs an airflow signal to the microprocessor through the output terminal, and the microprocessor controls the opening or closing of the second switch unit according to whether the airflow signal is received, so as to control the heating branch to be turned on or off.

14. The electronic device according to claim 12, characterized in that: The electronic device is an electronic cigarette, the electronic cigarette further includes an airflow sensor, and the system circuit includes an atomization module and a heating element; The atomization module includes a grounding end, an airflow end and an atomization end; the airflow end is connected to one end of the airflow sensor, the other end of the airflow sensor is connected to the grounding end, the atomization end is connected to the heating element, and the atomization module determines whether to control the heating element to generate heat according to whether there is airflow flowing on the airflow sensor; the atomization module also includes an indication end, the indication end is connected to the microprocessor, the microprocessor is used to connect to an indicator light, and the microprocessor controls the on and off of the indicator light according to the output signal of the indication end.