CN110797930A - Equipment control method, device, system and computer storage medium - Google Patents

Equipment control method, device, system and computer storage medium Download PDF

Info

Publication number
CN110797930A
CN110797930A CN201810875685.2A CN201810875685A CN110797930A CN 110797930 A CN110797930 A CN 110797930A CN 201810875685 A CN201810875685 A CN 201810875685A CN 110797930 A CN110797930 A CN 110797930A
Authority
CN
China
Prior art keywords
power supply
state
unit
switch
timing
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.)
Granted
Application number
CN201810875685.2A
Other languages
Chinese (zh)
Other versions
CN110797930B (en
Inventor
唐国华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201810875685.2A priority Critical patent/CN110797930B/en
Publication of CN110797930A publication Critical patent/CN110797930A/en
Application granted granted Critical
Publication of CN110797930B publication Critical patent/CN110797930B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0063Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with circuits adapted for supplying loads from the battery
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S20/00Management or operation of end-user stationary applications or the last stages of power distribution; Controlling, monitoring or operating thereof
    • Y04S20/20End-user application control systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Power Sources (AREA)

Abstract

The embodiment of the invention discloses a device control method, a device, a system and a computer storage medium, wherein the device control device comprises a detection unit, a core processing unit, a switch logic control unit, a manual control switch, a timing unit, a switch device, a communication unit and a power supply, wherein the detection unit is used for detecting target parameter information in real time, and the target parameter information comprises a voltage value of the power supply and state information of the manual control switch; the core processing unit is used for comparing and processing the target parameter information with a preset deep sleep strategy or a preset awakening strategy and providing preset timing awakening duration for the timing unit; the switch logic control unit is used for controlling the opening and closing of the switch device so as to enable the equipment to be in a deep sleep or wake-up state; the timing unit is used for controlling the timed awakening of the equipment during the deep sleep period; the device automatically or manually enters a deep sleep or wake-up state without losing connection during the deep sleep.

Description

Equipment control method, device, system and computer storage medium
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a method, an apparatus, a system, and a computer storage medium for controlling a device.
Background
In a device power supply (usually a storage battery) system, power saving and protection functions are generally required. In order to avoid the power supply damage caused by the overdischarge of the power supply and influence the safe operation of the system, the power supply needs to be monitored and controlled in real time so that the power supply can be cut off in time when needed, the equipment does not consume power any more, the purposes of saving energy and protecting the power supply are achieved, and meanwhile, the power supply can be awakened to work when needed.
At present, a power supply sleep method is usually adopted, in which a certain logic circuit is used to turn off a part of loads (generally referred to as power consumption loads), or a power supply operates in a low power consumption mode; the wake-up method usually adopted is to manually wake up or wait until the power supply is recovered. After the equipment enters the dormancy state by adopting the method, part of logic circuits in the equipment still work, and relatively large power consumption still exists, so that the energy-saving and protection effects of the power supply cannot reach the best. In addition, after the device is dormant, the prior art scheme cannot automatically wake up, and at this time, the device is in a complete loss-of-connection state and needs to be manually or in other manners (such as power restoration in a multi-path power supply scene) to wake up; in addition, when the equipment is in a dormant period, the equipment cannot upload any information of foreground equipment to the background terminal; however, in many usage scenarios, the power supply needs to wake up periodically during sleep, such as a battery-powered terminal device of the internet of things, a communication base station device, and the like.
Disclosure of Invention
In order to solve the existing technical problems, embodiments of the present invention provide a method, an apparatus, a system, and a computer storage medium for controlling a device, which can implement that the device automatically or manually enters a deep sleep or wake-up state by controlling the power supply loop of a power supply to turn off and on, and can achieve the purpose of no loss of connection during the deep sleep; meanwhile, the low-voltage turn-off of the power supply is realized, so that the power supply is protected, the ultralow power consumption lower than a microwatt level is realized after the power supply is turned off, and the energy-saving effect is good.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an apparatus control device, where the apparatus control device is applied to an apparatus, and the apparatus control device includes: the device comprises a detection unit, a core processing unit, a switch logic control unit, a manual control switch, a timing unit, a switching device, a communication unit and a power supply; wherein the content of the first and second substances,
the detection unit is connected with the core processing unit, the manual control switch and the power supply and is used for detecting target parameter information in real time and sending the target parameter information detected in real time to the core processing unit; wherein the target parameter information includes a voltage value of the power supply and state information of the manual control switch;
the core processing unit is connected with the detection unit, the timing unit and the switch logic control unit, and is used for comparing and processing the target parameter information with a preset deep sleep strategy or a preset wake-up strategy and providing a corresponding processing signal for the switch logic control unit; the core processing unit is also used for providing preset timing awakening duration for the timing unit;
the switch logic control unit is connected with the core processing unit, the timing unit and the switch device, and is used for controlling the switch device to be opened and closed according to the processing signal provided by the core processing unit so as to enable the equipment to be in a deep sleep state or an awakening state; the switch logic control unit is further used for controlling the switch device to be closed according to the wake-up control signal provided by the timing unit so as to enable the equipment to be in a wake-up state;
the manual control switch is connected with the detection unit and the switch logic control unit and used for realizing the state detection of the detection unit on the manual control switch and realizing the manual control of the equipment in a deep sleep state or an awakening state through the switch logic control unit;
the timing unit is connected with the core processing unit and the switch logic control unit, and is used for performing timing setting according to a preset timing wake-up duration provided by the core processing unit and providing a corresponding wake-up control signal for the switch logic control unit to control the timing wake-up of the equipment in a deep sleep state;
the switch device is connected with the switch logic control unit and the power supply, and is connected in series in a power supply loop and used for switching on and off the power supply loop of the power supply;
and the communication unit is connected with the core processing unit and is used for realizing the communication between the equipment and the background terminal and carrying out information interaction.
In a second aspect, an embodiment of the present invention provides a system, where the system includes: a device and a backend terminal, the device comprising at least the device control apparatus of the first aspect, wherein,
the equipment is used for sending the running state information of the equipment to the background terminal in real time;
and the background terminal is used for processing the received running state information of the equipment, setting the timing awakening duration and sending the timing awakening duration to the equipment.
In a third aspect, an embodiment of the present invention provides an apparatus control method, where the method is applied to the apparatus control device in the first aspect, and the method includes:
detecting target parameter information in real time; the target parameter information comprises a voltage value of a power supply and state information of a manual control switch;
if the target parameter information meets a preset deep sleep strategy, controlling a power supply loop of the power supply to be switched off so as to enable the equipment to enter a deep sleep state;
and if the target parameter information meets a preset awakening strategy, controlling a power supply loop of the power supply to be switched on so as to enable the equipment to enter an awakening state.
In a fourth aspect, an embodiment of the present invention provides a computer storage medium storing a device control program, where the device control program, when executed by at least one processor, implements the steps of the method for device control according to the third aspect.
The equipment control device comprises a detection unit, a core processing unit, a switch logic control unit, a manual control switch, a timing unit, a switch device, a communication unit and a power supply, wherein the detection unit is used for detecting target parameter information in real time, and the target parameter information comprises a voltage value of the power supply and state information of the manual control switch; the core processing unit is used for comparing and processing the target parameter information with a preset deep sleep strategy or a preset awakening strategy and providing a corresponding processing signal for the switch logic control unit, and meanwhile, the core processing unit is also used for providing a preset timing awakening time length for the timing unit; the switch logic control unit is used for controlling the opening and closing of the switch device according to the processing signal provided by the core processing unit so as to enable the equipment to be in a deep sleep state or an awakening state, and meanwhile, the switch logic control unit is also used for controlling the closing of the switch device according to the awakening control signal provided by the timing unit so as to enable the equipment to be in the awakening state; the timing unit is used for carrying out timing setting according to preset timing awakening duration provided by the core processing unit and providing a corresponding awakening control signal for the switch logic control unit to control the timing awakening of the equipment in the deep sleep state; therefore, the device automatically or manually enters a deep sleep or awakening state, and the aim of no loss of connection during the deep sleep is achieved; meanwhile, the power supply is protected, the ultra-low power consumption lower than a microwatt level is achieved after the power supply is turned off, and the energy-saving effect is good.
Drawings
In the drawings, which are not necessarily drawn to scale, like reference numerals may describe similar components in different views. Like reference numerals having different letter suffixes may represent different examples of similar components. The drawings illustrate generally, by way of example, but not by way of limitation, various embodiments discussed herein.
Fig. 1 is a schematic structural diagram of a device control apparatus according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of another apparatus control device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of another apparatus control device according to an embodiment of the present invention;
fig. 4 is a schematic circuit diagram of an apparatus control device according to an embodiment of the present invention;
fig. 5 is a schematic circuit diagram of another device control apparatus according to an embodiment of the present invention;
fig. 6 is a schematic circuit diagram of another apparatus control device according to an embodiment of the present invention;
fig. 7 is a schematic circuit diagram of another apparatus control device according to an embodiment of the present invention;
fig. 8 is a schematic circuit diagram of another apparatus control device according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of a circuit structure of another apparatus control device according to an embodiment of the present invention
Fig. 10 is a schematic structural diagram of a system according to an embodiment of the present invention;
fig. 11 is a flowchart illustrating an apparatus control method according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the following describes specific technical solutions of the present invention in further detail with reference to the accompanying drawings in the embodiments of the present invention. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
Example one
Referring to fig. 1, which shows an apparatus control device 10 according to an embodiment of the present invention, where the apparatus control device 10 is applied to an apparatus, the apparatus control device 10 may include: the system comprises a detection unit 101, a core processing unit 102, a switch logic control unit 103, a manual control switch 104, a timing unit 105, a switching device 106, a communication unit 107 and a power supply 108; wherein the content of the first and second substances,
the detection unit 101 is connected with the core processing unit 102, the manual control switch 104 and the power supply 107, and is configured to detect target parameter information in real time and send the target parameter information detected in real time to the core processing unit 102; wherein the target parameter information comprises a voltage value of the power supply 107 and state information of the manual control switch 104;
the core processing unit 102 is connected to the detection unit 101, the timing unit 105 and the switch logic control unit 103, and configured to compare and process the target parameter information with a preset deep sleep policy or a preset wake-up policy, and provide a corresponding processing signal to the switch logic control unit 103; the core processing unit 102 is further configured to provide a preset timing wakeup duration to the timing unit 105;
the switch logic control unit 103 is connected to the core processing unit 102, the timing unit 105 and the switch device 106, and is configured to control the switch device 106 to open and close according to the processing signal provided by the core processing unit 102, so that the device is in a deep sleep state or a wake-up state; the switch logic control unit 103 is further configured to control the switch device 106 to be closed according to the wake-up control signal provided by the timing unit 105, so that the apparatus is in a wake-up state;
the manual control switch 104 is connected with the detection unit 101 and the switch logic control unit 103, and is used for realizing the state detection of the manual control switch 104 by the detection unit 101 and realizing the manual control of the device in a deep sleep or wake-up state by the switch logic control unit 103;
the timing unit 105 is connected to the core processing unit 102 and the switch logic control unit 103, and configured to perform timing setting according to a preset timing wake-up duration provided by the core processing unit 102, and provide a corresponding wake-up control signal to the switch logic control unit 103 to control the timing wake-up of the device in the deep sleep state;
the switch device 106 is connected with the switch logic control unit 103 and the power supply 108, and the switch device 106 is connected in series in the power supply loop and is used for switching on and off the power supply loop of the power supply 108;
the communication unit 107 is connected to the core processing unit 102, and is configured to implement communication between the device and the background terminal, and perform information interaction.
In this embodiment, preferably, the switch logic control unit 103 is specifically configured to:
if the target parameter information meets a preset deep sleep strategy, controlling the switching device 106 to be disconnected so as to turn off a power supply loop of the power supply 108, so that the equipment enters a deep sleep state;
if the target parameter information meets a preset wake-up strategy, the switching device 106 is controlled to be closed so that a power supply loop of the power supply 108 is switched on, and the equipment enters a wake-up state.
In this embodiment, preferably, when the target parameter information detected in real time by the detection unit 101 is a voltage value of the power supply 108, the switch logic control unit 103 is specifically configured to:
if the voltage value is lower than the first preset voltage threshold, the switching device 106 is controlled to be turned off so as to turn off the power supply loop of the power supply 108, so that the apparatus enters a deep sleep state.
In this embodiment, preferably, when the target parameter information detected in real time by the detection unit 101 is state information of the manual control switch 104, the switch logic control unit 103 is specifically configured to:
if the device is in the wake-up state and receives the operation instruction information of the manual control switch 104, so that the state information is pressed, the switch device 106 is controlled to be disconnected, so that the power supply loop of the power supply 108 is turned off, and the device enters the deep sleep state.
In this embodiment, preferably, when the target parameter information detected in real time by the detection unit 101 is state information of the manual control switch 104, the switch logic control unit 103 is specifically configured to:
if the device is in a deep sleep state and receives the operation instruction information of the manual control switch 104 to make the state information be pressed, the switch device 106 is controlled to be closed to open the power supply loop of the power supply 108, so that the device enters a wake-up state.
In this embodiment, preferably, when the device is in a deep sleep state and the timing unit 105 operates, the switch logic control unit 103 is specifically configured to:
if the duration of the device entering the deep sleep state meets the preset timed wake-up duration of the timing unit 105, the switching device 106 is controlled to be closed so that a power supply loop of the power supply 108 is turned on, so that the device enters the wake-up state.
According to the embodiment, the power supply loop of the power supply is controlled to be turned off and on, so that the equipment can enter a deep sleep state or an awakening state, and the aim of no disconnection during the deep sleep state can be achieved; meanwhile, during the deep sleep state, the power supply loop of the power supply is controlled to be turned off, the power supply can be protected, the ultra-low power consumption lower than the micro-watt level is achieved after the power supply is turned off, and the energy-saving effect is good.
Referring to fig. 2, another apparatus control device 10 provided in an embodiment of the present invention is shown, where the apparatus control device 10 may include: the system comprises a detection unit 101, a core processing unit 102, a switch logic control unit 103, a manual control switch 104, a timing unit 105, a switching device 106, a communication unit 107 and a power supply 108; the detection unit 101 includes a switch state detection unit 1011 and a voltage detection unit 1012, and the timing unit 105 includes a timer 1051 and a backup battery 1052, wherein,
the switch state detection unit 1011 is connected to the core processing unit 102 and the manual control switch 104, and configured to detect state information of the manual control switch 104 in real time and send the state information detected in real time to the core processing unit 102;
the voltage detection unit 1012 is connected to the core processing unit 102 and the power supply 108, and configured to detect a voltage value of the power supply 108 in real time and send the detected voltage value to the core processing unit 102;
the timer 1051 is connected with the core processing unit 102 and the switch logic control unit 103, and is configured to output a wakeup control signal when a duration of the device entering the deep sleep state satisfies a preset timing wakeup duration, so as to control the device to wake up at a timing during the deep sleep state;
the battery 1052, which is connected to the timer 1051, is used to power the timer 1051 when the device enters the deep sleep state.
In this embodiment, preferably, in order to achieve miniaturization of the device, the backup battery 1062 includes, but is not limited to, a button battery or a super capacitor, and this embodiment is not limited in this respect.
In this embodiment, preferably, in order to implement automatic timed wake-up of a device, the core processing unit 102 is specifically configured to configure a timing parameter of a timer; wherein the configured timing parameter of the timer is obtained based on a preset timing wake-up duration;
the timing unit 105 is specifically configured to start the timer and perform timing at a time when the device enters a sleep state;
the switch logic control unit 103 is specifically configured to control the switching device 106 to be closed to enable a power supply loop of the power supply 108 to be turned on when a duration of the device entering the deep sleep state exceeds an end time of the timer, so that the device enters the wake-up state.
In this embodiment, in order to ensure the endurance time of the battery 1052, the timer 1051 preferably uses a low power consumption chip, and in this embodiment, a device with an average current of nano-amperes may be used.
It should be noted that, for a preset timed wake-up duration, the timed wake-up duration is set according to an actual situation and is within a preset range; the timed wake-up duration may be directly set by the core processing unit 102, or may be set by the background terminal, and the set timed wake-up duration is transmitted to the core processing unit 102 through the communication unit 107 by the background terminal and then set by the core processing unit 102; meanwhile, the timer 1051 outputs a wakeup control signal according to a preset timing wakeup duration, when the timing wakeup duration reaches, the wakeup control signal cannot be automatically cleared, and the core processing unit 102 is required to drive the timing unit 105 to clear the wakeup control signal.
In this embodiment, preferably, in order to reduce the power consumption of the switching device 106, the switching device 106 may be a MOS transistor, a triode, or an IGBT device.
In this embodiment, the manual control switch 104 is preferably a reset switch, and the pressing is a state in which the release is returned to the normal state.
In this embodiment, based on the voltage value of the power supply 108 detected in real time by the voltage detection unit 1012, when the voltage value is lower than the first preset voltage threshold, the device control apparatus 10 may control the switching apparatus 106 to turn off through the switching logic control unit 103, so as to turn off the power supply loop of the power supply 108, thereby protecting the power supply 108, and also enabling the device to automatically enter a deep sleep state, that is, implementing a low-voltage protection function of the power supply; based on the timed wake-up duration set by the timer 1051, the switching logic control unit 103 may also control the switching device 106 to be closed, so as to turn on the power supply loop of the power supply 108, so that the device may automatically enter a wake-up state; in addition, based on the state information of the manual control switch 104 detected in real time by the switch state detection unit 1011, the switch logic control unit 103 can also control the switch device 106 to be disconnected so as to turn off the power supply loop of the power supply 108, so that the power supply 108 can be protected, and the device can also be manually in a deep sleep state; meanwhile, based on the state information of the manual control switch 104 detected in real time by the switch state detection unit 1011, the switch logic control unit 103 can also control the switch device 106 to be closed, so that the power supply loop of the power supply 108 is turned on, and the device can be manually turned into the wake-up state. In the embodiment, the device can automatically or manually enter a deep sleep or wake-up state by controlling the power supply loop of the power supply to be switched off and on, and meanwhile, the aim of no loss of connection during the sleep is achieved; the deep sleep state is realized by switching off the power supply loop, so that the power consumption can be the lowest, and at the moment, the device control device 10 has the ultralow power consumption lower than a microwatt level, so that the energy-saving effect is good.
Referring to fig. 3, which shows another device control apparatus 10 according to an embodiment of the present invention, as shown in fig. 3, the device control apparatus 10 may further include a power conversion unit 109, wherein,
the power conversion unit 109 is connected to the switching device 106 and the power supply 108, and is configured to ensure stable power supply of each unit in the equipment control device 10.
In this embodiment, preferably, the power conversion unit 109 is further configured to provide a hardware under-voltage protection function.
It should be noted that one end of the power conversion unit 109 is connected to the switching device 106, and the other end is connected to the power supply 108, and when the switching device 106 is turned on, the power conversion unit 109 is in a power-on state, and when the switching device 106 is turned off, the power conversion unit 109 is in a power-off state.
In this embodiment, preferably, as shown in fig. 3, the power supply 108 may include a main power supply P2 and a standby power supply P1; wherein the content of the first and second substances,
when the main power supply P2 is normally powered on, the power is preferably supplied by the main power supply P2, at the moment, the equipment does not enter a deep sleep state, and the equipment works;
when the main power supply P2 is abnormal and is powered off, the standby power supply P1 supplies power and the target parameter information meets a preset deep sleep strategy, and at the moment, the equipment enters a deep sleep state to protect the standby power supply P1;
when the device is in a deep sleep state, if the power supply of the primary power supply P2 is recovered to normal, the device enters an awake state, and the device operates.
In order to avoid a power short circuit between the standby power supply P1 and the main power supply P2, the standby power supply P1 is connected to the power conversion unit 109 through a diode D1, and the standby power supply P1 is usually a storage battery; the primary power source P2 is connected to the switching device 106 through a diode D2, and the primary power source P2 is typically mains or other ac powered input.
In this embodiment, preferably, the standby power supply P1 may have a plurality of power supplies connected in parallel, the main power supply P2 may also have a plurality of power supplies connected in parallel, and the device control apparatus 10 satisfies the requirement of multiple power supply, thereby improving the reliability of power supply of the device.
In this embodiment, preferably, when the device is in the deep sleep state, the standby power supply supplies power, and if the device continues to operate, the standby power supply may be damaged greatly; therefore, the core processing unit 102 is further configured to:
and if the voltage value of the standby power supply is lower than a second preset voltage threshold value, closing the timing unit.
It should be noted that, according to actual needs, the timed wake-up function may be turned off during the deep sleep state in order to avoid damage to the standby power supply. For example, when the primary power supply is abnormal and is powered off, a standby power supply supplies power, and the target parameter information meets a preset deep sleep strategy, at this time, the device enters a deep sleep state; if the voltage value of the backup power supply is low, for example, the voltage value of the backup power supply is lower than a second preset voltage threshold, in order to prevent the backup power supply from being over-discharged and even damaging the backup power supply, the timing wake-up function may be turned off at this time, and the timing unit is turned off; if the device needs to be awakened later, the device can be awakened through manual awakening or power supply recovery in a multi-path power supply scene.
It is understood that in the above embodiments, the "unit" may be a part of a circuit or a part of a processor, and may also be a module or may be non-modular. Each unit described above can be implemented by using a specific circuit form described below.
Referring to fig. 4, a schematic diagram of a circuit structure of an apparatus control device according to an embodiment of the present invention is shown. As shown in fig. 4, the appliance control device 10 includes: a switch logic control unit 401, a timing unit 402, a core processing unit 403, a switch state detection unit 404, a voltage detection unit 405, a communication unit 406, a switching device 407, a manual control switch S1, and a power supply P1; wherein the content of the first and second substances,
the timing unit 402 comprises a backup battery power supply Vbackup and a path of output wake-up control signal, the Vbackup is connected with a source level of a PMOS tube VT1 in the switch logic control unit 401, and the wake-up control signal is connected with one end of an R1 in the switch logic control unit 401; one end of R1 is connected with the source of VT1, and the other end is connected with the awakening control signal of the timing unit; in the switch logic control unit 401, one end of R2 is connected with R1, the other end is connected with the grid of a PMOS transistor VT1, and R2 plays a role in driving and limiting current; the drain electrode of the VT1 is connected with the R3, and the other end of the R3 is connected with the collector electrode of the NPN triode VT 2; one end of the R4 is connected with VCC which supplies power to the switching logic control unit 401 after power supply conversion, the other end of the R4 is connected with a collector of an NPN triode VT2 and is also connected with a pin 1 of an optocoupler U1, and the R4 determines a resistance value according to the driving current of the U1; an NPN triode VT2, the collector of which is connected with the connection point of R3 and R4, the base of which is connected with the connection point of R5 and R6, and the emitter of which is connected with the reference ground, wherein the reference ground is the reference ground for supplying power to the switch logic control unit 401 after power supply conversion; r5 is connected to reference ground at one end and R6 at the other end; one end of R6 is connected to R5, and the other end is connected to the core processing unit 403; r5 and R6 form the functions of voltage division and current limitation, and the resistance value is determined according to the base current of VT 2; a pin 1 of the optocoupler U1 is connected to a connection point of R3 and R4, a pin 2 is connected to the reference ground, a pin 4 is connected to the anode of the power supply P1, and a pin 3 is connected to one end of R7; the manual control switch S1 is a duplex reset switch, wherein, the 2 pin of S1 is connected to the 4 pin of U1, the 4 pin of S1 is connected to the 3 pin of U1, the 2 pin and the 4 pin of S1 are two ends of a contact of one reset switch, the 1 pin and the 3 pin of S1 are two ends of a contact of the other reset switch, and the two reset switches are linked and are called as the duplex reset switch; the 1 st pin and the 3 rd pin of the S1 are connected to the core processing unit 403 through the switch state detection unit 404, and can detect the operation of the manual control switch S1 to know whether the switch is in an on state or an off state; in the switching device 407, the other end of R7 is connected to the connection point of R8 and R9; the other end of the R8 is connected with the negative pole of a power supply P1; the other end of the R9 is connected with the grid of the NMOS tube VT3 to play a role of current limiting; the source of the VT3 is connected with the negative pole of the power supply P1; the positive electrode of the power supply P1 and the drain electrode of the VT3 form the output of the embodiment, form the function of a power supply negative terminal switch, and the power supply conversion unit takes electricity; r7 and R8 form a voltage division circuit, and the resistance value is determined according to the grid-source electrode driving voltage of VT 3; here, R1, R2, R3, R4, R5, R6, S1, VT1, VT2, and U1 constitute the switching logic control unit 401 of the present embodiment; it should be noted that the voltage detection unit 405 and the communication unit 406 are examples of general schemes in the field, and embodiments of the present invention are not described in detail.
In the circuit structure example shown in fig. 4, through the voltage detection unit 405, when the voltage value of the power supply P1 is lower than the preset voltage threshold VL, the core processing unit 403 outputs a driving signal to control the VT2 triode to be turned on, so as to turn off the optocoupler U1, which also cuts off the driving power supply of the NMOS transistor VT3, and the NMOS transistor VT3 turns off the power supply loop, so that the device enters a deep sleep state; if the current device is in a deep sleep state, the device needs to be awakened, the optical coupler U1 bypasses by pressing the manual control switch S1, the 3 pins and the 4 pins of the optical coupler are directly communicated, so that the VT3 is driven to open a power supply loop, the voltage value of the power supply P1 is higher than a preset voltage threshold VL, and the device enters the awakening state and can normally work; if the voltage value of the power supply P1 is lower than VL, the core processing unit 403 drives the device to continue to be in the deep sleep state; in this case, if the power supply P1 needs to be cut off, the manual control switch S1 can be pressed, the core processing unit 403 detects a key signal through the switch state detection unit 404, and outputs a driving signal to control the VT2 triode to be turned on, so as to turn off the optocoupler U1, and also cut off the driving power supply of the NMOS transistor VT3, so that the NMOS transistor VT3 turns off the power supply loop, and the device enters a deep sleep state; the timing unit 402 automatically controls the regular wake-up of the device, and its principle is: when the timing wake-up duration set by the core processing unit 403 reaches, the timing unit 402 outputs a wake-up control signal to control the conduction of the PMOS transistor VT1, and Vbackup drives the U1 to be conducted through VT1, so as to drive the conduction of VT3, turn on the power supply loop, and enable the device to enter a wake-up state; at the same time, after the power supply loop is turned on, the U1 is driven by the internal power supply, and at this time, the core processing unit 403 drives the timing unit 402 to clear the output wake-up control signal and turn off the VT1, so as to prevent the power of the backup battery from being consumed.
It should be noted that the timing unit 402 can perform the timed wake-up according to the set timed wake-up duration only during the deep sleep period, and can close the periodic automatic wake-up function according to actual needs; for example, when the voltage of the power supply (usually referred to as a battery) is very low, the battery can be greatly damaged by the continuous operation of the device, and the regular wake-up function can be turned off to protect the power supply; the manual control switch S1 enters deep sleep, and at this time, the timing unit 402 does not start the timing automatic wake-up function, and only wakes up the device by manual wake-up or power restoration of the main power supply in a multi-path power supply scenario; in addition, when the VT3 power supply loop is turned off, the timing unit 402 has a slight current consumption of nA level, so that the power consumption is as low as microwatts.
In this embodiment, the devices VT1, VT2, U1, S1, and VT3 are not limited to the devices described in this embodiment, and may also be other switching devices capable of implementing the same function, and the embodiment of the present invention is not limited in particular. For example, VT1 may also be a bipolar transistor, VT2 may also be an NMOS transistor, for example, U1 may be a switch with an isolation function, may also be an optocoupler relay, for example, VT3 may also be an IGBT or a bipolar transistor, and the like; this also falls within the scope of the embodiments of the present invention.
Referring to fig. 5, a schematic diagram of a circuit structure of another device control apparatus according to an embodiment of the present invention is shown; compared to fig. 4, the variation in fig. 5 is a switch logic control unit 501. As shown in fig. 5, a switch of the manual control switch S1 in the switch logic control unit 501 is no longer connected to pins 3 and 4 of U1, but one pin 2 is connected to the connection point of the wake-up control signal of the timing unit 402 and R1 and R2, and the other pin 4 is connected to the reference ground for controlling the turn-on of VT 1; pins 1 and 3 of S1, i.e., another switch, are connected to the core processing unit 403 through the switch state detection unit 404 for detecting the state of the manual control switch S1. It should be noted that other units in fig. 5 are the same as those in fig. 4, and the logic function of fig. 5 is the same as that of fig. 4, and detailed description thereof is omitted.
Referring to fig. 6, a schematic diagram of a circuit structure of another device control apparatus according to an embodiment of the present invention is shown; compared with fig. 5, the change part in fig. 6 is a switch logic control unit 601, mainly a manual control switch S1 is changed from a duplex reset switch to a single reset switch, one end 1 pin of S1 is connected to the connection point of the wake-up control signal of the timing unit 402 and R1 and R2, and the other end 2 pin is connected to a reference ground for controlling the turn-on of VT 1; wherein the cathode of the diode VD1 is connected to the 1 pin of S1, and the anode of VD1 is connected to one end of R10; one end of the R10 is connected with the anode of the VD1, the other end is connected with VCC, wherein the connection point of the VD1 and the R10 is connected to the core processing unit 403, and is used for realizing the switch state detection of the manual control switch S1; here, VD1 is a schottky diode. It should be noted that other units in fig. 6 are the same as those in fig. 4, and the logic function of fig. 6 is the same as that of fig. 4, and detailed description thereof is omitted.
Referring to fig. 7, a schematic diagram of a circuit structure of another device control apparatus according to an embodiment of the present invention is shown; compared to fig. 4, the variation in fig. 7 is still a switch logic control unit 701. As shown in fig. 7, the timing unit 402 includes a backup battery power Vbackup and an output wake-up control signal, where the Vbackup is connected to pin 1 of the optocoupler U2 in the switch logic control unit 701, and the wake-up control signal is connected to pin 2 of the U2; the 3 and 4 pins of U2 are connected in parallel with the 3 and 4 pins of U1, the 4 pin of U1 is connected with the 4 pin of U2, the 3 pin of U1 is connected with the 3 pin of U2, the 1 and 2 pins of U1 are connected to the core processing unit 403, the 4 pins of U1 and U2 are connected to the anode of a power supply P1, and the 3 pins of U1 and U2 are connected to one end of R7; the 2 pin of S1 is connected to the 4 pins of U1 and U2, the 4 pin of S1 is connected to the 3 pins of U1 and U2, the 2 pin and the 4 pin of S1 are two ends of a contact of a reset switch, the 1 pin and the 3 pin of S1 are two ends of a contact of another reset switch, and the two reset switches are linked and are called a dual reset switch; the 1 st pin and the 3 rd pin of the S1 are connected to the core processing unit 403 through the switch state detection unit 404, and can detect the operation of the manual control switch S1 to know whether the switch is in an on state or an off state; in the switching device 407, the other end of R7 is connected to the connection point of R8 and R9; the other end of the R8 is connected with the negative pole of a power supply P1; the other end of the R9 is connected with the grid of the NMOS tube VT3 to play a role of current limiting; the source of the VT3 is connected with the negative pole of the power supply P1; the positive electrode of the power supply P1 and the drain electrode of the VT3 form the output of the embodiment, form the function of a power supply negative terminal switch, and the power supply conversion unit takes electricity; r7 and R8 form a voltage division circuit, and the resistance value is determined according to the grid-source electrode driving voltage of VT 3; here, S1, U1, and U2 constitute the switch logic control unit 701 of the present embodiment; it should be noted that the voltage detection unit 405 and the communication unit 406 are examples of general schemes in the field, and embodiments of the present invention are not described in detail.
In the circuit structure example shown in fig. 7, through the voltage detection unit 405, when the voltage value of the power supply P1 is lower than the preset voltage threshold VL, the core processing unit 403 outputs a driving signal to control the optical coupler U1 to turn off, so that the driving power supply of the NMOS transistor VT3 is cut off, the power supply loop of the NMOS transistor VT3 is turned off, and the device enters a deep sleep state; if the current device is in a deep sleep state, the device needs to be awakened, the optical coupler U1 bypasses by pressing the manual control switch S1, the 3 pins and the 4 pins of the optical coupler are directly communicated, so that the VT3 is driven to open a power supply loop, the voltage value of the power supply P1 is higher than a preset voltage threshold VL, and the device enters the awakening state and can normally work; if the voltage value of the power supply P1 is lower than VL, the core processing unit 403 drives the device to continue to be in the deep sleep state; in this case, if the power supply P1 is to be cut off, the manual control switch S1 may be pressed, the core processing unit 403 detects a key signal through the switch state detection unit 404, and outputs a driving signal to turn off the optocoupler U1, which also cuts off the driving power supply of the NMOS transistor VT3, so that the NMOS transistor VT3 turns off the power supply loop, and the device enters a deep sleep state; the timing unit 402 automatically controls the regular wake-up of the device, and its principle is: when the timing wake-up duration set by the core processing unit 403 reaches, the timing unit 402 outputs a wake-up control signal to control the conduction of the optocoupler U1, so as to drive the conduction of the VT3, turn on the power supply loop, and enable the device to enter a wake-up state; after the power supply loop is turned on, the U1 is driven by the internal power supply, and at this time, the core processing unit 403 drives the timing unit 402 to clear the output wake-up control signal, and the U2 is turned off, so as to prevent the power of the backup battery from being consumed.
It should be noted that the timing unit 402 can perform the timed wake-up according to the set timed wake-up duration only during the deep sleep period, and can turn off the periodic automatic wake-up function according to the actual need, for example, when the voltage of the power supply (usually, a battery) is very low, the battery is damaged by the continuous operation of the device, and the periodic wake-up function can be turned off to protect the power supply; the manual control switch S1 enters deep sleep, and at this time, the timing unit 402 does not start the timing automatic wake-up function, and only wakes up the device by manual wake-up or power restoration of the main power supply in a multi-path power supply scenario; in addition, when the VT3 power supply loop is turned off, the timing unit 402 has a slight current consumption of nA level, so that the power consumption is as low as microwatts.
In this embodiment, the devices U1, U2, S1, and VT3 are not limited to the devices described in this embodiment, and may be other switching devices capable of achieving the same function, and the embodiment of the present invention is not particularly limited. For example, U1 and U2 may be switches with an isolation function, may also be optocouplers, and for example, VT3 may also be switches with IGBTs or bipolar transistors; this also falls within the scope of the embodiments of the present invention.
Referring to fig. 8, a schematic diagram of a circuit structure of another device control apparatus according to an embodiment of the present invention is shown; compared with fig. 7, the changed part in fig. 8 is also a switch logic control unit 801, and mainly the position where the manual control switch S1 is connected is changed. As shown in fig. 10, a switch of the manual control switch S1 in the switch logic control unit 801 is no longer connected to the pins 3 and 4 of U1 and U2, but one end 2 of the switch is connected to the connection point of the wake-up control signal of the timing unit and U2, and the other end 4 of the switch is connected to the reference ground for controlling the turn-on of U2; pins 1 and 3 of S1, i.e., another switch, are connected to the core processing unit 403 through the switch state detection unit 404 for detecting the state of the manual control switch S1.
It should be noted that if the device needs to be awakened when the device is currently in the deep sleep state, the optocoupler U2 may be turned on by pressing the manual control switch S1, so as to drive the VT3 to turn on the power supply loop, and at this time, the voltage value of the power supply P1 is higher than the preset voltage threshold VL, and the device enters the awakening state and can normally operate; if the voltage value of the power supply P1 is lower than VL, the core processing unit 403 drives the device to continue to be in the deep sleep state; in this case, if the power supply P1 is to be cut off, the manual control switch S1 may be pressed, the core processing unit 403 detects a key signal through the switch state detection unit 404, and outputs a driving signal to turn off the optocoupler U1, which also cuts off the driving power supply of the NMOS transistor VT3, so that the NMOS transistor VT3 turns off the power supply loop, and the device enters a deep sleep state; it should be noted that other units in fig. 8 are the same as those in fig. 7, and the other logics in fig. 8 are the same as those in fig. 7 in function, and will not be described in detail here.
Referring to fig. 9, a schematic diagram of a circuit structure of another device control apparatus according to an embodiment of the present invention is shown. As shown in fig. 9, the device comprises a switch logic control unit 901, a timing unit 402, a core processing unit 403, a switch state detection unit 404, a voltage detection unit 405, a communication unit 406, a switch device 407, a manual control switch S1 and a power supply P1; the switch logic control unit 901 includes, but is not limited to, any form of the switch logic control unit shown in fig. 4 to 9, and the timing unit 402, the core processing unit 403, the switch state detection unit 404, the voltage detection unit 405, the communication unit 406, the switching device 407, the manual control switch S1 and the power supply P1 are the same as those shown in fig. 4 to 9, and are not described in detail here; the difference is that what is provided in this embodiment is the way in which the switching device 407 is at the positive pole of the supply circuit; in the switching device 407, one end of R7 is connected to the switching logic control unit 901, and the other end is connected to the connection point of R8 and R9; the other end of the R8 is connected with the anode of a power supply P1; the other end of the R9 is connected with the grid electrode of a PMOS tube VT3 to play a role of current limiting; the source stage of the VT3 is connected with the anode of the power supply P1; the negative electrode of the power supply P1 and the drain electrode of the VT3 form the output of the embodiment, and form a power supply positive terminal switch function, and the power supply conversion unit takes electricity; r7 and R8 form a voltage divider circuit, and the resistance value is determined according to the grid-source driving voltage of VT 3.
In this embodiment, the specific hardware circuit combination is used to control the power supply loop of the power supply P1 to be turned off and on, so that the device can enter a deep sleep or wake-up state, and the purpose of no loss of connection during the deep sleep state can be achieved; meanwhile, during the deep sleep state, the power supply loop of the power supply is controlled to be turned off, the power supply can be protected, the ultra-low power consumption lower than the micro-watt level is achieved after the power supply is turned off, and the energy-saving effect is good.
On the basis of the above embodiment, referring to fig. 10, a system 100 provided by an embodiment of the present invention is shown, where the system 100 includes: a device 1001 and a backend terminal 1002, wherein,
the device 1001 is used for sending the running state information of the device to a background terminal in real time;
the background terminal 1002 is configured to process the received running state information of the device, set a timing wake-up duration, and send the timing wake-up duration to the device.
It should be noted that the device 1001 includes any device control apparatus 10 shown in fig. 1 to 9, and the device 1001 further includes, but is not limited to, a communication unit 107, where the communication unit 107 is used for communication between the device 1001 and the backend terminal 1002, and performs information interaction; in addition, the communication unit 107 may adopt a wired communication mode or a wireless communication mode, the wired communication mode is preferably an ethernet mode, and the wireless communication mode is preferably a 2G/3G/4G mode, which is not limited in the embodiment of the present invention.
It should be further noted that, the backend terminal 1002 receives the running state information of the device, and may store or otherwise process the running state information. For example, the background terminal 1002 issues the information through a Web page, and a user can view the running state of the device through the Web page; in addition, parameter information setting, such as a preset timed wakeup duration, may also be performed on the device 1001 through the backend terminal 1002; however, if the device 1001 enters the sleep state, the running state information of the device may be sent only after the device 1001 enters the wake state, and meanwhile, if the device 1001 does not enter the wake state, the device 1001 continues to be in the sleep state, and the backend terminal 1002 cannot wake up the device 1001.
The embodiment provides a device control device, which comprises a detection unit, a core processing unit, a switch logic control unit, a manual control switch, a timing unit, a switching device, a communication unit and a power supply, wherein the detection unit is used for detecting target parameter information in real time, and the target parameter information comprises a voltage value of the power supply and state information of the manual control switch; the core processing unit is used for comparing and processing the target parameter information with a preset deep sleep strategy or a preset awakening strategy and providing a corresponding processing signal for the switch logic control unit, and meanwhile, the core processing unit is also used for providing a preset timing awakening time length for the timing unit; the switch logic control unit is used for controlling the opening and closing of the switch device according to the processing signal provided by the core processing unit so as to enable the equipment to be in a deep sleep state or an awakening state, and meanwhile, the switch logic control unit is also used for controlling the closing of the switch device according to the awakening control signal provided by the timing unit so as to enable the equipment to be in the awakening state; the timing unit is used for carrying out timing setting according to preset timing awakening duration provided by the core processing unit and providing a corresponding awakening control signal for the switch logic control unit to control the timing awakening of the equipment in the deep sleep state; therefore, the device automatically or manually enters a deep sleep or awakening state, and the aim of no loss of connection during the deep sleep is achieved; meanwhile, the power supply is protected, the ultra-low power consumption lower than a microwatt level is achieved after the power supply is turned off, and the energy-saving effect is good.
Example two
Referring to fig. 11, it shows a device control method provided in an embodiment of the present invention, which is applied to any device control apparatus 10 in the first embodiment, and the method may include:
s1101: detecting target parameter information in real time; the target parameter information comprises a voltage value of a power supply and state information of a manual control switch;
s1102: if the target parameter information meets a preset deep sleep strategy, controlling a power supply loop of the power supply to be switched off so as to enable the equipment to enter a deep sleep state;
s1103: and if the target parameter information meets a preset awakening strategy, controlling a power supply loop of the power supply to be switched on so as to enable the equipment to enter an awakening state.
Based on the technical scheme shown in fig. 11, target parameter information is detected in real time; the target parameter information comprises a voltage value of the power supply and state information of a manual control switch; if the target parameter information meets a preset deep sleep strategy, controlling a power supply loop of the power supply to be switched off so as to enable the equipment to enter a deep sleep state; if the target parameter information meets a preset awakening strategy, controlling a power supply loop of the power supply to be switched on so as to enable the equipment to enter an awakening state; the device can automatically or manually enter a deep sleep or awakening state by controlling the power supply loop of the power supply to be switched off and on, and the aim of no loss of connection during the deep sleep can be achieved; meanwhile, the power supply is protected, the ultra-low power consumption lower than a microwatt level is achieved after the power supply is turned off, and the energy-saving effect is good.
For the technical solution shown in fig. 11, in a possible implementation manner, if the target parameter information satisfies a preset deep sleep policy, controlling a power supply loop of the power supply to be turned off to enable the device to enter a deep sleep state specifically includes:
when the real-time detected target parameter information is the voltage value of the power supply,
and if the voltage value is lower than a first preset voltage threshold value, controlling a power supply loop of the power supply to be switched off so as to enable the equipment to enter a deep sleep state.
It should be noted that, with reference to the device control apparatus shown in fig. 1, when the target parameter information detected in real time by the detection unit 101 is a voltage value of the power supply 108, the detection unit 101 sends the voltage value of the power supply 108 detected in real time to the core processing unit 102, and if the voltage value is lower than a first preset voltage threshold, the core processing unit 102 provides a corresponding processing signal to the switch logic control unit 103; for the switching logic control unit 103, the switching logic control unit 103 controls the switching device 106 to open so as to turn off the power supply loop of the power supply 108, thereby causing the device to enter a deep sleep state; therefore, the device can automatically enter a deep sleep state.
For the technical solution shown in fig. 11, in a possible implementation manner, if the target parameter information satisfies a preset deep sleep policy, controlling a power supply loop of the power supply to be turned off to enable the device to enter a deep sleep state specifically includes:
when the target parameter information detected in real time is the state information of the manual control switch,
and if the equipment is in the awakening state and receives the operation instruction information of the manual control switch so as to enable the state information to be pressed, controlling a power supply loop of the power supply to be switched off so as to enable the equipment to enter a deep sleep state.
For the technical solution shown in fig. 11, in a possible implementation manner, if the target parameter information satisfies a preset wake-up policy, controlling a power supply loop of the power supply to be turned on so that the device enters a wake-up state includes:
when the target parameter information detected in real time is the state information of the manual control switch,
and if the equipment is in a deep sleep state and receives the operation instruction information of the manual control switch so as to enable the state information to be pressed, controlling a power supply loop of the power supply to be switched on so as to enable the equipment to enter an awakening state.
It should be noted that, with reference to the device control apparatus shown in fig. 1, when the target parameter information detected in real time by the detection unit 101 is the state information of the manual control switch 104, the detection unit 101 sends the state information of the manual control switch 104 detected in real time to the core processing unit 102, and if the device is in the wake-up state and the state information of the manual control switch 104 is received as being pressed, the core processing unit 102 provides a corresponding processing signal to the switch logic control unit 103; for the switch logic control unit 103, the switch logic control unit 103 also receives the state information that the manual control switch 104 is pressed, and at this time, the switch logic control unit 103 controls the switch device 106 to be disconnected so as to turn off the power supply loop of the power supply 108, so that the device enters a deep sleep state; in addition, the detecting unit 101 sends the status information of the manual control switch 104 detected in real time to the core processing unit 102, and if the device is in a deep sleep state and the status information of the manual control switch 104 is received as being pressed, the core processing unit 102 provides a corresponding processing signal to the switch logic control unit 103; for the switch logic control unit 103, the switch logic control unit 103 also receives the state information of the manual control switch 104 as pressing, and at this time, the switch logic control unit 103 controls the switch device 106 to close so as to open the power supply loop of the power supply 108, so that the device enters the wake-up state; thus, the device can manually enter a deep sleep or wake-up state.
For the technical solution shown in fig. 11, in a possible implementation manner, if the target parameter information satisfies a preset wake-up policy, the controlling a power supply loop of the power supply to be turned on to enable the device to enter a wake-up state specifically includes:
acquiring the duration of the device entering a deep sleep state;
and if the duration time meets the preset timed awakening time, controlling a power supply loop of the power supply to be switched on so as to enable the equipment to enter an awakening state.
It should be noted that, with reference to the device control apparatus shown in fig. 1, when a device is in a deep sleep state and a timing unit 105 works, if a duration of the device entering the deep sleep state meets a preset timing wake-up duration of the timing unit 105, a switch logic control unit 103 controls a switch apparatus 106 to be closed so as to turn on a power supply loop of a power supply 108, so that the device enters the wake-up state; thereby, the automatic entering of the equipment into the awakening state can be realized.
In the foregoing implementation manner, preferably, if the duration meets a preset timed wake-up duration, the method controls a power supply loop of the power supply to be turned on, so that the device enters a wake-up state, and specifically includes:
configuring timing parameters of a timer; wherein the configured timing parameter of the timer is obtained based on the preset timing wake-up duration;
starting the timer and timing at the time when the equipment enters a dormant state;
and when the duration exceeds the end time of the timing of the timer, controlling a power supply loop of the power supply to be switched on so as to enable the equipment to enter an awakening state.
It should be noted that, with reference to the device control apparatus shown in fig. 2, the timer 1051 is configured to output a wakeup control signal when a duration of the device entering the deep sleep state satisfies a preset timing wakeup duration, so as to control the device to wake up at a timing during the deep sleep state; configuring timing parameters of a timer 1051, starting the timer 1051 at the time when the equipment enters a dormant state, and timing; when the duration of the device entering the deep sleep state exceeds the end time counted by the timer 1051, the switching logic control unit 103 controls the switching device 106 to close, so that the power supply loop of the power supply 108 is turned on, and the device enters the wake-up state.
It can be understood that when the device is in the deep sleep state, according to actual needs, in order to avoid damage to the power supply, the timed wake-up function may also be turned off during the sleep state; therefore, in the above specific implementation, the method further includes:
when the real-time detected target parameter information is the voltage value of the power supply,
and if the voltage value is lower than a second preset voltage threshold value, closing the timer.
It should be noted that, in conjunction with the device control apparatus shown in fig. 3, according to actual needs, in order to avoid damage to the power supply, the timed wake-up function may also be turned off during the sleep state. For example, generally, the power supply includes a main power supply and a backup power supply; when the power failure is caused by the abnormality of the main power supply, the standby power supply supplies power, the target parameter information meets a preset deep sleep strategy, and the equipment enters a deep sleep state at the moment; if the voltage value of the backup power supply is low, for example, the voltage value of the backup power supply is lower than a second preset voltage threshold, in order to prevent the backup power supply from being over-discharged and even damaging the backup power supply, the timer wake-up function may be turned off at this time, and the timer is turned off; if the device needs to be awakened later, the device can be awakened through manual awakening or power supply recovery in a multi-path power supply scene.
For the technical solution shown in fig. 11, in a possible implementation manner, the method further includes:
and when the equipment is in the awakening state, sending the running state information of the equipment.
It should be noted that, in conjunction with the system shown in fig. 10, the device 1001 includes any device control apparatus 10 in the first embodiment, and when the device 1001 is in the wake-up state, information interaction may be performed with the backend terminal 1002 through the communication unit 107 in the device 1001; for example, the communication unit 107 may receive a timing wake-up duration preset by the backend terminal 1002, and then the device control apparatus 10 performs timing setting on the timing unit based on the timing wake-up duration; the operation state information of the device 1001 may also be transmitted to the backend terminal 1002 through the communication unit 107, and then the backend terminal 1002 issues the information through a Web page through which the user can view the operation state of the device 1001.
The embodiment provides an equipment control method, which detects target parameter information in real time; the target parameter information comprises a voltage value of the power supply and state information of a manual control switch; if the target parameter information meets a preset deep sleep strategy, controlling a power supply loop of the power supply to be switched off so as to enable the equipment to enter a deep sleep state; if the target parameter information meets a preset awakening strategy, controlling a power supply loop of the power supply to be switched on so as to enable the equipment to enter an awakening state; the power supply loop of the power supply is controlled to be switched off and switched on, so that the equipment can automatically or manually enter a deep sleep or awakening state, and the aim of no loss of connection during the deep sleep can be fulfilled; meanwhile, the power supply is protected, the ultra-low power consumption lower than a microwatt level is achieved after the power supply is turned off, and the energy-saving effect is good.
EXAMPLE III
It is to be understood that each constituent unit in the first embodiment may be integrated into one processing unit, each unit may exist alone physically, or two or more units may be integrated into one unit. The integrated unit can be realized in a form of hardware or a form of a software functional module.
Based on the understanding that the technical solution of the present embodiment essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the method of the present embodiment. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Accordingly, the present embodiment provides a computer storage medium storing a device control program that, when executed by at least one processor, implements the steps of the method of device control described in the second embodiment above.
It is to be understood that some of the elements may be implemented by software, and that the embodiments described herein may be implemented by hardware, software, firmware, middleware, microcode, or any combination thereof, in view of the present hardware technology level; for a hardware implementation, the Processing unit may be implemented in one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions of the invention, or a combination thereof; for a software implementation, the techniques described herein may be implemented by executing software code.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (21)

1. An apparatus control device, characterized in that the apparatus control device is applied to an apparatus, the apparatus control device comprising: the device comprises a detection unit, a core processing unit, a switch logic control unit, a manual control switch, a timing unit, a switching device, a communication unit and a power supply; wherein the content of the first and second substances,
the detection unit is connected with the core processing unit, the manual control switch and the power supply and is used for detecting target parameter information in real time and sending the target parameter information detected in real time to the core processing unit; wherein the target parameter information includes a voltage value of the power supply and state information of the manual control switch;
the core processing unit is connected with the detection unit, the timing unit and the switch logic control unit, and is used for comparing and processing the target parameter information with a preset deep sleep strategy or a preset wake-up strategy and providing a corresponding processing signal for the switch logic control unit; the core processing unit is also used for providing preset timing awakening duration for the timing unit;
the switch logic control unit is connected with the core processing unit, the timing unit and the switch device, and is used for controlling the switch device to be opened and closed according to the processing signal provided by the core processing unit so as to enable the equipment to be in a deep sleep state or an awakening state; the switch logic control unit is further used for controlling the switch device to be closed according to the wake-up control signal provided by the timing unit so as to enable the equipment to be in a wake-up state;
the manual control switch is connected with the detection unit and the switch logic control unit and used for realizing the state detection of the detection unit on the manual control switch and realizing the manual control of the equipment in a deep sleep state or an awakening state through the switch logic control unit;
the timing unit is connected with the core processing unit and the switch logic control unit, and is used for performing timing setting according to a preset timing wake-up duration provided by the core processing unit and providing a corresponding wake-up control signal for the switch logic control unit to control the timing wake-up of the equipment in a deep sleep state;
the switch device is connected with the switch logic control unit and the power supply, and is connected in series in a power supply loop and used for switching on and off the power supply loop of the power supply;
and the communication unit is connected with the core processing unit and is used for realizing the communication between the equipment and the background terminal and carrying out information interaction.
2. The device control apparatus according to claim 1, wherein the switching logic control unit is specifically configured to:
if the target parameter information meets a preset deep sleep strategy, controlling the switching device to be disconnected so as to turn off a power supply loop of the power supply, so that the equipment enters a deep sleep state;
and if the target parameter information meets a preset awakening strategy, controlling the switching device to be closed so as to enable a power supply loop of the power supply to be switched on, so that the equipment enters an awakening state.
3. The device control apparatus according to claim 2, wherein when the target parameter information detected by the detection unit in real time is a voltage value of the power supply, the switching logic control unit is specifically configured to:
and if the voltage value is lower than a first preset voltage threshold value, controlling the switching device to be switched off so as to switch off a power supply loop of the power supply, so that the equipment enters a deep sleep state.
4. The device control apparatus according to claim 2, wherein when the target parameter information detected by the detection unit in real time is state information of the manual control switch, the switch logic control unit is specifically configured to:
and if the equipment is in the awakening state and receives the operation instruction information of the manual control switch so as to enable the state information to be pressed, the switching device is controlled to be disconnected so that a power supply loop of the power supply is switched off, and the equipment enters a deep sleep state.
5. The device control apparatus according to claim 2, wherein when the target parameter information detected by the detection unit in real time is state information of the manual control switch, the switch logic control unit is specifically configured to:
and if the equipment is in a deep sleep state and receives the operation instruction information of the manual control switch so as to enable the state information to be pressed, controlling the switch device to be closed so as to enable a power supply loop of the power supply to be switched on, so that the equipment enters a wake-up state.
6. The device control apparatus according to claim 2, wherein when the device is in a deep sleep state and the timing unit is operating, the switch logic control unit is specifically configured to:
and if the duration of the device entering the deep sleep state meets the preset timing awakening duration of the timing unit, controlling the switching device to be closed so as to enable a power supply loop of the power supply to be switched on, so that the device enters the awakening state.
7. The appliance control device according to claim 1, wherein the detection unit includes a switch state detection unit and a voltage detection unit, the timing unit includes a timer and a backup battery, wherein,
the switch state detection unit is connected with the core processing unit and the manual control switch and is used for detecting the state information of the manual control switch in real time and sending the state information detected in real time to the core processing unit;
the voltage detection unit is connected with the core processing unit and the power supply and is used for detecting the voltage value of the power supply in real time and sending the voltage value detected in real time to the core processing unit;
the timer is connected with the core processing unit and the switch logic control unit and is used for outputting a wakeup control signal when the duration of the device entering the deep sleep state meets the preset timing wakeup duration so as to control the timing wakeup of the device in the deep sleep state;
and the backup battery is connected with the timer and used for supplying power to the timer when the equipment enters a deep sleep state.
8. The device control apparatus according to claim 7, wherein the core processing unit is specifically configured to configure a timing parameter of a timer; wherein the configured timing parameter of the timer is obtained based on a preset timing wake-up duration;
the timing unit is specifically configured to start the timer and perform timing at a time when the device enters a sleep state;
the switch logic control unit is specifically configured to control the switching device to be closed to enable a power supply loop of the power supply to be switched on when the duration of the device entering the deep sleep state exceeds the end time of the timing of the timer, so that the device enters the wake-up state.
9. The appliance control apparatus according to claim 1, further comprising a power supply conversion unit, wherein,
and the power supply conversion unit is connected with the switching device and the power supply and is used for ensuring the stable power supply of each unit in the equipment control device.
10. The device control apparatus of claim 9, wherein the power supply comprises an active power supply and a standby power supply, wherein,
when the main power supply is normal and supplies power, the main power supply is preferably used for supplying power, at the moment, the equipment does not enter a deep sleep state, and the equipment works;
when the main power supply is abnormal and is powered off, the standby power supply supplies power, the target parameter information meets a preset deep sleep strategy, and the equipment enters a deep sleep state to protect the standby power supply;
when the equipment is in a deep dormancy state, if the power supply of the main power supply is recovered to be normal, the equipment enters an awakening state, and the equipment works.
11. The device control apparatus of claim 10, wherein the core processing unit is further configured to:
and if the voltage value of the standby power supply is lower than a second preset voltage threshold value, closing the timing unit.
12. A system, characterized in that the system comprises: a device comprising at least the device control apparatus of any one of claims 1 to 11, and a backend terminal, wherein,
the equipment is used for sending the running state information of the equipment to the background terminal in real time;
and the background terminal is used for processing the received running state information of the equipment, setting the timing awakening duration and sending the timing awakening duration to the equipment.
13. An appliance control method applied to the appliance control device according to any one of claims 1 to 11, the method comprising:
detecting target parameter information in real time; the target parameter information comprises a voltage value of a power supply and state information of a manual control switch;
if the target parameter information meets a preset deep sleep strategy, controlling a power supply loop of the power supply to be switched off so as to enable the equipment to enter a deep sleep state;
and if the target parameter information meets a preset awakening strategy, controlling a power supply loop of the power supply to be switched on so as to enable the equipment to enter an awakening state.
14. The device control method according to claim 13, wherein if the target parameter information satisfies a preset deep sleep policy, controlling a power supply loop of the power supply to be turned off, so that the device enters a deep sleep state, specifically comprising:
when the real-time detected target parameter information is the voltage value of the power supply,
and if the voltage value is lower than a first preset voltage threshold value, controlling a power supply loop of the power supply to be switched off so as to enable the equipment to enter a deep sleep state.
15. The device control method according to claim 13, wherein if the target parameter information satisfies a preset deep sleep policy, controlling a power supply loop of the power supply to be turned off, so that the device enters a deep sleep state, specifically comprising:
when the target parameter information detected in real time is the state information of the manual control switch,
and if the equipment is in the awakening state and receives the operation instruction information of the manual control switch so as to enable the state information to be pressed, controlling a power supply loop of the power supply to be switched off so as to enable the equipment to enter a deep sleep state.
16. The device control method according to claim 13, wherein if the target parameter information satisfies a preset wake-up policy, controlling a power supply loop of the power supply to be turned on so that the device enters a wake-up state, includes:
when the target parameter information detected in real time is the state information of the manual control switch,
and if the equipment is in a deep sleep state and receives the operation instruction information of the manual control switch so as to enable the state information to be pressed, controlling a power supply loop of the power supply to be switched on so as to enable the equipment to enter an awakening state.
17. The device control method according to claim 13, wherein if the target parameter information satisfies a preset wake-up policy, controlling a power supply loop of the power supply to be turned on to enable the device to enter a wake-up state, specifically comprising:
acquiring the duration of the device entering a deep sleep state;
and if the duration time meets the preset timed awakening time, controlling a power supply loop of the power supply to be switched on so as to enable the equipment to enter an awakening state.
18. The device control method according to claim 17, wherein if the duration satisfies a preset timed wake-up duration, controlling a power supply loop of the power supply to be turned on to enable the device to enter a wake-up state, specifically comprising:
configuring timing parameters of a timer; wherein the configured timing parameter of the timer is obtained based on the preset timing wake-up duration;
starting the timer and timing at the time when the equipment enters a dormant state;
and when the duration exceeds the end time of the timing of the timer, controlling a power supply loop of the power supply to be switched on so as to enable the equipment to enter an awakening state.
19. The device control method of claim 18, wherein the device enters a sleep state, the method further comprising:
when the real-time detected target parameter information is the voltage value of the power supply,
and if the voltage value is lower than a second preset voltage threshold value, closing the timer.
20. The apparatus control method according to claim 13, characterized in that the method further comprises:
and when the equipment is in the awakening state, sending the running state information of the equipment.
21. A computer storage medium, characterized in that it stores a device control program which, when executed by at least one processor, implements the steps of a method of device control according to any one of claims 13 to 20.
CN201810875685.2A 2018-08-03 2018-08-03 Equipment control method, device, system and computer storage medium Active CN110797930B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810875685.2A CN110797930B (en) 2018-08-03 2018-08-03 Equipment control method, device, system and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810875685.2A CN110797930B (en) 2018-08-03 2018-08-03 Equipment control method, device, system and computer storage medium

Publications (2)

Publication Number Publication Date
CN110797930A true CN110797930A (en) 2020-02-14
CN110797930B CN110797930B (en) 2023-10-13

Family

ID=69425242

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810875685.2A Active CN110797930B (en) 2018-08-03 2018-08-03 Equipment control method, device, system and computer storage medium

Country Status (1)

Country Link
CN (1) CN110797930B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113328453A (en) * 2021-06-09 2021-08-31 杭州惟领科技有限公司 Optical coupling switch dormancy awakening circuit and awakening method of low-voltage household energy storage system
WO2024000307A1 (en) * 2022-06-29 2024-01-04 京东方科技集团股份有限公司 X-ray detector and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101893866A (en) * 2009-05-20 2010-11-24 Vega格里沙贝两合公司 Energy-efficient control device for field device
CN105700396A (en) * 2016-01-22 2016-06-22 深圳市飞比电子科技有限公司 Intelligent switch module and control method therefor
CN106571616A (en) * 2015-10-10 2017-04-19 中兴通讯股份有限公司 Power supply dormancy and wake-up circuit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101893866A (en) * 2009-05-20 2010-11-24 Vega格里沙贝两合公司 Energy-efficient control device for field device
CN106571616A (en) * 2015-10-10 2017-04-19 中兴通讯股份有限公司 Power supply dormancy and wake-up circuit
CN105700396A (en) * 2016-01-22 2016-06-22 深圳市飞比电子科技有限公司 Intelligent switch module and control method therefor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113328453A (en) * 2021-06-09 2021-08-31 杭州惟领科技有限公司 Optical coupling switch dormancy awakening circuit and awakening method of low-voltage household energy storage system
WO2024000307A1 (en) * 2022-06-29 2024-01-04 京东方科技集团股份有限公司 X-ray detector and system

Also Published As

Publication number Publication date
CN110797930B (en) 2023-10-13

Similar Documents

Publication Publication Date Title
CN106571616B (en) Power supply suspend mode and wake-up circuit
CN103105921A (en) Method for reducing lithium battery static power consumption under laptop shutdown state
CN101770248B (en) Intermittent power supply micropower standby control circuit
KR20070057788A (en) A control device for a power supply with zero power consumption in standby mode
CN103138376B (en) Power switching circuit and power switching method thereof
CN104850021B (en) A kind of power on/off system
CN113765679B (en) Computer network awakening method and system
CN110797930B (en) Equipment control method, device, system and computer storage medium
CN105703021B (en) The battery management system and battery management system awakening method of low-power consumption standby
CN114167971B (en) Dormancy awakening circuit, automatic walking equipment and awakening method thereof
CN103885563A (en) Management circuit for self-powered microprocessor protection device microprocessor
CN107863811B (en) Remote controller power supply control device and remote controller
CN210468864U (en) Low-power consumption battery management circuit
CN207664660U (en) The control device and remote controler of power supply of remote controller
CN205051670U (en) Fall electricity from opening control circuit
CN204696765U (en) Battery
CN203746007U (en) Microprocessor management circuit for self-powered microprocessor protection device
CN201927170U (en) Remote control electric saving controlling device capable of realizing small consumption standby
CN212229466U (en) Micro-power consumption standby control circuit and device
CN114336930A (en) System and method for switching and off-line awakening of double backup power supplies
CN206992782U (en) The monitoring of ATS a kind of and control loop
CN106293011B (en) Dual-key multiplexing hard-start standby battery power supply system and processing method
CN205158060U (en) Intelligence power management structure
CN204243882U (en) A kind of electric power controller of massager
WO2018023645A1 (en) Intelligent timer switch

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
GR01 Patent grant
GR01 Patent grant