CN109388225B - Key triggering energy-saving control method, storage medium, control device and terminal thereof - Google Patents

Key triggering energy-saving control method, storage medium, control device and terminal thereof Download PDF

Info

Publication number
CN109388225B
CN109388225B CN201811160568.4A CN201811160568A CN109388225B CN 109388225 B CN109388225 B CN 109388225B CN 201811160568 A CN201811160568 A CN 201811160568A CN 109388225 B CN109388225 B CN 109388225B
Authority
CN
China
Prior art keywords
key
state
main control
current
control chip
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
CN201811160568.4A
Other languages
Chinese (zh)
Other versions
CN109388225A (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.)
Shenzhen Zhixing Technology Co Ltd
Original Assignee
Shenzhen Zhixing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Zhixing Technology Co Ltd filed Critical Shenzhen Zhixing Technology Co Ltd
Priority to CN201811160568.4A priority Critical patent/CN109388225B/en
Publication of CN109388225A publication Critical patent/CN109388225A/en
Application granted granted Critical
Publication of CN109388225B publication Critical patent/CN109388225B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3243Power saving in microcontroller unit
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3275Power saving in memory, e.g. RAM, cache

Abstract

The invention discloses a key triggering energy-saving control method, a storage medium, a control device and a terminal thereof; the key point of the technical scheme is that the current key triggering information is obtained; the main control chip compares the preset key information with the current key triggering information to judge whether the key is in a key false triggering state; if the current state is a key false triggering state, the main control chip controls the built-in timer to start to send timing signal information and then enters a forced dormancy state; the built-in timer awakens the main control chip discontinuously according to the timing signal information, the main control chip judges whether the main control chip is still in a key false triggering state, and if the current state is still in the key false triggering state, the main control chip enters a forced dormancy state and waits to be awakened next time; if the current state is not the key false triggering state, the main control chip resets and closes the built-in timer; the invention can reduce the electric energy loss as much as possible and prolong the service life.

Description

Key triggering energy-saving control method, storage medium, control device and terminal thereof
Technical Field
The invention relates to the technical field of key triggering control, in particular to a key triggering energy-saving control method, a storage medium, a control device and a terminal thereof.
Background
The existing chip or system with the key function has a protection mechanism for judging overtime when the key is pressed for a long time. When the long press key exceeds a certain time, the key is judged to be pressed by mistake, and the chip stops the feedback action corresponding to the key to avoid consuming more electric energy, and the key can not normally work until the pressed key is released again. Taking the infrared remote controller as an example, when the power consumption is maximum, namely when the signal is sent after the key is triggered, if the key is pressed by mistake, the signal is continuously sent without overtime protection, and the battery power can be exhausted quickly.
In the conventional chip or system, a matrix type or T type key scanning is generally configured by an I/O port. When no key is pressed, the chip or the system is in a dormant state to reduce the power consumption.
In matrix key scanning systems, the conventional long key protection mechanism is implemented by waking up a chip to execute a key operation and determining that the key is overtime by a program when an input port receives a falling edge signal. When the key overtime happens, the program stops the action corresponding to the key and puts the chip into a dormant state, and the system consumes little power; therefore, the action corresponding to the key can be executed again only by pressing the key again after the key is released. The key wakes up the chip when the input port receives the falling edge signal, and the chip is woken up again to execute the action of the key only when the falling edge signal generated by pressing the button again. The method can greatly reduce the electric energy loss, but a little current still exists in the continuous key-press from the pull-up current preset by the input port to the low-potential output port, and the current is about tens of microamperes according to the resistance value of the pull-up resistor. If a plurality of keys are pressed at the same time, for example, the infrared remote controller is pressed by a heavy object, a large amount of power is consumed.
In the T-type key scanning system, the wake-up function cannot be realized by waking up the chip by using the falling edge signal due to the difference of the key scanning modes. The reason is that when the T-shaped key scanning system is in a dormant state, all I/O ports will output low-level pulse signals at intervals to detect whether a key is pressed or not, so even if the program judges that the key is overtime and stops moving to the dormant state, the program will be awakened to execute the key movement as long as the key is still. Therefore, the protection mechanism of the long-time key in the T-shaped key scanning system can only stop the key action by a program and continuously check whether the key is released, and can return to a normal program to enter the dormancy after detecting that the key is released; the chip is in an operating state when the key is continuously pressed, and consumes a great deal of electric energy although the corresponding action of the key is stopped.
Therefore, the two existing long key protection mechanisms still have larger electric energy loss, so that certain improvement space is provided.
Disclosure of Invention
The first purpose of the present invention is to provide a key triggering energy-saving control method, which can effectively reduce the power consumption when the key is triggered, and prolong the service life.
The technical purpose of the invention is realized by the following technical scheme:
a key-triggered energy-saving control method,
acquiring current key trigger information of a current key;
the main control chip compares preset key information with current key trigger information according to the preset key information to judge whether the key is in a key false trigger state; if the current state is a key false triggering state, the main control chip controls the built-in timer to start to send timing signal information and then enters a forced dormancy state;
the built-in timer awakens the main control chip discontinuously according to the timing signal information, the main control chip judges whether the main control chip is still in a key false triggering state, and if the current state is still in the key false triggering state, the main control chip enters a forced dormancy state and waits to be awakened next time; if the current state is not the key false triggering state, the main control chip resets and closes the built-in timer.
By adopting the technical scheme, if the key is in a key false triggering state, namely the key is always kept in a triggering state, signals can be continuously sent, the signals are continuously sent without overtime protection, the electric energy of a battery can be exhausted quickly, key overtime protection can be realized by triggering the key, and meanwhile, the problem that a large amount of electric energy is still consumed when the main control chip is always in a working state in the existing overtime protection mode on the market is effectively avoided.
The invention is further configured to: the preset key information comprises key reference time information, and the current key trigger information comprises current key trigger time information; if the current key triggering time information is larger than the key reference time information, the main control chip judges that the current state is a key false triggering state.
By adopting the technical scheme, the judgment can be completed only by comparing the time period of the key, namely the judgment is completed only by comparing the time period of the key, namely the key is judged to be in a key false triggering state if the key exceeds the preset time, namely the abnormal triggering is indicated at the moment.
The invention is further configured to: the current key triggering information comprises current key triggering position information and current key execution information corresponding to the current key triggering position information, and if the current state is a key false triggering state, the main control chip stops sending the current key execution information.
By adopting the technical scheme, the state of the information is sent after the key is triggered when the electric energy damage quantity is large, so that once the current state is judged to be the key false triggering state, the main control chip directly stops sending the current key execution information, and the energy consumption is greatly reduced.
The invention is further configured to: acquiring updated current key trigger information of a key after awakening a main control chip; the updated current key trigger information comprises updated current key trigger time information and updated current key trigger position information;
the main control chip compares the updated current key trigger position information with the current key trigger position information, and if the updated current key trigger position information is the same as the current key trigger position information and the updated current key trigger time information is larger than the key reference time information, the current state is still determined to be the key false trigger state;
if the current state is still the key false triggering state, the main control chip enters a forced dormancy state and waits to be awakened next time; if the current state is not the key false triggering state, the main control chip resets and closes the built-in timer.
By adopting the technical scheme, after the built-in timer wakes up the main control chip, the key condition is detected again and the corresponding current key trigger information is updated to form the updated current key trigger information, whether the key is still in the key false triggering state is judged again according to the previous judging method, if so, the main control chip continues to enter the forced dormancy to wait for being woken up next time, and if not, the main control chip enters the normal working state.
The invention is further configured to: and if the updated current key triggering position information is different from the current key triggering position information, judging that the current state is not the key false triggering state.
By adopting the technical scheme, as the triggered key is changed in the judging process, the key is preliminarily judged to be not in the key false triggering state, namely the main control chip directly restores to the normal working state, and the newly triggered key is judged to be in the key false triggering state.
The invention is further configured to: if the updated current key trigger position information is different from the current key trigger position information, the main control chip judges whether the obtained updated current key trigger information is in a key false trigger state; if the current state is a key false triggering state, the main control chip controls the built-in timer to start to send timing signal information and then enters a forced dormancy state;
the built-in timer awakens the main control chip discontinuously according to the timing signal information, the main control chip judges whether the main control chip is still in a key false triggering state, and if the current state is still in the key false triggering state, the main control chip enters a forced dormancy state and waits to be awakened next time; if the current state is not the key false triggering state, the main control chip resets and closes the built-in timer.
By adopting the technical scheme, after the key is changed, the newly triggered key is judged, namely the previous method is adopted to judge whether the newly triggered key is in a key false triggering state, if so, the main control chip enters a forced sleep state to wait for the next awakening of the built-in timer and waits for the detection after the awakening again, and if the new key is not in the key false triggering state, the main control chip is reset to send a corresponding signal to execute the function corresponding to the key.
The invention is further configured to: the main control chip scans the keys to acquire the current key trigger position information and the updated current key trigger position information.
By adopting the technical scheme, the key triggering is obtained, and different levels are obtained by scanning all keys to confirm the currently triggered case.
The second objective of the present invention is to provide a storage medium, which can effectively reduce the power consumption when the key is triggered, and prolong the service life.
The technical purpose of the invention is realized by the following technical scheme:
a storage medium storing a set of instructions adapted to be loaded by a processor and to perform a process comprising:
acquiring current key trigger information of a current key;
the main control chip compares preset key information with current key trigger information according to the preset key information to judge whether the key is in a key false trigger state; if the current state is a key false triggering state, the main control chip controls the built-in timer to start to send timing signal information and then enters a forced dormancy state;
the built-in timer awakens the main control chip discontinuously according to the timing signal information, the main control chip judges whether the main control chip is still in a key false triggering state, and if the current state is still in the key false triggering state, the main control chip enters a forced dormancy state and waits to be awakened next time; if the current state is not the key false triggering state, the main control chip resets and closes the built-in timer.
By adopting the technical scheme, if the key is in a key false triggering state, namely the key is always kept in a triggering state, signals can be continuously sent, the signals are continuously sent without overtime protection, the electric energy of a battery can be exhausted quickly, key overtime protection can be realized by triggering the key, and meanwhile, the problem that a large amount of electric energy is still consumed when the main control chip is always in a working state in the existing overtime protection mode on the market is effectively avoided.
The third objective of the present invention is to provide a control device, which can effectively reduce the power consumption when the key is triggered, and prolong the service life.
The technical purpose of the invention is realized by the following technical scheme:
a control device, comprising:
a processor for loading and executing a set of instructions; and
the storage medium described above.
By adopting the technical scheme, if the key is in a key false triggering state, namely the key is always kept in a triggering state, signals can be continuously sent, the signals are continuously sent without overtime protection, the electric energy of a battery can be exhausted quickly, key overtime protection can be realized by triggering the key, and meanwhile, the problem that a large amount of electric energy is still consumed when the main control chip is always in a working state in the existing overtime protection mode on the market is effectively avoided.
The fourth objective of the present invention is to provide a terminal, which can effectively reduce the power consumption when the key is triggered, and prolong the service life.
The technical purpose of the invention is realized by the following technical scheme:
a terminal, comprising:
a plurality of keys;
a processor for loading and executing a set of instructions; and
the storage medium described above.
By adopting the technical scheme, if the key is in a key false triggering state, namely the key is always kept in a triggering state, signals can be continuously sent, the signals are continuously sent without overtime protection, the electric energy of a battery can be exhausted quickly, key overtime protection can be realized by triggering the key, and meanwhile, the problem that a large amount of electric energy is still consumed when the main control chip is always in a working state in the existing overtime protection mode on the market is effectively avoided.
In conclusion, the invention has the following beneficial effects: the electric energy loss is reduced as much as possible, and the service life is prolonged.
Drawings
Fig. 1 is a flow chart of a key-triggered energy-saving control method.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings.
The present embodiment is only for explaining the present invention, and it is not limited to the present invention, and those skilled in the art can make modifications of the present embodiment without inventive contribution as needed after reading the present specification, but all of them are protected by patent law within the scope of the claims of the present invention.
The embodiment of the invention provides a key triggering energy-saving control method, which comprises the following steps: acquiring current key trigger information of a current key; the main control chip compares preset key information with current key trigger information according to the preset key information to judge whether the key is in a key false trigger state; if the current state is a key false triggering state, the main control chip controls the built-in timer to start to send timing signal information and then enters a forced dormancy state; the built-in timer awakens the main control chip discontinuously according to the timing signal information, the main control chip judges whether the main control chip is still in a key false triggering state, and if the current state is still in the key false triggering state, the main control chip enters a forced dormancy state and waits to be awakened next time; if the current state is not the key false triggering state, the main control chip resets and closes the built-in timer.
In the embodiment of the invention, whether the key is in the false triggering state or not is judged, if the key is in the false triggering state, the main control chip is directly controlled to enter the forced dormancy state, the situation that the main control chip is always in the working state and continues consuming electric energy is avoided, and in order to carry out subsequent judgment on the key state, the built-in timer is arranged, so that the main control chip can be awakened discontinuously through the built-in timer, namely the detection on the key false triggering state of the subsequent key state is realized, and meanwhile, the energy consumption is further reduced.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship, unless otherwise specified.
The embodiments of the present invention will be described in further detail with reference to the drawings attached hereto.
Referring to fig. 1, an embodiment of the present invention provides a key-triggered energy saving control method, and a main flow of the method is described as follows.
Step 100: and acquiring current key trigger information of the current key.
The current key triggering information comprises current key triggering time information, current key triggering position information and current key execution information corresponding to the current key triggering position information.
The current key triggering time information is the time period of the triggered key, timing is started from key triggering until the key triggering is finished, and if the key is always kept triggered, the timing state is always kept.
The current key triggering position information, namely the position of the triggered key, and the position can be acquired in various ways; in one embodiment, the high-low level signal output by the current key can be judged, if the output is high level, the current key is in a triggered state, and the position of the output high level signal is the position of the trigger key, and the key is always in a power supply state at the moment; in one embodiment, the main control chip obtains the key trigger position by scanning the key, and the scanning mode adopts a sequential detection mode, namely a circular detection mode, so that the energy consumption can be further reduced.
After the current key execution information is obtained corresponding to the current key trigger position information, the execution command corresponding to the trigger position, such as a power-on command, a power-off command, and the like, has been defined, so the current case execution information is the corresponding execution command.
Step 200: the main control chip compares preset key information with current key trigger information according to the preset key information to judge whether the key is in a key false trigger state; if the current state is the key false triggering state, the main control chip controls the built-in timer to start to send timing signal information and then enters a forced dormancy state.
The preset key information comprises key reference time information, and the key reference time information is a judgment reference, namely a preset longest trigger time period; in the process of judging whether the state is the key false triggering state, if the key exceeds the preset time, the abnormal triggering is indicated, the state is judged to be the key false triggering state, and the false triggering is generally caused by pressing the key by a heavy object, so that the judgment can be completed only by comparing the time period of the key; if the current key triggering time information is larger than the key reference time information, the main control chip judges that the current state is a key false triggering state, the main control chip stops sending the current key execution information, and the main control chip enters a forced dormancy state; if the current key triggering time information is smaller than the key reference time information, the main control chip judges that the current state is a non-key false triggering state, and the main control chip normally works at the moment and sends corresponding current key execution information.
The built-in timer is preferably an oscillator with very low power consumption (less than 1 microamp), and the oscillator provides a clock signal to realize a timing function.
Step 300: the built-in timer awakens the main control chip discontinuously according to the timing signal information, the main control chip judges whether the main control chip is still in a key false triggering state, and if the current state is still in the key false triggering state, the main control chip enters a forced dormancy state and waits to be awakened next time; if the current state is not the key false triggering state, the main control chip resets and closes the built-in timer.
The timing signal information is a clock signal provided by the oscillator, and a high level signal or a low level signal is provided at a preset time interval to wake up the main control chip.
Step 400: acquiring updated current key trigger information of a key after awakening a main control chip; the updated current key trigger information comprises updated current key trigger time information, updated current key trigger position information and updated current key execution information.
The updated current key trigger information and the updated current key trigger information belong to the same key and are respectively corresponding to different keys.
The current key trigger information after updating is the state of the corresponding key in different time node states, and the current key trigger information after updating correspond to each other, namely the state of the same key at different time points, so the corresponding current key trigger information after updating is not repeated.
The updated current key trigger information is not associated with the previous current key trigger information, namely the updated current key trigger information generated by the newly triggered key.
And after updating, the current key triggering time information is the time period of triggering the new key, timing is started from the triggering of the new key until the triggering of the key is finished, and if the key is always triggered, the timing state is always kept.
After updating, the current key triggering position information, namely the position of the triggered new key, wherein the position can be obtained in various ways; in one embodiment, the high-low level signal output by the new key can be judged, if the output is high level, the new key is in a triggered state, and the position of the output high level signal is the position where the new key is triggered, and the new key is always in a power supply state; in one embodiment, the main control chip obtains the trigger position of the new key by scanning the new key, and the scanning mode adopts a sequential detection mode, namely a circular detection mode, so that the energy consumption can be further reduced.
After the updated current key execution information is obtained, the corresponding new key trigger position information is obtained, that is, the execution command corresponding to the trigger position, such as a power-on command, a power-off command, etc., has been defined, so that the current case execution information is the corresponding execution command.
Step 411: and the main control chip compares the updated current key trigger position information with the current key trigger position information, and if the updated current key trigger position information is the same as the current key trigger position information and the updated current key trigger time information is greater than the key reference time information, the current state is still the key false trigger state.
Step 412: if the current state is still the key false triggering state, the main control chip enters a forced dormancy state and waits to be awakened next time; if the current state is not the key false triggering state, the main control chip resets and closes the built-in timer.
The method for judging the key false triggering state is the same as the current key triggering information, and according to the key reference time information included in the preset key information, the key reference time information is the judgment reference, namely the preset longest triggering time period; in the process of judging whether the state is the key false triggering state, if the key exceeds the preset time, the abnormal triggering is indicated, the state is judged to be the key false triggering state, and the false triggering is generally caused by pressing the key by a heavy object, so that the judgment can be completed only by comparing the time period of the key; and when the updated current key triggering time information is larger than the key reference time information, judging that the key is in a false triggering state.
Step 421: and if the updated current key triggering position information is different from the current key triggering position information, judging that the current state is not the key false triggering state.
Step 422: the main control chip judges whether the acquired updated current key trigger information is in a key false trigger state; if the current state is the key false triggering state, the main control chip controls the built-in timer to start to send timing signal information and then enters a forced dormancy state.
Step 423: the built-in timer awakens the main control chip discontinuously according to the timing signal information, the main control chip judges whether the main control chip is still in a key false triggering state, and if the current state is still in the key false triggering state, the main control chip enters a forced dormancy state and waits to be awakened next time; if the current state is not the key false triggering state, the main control chip resets and closes the built-in timer.
In the judging process, if the triggered key is changed, the key is preliminarily judged to be not in the key false triggering state, namely the main control chip directly restores to the normal working state, and the newly triggered key is judged to be in the key false triggering state.
The method for judging the key false triggering state is the same as the current key triggering information, and according to the key reference time information included in the preset key information, the key reference time information is the judgment reference, namely the preset longest triggering time period; in the process of judging whether the state is the key false triggering state, if the key exceeds the preset time, the abnormal triggering is indicated, the state is judged to be the key false triggering state, and the false triggering is generally caused by pressing the key by a heavy object, so that the judgment can be completed only by comparing the time period of the key; if the updated current key triggering time information is larger than the key reference time information, the main control chip judges that the current state is a key false triggering state, the main control chip stops sending the updated current key execution information and enters a forced dormancy state; if the updated current key triggering time information is smaller than the key reference time information, the main control chip judges that the current state is a non-key false triggering state, and the main control chip normally works at the moment and sends corresponding updated current key execution information.
Embodiments of the present invention provide a storage medium having stored thereon a set of instructions adapted to be loaded by a processor and executed to perform various steps including those described in the flowchart of fig. 1.
The computer storage medium includes, for example: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Based on the same inventive concept, an embodiment of the present invention provides a control apparatus, including: a processor for loading and executing a set of instructions; and the storage medium described above.
Based on the same inventive concept, an embodiment of the present invention provides a terminal, including: a processor for loading and executing a set of instructions; and the storage medium described above.
It will be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: u disk, removable hard disk, read only memory, random access memory, magnetic or optical disk, etc. for storing program codes.
The above embodiments are only used to describe the technical solutions of the present application in detail, but the above embodiments are only used to help understanding the method and the core idea of the present invention, and should not be construed as limiting the present invention. Those skilled in the art should also appreciate that they can easily conceive of various changes and substitutions within the technical scope of the present disclosure.

Claims (10)

1. A key triggering energy-saving control method is characterized in that:
acquiring current key trigger information of a current key;
the main control chip compares preset key information with current key trigger information according to the preset key information to judge whether the key is in a key false trigger state; if the current state is a key false triggering state, the main control chip controls the built-in timer to start to send timing signal information and then enters a forced dormancy state;
the built-in timer awakens the main control chip discontinuously according to the timing signal information, the main control chip judges whether the main control chip is still in a key false triggering state, and if the current state is still in the key false triggering state, the main control chip enters a forced dormancy state and waits to be awakened next time; if the current state is not the key false triggering state, the main control chip resets and closes the built-in timer.
2. The key-activated energy-saving control method according to claim 1, characterized in that: the preset key information comprises key reference time information, and the current key trigger information comprises current key trigger time information; if the current key triggering time information is larger than the key reference time information, the main control chip judges that the current state is a key false triggering state.
3. The key-activated energy-saving control method according to claim 1 or 2, characterized in that: the current key triggering information comprises current key triggering position information and current key execution information corresponding to the current key triggering position information, and if the current state is a key false triggering state, the main control chip stops sending the current key execution information.
4. The key-activated energy-saving control method according to claim 3, characterized in that:
acquiring updated current key trigger information of a key after awakening a main control chip; the updated current key trigger information comprises updated current key trigger time information and updated current key trigger position information;
the main control chip compares the updated current key trigger position information with the current key trigger position information, and if the updated current key trigger position information is the same as the current key trigger position information and the updated current key trigger time information is larger than the key reference time information, the current state is still determined to be the key false trigger state;
if the current state is still the key false triggering state, the main control chip enters a forced dormancy state and waits to be awakened next time; if the current state is not the key false triggering state, the main control chip resets and closes the built-in timer.
5. The key-activated energy-saving control method according to claim 4, characterized in that: and if the updated current key triggering position information is different from the current key triggering position information, preliminarily judging that the current state is not the key false triggering state.
6. The key-activated energy-saving control method according to claim 5, characterized in that: if the updated current key trigger position information is different from the current key trigger position information, the main control chip judges whether the obtained updated current key trigger information is in a key false trigger state; if the current state is a key false triggering state, the main control chip controls the built-in timer to start to send timing signal information and then enters a forced dormancy state;
the built-in timer awakens the main control chip discontinuously according to the timing signal information, the main control chip judges whether the main control chip is still in a key false triggering state, and if the current state is still in the key false triggering state, the main control chip enters a forced dormancy state and waits to be awakened next time; if the current state is not the key false triggering state, the main control chip resets and closes the built-in timer.
7. The key-activated energy-saving control method of claim 6, wherein: the main control chip scans the keys to acquire the current key trigger position information and the updated current key trigger position information.
8. A storage medium, characterized by: which stores an instruction set adapted to be loaded by a processor and to perform processes comprising:
acquiring current key trigger information of a current key;
the main control chip compares preset key information with current key trigger information according to the preset key information to judge whether the key is in a key false trigger state; if the current state is a key false triggering state, the main control chip controls the built-in timer to start to send timing signal information and then enters a forced dormancy state;
the built-in timer awakens the main control chip discontinuously according to the timing signal information, the main control chip judges whether the main control chip is still in a key false triggering state, and if the current state is still in the key false triggering state, the main control chip enters a forced dormancy state and waits to be awakened next time; if the current state is not the key false triggering state, the main control chip resets and closes the built-in timer.
9. A control device is characterized in that: the method comprises the following steps:
a processor for loading and executing a set of instructions; and
the storage medium of claim 8.
10. A terminal is characterized in that: the method comprises the following steps:
a plurality of keys;
a processor for loading and executing a set of instructions; and
the storage medium of claim 8.
CN201811160568.4A 2018-09-30 2018-09-30 Key triggering energy-saving control method, storage medium, control device and terminal thereof Active CN109388225B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811160568.4A CN109388225B (en) 2018-09-30 2018-09-30 Key triggering energy-saving control method, storage medium, control device and terminal thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811160568.4A CN109388225B (en) 2018-09-30 2018-09-30 Key triggering energy-saving control method, storage medium, control device and terminal thereof

Publications (2)

Publication Number Publication Date
CN109388225A CN109388225A (en) 2019-02-26
CN109388225B true CN109388225B (en) 2020-05-08

Family

ID=65426622

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811160568.4A Active CN109388225B (en) 2018-09-30 2018-09-30 Key triggering energy-saving control method, storage medium, control device and terminal thereof

Country Status (1)

Country Link
CN (1) CN109388225B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110308783B (en) * 2019-07-09 2021-12-21 京东方科技集团股份有限公司 Time display method and device and electronic equipment
CN112183135B (en) * 2020-09-15 2021-11-26 珠海格力电器股份有限公司 Method and device for switching scanner keys, storage medium and scanner
CN114821861B (en) * 2022-04-12 2023-08-11 珠海格力电器股份有限公司 Intelligent door lock control method and device and intelligent door lock
CN115022452B (en) * 2022-06-13 2024-04-02 浙江地芯引力科技有限公司 Communication method, device, equipment and storage medium of audio equipment
CN116320555B (en) * 2023-03-11 2024-01-30 无锡威达智能电子股份有限公司 Intelligent remote control method, system and storage medium for multi-key triggering

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105260105B (en) * 2015-10-19 2017-10-24 广东欧珀移动通信有限公司 Display screen awakening method, device and mobile terminal based on fingerprint sensor
CN105630132A (en) * 2015-12-23 2016-06-01 深圳市万普拉斯科技有限公司 Power consumption control method and system as well as terminal
CN106604375A (en) * 2016-12-14 2017-04-26 努比亚技术有限公司 Dormancy device and method
CN108628560A (en) * 2017-03-22 2018-10-09 上海中兴软件有限责任公司 A kind of display methods and terminal

Also Published As

Publication number Publication date
CN109388225A (en) 2019-02-26

Similar Documents

Publication Publication Date Title
CN109388225B (en) Key triggering energy-saving control method, storage medium, control device and terminal thereof
CN110424831B (en) Low-power consumption intelligence lock
EP3274787B1 (en) Technologies for managing power of an embedded controller during a low-power state
KR102020997B1 (en) Reset Method for Single-Chip and Single-Chip Computer Systems
CN103282854A (en) System and method for power management
CN110572868B (en) Method and device for reducing power consumption of electronic device
CN112530056A (en) Method for reducing power consumption of intelligent door lock, intelligent door lock and storage medium
Wilkes Predictive power conservation
CN106648021B (en) The data broadcasting method and low consumption circuit of low consumption circuit
US9417679B2 (en) Adaptive connected standby for a computing device
GB2466492A (en) A power saving device for instructing a computer to enter a standby state when a user leaves the vicinity of the device
CN110703896B (en) Normally open circuit for low-power SOC chip
KR102245049B1 (en) Computer power saving method and computer waking method
US20120260116A1 (en) External power-saving usb mass storage device and power-saving method thereof
CN115718626A (en) SOC (system on chip) system capable of being awakened quickly and quick awakening method
CN115129138A (en) Power consumption control method, power consumption control system, storage medium, and electronic device
CN111007936A (en) Terminal equipment in physical store and information processing method, device and system thereof
CN107179819B (en) Method for preventing battery from swelling and electronic device thereof
CN201607688U (en) Computer power-saving equipment and computer power-saving system
US20140019740A1 (en) Computer Startup Method, Startup Apparatus, State Transition Method And State Transition Apparatus
CN111984335A (en) Low-power-consumption chip awakening method, circuit, chip, system and medium
KR100677121B1 (en) Apparatus and method for controlling status battery in low voltage
CN110457072A (en) Anti- locking system hangs dead method, apparatus, equipment and computer-readable medium
CN110633002A (en) Processing circuit and power management method thereof
CN109101182A (en) A kind of touch control method and relevant apparatus

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