CN112639634A - On-off control device and electronic equipment - Google Patents

On-off control device and electronic equipment Download PDF

Info

Publication number
CN112639634A
CN112639634A CN202080004636.7A CN202080004636A CN112639634A CN 112639634 A CN112639634 A CN 112639634A CN 202080004636 A CN202080004636 A CN 202080004636A CN 112639634 A CN112639634 A CN 112639634A
Authority
CN
China
Prior art keywords
signal
controller
power supply
control
battery
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202080004636.7A
Other languages
Chinese (zh)
Inventor
陆城富
靖俊
舒小平
孙仲健
李惠民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SZ DJI Technology Co Ltd
Original Assignee
SZ DJI Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SZ DJI Technology Co Ltd filed Critical SZ DJI Technology Co Ltd
Publication of CN112639634A publication Critical patent/CN112639634A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The embodiment of the invention provides a switch control device and electronic equipment, wherein the switch control device comprises: the key is used for receiving normal shutdown operation triggered by a user; the controller is used for outputting a first control signal when detecting a first shutdown signal corresponding to normal shutdown operation; the switching circuit is used for controlling the battery to stop supplying power to the controller according to the first control signal; the detection pin of the controller is used for detecting a first shutdown signal; the power supply pin of the controller is used for acquiring a power supply signal output by the battery; the control pin of the controller is used for outputting a first control signal. According to the invention, after shutdown, the switch circuit serving as the power supply path between the battery and the controller is completely disconnected, so that the purpose of cutting off the power supply path between the battery and the controller is achieved. Under the condition that no battery provides electric energy for the controller, the controller is in a complete shutdown state, and further the actual shutdown is realized with extremely low power consumption after the startup and shutdown control device is shut down.

Description

On-off control device and electronic equipment
Technical Field
The invention relates to the technical field of electronics, in particular to a switch control device and electronic equipment.
Background
For some electronic devices, a battery and a processor are disposed inside the electronic device, and power is supplied to the processor through the battery so that the processor can work normally.
When the electronic devices are turned off, the processor actually enters a low-power-consumption standby state rather than being actually turned off, because the processor needs to detect whether the power-on key of the electronic device is triggered again, and when the processor detects that the power-on key is triggered again, the processor is adjusted from the standby state to a normal working state to realize the power-on function.
Since the processor is only put into a low power consumption standby state when the electronic device is turned off, rather than actually turned off, the power consumed by the processor in the standby state is still high compared to the completely turned off state, resulting in a waste of power.
Disclosure of Invention
The embodiment of the invention provides a switch control device and electronic equipment, which are used for realizing real extremely low power consumption in power-off.
In a first aspect, an embodiment of the present invention provides a power on/off control device, where the device includes:
the key is used for receiving normal shutdown operation triggered by a user;
the controller is used for outputting a first control signal when detecting a first shutdown signal corresponding to the normal shutdown operation;
the switching circuit is used for controlling the battery to stop supplying power to the controller according to the first control signal;
a detection pin of the controller is used for detecting the first shutdown signal; the power supply pin of the controller is used for acquiring a power supply signal output by the battery; and a control pin of the controller is used for outputting the first control signal.
Optionally, the normal shutdown operation includes: and pressing the key for a first time length.
Optionally, the key is further configured to: receiving a short startup operation triggered by a user;
the switch circuit is further configured to control the battery to start inputting the power supply signal to a power supply pin of the controller according to a first power-on signal corresponding to the short power-on operation.
Optionally, the controller is further configured to control the control pin to output a second control signal when the power supply signal is received through the power supply pin;
the switch circuit is further configured to control the battery to keep inputting the power supply signal to a power supply pin of the controller according to the second control signal.
Optionally, the key is further configured to receive a long boot operation triggered by a user;
the controller is configured to control the control pin to output the second control signal when the power supply signal is received through the power supply pin and a second power-on signal corresponding to the long power-on operation is detected within a second duration through the detection pin.
Optionally, the short boot operation includes: the duration of the continuous pressing of the key is less than the third duration;
the long boot operation includes: and operating the key for a duration longer than or equal to a fourth duration.
Optionally, the switching circuit comprises:
the diode is used for outputting a first voltage signal to the first triode according to a first starting signal corresponding to the short starting operation;
the device further comprises: a charging circuit;
the charging circuit is used for charging through the battery when a first starting signal corresponding to the short starting operation is detected, and outputting a second voltage signal to the first triode in the charging process;
the first triode is used for outputting a third voltage signal to the second triode according to the first voltage signal and the second voltage signal;
and the second triode is used for inputting the power supply signal of the battery to the power supply pin of the controller according to the third electric signal.
Optionally, the switching circuit further includes:
and the third triode is used for outputting a fourth voltage signal to the first triode according to the second control signal, and the voltage value of the fourth voltage signal is the same as that of the first voltage signal.
Optionally, the key is further configured to: receiving forced shutdown operation triggered by a user;
the controller is further configured to output a third control signal when a second shutdown signal corresponding to the forced shutdown operation is detected;
the switch circuit is further configured to control the battery to stop supplying power to the controller according to the third control signal.
In a second aspect, an embodiment of the present invention provides an electronic device, including an on-off control device and a battery, where the on-off control device includes a key, a controller, and a switching circuit, where:
the key is used for receiving normal shutdown operation triggered by a user;
the controller is used for outputting a first control signal when detecting a first shutdown signal corresponding to the normal shutdown operation;
the switch circuit is used for controlling the battery to stop supplying power to the controller according to the first control signal;
a detection pin of the controller is used for detecting the first shutdown signal; the power supply pin of the controller is used for acquiring a power supply signal output by the battery; and a control pin of the controller is used for outputting the first control signal.
Optionally, the normal shutdown operation includes: and pressing the key for a first time length.
Optionally, the key is further configured to: receiving a short startup operation triggered by a user;
the switch circuit is further configured to control the battery to start inputting the power supply signal to a power supply pin of the controller according to a first power-on signal corresponding to the short power-on operation.
Optionally, the controller is further configured to control the control pin to output a second control signal when the power supply signal is received through the power supply pin;
the switch circuit is further configured to control the battery to keep inputting the power supply signal to a power supply pin of the controller according to the second control signal.
Optionally, the key is further configured to receive a long boot operation triggered by a user;
the controller is configured to control the control pin to output the second control signal when the power supply signal is received through the power supply pin and a second power-on signal corresponding to the long power-on operation is detected within a second duration through the detection pin.
Optionally, the short boot operation includes: the duration of the continuous pressing of the key is less than the third duration;
the long boot operation includes: and operating the key for a duration longer than or equal to a fourth duration.
Optionally, the switching circuit comprises:
the diode is used for outputting a first voltage signal to the first triode according to a first starting signal corresponding to the short starting operation;
the device further comprises: a charging circuit;
the charging circuit is used for charging through the battery when a first starting signal corresponding to the short starting operation is detected, and outputting a second voltage signal to the first triode in the charging process;
the first triode is used for outputting a third voltage signal to the second triode according to the first voltage signal and the second voltage signal;
and the second triode is used for inputting the power supply signal of the battery to the power supply pin of the controller according to the third electric signal.
Optionally, the switching circuit further includes:
and the third triode is used for outputting a fourth voltage signal to the first triode according to the second control signal, and the voltage value of the fourth voltage signal is the same as that of the first voltage signal.
Optionally, the key is further configured to: receiving forced shutdown operation triggered by a user;
the controller is further configured to output a third control signal when a second shutdown signal corresponding to the forced shutdown operation is detected;
the switch circuit is further configured to control the battery to stop supplying power to the controller according to the third control signal.
By the switch control device provided by the embodiment of the invention, after shutdown, the switch circuit serving as a power supply path between the battery and the controller is completely disconnected, so that the purpose of cutting off the power supply path between the battery and the controller is achieved. Under the condition that no battery provides electric energy for the controller, the controller is in a complete shutdown state, and further the actual shutdown is realized with extremely low power consumption after the startup and shutdown control device is shut down.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a power on/off control device according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a power on/off control device according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a switching controller according to an embodiment of the present invention during operation;
fig. 4 is a schematic flow chart of a switching controller according to an embodiment of the present invention during operation;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
A key 11; a controller 12;
a switching circuit 13; a first diode D1;
a first tertiary Q1; a second tertiary Q2;
a capacitor C; a first resistor R1;
a second resistor R2; a third transistor Q3;
a battery B; a third resistor R3;
a fourth resistor R4; a second diode D2;
a third diode D3; a startup and shutdown control device 51;
battery 52
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise, and "a plurality" typically includes at least two.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
In addition, the sequence of steps in each method embodiment described below is only an example and is not strictly limited.
The startup and shutdown control device provided by the embodiment of the invention can be applied to various electronic equipment with built-in or external batteries, such as unmanned aerial vehicles, remote controllers, tablet computers, mobile phones and the like.
Fig. 1 is a schematic structural diagram of a switching control device according to an embodiment of the present invention, as shown in fig. 1, the switching control device includes a key 11, a controller 12, and a switching circuit 13, where:
the key 11 is electrically connected with the battery and used for receiving normal shutdown operation triggered by a user; a controller 12 electrically connected to the key 11, for outputting a first control signal when detecting a first shutdown signal corresponding to a normal shutdown operation; and the switch circuit 13 is electrically connected between the battery and the controller 12 and is used for controlling the battery to stop supplying power to the controller 12 according to the first control signal.
Wherein, the detection pin of the controller 12 is used for electrically connecting to the key 11 to detect a first shutdown signal; the power supply pin of the controller 12 is electrically connected to the switch circuit 13 to obtain a power supply signal; the control pin of the controller 12 is electrically connected to the switch circuit 13 to output a first control signal.
It is understood that when the power supply signal (power supply) output by the battery can be supplied to the controller 12, the controller 12 can be turned on and in an operating state. When the power supply path from the battery to the controller 12 is cut off, the battery can no longer supply power to the controller 12, so that the controller 12 performs the shutdown operation. In the embodiment of the present invention, the switching on and off of the power supply channel from the battery to the controller 12 is controlled by controlling the switching on and off of the switching circuit 13 between the battery and the controller 12, so that the controller 12 can be effectively controlled to be in the power-on or power-off state.
For convenience of understanding, the operation process of the on-off control device according to the embodiment of the present invention during the power-on operation will be described first, and then the operation process of the on-off control device according to the embodiment of the present invention during the power-on operation will be described.
Optionally, the key 11 is further configured to receive a short boot operation triggered by a user; the switch circuit 13 is further configured to control the battery to start inputting a power supply signal to the power supply pin of the controller 12 according to the first power-on signal corresponding to the short power-on operation.
In practical applications, it is assumed that the controller 12 is currently in a power-off state, and the power supply path from the battery to the controller 12 is in a power-off state, and the battery no longer provides the controller 12 with the electric energy required for operation. When the user needs to turn on the controller 12, the user may tap the key 11. When the key 11 is triggered, the level of the circuit changes, the switch circuit 13 can detect a first power-on signal corresponding to the short power-on operation, and then control the battery to start inputting a power supply signal to the power supply pin of the controller 12 according to the first power-on signal corresponding to the short power-on operation, so that the controller 12 can perform the power-on operation after being powered on.
Optionally, the controller 12 is further configured to control the control pin to output a second control signal when receiving a power supply signal through the power supply pin; the switch circuit 13 is further configured to control the battery to keep inputting the power supply signal to the power supply pin of the controller 12 according to the second control signal.
It is understood that the switching circuit 13 may include a first power supply path and a second power supply path. When the user touches the key 11, the first power supply path is opened, and the battery supplies power to the controller 12. The user may not always press the key 11, and the first power supply path is turned on after the key 11 is tapped, and the controller 12 may start operating. After the controller 12 starts to operate, the second control signal may be output to the switch circuit 13 through the control pin, so that after the switch circuit 13 receives the second control signal, the second power supply path may be opened, and the battery may supply power to the controller 12 through the second power supply path. The on and off of the second power supply path depends on the control signal output by the controller 12 and does not depend on whether the key 11 is triggered or not, so that after the second power supply path is opened, the battery can normally supply power to the controller 12 even if the user does not press the key 11 any more, and the user can start the controller 12 only by lightly touching the key 11 without continuously pressing the key 11.
Alternatively, as shown in fig. 2, the circuit structure of the switching circuit 13 may include a first diode D1, a first transistor Q1, and a second transistor Q2, and the switching control device may further include a charging circuit, wherein:
a diode D1 electrically connected between the key 11 and the first transistor Q1 for outputting a first voltage signal to the first transistor Q1 according to a first power-on signal corresponding to the short power-on operation; the charging circuit is electrically connected with the battery and is used for charging through the battery when a first starting signal corresponding to the short starting operation is detected and outputting a second voltage signal to the first triode Q1 in the charging process; the first triode Q1 is electrically connected between the charging circuit and the second triode Q2, and is used for outputting a third voltage signal to the second triode Q2 according to the first voltage signal and the second voltage signal; and a second transistor Q2, electrically connected between the battery and the power supply pin of the controller 12, for inputting the power supply signal of the battery to the power supply pin of the controller 12 according to the third electrical signal.
The charging circuit may include a capacitor C electrically connected to the battery and a resistor electrically connected to the capacitor C and the key 11. Wherein the resistors may include a first resistor R1 and a second resistor R2.
The operation of the on-off control device at power-on will be described. Before K is not pressed, D1 is in a reverse cut-off state, a drain current Id1 exists at two ends of D1, the third triode Q3 is also in a reverse cut-off state, and a drain current Iq3 also exists between the source and the drain of Q3. The leakage current of D1 and Q3 is due to the inherent characteristics of the device itself. The path of the leakage current is from cell B through R1 through D1 and then through Q3 to ground.
In one possible application scenario, the current value of Id1 can reach 600nA, and the current value of Iq3 is only 10 nA. This indicates that Id1 is much larger than Iq 3. When leakage current exists between the two ends of the D1 and between the source and the drain of the Q3, the D1 and the Q3 can be respectively equivalent to a resistor, the large leakage current represents that the equivalent resistor has a smaller resistance value, and the small leakage current represents that the equivalent resistor has a larger resistance value. Based on this, the resistance of the D1 equivalent resistor is small, and the resistance of the Q3 equivalent resistor is large. D1 and Q3 are connected in series, which is equivalent to two resistors dividing the voltage. After calculating the divided voltage between the resistors, the voltage at the position where D1 is connected to Q3 is found to be large, and therefore the source voltage of Q1 is raised to a voltage close to B.
At the same time, the gate of Q1 is also set high since the gate of Q1 is pulled up to battery power by R1 and R2. When the source voltage of Q1 approaches the voltage of B, and the gate voltage of Q1 also approaches the voltage of B, Q1 is in the off state.
When the user presses K, the anode of D1 is pulled down to the turn-on voltage of the diode due to the presence of D1, which is about 0.7V when D1 is a silicon diode. Assuming that the capacitance value of C and the resistance value of R2 are set to be relatively high, the charge-discharge constant of C is very large due to the presence of large capacitance and large resistance. When the charge-discharge constant of C is very large, C takes a long time to fully charge. When C is not in a charged state, the voltage across C is high, and when C is in a charged state, the voltage across C starts to gradually decrease. Since C takes a long time to fully charge, the voltage across C drops relatively slowly, and the gate voltage of Q1 connected to C remains high. At this time, since the source voltage of Q1 is low, Q1 is turned on.
After Q1 turns on, the gate voltage of Q2 is low, the source of Q2 is connected to the battery power supply, the source voltage of Q2 is high, and thus Q2 also turns on. After Q2 turns on, the first power supply path of switch circuit 13 is opened, so the battery can supply power to controller 12, and controller 12 is turned on.
Optionally, the switching circuit 13 further includes: the third transistor Q3 is electrically connected between the control pin of the controller 12 and the first transistor Q1, and is configured to output a fourth voltage signal to the first transistor Q1 according to the second control signal, wherein a voltage value of the fourth voltage signal is the same as a voltage value of the first voltage signal.
In practical applications, after the controller 12 is turned on, the controller 12 may control the pins to perform corresponding actions according to the copied run logic. In an embodiment of the present invention, after the controller 12 is started, the pin O1 may be controlled to output a high level, so that the gate voltage of the Q3 is a high level. Since the source voltage of Q3 is low, Q3 is turned on. After Q3 turns on, the second power supply path of the switch circuit 13 is opened. When Q3 is turned on, the source voltage of Q1 remains low. At this time, Q1 and Q2 are both in an on state. The battery supplies power to the controller 12 through a second power supply path.
It is understood that in the course of transporting the electronic equipment provided with the on-off control device, or in some other cases, the controller 12 may be turned on by mistake due to the mistaken touch of the key 11. To avoid this problem, after the user turns on the controller 12 by the short power-on operation, the controller 12 may detect whether the user has performed the long power-on operation again on the key 11 based on a preset operation logic. When the user performs the short boot operation and then performs the long boot operation, the controller 12 keeps the control O1 pin outputting the high level, so that the controller 12 can keep the power-on state. The short power-on operation may be an operation in which the duration of the continuous pressing of the key 11 is less than a third duration.
Based on this, optionally, the key 11 is further configured to receive a long boot operation triggered by a user; the controller 12 is configured to control the control pin to output a second control signal when the power supply signal is received through the power supply pin and a second power-on signal corresponding to the long power-on operation is detected within a second time period through the detection pin.
In practical applications, after the controller 12 is powered on, a timer may be started to count time, and if it is detected that the key 11 is pressed again within the second time period and the pressed time period exceeds the fourth time period, the O1 pin may be controlled to output a high level. For example, after the controller 12 is powered on, a timer 3s may be started, and if it is detected that the key 11 is pressed again within 3s and the duration of the pressing exceeds 3s, the pin O1 is kept outputting a high level. Otherwise, if the key 11 is not detected to be pressed again within 3s, or if the key 11 is detected to be pressed again within 3s but the duration of the pressing does not exceed 3s, the O1 pin may be controlled to output a low level and the controller 12 may be powered off. The second duration and the fourth duration may be set according to requirements.
In the above process, the controller 12 may detect the state of the key 11(K) by detecting the pin I1. The particular I1 is pulled up to the controller 12 power supply through the third resistor R3, and after Q2 is turned on, the voltage level of the controller 12 power supply is substantially equal to the voltage level of the battery power supply. When K is not triggered, I1 detects a high level. When K is triggered, the cathode of the second diode D2 is low, the anode of D2 is high, and thus D2 is turned on, and I1 detects low. Based on this, when I1 detects that the level goes from high to low, it is determined that K is triggered.
In summary, as shown in fig. 3, the on-off control device can detect whether K is pressed, and if so, Q1 and Q2 are turned on and the battery supplies power to the controller 12. The controller 12 outputs a high through pin O1 and Q3 is on. The controller 12 detects whether the key 11 is released, if so, detects whether the key 11 is pressed again within 3s, if so, detects whether the pressed time exceeds 3s, if so, the controller 12 keeps the pin O1 to output high level, and the startup operation is completed.
The above describes the operation process of the on-off control device according to the embodiment of the present invention, and the following describes the operation process of the on-off control device. The shutdown process may be divided into a normal shutdown process and a forced shutdown process. If the controller 12 is in a normal operating state, the shutdown processing may be performed by a normal shutdown operation, whereas if the controller 12 is in an abnormal operating state, for example, in a dead halt state, the shutdown processing may be performed by a forced shutdown operation.
During normal shutdown operation, the user may cause the controller 12 to perform normal shutdown through normal shutdown operation. The normal power-off operation may include an operation of pressing the key 11 for a first duration. The first time period may be set according to requirements, and may be set to 3s, for example. The detection pin of the controller 12 may detect whether the key 11 is activated, and if the detection pin detects that the key 11 is activated and the duration time reaches the first duration time, a low level may be output through the control pin. After the control pin outputs low level, Q3 will be turned off, and Q1 and Q2 will be turned off successively, the battery power is disconnected from the controller 12 power, and the battery no longer supplies power to the controller 12, so that the effect of normal shutdown can be achieved.
By the switch control device provided by the embodiment of the invention, after the switch is turned off, the Q1 and the Q2 are both turned off, the source electrode and the drain electrode of the Q2 are not conducted any more, and the power supply path between the battery and the controller 12 is completely cut off. The battery is only electrically connected with the discrete components, only D1 and Q3 in the components have leakage current, and the leakage current is extremely small and can be ignored. And then after the on-off control device is turned off, the real extremely low power consumption of turning off is realized.
As can be seen from the above analysis, for the controller 12, it is not necessary to select a chip of the controller 12 having a low power consumption mode type to achieve an extremely low shutdown power consumption, which can greatly expand the type selection range of the controller 12 and reduce the type selection cost of the controller 12. After the power is turned on, because the MOS tube has the characteristic of low internal resistance, the power consumption additionally consumed by discrete components is very low during the power on.
If the controller 12 cannot work normally, it cannot effectively enter the normal shutdown operation flow after the user triggers the normal shutdown operation, and at this time, the forced shutdown process of the controller 12 may be implemented through the forced shutdown operation. Optionally, the key 11 is further configured to receive a forced shutdown operation triggered by a user; the controller 12 is further configured to output a third control signal when the second shutdown signal corresponding to the forced shutdown operation is detected; and the switch circuit 13 is further used for controlling the battery to stop supplying power to the controller 12 according to a third control signal.
For convenience of understanding, the operation process of forced shutdown will be described with reference to the schematic structural diagram of the power on/off control apparatus shown in fig. 2 and the flowchart of forced shutdown shown in fig. 4. After the controller 12 is in the on state, the capacitor C is fully charged. The controller 12 may detect whether the key 11 is pressed, and when the user triggers a forced shutdown operation through the key 11, C discharges the reference ground through R2, and the gate voltage of Q1 electrically connected to C continuously decreases. After the gate voltage of Q1 continuously drops for a certain time, the difference between the gate voltage of Q1 and the source voltage of Q1 is less than the turn-on voltage of Q1, and Q1 is turned off. At this time, the gate voltage of Q2 is pulled up to a high level by the fourth resistor R4, Q2 is turned off, the battery no longer supplies power to the controller 12, and the controller 12 is turned off. If the user releases the key 11 before the gate voltage of Q1 has not dropped for a certain period of time, C discharges the power through D3 due to the presence of the third diode D3, the discharge constant is very small, and the gate voltage of Q1 quickly returns to a high level in preparation for the next power-on operation. The duration of the trigger button 11 in the forced shutdown operation may be set according to requirements, and may be set to 10s, for example. When the duration of the trigger button 11 in the forced shutdown operation needs to be adjusted, the duration can be achieved by adjusting the values of R1, R2 and C.
In a possible implementation manner, R1 may be a resistor with a resistance of 10K Ω, R2 may be a resistor with a resistance of 1M Ω, and C may be a capacitor with a capacitance of 10 μ F, so that a duration of the forced shutdown operation of about 10s can be obtained.
In one possible implementation, the D1, D2 and D3 may be schottky diodes, which have large leakage current. The Q1 and Q3 can adopt enhancement type NMOS tubes, and the Q2 can adopt enhancement type PMOS tubes. Alternatively, the Q1 and the Q3 may be NPN transistors, and the Q2 may be PNP transistors.
In one possible implementation, R3 and R4 may be resistors with resistance values on the order of hundreds of K Ω to reduce power consumption.
The controller 12 provided in the embodiment of the present invention may be a controller 12 of a type such as MCU, ARM, PLC, CPLD, FPGA, CPU, or the like.
The power on/off scheme provided by the embodiment of the invention can realize high reliability of power on/off. Because the on-off scheme of a discrete component rather than an integrated circuit is adopted, high reliability and low failure probability are achieved. Due to the matching of the internal controller 12, the startup logic of short press and long press, the software shutdown logic of normal shutdown operation and the logic of forced shutdown by hardware of long press are adopted, so that the startup and shutdown scheme provided by the embodiment of the invention has high reliability, can prevent mistaken touch startup during transportation and use, and can also prevent risks such as overdischarge of a built-in battery and the like.
Alternatively, if the battery power supply is the same voltage as the controller 12 power supply, the controller 12 may be powered directly by the battery. If the voltage of the battery power supply is different from that of the controller 12 power supply, a voltage boosting and reducing circuit can be added on the power supply path of the battery and the controller 12 to boost or reduce the voltage signal V1 output by the battery to the voltage signal V2 which can be used by the controller 12, and then supply the electric energy output by the battery to the controller 12. For example, the battery outputs a voltage signal of 8V, and the supply voltage of the controller 12 is 3.3V. The voltage signal output by the battery can be reduced to 3.3V by using a voltage reduction circuit and then connected to the drain of the Q2.
Alternatively, only a single controller 12 may be included in the on-off control device, or a plurality of controllers 12 may be included. Where multiple controllers 12 are included, power may be applied to other controllers 12 within the on-off control device after one controller 12 is powered on.
Alternatively, discrete components in the switching controller may be integrated, and the power output from the battery may be supplied to the controller 12 through the integrated circuit.
Yet another exemplary embodiment of the present invention provides an electronic device, as shown in fig. 5, comprising a power on/off control device 51 and a battery 52, the power on/off control device 51 comprising a key, a controller and a switch circuit, wherein:
the key is used for receiving normal shutdown operation triggered by a user;
the controller is used for outputting a first control signal when detecting a first shutdown signal corresponding to the normal shutdown operation;
the switch circuit is used for controlling the battery 52 to stop supplying power to the controller according to the first control signal;
a detection pin of the controller is used for detecting the first shutdown signal; the power supply pin of the controller is used for acquiring a power supply signal output by the battery 52; and a control pin of the controller is used for outputting the first control signal.
Optionally, the normal shutdown operation includes: and pressing the key for a first time length.
Optionally, the key is further configured to: receiving a short startup operation triggered by a user;
the switch circuit is further configured to control the battery 52 to start inputting the power supply signal to the power supply pin of the controller according to the first power-on signal corresponding to the short power-on operation.
Optionally, the controller is further configured to control the control pin to output a second control signal when the power supply signal is received through the power supply pin;
the switch circuit is further configured to control the battery 52 to keep inputting the power supply signal to the power supply pin of the controller according to the second control signal.
Optionally, the key is further configured to receive a long boot operation triggered by a user;
the controller is configured to control the control pin to output the second control signal when the power supply signal is received through the power supply pin and a second power-on signal corresponding to the long power-on operation is detected within a second duration through the detection pin.
Optionally, the short boot operation includes: the duration of the continuous pressing of the key is less than the third duration;
the long boot operation includes: and operating the key for a duration longer than or equal to a fourth duration.
Optionally, the switching circuit comprises:
the diode is used for outputting a first voltage signal to the first triode according to a first starting signal corresponding to the short starting operation;
the device further comprises: a charging circuit;
the charging circuit is configured to charge the battery 52 when detecting a first power-on signal corresponding to the short power-on operation, and output a second voltage signal to the first triode during charging;
the first triode is used for outputting a third voltage signal to the second triode according to the first voltage signal and the second voltage signal;
and the second triode is used for inputting the power supply signal of the battery 52 to the power supply pin of the controller according to the third electric signal.
Optionally, the switching circuit further includes:
and the third triode is used for outputting a fourth voltage signal to the first triode according to the second control signal, and the voltage value of the fourth voltage signal is the same as that of the first voltage signal.
Optionally, the key is further configured to: receiving forced shutdown operation triggered by a user;
the controller is further configured to output a third control signal when a second shutdown signal corresponding to the forced shutdown operation is detected;
the switch circuit is further configured to control the battery 52 to stop supplying power to the controller according to the third control signal.
The electronic device shown in fig. 5 may be provided with the on-off control device of the embodiment shown in fig. 1-4, and the related description of the embodiment shown in fig. 1-4 may be referred to for the part of this embodiment that is not described in detail. The implementation process and technical effect of the technical solution refer to the descriptions in the embodiments shown in fig. 1 to fig. 4, and are not described herein again.
The technical solutions and the technical features in the above embodiments may be used alone or in combination without conflict, and all embodiments that fall within the scope of the present invention are equivalent embodiments within the scope of the present invention as long as they do not exceed the knowledge of those skilled in the art.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (18)

1. An on/off control device, comprising:
the key is used for receiving normal shutdown operation triggered by a user;
the controller is used for outputting a first control signal when detecting a first shutdown signal corresponding to the normal shutdown operation;
the switching circuit is used for controlling the battery to stop supplying power to the controller according to the first control signal;
a detection pin of the controller is used for detecting the first shutdown signal; the power supply pin of the controller is used for acquiring a power supply signal output by the battery; and a control pin of the controller is used for outputting the first control signal.
2. The apparatus of claim 1, wherein the normal shutdown operation comprises: and pressing the key for a first time length.
3. The apparatus of claim 1, wherein the key is further configured to: receiving a short startup operation triggered by a user;
the switch circuit is further configured to control the battery to start inputting the power supply signal to a power supply pin of the controller according to a first power-on signal corresponding to the short power-on operation.
4. The apparatus of claim 3, wherein the controller is further configured to control the control pin to output a second control signal when the power supply signal is received through the power supply pin;
the switch circuit is further configured to control the battery to keep inputting the power supply signal to a power supply pin of the controller according to the second control signal.
5. The device of claim 4, wherein the button is further configured to receive a long boot operation triggered by a user;
the controller is configured to control the control pin to output the second control signal when the power supply signal is received through the power supply pin and a second power-on signal corresponding to the long power-on operation is detected within a second duration through the detection pin.
6. The apparatus of claim 5, wherein the short boot operation comprises: the duration of the continuous pressing of the key is less than the third duration;
the long boot operation includes: and operating the key for a duration longer than or equal to a fourth duration.
7. The apparatus of claim 4, wherein the switching circuit comprises:
the diode is used for outputting a first voltage signal to the first triode according to a first starting signal corresponding to the short starting operation;
the device further comprises: a charging circuit;
the charging circuit is used for charging through the battery when a first starting signal corresponding to the short starting operation is detected, and outputting a second voltage signal to the first triode in the charging process;
the first triode is used for outputting a third voltage signal to the second triode according to the first voltage signal and the second voltage signal;
and the second triode is used for inputting the power supply signal of the battery to the power supply pin of the controller according to the third electric signal.
8. The apparatus of claim 7, wherein the switching circuit further comprises:
and the third triode is used for outputting a fourth voltage signal to the first triode according to the second control signal, and the voltage value of the fourth voltage signal is the same as that of the first voltage signal.
9. The apparatus of claim 1, wherein the key is further configured to: receiving forced shutdown operation triggered by a user;
the controller is further configured to output a third control signal when a second shutdown signal corresponding to the forced shutdown operation is detected;
the switch circuit is further configured to control the battery to stop supplying power to the controller according to the third control signal.
10. An electronic device, comprising an on-off control device and a battery, the on-off control device comprising a key, a controller and a switching circuit, wherein:
the key is used for receiving normal shutdown operation triggered by a user;
the controller is used for outputting a first control signal when detecting a first shutdown signal corresponding to the normal shutdown operation;
the switch circuit is used for controlling the battery to stop supplying power to the controller according to the first control signal;
a detection pin of the controller is used for detecting the first shutdown signal; the power supply pin of the controller is used for acquiring a power supply signal output by the battery; and a control pin of the controller is used for outputting the first control signal.
11. The electronic device of claim 10, wherein the normal shutdown operation comprises: and pressing the key for a first time length.
12. The electronic device of claim 10, wherein the key is further configured to: receiving a short startup operation triggered by a user;
the switch circuit is further configured to control the battery to start inputting the power supply signal to a power supply pin of the controller according to a first power-on signal corresponding to the short power-on operation.
13. The electronic device of claim 12, wherein the controller is further configured to control the control pin to output a second control signal when the power supply signal is received through the power supply pin;
the switch circuit is further configured to control the battery to keep inputting the power supply signal to a power supply pin of the controller according to the second control signal.
14. The electronic device of claim 13, wherein the button is further configured to receive a long boot operation triggered by a user;
the controller is configured to control the control pin to output the second control signal when the power supply signal is received through the power supply pin and a second power-on signal corresponding to the long power-on operation is detected within a second duration through the detection pin.
15. The electronic device of claim 14, wherein the short boot operation comprises: the duration of the continuous pressing of the key is less than the third duration;
the long boot operation includes: and operating the key for a duration longer than or equal to a fourth duration.
16. The electronic device of claim 13, wherein the switching circuit comprises:
the diode is used for outputting a first voltage signal to the first triode according to a first starting signal corresponding to the short starting operation;
the device further comprises: a charging circuit;
the charging circuit is used for charging through the battery when a first starting signal corresponding to the short starting operation is detected, and outputting a second voltage signal to the first triode in the charging process;
the first triode is used for outputting a third voltage signal to the second triode according to the first voltage signal and the second voltage signal;
and the second triode is used for inputting the power supply signal of the battery to the power supply pin of the controller according to the third electric signal.
17. The apparatus of claim 16, wherein the switching circuit further comprises:
and the third triode is used for outputting a fourth voltage signal to the first triode according to the second control signal, and the voltage value of the fourth voltage signal is the same as that of the first voltage signal.
18. The apparatus of claim 10, wherein the key is further configured to: receiving forced shutdown operation triggered by a user;
the controller is further configured to output a third control signal when a second shutdown signal corresponding to the forced shutdown operation is detected;
the switch circuit is further configured to control the battery to stop supplying power to the controller according to the third control signal.
CN202080004636.7A 2020-05-07 2020-05-07 On-off control device and electronic equipment Pending CN112639634A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/088901 WO2021223139A1 (en) 2020-05-07 2020-05-07 Power on/off control device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112639634A true CN112639634A (en) 2021-04-09

Family

ID=75291178

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202080004636.7A Pending CN112639634A (en) 2020-05-07 2020-05-07 On-off control device and electronic equipment

Country Status (2)

Country Link
CN (1) CN112639634A (en)
WO (1) WO2021223139A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113193631A (en) * 2021-06-01 2021-07-30 浙江大华技术股份有限公司 Power supply control device, power supply control method, storage medium, and electronic device
CN113220352A (en) * 2021-05-17 2021-08-06 杭州宏杉科技股份有限公司 Shutdown control method and device
CN113867201A (en) * 2021-09-23 2021-12-31 青岛小鸟看看科技有限公司 Starting control system and virtual reality equipment

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114527695A (en) * 2022-02-10 2022-05-24 美的集团(上海)有限公司 Startup and shutdown control method of robot system and robot system
CN115173508A (en) * 2022-06-22 2022-10-11 上海派智能源有限公司 Multistage battery power-off circuit and electronic control system
CN115576407B (en) * 2022-11-11 2023-03-10 海的电子科技(苏州)有限公司 Upgrading circuit of single chip microcomputer and electronic equipment with same

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4092711A (en) * 1976-12-29 1978-05-30 Honeywell Information Systems Inc. Power supply with automatic shutdown
CN107979363A (en) * 2017-12-26 2018-05-01 广州视源电子科技股份有限公司 On/off circuit and electronic equipment
CN108540115A (en) * 2018-05-31 2018-09-14 深圳市文鼎创数据科技有限公司 A kind of low consumption circuit and electronic device
CN208548999U (en) * 2018-06-19 2019-02-26 伍军华 Bluetooth headset and its charging system
CN109417206A (en) * 2018-09-03 2019-03-01 深圳迈瑞生物医疗电子股份有限公司 A kind of electric power management circuit
WO2020062818A1 (en) * 2018-09-28 2020-04-02 深圳市崧盛电子股份有限公司 Circuit for improving power supply starting time, and driving power supply

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102023146B1 (en) * 2011-07-26 2019-09-20 마벨 월드 트레이드 리미티드 Zero power hibernation mode with instant on
CN105099415A (en) * 2015-09-16 2015-11-25 成都锐奕信息技术有限公司 Complete power-off opening/closing circuit
CN105720960B (en) * 2016-03-11 2019-01-29 武汉中旗生物医疗电子有限公司 On/off circuit
CN206790159U (en) * 2017-05-15 2017-12-22 梅特勒-托利多(常州)测量技术有限公司 Power-supply controller of electric, component and weighing device
CN108628431A (en) * 2018-06-06 2018-10-09 深圳市华思旭科技有限公司 Electronic equipment and its certainly energy consumption control circuit

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4092711A (en) * 1976-12-29 1978-05-30 Honeywell Information Systems Inc. Power supply with automatic shutdown
CN107979363A (en) * 2017-12-26 2018-05-01 广州视源电子科技股份有限公司 On/off circuit and electronic equipment
CN108540115A (en) * 2018-05-31 2018-09-14 深圳市文鼎创数据科技有限公司 A kind of low consumption circuit and electronic device
CN208548999U (en) * 2018-06-19 2019-02-26 伍军华 Bluetooth headset and its charging system
CN109417206A (en) * 2018-09-03 2019-03-01 深圳迈瑞生物医疗电子股份有限公司 A kind of electric power management circuit
WO2020047693A1 (en) * 2018-09-03 2020-03-12 深圳迈瑞生物医疗电子股份有限公司 Power supply management circuit
WO2020062818A1 (en) * 2018-09-28 2020-04-02 深圳市崧盛电子股份有限公司 Circuit for improving power supply starting time, and driving power supply

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113220352A (en) * 2021-05-17 2021-08-06 杭州宏杉科技股份有限公司 Shutdown control method and device
CN113193631A (en) * 2021-06-01 2021-07-30 浙江大华技术股份有限公司 Power supply control device, power supply control method, storage medium, and electronic device
CN113193631B (en) * 2021-06-01 2022-08-16 浙江大华技术股份有限公司 Power supply control device, power supply control method, storage medium, and electronic device
CN113867201A (en) * 2021-09-23 2021-12-31 青岛小鸟看看科技有限公司 Starting control system and virtual reality equipment

Also Published As

Publication number Publication date
WO2021223139A1 (en) 2021-11-11

Similar Documents

Publication Publication Date Title
CN112639634A (en) On-off control device and electronic equipment
CN107425835B (en) Startup and shutdown circuit
CN203982116U (en) A kind of switching on and shutting down control circuit of electronic equipment
US9684362B2 (en) Battery powered device
CN104850021A (en) Start-up and shutdown system
CN112886664A (en) Electronic device
CN110693401A (en) Cleaning robot
CN210742886U (en) Startup and shutdown circuit
CN210780130U (en) Power-off control circuit
US20230318327A1 (en) Stylus
CN112256120A (en) Protection circuit and electronic device
CN217307659U (en) Key control circuit, intelligent door lock and intelligent door
CN107579562B (en) Mobile terminal and battery cell protection circuit
CN210518245U (en) Startup and shutdown circuit and startup and shutdown system
CN217824413U (en) Uninterrupted power supply switching control circuit and device
CN106484064B (en) Power supply control circuit of singlechip system
CN214337781U (en) Control circuit
CN106655465B (en) System clock power supply device, method and electric appliance
CN113225062B (en) Low-cost single-button switch circuit
CN220985528U (en) Discharge circuit and electronic device
CN112596448B (en) Control circuit and electronic device
CN114531022B (en) Starting-up circuit and electronic equipment
US7743265B2 (en) System restart circuit and system restart method thereof
CN220290066U (en) Program-controlled startup and shutdown circuit capable of being forced to shutdown
CN217133576U (en) Startup and shutdown circuit and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination