Metal touch button, method and terminal for detecting capacitive induction button
By designing a detection module for metal touch buttons, the oscillation frequency changes of the capacitance-induced buttons are detected, and the problem of lack of detection of capacitance-induced changes in the prior art is solved, and accurate monitoring and feedback of the action of capacitance-induced buttons is achieved.
Patent Information
- Application Number
- CN202010899399.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-31
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2040-08-31
AI Technical Summary
The lack of a solution to detect capacitance changes in the prior art, resulting in the inability to effectively monitor and feedback the movement of capacitance-induced buttons.
A metal touch button is designed, including a metal deformation part, an induction part, a support part and a detection module. By detecting the oscillation frequency of the oscillation circuit composed of an induction capacitor, the decrease value of the oscillation frequency is calculated, and the corresponding command is feedback when the decrease value is greater than or equal to the set frequency.
It realizes effective detection and feedback of capacitive induction buttons, and can accurately monitor the changes in the sensing capacitor and convert it into corresponding instructions.
Smart Images

Figure CN112260673B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of switch panels, for example, to a metal touch button, a method for detecting a capacitive induction button, and a terminal. Background Art
[0002] At present, touch technology is used on some switch panels. These switch panels are often made of non-conductive materials such as plastic, ceramic, wood, glass, etc., which often reduce the mechanical strength of the switch panels.
[0003] The Chinese patent application with publication number CN110174958A discloses a terminal device, which includes a metal shell and a touch sensing button, and the touch sensing button includes a metal touch panel, an insulating part and a sensing circuit board; wherein: the insulating part is arranged around the metal touch panel, the metal touch panel is arranged on the metal shell through the insulating part, and the metal touch panel is insulated and isolated from the metal shell through the insulating part; the sensing circuit board is arranged on the inner side of the metal shell, and the sensing circuit board is insulated and isolated from the metal touch panel, and the sensing circuit board includes a touch sensing area, and the touch sensing area is arranged opposite to the metal touch panel. The terminal device adopts a metal shell, has high mechanical strength, and has a better sealing effect.
[0004] In the process of implementing the embodiments of the present disclosure, it is found that there are at least the following problems in the related art:
[0005] The prior art lacks a solution for detecting capacitance changes. Summary of the invention
[0006] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0007] The embodiments of the present disclosure provide a metal touch button, a method for detecting a capacitive sensing button, and a terminal to solve the technical problem of the lack of a solution for detecting capacitance changes in the prior art.
[0008] In some embodiments, the metal touch button includes a metal deformation part in a flat structure, a sensing part in a flat structure, a supporting part and a detection module; wherein the sensing part and the metal deformation part are arranged opposite to each other, and the supporting part supports the metal deformation part so that there is a specific distance between the metal deformation part and the sensing part, and the metal deformation part and the sensing part constitute an inductive capacitor; the detection module is configured to detect the oscillation frequency of the oscillation circuit constituted by the inductive capacitor, and calculate the reduction value of the oscillation frequency, and when the reduction value of the oscillation frequency is greater than or equal to the set frequency, feedback an instruction corresponding to the key action.
[0009] In some embodiments, a method for detecting a capacitive sensing button includes: detecting an oscillation frequency of an oscillation circuit, wherein the oscillation circuit includes an inductive capacitor, and when the button is pressed, the capacitance value of the inductive capacitor changes; calculating a reduction value of the oscillation frequency; and when the reduction value of the oscillation frequency is greater than or equal to a set frequency, feeding back an instruction corresponding to the button action.
[0010] Optionally, calculating the reduction value of the oscillation frequency includes: obtaining a first average frequency of the oscillation frequency of the oscillation circuit in a first set time period; obtaining a second average frequency of the oscillation frequency of the oscillation circuit in a second set time period; and calculating the difference between the first average frequency and the second average frequency to obtain the reduction value of the oscillation frequency.
[0011] Optionally, the first set time period includes multiple detection cycles, and obtaining a first average frequency of the oscillation frequency of the oscillation circuit within the first set time period includes: counting the number of oscillations of the oscillation circuit in each detection cycle to obtain the oscillation frequencies of the oscillation circuit in multiple detection cycles, and calculating the average value of the oscillation frequencies of the oscillation circuit in multiple detection cycles to obtain the first average frequency.
[0012] Optionally, the second set time period includes multiple detection cycles, and obtaining the second average frequency of the oscillation frequency of the oscillation circuit within the second set time period includes: counting the number of oscillations of the oscillation circuit in each detection cycle to obtain the oscillation frequency of the oscillation circuit for multiple detection cycles, and calculating the average value of the oscillation frequency of the oscillation circuit for multiple detection cycles to obtain the second average frequency.
[0013] Optionally, the first set time period and the second set time period include one or more common detection cycles.
[0014] Optionally, the first set time period includes: T n , T n+1 ,…,T n+m The second set time period includes: T n+1 , T n+2 ,…,T n+m+1 ; Among them, T n is the detection period, T n and T n+1 are two adjacent detection cycles, n is a natural number, and m is a natural number.
[0015] Optionally, the feedback of the instruction corresponding to the key action includes one or more of the following: feedback of a power-off instruction; feedback of a power-on instruction; feedback of the key action being effective through a reminder device.
[0016] Optionally, the key action is fed back through a reminder device, including one or more of the following: the key action is fed back through a vibration device; the key action is fed back through a sound device; the key action is fed back through a light-emitting device.
[0017] Optionally, the method for detecting a capacitive induction button further includes: when the reduction value of the oscillation frequency is less than the set frequency, continuing to detect the oscillation frequency of the oscillation circuit and calculating the reduction value of the oscillation frequency.
[0018] In some embodiments, the intelligent switch includes a processor and a memory storing program instructions, and the processor is configured to execute the method for detecting capacitive sensing buttons provided in the above embodiments when executing the program instructions.
[0019] The metal touch button, the method for detecting a capacitive inductive button, and the terminal provided in the embodiments of the present disclosure can achieve the following technical effects:
[0020] The inductive capacitor and the reactance or resistance corresponding to the key form an oscillation circuit, the oscillation frequency of the oscillation circuit is detected, and the reduction value of the oscillation frequency is calculated. When the reduction value of the oscillation frequency is greater than or equal to the set frequency, the instruction corresponding to the key action is fed back, thereby detecting the change of the inductive capacitor corresponding to the key, thereby achieving the purpose of converting the change of the inductive capacitor into an instruction.
[0021] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] One or more embodiments are exemplarily described by corresponding drawings, and these exemplary descriptions and drawings do not limit the embodiments. Elements with the same reference numerals in the drawings are regarded as similar elements, and wherein:
[0023] Figure 1 is a structural schematic diagram of a metal touch button provided by an embodiment of the present disclosure;
[0024] Figure 2 is a schematic diagram of a method for detecting a capacitive induction key provided by an embodiment of the present disclosure;
[0025] Figure 3 is a schematic diagram of a method for calculating a reduced value of an oscillation frequency provided by an embodiment of the present disclosure;
[0026] Figure 4 is a schematic diagram of a method for obtaining a first average frequency provided by an embodiment of the present disclosure;
[0027] Figure 5is a schematic diagram of a method for obtaining a second average frequency provided by an embodiment of the present disclosure;
[0028] Figure 6 It is a schematic diagram of a terminal provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0029] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0030] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0031] Unless otherwise stated, the term "plurality" means two or more.
[0032] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.
[0033] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.
[0034] Figure 1 Schematic diagram of the structure of a metal touch button provided by an embodiment of the present disclosure. Figure 1 As shown, the key comprises a metal deformation part 11, a support part 12 and a sensing part 13. The metal deformation part 11 is a flat plate structure, which is deformed under the action of force, the sensing part 13 is a flat plate structure, which is arranged opposite to the metal deformation part 11, and the support part 12 supports the metal deformation part 11, so that there is a specific distance between the metal deformation part 11 and the sensing part 13, and the metal deformation part 11 and the sensing part 13 constitute an inductive capacitor. When the user presses the metal deformation part 11, the metal deformation part 11 is deformed, and the capacitance value of the inductive capacitor changes.
[0035] In some practical applications, the metal touch button includes a base plate 14, a support portion 12 is arranged on the base plate 14, the support portion 12 and the base plate 14 form a recessed structure, the sensing portion 13 is arranged at the bottom end of the recessed structure, and the metal deformation portion 11 covers the notch of the recessed structure.
[0036] The metal touch key further includes a detection module for executing a method for detecting a capacitive inductive key. For example, the detection module is configured to detect an oscillation frequency of an oscillation circuit formed by an inductive capacitor, and calculate a reduction value of the oscillation frequency, and when the reduction value of the oscillation frequency is greater than or equal to a set frequency, feedback an instruction corresponding to the key action.
[0037] Figure 2 is a schematic diagram of a method for detecting a capacitive inductive key provided by an embodiment of the present disclosure. Figure 2 As shown, the method for detecting a capacitive sensing button includes:
[0038] S201, detecting the oscillation frequency of the oscillation circuit.
[0039] The oscillation circuit includes an inductive capacitor, and when a key is pressed, the capacitance value of the inductive capacitor changes. Figure 1 The deformation part (metal deformation part) and the induction part shown in the figure are composed, and the oscillation circuit is an RC oscillation circuit composed of an inductive capacitor and a resistor, or the oscillation circuit is an LC oscillation circuit composed of an inductive capacitor and an inductor.
[0040] S202: Calculate and obtain a reduction value of the oscillation frequency.
[0041] When the user presses the deformation part of the key, that is, when the key is pressed, the distance between the deformation part and the sensing part is reduced, and the capacitance value of the sensing capacitor formed by the deformation part and the sensing part increases. When the capacitance value of the sensing capacitor increases, the oscillation frequency of the oscillation circuit decreases.
[0042] S203: When the reduction value of the oscillation frequency is greater than or equal to the set frequency, feedback is given of an instruction corresponding to the key action.
[0043] The inductive capacitor and the reactance or resistance corresponding to the key form an oscillation circuit, detect the oscillation frequency of the oscillation circuit, and calculate the reduction value of the oscillation frequency. When the reduction value of the oscillation frequency is greater than or equal to the set frequency, the instruction corresponding to the key action is fed back, thereby detecting the change of the inductive capacitor corresponding to the key, thereby realizing the conversion of the change of the inductive capacitor into an instruction.
[0044] Optionally, when the reduction value of the oscillation frequency is less than the set frequency, the oscillation frequency of the oscillation circuit is continuously detected and the reduction value of the oscillation frequency is calculated until the reduction of the oscillation frequency is greater than or equal to the set frequency, and an instruction corresponding to the key action is fed back.
[0045] After the instruction corresponding to the key action is fed back, the oscillation frequency of the oscillation circuit is continued to be measured.
[0046] In the embodiments of the present disclosure, the method for detecting capacitive sensing buttons can be executed by a detection module composed of hardware, software or a combination of the two. The detection module can exist independently of the central controller of terminals such as smart switches and mobile phones, or it can be integrated in the central controller of terminals such as smart switches and mobile phones and exist as a part of the central controller.
[0047] Figure 3 FIG. 1 is a schematic diagram of a method for calculating a reduced value of an oscillation frequency provided by an embodiment of the present disclosure. Figure 3 As shown, the calculation to obtain the reduced value of the oscillation frequency includes:
[0048] S301 : Obtain a first average frequency of an oscillation frequency of an oscillation circuit within a first set time period.
[0049] S302: Obtain a second average frequency of the oscillation frequency of the oscillation circuit within a second set time period.
[0050] S303: Calculate the difference between the first average frequency and the second average frequency to obtain a reduced value of the oscillation frequency.
[0051] Compared with using a single oscillation frequency to calculate the reduction value of the oscillation frequency, using the average frequency value of the oscillation frequency to calculate the reduction value of the oscillation frequency can reduce the adverse effects of a single frequency detection error, thereby more accurately calculating the reduction value of the oscillation frequency.
[0052] The oscillation frequency of the oscillation circuit is obtained by counting the number of oscillations in a detection cycle. The first set time period includes multiple detection cycles, for example, the first set time period includes 2, 3, 4, 5 or more detection cycles, and the number of oscillations in multiple detection cycles is counted in the first set time period, thereby obtaining multiple oscillation frequencies.
[0053] Combination Figure 4 As shown, on the basis that the first set time period includes a plurality of detection cycles, obtaining a first average frequency of the oscillation frequency of the oscillation circuit within the first set time period includes:
[0054] S401 , counting the number of oscillations of the oscillation circuit in each detection cycle.
[0055] S402: Obtain the oscillation frequency of the oscillation circuit in multiple detection cycles.
[0056] For example, the oscillation frequency is obtained by calculating the quotient of the number of oscillations divided by the detection period.
[0057] S403 , calculating an average value of the oscillation frequency of the oscillation circuit in multiple detection cycles to obtain a first average frequency.
[0058] The second set time period includes multiple detection cycles, for example, the second set time period includes 2, 3, 4, 5 or more detection cycles, and the oscillation times of the multiple detection cycles are counted in the second set time period to obtain multiple oscillation frequencies.
[0059] Combination Figure 5 As shown, on the basis that the second set time period includes a plurality of detection cycles, obtaining a second average frequency of the oscillation frequency of the oscillation circuit in the second set time period includes:
[0060] S501 , counting the number of oscillations of the oscillation circuit in each detection cycle.
[0061] S502: Obtain the oscillation frequency of the oscillation circuit in multiple detection cycles.
[0062] For example, the oscillation frequency is obtained by calculating the quotient of the number of oscillations divided by the detection period.
[0063] S503: Calculate an average value of the oscillation frequency of the oscillation circuit in multiple detection cycles to obtain a second average frequency.
[0064] Optionally, the first set time period and the second set time period include one or more common detection cycles. When obtaining the first average frequency of the oscillation frequency of the oscillation circuit in the first set time period, the number of oscillations of the oscillation circuit in one or more specific detection cycles is counted; at the same time, when obtaining the second average frequency of the oscillation frequency in the second set time period, the number of oscillations of the oscillation circuit in the one or more specific detection cycles is also counted. Then, the specific detection cycle is the common detection cycle.
[0065] Increasing the number of detection cycles within the first set time period increases the number of oscillation frequencies obtained within the first set time period, which can further reduce the adverse effect of the detection error of a single oscillation frequency on the first average frequency; increasing the number of detection cycles within the second set time period increases the number of oscillation frequencies obtained within the second set time period, which can further reduce the adverse effect of the detection error of a single oscillation frequency on the second average frequency.
[0066] When the number of detection cycles included in the first set time period increases, and the number of detection cycles included in the second set time period increases, the time used to obtain the reduced value of the oscillation frequency will increase. However, in actual applications, the time for a user to press a button is usually short, which is inconsistent with the first set time period including more detection cycles and the second set time period including more detection cycles.
[0067] In the above technical solution, the first set time period and the second set time period include one or more common detection cycles. When the number of detection cycles included in the first set time period remains unchanged and the number of detection cycles included in the second set time period remains unchanged, the time taken to obtain the reduced value of the oscillation frequency is shortened. Therefore, when the time taken to obtain the reduced value of the oscillation frequency remains unchanged, the first set time period may include more detection cycles and the second set time period may also include more detection cycles, thereby more accurately calculating the reduced value of the oscillation frequency.
[0068] In some application scenarios, multiple detection cycles in the first set time period are sorted in chronological order, and multiple detection cycles in the second set time period are sorted in chronological order. The last detection cycle in the first set time period is used as the first detection cycle in the second set time period.
[0069] In some application scenarios, multiple detection cycles in the first set time period are sorted in chronological order, and multiple detection cycles in the second set time period are sorted in chronological order. The last two detection cycles in the first set time period are used as the first two detection cycles in the second set time period.
[0070] In some application scenarios, the first set time period includes: T n , T n+1 ,…,T n+m ;
[0071] The second set time period includes: T n+1 , T n+2 ,…,T n+m+1 ;
[0072] Among them, T n is the detection period, T n and T n+1 are two adjacent detection cycles, n is a natural number, and m is a natural number. The first set time period includes m detection cycles, and the second set time period includes m detection cycles.
[0073] The first set time period and the second set time period are set in the above manner, and the first set time period and the second set time period include the largest number of common detection cycles. When the number of detection cycles included in the first set time period remains unchanged, and the number of detection cycles included in the second set time period remains unchanged, the above technical solution can obtain the reduced value of the oscillation frequency in the shortest time.
[0074] In some practical applications, the first set time period includes two detection cycles, and the second set time period includes two detection cycles:
[0075] Take t0~t1 as the detection period T0, and obtain the oscillation frequency f0 of the oscillation circuit;
[0076] Take t1 to t2 as the detection period T1, and obtain the oscillation frequency f1 of the oscillation circuit;
[0077] Calculate the average of f0 and f1
[0078] Take t2 to t3 as the detection period T2, and obtain the oscillation frequency f2 of the oscillation circuit;
[0079] Calculate the average of f1 and f2
[0080] calculate judge Is it greater than or equal to the set frequency Δf? If so, feedback the command corresponding to the key action; otherwise:
[0081] Take t3 to t4 as the detection period T3, and obtain the oscillation frequency f3 of the oscillation circuit;
[0082] Calculate the average of f2 and f3
[0083] calculate judge Is it greater than or equal to the set frequency Δf? If so, feedback the instruction corresponding to the key action; otherwise, continue to obtain the oscillation frequency of the next detection cycle, and calculate the reduction value of the oscillation frequency until the reduction value of the oscillation frequency is greater than or equal to the set frequency Δf, and feedback the instruction corresponding to the key action.
[0084] In some practical applications, the first set time period includes three detection cycles, and the second set time period includes three detection cycles:
[0085] Take t0~t1 as the detection period T0, and obtain the oscillation frequency f0 of the oscillation circuit;
[0086] Take t1 to t2 as the detection period T1, and obtain the oscillation frequency f1 of the oscillation circuit;
[0087] Take t2 to t3 as the detection period T2, and obtain the oscillation frequency f2 of the oscillation circuit;
[0088] Calculate the average of f0, f1, and f2
[0089] Take t3 to t4 as the detection period T3, and obtain the oscillation frequency f3 of the oscillation circuit;
[0090] Calculate the average of f1, f2, and f3
[0091] calculate judge Is it greater than or equal to the set frequency Δf? If so, feedback the command corresponding to the key action; otherwise:
[0092] Take t4 to t5 as the detection period T4, and obtain the oscillation frequency f4 of the oscillation circuit;
[0093] Calculate the average of f2, f3, and f4
[0094] calculate judge Is it greater than or equal to the set frequency Δf? If so, feedback the instruction corresponding to the key action; otherwise, continue to obtain the oscillation frequency of the next detection cycle, and calculate the reduction value of the oscillation frequency until the reduction value of the oscillation frequency is greater than or equal to the set frequency Δf, and feedback the instruction corresponding to the key action.
[0095] Optionally, the feedback of the instruction corresponding to the key action includes the feedback of the power-off instruction. The detection module may feedback the power-off instruction to the controller, and then the controller controls the corresponding actuator, such as a relay, to perform the power-off operation; or the detection module directly feedbacks the power-off instruction to the corresponding actuator, such as a relay, and the actuator performs the power-off operation.
[0096] Optionally, the feedback of the instruction corresponding to the key action includes the feedback of the power-on instruction. The detection module may feedback the power-on instruction to the controller, and then the controller controls the corresponding actuator, such as a relay, to perform the power-on operation; or the detection module directly feedbacks the power-on instruction to the corresponding actuator, such as a relay, and the actuator performs the power-on operation.
[0097] Optionally, the feedback of the instruction corresponding to the key includes feedback that the key action is effective through a reminder device. For example, feedback that the key action is effective is provided through a vibration device; or, feedback that the key action is effective is provided through a sound device; or, feedback that the key action is effective is provided through a light-emitting device; or, feedback that the key action is effective is provided through a vibration device and a sound device; or, feedback that the key action is effective is provided through a vibration device and a light-emitting device; or, feedback that the key action is effective is provided through a sound device and a light-emitting device; or, feedback that the key action is effective is provided through a vibration device, a sound device, and a light-emitting device. When the user presses the key, if the key action is effective, the user can obtain feedback in time, thereby having a better user experience.
[0098] In some embodiments, the terminal includes a processor and a memory storing program instructions, and the processor is configured to execute the method for detecting capacitive sensing buttons provided in the above embodiments when executing the program instructions.
[0099] Figure 6 is a schematic diagram of a terminal provided by an embodiment of the present disclosure. Figure 6 As shown, the terminal includes:
[0100] The processor 61 and the memory 62 may also include a communication interface 63 and a bus 64. The processor 61, the communication interface 63, and the memory 62 may communicate with each other through the bus 64. The communication interface 63 may be used for information transmission. The processor 61 may call the logic instructions in the memory 62 to execute the method for detecting a capacitive induction key provided in the foregoing embodiment.
[0101] In addition, the logic instructions in the memory 62 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.
[0102] The memory 62 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the methods in the embodiments of the present disclosure. The processor 61 executes functional applications and data processing by running the software programs, instructions, and modules stored in the memory 62, that is, implementing the methods in the above method embodiments.
[0103] The memory 62 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 62 may include a high-speed random access memory and may also include a non-volatile memory.
[0104] The terminal in the embodiment of the present disclosure may exist independently and be used to control other electrical appliances, for example, the terminal is a switch panel for controlling lamps; or, the terminal in the embodiment of the present disclosure may be integrated into other electrical appliances, for example, the terminal in the embodiment of the present disclosure serves as a control panel for an air conditioner.
[0105] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the method for detecting capacitive sensing buttons provided in the aforementioned embodiment.
[0106] An embodiment of the present disclosure provides a computer program product, which includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the method for detecting capacitive sensing buttons provided in the above embodiments.
[0107] The computer-readable storage medium mentioned above may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
[0108] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes, or a transient storage medium.
[0109] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent possible changes only. Unless explicitly required, individual components and functions are optional, and the order of operations may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms as well. In addition, when used in this application, the term "comprise" and its variants "comprises" and / or including (comprising) refer to the existence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the existence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups of these. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same or similar parts between the embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0110] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. Technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. Technicians can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0111] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units can be only a logical function division, and there can be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit.
[0112] 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 the embodiment 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 code, and a part of a module, program segment or code includes one or more executable instructions for realizing the specified logical function. In some implementations as replacements, the functions 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 the opposite order, which can depend on the functions involved. 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 a specified function or action, or can be implemented with a combination of special-purpose hardware and computer instructions.
Claims
1. A method for detecting a capacitive inductive key, characterized in that: Metal touch buttons include: The metal deformation part has a flat plate structure; The sensing part is in a flat plate structure and is arranged opposite to the metal deformation part; A supporting part, supporting the metal deformation part, so that there is a specific distance between the metal deformation part and the sensing part, and the metal deformation part and the sensing part form an inductive capacitor; a detection module configured to detect the oscillation frequency of the oscillation circuit formed by the inductive capacitor, calculate and obtain a reduction value of the oscillation frequency, and feedback an instruction corresponding to the key action when the reduction value of the oscillation frequency is greater than or equal to a set frequency; Methods for detecting capacitive sensing buttons include: Detecting the oscillation frequency of an oscillation circuit; wherein the oscillation circuit includes an inductive capacitor, and when the key is pressed, the capacitance value of the inductive capacitor changes; Calculate and obtain the reduced value of the oscillation frequency; When the reduction value of the oscillation frequency is greater than or equal to the set frequency, feeding back an instruction corresponding to the key action; The calculation to obtain the reduced value of the oscillation frequency includes: Obtaining a first average frequency of the oscillation frequency of the oscillation circuit within a first set time period; Obtaining a second average frequency of the oscillation frequency of the oscillation circuit within a second set time period; Calculating a difference between the first average frequency and the second average frequency to obtain a reduction value of the oscillation frequency; The first set time period and the second set time period include one or more common detection cycles.
2. The method according to claim 1, characterized in that The first set time period includes a plurality of detection cycles, and obtaining a first average frequency of the oscillation frequency of the oscillation circuit within the first set time period includes: Counting the number of oscillations of the oscillation circuit in each detection cycle to obtain the oscillation frequencies of the oscillation circuit in multiple detection cycles, and calculating the average of the oscillation frequencies of the oscillation circuit in multiple detection cycles to obtain the first average frequency; The second set time period includes a plurality of detection cycles, and obtaining a second average frequency of the oscillation frequency of the oscillation circuit within the second set time period includes: The number of oscillations of the oscillation circuit in each detection cycle is counted to obtain the oscillation frequencies of the oscillation circuit in multiple detection cycles, and the average value of the oscillation frequencies of the oscillation circuit in multiple detection cycles is calculated to obtain the second average frequency.
3. The method according to claim 1, characterized in that The first set time period includes: T n , T n+1 ,…,T n+m ; The second set time period includes: T n+1 , T n+2 ,…,T n+m+1 ; Among them, T n is the detection period, T n and T n+1 are two adjacent detection cycles, n is a natural number, and m is a natural number.
4. The method according to any one of claims 1 to 3, characterized in that: Feedback corresponding to the key action, including one or more of the following: Feedback power-off command; Feedback power-on command; Feedback that the key action is effective is provided through the reminder device.
5. The method according to claim 4, characterized in that Feedback from the reminder device that the key action is effective includes one or more of the following: Feedback key action is effective through vibration device; Feedback that the key action is effective is provided through the sound device; The key action is effective through the light-emitting device.
6. The method according to any one of claims 1 to 3, characterized in that: Also includes: When the decrease value of the oscillation frequency is smaller than the set frequency, the oscillation frequency of the oscillation circuit is continuously detected and the decrease value of the oscillation frequency is calculated.
7. A terminal comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to perform the method for detecting a capacitive sensing button according to any one of claims 1 to 6 when executing the program instructions.
Citation Information
Patent Citations
Terminal device and control method of terminal device
CN110174958A
Touch key triggering detection method and triggering detection device
CN105790747A
Touch sensor
KR1020080041799A