CN114389590A - Single-key startup and shutdown device, startup and shutdown method and remote restart method - Google Patents

Single-key startup and shutdown device, startup and shutdown method and remote restart method Download PDF

Info

Publication number
CN114389590A
CN114389590A CN202011129936.6A CN202011129936A CN114389590A CN 114389590 A CN114389590 A CN 114389590A CN 202011129936 A CN202011129936 A CN 202011129936A CN 114389590 A CN114389590 A CN 114389590A
Authority
CN
China
Prior art keywords
power supply
key
signal
circuit
enabling
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
CN202011129936.6A
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.)
Aerospace Science and Industry Inertia Technology Co Ltd
Original Assignee
Aerospace Science and Industry Inertia 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 Aerospace Science and Industry Inertia Technology Co Ltd filed Critical Aerospace Science and Industry Inertia Technology Co Ltd
Priority to CN202011129936.6A priority Critical patent/CN114389590A/en
Publication of CN114389590A publication Critical patent/CN114389590A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/94Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the way in which the control signals are generated
    • H03K17/96Touch switches
    • H03K17/962Capacitive touch switches

Landscapes

  • Electronic Switches (AREA)

Abstract

The invention provides a single-key startup and shutdown device, a startup and shutdown method and a remote restart method, wherein the device comprises: the single key circuit is connected with the power supply and is provided with a light touch key, and the light touch key is used for outputting a first enabling signal after receiving a first triggering signal; the switch control circuit is respectively connected with the target power supply equipment, the power supply and the single-key circuit; and the enabling compensation circuit is connected with the switch control circuit and is used for continuously outputting a second enabling signal to the switch control circuit when the touch key receives the first trigger signal so as to enable the switch control circuit to keep the connection between the target power supply equipment and the power supply, and stopping the output of the second enabling signal when the touch key receives the second trigger signal so as to enable the switch control circuit to cut off the connection between the target power supply equipment and the power supply. The problems that power loss is large and remote restarting cannot be achieved due to the fact that two keys are needed to be controlled to be turned on and turned off respectively when the keys are touched are solved.

Description

Single-key startup and shutdown device, startup and shutdown method and remote restart method
Technical Field
The invention relates to the technical field of startup and shutdown of electronic products, in particular to a single-key startup and shutdown device, a startup and shutdown method and a remote restart method.
Background
With the popularization and promotion of universal geological disaster monitoring equipment, field monitoring equipment is developing towards the direction of miniaturization, portability and high integration. For the switch, the traditional mechanical switch has a self-locking function, can keep long on or long off, and can completely cut off the power of the equipment, but has the following defects: the volume is large, the sealing performance is poor, and the device cannot be put into highly integrated equipment; the switch contact is easy to wear after long-term current impact. The light-touch switch is small in size and low in price, has low self power consumption compared with a mechanical self-locking switch, utilizes the transient contact to trigger the electronic switch circuit to realize the enabling and the turning-off of the power supply, and can solve the defects of the mechanical self-locking switch; however, in the process of implementing the technical solution of the invention in the embodiments of the present application, the inventors of the present application find that the above-mentioned technology still has at least the following technical problems:
firstly, the existing light touch key on-off circuit is limited by the structure of a light touch key, has no on-off clamping structure, cannot realize convenient operations of on-off by pressing for odd times and off by pressing for even times like a traditional mechanical switch, and in the application of the field of on-off, even if a peripheral circuit matched with the light touch key is matched, two keys are still required to be used for controlling on-off respectively, one more key means that a group of matched sub-circuits is required to be added, the size is difficult to reduce, and the miniaturization, portability and high-integration development of field monitoring equipment are not facilitated; secondly, a plurality of devices such as a triode, an MOS (metal oxide semiconductor) tube and a resistor need to be matched for realizing the on-off function through the light touch key, and high power loss exists when the on-off control is implemented, so that the device is difficult to be applied to low-power-consumption equipment in a solar power supply mode, such as extremely low power consumption requirements of field monitoring equipment for long-term working, and even circuit design parameters need to be adjusted due to the limitation of the grid electrode of the MOS tube when the input power supply voltage changes; moreover, remote restart operation cannot be realized, and inconvenience is brought to situations such as sudden program runaway of the target power supply equipment.
Disclosure of Invention
In view of the above-mentioned problems of the need for two keys to perform on/off control, large power loss, and incapability of restarting due to the inability of pressing the light touch key on an odd number of times and pressing the light touch key off an even number of times, the present invention is proposed to provide a single-key on/off device, an on/off method, and a remote restart method that overcome or at least partially solve the above-mentioned problems.
According to an aspect of the present invention, there is provided a one-key switch device, comprising: the single-key circuit is connected with the power supply and is provided with a light touch key, and the light touch key is used for outputting a first enabling signal after receiving a first trigger signal; the switch control circuit is respectively connected with a target power supply device, the power supply and the single-key circuit and is used for communicating the power supply with the target power supply device when receiving the first enabling signal; and the enabling compensation circuit is connected with the switch control circuit and is used for continuously outputting a second enabling signal to the switch control circuit when the light touch key receives a first trigger signal so as to enable the switch control circuit to keep the target power supply equipment and the power supply connected, and stopping the output of the second enabling signal when the light touch key receives a second trigger signal so as to enable the switch control circuit to cut off the connection between the target power supply equipment and the power supply.
Preferably, the switch control circuit includes: the power supply conversion device comprises a power supply conversion chip, wherein an enabling signal input end of the power supply conversion chip is connected with the single-key circuit, a voltage input end of the power supply conversion chip is connected with the power supply, and a voltage output end of the power supply conversion chip is respectively connected with the enabling compensation circuit and the target power supply equipment.
Preferably, the enable compensation circuit includes: the voltage input end of the microcontroller is connected with the voltage output end of the power supply conversion chip, the first signal port of the microcontroller is connected with the output end of the single-key circuit, and the second signal port of the microcontroller is connected with the enabling signal input end of the power supply conversion chip.
Preferably, the single-key switch device further includes: the second signal port of the microcontroller is connected with the enabling signal end of the power supply conversion chip through the first conducting diode; and the anode of the second conduction diode is connected with the output end of the single-key circuit, and the cathode of the second conduction diode is connected with the cathode of the first conduction diode.
Preferably, the single-key switch device further includes: and the anode of the delay capacitor is connected with the cathode of the first conduction diode and the enable signal input end of the power supply conversion chip, and the output end of the delay capacitor is grounded.
Preferably, the single-key switch device further includes: the positive electrode of the first filter capacitor is connected with the voltage input end of the power conversion chip, and the negative electrode of the first filter capacitor is grounded; and the anode of the second filter capacitor is connected with the voltage input end of the microcontroller, and the cathode of the second filter capacitor is grounded.
According to another aspect of the present invention, there is provided a power on/off method, including:
the touch key of the single-key circuit is triggered to output a first enabling signal to drive the switch control circuit to be communicated with the power supply and the target power supply equipment;
the switch control circuit outputs a first voltage signal to an enable compensation circuit, drives the enable compensation circuit to continuously output a second enable signal, and enables the switch control circuit to keep the target power supply device connected with the power supply;
and after the touch key of the single-key circuit is triggered again, outputting the first enabling signal to drive the enabling compensation circuit to stop outputting the second enabling signal, so that the switch control circuit cuts off the connection between the target power supply equipment and the power supply.
Preferably, when the enable compensation circuit is driven to continuously output the second enable signal, the method further includes:
the enabling compensation circuit acquires first key pressing time, and the first key pressing time represents the duration of outputting the first enabling signal when the single key pressing circuit receives a first trigger signal;
the enabling compensation circuit judges whether the first key time is greater than a time threshold, wherein the time threshold is the minimum duration of the triggered state of the light touch key of the single-key circuit;
if yes, the enabling compensation circuit continuously outputs the second enabling signal.
Preferably, when the enable compensation circuit is driven to stop the output of the second enable signal, the method further includes:
the enabling compensation circuit acquires second key pressing time, and the second key pressing time represents the duration of outputting the first enabling signal when the single key pressing circuit receives a second trigger signal;
judging whether the second key pressing time is greater than the time threshold value;
if so, the enable compensation circuit stops the output of the second enable signal.
In accordance with another aspect of the present invention, there is provided a remote reboot method including:
receiving a restart instruction, and enabling the compensation circuit to stop outputting the second enabling signal so as to enable the switch control circuit to disconnect the power supply and the target power supply equipment;
the enabling compensation circuit restores the output of the second enabling signal so that the switch control circuit restores the connection between the power supply and the target power supply equipment.
The invention has the beneficial effects that: the single-key switch device is reasonable and ingenious in structural design, the enabling compensation circuit is driven to be started by the switch control circuit, and then the enabling compensation circuit drives the switch control circuit to keep the target power supply equipment and the power supply to be continuously communicated, so that the circulation of enabling supply is formed; the convenient control of odd-number trigger connection and even-number trigger disconnection similar to a mechanical self-locking switch is realized, so that the on-off control only adopting a single key is realized on a low-power-consumption key such as a light-touch key, and meanwhile, additional keys and sub-circuits matched with the keys are saved; when the control function of the switch machine with a single key is realized, the design of excessive triodes, MOS (metal oxide semiconductor) tubes and resistors is avoided, and the power loss and the power consumption requirement of the switch machine device during operation are effectively reduced, so that the low power consumption requirement of the field detection equipment during long-term operation can be met; the problem of the light touch button because of can't realize that odd number presses down to put through, press down the disconnection for even number time and need two buttons to carry out the control of switching on and shutting down respectively, the power consumption loss is big is solved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic structural diagram A of a single-key switch device according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram B of a single-key switch device according to an embodiment of the present invention.
Detailed Description
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 only a part of the embodiments of the present invention, and not all of the embodiments. 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.
Referring to fig. 1, an embodiment of the present invention provides a single-key switch device according to an aspect of the present invention, including: the single-key circuit 1 is connected with a power supply and is provided with a light touch key K1, and the light touch key K1 is used for outputting a first enabling signal after receiving a first trigger signal; the switch control circuit 2 is respectively connected with a target power supply device and the power supply and the single-key circuit 1, and is used for connecting the power supply and the target power supply device when receiving the first enabling signal, the enable compensation circuit 3 is connected with the switch control circuit 2, the enable compensation circuit 3 is used for continuously outputting a second enabling signal to the switch control circuit 2 when the light touch key K1 receives a first trigger signal, so that the switch control circuit 2 keeps the connection between the target power supply device and the power supply, and stops outputting the second enabling signal when the light touch key K1 receives a second trigger signal, so that the switch control circuit 2 cuts off the connection between the target power supply device and the power supply.
Specifically, the switch device is mainly used for field detection equipment powered by solar energy and the like, the light touch key K1 is a common light touch key on the market, and the switch device is switched on and off after being switched on and off when pressed or touched by the elastic metal sheet in the light touch key when the light touch key is bounced under stress; the output end of the switch control circuit 2 is connected with a target power supply device; the first trigger signal refers to the contact key K1 being pressed an odd number of times, and the second trigger signal refers to the contact key K1 being pressed an even number of times.
When the light touch key K1 is triggered for the first time, namely, when the light touch key K1 is triggered for the odd number of times, the switch control circuit 2 is used for connecting the power supply and the target power supply equipment, and simultaneously the power supply is supplied to the enabling compensation circuit 3, so that the enabling compensation circuit 3 continuously outputs a second enabling signal to keep the switch control circuit 2 connected with the power supply, namely, the power supply and the target power supply equipment connected, and the starting function and the starting state of the target power supply equipment are maintained when the light touch key K1 is triggered for the odd number of times; furthermore, when the light touch key K1 is triggered for the second time, that is, when the light touch key K1 is triggered for an odd number of times, the enable compensation circuit 3 stops outputting the second enable signal, so that the connection between the power supply and the target power supply device cannot be maintained, and after the trigger state of the light touch key K1 is finished, the connection between the power supply and the target power supply device is disconnected, so that the shutdown function of the target power supply device is realized when the light touch key K1 is triggered for an even number of times.
In other words, through the switch device, the low-power-consumption key such as the light-touch key K1 can realize convenient operation similar to a mechanical self-locking switch which is pressed for on by odd times and pressed for off by even times, so that the single key is used for switching on and off control, additional keys and matched sub-circuits are saved, the power loss and the power consumption requirement of the switch device in operation are effectively reduced, and the low-power-consumption requirement of long-term operation of field detection equipment powered by solar energy and the like can be met.
On the other hand, because additional keys and a matched sub-circuit are not required to be additionally arranged, the volume of the on-off device is favorably reduced, and the development of miniaturization, portability and high integration of field detection equipment is favorably realized.
Referring to fig. 1 to 2, preferably, the switch control circuit 2 includes: the power conversion chip U1, power conversion chip U1's enable signal input end with single key circuit 1 connects, power conversion chip U1's voltage input end with the power is connected, power conversion chip U1's voltage output end respectively with enable compensating circuit 3, target power supply unit connect.
Specifically, the power conversion chip U1 is configured to convert a power input voltage into a set output voltage, so as to ensure that a voltage supplied to a target power supply device meets an operating requirement of the target power supply device; the output end of the power conversion chip U1 is connected with a target power supply device, and the power conversion chip U1 can start to work only when the enable signal input end of the power conversion chip receives an enable signal, so that the power supply and the target power supply device are connected; when the enable signal input end of the power conversion chip U1 fails to receive the enable signal, the power conversion chip cannot start working, and thus the connection between the power supply and the target power supply device is disconnected.
Preferably, the enable compensation circuit 3 includes: microcontroller D1, microcontroller D1's voltage input end with power conversion chip U1's voltage output end is connected, microcontroller D1's first signal port with the output of single key circuit 1 is connected, microcontroller D1's second signal port with power conversion chip U1's enable signal input end is connected.
Specifically, the microcontroller D1 can output a second enable signal through its second signal port in its active state; when the microcontroller D1 is in the active state, the first signal port of the microcontroller D1 receives the enable signal, and stops outputting the second enable signal of the second signal port; when the microcontroller D1 is not activated, it cannot output the second enable signal through its second signal port because it is not operating; the voltage input end of the microcontroller D1 is connected with the voltage output end of the power conversion chip U1, and the first signal port of the microcontroller D1 is connected with the output end of the single-key circuit 1; a second signal port of the microcontroller D1 is connected with an enable signal input end of the power supply conversion chip U1; when the single-key circuit 1 is triggered for odd times, the microcontroller D1 can be started by the power supply of the power conversion chip U1, and the starting state of the microcontroller D1 is maintained, so that the microcontroller D1 can continuously output the second enabling signal, and the single-key starting is realized; when the single-key circuit 1 is triggered for even number of times, the first enabling signal output by the single-key circuit 1 can be sent to the first signal port of the microcontroller D1, so that the microcontroller D1 stops the output of the second enabling signal, the power conversion chip U1 cannot keep the starting state, and the power conversion chip U1 cannot continue to supply power to the microcontroller D1, so that the microcontroller D1 is in the non-starting state, and because the microcontroller does not work, the second enabling signal cannot be output through the second signal port, and the single-key shutdown is realized.
Preferably, the single-key switch device further includes: a first on diode Q2, through which a second signal port of the microcontroller D1 is connected to an enable signal terminal of the power conversion chip U1; and a second turn-on diode Q1, wherein the anode of the second turn-on diode Q1 is connected with the output end of the single-key circuit 1, and the cathode of the second turn-on diode Q1 is connected with the cathode of the first turn-on diode Q2.
Specifically, the first on diode Q2 is arranged to ensure that the first enable signal output by the single-key circuit 1 is not sent to the second signal port of the microcontroller D1; the second conducting diode Q1 is set to ensure that the second enabling signal sent by the microcontroller D1 is not sent to the single-key circuit 1.
Further, the single-key circuit 1 further includes: and the anode of the de-jitter capacitor C1 is connected with the light touch key K1, the cathode of the de-jitter capacitor C1 is grounded, and the de-jitter capacitor C1 is used for hardware filtering de-jitter of the light touch key K1. A first signal port of the microcontroller D1 is connected with the anode of the second on diode Q1 or with the anode of the debounce capacitor C1 of the single key circuit 1; so that when the micro-touch button is triggered, a first enabling signal sent by the micro-touch button can be transmitted to a first information port of the microcontroller D1. The first enable signal refers to a high-level signal output after a power supply input is de-jittered by the de-jitter capacitor C1 when the micro-touch button is triggered.
Preferably, the single-key switch device further includes: and the anode of the delay capacitor C3 is connected with the cathode of the first conducting diode Q2 and the enable signal input end of the power conversion chip U1, and the output end of the delay capacitor C3 is grounded.
Specifically, the delay capacitor C3 is configured to charge the delay capacitor C3 while the microcontroller D1 continuously outputs the second enable signal to control the power conversion chip U1 to maintain the startup state; when the microcontroller D1 stops outputting the second enable signal, the delay capacitor C3 can maintain a high level signal for a short time, so that the power conversion chip U1 can still maintain a short-time startup state, thereby implementing a delayed shutdown; the purpose of delayed shutdown is to ensure that the reset or restart of the microcontroller D1 is completed without affecting the startup state of the target power supply device in case of emergencies such as program runaway of the microcontroller D1; the process of resetting or remote restarting of the microcontroller D1 is as follows:
the microcontroller D1 receives the reset instruction, and starts resetting or restarting, at which time the second signal port of the microcontroller D1 fails and cannot output the second enable signal, and if there is no delay capacitor C3, the resetting or restarting of the microcontroller D1 may cause the power conversion chip U1 to fail to maintain its start state, thereby causing the shutdown of the target power supply device, affecting the device use state, and the power conversion chip U1 may not continue to supply power to the microcontroller D1, thereby causing the microcontroller D1 to fail to complete the reset or restart operation; in this embodiment, through the delay capacitor C3, the microcontroller D1 charges the delay capacitor C3 when normally outputting the second enable signal, and when the microcontroller D1 is reset or restarted, the delay capacitor C3 discharges to enable the power conversion chip U1 to still maintain the startup state for a period of time; after the microcontroller D1 is reset or restarted, since the power supply and first signal port of the power conversion chip U1 does not receive the first enable signal output by the single key circuit 1, the microcontroller D1 can continue to provide the output of the second enable signal, and the connection between the power conversion chip U1 and the power supply is again ensured, so as to complete the reset or restart of the microcontroller D1 under the condition that the startup state of the target power supply device is not affected.
Preferably, the single-key switch device further includes: the positive electrode of the first filter capacitor C2 is connected with the voltage input end of the power conversion chip U1, and the negative electrode of the first filter capacitor C2 is grounded; a second filter capacitor C4, wherein the anode of the second filter capacitor C4 is connected with the voltage input end of the microcontroller D1, and the cathode of the second filter capacitor C4 is grounded.
Further, the first filter capacitor C2 and the second filter capacitor C4 respectively have a filter effect on the access voltage;
the negative electrode of the second filter capacitor C4 is also connected with the grounding end of the microcontroller D1; the switch device can also realize remote restart control of target power supply equipment through the charging and discharging functions of the second filter capacitor C4; the process is as follows:
the microcontroller D1 receives the restart instruction, the microcontroller D1 stops the output of the second enable signal, so that the power conversion chip U1 cannot maintain the startup state to disconnect the connection between the power supply and the target power supply device, and at this time, the power conversion chip U1 still maintains the startup state for a period of time due to the discharge of the delay capacitor C3, because the power conversion chip U1 will continue to supply power to the microcontroller D1 when in the startup state, the second filter capacitor C4 will not discharge until the power consumption of the delay capacitor C3, and after the power conversion chip U1 disconnects the power supply from the target power supply device, the second filter capacitor C4 discharges to provide working voltage for the microcontroller D1, therefore, the microcontroller D1 outputs the second enable signal again to drive the power conversion chip U1 to connect the power source and the target power supply device and maintain the connected state. That is to say, on the basis of realizing the control function of the single-key switch through a simple circuit, the device can additionally realize the remote restart function of the target power supply equipment and complete the reset or restart function of the microcontroller D1 under the condition of not influencing the on state of the target power supply equipment by only additionally arranging the delay capacitor C3. The device can deal with the emergency situations that the target power supply equipment program is required to be restarted due to the running away.
According to another aspect of the present invention, there is provided a power on/off method, including:
the touch key K1 of the single-key circuit 1 is triggered to output a first enabling signal to drive the switch control circuit 2 to connect the power supply and the target power supply equipment;
the switch control circuit 2 outputs a first voltage signal to the enable compensation circuit 3, and drives the enable compensation circuit 3 to continuously output a second enable signal, so that the switch control circuit 2 keeps the target power supply device connected with the power supply;
and after the light touch key K1 of the single key circuit 1 is triggered again, outputting the first enable signal to drive the enable compensation circuit 3 to stop outputting the second enable signal, so that the switch control circuit 2 cuts off the connection between the target power supply device and the power supply.
Preferably, when the enable compensation circuit 3 is driven to continuously output the second enable signal, the method further includes:
the enabling compensation circuit 3 acquires a first key pressing time, wherein the first key pressing time represents the duration of outputting the first enabling signal when the single key circuit 1 receives a first trigger signal;
the enabling compensation circuit 3 judges whether the first key pressing time is greater than a time threshold, wherein the time threshold is the minimum duration of the trigger state of the light touch key K1 of the single key circuit 1;
if so, the enable compensation circuit 3 continuously outputs the second enable signal.
Preferably, when the enable compensation circuit 3 is driven to stop the output of the second enable signal, the method further includes:
the enabling compensation circuit 3 acquires a second key pressing time, wherein the second key pressing time represents the duration of outputting the first enabling signal when the single key pressing circuit 1 receives a second trigger signal;
judging whether the second key pressing time is greater than the time threshold value;
if so, the enable compensation circuit 3 stops the output of the second enable signal.
Specifically to the internal unit of the circuit, the starting method comprises the following steps:
the light touch key K1 of the single key circuit 1 is triggered to output a first enabling signal to drive the power conversion chip U1 to connect the power supply and the target power supply equipment;
the switch control circuit 2 outputs a first voltage signal to the microcontroller D1 to drive the microcontroller D1 to continuously output a second enable signal, so that the power conversion chip U1 maintains the connection between the power supply and the target power supply device;
the light touch key K1 of the single key circuit 1 is triggered again to output the first enable signal, and the microcontroller D1 is driven to stop outputting the second enable signal, so that the power conversion chip U1 cuts off the connection between the power supply and the target power supply device.
Preferably, when the microcontroller D1 is driven to continuously output the second enable signal, the method further includes:
the microcontroller D1 obtains a first key pressing time, where the first key pressing time represents a duration of outputting the first enable signal when the single key circuit 1 receives the first trigger signal, that is, a duration of outputting the first enable signal by the single key circuit 1 for an odd number of times;
the microcontroller D1 determines whether the first key pressing time is greater than a time threshold, wherein the time threshold is the minimum duration of the trigger state of the light touch key K1 of the single key circuit 1;
if yes, the microcontroller D1 continuously outputs the second enable signal;
if not, the microcontroller D1 turns off not to output the second enable signal.
Specifically, the time threshold is the time required for the de-jitter of the de-jitter capacitor C1 when the light touch key K1 is triggered, and the operation stability of the device can be effectively ensured.
In another preferred embodiment, the time threshold may also be set to a specific time, such as 2 seconds/3 seconds, so that only when the light touch key K1 is pressed for 2 seconds/3 seconds, the second enable signal is continuously output to maintain the connection between the power supply and the target power supply device, thereby implementing the long-press power-on function of the single key.
Preferably, when the microcontroller D1 is driven to stop outputting the second enable signal, the method further includes:
acquiring second key pressing time, wherein the second key pressing time represents the duration of outputting the first enabling signal when the single key circuit 1 receives the first trigger signal, namely the duration of outputting the first enabling signal for even number of times by the single key circuit 1;
judging whether the second key pressing time is greater than the time threshold value;
if yes, the microcontroller D1 stops outputting the second enable signal;
if not, the microcontroller D1 maintains the continuous output of the second enable signal.
Specifically, by comparing the time of the second key with the time threshold, the interference of the shake generated when the light touch key K1 is triggered on the operation of the device can be eliminated;
in another preferred embodiment, the time threshold may also be set to a specific time, for example, 2 seconds/3 seconds, so that only when the tact key K1 is pressed for 2 seconds/3 seconds, the output of the second enable signal is stopped, and the power supply is disconnected from the target power supply device, thereby implementing the long-press shutdown function of the single key.
Furthermore, the device also realizes the startup of the long-press touch button with odd number and the shutdown of the long-press touch button with even number, thereby effectively preventing the improper switching of the target power supply equipment caused by the mistaken touch or external interference of the touch button K1, and playing a good adaptation effect on the application environment of the field detection equipment so as to facilitate the popularization of the device in the field detection equipment. It should be noted that, because of the MO tube, the MOs tube needs to be arranged in the conventional switch device, and the MOs tube has the problem that the gate voltage is over-limit and is easily damaged, the applicable power supply range of the conventional switch device is small; and this device, except that power conversion chip U1, microcontroller D1 inner structure, this device need not to set up the MOS pipe again, and then even the voltage of power takes place great change, also can be through power conversion chip U1, its self voltage regulation characteristic of microcontroller D1, make this device still can normal operating, so the output voltage of this device even if the power changes also need not carry out the adjustment of any circuit parameter, the mains voltage scope that this device is suitable for has greatly been improved, especially, be fit for the application of the unstable field monitoring facilities of voltage that this kind of power of solar energy power supply can provide.
In accordance with another aspect of the present invention, there is provided a remote reboot method including:
receiving a restart instruction, the enable compensation circuit 3 stops outputting the second enable signal, so that the switch control circuit 2 disconnects the power supply and the target power supply equipment;
the enable compensation circuit 3 restores the output of the second enable signal so that the switch control circuit 2 restores the connection between the power supply and the target power supply device.
In particular to the internal unit of the circuit, the remote restart method comprises:
receiving a restart instruction, stopping outputting a second enable signal by the microcontroller D1 to disconnect the power supply and the target power supply device by the power conversion chip U1;
the microcontroller D1 restores the output of the second enable signal to connect the power source and the target power supply device of the power conversion chip U1.
Further, after receiving the restart instruction and the microcontroller D1 stops outputting the second enable signal, the delay capacitor C3 discharges to drive the power conversion chip U1 to keep the power connection with the target power supply device until the electric quantity of the delay capacitor C3 is exhausted, so that the power conversion chip U1 disconnects the power connection with the target power supply device;
the second filter capacitor C4 discharges to provide an operating voltage to the microcontroller D1, which drives the microcontroller D1 to re-output the second enable signal, thereby driving the microcontroller D1 to recover the output of the second enable signal.
When the device is started, the touch key K1 is pressed, the anode of the second conduction diode Q1 is communicated with an input power supply through the touch key K1 and then becomes high-level conduction, so that a first enabling signal of high level is sent to the enabling end of the power conversion chip U1 through the common cathode of the second conduction diode Q1 and the first conduction diode Q2, the power conversion chip U1 starts to work, and the delay capacitor C3 is charged. After the power conversion chip U1 works, power starts to be supplied to the microcontroller D1, after the microcontroller D1 is powered on, the first signal port is set to an input state, and starts to detect the duration time of the key signal at a high level, when the timing exceeds the delay debounce time, the start key is considered to be valid, the second signal port is set to an output state, and a second enable signal at a high level is sent to the anode of the first conduction diode Q2. When the tact button K1 is not released, the voltage of the positive electrode of the second on diode Q1 is the power supply voltage, and is higher than the voltage of the positive electrode of the first on diode Q2 (i.e., the voltage of the second enable signal output from the second signal port of the microcontroller D1), so that the second on diode Q1 is turned on, and the first on diode Q2 is turned off. After the light touch key K1 is released, the second conducting diode Q1 is cut off, the first conducting diode Q2 is conducted, and the common cathode of the second conducting diode Q1 and the first conducting diode Q2 can still send a second enabling signal with a high level to the enabling signal output end of the power conversion chip U1, so that the enabling of the power conversion chip U1 is maintained, and the microcontroller D1 works normally. Thereby realizing the starting function.
When the device is turned off, the light touch key K1 is pressed, the microcontroller D1 starts to detect the duration time of a key signal with high level after detecting that the level is changed from low to high through the first signal port, the device regards the key as the key for turning off as effective after timing exceeds delay debounce time, and sends a turn-off control level signal with low level to the anode of the diode first conduction diode Q2 through the second signal port, so that the first conduction diode Q2 is cut off. At this time, since the tact key K1 is not released, the second on diode Q1 is in an on state, the power chip U1 is still enabled, and the circuit is not turned off. When the light touch key K1 is released, the second conducting diode Q1 and the first conducting diode Q2 are both simultaneously turned off, and due to the existence of the delay capacitor C3, the delay capacitor C3 discharges, so that the common cathode of the second conducting diode Q1 and the first conducting diode Q2 can still maintain a high level for a period of time, and after the discharge of the delay capacitor C3 is finished, the common cathode of the second conducting diode Q1 and the first conducting diode Q2 becomes a low level, so that the power supply chip U1 is turned off, power supply is stopped, and shutdown is completed.
When the device is restarted remotely, the microcontroller D1 receives a restart instruction, the microcontroller D1 stops the output of the second enable signal, so that the power conversion chip U1 cannot maintain a starting state, so that the connection between the power supply and the target power supply device is disconnected, at this time, due to the discharge of the delay capacitor C3, the power conversion chip U1 still keeps the starting state for a period of time, because the power conversion chip U1 continuously supplies power to the microcontroller D1 in the starting state, at this time, the second filter capacitor C4 cannot discharge until the power of the delay capacitor C3 is consumed, after the power conversion chip U1 disconnects the power supply from the target power supply device, the second filter capacitor C4 discharges to provide a working voltage for the microcontroller D1, so that the microcontroller D1 outputs the second enable signal again, so as to drive the power conversion chip U1 to connect the power supply and the target power supply device, and maintaining the connection state to complete the remote restart control of the target power supply equipment.
When the microcontroller D1 and the microcontroller D1 need to reset after program run or remote restart, the microcontroller D1 resets, and the second signal port of the microcontroller D1 stops outputting signals when the second signal port is the second signal port, so that the first on diode Q2 is cut off. Because of the existence of the delay capacitor C3, the delay capacitor C3 still maintains a high level for a period of time by discharging the common cathode of the second conducting diode Q1 and the first conducting diode Q2, and after the microcontroller D1 is successfully reset, the second signal port is set to an output state, and sends a second enable signal of the high level to the anode of the first conducting diode Q2, so that the first conducting diode Q2 is conducted, the common cathode of the second conducting diode Q1 and the first conducting diode Q2 still can send an enable level signal of the high level to the enable end of the power conversion chip U1, thereby maintaining the enable of the power conversion chip U1, charging the delay capacitor C3, and normally operating the microcontroller D1. The reset or restart of the microcontroller D1 is accomplished without affecting the power-on state of the target power supply device.
In conclusion, the single-key switch device is reasonable and ingenious in structural design, the switch control circuit 2 drives the enabling compensation circuit 3 to be started, and then the enabling compensation circuit 3 drives the switch control circuit 2 to keep the target power supply equipment and the power supply to be continuously communicated, so that the circulation of enabling supply is formed; the convenient operation of odd-number trigger connection and even-number trigger disconnection similar to a mechanical self-locking switch is realized, so that the on-off control only adopting a single key is realized on a low-power-consumption key such as a light-touch key K1, and meanwhile, additional keys and matched sub-circuits are saved; when the control function of the switch machine with a single key is realized, the design of excessive triodes, MOS (metal oxide semiconductor) tubes and resistors is avoided, and the power loss and the power consumption requirement of the switch machine device during operation are effectively reduced, so that the low power consumption requirement of the field detection equipment during long-term operation can be met; in addition, by combining the power on/off method and the remote restarting method provided by the invention, on the basis of realizing the control function of the single-key switch through a simple circuit, the remote restarting function of the target power supply equipment can be additionally realized only by additionally arranging the delay capacitor C3, and the resetting or restarting function of the microcontroller D1 can be completed under the condition that the starting state of the target power supply equipment is not influenced.
It should be understood that, in various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
It should also be understood that, in the embodiment of the present invention, the term "and/or" is only one kind of association relation describing an associated object, and means that three kinds of relations may exist. For example, a and/or B, may represent: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electric, mechanical or other form of connection.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
The principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A single-button switch gear device, comprising:
the single-key circuit is connected with the power supply and is provided with a light touch key, and the light touch key is used for outputting a first enabling signal after receiving a first trigger signal;
the switch control circuit is respectively connected with a target power supply device, the power supply and the single-key circuit and is used for communicating the power supply with the target power supply device when receiving the first enabling signal;
and the enabling compensation circuit is connected with the switch control circuit and is used for continuously outputting a second enabling signal to the switch control circuit when the light touch key receives a first trigger signal so as to enable the switch control circuit to keep the target power supply equipment and the power supply connected, and stopping the output of the second enabling signal when the light touch key receives a second trigger signal so as to enable the switch control circuit to cut off the connection between the target power supply equipment and the power supply.
2. The single-button switch device according to claim 1, wherein said switch control circuit comprises:
the power supply conversion device comprises a power supply conversion chip, wherein an enabling signal input end of the power supply conversion chip is connected with the single-key circuit, a voltage input end of the power supply conversion chip is connected with the power supply, and a voltage output end of the power supply conversion chip is respectively connected with the enabling compensation circuit and the target power supply equipment.
3. The single-key switch apparatus according to claim 2, wherein the enable compensation circuit comprises:
the voltage input end of the microcontroller is connected with the voltage output end of the power supply conversion chip, the first signal port of the microcontroller is connected with the output end of the single-key circuit, and the second signal port of the microcontroller is connected with the enabling signal input end of the power supply conversion chip.
4. The single-button switch device according to claim 3, further comprising:
the second signal port of the microcontroller is connected with the enabling signal end of the power supply conversion chip through the first conducting diode;
and the anode of the second conduction diode is connected with the output end of the single-key circuit, and the cathode of the second conduction diode is connected with the cathode of the first conduction diode.
5. The single-button switch device according to claim 4, further comprising:
and the anode of the delay capacitor is connected with the cathode of the first conduction diode and the enable signal input end of the power supply conversion chip, and the output end of the delay capacitor is grounded.
6. The single-button switch device according to claim 3, further comprising:
the positive electrode of the first filter capacitor is connected with the voltage input end of the power conversion chip, and the negative electrode of the first filter capacitor is grounded;
and the anode of the second filter capacitor is connected with the voltage input end of the microcontroller, and the cathode of the second filter capacitor is grounded.
7. A method for powering on and powering off, comprising:
the touch key of the single-key circuit is triggered to output a first enabling signal to drive the switch control circuit to be communicated with the power supply and the target power supply equipment;
the switch control circuit outputs a first voltage signal to an enable compensation circuit, drives the enable compensation circuit to continuously output a second enable signal, and enables the switch control circuit to keep the target power supply device connected with the power supply;
and after the touch key of the single-key circuit is triggered again, outputting the first enabling signal to drive the enabling compensation circuit to stop outputting the second enabling signal, so that the switch control circuit cuts off the connection between the target power supply equipment and the power supply.
8. The method according to claim 7, further comprising, when driving the enable compensation circuit to continuously output the second enable signal:
the enabling compensation circuit acquires first key pressing time, and the first key pressing time represents the duration of outputting the first enabling signal when the single key pressing circuit receives a first trigger signal;
the enabling compensation circuit judges whether the first key time is greater than a time threshold, wherein the time threshold is the minimum duration of the triggered state of the light touch key of the single-key circuit;
if yes, the enabling compensation circuit continuously outputs the second enabling signal.
9. The method according to claim 8, further comprising, when driving the enable compensation circuit to stop outputting the second enable signal:
the enabling compensation circuit acquires second key pressing time, and the second key pressing time represents the duration of outputting the first enabling signal when the single key pressing circuit receives a second trigger signal;
judging whether the second key pressing time is greater than the time threshold value;
if so, the enable compensation circuit stops the output of the second enable signal.
10. A remote reboot method, comprising:
receiving a restart instruction, and enabling the compensation circuit to stop outputting the second enabling signal so as to enable the switch control circuit to disconnect the power supply and the target power supply equipment;
the enabling compensation circuit restores the output of the second enabling signal so that the switch control circuit restores the connection between the power supply and the target power supply equipment.
CN202011129936.6A 2020-10-21 2020-10-21 Single-key startup and shutdown device, startup and shutdown method and remote restart method Pending CN114389590A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011129936.6A CN114389590A (en) 2020-10-21 2020-10-21 Single-key startup and shutdown device, startup and shutdown method and remote restart method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011129936.6A CN114389590A (en) 2020-10-21 2020-10-21 Single-key startup and shutdown device, startup and shutdown method and remote restart method

Publications (1)

Publication Number Publication Date
CN114389590A true CN114389590A (en) 2022-04-22

Family

ID=81192939

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011129936.6A Pending CN114389590A (en) 2020-10-21 2020-10-21 Single-key startup and shutdown device, startup and shutdown method and remote restart method

Country Status (1)

Country Link
CN (1) CN114389590A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115664874A (en) * 2022-11-07 2023-01-31 广州通则康威智能科技有限公司 Switching device and method suitable for home gateway
CN116774638A (en) * 2023-08-21 2023-09-19 北京领创医谷科技发展有限责任公司 Switching circuit applied to external energy controller

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115664874A (en) * 2022-11-07 2023-01-31 广州通则康威智能科技有限公司 Switching device and method suitable for home gateway
CN115664874B (en) * 2022-11-07 2023-08-29 广州通则康威智能科技有限公司 Switching device and method suitable for home gateway
CN116774638A (en) * 2023-08-21 2023-09-19 北京领创医谷科技发展有限责任公司 Switching circuit applied to external energy controller

Similar Documents

Publication Publication Date Title
CN204759081U (en) Switching on and shutting down system
CN102262432B (en) System and method for automatic rebooting subsequent to crash of Modem of smart phone
CN114389590A (en) Single-key startup and shutdown device, startup and shutdown method and remote restart method
CN106484061A (en) Terminal resets control method, controller and system
CN106610714A (en) Switch control circuit and method for terminal
CN101655733A (en) Method and device for collocating uninterruptible power supply to enable computer to safely hibernate during power cut
CN104850021B (en) A kind of power on/off system
CN102186041A (en) Voltage sag processing circuit and electronic equipment
CN103905756A (en) Television set failure processing device and television set
CN112639634A (en) On-off control device and electronic equipment
US9684362B2 (en) Battery powered device
CN101217023A (en) Display power control system
CN103713912A (en) Automatic power on circuit of computer
WO2024061191A1 (en) Electronic device
US20230318327A1 (en) Stylus
CN210742886U (en) Startup and shutdown circuit
CN201732338U (en) Electricity-saving portable device power supply switch control system
CN217307659U (en) Key control circuit, intelligent door lock and intelligent door
CN110989817A (en) Electronic equipment and electronic equipment starting management method
CN210157162U (en) Key combined circuit for realizing hardware reset
US10921875B2 (en) Computer system, operational method for a microcontroller, and computer program product
CN113097976A (en) Control system of battery protection circuit
CN110764398B (en) Intelligent watch and mode switching method thereof
CN217770046U (en) Power switch circuit and electronic equipment
CN210348410U (en) Equipment line network state switching device

Legal Events

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