CN110797930B - 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
CN110797930B
CN110797930B CN201810875685.2A CN201810875685A CN110797930B CN 110797930 B CN110797930 B CN 110797930B CN 201810875685 A CN201810875685 A CN 201810875685A CN 110797930 B CN110797930 B CN 110797930B
Authority
CN
China
Prior art keywords
power supply
state
unit
equipment
switch
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.)
Active
Application number
CN201810875685.2A
Other languages
Chinese (zh)
Other versions
CN110797930A (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

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 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 wake-up strategy, and also used for providing a preset timed wake-up 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 state or an awake state; the timing unit is used for controlling the device to wake up at regular time during deep dormancy; the device automatically or manually enters a deep sleep or wake state, and no disconnection is caused 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 device control method, apparatus, system, and computer storage medium.
Background
In a device powered (typically battery) system, it is generally desirable to have power saving and protection functions. In order to avoid the damage of the power supply caused by 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 as to cut off the power supply in time when needed, and the equipment does not consume power any more, thereby achieving the purposes of saving energy and protecting the power supply, and simultaneously waking up the power supply to work when needed.
Currently, a power source dormancy method is generally adopted, in which a certain logic circuit is used to turn off a part of load (generally referred to as power consumption load), or the power source works in a low power consumption mode; while the wake-up method is usually adopted, the wake-up is performed manually or until the power supply is restored. After the equipment enters dormancy by adopting the method, part of logic circuits in the equipment still work, and relatively large power consumption exists, so that the energy-saving and protection effects of the power supply cannot be optimized. In addition, after the equipment is dormant, the prior art scheme cannot automatically wake up, and the equipment is in a complete disconnection state at the moment and can wake up only by manual operation or other modes (such as power restoration in a multi-path power supply scene); and the device is in a dormant period, the device cannot upload any information of the foreground device to the background terminal; in many usage scenarios, however, periodic wake-up is required during power sleep, such as battery powered internet of things terminal devices, communication base station devices, etc.
Disclosure of Invention
In order to solve the existing technical problems, the embodiment of the invention provides a device control method, a device control system and a computer storage medium, which can realize that a device automatically or manually enters a deep sleep or wake-up state by controlling the power supply loop of a power supply to be turned off and on, and can also achieve the aim of not losing connection during the deep sleep; meanwhile, the low-voltage turn-off of the power supply is realized, so that the power supply is protected, and the power supply has ultra-low power consumption lower than the microwatts level after being turned off, and has good energy-saving effect.
In order to achieve the above object, the technical solution of the embodiment of the present invention is 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, 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 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; 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 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 corresponding processing signals for the switch logic control unit; the core processing unit is further configured to provide a preset timed wakeup duration to 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 signals provided by the core processing unit so as to enable the equipment to be in a deep sleep state or an awake 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 is used for detecting the state of the manual control switch by the detection unit and controlling the equipment to be in a deep sleep state or an awake state manually by 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 the 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 the deep sleep state;
the switching device is connected with the switching 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, embodiments of the present invention provide a system comprising: a device and a background terminal, the device at least comprising the device control apparatus according to the first aspect, wherein,
the device is used for sending the running state information of the device to the background terminal in real time;
the background terminal is used for processing the received running state information of the equipment, setting the time awakening duration and sending the time 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 turned off so as to enable the equipment to enter a deep sleep state;
and if the target parameter information meets a preset wake-up strategy, controlling a power supply loop of the power supply to be turned on so as to enable the equipment to enter a wake-up state.
In a fourth aspect, an embodiment of the present invention provides a computer storage medium storing a device control program, which when executed by at least one processor, implements the steps of the method of the third aspect.
The embodiment of the invention provides 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 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 wake-up strategy, providing corresponding processing signals for the switch logic control unit, and providing preset timed wake-up duration 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 signals provided by the core processing unit so as to enable the equipment to be in a deep sleep state or a wake-up state, and meanwhile, the switch logic control unit is also used for controlling the closing of the switch device according to the wake-up control signals provided by the timing unit so as to enable the equipment to be in the wake-up state; the timing unit is used for performing timing setting according to the preset timing wake-up time length 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 the deep sleep state; therefore, the equipment automatically or manually enters a deep sleep or wake-up state, and the aim of no disconnection during the deep sleep is fulfilled; meanwhile, the protection effect on the power supply is achieved, 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.
Drawings
In the drawings (which are not necessarily drawn to scale), like numerals may describe similar components in different views. Like reference numerals having different letter suffixes may represent different instances of similar components. The drawings illustrate generally, by way of example and not by way of limitation, various embodiments discussed herein.
Fig. 1 is a schematic diagram of a composition structure of a device control apparatus according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a composition structure of another device control apparatus according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of another device control apparatus according to an embodiment of the present invention;
fig. 4 is a schematic circuit diagram of a device control apparatus 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 device control apparatus according to an embodiment of the present invention;
fig. 7 is a schematic circuit diagram of another device control apparatus according to an embodiment of the present invention;
fig. 8 is a schematic circuit diagram of another device control apparatus according to an embodiment of the present invention;
fig. 9 is a schematic circuit diagram of another device control apparatus according to an embodiment of the present invention
FIG. 10 is a schematic diagram of a system according to an embodiment of the present invention;
fig. 11 is a schematic flow chart of a device 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 more apparent, the following detailed description of the specific technical solutions of the present invention will be given with reference to the accompanying drawings in the embodiments of the present invention. The following examples are illustrative of the invention and are not intended to limit the scope of the invention.
Example 1
Referring to fig. 1, which illustrates a device control apparatus 10 provided in an embodiment of the present invention, the device control apparatus 10 is applied to a device, and the device control apparatus 10 may include: 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 detection unit 101 is connected with the core processing unit 102, the manual control switch 104 and the power supply 107, 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 102; wherein the target parameter information includes a voltage value of the power supply 107 and state information of the manual control switch 104;
The core processing unit 102 is connected with the detecting unit 101, the timing unit 105 and the switch logic control unit 103, and is 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 time wakeup duration to the timing unit 105;
the switch logic control unit 103 is connected with the core processing unit 102, the timing unit 105 and the switch device 106, and is used for controlling the switch device 106 to be opened and closed according to the processing signals provided by the core processing unit 102 so as to enable the equipment to be in a deep sleep state or an awake 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 detecting the state of the manual control switch 104 by the detection unit 101 and manually controlling the equipment to be 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 is 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 device to wake up at a timing during a deep sleep state;
the switching device 106 is connected with the switching logic control unit 103 and the power supply 108, and the switching device 106 is connected in series in a 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 a background terminal, so as to 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, the switching device 106 is controlled to be disconnected so that a power supply loop of the power supply 108 is turned off, and the equipment enters a deep sleep state;
if the target parameter information meets a preset wake-up policy, the switching device 106 is controlled to be closed so that a power supply loop of the power supply 108 is opened, and the equipment enters a wake-up state.
In this embodiment, preferably, when the target parameter information detected by the detecting unit 101 in real time 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 a first preset voltage threshold, the switching device 106 is controlled to be turned off, so that the power supply loop of the power supply 108 is turned off, and the equipment enters a deep sleep state.
In this embodiment, preferably, when the target parameter information detected by the detecting unit 101 in real time is the state information of the manual control switch 104, the switch logic control unit 103 is specifically configured to:
if the device is in an awake state and receives the operation instruction information of the manual control switch 104 to make the state information be pressed, the switching device 106 is controlled to be disconnected so that the power supply loop of the power supply 108 is turned off, so that the device enters a deep sleep state.
In this embodiment, preferably, when the target parameter information detected by the detecting unit 101 in real time is the state information of the manual control switch 104, the switch logic control unit 103 is specifically configured to:
if the device is in the deep sleep state and receives the operation instruction information of the manual control switch 104 to enable the state information to be pressed, the switch device 106 is controlled to be closed so that the power supply loop of the power supply 108 is opened, and the device is enabled to enter the wake-up state.
In this embodiment, preferably, when the device is in a deep sleep state and the timing unit 105 is operated, the switch logic control unit 103 is specifically configured to:
if the duration of the device entering the deep sleep state meets the preset time wake-up duration of the timing unit 105, the switching device 106 is controlled to be closed so that the power supply loop of the power supply 108 is opened, and the device enters the wake-up state.
The embodiment can enable the equipment to enter a deep sleep state or an awake state by controlling the power supply loop of the power supply to be turned off and on, and can also achieve the purpose of not losing connection during the deep sleep state; meanwhile, during the deep sleep state, the power supply loop of the power supply is controlled to be turned off, so that the power supply can be protected, and the ultra-low power consumption lower than the microwatts level is achieved after the power supply is turned off, so that the energy-saving effect is good.
Referring to fig. 2, another device control apparatus 10 provided in an embodiment of the present invention is shown, where the device control apparatus 10 may include: 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 is configured to detect state information of the manual control switch 104 in real time, and send the detected state information 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 is 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 in real time;
the timer 1051 is connected to the core processing unit 102 and the switch logic control unit 103, and is configured to output a wake-up control signal to control the device to wake up at a timing during the deep sleep state when the duration of the device entering the deep sleep state meets a preset wake-up timing;
the backup battery 1052 is connected to a timer 1051 for powering the timer 1051 when the device enters a deep sleep state.
In the present embodiment, it is preferable that the backup battery 1062 includes, but is not limited to, a button battery or a super capacitor in order to achieve miniaturization of the device, which is not particularly limited.
In this embodiment, preferably, in order to implement automatic timed wake-up of the device, the core processing unit 102 is specifically configured to configure a timing parameter of a timer; the timer is configured with a timing parameter obtained based on a preset timing wake-up time length;
the timing unit 105 is specifically configured to start the timer and count when the device enters the sleep state;
the switch logic control unit 103 is specifically configured to, when the duration of the device entering the deep sleep state exceeds the end time counted by the timer, control the switch device 106 to be closed so that the power supply loop of the power supply 108 is opened, so that the device enters the wake-up state.
In this embodiment, preferably, in order to ensure the duration of the backup battery 1052, the timer 1051 preferably uses a low-power chip, and in this embodiment, a device with an average current of nano-ampere level may be used.
It should be noted that, for a preset time wake-up duration, the preset time wake-up duration is set according to actual conditions and is within a preset range; the time-lapse wake-up duration can be set directly by the core processing unit 102, or can be set by the background terminal, and the background terminal transmits the set time-lapse wake-up duration to the core processing unit 102 through the communication unit 107, and then is set by the core processing unit 102; meanwhile, the timer 1051 outputs a wake-up control signal when the preset time wake-up duration arrives, the wake-up control signal cannot be automatically cleared, and the core processing unit 102 is required to drive the timing unit 105 to clear the wake-up 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 in a state, and the releasing is restored to a normal state.
In this embodiment, based on the voltage value of the power supply 108 detected by the voltage detection unit 1012 in real time, when the voltage value is lower than the first preset voltage threshold, the device control apparatus 10 may control the switch apparatus 106 to be turned off through the switch logic control unit 103 so that the power supply loop of the power supply 108 is turned off, 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 time wake-up duration set by the timer 1051, the switch logic control unit 103 can also control the switch device 106 to be closed so that a power supply loop of the power supply 108 is opened, thereby enabling the equipment to automatically enter a wake-up state; in addition, based on the state information of the manual control switch 104 detected by the switch state detection unit 1011 in real time, the switch logic control unit 103 can control the switch device 106 to be turned off so that the power supply loop of the power supply 108 is turned off, thereby protecting the power supply 108 and enabling the equipment to be manually in a deep sleep state; meanwhile, based on the state information of the manual control switch 104 detected by the switch state detection unit 1011 in real time, 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 opened, thereby enabling the equipment to enter the wake-up state manually. 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 turned off and on, and meanwhile, the aim of no disconnection during the sleep is fulfilled; the deep sleep state is realized by switching off the power supply loop, so that the power consumption can be minimized, and the device control device 10 is ultra-low power consumption lower than the microwatts level at the moment, so that the energy-saving effect is good.
Referring to fig. 3, which illustrates still another device control apparatus 10 provided in 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 to each unit in the device control apparatus 10.
In this embodiment, the power conversion unit 109 is preferably further configured to provide a hardware under-voltage protection function.
The power conversion unit 109 has one end connected to the switching device 106 and the other end connected to the power supply 108, and when the switching device 106 is turned on, the power conversion unit 109 is in a powered state, and when the switching device 106 is turned off, the power conversion unit 109 is in a powered 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,,
when the main power supply P2 is normally powered, the main power supply P2 is preferred to supply power, and the equipment does not enter a deep sleep state at this time and works;
when the main power supply P2 is abnormal and is powered off, the standby power supply P1 supplies power, the target parameter information meets a preset deep sleep strategy, and the equipment enters a deep sleep state at the moment to protect the standby power supply P1;
When the equipment is in the deep sleep state, if the power supply of the main power supply P2 is recovered to be normal, the equipment enters the wake-up state, and the equipment works.
In order to avoid a power short circuit between the standby power P1 and the main power P2, the standby power P1 is connected to the power conversion unit 109 through the diode D1, and the standby power P1 is usually a battery; the primary power source P2 is connected to the switching device 106 via a diode D2, the primary power source P2 typically being the mains or other ac power input.
In this embodiment, preferably, the standby power source P1 may have a plurality of power sources connected in parallel, and the main power source P2 may also have a plurality of power sources connected in parallel, so that the device control apparatus 10 satisfies multiple power sources, thereby improving the reliability of power supply of the device.
In this embodiment, preferably, when the device is in a deep sleep state, the device is powered by the standby power supply, and if the device continues to operate, the standby power supply is greatly damaged; thus, 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, in order to avoid damage to the standby power supply, the wake-up function may be turned off during the deep sleep state. For example, when the main power supply is abnormal and is powered off, the standby power supply supplies power, and the target parameter information meets a preset deep sleep strategy, and the equipment enters a deep sleep state; assuming that the voltage value of the standby power supply is very low, for example, the voltage value of the standby power supply is lower than a second preset voltage threshold, in order to prevent the standby power supply from overdischarging and even damaging the standby power supply, the timing wake-up function can be turned off at this time, and the timing unit is turned off; the device may then wake up if needed, either by manual wake up or by power restoration in a multi-channel power scenario.
It will be appreciated that in the above embodiments, the "unit" may be part of a circuit, or part of a processor, but may also be a module, or may be non-modular. The respective units described above may be implemented in the following specific circuit forms.
Referring to fig. 4, a schematic circuit structure of a device control apparatus according to an embodiment of the present invention is shown. As shown in fig. 4, the device control apparatus 10 includes: a switching logic control unit 401, a timing unit 402, a core processing unit 403, a switching 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 timing unit 402 comprises a standby battery power supply Vbackup and one path of output wake-up control signal, wherein the Vbackup is connected with a source stage of a PMOS tube VT1 in the switch logic control unit 401, and the wake-up control signal is connected with one end of R1 in the switch logic control unit 401; one end of R1 is connected with a source stage of VT1, and the other end is connected with a wake-up 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 electrode of the PMOS tube VT1, and R2 plays a role in driving and current limiting; the drain electrode of VT1 is connected with R3, the other end of R3 is connected with the collector electrode of NPN triode VT 2; one end of R4 is connected with VCC, VCC supplies power to the switch logic control unit 401 after power supply conversion, the other end of R4 is connected with the collector of NPN triode VT2 and is also connected with the 1 pin of the optical coupler U1, and R4 determines the resistance value according to the driving current of U1; NPN triode VT2, collector connects with the connection point of R3 and R4, base connects with the connection point of R5 and R6, emitter connects to the reference ground, 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 ground at one end and R6 at the other end; r6 is connected to R5 at one end and to core processing unit 403 at the other end; r5 and R6 form the functions of partial pressure and current limiting, and the resistance value is determined according to the base current of VT 2; the pin 1 of the optical coupler U1 is connected to the connection point of R3 and R4, the pin 2 is connected to the above reference ground, the pin 4 is connected to the positive electrode of the power supply P1, and the pin 3 is connected to one end of R7; the manual control switch S1 is a duplex reset switch, wherein the 2 pin of the S1 is connected to the 4 pin of the U1, the 4 pin of the S1 is connected to the 3 pin of the U1, the 2 pin and the 4 pin of the S1 are the two ends of the contact of one reset switch, the 1 pin and the 3 pin of the S1 are the two ends of the contact of the other reset switch, and the two reset switches are linked so as to be called as the duplex reset switch; the 1 st pin and the 3 rd pin of the S1 are connected with the core processing unit 403 through the switch state detection unit 404, so that the action of the manual control switch S1 can be detected 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 R8 is connected with the negative electrode of the power supply P1; the other end of R9 is connected with the grid electrode of the NMOS tube VT3 to play a role in current limiting; the source stage of VT3 is connected with the negative electrode 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, the switch function of the negative end of the power supply is formed, and the power supply conversion unit takes power; r7 and R8 form a voltage dividing circuit, and the resistance value is determined according to the gate-source driving voltage of VT 3; here, R1, R2, R3, R4, R5, R6, S1, 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 all general schemes in the field, and the embodiments of the present invention are not described in detail.
In the circuit structure example shown in fig. 4, when the voltage value of the power supply P1 is lower than the preset voltage threshold VL through the voltage detection unit 405, 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, that is, cut off the driving power supply of the NMOS tube VT3, the NMOS tube VT3 turns off the power supply loop, and the device enters the deep sleep state; if the device is in the deep sleep state at present, the device needs to be awakened, the manual control switch S1 is pressed down to bypass the optical coupler U1, the 3 pin and the 4 pin 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 the preset voltage threshold VL, and the device enters the awakening state and can work normally; if the voltage value of the power supply P1 is lower than VL, the core processing unit 403 drives the device to continue 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 detecting 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 tube VT3, so that the NMOS tube VT3 turns off the power supply loop, and the device may enter a deep sleep state; the timing unit 402 automatically controls the periodic wake-up of the device in the principle of: when the timed wake-up time set by the core processing unit 403 arrives, the timing unit 402 outputs a wake-up control signal to control the conduction of the PMOS tube VT1, and Vback up drives U1 to be conducted through VT1, so as to drive VT3 to be conducted, and the power supply loop is opened, so that the equipment can enter a wake-up state; meanwhile, after the power supply loop is turned on, the driving of the U1 is powered internally, and at this time, the core processing unit 403 drives the timing unit 402 to clear the output wake-up control signal, and turns off the VT1, so as to prevent the power consumption of the backup battery.
It should be noted that, the timing unit 402 can perform the timing wake-up according to the set timing wake-up duration only during the deep sleep period, and can turn off the periodic automatic wake-up function according to the actual requirement; for example, when the voltage of the power supply (usually referred to as a battery) is low, the battery is greatly damaged when the equipment continues to work, and the periodic wake-up function can be turned off to protect the power supply; the manual control switch S1 enters deep sleep, at this time, the timing unit 402 does not start the timing automatic wake-up function, and only can wake up the equipment by manual wake-up or power restoration of the main power supply in a multi-path power supply scene; in addition, when the VT3 power supply loop is turned off, mainly, the timing unit 402 consumes a small current in the nA level, so that the power consumption is low to the microwatts level.
In this embodiment, the devices VT1, VT2, U1, S1 and VT3 are not limited to the devices described in this embodiment, but may be other switching devices capable of implementing the same function, and the embodiment of the present invention is not limited specifically. For example, VT1 may be a bipolar transistor, for example, VT2 may be an NMOS transistor, for example, U1 may be a switch with an isolation function, or may be an optocoupler relay, for example, VT3 may be an IGBT or a bipolar transistor, or the like; this also falls within the scope of embodiments of the present invention.
Referring to fig. 5, a schematic circuit diagram of another device control apparatus according to an embodiment of the present invention is shown; in comparison with fig. 4, the variation in fig. 5 is the switching 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 not connected to pins 3 and 4 of the U1 any more, but one end pin 2 is connected to a connection point of the wake-up control signal of the timing unit 402 and pins R1 and R2, and the other end pin 4 is connected to the ground reference, for controlling the VT1 to be turned on; the pins 1 and 3 of S1, i.e. the other switch, are connected to the core processing unit 403 via a switch state detection unit 404 for detecting the state of the manual control switch S1. The other elements of fig. 5 are the same as those of fig. 4, and the logic function of fig. 5 is the same as that of fig. 4, and will not be described in detail here.
Referring to fig. 6, a schematic circuit diagram of still 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 the reference ground for controlling the turn-on of VT 1; wherein the cathode of the diode VD1 is connected to pin 1 of S1, and the anode of VD1 is connected to one end of R10; one end of R10 is connected with the anode of VD1, and the other end is connected with VCC, wherein the connection point of VD1 and R10 is connected to a core processing unit 403 for realizing the switch state detection of a manual control switch S1; here, VD1 is a schottky diode. The other elements of fig. 6 are the same as those of fig. 4, and the logic function of fig. 6 is the same as that of fig. 4, and will not be described in detail here.
Referring to fig. 7, a schematic circuit diagram of still another device control apparatus according to an embodiment of the present invention is shown; in contrast to fig. 4, the variation in fig. 7 is still a switching logic control unit 701. As shown in fig. 7, the timing unit 402 includes a battery power source Vbackup and an output wake-up control signal, where the Vbackup is connected to the 1 pin of the optical coupler U2 in the switch logic control unit 701, and the wake-up control signal is connected to the 2 pin of U2; the 3, 4 feet of U2 are connected with the 3, 4 feet of U1 in parallel, the 4 feet of U1 are connected with the 4 feet of U2, the 3 feet of U1 are connected with the 3 feet of U2, the 1, 2 feet of U1 are connected to the core processing unit 403, the 4 feet of U1 and U2 are connected to the positive pole of the power supply P1, and the 3 feet of U1 and U2 are connected to one end of R7; the pin 2 of the S1 is connected to the pin 4 of the U1 and the U2, the pin 4 of the S1 is connected to the pin 3 of the U1 and the U2, the pin 2 and the pin 4 of the S1 are the two ends of the contact of one reset switch, the pin 1 and the pin 3 of the S1 are the two ends of the contact of the other reset switch, and the two reset switches are linked so as to be called as a duplex reset switch; the 1 st pin and the 3 rd pin of the S1 are connected with the core processing unit 403 through the switch state detection unit 404, so that the action of the manual control switch S1 can be detected 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 R8 is connected with the negative electrode of the power supply P1; the other end of R9 is connected with the grid electrode of the NMOS tube VT3 to play a role in current limiting; the source stage of VT3 is connected with the negative electrode 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, the switch function of the negative end of the power supply is formed, and the power supply conversion unit takes power; r7 and R8 form a voltage dividing circuit, and the resistance value is determined according to the gate-source 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 all general schemes in the field, and the embodiments of the present invention are not described in detail.
In the circuit structure example shown in fig. 7, when the voltage value of the power supply P1 is lower than the preset voltage threshold VL through the voltage detection unit 405, the core processing unit 403 outputs a driving signal to control the optocoupler U1 to turn off, so that the driving power supply of the NMOS tube VT3 is cut off, the NMOS tube VT3 turns off the power supply loop, and the device enters a deep sleep state; if the device is in the deep sleep state at present, the device needs to be awakened, the manual control switch S1 is pressed down to bypass the optical coupler U1, the 3 pin and the 4 pin 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 the preset voltage threshold VL, and the device enters the awakening state and can work normally; if the voltage value of the power supply P1 is lower than VL, the core processing unit 403 drives the device to continue 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 detecting unit 404, and outputs a driving signal to turn off the optocoupler U1, so that the driving power supply of the NMOS tube VT3 is cut off, so that the NMOS tube VT3 turns off the power supply loop, and the device may enter a deep sleep state; the timing unit 402 automatically controls the periodic wake-up of the device in the principle of: when the timed wake-up time set by the core processing unit 403 arrives, the timing unit 402 outputs a wake-up control signal to control the turn-on of the optical coupler U1, so as to drive the turn-on of the VT3, turn on the power supply loop, and the equipment enters a wake-up state; meanwhile, after the power supply loop is turned on, the driving of U1 is powered internally, and at this time, the core processing unit 403 drives the timing unit 402 to clear the output wake-up control signal, and U2 is turned off, so as to prevent the power consumption of the backup battery.
It should be noted that, the timing unit 402 can perform the timing wake-up according to the set timing wake-up duration only during the deep sleep period, and can turn off 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 low, the battery is greatly damaged when the device continues to operate, and the periodic wake-up function can be turned off to protect the power supply; the manual control switch S1 enters deep sleep, at this time, the timing unit 402 does not start the timing automatic wake-up function, and only can wake up the equipment by manual wake-up or power restoration of the main power supply in a multi-path power supply scene; in addition, when the VT3 power supply loop is turned off, mainly, the timing unit 402 consumes a small current in the nA level, so that the power consumption is low to the microwatts level.
In this embodiment, the devices U1, U2, S1 and VT3 are not limited to the devices described in this embodiment, but may be other switching devices that can achieve the same function, and the embodiment of the present invention is not particularly limited. For example, U1 and U2 may be switches with isolation function, optocoupler relays, and VT3 may be IGBTs or bipolar transistors, etc.; this also falls within the scope of embodiments of the present invention.
Referring to fig. 8, a schematic circuit diagram of still another device control apparatus according to an embodiment of the present invention is shown; in comparison with fig. 7, the changing portion in fig. 8 is also the 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 not connected to the 3 pins and the 4 pins of the U1 and the U2 any more, but one end 2 pin of the switch is connected to the connection point of the wake-up control signal of the timing unit and the U2, and the other end 4 pin is connected to the ground reference for controlling the turn-on of the U2; the pins 1 and 3 of S1, i.e. the other switch, are connected to the core processing unit 403 via a switch state detection unit 404 for detecting the state of the manual control switch S1.
It should be noted that, if the device is currently in the deep sleep state and needs to be awakened, the manual control switch S1 is pressed to enable the optical coupler U2 to be turned on, so as to drive the VT3 to turn on the power supply loop, at this time, the voltage value of the power supply P1 is higher than the preset voltage threshold VL, and the device enters the awakened state and can work normally; if the voltage value of the power supply P1 is lower than VL, the core processing unit 403 drives the device to continue 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 detecting unit 404, and outputs a driving signal to turn off the optocoupler U1, so that the driving power supply of the NMOS tube VT3 is cut off, so that the NMOS tube VT3 turns off the power supply loop, and the device may enter a deep sleep state; the other elements of fig. 8 are the same as those of fig. 7, and the other logic of fig. 8 is the same as that of fig. 7, and the detailed description thereof will not be repeated.
Referring to fig. 9, a schematic circuit diagram of still another device control apparatus according to an embodiment of the present invention is shown. As shown in fig. 9, the switching logic control unit 901, the timing unit 402, the core processing unit 403, the switching 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 included; the switch logic control unit 901 includes, but is not limited to, any one of the switch logic control units 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 herein; the difference is that the way in which the switching device 407 is at the positive pole of the power supply loop is provided in this embodiment; 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 R8 is connected with the positive electrode of the power supply P1; the other end of R9 is connected with the grid electrode of the PMOS tube VT3 to play a role in current limiting; the source stage of VT3 is connected with the positive electrode 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, the positive end switch function of the power supply is formed, and the power supply conversion unit takes power; r7 and R8 form a voltage dividing circuit, and the resistance value is determined according to the gate-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 not losing 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, so that the power supply can be protected, and the ultra-low power consumption lower than the microwatts level is achieved after the power supply is turned off, so that the energy-saving effect is good.
On the basis of the above embodiment, referring to fig. 10, there is shown a system 100 provided in an embodiment of the present invention, where the system 100 includes: a device 1001 and a background terminal 1002, wherein,
the device 1001 is configured to send 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 time wake-up duration, and send the time wake-up duration to the device.
It should be noted that, the apparatus 1001 includes any one of the apparatus control devices 10 shown in fig. 1 to 9, and the apparatus 1001 further includes, but is not limited to, a communication unit 107, where the communication unit 107 is used for communication between the apparatus 1001 and the background terminal 1002, and performs information interaction; in addition, the communication unit 107 may use a wired or wireless communication method, where the wired communication method is preferably an ethernet method, and the wireless communication method is preferably a 2G/3G/4G method, and the embodiment of the present invention is not limited in particular.
The background terminal 1002 may store or otherwise process the operation state information of the device, which is received. For example, the background terminal 1002 issues the information through a Web page, and a user can view the operation state of the device through the Web page; in addition, parameter information setting, such as a preset time wake-up duration, may also be performed on the device 1001 by the background terminal 1002; however, if the device 1001 enters the sleep state, the running state information transmission of the device can be performed only after the device 1001 enters the awake state, and in the case where the device 1001 does not enter the awake state, the device 1001 continues to be in the sleep state at this time, and the background 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 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 wake-up strategy, providing corresponding processing signals for the switch logic control unit, and providing preset timed wake-up duration 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 signals provided by the core processing unit so as to enable the equipment to be in a deep sleep state or a wake-up state, and meanwhile, the switch logic control unit is also used for controlling the closing of the switch device according to the wake-up control signals provided by the timing unit so as to enable the equipment to be in the wake-up state; the timing unit is used for performing timing setting according to the preset timing wake-up time length 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 the deep sleep state; therefore, the equipment automatically or manually enters a deep sleep or wake-up state, and the aim of no loss of connection during the deep sleep is fulfilled; meanwhile, the protection effect on the power supply is achieved, 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.
Example two
Referring to fig. 11, a device control method according to an embodiment of the present invention is applied to the device control apparatus 10 according to any one of the foregoing embodiments, 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 turned off so as to enable the equipment to enter a deep sleep state;
s1103: and if the target parameter information meets a preset wake-up strategy, controlling a power supply loop of the power supply to be turned on so as to enable the equipment to enter a wake-up 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 turned off so as to enable the equipment to enter a deep sleep state; if the target parameter information meets a preset wake-up strategy, controlling a power supply loop of the power supply to be turned on so as to enable the equipment to enter a wake-up state; 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 turned off and on, and the aim of no disconnection during the deep sleep can be achieved; meanwhile, the protection effect on the power supply is achieved, 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.
For the technical solution shown in fig. 11, in one possible implementation manner, if the target parameter information meets a preset deep sleep policy, the power supply circuit of the power supply is controlled to be turned off, so that the device enters a deep sleep state, which 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 turned off so as to enable the equipment to enter a deep sleep state.
It should be noted that, in conjunction with the device control apparatus shown in fig. 1, when the target parameter information detected by the detecting unit 101 in real time is the voltage value of the power supply 108, the detecting 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 the first preset voltage threshold, 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 controls the switch device 106 to be turned off to turn off the power supply loop of the power supply 108, so as to make the equipment enter a deep sleep state; thereby realizing the automatic deep sleep state of the device.
For the technical solution shown in fig. 11, in one possible implementation manner, if the target parameter information meets a preset deep sleep policy, the power supply circuit of the power supply is controlled to be turned off, so that the device enters a deep sleep state, which specifically includes:
when the real-time detected target parameter information is the state information of the manual control switch,
and if the equipment is in an awakening state and receives the operation instruction information of the manual control switch so as to enable the state information to be pressed down, controlling a power supply loop of the power supply to be turned off so as to enable the equipment to enter a deep sleep state.
For the technical solution shown in fig. 11, in one possible implementation manner, if the target parameter information meets a preset wake-up policy, the controlling the power supply loop of the power supply to be turned on so as to enable the device to enter a wake-up state includes:
when the real-time detected target parameter information is the state information of the manual control switch,
and if the equipment is in the deep sleep state and receives the operation instruction information of the manual control switch to enable the state information to be pressed down, controlling a power supply loop of the power supply to be turned on so as to enable the equipment to enter an awake state.
It should be noted that, in conjunction with the device control apparatus shown in fig. 1, when the target parameter information detected in real time by the detecting unit 101 is the state information of the manual control switch 104, the detecting 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 an awake 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 of the manual control switch 104 to be pressed, and at this time, the switch logic control unit 103 controls the switch device 106 to be disconnected so that the power supply loop of the power supply 108 is turned off, so that the equipment enters a deep sleep state; in addition, 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 a deep sleep state and the state information of the manual control switch 104 is received to be pressed, the core processing unit 102 will provide 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 to be pressed, and at this time, the switch logic control unit 103 controls the switch device 106 to be closed so that the power supply loop of the power supply 108 is opened, so that the equipment enters the wake-up state; so that a manual entry of the device into a deep sleep or awake state may be achieved.
For the technical solution shown in fig. 11, in one possible implementation manner, if the target parameter information meets a preset wake-up policy, the power supply loop of the power supply is controlled to be turned on, so that the device enters a wake-up state, and specifically includes:
acquiring the duration time of the equipment entering a deep sleep state;
and if the duration meets the preset timed wake-up duration, controlling a power supply loop of the power supply to be turned on so as to enable the equipment to enter a wake-up state.
It should be noted that, in conjunction with the device control apparatus shown in fig. 1, when the device is in the deep sleep state and the timing unit 105 is in operation, if the duration of the device entering the deep sleep state meets the preset time wake-up duration of the timing unit 105, the switch logic control unit 103 controls the switch apparatus 106 to be closed so that the power supply loop of the power supply 108 is opened, so that the device enters the wake-up state; thereby enabling the device to automatically enter an awake state.
In the foregoing implementation manner, preferably, if the duration meets a preset time wakeup duration, the power supply loop of the power supply is controlled to be turned on, so that the device enters an awake state, including:
Configuring timing parameters of a timer; the configured timing parameter of the timer is obtained based on the preset timing wake-up duration;
starting the timer and timing at the moment that the equipment enters the dormant state;
and when the duration exceeds the end time of the timer, controlling a power supply loop of the power supply to be turned on so as to enable the equipment to enter an awake state.
It should be noted that, in conjunction with the device control apparatus shown in fig. 2, the timer 1051 is configured to output a wake-up control signal to control the device to wake up at a timing during the deep sleep state when the duration of the device entering the deep sleep state meets the preset wake-up timing; configuring timing parameters of the timer 1051, starting the timer 1051 and timing at the moment when the device enters the sleep state; when the duration of the device entering the deep sleep state exceeds the end time counted by the timer 1051, the switch logic control unit 103 controls the switch device 106 to be closed so that the power supply loop of the power supply 108 is opened, and thus the device enters the wake-up state.
It will be appreciated that when the device is in a deep sleep state, the timed wake-up function may also be turned off during the sleep state, as required to avoid damage to the power supply; thus, 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, the wake-up function may be turned off during the sleep state according to actual needs in order to avoid damage to the power supply. For example, in general, the power supply includes a main power supply and a backup power supply; when the main power supply is abnormal and power is cut 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; assuming that the voltage value of the standby power supply is very low, for example, the voltage value of the standby power supply is lower than a second preset voltage threshold, in order to prevent the standby power supply from overdischarging and even damaging the standby power supply, the timer can be turned off by turning off the timed wake-up function at this time; the device may then wake up if needed, either by manual wake up or by power restoration in a multi-channel power scenario.
For the solution shown in fig. 11, in a possible implementation manner, the method further includes:
And when the equipment is in the wake-up state, transmitting the running state information of the equipment.
It should be noted that, in connection with the system shown in fig. 10, the apparatus 1001 includes any one of the apparatus control devices 10 in the first embodiment, and when the apparatus 1001 is in the awake state, information interaction with the background terminal 1002 may be performed through the communication unit 107 in the apparatus 1001; for example, the communication unit 107 may receive a timed wake-up duration preset by the background terminal 1002, and then the device control apparatus 10 performs timing setting on the timing unit based on the timed wake-up duration; the operation state information of the apparatus 1001 may also be transmitted to the background terminal 1002 through the communication unit 107, and then distributed by the background terminal 1002 through a Web page, through which the user can view the operation state of the apparatus 1001.
The embodiment provides a device 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 turned off so as to enable the equipment to enter a deep sleep state; if the target parameter information meets a preset wake-up strategy, controlling a power supply loop of the power supply to be turned on so as to enable the equipment to enter a wake-up state; the power supply loop of the power supply is controlled to be turned off and on, so that the equipment can automatically or manually enter a deep sleep or wake-up state, and the aim of no disconnection during the deep sleep can be fulfilled; meanwhile, the protection effect on the power supply is achieved, 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.
Example III
It will be understood that each constituent unit in the above embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional modules.
The integrated units, if implemented in the form of software functional modules, may be stored in a computer-readable storage medium, if not sold or used as separate products, and based on such understanding, the technical solution of the present embodiment may be embodied essentially or partly in the form of a software product, which is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in the present embodiment. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Accordingly, the present embodiment provides a computer storage medium storing a device control program which, when executed by at least one processor, implements the steps of the method of device control described in the above embodiment two.
It is to be understood that some of the elements may be implemented in software, and that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof, to the extent that existing hardware techniques exist; wherein for a hardware implementation, the processing units may be implemented within one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processors (Digital Signal Processing, DSP), digital signal processing devices (DSP devices, DSPD), programmable logic devices (Programmable Logic Device, PLD), field programmable gate arrays (Field-Programmable Gate Array, FPGA), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units designed to perform the functions described herein, or a combination thereof; for a software implementation, the techniques described herein may be implemented by executing software code.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.

Claims (15)

1. A device control apparatus, the device control apparatus being applied to a device, the device control apparatus 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 power supply comprises a main power supply and a standby power supply, 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 at the moment, the equipment enters a deep sleep state to protect the standby power supply;
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; 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 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 corresponding processing signals for the switch logic control unit; the core processing unit is further configured to provide a preset timed wakeup duration to the timing unit; the core processing unit is further configured to close the timing unit if the voltage value of the standby power supply is lower than a second preset voltage threshold;
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 signals provided by the core processing unit so as to enable the equipment to be in a deep sleep state or an awake state; the switch logic control unit is further used for controlling the switch device to be closed so that a power supply loop of the power supply is opened when the duration of the equipment entering the deep sleep state exceeds the end time of the timer of the timing unit, so that the equipment is in the wake-up state;
the manual control switch is connected with the detection unit and the switch logic control unit and is used for detecting the state of the manual control switch by the detection unit and controlling the equipment to be in a deep sleep state or an awake state manually by 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 starting the timer and timing according to the preset time wake-up duration provided by the core processing unit at the moment when the equipment enters the dormant state, and providing a corresponding wake-up control signal for the switch logic control unit to control the time wake-up of the equipment in the deep dormant state;
The switching device is connected with the switching 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 of claim 1, wherein the switching logic control unit is specifically configured to:
if the target parameter information meets a preset deep sleep strategy, the switching device is controlled to be disconnected so that a power supply loop of the power supply is turned off, and the equipment enters a deep sleep state;
and if the target parameter information meets a preset wake-up strategy, controlling the switching device to be closed so that a power supply loop of the power supply is opened, so that the equipment enters a wake-up state.
3. The device control apparatus according to claim 2, wherein when the target parameter information detected by the detecting unit in real time is a voltage value of the power supply source, 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 disconnected so that a power supply loop of the power supply is turned off, and enabling the equipment to enter a deep sleep state.
4. The device control apparatus according to claim 2, wherein when the target parameter information detected in real time by the detection unit is state information of the manual control switch, the switch logic control unit is specifically configured to:
and if the equipment is in an awakening state and receives the operation instruction information of the manual control switch so as to enable the state information to be pressed down, controlling the switching device to be disconnected so that a power supply loop of the power supply is turned off, and enabling the equipment to enter a deep sleep state.
5. The device control apparatus according to claim 2, wherein when the target parameter information detected in real time by the detection unit is state information of the manual control switch, the switch logic control unit is specifically configured to:
and if the equipment is in the deep sleep state and receives the operation instruction information of the manual control switch to enable the state information to be pressed down, controlling the switching device to be closed so that a power supply loop of the power supply is opened, and enabling the equipment to enter an awake 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 switching logic control unit is specifically configured to:
And if the duration of the equipment entering the deep sleep state meets the timed wake-up duration preset by the timing unit, controlling the switching device to be closed so that a power supply loop of the power supply is opened, and enabling the equipment to enter the wake-up state.
7. The device control apparatus according to claim 1, wherein the detection unit includes a switching 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 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 detected voltage value 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 wake-up control signal when the duration of the equipment entering the deep sleep state meets the preset timed wake-up duration so as to control the equipment to wake up at the timing during the deep sleep state;
The backup battery is connected with the timer and is used for supplying power to the timer when the equipment enters a deep sleep state.
8. The device control apparatus of claim 1, further comprising a power conversion unit, wherein,
the power conversion unit is connected with the switching device and the power supply and used for ensuring stable power supply of each unit in the equipment control device.
9. The plant control apparatus according to claim 8, wherein,
when the main power supply is normal and supplies power, the main power supply is preferred to supply power, and the equipment does not enter a deep sleep state at the moment and works;
when the equipment is in the deep sleep state, if the power supply of the main power supply is recovered to be normal, the equipment enters the wake-up state, and the equipment works.
10. A device control system, the device control system comprising: device and background terminal, the device comprising at least a device control apparatus according to any one of claims 1 to 9, wherein,
the device is used for sending the running state information of the device to the background terminal in real time;
The background terminal is used for processing the received running state information of the equipment, setting the time awakening duration and sending the time awakening duration to the equipment.
11. A device control method, characterized in that the method is applied to the device control apparatus according to any one of claims 1 to 9, 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 turned off so as to enable the equipment to enter a deep sleep state;
configuring timing parameters of a timer; the configured timing parameter of the timer is obtained based on the preset timing wake-up duration;
when the real-time detected target parameter information is the voltage value of the power supply, if the voltage value is lower than a second preset voltage threshold value, closing the timer;
starting the timer and timing at the moment that the equipment enters the dormant state;
when the duration exceeds the end time of the timer, controlling a power supply loop of the power supply to be turned on so as to enable the equipment to enter an awake state;
And when the equipment is in the wake-up state, transmitting the running state information of the equipment.
12. The device control method according to claim 11, 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 including:
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 turned off so as to enable the equipment to enter a deep sleep state.
13. The device control method according to claim 11, 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 including:
when the real-time detected target parameter information is the state information of the manual control switch,
and if the equipment is in an awakening state and receives the operation instruction information of the manual control switch so as to enable the state information to be pressed down, controlling a power supply loop of the power supply to be turned off so as to enable the equipment to enter a deep sleep state.
14. The device control method according to claim 11, 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 real-time detected target parameter information is the state information of the manual control switch,
and if the equipment is in the deep sleep state and receives the operation instruction information of the manual control switch to enable the state information to be pressed down, controlling a power supply loop of the power supply to be turned on so as to enable the equipment to enter an awake state.
15. A computer storage medium storing a device control program which, when executed by at least one processor, implements the steps of the method of device control of any one of claims 11 to 14.
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 CN110797930A (en) 2020-02-14
CN110797930B true 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)

Families Citing this family (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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101893866B (en) * 2009-05-20 2014-12-24 Vega格里沙贝两合公司 Control device for field device, field device and method for controlling field device
CN106571616B (en) * 2015-10-10 2019-11-29 中兴通讯股份有限公司 Power supply suspend mode and wake-up circuit
CN105700396B (en) * 2016-01-22 2018-07-03 深圳市飞比电子科技有限公司 Intelligent switch component and its control method

Also Published As

Publication number Publication date
CN110797930A (en) 2020-02-14

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
CN105182802A (en) Switch system based on manual and wireless double-control and control method therefor
CN104850021B (en) A kind of power on/off system
CN203313417U (en) Wireless router
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
CN113765679A (en) Computer network awakening method and system
CN202331059U (en) Electrical appliance and standby control device and control system thereof
CN102096999B (en) Ultramicro power consumption stand-by remote control energy-saving controller
CN204810138U (en) Terminal equipment's automation start shooting circuit and terminal equipment
CN102998981A (en) electric appliance and standby control method, device and control system thereof
CN107863811B (en) Remote controller power supply control device and remote controller
CN205051670U (en) Fall electricity from opening control circuit
CN207664660U (en) Remote controller power supply control device and remote controller
CN112649724A (en) Power failure detection circuit and method and MCU chip
CN213182362U (en) Power supply control device and electronic apparatus
CN209805473U (en) Control circuit and charger of power supply
CN202771194U (en) Automatic shutdown all-off circuit
CN108631410B (en) Photovoltaic power generation unit self-starting control device and power supply system
US20070250725A1 (en) Power Saving Device for an Actuator
CN105823182A (en) Standby control circuit and air conditioner
CN201868834U (en) Energy-saving control switch circuit for household electrical appliances
CN219017529U (en) Relay driving circuit

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