Touch key module wake-up method and device, electronic device and storage medium

By using a low-frequency oscillator and a charge and discharge scan mechanism in a capacitive touch button module, the periodic wake-up module is solved to reduce power consumption and improve response speed, and the problems of high power consumption and slow response during wake-up of CPUs in the prior art are solved.

CN114706469BActive Publication Date: 2024-12-24SHENGSI MICROELECTRONICS (NANJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210398158.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-13
Publication Date
2024-12-24
Estimated Expiration
2042-04-13

AI Technical Summary

Technical Problem

The existing capacitive touch button module consumes a lot of power and responds slowly when wakes up the CPU of the CPU of the CPU of the CPU. The periodic wake-up method requires the participation of the CPU, resulting in an increase in overall power consumption.

Method used

By controlling the touch button module to enter the low-power mode, use a low-frequency oscillator to provide the clock signal, scan the key periodically, judge the touch operation based on the number of charge and discharge times, if the scan count value exceeds the preset value, exit the low-power mode, and operate at high At frequency, increase response speed and reduce power consumption.

Benefits of technology

It significantly reduces the power consumption of the touch button module, improves the response speed, reduces the CPU's need to participate in wake-up, and improves overall performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114706469B_ABST
    Figure CN114706469B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a method and 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 a touch operation on a touch key according to the number of charge and discharge times of a charge and discharge unit, and the method comprises: controlling the touch key module to enter a low power consumption mode; when the low frequency oscillator runs for a preset time, controlling the touch key module to run at a first working frequency, and after waiting for a preset number of first clock cycles, controlling the touch key module to perform a touch key scan of one or more keys, and obtaining a scan count value when each key completes the scan; when the scan count value of any key is greater than a preset scan count value, controlling the touch key module to exit the low power consumption mode, and after exiting the low power consumption mode, the touch key module operates at a second working frequency. The embodiments of the present disclosure can significantly reduce power consumption, and can improve response speed by performing a wake-up operation by the touch key module itself.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of touch detection technology, and in particular to a touch key module wake-up method and device, electronic equipment and storage medium. Background Art

[0002] At present, capacitive touch buttons are superior to traditional mechanical buttons in terms of appearance and service life. Therefore, capacitive touch buttons are widely used in fields including home appliances, consumer electronics, industrial control and mobile devices. However, since the touch button module does not need to be in working state all the time, in order to reduce power consumption, related technologies will make the touch button module enter low power mode and periodically wake up the central processing unit CPU. The CPU polls to determine whether there is a trigger. After the trigger, it exits the low power mode, otherwise it enters the low power mode again and continues to repeat the above steps.

[0003] However, in the periodic wake-up method of the related art, the CPU needs to be involved in the whole process. The CPU consumes a lot of power when running at high speed, which greatly increases the power consumption of the touch button. In addition, the response speed of the touch button in the CPU wake-up method is slow. Summary of the invention

[0004] According to one aspect of the present disclosure, a method for waking up a touch key module is provided, wherein the touch key module obtains a detection result of a touch operation on a touch key according to the number of charge and discharge times of a charge and discharge unit, and the method comprises:

[0005] Controlling the touch key module to enter a low power consumption mode, in which the touch key module, the control component connected to the touch key module, and the peripheral circuit are all in a dormant state, and a low frequency oscillator providing a clock signal to 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;

[0006] When the low-frequency oscillator runs for a preset time, the touch key module is controlled to run at a first operating frequency, and after waiting for a preset number of first clock cycles, the touch key module is controlled to perform touch key scanning of one or more keys to obtain a scan count value when each key completes scanning, wherein the scan count value is determined according to the corresponding number of charge and discharge times when each key completes scanning;

[0007] When the scan count value of any button is greater than the preset scan count value, the touch button module is controlled to exit the low power consumption mode. After the touch button module exits the low power consumption mode, the touch button module operates at a second operating frequency, wherein the first operating frequency is higher than the second operating frequency, and the second operating frequency is higher than the zeroth operating frequency.

[0008] In a possible implementation, the method further includes:

[0009] If the scan count values ​​of each key are less than or equal to the preset scan count value, the touch key module is controlled to operate in the low power consumption mode for the next preset time period.

[0010] In a possible implementation, the method further includes:

[0011] Dividing the system clock frequency to obtain the first operating frequency and the second operating frequency respectively;

[0012] When the low-frequency oscillator runs for a preset time, the operating frequency of the touch key module is configured to be the first operating frequency; when the touch key module exits the low power consumption mode, the operating frequency of the touch key module is configured to be the second operating frequency.

[0013] In a possible implementation manner, after the touch key module exits the low power consumption mode, the method further includes:

[0014] Determine a count difference between the scan count value and the preset scan count value;

[0015] Determine the environment judgment parameter according to the ratio of the count difference value and the preset count difference value, wherein the preset count difference value is the difference between the scan count values ​​of the touch key module before and after the interference of the radio frequency interference source when no touch occurs;

[0016] The environmental parameters of the touch key module are determined according to the environmental judgment parameters.

[0017] In a possible implementation manner, determining a count difference between the scan count value and the preset scan count value includes:

[0018] If the scan count value of the touch key module decreases after a touch occurs, the preset scan count value is subtracted from the scan count value to obtain the count difference value; or

[0019] If the scan count value of the touch key module increases after a touch occurs, the scan count value is subtracted from the preset scan count value to obtain the count difference value;

[0020] The determining a count difference between the scan count value and the preset scan count value comprises:

[0021] When the count difference is greater than zero, a count difference between the scan count value and the preset scan count value is determined.

[0022] In a possible implementation manner, determining the environmental parameter of the touch key module according to the environmental judgment parameter includes:

[0023] Determine the environmental parameters of the touch key module according to the environmental judgment parameters and a preset environmental parameter judgment table,

[0024] The preset environmental parameter determination table includes a correspondence between an environmental determination parameter or an environmental determination parameter range and a plurality of environmental parameters, and the environmental parameters include at least one of temperature, humidity, water level, and electromagnetic interference intensity.

[0025] According to one aspect of the present disclosure, a touch key module wake-up device is provided, the device comprising:

[0026] A first control module, used for controlling the touch key module to enter a low power consumption mode, in which the touch key module, the control component connected to the touch key module, and the peripheral circuit are all in a dormant state, and a low frequency oscillator providing a clock signal to 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;

[0027] A second control module is used to control the touch key module to operate at a first operating frequency when the low-frequency oscillator runs for a preset time, and after waiting for a preset number of first clock cycles, control the touch key module to perform touch key scanning of one or more keys to obtain a scan count value when each key completes the scan, wherein the scan count value is determined according to the number of charge and discharge times corresponding to each key when the scan is completed;

[0028] The third control module is used 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. After the touch key module exits the low power consumption mode, the touch key module operates at a second operating frequency, wherein the first operating frequency is higher than the second operating frequency, and the second operating frequency is higher than the zeroth operating frequency.

[0029] According to one aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to call the instructions stored in the memory to execute the above method.

[0030] According to one aspect of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored, and the computer program instructions implement the above method when executed by a processor.

[0031] The disclosed embodiment controls the touch key module to enter a low power consumption mode. In the low power consumption mode, the touch key module, the control component connected to the touch key module, and the peripheral circuit are all in a dormant state, and a low frequency oscillator providing a clock signal to 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; when the low frequency oscillator runs for a preset time, the touch key module is controlled to run at a first operating frequency, and after waiting for a preset number of first clock cycles, the touch key module is controlled to perform a touch key scan of one or more keys, and a scan count value of each key when the scan is completed is obtained, and the scan count value is calculated according to the time of each key. The corresponding number of charge and discharge times is determined when the scan is completed; when the scan count value of any key is greater than the preset scan count value, the touch key module is controlled to exit the low power mode. After the touch key module exits the low power mode, the touch key module operates at a second operating frequency, wherein the first operating frequency is higher than the second operating frequency, and the second operating frequency is higher than the zeroth operating frequency. The embodiment of the present disclosure controls the touch key module to operate in a low power mode under a low-frequency clock, and uses a preset time as a period, and periodically enables the touch key module to perform touch key scanning, thereby significantly reducing power consumption, and performing a wake-up operation by the touch key module itself, thereby improving the response speed.

[0032] It should be understood that the above general description and the following detailed description are exemplary and explanatory only and do not limit the present disclosure. Other features and aspects of the present disclosure will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used to illustrate the technical solutions of the present disclosure together with the specification.

[0034] Figure 1 A flow chart of a method for waking up a touch key module according to an embodiment of the present disclosure is shown.

[0035] Figure 2 A schematic diagram of a touch key module according to an embodiment of the present disclosure is shown.

[0036] Figure 3 A flow chart of a method for waking up a touch key module according to an embodiment of the present disclosure is shown.

[0037] Figure 4 A block diagram of a touch key module wake-up device according to an embodiment of the present disclosure is shown.

[0038] Figure 5 A block diagram of an electronic device according to an embodiment of the present disclosure is shown.

[0039] Figure 6 A block diagram of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0040] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.

[0041] In the description of the present disclosure, it should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing the present disclosure and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present disclosure.

[0042] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0043] In the present disclosure, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present disclosure can be understood according to specific circumstances.

[0044] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.

[0045] The term "and / or" herein is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set consisting of A, B, and C.

[0046] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.

[0047] See also Figure 1 , Figure 1 A flow chart of a method for waking up a touch key module according to an embodiment of the present disclosure is shown.

[0048] The touch key module obtains the detection result of the touch operation for the touch key according to the charge and discharge times of the charge and discharge unit, such as Figure 1 As shown, the method includes:

[0049] Step S11, controlling the touch key module to enter a low power consumption mode, in which the touch key module, the control component connected to the touch key module, and the peripheral circuit are all in a dormant state, and a low frequency oscillator providing a clock signal to 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;

[0050] Step S12, when the low-frequency oscillator runs for a preset time, the touch key module is controlled to run at a first operating frequency, and after waiting for a preset number of first clock cycles, the touch key module is controlled to perform touch key scanning of one or more keys, and a scan count value is obtained when each key is scanned, and the scan count value is determined according to the corresponding charge and discharge times when each key is scanned;

[0051] Step S13, when the scan count value of any button is greater than the preset scan count value, the touch button module is controlled to exit the low power consumption mode. After the touch button module exits the low power consumption mode, the touch button module operates at a second operating frequency, wherein the first operating frequency is higher than the second operating frequency, and the second operating frequency is higher than the zeroth operating frequency.

[0052] The disclosed embodiment controls the touch key module to enter a low power consumption mode. In the low power consumption mode, the touch key module, the control component connected to the touch key module, and the peripheral circuit are all in a dormant state, and a low frequency oscillator providing a clock signal to 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; when the low frequency oscillator runs for a preset time, the touch key module is controlled to run at a first operating frequency, and after waiting for a preset number of first clock cycles, the touch key module is controlled to perform a touch key scan of one or more keys, and a scan count value of each key when the scan is completed is obtained, and the scan count value is calculated according to the time of each key. The corresponding number of charge and discharge times is determined when the scan is completed; when the scan count value of any key is greater than the preset scan count value, the touch key module is controlled to exit the low power mode. After the touch key module exits the low power mode, the touch key module operates at a second operating frequency, wherein the first operating frequency is higher than the second operating frequency, and the second operating frequency is higher than the zeroth operating frequency. The embodiment of the present disclosure controls the touch key module to operate in a low power mode under a low-frequency clock, and uses a preset time as a period, and periodically enables the touch key module to perform touch key scanning, thereby significantly reducing power consumption, and performing a wake-up operation by the touch key module itself, thereby improving the response speed.

[0053] The embodiments of the present disclosure do not limit the specific implementation of the touch key module, control component, peripheral circuit, and low-frequency oscillator. The control component can be a processing component in the electronic device where the touch key module is located. In one example, the processing component includes but is not limited to a separate processor, or a discrete component, or a combination of a processor and a discrete component. The processor may include a controller having an execution instruction function in an electronic device. The processor may be implemented in any appropriate manner, for example, 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, microcontrollers, microprocessors, or other electronic components. Inside the processor, the executable instructions can be executed by hardware circuits such as logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers.

[0054] In one example, the electronic device may include a terminal and a server. The terminal is also called a user equipment (UE), a mobile station (MS), a mobile terminal (MT), etc. It is a device that provides voice and / or data connectivity to a user, or a device that provides specific functions, such as a handheld device with a wireless connection function, a vehicle-mounted device, etc. At present, some examples of terminals are: mobile phones, tablet computers, laptop computers, PDAs, mobile Internet devices (MID), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control (Industrial Control), wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grids (Smart Grid), wireless terminals in transportation safety (Transportation Safety), wireless terminals in smart cities (Smart City), wireless terminals in smart homes (Smart Home), wireless terminals in Internet of Vehicles, home electronic devices, etc.

[0055] 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, etc., which is not limited in the embodiments of the present disclosure.

[0056] The touch key scanning in the embodiment of the present disclosure may be that the touch key module scans each key sequentially or in parallel to obtain the scan count value when each key is scanned. In the scanning process for each key, the charging, discharging, comparing, and counting operations for the key are performed, as exemplarily described below.

[0057] In a possible implementation, the touch key module of the embodiment of the present disclosure may include a charge and discharge unit, a comparison unit, and a counting unit. In the scanning of each key, the corresponding key is powered on, and the charge and discharge unit is charged and discharged multiple times, and the number of charge and discharge times of the charge and discharge unit is counted by the counting unit until the voltage of the energy storage capacitor in the charge and discharge unit reaches the reference voltage, and the count value in the counting unit is obtained as the scan count value, and the scan ends. Further, the touch key module may include a judgment unit, and the judgment unit may include a comparator. By comparing the scan count value obtained by performing the touch key scan and the preset scan count value, it can be determined whether the key is touched. The embodiment of the present disclosure does not limit the specific implementation of the touch key module, and does not limit the specific implementation of the charge and discharge unit, the comparison unit, the counting unit, and the judgment unit. The wake-up method of the embodiment of the present disclosure is applicable to various types of touch key modules, as long as it is a touch key module that performs touch judgment according to the principle introduced above. The following is an exemplary introduction to the possible implementation of the charge and discharge unit and the comparison unit of the touch key module.

[0058] 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 (also referred to as a non-working state, a non-operating state, etc.), and the low-frequency oscillator that provides a clock signal to 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. In the low power consumption mode, the charging and discharging unit, the comparison unit, the counting unit, the judgment unit, etc. can all be in a sleep state, and the low-frequency oscillator operates at a low frequency of the zeroth working frequency to provide functions such as timing. In the low power consumption mode, the power consumption is significantly reduced. Moreover, when the touch key module is periodically awakened in the embodiment of the present disclosure, the control component and the peripheral circuit are still in a sleep state. Therefore, compared with the related art, the power consumption is further reduced.

[0059] See also Figure 2 , Figure 2 A schematic diagram of a touch key module according to an embodiment of the present disclosure is shown.

[0060] like Figure 2 As shown, the touch key module includes a plurality of detection channels (for example, N, where N is an integer greater than 1), a comparison unit (including a comparator Cmp), a first capacitor C 1 and the first switch S W1 Each detection channel corresponds to each touch button and is used for touch detection. Each detection channel includes a touch button (corresponding to the button capacitance C TK1 , C TK2 ,…,C TKm ), the second switch (S W00 , S W01 ,…,SW0m )、The third switch (S W10 , S W11 ,…,S W1m ),in,

[0061] The positive input terminal of the comparator Cmp is connected to each detection channel (such as detection channels 1 to N), the first capacitor C 1 The first end of the first switch S W1 The first end of the first capacitor C 1 The second end of the first switch S W1 The second end is grounded,

[0062] Power supply V S The output end of is connected to the power supply end of each detection channel (the first end of each second switch) for outputting a charging voltage, wherein the second end of the second switch is connected to the first end of the third switch and the touch button, and the second end of the third switch is connected to the positive input end of the comparison module Cmp, the first switch S W1 The first end and the first capacitor C 1 The first end.

[0063] Below Figure 2 The circuit structure shown is an exemplary introduction to the touch key scanning process of the touch key module, and the exemplary introduction is made by taking detection channel 1 as an example.

[0064] The first step is to turn on the first switch S W1 , disconnect the third switch S W10 , the second switch S W00 , put the first capacitor C 1 All the charges on the P The voltage is 0;

[0065] The second step is to turn on the second switch S W00 , disconnect the third switch S W10 , the first switch S W1 , for capacitor C TK1 Charge to voltage VOP;

[0066] Step 3: Turn on the third switch S W10 , turn off the second switch S W00 , the first switch S W1 , the capacitor C TK1 The charge on S W10 Move to capacitor C 1 At this time, V P The voltage is raised;

[0067] Repeat the second and third steps of the charging and discharging process (also called charging and charge transfer process) until V P The voltage is greater than the reference voltage V REF , COMP_OUT becomes high, at this time, the number of times N (the count value when there is no touch) of the charge and discharge repeated in steps 2 and 3 in the counting unit is obtained; when a touch occurs (such as when the hand touches the detection button), it is equivalent to the capacitance C of the hand P (such as C P1 ) and the capacitance C of the touch button TK In parallel, the capacitance becomes larger, and the scan count is performed according to the above touch button scanning process to obtain the number of times M that steps two and three are repeated when a touch occurs. When the number N minus M is greater than a certain amount, the circuit detects a touch button.

[0068] Of course, the above introduction is exemplary and should not be regarded as a limitation on the embodiments of the present disclosure. The embodiments of the present disclosure do not limit the specific implementation method of the touch button scanning process. The embodiments of the present disclosure can change the above charging and discharging units, and accordingly, can also adaptively change the touch button scanning process.

[0069] See also Figure 3 , Figure 3 A flow chart of a method for waking up a touch key module according to an embodiment of the present disclosure is shown.

[0070] In a possible implementation, Figure 3 As shown, the method may also include:

[0071] Step S14: if the scan count values ​​of each key are less than or equal to the preset scan count value, control the touch key module to operate in the low power consumption mode for the next preset time period.

[0072] Through the above method, when the present invention obtains the scan count value when each key completes the scan through the touch key module, if the scan count values ​​of each key are less than or equal to the preset scan count value, it can be determined that no touch has occurred, and the touch key module is controlled to operate in the low power consumption mode for the next preset time period, that is, the touch key module, the control component connected to the touch key module, and the peripheral circuit are all in a sleep state, and the low-frequency oscillator that provides a clock signal to the touch key module is in a working state, and the oscillation frequency of the low-frequency oscillator is lower than the zeroth operating frequency to further reduce power consumption.

[0073] The embodiments of the present disclosure do not limit the specific sizes of the zeroth operating frequency (such as 32KHz), the first operating frequency, and the second operating frequency. Those skilled in the art may set them according to actual conditions and needs.

[0074] In a possible implementation, Figure 3 As shown, the method may also include:

[0075] Step S20, dividing the system clock frequency to obtain the first operating frequency and the second operating frequency respectively;

[0076] Step S21, when the low-frequency oscillator runs for a preset time, the operating frequency of the touch key module is configured to be the first operating frequency; when the touch key module exits the low power consumption mode, the operating frequency of the touch key module is configured to be the second operating frequency.

[0077] Through the above method, the embodiment of the present disclosure can use the system clock frequency to obtain the first operating frequency and the second operating frequency, and realize the configuration of the operating frequency of the touch key module during the wake-up process, thereby improving work efficiency.

[0078] The embodiments of the present disclosure do not limit the specific size and method of frequency division, and those skilled in the art can determine it according to actual conditions and needs. For example, the system clock frequency is 32KHz. For example, the system clock frequency can be provided by a low-frequency oscillator. The embodiments of the present disclosure can divide the 32KHz system clock frequency by 1, 2, 4, 8, etc. (such as any frequency division between 1 and 64) by configuring registers to obtain the corresponding first operating frequency and second operating frequency. The low-frequency clock in the low power consumption mode can be divided by 2048, 4096, 8192, 16384, etc., to obtain the working cycles of the touch keys in the low power consumption mode of 64ms, 128ms, 256ms and 512ms respectively.

[0079] The presently disclosed embodiment does not limit the specific size of the preset number of waiting for the first clock cycle in step S12, and those skilled in the art may set it according to actual conditions and needs. In order to improve the response speed, the preset number may be set to 1 to 5, preferably 2.

[0080] In the disclosed embodiment, the hardware starts scanning the touch key at intervals under the low-frequency clock and then takes the value to determine whether to exit the low-power mode. This process does not require the CPU to participate, which significantly reduces the overall power consumption of the touch key. After testing, using this method can reduce power consumption by about 50% compared to software participating in the low-power mode. Once the touch key channel is triggered by scanning, it quickly exits the low-power mode, which improves the response speed of the touch key compared to using software. In addition, the disclosed embodiment configures the operating frequency of the touch key module to the first operating frequency when the low-frequency oscillator runs for a preset time, and sets the first operating frequency to be higher than the second operating frequency, which can speed up the speed at which the hardware determines whether a touch occurs.

[0081] In an embodiment of the present disclosure, if it is determined that the scan count value of any key is greater than a preset scan count value, it can be determined that a touch has occurred. In this case, the embodiment of the present disclosure can control the touch key module to exit the low power consumption mode, wake up the control component to improve the efficiency of the touch key scanning, and perform subsequent operations. An exemplary introduction is given below.

[0082] In a possible implementation, Figure 3 As shown, after the touch key module exits the low power consumption mode, the method may further include:

[0083] Step S22, determining a count difference between the scan count value and the preset scan count value;

[0084] Step S23, determining an environment judgment parameter according to a ratio between the count difference value and a preset count difference value, wherein the preset count difference value is a difference between scan count values ​​of the touch key module before and after interference from a radio frequency interference source when no touch occurs;

[0085] Step S24, determining the environmental parameters of the touch key module according to the environmental judgment parameters.

[0086] Through the above method, the embodiment of the present disclosure can determine the count difference between the scan count value and the preset scan count value, determine the environmental judgment parameter according to the ratio of the count difference and the preset count difference, determine the environmental parameters of the touch button module according to the environmental judgment parameter, and obtain the environmental information.

[0087] Among them, all touch keys can be scanned respectively before and after the interference of the RF interference source to obtain the average value of the scan count values ​​of the touch keys before and after the interference, and the difference between the average values ​​is used as the difference in the scan count values ​​of the above-mentioned touch key module before and after the interference of the RF interference source; or the maximum value of the difference in the scan count values ​​of the touch keys before and after the interference is taken as the difference in the scan count values ​​of the above-mentioned touch key module before and after the interference of the RF interference source.

[0088] The method for obtaining environmental parameters in the embodiment of the present disclosure can be executed by a control component.

[0089] In one example, the RF interference source may be a 10W power walkie-talkie, which is an electronic device with strong RF interference. The 10W power walkie-talkie can be used to measure the ability of other electronic devices to resist RF interference. For example, using a 10W power walkie-talkie can generate huge RF radiation interference to the touch key module, and the RF anti-interference ability of the touch key can be judged by the change in the count value of the touch key and the actual response effect. For example, the embodiment of the present disclosure can use a 10W power walkie-talkie to test the touch key module in advance to obtain the pre-designed numerical difference. Of course, the embodiment of the present disclosure does not limit the specific implementation method of the RF interference source, and those skilled in the art can choose according to actual conditions and needs. In addition, the embodiment of the present disclosure does not limit the specific method for obtaining the pre-designed numerical difference, and those skilled in the art can determine it in a suitable manner according to actual conditions and needs.

[0090] In a possible implementation manner, step S22 of determining the count difference between the scan count value and the preset scan count value may include:

[0091] If the scan count value of the touch key module decreases after a touch occurs, the preset scan count value is subtracted from the scan count value to obtain the count difference value; or

[0092] If the scan count value of the touch key module increases after a touch occurs, the scan count value is subtracted from the preset scan count value to obtain the count difference value.

[0093] Due to the manufacturer's design of the touch key module, after a person touches a key, the count value of some touch key modules increases, while the count value of some touch key modules decreases. The disclosed embodiment adaptively calculates the count difference for the touch key modules corresponding to the case where the scan count value decreases after a touch occurs and the case where the scan count value increases after a touch occurs, which can improve accuracy and flexibility.

[0094] In a possible implementation manner, step S22 of determining the count difference between the scan count value and the preset scan count value may include:

[0095] When the count difference is greater than zero, a count difference between the scan count value and the preset scan count value is determined.

[0096] The embodiment of the present disclosure can improve the accuracy of acquiring environmental information by determining the count difference between the scan count value and the preset scan count value when the count difference is greater than zero.

[0097] In a possible implementation manner, step S23 determines the environment judgment parameter according to the ratio of the count difference value to the preset count difference value, which may include:

[0098] The ratio of the count difference value to the preset count difference value is used as an environment judgment parameter.

[0099] For example, the environmental judgment parameter can be obtained by formula 1:

[0100] D=S / Ts Formula 1

[0101] Wherein, D represents the environment judgment parameter, S represents the count difference, and Ts represents the preset count difference.

[0102] In a possible implementation manner, step S24 determines the environmental parameters of the touch key module according to the environmental judgment parameters, which may include:

[0103] Determine the environmental parameters of the touch key module according to the environmental judgment parameters and a preset environmental parameter judgment table,

[0104] The preset environmental parameter determination table includes a correspondence between an environmental determination parameter or an environmental determination parameter range and a plurality of environmental parameters, and the environmental parameters include at least one of temperature, humidity, water level, electromagnetic interference intensity, and the like.

[0105] The disclosed embodiment does not limit the specific form of the preset environmental parameter discrimination table, nor does it limit the specific correspondence between the environmental judgment parameters or environmental judgment parameter ranges included in the preset environmental parameter discrimination table and multiple environmental parameters, nor does it limit the types and numbers of environmental parameters. Those skilled in the art can set them according to actual conditions and needs. For example, different environmental parameters can correspond to different environmental judgment parameters or environmental judgment parameter ranges, and the corresponding environmental parameters can be determined from the environmental parameter discrimination table according to the current environmental judgment parameter or the environmental judgment parameter range in which it is located.

[0106] Exemplarily, taking the case where the count value decreases when a person touches the touch button module, for a touch button in an environment without a radio frequency interference source and when no touch occurs (for example, the touch button can be packaged by a 5mm acrylic plate), the preset scan count value is, for example, 5000-5010, and the count value of the touch button interfered by the intercom is 4500-4510, that is, the current reference value is about 5000, so the preset count difference Ts after the intercom interference is 5000-4500=500; taking water level detection as an example, the count difference between the scan count value and the preset scan count value at three moments when water just touches the touch button, water reaches the middle of the touch button, and water submerges the touch button can be tested in advance. For example, if the scan count value and the preset scan count value of the touch button just contacted by water are different, the scan count value of the touch button is 5000-5010. The count difference S1 is 50, the count difference S2 between the scan count value and the preset scan count value when the water reaches the middle of the touch button is 80, and the count difference S3 between the scan count value and the preset scan count value when the water submerges the touch button is 110. According to formula 1, the environmental judgment parameter D1 can be calculated as S1÷500×100%=10%, D2 as S2÷500×100%=16, and D3 as S3÷500×100=22%. In electronic devices, the height of the touch button is fixed, and the corresponding relationship between the environmental judgment parameter and the height can be determined in advance and stored in the preset environmental parameter judgment table. When a flood or other water overflows the electronic device, the water level height can be obtained according to the calculated environmental judgment parameter and the preset environmental parameter judgment table.

[0107] The above is an exemplary introduction using the determination of water level as an example. The determination of other environmental parameters is similar and will not be elaborated here. Of course, the embodiments of the present disclosure are not limited to the aforementioned environmental parameters, but may also include others, for example, temperature change trends, etc.

[0108] It can be understood that the above-mentioned various method embodiments mentioned in the present disclosure can be combined with each other to form a combined embodiment without violating the principle logic. Due to space limitations, the present disclosure will not repeat them. It can be understood by those skilled in the art that in the above-mentioned method of the specific implementation method, the specific execution order of each step should be determined according to its function and possible internal logic.

[0109] See also Figure 4 , Figure 4 A block diagram of a touch key module wake-up device according to an embodiment of the present disclosure is shown.

[0110] like Figure 4 As shown, the device comprises:

[0111] A first control module 10 is used to control the touch key module to enter a low power consumption mode. In the low power consumption mode, the touch key module, the control component connected to the touch key module, and the peripheral circuit are all in a dormant state, and a low frequency oscillator providing a clock signal to 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;

[0112] The second control module 20 is used to control the touch key module to operate at the first operating frequency when the low-frequency oscillator runs for a preset time, and after waiting for a preset number of first clock cycles, control the touch key module to perform touch key scanning of one or more keys to obtain a scan count value when each key completes the scan, wherein the scan count value is determined according to the corresponding charge and discharge times when each key completes the scan;

[0113] The third control module 30 is used 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. After the touch key module exits the low power consumption mode, the touch key module operates at a second operating frequency, wherein the first operating frequency is higher than the second operating frequency, and the second operating frequency is higher than the zeroth operating frequency.

[0114] The disclosed embodiment controls the touch key module to enter a low power consumption mode. In the low power consumption mode, the touch key module, the control component connected to the touch key module, and the peripheral circuit are all in a dormant state, and a low frequency oscillator providing a clock signal to 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; when the low frequency oscillator runs for a preset time, the touch key module is controlled to run at a first operating frequency, and after waiting for a preset number of first clock cycles, the touch key module is controlled to perform a touch key scan of one or more keys, and a scan count value of each key when the scan is completed is obtained, and the scan count value is calculated according to the time of each key. The corresponding number of charge and discharge times is determined when the scan is completed; when the scan count value of any key is greater than the preset scan count value, the touch key module is controlled to exit the low power mode. After the touch key module exits the low power mode, the touch key module operates at a second operating frequency, wherein the first operating frequency is higher than the second operating frequency, and the second operating frequency is higher than the zeroth operating frequency. The embodiment of the present disclosure controls the touch key module to operate in a low power mode under a low-frequency clock, and uses a preset time as a period, and periodically enables the touch key module to perform touch key scanning, thereby significantly reducing power consumption, and performing a wake-up operation by the touch key module itself, thereby improving the response speed.

[0115] In a possible implementation, the device further includes:

[0116] The fourth control module is used to control the touch key module to operate in the low power consumption mode for a next preset time period if the scan count values ​​of each key are less than or equal to the preset scan count value.

[0117] In a possible implementation, the device further includes:

[0118] A frequency division module, used for dividing the system clock frequency to obtain the first operating frequency and the second operating frequency respectively;

[0119] A configuration module is used to configure the operating frequency of the touch key module to be the first operating frequency when the low-frequency oscillator runs for a preset time; when the touch key module exits the low power consumption mode, configure the operating frequency of the touch key module to be the second operating frequency.

[0120] In a possible implementation, the device further includes:

[0121] A first determination module, configured to determine a count difference between the scan count value and the preset scan count value after the touch key module exits the low power consumption mode;

[0122] A second determination module is used to determine the environment judgment parameter according to the ratio of the count difference value and a preset count difference value, wherein the preset count difference value is the difference between the scan count values ​​of the touch key module before and after the interference of the radio frequency interference source when no touch occurs;

[0123] The third determination module is used to determine the environmental parameters of the touch key module according to the environmental judgment parameters.

[0124] In a possible implementation manner, determining a count difference between the scan count value and the preset scan count value includes:

[0125] If the scan count value of the touch key module decreases after a touch occurs, the preset scan count value is subtracted from the scan count value to obtain the count difference value; or

[0126] If the scan count value of the touch key module increases after a touch occurs, the scan count value is subtracted from the preset scan count value to obtain the count difference value;

[0127] The determining a count difference between the scan count value and the preset scan count value comprises:

[0128] When the count difference is greater than zero, a count difference between the scan count value and the preset scan count value is determined.

[0129] In a possible implementation manner, determining the environmental parameter of the touch key module according to the environmental judgment parameter includes:

[0130] Determine the environmental parameters of the touch key module according to the environmental judgment parameters and a preset environmental parameter judgment table,

[0131] The preset environmental parameter identification table includes a correspondence between an environmental parameter or an environmental parameter range and a plurality of environmental parameters, and the environmental parameter includes at least one of temperature, humidity, water level, and electromagnetic interference intensity.

[0132] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.

[0133] The embodiment of the present disclosure also provides a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the above method is implemented. The computer-readable storage medium may be a non-volatile computer-readable storage medium.

[0134] An embodiment of the present disclosure further proposes an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to call the instructions stored in the memory to execute the above method.

[0135] The embodiments of the present disclosure also provide a computer program product, including a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the above method.

[0136] The electronic device may be provided as a terminal, a server, or a device in other forms.

[0137] See also Figure 5 , Figure 5 A block diagram of an electronic device according to an embodiment of the present disclosure is shown.

[0138] 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.

[0139] Reference Figure 5, the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

[0140] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0141] The memory 804 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, 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 disk or optical disk.

[0142] The power supply component 806 provides power to the various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 800.

[0143] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the 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 input signals from the 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 boundaries of the 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 camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0144] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0145] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0146] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the electronic device 800, the relative positioning of the components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The 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 an optical sensor, such as a complementary metal oxide semiconductor (CMOS) or a 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.

[0147] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can 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 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0148] 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, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0149] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 804 including computer program instructions, which can be executed by a processor 820 of an electronic device 800 to perform the above method.

[0150] See also Figure 6 , Figure 6 A block diagram of an electronic device according to an embodiment of the present disclosure is shown.

[0151] For example, the electronic device 1900 may be provided as a server. Figure 6 , the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932 for storing instructions executable by the processing component 1922, such as an application. The application stored in the memory 1932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.

[0152] The electronic device 1900 may also include a power supply 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 stored in the memory 1932, such as a Microsoft Server operating system (Windows Server 2003). TM ), a graphical user interface operating system launched by Apple (Mac OSX TM ), a multi-user, multi-process computer operating system (Unix TM ), a free and open source Unix-like operating system (Linux TM ), an open source Unix-like operating system (FreeBSD TM ) or similar.

[0153] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the electronic device 1900 to perform the above method.

[0154] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.

[0155] Computer readable storage medium can be a tangible device that can hold and store instructions used by an instruction execution device. Computer readable storage medium can be, for example, (but not limited to) an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (non-exhaustive list) of computer readable storage medium include: a portable computer disk, 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 disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, for example, a punch card or a convex structure in a groove on which instructions are stored, and any suitable combination thereof. The computer readable storage medium used here is not interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated by a waveguide or other transmission medium (for example, a light pulse by an optical fiber cable), or an electrical signal transmitted by a wire.

[0156] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0157] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0158] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0159] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0160] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0161] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.

[0162] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (SDK) and the like.

[0163] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A touch key module wake-up method, characterized in that: The touch key module obtains a detection result of a touch operation on a touch key according to the charge and discharge times of the charge and discharge unit, and the method includes: Controlling the touch key module to enter a low power consumption mode, in which the touch key module, the control component connected to the touch key module, and the peripheral circuit are all in a dormant state, and a low frequency oscillator providing a clock signal to 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; When the low-frequency oscillator runs for a preset time, the touch key module is controlled to run at a first operating frequency, and after waiting for a preset number of first clock cycles, the touch key module is controlled to perform touch key scanning of one or more keys to obtain a scan count value when each key completes scanning, wherein the scan count value is determined according to the corresponding number of charge and discharge times when each key completes scanning; When the scan count value of any key is greater than the preset scan count value, the touch key module is controlled to exit the low power consumption mode. After the touch key module exits the low power consumption mode, the touch key module operates at a second operating frequency, wherein the first operating frequency is higher than the second operating frequency, and the second operating frequency is higher than the zeroth operating frequency. After the touch key module exits the low power consumption mode, the method further includes: Determine a count difference 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 and the preset count difference value, wherein the preset count difference value is the difference between the scan count values ​​of the touch key module before and after the interference of the radio frequency interference source when no touch occurs; The environmental parameters of the touch key module are determined according to the environmental judgment parameters.

2. The method according to claim 1, characterized in that The method further comprises: If the scan count values ​​of each key are less than or equal to the preset scan count value, the touch key module is controlled to operate in the low power consumption mode for the next preset time period.

3. The method according to claim 1, characterized in that The method further comprises: Dividing the system clock frequency to obtain the first operating frequency and the second operating frequency respectively; When the low-frequency oscillator runs for a preset time, the operating frequency of the touch key module is configured to be the first operating frequency; when the touch key module exits the low power consumption mode, the operating frequency of the touch key module is configured to be the second operating frequency.

4. The method according to claim 1, characterized in that The determining a count difference between the scan count value and the preset scan count value comprises: If the scan count value of the touch key module decreases after a touch occurs, the preset scan count value is subtracted from the scan count value to obtain the count difference value; or If the scan count value of the touch key module increases after a touch occurs, the scan count value is subtracted from the preset scan count value to obtain the count difference value; The determining a count difference between the scan count value and the preset scan count value comprises: When the count difference is greater than zero, a count difference between the scan count value and the preset scan count value is determined.

5. The method according to claim 1, characterized in that The step of determining the environmental parameters of the touch key module according to the environmental judgment parameters includes: Determine the environmental parameters of the touch key module according to the environmental judgment parameters and a preset environmental parameter judgment table, The preset environmental parameter determination table includes a correspondence between an environmental determination parameter or an environmental determination parameter range and a plurality of environmental parameters, and the environmental parameters include at least one of temperature, humidity, water level, and electromagnetic interference intensity.

6. A touch key module wake-up device, characterized in that: The device comprises: A first control module, used for controlling the touch key module to enter a low power consumption mode, in which the touch key module, the control component connected to the touch key module, and the peripheral circuit are all in a dormant state, and a low frequency oscillator providing a clock signal to 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; A second control module is used to control the touch key module to operate at a first operating frequency when the low-frequency oscillator runs for a preset time, and after waiting for a preset number of first clock cycles, control the touch key module to perform touch key scanning of one or more keys to obtain a scan count value when each key completes the scan, wherein the scan count value is determined according to the number of charge and discharge times corresponding to each key when the scan is completed; The third control module is used 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. After the touch key module exits the low power consumption mode, the touch key module operates at a second operating frequency, wherein the first operating frequency is higher than the second operating frequency, and the second operating frequency is higher than the zeroth operating frequency. The device also includes: A first determination module, configured to determine a count difference between the scan count value and the preset scan count value after the touch key module exits the low power consumption mode; A second determination module is used to determine the environment judgment parameter according to the ratio of the count difference value and a preset count difference value, wherein the preset count difference value is the difference between the scan count values ​​of the touch key module before and after the interference of the radio frequency interference source when no touch occurs; The third determination module is used to determine the environmental parameters of the touch key module according to the environmental judgment parameters.

7. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to call the instructions stored in the memory to execute the method described in any one of claims 1 to 5.

8. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 5 is implemented.