Method, device and all-metal switch for detecting capacitive inductive buttons
By using the average oscillation frequency of the oscillation circuit on the touch switch to identify user operations, the problem of misidentification of capacitive induction buttons is solved, and the recognition accuracy is improved.
Patent Information
- Application Number
- CN202010959595.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-14
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2040-09-14
AI Technical Summary
Capacitive sensing buttons on existing touch switches are prone to misidentification.
By obtaining the average oscillation frequency of the oscillation circuit within different set time periods, it is preliminary and further determined whether the user is operating the key, thereby improving the recognition accuracy of the key.
Improve the accuracy of capacitive inductive key recognition user operations and reduce the occurrence of misidentification.
Smart Images

Figure CN112260674B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of intelligent switches, for example, to a method, device and all-metal switch for detecting capacitive induction buttons. Background Art
[0002] At present, some switch panels use touch technology. 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 panel. In order to improve the mechanical strength of the switch panel, a metal panel is used in the prior art. The metal panel is used as the outer shell of the switch panel, and holes are opened on the metal panel to facilitate the sensing electrode to sense the change of capacitance. However, this leads to poor sealing effect of the switch panel, and poor waterproof and dustproof effect.
[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] The Chinese patent with the authorization publication number CN205407775U discloses a touch key device, which includes: a key panel and at least one sensing element, wherein the key panel includes at least one metal touch key; each sensing element in the at least one sensing element is set corresponding to a metal touch key, a flexible insulating component is set between the at least one sensing element and the key panel, and each sensing element is used to detect the capacitance change between each sensing element and the corresponding metal touch key. The touch key device can realize multiple touch keys on a whole metal plate.
[0005] 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:
[0006] Capacitive sensing buttons on existing touch switches are prone to misidentification. Summary of the invention
[0007] 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.
[0008] The embodiments of the present disclosure provide a method, a device and a full metal switch for detecting capacitive sensing buttons, so as to solve the technical problem that capacitive sensing buttons on touch switches are prone to misidentification.
[0009] In some embodiments, a method for detecting a capacitive sensing button includes: obtaining a first average oscillation frequency of an oscillation circuit within a first set time length; when the first average oscillation frequency is less than or equal to the set frequency, obtaining a second average oscillation frequency of the oscillation circuit within a second set time length; when the second average oscillation frequency is less than or equal to the set frequency, feeding back an instruction corresponding to a button action; wherein the oscillation circuit includes an inductive capacitor, and when the button action occurs, the capacitance value of the inductive capacitor changes, and the first set time length is less than the second set time length.
[0010] Optionally, obtaining a second average oscillation frequency of the oscillation circuit within a second set time length includes: determining the start time and the end time of the second set time length; counting the number of oscillations of the oscillation circuit in multiple detection cycles in the second set time length to obtain the oscillation frequency of the oscillation circuit in multiple detection cycles; calculating the average value of the oscillation frequency of the oscillation circuit in multiple detection cycles to obtain the second average oscillation frequency; wherein the start time of the second set time length is before the end time of the first set time length, and the second set time length includes multiple detection cycles.
[0011] Optionally, determining the start time of the second set time length includes: taking the start time of the first set time length as the start time of the second set time length.
[0012] Optionally, when the second average oscillation frequency is greater than the set frequency, a first average oscillation rate of the oscillation circuit within a first set time period is obtained.
[0013] Optionally, when the second average oscillation frequency is greater than the set frequency, a first average oscillation rate of the oscillation circuit within the first set time length is obtained, including: determining the start time and the end time of the first set time length; counting the number of oscillations of the oscillation circuit in each detection cycle in the first set time length, and obtaining the oscillation frequency of the oscillation circuit in multiple detection cycles; calculating the average value of the oscillation frequency of the oscillation circuit in multiple detection cycles, and obtaining the first average oscillation frequency; wherein the start time of the first set time is before the end time of the second set time length, and the first set time length includes multiple detection cycles.
[0014] Optionally, determining the start time and end time of the first set time includes: taking the end time of the second set time as the end time of the first set time; and determining the start time of the first set time according to the end time of the first set time.
[0015] Optionally, the feedback of the instruction corresponding to the key action includes one or more of the following: executing a power-off operation; executing a power-on operation; and feeding back through a reminder device that the key action is effective.
[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] In some embodiments, an apparatus for detecting capacitive sensing buttons includes a processor and a memory storing program instructions, wherein the processor is configured to execute the method for detecting capacitive sensing buttons provided in the above embodiments when executing the program instructions.
[0018] In some embodiments, the all-metal switch includes the device for detecting capacitive sensing buttons provided in the aforementioned embodiments.
[0019] The method, device and all-metal switch for detecting capacitive inductive buttons provided in the embodiments of the present disclosure can achieve the following technical effects:
[0020] If the first set time length is less than the second set time length, the influence of one oscillation frequency on the first average oscillation frequency is less than the influence of one oscillation frequency on the second average oscillation frequency, that is, the sensitivity of the first average oscillation frequency to a single oscillation frequency is higher than the sensitivity of the second average oscillation frequency to a single oscillation frequency. When the first average oscillation frequency is less than or equal to the set frequency, it is first preliminarily determined that the user is operating the button. When the second average oscillation frequency is less than or equal to the set frequency, it is further determined that the user is operating the button, which improves the accuracy of capacitive sensing buttons in recognizing user operations and reduces the phenomenon of misrecognition.
[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 capacitive sensing 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 obtaining a second average oscillation frequency provided by an embodiment of the present disclosure;
[0026] Figure 4 is a schematic diagram of a method for detecting a capacitive induction key provided by an embodiment of the present disclosure;
[0027] Figure 5 is a schematic diagram of a method for obtaining a first average oscillation frequency provided by an embodiment of the present disclosure;
[0028] Figure 6 is a schematic diagram of a device for detecting capacitive sensing buttons 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 1is a structural diagram of a capacitive induction key provided by an embodiment of the present disclosure. Figure 1 As shown, the capacitive inductive key comprises a metal deformation part 11, a support part 12 and a sensing part 13. Among them, 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 capacitive sensing button includes a base plate 14, a support portion 12 is disposed on the base plate 14, the support portion 12 and the base plate 14 form a recessed structure, the sensing portion 13 is disposed at the bottom end of the recessed structure, and the metal deformation portion 11 covers the notch of the recessed structure.
[0036] The capacitive inductive key further includes a detection module for executing a method for detecting the capacitive inductive key. For example, a first average oscillation frequency of the oscillation circuit within a first set time length is obtained, and when the first average oscillation frequency is less than or equal to the set frequency, a second average oscillation frequency of the oscillation circuit within a second set time length is obtained, and when the second average oscillation frequency is less than or equal to the set frequency, an instruction corresponding to the key action is fed back, wherein the first set time length is less than the second set time length.
[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 , obtaining a first average oscillation frequency of an oscillation circuit within a first set time period.
[0039] The oscillation circuit includes an inductive capacitor. When a key is pressed, the capacitance of the inductive capacitor changes, and the oscillation frequency of the oscillation circuit 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] The first set time length includes multiple detection cycles, for example, the first set time length includes 2, 3, 4, 5 or more detection cycles, and in each detection cycle, a number of oscillations of the oscillation circuit can be counted. Obtaining a first average oscillation frequency of the oscillation circuit within the first set time length includes: counting the number of oscillations of the oscillation circuit in multiple detection cycles in the first set time length, obtaining the oscillation frequencies of the oscillation circuit in multiple detection cycles, calculating the average value of the oscillation frequencies of the oscillation circuit in multiple detection cycles, and obtaining the first average oscillation frequency of the oscillation circuit within the first set time length.
[0041] S202: When the first average oscillation frequency is less than or equal to the set frequency, obtain a second average oscillation frequency of the oscillation circuit within a second set time period.
[0042] The first set time length is shorter than the second set time length.
[0043] When the first average oscillation frequency is less than or equal to the set frequency, it is preliminarily determined that the user is operating the key.
[0044] The second set time length includes multiple detection cycles, for example, the second set time length includes 2, 3, 4, 5 or more detection cycles, and in each detection cycle, a number of oscillations of the oscillation circuit can be counted. Obtaining a second average oscillation frequency of the oscillation circuit within the second set time length includes: counting the number of oscillations of the oscillation circuit in multiple detection cycles in the first set time length, obtaining the oscillation frequencies of the oscillation circuit in multiple detection cycles, calculating the average of the oscillation frequencies of the oscillation circuit in multiple detection cycles, and obtaining the second average oscillation frequency of the oscillation circuit within the second set time length.
[0045] When the first average oscillation frequency is greater than the set frequency, the first average oscillation frequency of the oscillation circuit within the first set time period is continuously obtained to monitor in real time whether the capacitive induction button is operated by the user.
[0046] S203: When the second average oscillation frequency is less than or equal to the set frequency, feedback an instruction corresponding to the key action.
[0047] If the first set time length is less than the second set time length, the influence of one oscillation frequency on the first average oscillation frequency is less than the influence of one oscillation frequency on the second average oscillation frequency, that is, the sensitivity of the first average oscillation frequency to a single oscillation frequency is higher than the sensitivity of the second average oscillation frequency to a single oscillation frequency. When the first average oscillation frequency is less than or equal to the set frequency, it is first preliminarily determined that the user is operating the button. When the second average oscillation frequency is less than or equal to the set frequency, it is further determined that the user is operating the button, which improves the accuracy of capacitive sensing buttons in recognizing user operations and reduces the phenomenon of misrecognition.
[0048] After the instruction corresponding to the key action is fed back, the oscillation frequency of the oscillation circuit is continued to be measured.
[0049] 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.
[0050] Optionally, after obtaining the first average oscillation frequency of the oscillation circuit within a first set time length, when the first average oscillation frequency is less than or equal to the set frequency, the second set time length is calculated again after the end time of the first set time length, thereby obtaining the second average oscillation frequency of the oscillation circuit within the second set time length.
[0051] like Figure 3 As shown, the embodiment of the present disclosure also discloses a method for obtaining a second average oscillation frequency. Figure 3 As shown, obtaining a second average oscillation frequency of the oscillation circuit within a second set time period includes:
[0052] S301: Determine the start time and end time of the second set duration.
[0053] The start time of the second set time length is before the end time of the first set time length, and the start time of the second set time length is determined accordingly, and then the second set time length is extended based on the start time of the second set time length to obtain the end time of the second set time length. The start time and end time of the second set time length are determined, so as to obtain the second average oscillation frequency of the oscillation circuit within the second set time length.
[0054] Optionally, the start time of the second set time length is before the end time of the first set time length, and the end time of the second set time length is after the end time of the first set time length.
[0055] Compared with calculating the second set time after the end time of the first set time, determining the start time and end time of the second set time by the above method can shorten the time for obtaining the second average oscillation frequency, shorten the time for judging whether the key action is caused by user operation, shorten the response time of capacitive sensing keys, and improve the user experience.
[0056] Optionally, the start time of the first set time length is used as the start time of the second set time length, and the second set time length is extended based on the start time of the second set time length to determine the end time of the second set time length. The start time and end time of the second set time length are determined to facilitate obtaining the second average oscillation frequency of the oscillation circuit within the second set time length.
[0057] Among them, the first set time length is less than the second set time length, and the start time of the first set time length is used as the start time of the second set time length. The second average oscillation frequency can reflect the change of the oscillation frequency of the oscillation circuit within the first set time length on the one hand, and can also reflect the change of the oscillation frequency of the oscillation circuit after the first set time length on the other hand. In the case where the key action is not caused by user operation, and the oscillation frequency of the oscillation circuit returns to its original state after the first set time length, the second average oscillation frequency obtained within the second set time length can still reflect this situation. Using the start time of the first set time length as the start time of the second set time length, the second average oscillation frequency can be accurately determined whether the key action is caused by user operation, and the acquisition time of the second average oscillation frequency is further shortened, the judgment time of whether the key action is caused by user operation is shortened, and the response time of the capacitive sensing key is shortened, thereby improving the user experience.
[0058] S302: Count the oscillation times of the oscillation circuit in multiple detection cycles in the second set time length to obtain the oscillation frequencies of the oscillation circuit in multiple detection cycles.
[0059] The first set time length includes a plurality of detection cycles, and in each detection cycle, the number of oscillations of the oscillation circuit can be counted.
[0060] S303 , calculating an average value of the oscillation frequency of the oscillation circuit in multiple detection cycles to obtain a second average oscillation frequency.
[0061] Through the above steps, the start time and the end time of the second set time length can be obtained, thereby obtaining the first average oscillation frequency of the oscillation circuit within the second set time length.
[0062] Figure 4 is a schematic diagram of a method for detecting a capacitive inductive key provided by an embodiment of the present disclosure. Figure 4 As shown, the method for detecting a capacitive sensing button includes:
[0063] S401 , obtaining a first average oscillation frequency of an oscillation circuit within a first set time period.
[0064] S402: When the first average oscillation frequency is less than or equal to the set frequency, obtain a second average oscillation frequency of the oscillation circuit within a second set time period.
[0065] S403 . When the second average oscillation frequency is greater than the set frequency, obtain a first average oscillation rate of the oscillation circuit within a first set time period.
[0066] That is, after initially determining that the user has operated a key, if a second confirmation is not possible, then continue to execute S401 to obtain the first average oscillation frequency of the oscillation circuit within the first set time length, until the first average oscillation frequency is less than or equal to the set frequency, and the second average oscillation frequency is less than or equal to the set frequency, and then feedback is given of instructions corresponding to the key action. When the key is pressed, after both confirmations are passed, it is determined that the key action is caused by the user, thereby reducing the phenomenon of misrecognition.
[0067] Optionally, when the second average oscillation frequency is greater than the set frequency, the first set time length is calculated after the end time of the second set time length, and the first average oscillation frequency of the oscillation circuit within the first set time length is obtained.
[0068] Figure 5 is a schematic diagram of a method for obtaining a first average oscillation frequency provided by an embodiment of the present disclosure. Figure 5 As shown, when the second average oscillation frequency is greater than the set frequency, obtaining a first average oscillation rate of the oscillation circuit within a first set time period includes:
[0069] S501: Determine the start time and end time of a first set duration.
[0070] The start time of the first set time is before the end time of the second set time, and the start time of the first set time is determined based on this, and then the first set time is extended based on the start time of the first set time to obtain the end time of the first set time. The start time and end time of the first set time are determined, so as to obtain the first average oscillation frequency of the oscillation circuit within the first set time.
[0071] Compared with calculating the first set time after the end time of the second set time, determining the start time and end time of the first time by the above method can shorten the time for obtaining the first average oscillation frequency, shorten the time for initially judging whether the key action is a user operation, shorten the response time of capacitive sensing keys, and improve the user experience.
[0072] Optionally, the end time of the second set time length is used as the end time of the first set time length, and the start time of the first set time length is determined according to the end time of the first set time length. For example, the first set time length is extended forward based on the end time of the first set time length to obtain the start time of the first time length. The start time and end time of the first set time length are determined, so as to obtain the first average oscillation frequency of the oscillation circuit within the first set time length.
[0073] For some reasons, the oscillation frequency of the oscillation circuit jumps and then returns to its original state. The jump oscillation frequency makes the first average frequency less than or equal to the set frequency, but the jump oscillation frequency is still the second average frequency greater than the set frequency. In the case where the start time of the first set duration is used as the start time of the second set duration, the jump phenomenon of the oscillation frequency occurs within the first set duration. Since the sensitivity of the second average oscillation frequency to a single oscillation frequency is weaker than the sensitivity of the first average oscillation frequency to a single oscillation frequency, in the time period between the end time of the first set duration and the end time of the second set duration, the second average oscillation frequency cannot reflect whether a user operates a button in the time period. Compared with calculating the first set duration after the end time of the second set duration, using the end time of the second set duration as the end time of the first set duration, the first oscillation frequency can more comprehensively and preliminarily determine whether the user operates a button.
[0074] S502: Count the number of oscillations of the oscillation circuit in each detection cycle in the first set time length to obtain the oscillation frequencies of the oscillation circuit in multiple detection cycles.
[0075] The first set time length includes a plurality of detection cycles, and in each detection cycle, the number of oscillations of the oscillation circuit can be counted.
[0076] S503 : Calculate an average value of the oscillation frequency of the oscillation circuit in multiple detection cycles to obtain a first average oscillation frequency.
[0077] Through the above steps, the start time and the end time of the first set time length can be obtained, thereby obtaining the first average oscillation frequency of the oscillation circuit within the first set time length.
[0078] 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.
[0079] 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.
[0080] 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.
[0081] Figure 6 is a schematic diagram of a device for detecting a capacitive inductive key provided by an embodiment of the present disclosure. Figure 6 As shown, the device for detecting a capacitive sensing button includes:
[0082] 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.
[0083] 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.
[0084] 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.
[0085] 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.
[0086] An embodiment of the present disclosure provides an all-metal switch, comprising the device for detecting capacitive induction buttons provided in the above-mentioned embodiment.
[0087] The surface of the touch panel of the all-metal switch is an integrated panel made of metal material. One or more buttons are arranged on the surface of the touch panel. The metal deformation part corresponding to each button is on the same metal surface. The metal deformation part is polished. Compared with the non-button part of the touch panel, the metal deformation part is more easily deformed under pressure.
[0088] The touch panel of the metal switch adopts an integrated panel made of metal material. There is no gap around the buttons. The metal switch has a good sealing effect and is more suitable for use in harsh environments with a lot of oil, dirt and dust.
[0089] 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.
[0090] 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.
[0091] The computer-readable storage medium mentioned above may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
[0092] 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.
[0093] 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.
[0094] 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.
[0095] 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.
[0096] 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: include: Obtaining a first average oscillation frequency of the oscillation circuit within a first set time period; When the first average oscillation frequency is less than or equal to the set frequency, determining the start time and the end time of the second set duration; Counting the number of oscillations of the oscillation circuit in a plurality of detection cycles in the second set time length, and obtaining the oscillation frequency of the oscillation circuit in a plurality of detection cycles; Calculate the average value of the oscillation frequency of the oscillation circuit of multiple detection cycles to obtain a second average oscillation frequency; wherein the start time of the second set time length is before the end time of the first set time length, and the second set time length includes multiple detection cycles; When the second average oscillation frequency is less than or equal to the set frequency, feeding back an instruction corresponding to the key action; When the second average oscillation frequency is greater than the set frequency, determining a start time and an end time of a first set duration; Counting the number of oscillations of the oscillation circuit in each detection cycle in the first set time length, and obtaining the oscillation frequencies of the oscillation circuit in multiple detection cycles; Calculate the average value of the oscillation frequency of the oscillation circuit of multiple detection cycles to obtain a first average oscillation frequency; wherein the start time of the first set time length is before the end time of the second set time length, and the first set time length includes multiple detection cycles; Wherein, the oscillation circuit includes an inductive capacitor, and when the key is pressed, the capacitance value of the inductive capacitor changes, and the first set time length is less than the second set time length.
2. The method according to claim 1, characterized in that Determining the start time of the second set duration includes: The start time of the first set duration is used as the start time of the second set duration.
3. The method according to claim 1, characterized in that Determining the start time and the end time of the first set duration includes: Taking the end time of the second set duration as the end time of the first set duration; The start time of the first set time period is determined according to the end time of the first set time period.
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: Perform power-off operation; Perform power-on operation; 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. A device for detecting a capacitive sensing key, 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 5 when executing the program instructions.
7. An all-metal switch, characterized in that: It comprises the device for detecting capacitive sensing buttons as claimed in claim 6.
Citation Information
Patent Citations
Terminal device and control method of terminal device
CN110174958A
Touch button device
CN205407775U
Key trigger method
CN103812493A
Mobile terminal for replacing power button by capacitive sensor and relation method of mobile terminal
CN105468217A
Apparatus and method for sensing touch without noise
KR1020100099612A