Disclosure of Invention
The present invention mainly aims to provide an electronic device, an energy saving control method thereof, an energy saving apparatus, and a computer readable storage medium, and aims to solve the technical problem of how to save the electric energy consumed by the electronic device in the standby mode and to rapidly wake up the electronic device.
In order to achieve the above object, the present invention provides an electronic device, which includes a power supply module, a control module, and an execution module, wherein the electronic device further includes at least two switch modules;
when the electronic equipment is in a standby mode, the first switch module is used for disconnecting a circuit between the power supply module and the execution module and between the power supply module and the control module;
the second switch module is used for conducting a circuit between the power supply module and the control module and sending a starting control signal to the control module when the second switch module is pressed down;
the control module is used for entering a normal working mode when receiving the power supply output by the power supply module and the starting control signal, and controlling the first switch module to conduct a circuit between the power supply module and the execution module as well as between the power supply module and the control module.
Preferably, when the electronic device is in a normal operating mode, the control module is further configured to:
monitoring whether preset conditions are met or not at present;
and when the current condition is met, entering a standby mode and controlling the first switch module to be switched off.
Preferably, the second switch module is further configured to:
and when the electronic equipment is in a normal working mode and the second switch module is pressed down, sending a standby control signal to the control module so that the control module enters a standby mode based on the standby control signal.
Preferably, the first switch module comprises two electronic switches and the second switch module comprises two mechanical switches;
the first electronic switch is arranged on a circuit between the power supply module and the control module and used for conducting on or off the circuit based on the control of the control module;
the second electronic switch is arranged on a circuit between the power supply module and the execution module and used for conducting on or off the circuit based on the control of the control module;
the power supply module is used for supplying power to the power supply module, the control module is used for controlling the power supply module to supply power to the power supply module, the first mechanical switch and the second mechanical switch are arranged on another circuit between the power supply module and the control module in parallel, the first mechanical switch is used for conducting the circuit between the power supply module and the control module when being pressed down, and the second mechanical switch is used for sending a starting control signal to the control module when being pressed down.
In addition, in order to achieve the above object, the present invention provides an energy saving control method for an electronic device, including:
when the electronic equipment is in a standby mode, keeping the first switch module disconnected so as to cut off a circuit between the power supply module and the control module and between the power supply module and the execution module;
when the second switch module is pressed down, a circuit between the power supply module and the control module is conducted, and a starting control signal is sent to the control module;
when the control module receives the power supply output by the power supply module and the starting-up control signal, the control module enters a normal working mode and controls the first switch module to conduct a circuit between the power supply module and the execution module and between the power supply module and the control module.
Preferably, the method for controlling power saving of an electronic device further includes:
monitoring whether a preset condition is met currently or not when the electronic equipment is in a normal working mode;
and when the current condition is met, entering a standby mode and controlling the first switch module to be switched off.
Preferably, the preset condition at least includes any one of monitoring whether a standby control signal is received, monitoring whether the current electric quantity of the electronic device is less than or equal to a first preset threshold, and monitoring whether a time difference between the time when the gesture operation of the electronic device exists last time and the current time is greater than or equal to a second preset threshold.
Preferably, the first switch module comprises two electronic switches and the second switch module comprises two mechanical switches;
the first electronic switch is arranged on a circuit between the power supply module and the control module and used for conducting on or off the circuit based on the control of the control module;
the second electronic switch is arranged on a circuit between the power supply module and the execution module and used for conducting on or off the circuit based on the control of the control module;
the power supply module is used for supplying power to the power supply module, the control module is used for controlling the power supply module to supply power to the power supply module, the first mechanical switch and the second mechanical switch are arranged on another circuit between the power supply module and the control module in parallel, the first mechanical switch is used for conducting the circuit between the power supply module and the control module when being pressed down, and the second mechanical switch is used for sending a starting control signal to the control module when being pressed down.
In addition, to achieve the above object, the present invention provides an energy saving device including the electronic apparatus as defined in any one of the above, the energy saving device further including: a memory, a processor and a power saving program stored on the memory and executable on the processor, the power saving program when executed by the processor implementing the steps of the power saving control method of an electronic device as claimed in any one of the above.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon an energy saving program which, when executed by a processor, realizes the steps of the energy saving control method of an electronic device as set forth in any one of the above.
The electronic equipment comprises a power supply module, a control module, an execution module and at least two switch modules, wherein when the electronic equipment is in a standby mode, the first switch module disconnects a circuit between the power supply module and the execution module and a circuit between the power supply module and the control module. By pressing the second switch module, a circuit between the power supply module and the control module is conducted, and a starting control signal is sent to the control module. When the control module receives the power supply and the starting control signal, the control module enters a normal working mode and controls the first switch module to conduct a circuit, namely, the electronic equipment cuts off the power supply of the control module and the execution module in the standby mode, the electric energy consumed in the standby mode is avoided, and the equipment is awakened quickly through the second switch module, so that the control module is more energy-saving and environment-friendly, further the ultra-long standby is realized, and the use experience of the user for using the electronic equipment is improved.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides an electronic device.
Referring to fig. 1, fig. 1 is a functional module schematic diagram of an electronic device according to an embodiment of the invention.
In this embodiment, the electronic device 100 includes a power supply module 101, a control module 102, an execution module 103, a first switch module 104, and a second switch module 105.
In this embodiment, the power supply module 101 is used to provide power, the control module 102 is used to control the operation of each module, the execution module 103 is used to invoke each module to execute tasks, and the switch module is used to switch on and off the circuit. Specifically, the first switch module 104 and the second switch module 105 are each provided with a plurality of subunits, and preferably, the first switch module 104 includes two electronic switches, and the second switch module 105 includes two mechanical switches. A unit of the first switch module 104, i.e. a first electronic switch, is arranged on the circuit between the control module 102 and the power supply module 101 to switch on or off the circuit, i.e. to control whether the current flows from the power supply module 101 to the control module 102. The other unit of the first switch module 104, i.e. the second electronic switch, is arranged in the circuit between the power supply module 101 and the execution module 103 for switching on or off the circuit. One unit of the second switch module 105, namely, the first mechanical switch, is disposed on another circuit between the control module 102 and the power supply module 101, and another unit of the second switch module 105, namely, the second mechanical switch, is configured to send a control signal, and the second mechanical switch is disposed side by side with the first mechanical switch, so that when pressed, the second mechanical switch is supported by a power supply, and then the signal can be sent. Preferably, the second switch module 105 is a tact switch structure, which is a physical button viewed from the outside, but includes two independent first and second mechanical switches inside the device. When the electronic device is in the standby mode and the second switch module 105 is pressed, the first mechanical switch and the second mechanical switch are simultaneously turned on, that is, the first mechanical switch is triggered to turn on a circuit between the control module 102 and the power supply module 101, and the second mechanical switch is also triggered to send a power-on control signal to the control module 102. When the second switch module 105 is pressed, the first mechanical switch and the second mechanical switch are simultaneously turned on, specifically, when the second switch module 105 is released, the first mechanical switch and the second mechanical switch are simultaneously turned off, that is, the first mechanical switch disconnects the circuit between the control module 102 and the power supply module 101, and meanwhile, the second mechanical switch is disconnected and then has no power support, and cannot send a power-on control signal to the control module 102.
In this embodiment, when the electronic device is in the standby mode, the power supply circuits of the control module 102 and the execution module 103 are cut off, so that when the control module 102 receives the power supply and the power-on control signal output by the power supply module 101, the control module 102 enters the normal operating mode, and controls the subunit of the first switch module 104 to turn on the circuit, and then the control module 102 and the execution module 103 can obtain the power supply output by the power supply module 101, thereby quickly waking up the electronic device 100 to enter the operating mode.
In this embodiment, the electronic device includes a power supply module 101, a control module 102, and an execution module 103, and at least includes two switch modules, and when the electronic device is in a standby mode, the first switch module 104 disconnects a circuit between the power supply module 101 and the execution module 103, and the control module 102. By pressing the second switch module 105, a circuit between the power supply module 101 and the control module 102 is turned on, and a power-on control signal is sent to the control module 102. When receiving the power supply and the power-on control signal, the control module 102 enters a normal operating mode, and controls the first switch module 104 to turn on the circuit, that is, the electronic device switches off the power supply of the control module 102 and the execution module 103 in the standby mode, so as to avoid the electric energy consumed in the standby mode, and wake up the device quickly through the second switch module 105, thereby being more energy-saving and environment-friendly, further realizing the ultra-long standby, and improving the use experience of the user in using the electronic device 100.
Further, the electronic device is in a normal operation mode, that is, the control module 102 is further configured to monitor whether a preset condition is currently met under the condition that the power supply is available. When the preset condition is met currently, the standby mode is entered, and the subunit of the first switch module 104 is controlled to be disconnected, so that the control module 102 and the execution module 103 are powered off, the electric energy wasted during the non-operation is saved, and the ultra-long standby is realized. Optionally, the preset condition includes that when the electronic device is in the normal operating mode and the second switch module 105 is pressed, the second switch module 105 is triggered to send a standby control signal to the control module 102, and then the control module 102 controls the first switch module 104 to be turned off, so that the electronic device 100 enters the standby mode again.
Further, the first switch module 104 is an electronic switch, and the second switch module 105 is a mechanical switch. The mechanical switch changes the on-off of the circuit by adopting a mechanical touch mode, for example, a starting key of a mobile phone or a computer needs to be touched by hand. The electronic switch changes the on-off of the circuit by adopting modes of photoelectric detection, magnetic field change judgment, current and the like. The second switching module 105 is turned on and sends a control signal when pressed and is turned off when released. Preferably, the second switch module 105 is a power-on key, and when pressed, it turns on the circuit between the power supply module and the control module and sends a control signal, such as a power-on or standby control signal, to the control module. The electronic equipment is awakened through the power-on key, the power-on and power-off functions of the equipment are not affected, namely the power-on or power-off functions of the electronic equipment can be realized through the power-on key, the standby or awakening functions of the electronic equipment can also be realized, additional mechanical keys are not needed, and the setting cost of the product is reduced.
Referring to fig. 2, fig. 2 is a schematic view illustrating a flow direction of current in each functional module according to an embodiment of the electronic device of the present invention.
As shown in fig. 2, the electronic device 100 includes a power supply module 101, a control module 102, an execution module 103, a first switch module 104, and a second switch module 105; the first switch module 104 includes a first electronic switch 1041 and a second electronic switch 1042, and the second switch module 105 includes a first mechanical switch 1051 and a second mechanical switch 1052. In the standby mode, the second switch is pressed to turn on the first mechanical switch 1051, so that current flows from the power supply module 101 to the control module 102, and simultaneously, the second mechanical switch 1052 is triggered, so that the second mechanical switch 1052 obtains the current provided by the power supply module 101, and then sends a signal to the control module 102. When the control module 102 obtains the power provided by the power supply module 101, the first electronic switch 1041 and the second electronic switch 1042 are controlled to conduct the circuit, and the power provided by the power supply module 101 can be respectively transmitted to the execution module 103 and the control module 102 through the first electronic switch 1041 and the second electronic switch 1042.
The invention also provides an energy-saving device.
Referring to fig. 3, fig. 3 is a schematic diagram of an operating environment of an energy saving device according to an embodiment of the energy saving control method for an electronic device of the present invention.
The energy saving device of the embodiment of the invention can be a mobile phone, a desktop computer, a tablet computer, a notebook computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, and the like.
As shown in fig. 3, the power saving apparatus includes all the functional modules (not identified) of the electronic device 100 in the above embodiment, and further includes: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display (Display), an input unit such as a Keyboard (Keyboard), and the network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the hardware configuration of the economizer shown in fig. 2 does not constitute a limitation of the economizer, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 3, a memory 1005, which is a kind of computer-readable storage medium, may include therein an operating system, a network communication module, a user interface module, and a computer program. Among them, the operating system is a program that manages and controls the power saving device and software resources, and supports the operation of the power saving program and other software and/or programs.
In the hardware configuration of the energy saving apparatus shown in fig. 3, the network interface 1004 is mainly used for accessing a network; the user interface 1003 is mainly used for detecting a confirmation instruction, an editing instruction, and the like. And the processor 1001 may be configured to call the power saving program stored in the memory 1005 and perform the following operations:
when the electronic equipment is in a standby mode, keeping the first switch module disconnected so as to cut off a circuit between the power supply module and the control module and between the power supply module and the execution module;
when the second switch module is pressed down, a circuit between the power supply module and the control module is conducted, and a starting control signal is sent to the control module;
when the control module receives the power supply output by the power supply module and the starting-up control signal, the control module enters a normal working mode and controls the first switch module to conduct a circuit between the power supply module and the execution module and between the power supply module and the control module.
Further, the energy saving device calls the energy saving program stored in the memory 1005 through the processor 1001 to perform the following operations:
monitoring whether a preset condition is met currently or not when the electronic equipment is in a normal working mode;
and when the current condition is met, entering a standby mode and controlling the first switch module to be switched off.
Further, the energy saving device calls the energy saving program stored in the memory 1005 through the processor 1001 to perform the following operations:
the preset conditions at least comprise any one of monitoring whether a standby control signal is received or not, monitoring whether the electric quantity of the current electronic equipment is smaller than or equal to a first preset threshold or not, and monitoring whether the time difference between the time when the gesture operation of the electronic equipment exists last time and the current time is larger than or equal to a second preset threshold or not.
Based on the hardware structure, various embodiments of the energy-saving control method of the electronic device are provided.
Referring to fig. 4, fig. 4 is a flowchart illustrating an energy saving control method of an electronic device according to an embodiment of the present invention.
In this embodiment, the energy saving control method for the electronic device includes:
step S10, when the electronic device is in a standby mode, keeping the first switch module off, so as to cut off the circuit between the power supply module and the control module and the execution module;
in this embodiment, the modules are software and hardware units that can be combined and replaced in a communication, computer, and data processing control system, and each module completes one sub-function to combine all the modules into a whole. The power supply module is used for providing power, the control module is used for controlling the operation of each module, the execution module is used for calling each module to execute tasks, and the switch module is used for switching on and off the circuit. The electronic equipment is in a standby mode, namely the equipment is started but does not work, and the control module and the execution module continue consuming power supply when the electronic equipment does not work, so that the first switch module is kept disconnected in the standby mode to cut off circuits among the power supply module, the control module and the execution module, namely the power supply of the control module and the execution module, and further save electric energy.
Step S20, when the second switch module is pressed, the circuit between the power supply module and the control module is conducted, and a starting control signal is sent to the control module;
in this embodiment, since the power supplies of the control module and the execution module in the electronic device are cut off, the control module cannot respond to the operation and cannot wake up the execution module to work. The functional module can operate only by being supported by a power supply, and for rapidly waking up the electronic equipment to enter a normal working mode, the control module obtains the power supply through the arranged second switch module, namely, the circuit is switched on when the second switch module is pressed down, and simultaneously sends a signal, specifically a starting-up control signal, to the control module when the second switch module is pressed down.
Step S30, when the control module receives the power supply output by the power supply module and the power-on control signal, the control module enters a normal operating mode, and controls the first switch module to turn on the circuit between the power supply module and the execution module as well as the circuit between the power supply module and the control module.
In this embodiment, when receiving the power support and the power-on control signal, the control module enters a normal operating mode based on the power-on control signal to control the first switch module to be turned on. Due to the existence of the two circuits, one unit of the first switch module can be controlled to conduct the circuit between the control module and the power supply module, so that the self control module is ensured to be supported by a power supply, and the other unit of the first switch module is controlled to conduct the circuit between the execution module and the power supply module, so that the execution module can obtain the power supply support and can call other modules to run, such as function calculation and the like, and further, the electronic equipment in standby is awakened. Optionally, when the control module receives the power support and the power-on control signal, the control module may also turn on the two circuits at the same time, so that the control module and the execution module obtain power at the same time.
When the electronic device in this embodiment is in the standby mode, the first switch module is kept off, that is, the power of the control module and the execution module is cut off. And under the condition, the second switch module is pressed, a circuit between the power supply module and the control module is conducted, and a starting control signal is sent to the control module. Then the control module enters a normal working mode when receiving the power supply and the starting-up control signal output by the power supply module, and controls the first switch module to be switched on, so that the electronic equipment is awakened to normally work and operate, the ultra-energy-saving standby is realized without shutdown processing, and meanwhile, the mode of awakening the equipment is simple and easy to operate, and the use experience of a user is improved.
Referring to fig. 5, fig. 5 is a flowchart illustrating an energy saving control method for an electronic device according to another embodiment of the present invention.
Based on the foregoing embodiment, in this embodiment, the processor further performs the following operations:
step S40, when the electronic equipment is in a normal working mode, monitoring whether the preset condition is met currently;
in this embodiment, the preset condition refers to a detection condition preset by a development designer, and may be judgment time or receiving a standby instruction, and the like, and is specifically set according to an actual need.
And step S50, when the preset condition is met, entering a standby mode and controlling the first switch module to be switched off.
In this embodiment, when the preset condition is currently satisfied, the standby mode is entered, the first switch module is controlled to be turned off, and then the power supplies of the control module and the execution module are cut off to enable the standby mode not to work. Preferably, the control module can control the execution module to be powered off first and then the control module to be powered off, so that super energy conservation is realized, power consumption is reduced, and standby time of the electronic equipment is prolonged. Furthermore, the sub-units of the first switch module can be controlled to be simultaneously turned off, that is, the power supplies of the control module and the execution module are simultaneously cut off, and the setting is specifically performed according to actual needs.
Optionally, the preset condition may be any one of monitoring whether a standby control signal is received, monitoring whether the current electric quantity of the electronic device is less than or equal to a first preset threshold, and monitoring whether a time difference between the time when the gesture operation of the electronic device exists last time and the current time is greater than or equal to a second preset threshold, which is specifically set according to an actual situation.
(1) Whether a standby control signal is received or not is monitored, the control module and the execution module are supplied with power when the electronic equipment is in a normal working mode, the second switch module is pressed down again at the moment, and then the standby control signal is triggered to be sent to the control module, when the control module receives the standby control signal, the preset condition is met currently, and then the control module enters the standby mode, controls the first switch module to disconnect a circuit, and cuts off the power of the control module and the execution module.
(2) Whether the electric quantity of the current electronic equipment is smaller than or equal to a first preset threshold value or not is monitored, the control module and the execution module are powered on, namely, electric energy is consumed, the power supply of the power supply module is limited, the electric quantity can be checked through the electric quantity, for example, the current electric quantity is 100%, or 56%, 32% and the like, and the method is specifically determined according to actual use conditions. The preset threshold is a preset value range, the first preset threshold is used for measuring whether the current electric quantity meets a preset condition, for example, the first preset threshold is 20%, and the electric quantity of the electronic equipment is decreased from large to small, so that when the current electric quantity is less than or equal to 20%, the current electric quantity meets the preset condition, and then the standby mode is entered, the first switch module is controlled to disconnect a circuit, and the power supply of the control module and the execution module is cut off.
(3) And monitoring whether the time difference between the time when the gesture operation exists in the electronic equipment for the last time and the current time is larger than or equal to a second preset threshold value. In a normal working mode, the electronic device firstly acquires the time of the last gesture operation, namely, the time point corresponding to the gesture operation of the user using the device, and judges how long the user has not used the electronic device according to the time difference between the time point and the current time, namely, judges whether the time period from the time of the user last operating the device to the current time is greater than or equal to a second preset threshold value. The second preset threshold is also a preset value range and is used for measuring whether the preset condition is met currently, for example, the second preset threshold is 30 minutes, 12 minutes and 15 minutes are obtained when the user uses the electronic device for operation last time, the current time is 14 minutes, and the time difference is greater than 30 minutes, that is, the preset condition is met currently, so that the standby mode is entered, the first switch module is controlled to disconnect a circuit, and the power supplies of the control module and the execution module are cut off.
Furthermore, (1) the user is required to manually operate the second switch module to enter the standby mode, and (2) and (3) the electronic equipment automatically enters the standby mode, so that more choices are provided for the user in different modes, and the user can set whether to start the corresponding detection condition according to personal use habits, and further the user can better meet the requirement of using the electronic equipment by the user.
It should be noted that the first switch module is an electronic switch, and the on/off of the circuit is changed by adopting a photoelectric detection mode, a magnetic field change judgment mode, a current mode and the like. The first switch module comprises two electronic switches, the first electronic switch is arranged on a circuit between the power supply module and the control module, and the second electronic switch is arranged on a circuit between the power supply module and the execution module and used for conducting or breaking the circuit. The second switch module is a mechanical switch, is a tact switch structure, is turned on when being pressed and is turned off when not being pressed, is a physical key when being viewed externally, but comprises two independent first mechanical switches and second mechanical switches inside the equipment, and the first mechanical switches and the second mechanical switches are arranged on another circuit between the power supply module and the control module side by side. The second switch module is preferably a power-on key, pressing the power-on key triggers the first mechanical switch to conduct a circuit between the power supply module and the control module, and triggers the second mechanical switch to send a control signal, such as a power-on or standby control signal, to the control module. Furthermore, the electronic equipment is awakened through the power-on key, the power-on and power-off functions of the equipment are not affected, namely the power-on or power-off functions of the electronic equipment can be realized through the power-on key, the standby or awakening functions of the electronic equipment can also be realized, additional mechanical keys are not needed, and the setting cost of the product is reduced.
Further optionally, in order to achieve the above object, the present invention further provides a computer-readable storage medium, where the computer-readable storage medium provided in this embodiment stores an energy saving program, which includes controlling the switch module to be turned on or off, sending a control signal, and the like. The stored energy saving program can be read, interpreted and executed by the processor, so as to implement the steps of the energy saving control method of the electronic device in any of the above energy saving control method embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
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 readable 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.
The present invention is described in connection with the accompanying drawings, but the present invention is not limited to the above embodiments, which are only illustrative and not restrictive, and those skilled in the art can make various changes without departing from the spirit and scope of the invention as defined by the appended claims, and all changes that come within the meaning and range of equivalency of the specification and drawings that are obvious from the description and the attached claims are intended to be embraced therein.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.