CN114706469A - Awakening method and device of touch key module, electronic equipment and storage medium - Google Patents

Awakening method and device of touch key module, electronic equipment and storage medium Download PDF

Info

Publication number
CN114706469A
CN114706469A CN202210398158.3A CN202210398158A CN114706469A CN 114706469 A CN114706469 A CN 114706469A CN 202210398158 A CN202210398158 A CN 202210398158A CN 114706469 A CN114706469 A CN 114706469A
Authority
CN
China
Prior art keywords
touch key
key module
scanning
count value
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210398158.3A
Other languages
Chinese (zh)
Inventor
杨骏
张玉鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shengsi Microelectronics Nanjing Co ltd
Original Assignee
Shengsi Microelectronics Nanjing 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 Shengsi Microelectronics Nanjing Co ltd filed Critical Shengsi Microelectronics Nanjing Co ltd
Priority to CN202210398158.3A priority Critical patent/CN114706469A/en
Publication of CN114706469A publication Critical patent/CN114706469A/en
Pending legal-status Critical Current

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/325Power saving in peripheral device
    • G06F1/3271Power saving in keyboard
    • 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/324Power saving characterised by the action undertaken by lowering clock frequency
    • 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/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/04166Details of scanning methods, e.g. sampling time, grouping of sub areas or time sharing with display driving
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake
    • 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Power Sources (AREA)

Abstract

The disclosure relates to a method and a device for waking up a touch key module, an electronic device and a storage medium, wherein the touch key module obtains a detection result of touch operation for a touch key according to the charging and discharging times of a charging and discharging unit, and the method comprises the following steps: controlling the touch key module to enter a low power consumption mode; when the operation of the low-frequency oscillator reaches a preset time length, controlling the touch key module to operate at a first working frequency, and after waiting for a preset number of first clock cycles, controlling the touch key module to perform touch key scanning of one or more keys to obtain a scanning count value when each key finishes scanning; and when the scanning count value of any key is greater than the preset scanning count value, controlling the touch key module to exit the low-power-consumption mode, and when the touch key module exits the low-power-consumption mode, operating the touch key module at a second operating frequency. The embodiment of the disclosure can remarkably reduce power consumption, and can improve response speed by executing the awakening operation through the touch key module.

Description

Awakening method and device of touch key module, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of touch detection technologies, and in particular, to a method and an apparatus for waking up a touch key module, an electronic device, and a storage medium.
Background
At present, the capacitive touch key is superior to a traditional mechanical key in the aspects of attractive appearance, service life and the like, so the capacitive touch key is widely applied to the fields of household appliances, consumer electronics, industrial control, mobile equipment and the like, however, because the touch key module does not need to be in a working state all the time, in order to reduce power consumption, the related technology can enable the touch key module to enter a low power consumption mode, and periodically awaken a Central Processing Unit (CPU), the CPU polls to judge whether triggering exists or not, exits the low power consumption mode after triggering, otherwise enters the low power consumption mode again, and the steps are continuously repeated.
However, in the periodic wake-up mode of the related art, the CPU is required to participate in the whole process, the power consumption is large when the CPU runs at a high speed, the power consumption of the touch key is greatly increased, and the response speed of the touch key in the CPU wake-up mode is slow.
Disclosure of Invention
According to an aspect of the present disclosure, there is provided a method for waking up a touch key module, where the touch key module obtains a detection result of a touch operation on a touch key according to a number of charging and discharging times of a charging and discharging unit, the method including:
controlling a touch key module to enter a low power consumption mode, wherein in the low power consumption mode, the touch key module, a control component connected with the touch key module and a peripheral circuit are all in a dormant state, a low-frequency oscillator for providing a clock signal for the touch key module is in a working state, and the oscillation frequency of the low-frequency oscillator is lower than the zeroth working frequency;
when the operation of the low-frequency oscillator reaches a preset time length, controlling the touch key module to operate at a first working frequency, and after waiting for a preset number of first clock cycles, controlling the touch key module to perform touch key scanning of one or more keys to obtain a scanning count value when each key finishes scanning, wherein the scanning count value is determined according to corresponding charging and discharging times when each key finishes scanning;
when the scanning count value of any key is larger than the preset scanning count value, controlling the touch key module to exit the low-power-consumption mode, and when the touch key module exits the low-power-consumption mode, operating the touch key module at a second working frequency, wherein the first working frequency is higher than the second working frequency, and the second working frequency is higher than the zero working frequency.
In one possible embodiment, the method further comprises:
and if the scanning count value of each key is less than or equal to the preset scanning count value, controlling the touch key module to work in the low power consumption mode in the next preset time.
In one possible embodiment, the method further comprises:
dividing the frequency of a system clock to obtain the first working frequency and the second working frequency respectively;
when the operation of the low-frequency oscillator reaches a preset duration, configuring the working frequency of the touch key module as the first working frequency; and when the touch key module exits the low power consumption mode, configuring the working frequency of the touch key module as the second working frequency.
In one possible implementation, after the touch key module exits the low power consumption mode, the method further includes:
determining a count difference value between the scan count value and the preset scan count value;
determining an environment judgment parameter according to the ratio of the counting difference value to a preset counting difference value, wherein the preset counting difference value is the difference of scanning count values of the touch key module before and after the interference of the radio frequency interference source under the condition that no touch occurs;
and determining the environmental parameters of the touch key module according to the environmental judgment parameters.
In a possible implementation, the determining a count difference between the scan count value and the preset scan count value includes:
if the touch key module is in a condition that the scanning count value is reduced after the touch occurs, subtracting the preset scanning count value from the scanning count value to obtain a count difference value; or
If the touch key module is in a condition that the scanning count value is increased after the touch occurs, subtracting the scanning count value from the preset scanning count value to obtain a count difference value;
the determining a count difference between the scan count value and the preset scan count value includes:
and under the condition that the counting difference value is larger than zero, determining the counting difference value of the scanning counting value and the preset scanning counting value.
In a possible implementation manner, the determining, according to the environment determination parameter, an environment parameter where the touch key module is located includes:
determining the environmental parameters of the touch key module according to the environmental judgment parameters and a preset environmental parameter discrimination table,
the preset environment parameter discrimination table comprises an environment judgment parameter or a corresponding relation between an environment judgment parameter range and a plurality of environment parameters, and the environment parameters comprise at least one of temperature, humidity, water level height and electromagnetic interference intensity.
According to an aspect of the present disclosure, there is provided a wake-up apparatus of a touch key module, the apparatus including:
the touch key module, a control component connected with the touch key module and a peripheral circuit are all in a dormant state in the low power consumption mode, a low-frequency oscillator for providing a clock signal for the touch key module is in a working state, and the oscillation frequency of the low-frequency oscillator is lower than the zero working frequency;
the second control module is used for controlling the touch key module to operate at a first working frequency when the operation of the low-frequency oscillator reaches a preset time length, and controlling the touch key module to perform touch key scanning of one or more keys after waiting for a preset number of first clock cycles to obtain a scanning count value when each key completes scanning, wherein the scanning count value is determined according to corresponding charging and discharging times when each key completes scanning;
and the third control module is used for controlling the touch key module to exit the low-power-consumption mode when the scanning count value of any key is greater than the preset scanning count value, and when the touch key module exits the low-power-consumption mode, the touch key module works at a second working frequency, wherein the first working frequency is higher than the second working frequency, and the second working frequency is higher than the zero working frequency.
According to an aspect of the present disclosure, there is provided an electronic device including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to invoke the memory-stored instructions to perform the above-described method.
According to an aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the above-described method.
The touch key module is controlled to enter a low power consumption mode, in the low power consumption mode, the touch key module, a control component connected with the touch key module and a peripheral circuit are all in a dormant state, a low-frequency oscillator for providing a clock signal for the touch key module is in a working state, and the oscillation frequency of the low-frequency oscillator is lower than the zeroth working frequency; when the operation of the low-frequency oscillator reaches a preset time length, controlling the touch key module to operate at a first working frequency, and after waiting for a preset number of first clock cycles, controlling the touch key module to perform touch key scanning of one or more keys to obtain a scanning count value when each key finishes scanning, wherein the scanning count value is determined according to corresponding charging and discharging times when each key finishes scanning; when the scanning count value of any key is greater than the preset scanning count value, the touch key module is controlled to exit the low-power mode, and when the touch key module exits the low-power mode, the touch key module works at a second working frequency, wherein the first working frequency is higher than the second working frequency, and the second working frequency is higher than the zero working frequency.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure.
Fig. 1 shows a flowchart of a wake-up method of a touch key module according to an embodiment of the present disclosure.
FIG. 2 shows a schematic diagram of a touch key module according to an embodiment of the disclosure.
Fig. 3 shows a flowchart of a wake-up method of a touch key module according to an embodiment of the present disclosure.
FIG. 4 shows a block diagram of a wake-up unit of a touch key module according to an embodiment of the present disclosure.
FIG. 5 shows a block diagram of an electronic device in accordance with an embodiment of the disclosure.
FIG. 6 shows a block diagram of an electronic device in accordance with an embodiment of the disclosure.
Detailed Description
Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. In the drawings, like reference numbers can indicate functionally identical or similar elements. While the various aspects of the embodiments are presented in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
In the description of the present disclosure, it is to be understood that the terms "length," "width," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," and the like, as used herein, refer to an orientation or positional relationship indicated in the drawings, which is solely for the purpose of facilitating the description and simplifying the description, and does not indicate or imply that the referenced device or element must have a particular orientation, be constructed and operated in a particular orientation, and, therefore, should not be taken as limiting the present disclosure.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present disclosure, "a plurality" means two or more unless specifically limited otherwise.
In the present disclosure, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integral; can be mechanically or electrically connected; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meaning of the above terms in the present disclosure can be understood as a specific case by a person of ordinary skill in the art.
The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, C, and may mean including any one or more elements selected from the group consisting of A, B and C.
Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements and circuits that are well known to those skilled in the art have not been described in detail so as not to obscure the present disclosure.
Referring to fig. 1, fig. 1 is a flowchart illustrating a wake-up method for a touch key module according to an embodiment of the present disclosure.
The touch key module obtains a detection result of touch operation on the touch key according to the charging and discharging times of the charging and discharging unit, as shown in fig. 1, the method includes:
step S11, controlling a touch key module to enter a low power consumption mode, wherein in the low power consumption mode, the touch key module, a control component connected with the touch key module and a peripheral circuit are all in a dormant state, a low-frequency oscillator providing a clock signal for the touch key module is in a working state, and the oscillation frequency of the low-frequency oscillator is lower than the zeroth working frequency;
step S12, when the operation of the low-frequency oscillator reaches a preset time length, controlling the touch key module to operate at a first working frequency, and after waiting for a preset number of first clock cycles, controlling the touch key module to perform touch key scanning of one or more keys to obtain a scanning count value when each key finishes scanning, wherein the scanning count value is determined according to corresponding charging and discharging times when each key finishes scanning;
step S13, when the scan count value of any key is greater than the preset scan count value, controlling the touch key module to exit the low power consumption mode, and when the touch key module exits the low power consumption mode, controlling the touch key module to operate at a second operating frequency, where the first operating frequency is higher than the second operating frequency, and the second operating frequency is higher than the zeroth operating frequency.
The touch key module is controlled to enter a low power consumption mode, in the low power consumption mode, the touch key module, a control component connected with the touch key module and a peripheral circuit are all in a dormant state, a low-frequency oscillator for providing a clock signal for the touch key module is in a working state, and the oscillation frequency of the low-frequency oscillator is lower than the zeroth working frequency; when the operation of the low-frequency oscillator reaches a preset time length, controlling the touch key module to operate at a first working frequency, and after waiting for a preset number of first clock cycles, controlling the touch key module to perform touch key scanning of one or more keys to obtain a scanning count value when each key finishes scanning, wherein the scanning count value is determined according to corresponding charging and discharging times when each key finishes scanning; when the scanning count value of any key is greater than the preset scanning count value, the touch key module is controlled to exit the low-power mode, and when the touch key module exits the low-power mode, the touch key module works at a second working frequency, wherein the first working frequency is higher than the second working frequency, and the second working frequency is higher than the zero working frequency.
The touch key module, the control component, the peripheral circuit, and the low-frequency oscillator are not limited in specific implementation manner, and the control component may be a processing component in the electronic device where the touch key module is located, and in one example, the processing component includes, but is not limited to, a single processor, or a discrete component, or a combination of a processor and a discrete component. The processor may comprise a controller in an electronic device having functionality to execute instructions, which may be implemented in any suitable manner, e.g., by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components. Within the processor, the executable instructions may be executed by hardware circuits such as logic gates, switches, Application Specific Integrated Circuits (ASICs), programmable logic controllers, and embedded microcontrollers.
In one example, the electronic device may include a Terminal, a server, a Terminal also called a User Equipment (UE), a Mobile Station (MS), a Mobile Terminal (MT), etc., which is a device providing voice and/or data connectivity to a User, or a device providing a specific function, such as a handheld device having a wireless connection function, a vehicle-mounted device, etc. Currently, some examples of terminals are: a Mobile Phone (Mobile Phone), a tablet computer, a notebook computer, a palm computer, a Mobile Internet Device (MID), a wearable device, a Virtual Reality (VR) device, an Augmented Reality (AR) device, a wireless terminal in Industrial Control (Industrial Control), a wireless terminal in unmanned driving (self driving), a wireless terminal in Remote Surgery (Remote medical Surgery), a wireless terminal in Smart Grid, a wireless terminal in Transportation Safety, a wireless terminal in Smart City (Smart City), a wireless terminal in Smart Home, a wireless terminal in car networking, a Home electronic device, and the like.
In an example, the peripheral circuit may be other functional circuits in the electronic device, such as a communication circuit, a display circuit, an alarm circuit, and the like, and the embodiment of the present disclosure is not limited thereto.
The touch key scanning in the embodiment of the present disclosure may be that the touch key module sequentially or concurrently scans each key to obtain a scan count value when scanning of each key is completed. In the scanning process for each key, the operations of charging and discharging, comparing and counting for the key are performed, which will be described as an example below.
In a possible implementation manner, the touch key module of the embodiment of the disclosure may include a charging and discharging unit, a comparing unit, and a counting unit, in the scanning of each key, the corresponding key is powered on, the charging and discharging unit is charged and discharged for multiple times, and the number of charging and discharging times of the charging and discharging unit is counted by the counting unit until the voltage of the energy storage capacitor in the charging and discharging unit reaches the reference voltage, a count value in the counting unit is obtained as a scanning count value, and the scanning is finished. Further, the touch key module may include a decision unit, and the decision unit may include a comparator, and may determine whether the key is touched by comparing a scan count value obtained by performing the touch key scan with a preset scan count value. The embodiment of the present disclosure does not limit the specific implementation manner of the touch key module, and does not limit the specific implementation manner of the charging and discharging unit, the comparing unit, the counting unit, and the determining unit, and the wake-up method of the embodiment of the present disclosure is applicable to various types of touch key modules, as long as the touch key module performs touch determination according to the aforementioned introduced principle, and the following exemplarily introduces possible implementation manners of the charging and discharging unit and the comparing unit of the touch key module.
In the low power consumption mode of the embodiment of the present disclosure, the touch key module, the control component connected to the touch key module, and the peripheral circuit are all in a sleep state (which may also be referred to as an inactive state, or the like), the low frequency oscillator providing the clock signal for the touch key module is in an active state, the oscillation frequency of the low frequency oscillator is lower than a zeroth operating frequency, in the low power consumption mode, the charging and discharging unit, the comparing unit, the counting unit, the judging unit and the like can be in a dormant state, the low-frequency oscillator works at the zero working frequency in a low-frequency mode to provide functions of timing and the like, in the low power mode, the power consumption is reduced significantly, and, when the touch key module is awakened periodically, the control component and the peripheral circuit are still in a dormant state, so that the power consumption is further reduced compared with the related art.
Referring to fig. 2, fig. 2 is a schematic diagram illustrating a touch key module according to an embodiment of the disclosure.
As shown in fig. 2, the touch key module includes a plurality of detection channels (e.g., N, where N is an integer greater than 1), a comparison unit (including a comparator Cmp), and a first capacitor C1And a first switch SW1Each detection channel corresponds to each touch key for touch detection, and each detection channel comprises a touch key (corresponding key capacitor C)TK1、CTK2、…、CTKm) A second switch (S)W00、SW01、…、SW0m) And a third switch (S)W10、SW11、…、SW1m) Wherein, in the step (A),
the positive input end of the comparator Cmp is connected to each detection channel (such as detection channels 1-N) and the first capacitor C1First terminal of, the first switch SW1The first terminal of (C), the first capacitor C1And the first switch SW1The second terminal of the first diode is grounded,
power supply VSIs connected to a power supply terminal of each detection channel (a first terminal of each second switch) for outputting a charging voltage, wherein a second terminal of the second switch is connected to a first terminal of the third switch and the touch key, and a second terminal of the third switch is connected to a forward input terminal of the comparison module Cmp and the first switch SW1And the first capacitor C1The first end of (a).
The following describes an exemplary touch key scanning process of the touch key module with the circuit structure shown in fig. 2, and takes the detection channel 1 as an example.
In a first step, a first switch S is turned onW1And the third switch S is turned offW10A second switch SW00A first capacitor C1All charges on are released, when VPVoltage of 0;
second step, turn on the second switch SW00Opening the third switch SW10A first switch SW1To the capacitance CTK1Charging to a voltage VOP;
third, turn on the third switch SW10Opening the second switch SW00A first switch SW1A capacitor CTK1On the charge through SW10Moved to a capacitor C1At this time, VPThe voltage is raised;
repeating the charge-discharge process (or called as charge and charge transfer process) of the second step and the third step until VPIs greater than a reference voltage VREFThe COMP _ OUT is changed to be high, and the number N of times of charging and discharging times (the counting value in the absence of touch) repeated in the second step and the third step in the counting unit is acquired; when touching occurs (for example, when the detection key is touched by hand), the capacitance C is equivalent to the capacitance C of the handP(e.g. C)P1) And a capacitor C of the touch keyTKAnd (4) connecting in parallel, increasing the capacitance, carrying out scanning counting according to the scanning process of the touch key to obtain the second step and the triple repeated times M when the touch occurs, and detecting the touch key by the circuit when the subtraction of M from the times N is more than a certain amount.
Of course, the above description is exemplary and should not be construed as a limitation on the embodiment of the present disclosure, and the embodiment of the present disclosure does not limit the specific implementation manner of the touch key scanning process, and the embodiment of the present disclosure may change the above charging and discharging unit, and accordingly, may also change the touch key scanning process adaptively.
Referring to fig. 3, fig. 3 is a flowchart illustrating a wake-up method for a touch key module according to an embodiment of the present disclosure.
In one possible embodiment, as shown in fig. 3, the method may further include:
and step S14, if the scanning count value of each key is less than or equal to the preset scanning count value, controlling the touch key module to work in the low power consumption mode in the next preset time.
Through the method, when the scanning count value of each key is obtained through the touch key module when the scanning of each key is finished, if the scanning count value of each key is smaller than or equal to the preset scanning count value, it can be determined that no touch occurs, the touch key module is controlled to operate in the low power consumption mode for the next preset time, that is, the touch key module, a control component connected with the touch key module and a peripheral circuit are all in a dormant state, a low-frequency oscillator providing a clock signal for the touch key module is in an operating state, and the oscillation frequency of the low-frequency oscillator is lower than the zeroth operating frequency, so that the power consumption is further reduced.
The embodiments of the present disclosure do not limit the specific size of the zeroth operating frequency (e.g., 32KHz), the first operating frequency, and the second operating frequency, and those skilled in the art can set the sizes according to actual situations and needs.
In one possible embodiment, as shown in fig. 3, the method may further include:
step S20, frequency division is carried out on the system clock frequency to respectively obtain the first working frequency and the second working frequency;
step S21, when the operation of the low-frequency oscillator reaches a preset duration, configuring the working frequency of the touch key module as the first working frequency; and when the touch key module exits the low power consumption mode, configuring the working frequency of the touch key module as the second working frequency.
Through the method, the embodiment of the disclosure can obtain the first working frequency and the second working frequency by using the system clock frequency, and realize the configuration of the working frequency of the touch key module in the awakening process, thereby improving the working efficiency.
The specific size and manner of the frequency division are not limited in the embodiment of the present disclosure, and those skilled in the art may determine the specific size and manner according to actual conditions and needs, for example, the system clock frequency is 32KHz, and for example, the system clock frequency may be provided by a low-frequency oscillator, so that the embodiment of the present disclosure may perform frequency division (for example, arbitrary frequency division between 1 and 64) on the system clock frequency of 32KHz by configuring a register, so as to obtain a corresponding first operating frequency and a second operating frequency, perform frequency division on the low-frequency clock in the low power consumption mode by 2048, 4096, 8192, 16384, and the like, and obtain the operating cycles of the touch key in the low power consumption mode are 64ms, 128ms, 256ms, and 512ms, respectively.
The specific size of the preset number of the waiting first clock cycles in step S12 is not limited in the embodiment of the present disclosure, and those skilled in the art can set the preset number to be 1-5, preferably 2, according to actual situations and needs to improve the response speed.
In the embodiment of the disclosure, hardware starts scanning of the touch key at intervals of a period of time under a low-frequency clock and then takes a value to judge whether to exit from the low-power-consumption mode, the process does not need CPU participation, the overall power consumption of the touch key is obviously reduced, the method can reduce about 50% of power consumption compared with the method that software participates in the low-power-consumption mode through testing, once a touch key channel is found through scanning to be triggered to exit from the low-power-consumption mode, and compared with the method that software is used, the response speed of the touch key is improved. In addition, according to the embodiment of the disclosure, when the operation of the low-frequency oscillator reaches the preset duration, the operating frequency of the touch key module is configured to be the first operating frequency, and the first operating frequency is set to be higher than the second operating frequency, so that the speed of judging whether the touch occurs by the hardware can be increased.
In the embodiment of the present disclosure, if it is determined that the scan count value of any key is greater than the preset scan count value, it may be determined that a touch occurs, and in this case, the embodiment of the present disclosure may control the touch key module to exit the low power consumption mode, and wake up the control component to improve the efficiency of scanning the touch key, and perform subsequent operations, which is described in the following exemplary description.
In one possible implementation, as shown in fig. 3, after the touch key module exits the low power consumption mode, the method may further include:
step S22, determining a count difference between the scan count value and the preset scan count value;
step S23, determining an environment judgment parameter according to the ratio of the counting difference value to a preset counting difference value, wherein the preset counting difference value is the difference of scanning count values of the touch key module before and after the interference of the radio frequency interference source under the condition of no touch;
and step S24, determining the environment parameter of the touch key module according to the environment judgment parameter.
Through the method, the embodiment of the disclosure can determine the count difference value between the scan count value and the preset scan count value, determine the environment judgment parameter according to the ratio of the count difference value to the preset count difference value, determine the environment parameter where the touch key module is located according to the environment judgment parameter, and obtain the located environment information.
The method comprises the steps that all touch keys can be scanned before and after the interference of a radio frequency interference source to obtain an average value of scanning count values of the touch keys before and after the interference, and the difference of the average value is used as the difference of the scanning count values of the touch key module before and after the interference of the radio frequency interference source; or taking the maximum value of the difference of the scanning count values of the touch keys before and after the interference as the difference of the scanning count values of the touch key module before and after the interference of the radio frequency interference source.
The method for acquiring the environmental parameters of the embodiment of the disclosure can be executed by the control component.
In one example, the radio frequency interference source may be a 10W power interphone, the 10W power interphone is an electronic device with strong radio frequency interference, and the capability of resisting radio frequency interference of other electronic devices may be measured by the 10W power interphone. For example, a 10W power interphone can generate a huge radio frequency radiation interference to the touch key module, and the radio frequency anti-interference capability of the touch key is judged through the change of the count value of the touch key and the actual response effect.
In a possible implementation, the step S22 of determining the count difference between the scan count value and the preset scan count value may include:
if the touch key module is in a condition that the scanning count value is reduced after the touch occurs, subtracting the preset scanning count value from the scanning count value to obtain a count difference value; or
And if the touch key module is in a condition that the scanning count value is increased after the touch occurs, subtracting the scanning count value from the preset scanning count value to obtain the count difference value.
Due to the design reason of the touch key module by manufacturers, after the keys are touched by hands, the count value of some touch key modules is increased, and the count value of some touch key modules is reduced. The embodiment of the disclosure adaptively calculates the counting difference value for the touch key module corresponding to the situation that the scanning count value is decreased after the touch occurs and the situation that the scanning count value is increased after the touch occurs, and can improve the accuracy and the flexibility.
In a possible implementation, the step S22 of determining the count difference between the scan count value and the preset scan count value may include:
and under the condition that the counting difference value is larger than zero, determining the counting difference value of the scanning counting value and the preset scanning counting value.
According to the embodiment of the disclosure, the accuracy of obtaining the environmental information can be improved by determining the counting difference value between the scanning count value and the preset scanning count value under the condition that the counting difference value is greater than zero.
In a possible implementation manner, the step S23 of determining the environment determination parameter according to the ratio of the count difference to a preset count difference may include:
and taking the ratio of the counting difference value and a preset counting difference value as an environment judgment parameter.
For example, the environment determination parameter can be obtained by equation 1:
formula 1 where D is S/Ts
Wherein D represents an environment determination parameter, S represents a count difference, and Ts represents a preset count difference.
In a possible implementation manner, the step S24 of determining the environment parameter where the touch key module is located according to the environment judgment parameter may include:
determining the environmental parameters of the touch key module according to the environmental judgment parameters and a preset environmental parameter discrimination table,
the preset environment parameter discrimination table comprises an environment judgment parameter or a corresponding relation between an environment judgment parameter range and a plurality of environment parameters, and the environment parameters comprise at least one of temperature, humidity, water level height, electromagnetic interference strength and the like.
The embodiment of the present disclosure does not limit the specific form of the preset environment parameter determination table, does not limit the specific corresponding relationship between the environment determination parameter or the environment determination parameter range included in the preset environment parameter determination table and the plurality of environment parameters, does not limit the type and number of the environment parameters, and can be set by a person skilled in the art according to actual conditions and needs. For example, different environmental parameters may correspond to different environmental judgment parameters or environmental judgment parameter ranges, and corresponding environmental parameters may be determined from the environmental parameter discrimination table according to the current environmental judgment parameter or the environmental judgment parameter range in which the current environmental judgment parameter is located.
For example, when the touch key module is touched by a human hand to decrease the count value, for a touch key in an environment without a radio frequency interference source and without a touch (for example, the touch key may be packaged by a 5mm acrylic plate), the preset scan count value is, for example, 5000 to 5010, the count value of the intercom interference touch key is 4500 to 4510, that is, the current reference value is about 5000, and therefore the preset count difference Ts after the intercom interference is 5000-; taking water level height detection as an example, the count difference between the scan count value of the touch key at the moment when water just touches the touch key, the scan count value of the touch key is in the middle of the touch key, and the scan count value of the touch key at the moment when the water just touches the touch key is 3 times higher than the preset scan count value can be tested in advance, for example, if the count difference S1 between the scan count value of the touch key just touches the touch key and the preset scan count value is 50, the count difference S2 between the scan count value of the touch key and the preset scan count value is 80, and the count difference S3 between the scan count value of the touch key and the preset scan count value when the water is not touching the touch key is 110, then the environment determination parameter D1 is S1 ÷ 500 × 100% ═ 10%, D2 is S2 ÷ 500 × 100% ═ 16, D3 is S3 ÷ 500 × 100 ═ 22% according to formula 1, in the electronic device, the height of the touch key is fixed, the corresponding relationship between the environment determination parameter and the height of the touch key can be determined in advance and stored in the preset environment determination table, when flood or other water overflows the electronic equipment, the water level height can be obtained according to the calculated environment judgment parameter and the preset environment parameter discrimination table.
The example of determining the water level height is given above, and determination of other environmental parameters is similar to the above, and details are not described herein, but of course, the embodiment of the disclosure is not limited to the aforementioned environmental parameters, and may also include other environmental parameters, for example, a temperature change trend, and the like.
It is understood that the above-mentioned method embodiments of the present disclosure can be combined with each other to form a combined embodiment without departing from the logic of the principle, which is limited by the space, and the detailed description of the present disclosure is omitted. Those skilled in the art will appreciate that in the above methods of the specific embodiments, the specific order of execution of the steps should be determined by their function and possibly their inherent logic.
Referring to fig. 4, fig. 4 is a block diagram illustrating a wake-up apparatus for a touch key module according to an embodiment of the disclosure.
As shown in fig. 4, the apparatus includes:
the first control module 10 is configured to control the touch key module to enter a low power consumption mode, where the touch key module, a control component connected to the touch key module, and a peripheral circuit are all in a sleep state, a low-frequency oscillator providing a clock signal for the touch key module is in a working state, and an oscillation frequency of the low-frequency oscillator is lower than a zero working frequency;
the second control module 20 is configured to control the touch key module to operate at a first operating frequency when the operation of the low-frequency oscillator reaches a preset duration, and control the touch key module to perform touch key scanning on one or more keys after waiting for a preset number of first clock cycles, so as to obtain a scan count value when each key completes scanning, where the scan count value is determined according to a corresponding charge-discharge frequency when each key completes scanning;
and a third control module 30, configured to control the touch key module to exit the low power consumption mode when the scan count value of any key is greater than the preset scan count value, and when the touch key module exits the low power consumption mode, the touch key module operates at a second operating frequency, where the first operating frequency is higher than the second operating frequency, and the second operating frequency is higher than the zeroth operating frequency.
The touch key module is controlled to enter a low power consumption mode, in the low power consumption mode, the touch key module, a control component connected with the touch key module and a peripheral circuit are all in a dormant state, a low-frequency oscillator for providing a clock signal for the touch key module is in a working state, and the oscillation frequency of the low-frequency oscillator is lower than the zeroth working frequency; when the operation of the low-frequency oscillator reaches a preset time length, controlling the touch key module to operate at a first working frequency, and after waiting for a preset number of first clock cycles, controlling the touch key module to perform touch key scanning of one or more keys to obtain a scanning count value when each key finishes scanning, wherein the scanning count value is determined according to corresponding charging and discharging times when each key finishes scanning; when the scanning count value of any key is greater than the preset scanning count value, control touch key module withdraws from the low power consumption mode, work as after touch key module withdraws from the low power consumption mode, touch key module work is at the second operating frequency, wherein, first operating frequency is higher than the second operating frequency, the second operating frequency is higher than the zeroth operating frequency, this disclosed embodiment through control touch key module with low power consumption mode operation under the low frequency clock to with the duration of presetting as the cycle, through the periodic messenger touch key module touch key scanning, can show the reduction power consumption, and through the operation of awakening up of touch key module self execution, can improve response speed.
In a possible embodiment, the apparatus further comprises:
and the fourth control module is used for controlling the touch key module to work in the low power consumption mode in the next preset time length if the scanning count value of each key is less than or equal to the preset scanning count value.
In a possible embodiment, the apparatus further comprises:
the frequency division module is used for dividing the frequency of a system clock to respectively obtain the first working frequency and the second working frequency;
the configuration module is used for configuring the working frequency of the touch key module as the first working frequency when the operation of the low-frequency oscillator reaches a preset duration; and when the touch key module exits the low power consumption mode, configuring the working frequency of the touch key module as the second working frequency.
In a possible embodiment, the apparatus further comprises:
the first determining module is used for determining a counting difference value between the scanning counting value and the preset scanning counting value after the touch key module exits from the low power consumption mode;
the second determining module is used for determining an environment judgment parameter according to the ratio of the counting difference value to a preset counting difference value, wherein the preset counting difference value is the difference of scanning count values of the touch key module before and after the interference of the radio frequency interference source under the condition of no touch;
and the third determining module is used for determining the environmental parameters of the touch key module according to the environmental judgment parameters.
In a possible implementation manner, the determining a count difference value between the scan count value and the preset scan count value includes:
if the touch key module is in a condition that the scanning count value is reduced after the touch occurs, subtracting the preset scanning count value from the scanning count value to obtain a count difference value; or
If the touch key module is in a condition that the scanning count value is increased after the touch occurs, subtracting the scanning count value from the preset scanning count value to obtain a count difference value;
the determining a count difference between the scan count value and the preset scan count value includes:
and determining a count difference value between the scan count value and the preset scan count value when the count difference value is greater than zero.
In a possible implementation manner, the determining, according to the environment determination parameter, an environment parameter where the touch key module is located includes:
determining the environmental parameters of the touch key module according to the environmental judgment parameters and a preset environmental parameter discrimination table,
the preset environment parameter discrimination table comprises corresponding relations between environment parameters or environment parameter ranges and a plurality of environment parameters, and the environment parameters comprise at least one of temperature, humidity, water level height and electromagnetic interference intensity.
In some embodiments, functions of or modules included in the apparatus provided in the embodiments of the present disclosure may be used to execute the method described in the above method embodiments, and for specific implementation, reference may be made to the description of the above method embodiments, and for brevity, details are not described here again.
Embodiments of the present disclosure also provide a computer-readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the above-mentioned method. The computer readable storage medium may be a non-volatile computer readable storage medium.
An embodiment of the present disclosure further provides an electronic device, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to invoke the memory-stored instructions to perform the above-described method.
The disclosed embodiments also provide a computer program product comprising computer readable code or a non-transitory computer readable storage medium carrying computer readable code, which when run in a processor of an electronic device, the processor in the electronic device performs the above method.
The electronic device may be provided as a terminal, server, or other form of device.
Referring to fig. 5, fig. 5 shows a block diagram of an electronic device according to an embodiment of the disclosure.
For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like terminal.
Referring to fig. 5, electronic device 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 800 is in an operation mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the electronic device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a Complementary Metal Oxide Semiconductor (CMOS) or Charge Coupled Device (CCD) image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 may access a wireless network based on a communication standard, such as a wireless network (WiFi), a second generation mobile communication technology (2G) or a third generation mobile communication technology (3G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium, such as the memory 804, is also provided that includes computer program instructions executable by the processor 820 of the electronic device 800 to perform the above-described methods.
Referring to fig. 6, fig. 6 shows a block diagram of an electronic device according to an embodiment of the disclosure.
For example, electronic device 1900 may be provided as a server. Referring to fig. 6, electronic device 1900 includes a processing component 1922 further including one or more processors and memory resources, represented by memory 1932, for storing instructions, e.g., applications, executable by processing component 1922. The application programs stored in memory 1932 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1922 is configured to execute instructions to perform the above-described method.
The electronic device 1900 may also include a power component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input/output (I/O) interface 1958. The electronic device 1900 may operate based on an operating system, such as the Microsoft Server operating system (Windows Server), stored in the memory 1932TM) Apple Inc. of the present application based on the graphic user interface operating System (Mac OS X)TM) Multi-user, multi-process computer operating system (Unix)TM) Free and open native code Unix-like operating System (Linux)TM) Open native code Unix-like operating System (FreeBSD)TM) Or the like.
In an exemplary embodiment, a non-transitory computer readable storage medium, such as the memory 1932, is also provided that includes computer program instructions executable by the processing component 1922 of the electronic device 1900 to perform the above-described methods.
The present disclosure may be systems, methods, and/or computer program products. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied thereon for causing a processor to implement various aspects of the present disclosure.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device over a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present disclosure may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, the electronic circuitry that can execute the computer-readable program instructions implements aspects of the present disclosure by utilizing the state information of the computer-readable program instructions to personalize the electronic circuitry, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA).
Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The computer program product may be embodied in hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied in a computer storage medium, and in another alternative embodiment, the computer program product is embodied in a Software product, such as a Software Development Kit (SDK), or the like.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (9)

1. A method for waking up a touch key module is characterized in that the touch key module obtains a detection result of touch operation aiming at a touch key according to the charging and discharging times of a charging and discharging unit, and the method comprises the following steps:
controlling a touch key module to enter a low power consumption mode, wherein in the low power consumption mode, the touch key module, a control component connected with the touch key module and a peripheral circuit are all in a dormant state, a low-frequency oscillator for providing a clock signal for the touch key module is in a working state, and the oscillation frequency of the low-frequency oscillator is lower than the zeroth working frequency;
when the operation of the low-frequency oscillator reaches a preset time length, controlling the touch key module to operate at a first working frequency, and after waiting for a preset number of first clock cycles, controlling the touch key module to perform touch key scanning of one or more keys to obtain a scanning count value when each key finishes scanning, wherein the scanning count value is determined according to corresponding charging and discharging times when each key finishes scanning;
when the scanning count value of any key is larger than the preset scanning count value, controlling the touch key module to exit the low-power-consumption mode, and when the touch key module exits the low-power-consumption mode, operating the touch key module at a second working frequency, wherein the first working frequency is higher than the second working frequency, and the second working frequency is higher than the zero working frequency.
2. The method of claim 1, further comprising:
and if the scanning count value of each key is less than or equal to the preset scanning count value, controlling the touch key module to work in the low power consumption mode in the next preset time.
3. The method of claim 1, further comprising:
dividing the frequency of a system clock to obtain the first working frequency and the second working frequency respectively;
when the operation of the low-frequency oscillator reaches a preset duration, configuring the working frequency of the touch key module as the first working frequency; and when the touch key module exits the low power consumption mode, configuring the working frequency of the touch key module as the second working frequency.
4. The method of claim 1, wherein after the touch key module exits the low power mode, the method further comprises:
determining a counting difference value between the scanning counting value and the preset scanning counting value;
determining an environment judgment parameter according to the ratio of the counting difference value to a preset counting difference value, wherein the preset counting difference value is the difference of scanning count values of the touch key module before and after the interference of the radio frequency interference source under the condition that no touch occurs;
and determining the environmental parameters of the touch key module according to the environmental judgment parameters.
5. The method of claim 4, wherein determining the count difference between the scan count value and the preset scan count value comprises:
if the touch key module is in a condition that the scanning count value is reduced after the touch occurs, subtracting the preset scanning count value from the scanning count value to obtain a count difference value; or
If the touch key module is in a condition that the scanning count value is increased after the touch occurs, subtracting the scanning count value from the preset scanning count value to obtain a count difference value;
the determining a count difference value between the scan count value and the preset scan count value includes:
and under the condition that the counting difference value is larger than zero, determining the counting difference value of the scanning counting value and the preset scanning counting value.
6. The method according to claim 4, wherein the determining the environmental parameter of the touch key module according to the environmental judgment parameter includes:
determining the environmental parameters of the touch key module according to the environmental judgment parameters and a preset environmental parameter discrimination table,
the preset environment parameter discrimination table comprises an environment judgment parameter or a corresponding relation between an environment judgment parameter range and a plurality of environment parameters, and the environment parameters comprise at least one of temperature, humidity, water level height and electromagnetic interference intensity.
7. A wake-up apparatus for a touch key module, the apparatus comprising:
the touch key module, a control component connected with the touch key module and a peripheral circuit are all in a dormant state in the low power consumption mode, a low-frequency oscillator for providing a clock signal for the touch key module is in a working state, and the oscillation frequency of the low-frequency oscillator is lower than the zero working frequency;
the second control module is used for controlling the touch key module to operate at a first working frequency when the operation of the low-frequency oscillator reaches a preset time length, and controlling the touch key module to perform touch key scanning of one or more keys after waiting for a preset number of first clock cycles to obtain a scanning count value when each key completes scanning, wherein the scanning count value is determined according to corresponding charging and discharging times when each key completes scanning;
and the third control module is used for controlling the touch key module to exit the low-power-consumption mode when the scanning count value of any key is greater than the preset scanning count value, and when the touch key module exits the low-power-consumption mode, the touch key module works at a second working frequency, wherein the first working frequency is higher than the second working frequency, and the second working frequency is higher than the zero working frequency.
8. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to invoke the memory-stored instructions to perform the method of any of claims 1 to 6.
9. A computer readable storage medium having computer program instructions stored thereon, which when executed by a processor implement the method of any one of claims 1 to 6.
CN202210398158.3A 2022-04-13 2022-04-13 Awakening method and device of touch key module, electronic equipment and storage medium Pending CN114706469A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210398158.3A CN114706469A (en) 2022-04-13 2022-04-13 Awakening method and device of touch key module, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210398158.3A CN114706469A (en) 2022-04-13 2022-04-13 Awakening method and device of touch key module, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114706469A true CN114706469A (en) 2022-07-05

Family

ID=82174793

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210398158.3A Pending CN114706469A (en) 2022-04-13 2022-04-13 Awakening method and device of touch key module, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114706469A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115333521A (en) * 2022-08-22 2022-11-11 深圳市锦锐科技股份有限公司 Low-power-consumption integrated circuit applied to RC touch key

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101807927A (en) * 2010-03-19 2010-08-18 青岛海信电器股份有限公司 Touch key scanning method and system
CN109683697A (en) * 2018-12-18 2019-04-26 深圳贝特莱电子科技股份有限公司 A kind of super low-power consumption system wake-up device and method
CN110347439A (en) * 2019-07-22 2019-10-18 Oppo广东移动通信有限公司 Processor awakening method, device, terminal and storage medium
CN110690905A (en) * 2018-07-04 2020-01-14 青岛海信智慧家居系统股份有限公司 Key scanning control method on touch panel and intelligent control equipment
US10571995B1 (en) * 2018-10-12 2020-02-25 Advanced Analog Technology, Inc. Power-saving scanning method for touch device
CN215298209U (en) * 2021-05-10 2021-12-24 北京集创北方科技股份有限公司 Touch awakening detection circuit, fingerprint identification device, display panel and electronic equipment
CN114301439A (en) * 2022-01-18 2022-04-08 国微集团(深圳)有限公司 Oscillator circuit for capacitive touch key detection and detection method
CN114320029A (en) * 2021-12-17 2022-04-12 上海爱信诺航芯电子科技有限公司 Low-power-consumption anti-interference intelligent door lock and awakening method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101807927A (en) * 2010-03-19 2010-08-18 青岛海信电器股份有限公司 Touch key scanning method and system
CN110690905A (en) * 2018-07-04 2020-01-14 青岛海信智慧家居系统股份有限公司 Key scanning control method on touch panel and intelligent control equipment
US10571995B1 (en) * 2018-10-12 2020-02-25 Advanced Analog Technology, Inc. Power-saving scanning method for touch device
CN109683697A (en) * 2018-12-18 2019-04-26 深圳贝特莱电子科技股份有限公司 A kind of super low-power consumption system wake-up device and method
CN110347439A (en) * 2019-07-22 2019-10-18 Oppo广东移动通信有限公司 Processor awakening method, device, terminal and storage medium
CN215298209U (en) * 2021-05-10 2021-12-24 北京集创北方科技股份有限公司 Touch awakening detection circuit, fingerprint identification device, display panel and electronic equipment
CN114320029A (en) * 2021-12-17 2022-04-12 上海爱信诺航芯电子科技有限公司 Low-power-consumption anti-interference intelligent door lock and awakening method
CN114301439A (en) * 2022-01-18 2022-04-08 国微集团(深圳)有限公司 Oscillator circuit for capacitive touch key detection and detection method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115333521A (en) * 2022-08-22 2022-11-11 深圳市锦锐科技股份有限公司 Low-power-consumption integrated circuit applied to RC touch key
CN115333521B (en) * 2022-08-22 2023-09-12 深圳市锦锐科技股份有限公司 Low-power consumption integrated circuit applied to RC touch key

Similar Documents

Publication Publication Date Title
EP3525123B1 (en) Method and apparatus for fingerprint unlocking
EP3113549B1 (en) Method and device for waking up mcu chip
EP3477423A1 (en) Method and device for preventing terminal from being inadvertently touched
US10088889B2 (en) Method and device for waking up a controller
US20180039332A1 (en) Terminal and touch response method and device
EP3093569A1 (en) Method and device for turning on air conditioner
CN106020670B (en) Screen lighting control method and device and electronic equipment
EP3046016A1 (en) Method and apparatus for switching display mode
US20160283022A1 (en) Method and Device for Awakening an Element
EP3112980A1 (en) Circuit, method and device for waking up master mcu
US20170060320A1 (en) Method for controlling a mobile terminal using a side touch panel
US10216248B2 (en) Method and device for controlling power consumption
CN106371643B (en) Touch chip crash handling method and device
US10498153B2 (en) Device, method, information processing program and recording medium to process control parameters used in control processing of a motor control device
CN108073328B (en) Touch response method and device
EP3249505B1 (en) Method and electronic device for controlling a state of a touch screen
CN106681618B (en) Method and device for awakening fingerprint identification module and mobile terminal
CN109862169B (en) Electronic equipment control method, device and storage medium
CN114706469A (en) Awakening method and device of touch key module, electronic equipment and storage medium
CN108766346A (en) The method and apparatus for protecting screen
CN108874450B (en) Method and device for waking up voice assistant
CN107422911B (en) Pressure value detection method and device and computer readable storage medium
CN113885693A (en) Touch feedback module and method, electronic equipment and computer storage medium
CN115940310A (en) Charging method, charging device, and storage medium
CN114967976A (en) Touch detection method and device, chip, electronic equipment and storage medium

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