CN107621990B - Control method and device of terminal key and terminal - Google Patents

Control method and device of terminal key and terminal Download PDF

Info

Publication number
CN107621990B
CN107621990B CN201710876601.2A CN201710876601A CN107621990B CN 107621990 B CN107621990 B CN 107621990B CN 201710876601 A CN201710876601 A CN 201710876601A CN 107621990 B CN107621990 B CN 107621990B
Authority
CN
China
Prior art keywords
key
signal threshold
signal
threshold value
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710876601.2A
Other languages
Chinese (zh)
Other versions
CN107621990A (en
Inventor
唐矩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710876601.2A priority Critical patent/CN107621990B/en
Publication of CN107621990A publication Critical patent/CN107621990A/en
Application granted granted Critical
Publication of CN107621990B publication Critical patent/CN107621990B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)

Abstract

The disclosure relates to a terminal key control method and device and a terminal. The control method of the terminal key comprises the following steps: when the antenna function is detected to be started, setting a key signal threshold value from a current first signal threshold value to a second signal threshold value, wherein the second signal threshold value is higher than the first signal threshold value; detecting a key signal; and executing corresponding operation on the key based on the relation between the key signal and the second signal threshold. According to the technical scheme, the key signal threshold value of the key can be increased when the antenna function is started, so that the key false triggering caused by the antenna interference signal is avoided, the key sensitivity is reduced, unnecessary power consumption caused by the fact that the key is mistakenly triggered in the related technology is solved, and the user experience is optimized.

Description

Control method and device of terminal key and terminal
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for controlling a terminal key, and a terminal.
Background
Along with the development of intelligent terminal, the terminal of large screen, narrow frame receives more and more favor owing to can bring better visual experience. However, the narrower the frame, the shorter the distance between the antenna and the terminal key, so that the antenna may cause interference to the key signal, and the shorter the distance, the more serious the interference.
In the related art, in some occasions with large environmental noise, instantaneous noise may exceed a key threshold due to antenna interference and noise interference, so that false triggering is caused, a function of a key is triggered, unnecessary power consumption is generated, and user experience is poor.
Disclosure of Invention
In order to overcome the problems in the related art, embodiments of the present disclosure provide a method and an apparatus for controlling a terminal key, and a terminal, so as to avoid false triggering caused by an antenna interference signal exceeding a key signal threshold.
According to a first aspect of the embodiments of the present disclosure, a method for controlling a terminal key is provided, which includes:
when the antenna function is detected to be started, setting a key signal threshold value from a current first signal threshold value to a second signal threshold value, wherein the second signal threshold value is higher than the first signal threshold value;
detecting a key signal;
and executing corresponding operation on the key based on the relation between the key signal and the second signal threshold.
In an embodiment, the performing a corresponding operation on the key based on the relationship between the key signal and the second signal threshold includes:
judging whether the key signal is higher than the second signal threshold value;
when the key signal is higher than the second signal threshold value, determining a key corresponding to the key signal;
and executing the function corresponding to the key.
In an embodiment, the performing a corresponding operation on the key based on the relationship between the key signal and the second signal threshold includes:
judging whether the key signal detected in a set time period is higher than the second signal threshold value;
when all the key signals detected in the set time period are higher than the second signal threshold value, determining keys corresponding to the key signals;
and executing the function corresponding to the key.
In an embodiment, the performing a corresponding operation on the key based on the relationship between the key signal and the second signal threshold includes:
judging whether the continuously detected key signals of the set number of frames are higher than the second signal threshold value;
when all the continuously detected key signals of the set number of frames are higher than the second signal threshold value, determining keys corresponding to the key signals;
and executing the function corresponding to the key.
In an embodiment, the setting the key signal threshold from the current first signal threshold to the second signal threshold includes:
reading preset percentages;
calculating the second signal threshold based on the percentage and the first signal threshold;
and setting the key signal threshold value as the calculated second signal threshold value from the current first signal threshold value.
In an embodiment, the setting the key signal threshold from the current first signal threshold to the second signal threshold includes:
determining an application program currently using the antenna;
reading the corresponding relation between the application program and the signal threshold, and determining the signal threshold corresponding to the current application program as a second signal threshold;
and setting the key signal threshold value from the current first signal threshold value to the determined second signal threshold value.
In an embodiment, the setting the key signal threshold from the current first signal threshold to the second signal threshold includes:
determining the type of the current terminal;
reading the corresponding relation between the type of the terminal and a signal threshold, and determining the signal threshold corresponding to the type of the current terminal as a second signal threshold;
and setting the key signal threshold value from the current first signal threshold value to the determined second signal threshold value.
In an embodiment, the method further comprises:
and when the antenna function is detected to be closed, setting the current signal threshold value from the second signal threshold value to the first signal threshold value.
In one embodiment, the key signal includes a noise signal and a touch signal generated by a user's finger touching a key.
According to a second aspect of the embodiments of the present disclosure, there is provided a control device for a terminal key, the device including:
the first setting module is configured to set a key signal threshold from a current first signal threshold to a second signal threshold when the antenna function is detected to be turned on, wherein the second signal threshold is higher than the first signal threshold;
a detection module configured to detect a key signal;
an execution module configured to execute a corresponding operation on a key based on a relationship between the key signal and the second signal threshold.
In one embodiment, the execution module includes:
a first judgment submodule configured to judge whether the key signal is higher than the second signal threshold;
a first determining submodule configured to determine a key corresponding to the key signal when the key signal is higher than the second signal threshold;
and the first execution submodule is configured to execute the function corresponding to the key.
In one embodiment, the execution module includes:
the second judgment submodule is configured to judge whether the detected key signal in a set time period is higher than the second signal threshold;
the second determining submodule is configured to determine a key corresponding to the key signal when all the key signals detected in the set time period are higher than the second signal threshold;
and the second execution submodule is configured to execute the function corresponding to the key.
In one embodiment, the execution module includes:
a third judgment sub-module configured to judge whether the key signal of the set number of frames detected consecutively is higher than the second signal threshold;
a third determining submodule configured to determine a key corresponding to the key signal when all the key signals of the set number of frames detected consecutively are higher than the second signal threshold;
and the third execution submodule is configured to execute the function corresponding to the key.
In one embodiment, the first setup module includes:
a first reading submodule configured to read a preset percentage;
a calculation sub-module configured to calculate the second signal threshold based on the percentage and the first signal threshold;
a first setting submodule configured to set a key signal threshold from a current first signal threshold to the calculated second signal threshold.
In one embodiment, the first setup module includes:
a fourth determination submodule configured to determine an application program currently using the antenna;
the second reading submodule is configured to read the corresponding relation between the application program and the signal threshold, and determine the signal threshold corresponding to the current application program as a second signal threshold;
and the second setting submodule is configured to set the key signal threshold value from the current first signal threshold value to the determined second signal threshold value.
In one embodiment, the first setup module includes:
a fifth determining submodule configured to determine a type of the current terminal;
the third reading submodule is configured to read the corresponding relation between the type of the terminal and the signal threshold value, and determine the signal threshold value corresponding to the type of the current terminal as a second signal threshold value;
and the third setting submodule is configured to set the key signal threshold value from the current first signal threshold value to the determined second signal threshold value.
In one embodiment, the apparatus further comprises:
a second setting module configured to set a current signal threshold from the second signal threshold to the first signal threshold upon detecting that the antenna function is turned off.
In one embodiment, the key signal includes a noise signal and a touch signal generated by a user's finger touching a key.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when the antenna function is detected to be started, setting a key signal threshold value from a current first signal threshold value to a second signal threshold value, wherein the second signal threshold value is higher than the first signal threshold value;
detecting a key signal;
and executing corresponding operation on the key based on the relation between the key signal and the second signal threshold.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
when the antenna function is detected to be started, setting a key signal threshold value from a current first signal threshold value to a second signal threshold value, wherein the second signal threshold value is higher than the first signal threshold value;
detecting a key signal;
and executing corresponding operation on the key based on the relation between the key signal and the second signal threshold.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the terminal in the disclosure can avoid the key false triggering caused by the antenna interference signal by increasing the key signal threshold of the key when the antenna function is started, reduce the key sensitivity, solve the unnecessary power consumption caused by the false triggering of the key in the related art, and optimize the user experience.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1A is a flowchart illustrating a control method of a terminal key according to an exemplary embodiment.
Fig. 1B is a diagram illustrating a scenario of a control method of a terminal key according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating another control method of a terminal key according to an exemplary embodiment.
Fig. 3 is a flowchart illustrating another control method of a terminal key according to an exemplary embodiment.
Fig. 4 is a flowchart illustrating another control method of a terminal key according to an exemplary embodiment.
Fig. 5 is a flowchart illustrating another control method of a terminal key according to an exemplary embodiment.
Fig. 6 is a flowchart illustrating another control method of a terminal key according to an exemplary embodiment.
Fig. 7 is a flowchart illustrating another control method of a terminal key according to an exemplary embodiment.
Fig. 8 is a block diagram illustrating a control apparatus of a terminal key according to an exemplary embodiment.
Fig. 9 is a block diagram illustrating another control apparatus of a terminal key according to an exemplary embodiment.
Fig. 10 is a block diagram illustrating another control apparatus of a terminal key according to an exemplary embodiment.
Fig. 11 is a block diagram illustrating another control apparatus of a terminal key according to an exemplary embodiment.
Fig. 12 is a block diagram illustrating another control apparatus of a terminal key according to an exemplary embodiment.
Fig. 13 is a block diagram illustrating another control apparatus of a terminal key according to an exemplary embodiment.
Fig. 14 is a block diagram illustrating another control apparatus of a terminal key according to an exemplary embodiment.
Fig. 15 is a block diagram illustrating another control apparatus of a terminal key according to an exemplary embodiment.
Fig. 16 is a block diagram illustrating a control device suitable for a terminal key according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1A is a flowchart illustrating a control method of a terminal key according to an exemplary embodiment, and fig. 1B is a scene diagram illustrating a control method of a terminal key according to an exemplary embodiment; the terminal key control method can be applied to a terminal, and the terminal in the disclosure can be any intelligent terminal with an internet access function, for example, a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), and the like can be embodied.
The terminal can access the router through the wireless local area network and access the server on the public network through the router. As shown in fig. 1A, the method for controlling the terminal key includes the following steps 101-103:
in step 101, when it is detected that the antenna function is turned on, the key signal threshold is set from the current first signal threshold to a second signal threshold, where the second signal threshold is higher than the first signal threshold.
In an embodiment, in a scenario where the terminal is in a call, uses a navigation APP (Application), and the like, the terminal turns on an antenna function.
In one embodiment, a key signal threshold is set in the terminal for each key on the terminal, that is, when a signal received at the key is higher than the key signal threshold, a corresponding function is executed. For example, for a terminal of a part of Android systems, three keys are arranged below a screen of the terminal, namely a return key, a main interface key and a menu key, and if a signal detected on the main interface key is higher than a key signal threshold value, the content of a main interface is displayed on the screen; if the signal detected on the return key is higher than the key signal threshold, the content displayed on the screen returns to the upper level; and similarly, if the detected signal on the menu key is higher than the key signal threshold, displaying the content on the screen.
In an embodiment, as can be known from the description in the related art, when the antenna function is turned on, interference may be caused to a signal detected on a key, which may cause the signal detected on the key to exceed a key signal threshold, thereby causing false triggering.
In step 102, a key signal is detected.
In one embodiment, each key of the terminal detects the received signal at set time intervals.
In one embodiment, the key signal may include a touch signal generated by a user's finger touching the key and a noise signal, and the noise signal may include an interference signal caused by the antenna being turned on and may also include an environmental noise signal.
In step 103, corresponding operations are performed on the key based on the relationship between the key signal and the second signal threshold.
In an embodiment, the terminal compares the detected key signal with the key signal threshold set in step 101, and executes the function of the corresponding key according to the magnitude relationship between the key signal and the key signal threshold.
In one embodiment, if the key signal is higher than the second signal threshold, determining to trigger the key and executing the function corresponding to the key; if the key signal is not higher than the second signal threshold, it indicates that the key is not triggered, and no function is required to be executed.
In an exemplary scenario, as shown in fig. 1B, an example of the call opening antenna function is described, and in the scenario shown in fig. 1B, the method includes: the smart phone serving as the terminal is provided with three keys below an upper screen of the smart phone, and the three keys, the return key, the main interface key and the menu key correspond to each other in sequence from left to right.
The smart phone is currently in a call state, an antenna function is started, key threshold values of three keys are all increased by the smart phone, the key signal threshold values corresponding to the three keys are assumed to be first signal threshold values, the same values are also increased in the adjustment, and the three key signal threshold values are all set to be second signal threshold values higher than the first signal threshold values. The smart phone detects the key signals received by the keys, the closer the smart phone is to the antenna, the greater the interference is, and if the antenna is located at the upper middle position and the lower middle position of the smart phone, the maximum key signal is detected on the main interface key under the condition that none of the three keys is touched by the user, whether the key signal on each key is higher than a second signal threshold is detected, and when the key signal on the main interface key is higher than the second signal threshold, the content of the main interface of the smart phone is displayed on the screen.
Please refer to the following embodiments for details of how to control the terminal keys.
Therefore, according to the method provided by the embodiment of the disclosure, the key signal threshold of the key can be increased when the antenna function is started, so that the key false triggering caused by the antenna interference signal is avoided, the key sensitivity is reduced, unnecessary power consumption caused by the fact that the key is mistakenly triggered in the related art is solved, and the user experience is optimized.
The technical solutions provided by the embodiments of the present disclosure are described below with specific embodiments.
Fig. 2 is a flowchart illustrating another method of controlling a terminal key according to an exemplary embodiment; in this embodiment, by using the above method provided by the embodiment of the present disclosure, an example of performing a corresponding operation on a key based on the relationship between the key signal and the second signal threshold is exemplarily described, as shown in fig. 2, including the following steps 201 and 203:
in step 201, it is determined whether the key signal is higher than a second signal threshold.
In one embodiment, the terminal compares the key signal with the second signal threshold.
In step 202, when the key signal is higher than the second signal threshold, the key corresponding to the key signal is determined.
As can be seen from the embodiment shown in fig. 1A and 1B, when the antenna function is turned on, the key signal threshold is set to be the second signal threshold, the second signal threshold is higher than the first signal threshold, and the first signal threshold is the default signal threshold, so that if the key signal is higher than the second signal threshold, the key signal may be considered not to be an interference signal, and it is determined from which key the key signal originates.
In step 203, the function corresponding to the key is executed.
In one embodiment, the key from which the key signal originated is determined and the function of the key can be performed. For example, if the key signal is determined to come from the return key, the previous stage is returned; and if the key signal is determined to come from the menu key, displaying the menu content.
In the embodiment of the present disclosure, through the above step 201 and 203, when the key signal is higher than the second signal threshold, the function of the key corresponding to the key signal is executed, and because the second signal threshold is set higher, the key false triggering caused when the interference signal is higher than the signal threshold can be avoided, and it is ensured that the function corresponding to the key is executed only when the received key signal is not the interference signal.
Fig. 3 is a flowchart illustrating another method of controlling a terminal key according to an exemplary embodiment; in this embodiment, by using the above method provided by the embodiment of the present disclosure, how to execute corresponding operations on the key based on the relationship between the key signal and the second signal threshold is exemplarily described, as shown in fig. 3, the method includes the following steps 301 and 303:
in step 301, it is determined whether the detected key signal is higher than a second signal threshold within a set time period.
In one embodiment, the terminal continuously detects the key signal.
In step 302, when all the detected key signals within the set time period are higher than the second signal threshold, the key corresponding to the key signal is determined.
In one embodiment, if all the key signals continuously detected within the set time period are higher than the second signal threshold, the key signal is considered not to be the interference signal. For example, the time period is set to 30s, the key signal is detected every tens of ms, if all the continuously detected key signals are higher than the second signal threshold, the probability that the key signal is an interference signal is extremely low, and the possibility of the interference signal can be eliminated.
In step 303, the function corresponding to the key is executed.
In one embodiment, after determining that the key signal is not an interference signal, the function of the key from which the key signal originates may be executed.
In the embodiment of the present disclosure, through the above-mentioned step 301 and step 303, when all the detected key signals within the set time period are higher than the second signal threshold, it can be determined that the key signals are not interference signals, so that the function of the corresponding key can be executed, the false triggering caused by the interference signals being higher than the key signal threshold can be effectively avoided, the accuracy of the key operation is improved, and the user experience is optimized.
Fig. 4 is a flowchart illustrating another method of controlling a terminal key according to an exemplary embodiment; in this embodiment, by using the above method provided by the embodiment of the present disclosure, how to execute a corresponding operation on a key based on the relationship between the key signal and the second signal threshold is exemplarily described, as shown in fig. 4, the method includes the following steps 401 and 403:
in step 401, it is determined whether the key signal of the set number of frames detected consecutively is higher than the second signal threshold.
In one embodiment, whether the key signal is an interference signal is determined according to the number of frames of the key signal measured consecutively.
In step 402, when all the key signals of the set number of frames detected consecutively are higher than the second signal threshold, the key corresponding to the key signal is determined.
In one embodiment, the set number is, for example, 50, 80, etc., that is, if all key signals of 50 frames are continuously detected to be higher than the second signal threshold, it may be determined that the key signals are not interference signals.
In step 403, the function corresponding to the key is executed.
In the embodiment of the present disclosure, through the above steps 401 and 403, when the key signals of the continuously detected frames with the set number are all higher than the second signal threshold, it may be determined that the key signal is not an interference signal, so that a function of a corresponding key may be executed, false triggering caused when the interference signal is higher than the key signal threshold is effectively avoided, and user experience is optimized.
Fig. 5 is a flowchart illustrating another method of controlling a terminal key according to an exemplary embodiment; in this embodiment, the method provided by the embodiment of the present disclosure is used to exemplarily explain how to set the key signal threshold from the current first signal threshold to the second signal threshold, as shown in fig. 5, which includes the following steps 501 and 503:
in step 501, the preset percentage is read.
In one embodiment, the terminal has a percentage, e.g. 30%, 50%, pre-stored therein for calculating the second signal threshold.
In step 502, a second signal threshold is calculated based on the percentage and the first signal threshold.
In an embodiment, the second signal threshold is higher than the first signal threshold, and the second signal threshold may be calculated by increasing a corresponding percentage based on the first signal threshold.
In step 503, the key signal threshold is set from the current first signal threshold to the second signal threshold.
In an embodiment, the key signal threshold is set to the second signal threshold calculated in the previous step.
In the embodiment of the present disclosure, through the steps 501-503, the second signal threshold may be calculated based on a preset percentage, which is simple and easy to implement, wherein the percentage may be set based on an empirical value.
Fig. 6 is a flowchart illustrating another method of controlling a terminal key according to an exemplary embodiment; in this embodiment, the method provided by the embodiment of the present disclosure is exemplarily described by taking an example of how to set the key signal threshold from the current first signal threshold to the second signal threshold, as shown in fig. 6, which includes the following steps 601 and 603:
in step 601, the application currently using the antenna is determined.
In one embodiment, different APPs use antennas, and the interference caused by the different APPs is different. For example, the interference signal generated by the antenna used in the call process is different from the interference signal generated by the navigation APP using the antenna.
In an embodiment, the terminal obtains the magnitude of interference signals caused in different APP using processes based on experience in advance, and sets corresponding key signal thresholds respectively based on different interference signals, and stores the corresponding key signal thresholds correspondingly.
In step 602, the corresponding relationship between the application program and the signal threshold is read, and the signal threshold corresponding to the current application program is determined as the second signal threshold.
In an embodiment, the terminal reads a pre-stored correspondence between an APP and a signal threshold to determine a second signal threshold corresponding to the current APP.
In step 603, the key signal threshold is set from the current first signal threshold to the second signal threshold.
In the embodiment of the present disclosure, through the step 601 and the step 603, the second signal threshold corresponding to the current APP may be determined based on the preset correspondence between the APP and the signal threshold, and this way can obtain a more accurate second signal threshold, so as to effectively avoid the interference signal for different APPs.
Fig. 7 is a flowchart illustrating another control method of a terminal key according to an exemplary embodiment; in this embodiment, the method provided by the embodiment of the present disclosure is used to exemplarily explain how to set the key signal threshold from the current first signal threshold to the second signal threshold, as shown in fig. 7, which includes the following steps 701 and 703:
in step 701, the type of the current terminal is determined.
In one embodiment, the terminals are different, and the antennas thereof are different, for example, the positions of the antennas may be different, and the interference suffered by the keys at different positions is different; for another example, the thickness of the cover glass also affects the setting of the signal threshold, when the cover glass is thin, the signal is strong, and the signal threshold can be set to be high; when the cover glass is thick, the signal is weak, and the signal threshold can be set lower.
In one embodiment, based on experience, various types of terminal correspondence with signal thresholds may be stored in the terminal.
In step 702, the corresponding relationship between the type of the terminal and the signal threshold is read, and the signal threshold corresponding to the type of the current terminal is determined as the second signal threshold.
In an embodiment, the terminal determines the second signal threshold by reading a pre-stored correspondence between the terminal type and the signal threshold.
In step 703, the key signal threshold is set from the current first signal threshold to the second signal threshold.
In the embodiment of the present disclosure, through the above-mentioned step 701-703, the second signal threshold corresponding to the current terminal type may be determined based on the preset corresponding relationship between the terminal type and the signal threshold, and the second signal threshold obtained in this way better conforms to the respective characteristics of the terminals, so as to effectively avoid the interference signal for different types of terminals.
In the above embodiment, when the terminal detects that the antenna function is turned off, the current signal threshold may be set from the second signal threshold to the first signal threshold, where the first signal threshold is the default signal threshold.
Fig. 8 is a block diagram illustrating a control apparatus of a terminal key according to an exemplary embodiment, and as shown in fig. 8, the control apparatus of the terminal key includes: a first setup module 810, a detection module 820, and an execution module 830.
A first setting module 810, configured to set a key signal threshold from a current first signal threshold to a second signal threshold when detecting that the antenna function is turned on, where the second signal threshold is higher than the first signal threshold;
a detection module 820 configured to detect a key signal;
an executing module 830 configured to execute a corresponding operation on the key based on the relationship between the key signal detected by the detecting module 820 and the second signal threshold set by the first setting module 810.
Fig. 9 is a block diagram of another control apparatus for a terminal key according to an exemplary embodiment, as shown in fig. 9, on the basis of the above embodiment shown in fig. 8, in an embodiment, the executing module 830 may include: a first judgment sub-module 831, a first determination sub-module 832, and a first execution sub-module 833.
A first determining submodule 831 configured to determine whether the key signal is higher than the second signal threshold;
a first determining submodule 832 configured to determine a key corresponding to the key signal when the first determining submodule 831 determines that the key signal is higher than the second signal threshold;
a first executing sub-module 833 configured to execute the function corresponding to the key determined by the first determining sub-module 832.
Fig. 10 is a block diagram of another control apparatus for terminal keys according to an exemplary embodiment, as shown in fig. 10, on the basis of the above embodiment shown in fig. 8, in an embodiment, the executing module 830 may include: a second decision submodule 834, a second determination submodule 835 and a second execution submodule 836.
A second determining submodule 834 configured to determine whether the detected key signal within a set time period is higher than the second signal threshold;
the second determining submodule 835 is configured to determine a key corresponding to the key signal when the second determining submodule 834 determines that all the key signals detected within the set time period are higher than the second signal threshold;
a second execution submodule 836 configured to execute the function corresponding to the key determined by the second determination submodule 835.
Fig. 11 is a block diagram of another control apparatus for a terminal key according to an exemplary embodiment, as shown in fig. 11, on the basis of the above embodiment shown in fig. 8, in an embodiment, the executing module 830 may include: a third decision sub-module 838, a third determination sub-module 838 and a third execution sub-module 839.
A third determining sub-module 838 configured to determine whether the key signal of the set number of frames detected consecutively is higher than the second signal threshold;
a third determining sub-module 838 configured to determine a key corresponding to the key signal when the third determining sub-module 838 determines that all the key signals of the set number of frames detected consecutively are higher than the second signal threshold;
a third execution sub-module 839 configured to execute the function corresponding to the key determined by the third determination sub-module 838.
Fig. 12 is a block diagram of another control apparatus for a terminal key according to an exemplary embodiment, as shown in fig. 12, on the basis of the above embodiment shown in fig. 8, in an embodiment, the first setting module 810 may include: a first reading sub-module 811, a calculation sub-module 812 and a first setting sub-module 813.
A first reading submodule 811 configured to read a preset percentage;
a calculation submodule 812 configured to calculate the second signal threshold value based on the percentage read by the first reading submodule 811 and the first signal threshold value;
a first setting sub-module 813 configured to set the key signal threshold value from the current first signal threshold value to the second signal threshold value calculated by the calculation sub-module 812.
Fig. 13 is a block diagram of another control apparatus for a terminal key according to an exemplary embodiment, as shown in fig. 13, on the basis of the above embodiment shown in fig. 8, in an embodiment, the first setting module 810 may include: a fourth determination submodule 814, a second reading submodule 815 and a second setting submodule 816.
A fourth determination submodule 814 configured to determine an application program currently using the antenna;
a second reading submodule 815 configured to read the correspondence between the application program and the signal threshold, and determine the signal threshold corresponding to the current application program determined by the fourth determining submodule 814 as a second signal threshold;
the second setting submodule 816 is configured to set the key signal threshold from the current first signal threshold to the second signal threshold determined by the second reading submodule 815.
Fig. 14 is a block diagram of another control apparatus for a terminal key according to an exemplary embodiment, as shown in fig. 14, on the basis of the above embodiment shown in fig. 8, in an embodiment, the first setting module 810 may include: a fifth determination submodule 818, a third read submodule 818, and a third setting submodule 819.
A fifth determining submodule 818 configured to determine the type of the current terminal;
a third reading submodule 818 configured to read the correspondence between the type of the terminal and the signal threshold, and determine the signal threshold corresponding to the type of the current terminal determined by the fifth determining submodule 818 as a second signal threshold;
a third setting sub-module 819 configured to set the key signal threshold from the current first signal threshold to the second signal threshold determined by the third read sub-module 818.
Fig. 15 is a block diagram of another control apparatus for terminal keys according to an exemplary embodiment, as shown in fig. 15, on the basis of the above embodiment shown in fig. 8, in an embodiment, the apparatus may further include: a second setup module 840.
A second setting module 840 configured to set the current signal threshold from the second signal threshold to the first signal threshold upon detecting that the antenna function is turned off.
In the above embodiments, the key signal includes a noise signal and a touch signal generated by a user's finger touching a key.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 16 is a block diagram illustrating a control device suitable for a terminal key according to an exemplary embodiment. For example, apparatus 1600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, or other user device.
Referring to fig. 16, apparatus 1600 may include one or more of the following components: processing component 1602, memory 1604, power component 1606, multimedia component 1608, audio component 1610, input/output (I/O) interface 1612, sensor component 1614, and communications component 1616.
The processing component 1602 generally controls overall operation of the device 1600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing element 1602 may include one or more processors 1620 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 1602 can include one or more modules that facilitate interaction between the processing component 1602 and other components. For example, the processing component 1602 can include a multimedia module to facilitate interaction between the multimedia component 1608 and the processing component 1602.
The memory 1604 is configured to store various types of data to support operation at the device 1600. Examples of such data include instructions for any application or method operating on device 1600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1604 may be implemented by any type of volatile or non-volatile memory device or 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 or optical disk.
Power component 1606 provides power to the various components of device 1600. Power components 1606 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 1600.
The multimedia component 1608 includes a screen that provides an output interface between the device 1600 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1608 comprises a front-facing camera and/or a rear-facing camera. The front-facing camera and/or the back-facing camera may receive external multimedia data when device 1600 is in an operational mode, such as a capture mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1610 is configured to output and/or input an audio signal. For example, audio component 1610 includes a Microphone (MIC) configured to receive external audio signals when apparatus 1600 is in an operational mode, such as a call mode, recording mode, and voice recognition mode. The received audio signal may further be stored in the memory 1604 or transmitted via the communications component 1616. In some embodiments, audio component 1610 further includes a speaker for outputting audio signals.
The I/O interface 1612 provides an interface between the processing component 1602 and peripheral interface modules, such as keyboards, click wheels, buttons, and the like. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Sensor assembly 1614 includes one or more sensors for providing status assessment of various aspects to device 1600. For example, sensor assembly 1614 can detect an open/closed state of device 1600, the relative positioning of components, such as a display and keypad of apparatus 1600, a change in position of apparatus 1600 or a component of apparatus 1600, the presence or absence of user contact with apparatus 1600, orientation or acceleration/deceleration of apparatus 1600, and a change in temperature of apparatus 1600. The sensor assembly 1614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communications component 1616 is configured to facilitate communications between the apparatus 1600 and other devices in a wired or wireless manner. The device 1600 may access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication unit 1616 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1616 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 1600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 1604 comprising instructions, executable by the processor 1620 of the apparatus 1600 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Wherein, the processor 1520 is configured to:
when the antenna function is detected to be started, setting a key signal threshold value from a current first signal threshold value to a second signal threshold value, wherein the second signal threshold value is higher than the first signal threshold value;
detecting a key signal;
and executing corresponding operation on the key based on the relation between the key signal and the second signal threshold.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (16)

1. A control method for terminal keys is characterized by comprising the following steps:
when the antenna function is detected to be started, setting a key signal threshold value from a current first signal threshold value to a second signal threshold value, wherein the second signal threshold value is higher than the first signal threshold value;
detecting a key signal;
executing corresponding operation on the key based on the relation between the key signal and the second signal threshold;
the setting of the key signal threshold from the current first signal threshold to the second signal threshold includes:
determining an application program currently using the antenna; reading the corresponding relation between the application program and the signal threshold, and determining the signal threshold corresponding to the current application program as a second signal threshold; setting the key signal threshold value from the current first signal threshold value to the determined second signal threshold value;
alternatively, the first and second electrodes may be,
the setting of the key signal threshold from the current first signal threshold to the second signal threshold includes:
determining the type of the current terminal;
reading the corresponding relation between the type of the terminal and a signal threshold, and determining the signal threshold corresponding to the type of the current terminal as a second signal threshold;
and setting the key signal threshold value from the current first signal threshold value to the determined second signal threshold value.
2. The method of claim 1, wherein performing the corresponding operation on the key based on the relationship between the key signal and the second signal threshold comprises:
judging whether the key signal is higher than the second signal threshold value;
when the key signal is higher than the second signal threshold value, determining a key corresponding to the key signal;
and executing the function corresponding to the key.
3. The method of claim 1, wherein performing the corresponding operation on the key based on the relationship between the key signal and the second signal threshold comprises:
judging whether the key signal detected in a set time period is higher than the second signal threshold value;
when all the key signals detected in the set time period are higher than the second signal threshold value, determining keys corresponding to the key signals;
and executing the function corresponding to the key.
4. The method of claim 1, wherein performing the corresponding operation on the key based on the relationship between the key signal and the second signal threshold comprises:
judging whether the continuously detected key signals of the set number of frames are higher than the second signal threshold value;
when all the continuously detected key signals of the set number of frames are higher than the second signal threshold value, determining keys corresponding to the key signals;
and executing the function corresponding to the key.
5. The method of claim 1, wherein setting the key signal threshold from a current first signal threshold to a second signal threshold comprises:
reading preset percentages;
calculating the second signal threshold based on the percentage and the first signal threshold;
and setting the key signal threshold value as the calculated second signal threshold value from the current first signal threshold value.
6. The method of claim 1, further comprising:
and when the antenna function is detected to be closed, setting the current signal threshold value from the second signal threshold value to the first signal threshold value.
7. The method according to any one of claims 1-6, wherein the key signal comprises a noise signal and a touch signal generated by a user's finger touching a key.
8. A control device for terminal keys is characterized in that the device comprises:
the first setting module is configured to set a key signal threshold from a current first signal threshold to a second signal threshold when the antenna function is detected to be turned on, wherein the second signal threshold is higher than the first signal threshold;
a detection module configured to detect a key signal;
an execution module configured to execute a corresponding operation on a key based on a relationship between the key signal and the second signal threshold;
the first setting module includes:
a fourth determination submodule configured to determine an application program currently using the antenna; the second reading submodule is configured to read the corresponding relation between the application program and the signal threshold, and determine the signal threshold corresponding to the current application program as a second signal threshold; the second setting submodule is configured to set the key signal threshold value from the current first signal threshold value to the determined second signal threshold value;
alternatively, the first and second electrodes may be,
the first setting module includes:
a fifth determining submodule configured to determine a type of the current terminal; the third reading submodule is configured to read the corresponding relation between the type of the terminal and the signal threshold value, and determine the signal threshold value corresponding to the type of the current terminal as a second signal threshold value; and the third setting submodule is configured to set the key signal threshold value from the current first signal threshold value to the determined second signal threshold value.
9. The apparatus of claim 8, wherein the execution module comprises:
a first judgment submodule configured to judge whether the key signal is higher than the second signal threshold;
a first determining submodule configured to determine a key corresponding to the key signal when the key signal is higher than the second signal threshold;
and the first execution submodule is configured to execute the function corresponding to the key.
10. The apparatus of claim 8, wherein the execution module comprises:
the second judgment submodule is configured to judge whether the detected key signal in a set time period is higher than the second signal threshold;
the second determining submodule is configured to determine a key corresponding to the key signal when all the key signals detected in the set time period are higher than the second signal threshold;
and the second execution submodule is configured to execute the function corresponding to the key.
11. The apparatus of claim 8, wherein the execution module comprises:
a third judgment sub-module configured to judge whether the key signal of the set number of frames detected consecutively is higher than the second signal threshold;
a third determining submodule configured to determine a key corresponding to the key signal when all the key signals of the set number of frames detected consecutively are higher than the second signal threshold;
and the third execution submodule is configured to execute the function corresponding to the key.
12. The apparatus of claim 8, wherein the first setup module comprises:
a first reading submodule configured to read a preset percentage;
a calculation sub-module configured to calculate the second signal threshold based on the percentage and the first signal threshold;
a first setting submodule configured to set a key signal threshold from a current first signal threshold to the calculated second signal threshold.
13. The apparatus of claim 8, further comprising:
a second setting module configured to set a current signal threshold from the second signal threshold to the first signal threshold upon detecting that the antenna function is turned off.
14. The device according to any one of claims 8-13, wherein the key signal comprises a noise signal and a touch signal generated by a user's finger touching a key.
15. A terminal, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of any of claims 1 to 7.
16. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the method according to any one of claims 1 to 7.
CN201710876601.2A 2017-09-25 2017-09-25 Control method and device of terminal key and terminal Active CN107621990B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710876601.2A CN107621990B (en) 2017-09-25 2017-09-25 Control method and device of terminal key and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710876601.2A CN107621990B (en) 2017-09-25 2017-09-25 Control method and device of terminal key and terminal

Publications (2)

Publication Number Publication Date
CN107621990A CN107621990A (en) 2018-01-23
CN107621990B true CN107621990B (en) 2021-02-09

Family

ID=61090638

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710876601.2A Active CN107621990B (en) 2017-09-25 2017-09-25 Control method and device of terminal key and terminal

Country Status (1)

Country Link
CN (1) CN107621990B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110475000B (en) * 2019-08-08 2021-07-13 Oppo(重庆)智能科技有限公司 Touch screen point reporting method and related equipment

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006038B (en) * 2010-09-30 2012-06-27 江苏惠通集团有限责任公司 Anti-interference key detection system and detection method
CN104156096B (en) * 2013-05-14 2018-01-26 宸鸿光电科技股份有限公司 Touch screen control system and its signal processing circuit and method
US10459623B2 (en) * 2014-04-17 2019-10-29 Microchip Technology Incorporated Touch detection in a capacitive sensor system
CN104238759B (en) * 2014-09-04 2017-11-10 广东欧珀移动通信有限公司 Physical button controls the method and device of terminal
CN104793788A (en) * 2015-03-31 2015-07-22 小米科技有限责任公司 Key operating method and device
CN106325698B (en) * 2015-06-30 2019-12-03 小米科技有限责任公司 Touch-control response method and mobile terminal
CN105843503B (en) * 2016-03-18 2019-02-12 北京小米移动软件有限公司 Using open method, device and terminal device
CN105912163B (en) * 2016-04-11 2019-06-14 北京小米移动软件有限公司 Physical button component, terminal, touch-control response method and device
CN106506825A (en) * 2016-10-26 2017-03-15 广东欧珀移动通信有限公司 A kind of control method of touch-screen, device and mobile terminal
CN106790978B (en) * 2016-11-18 2019-08-06 Oppo广东移动通信有限公司 Control method, device and the mobile terminal of mobile terminal screen state
CN106936516B (en) * 2017-05-09 2019-12-31 Oppo广东移动通信有限公司 Display screen display state control method, storage medium and terminal

Also Published As

Publication number Publication date
CN107621990A (en) 2018-01-23

Similar Documents

Publication Publication Date Title
US9860844B2 (en) Method and apparatus of temperature control
EP3477423A1 (en) Method and device for preventing terminal from being inadvertently touched
EP3163411A1 (en) Method, device and apparatus for application switching
EP3046016A1 (en) Method and apparatus for switching display mode
US20170123587A1 (en) Method and device for preventing accidental touch of terminal with touch screen
CN107390932B (en) Edge false touch prevention method and device and computer readable storage medium
EP3249505B1 (en) Method and electronic device for controlling a state of a touch screen
EP3232301B1 (en) Mobile terminal and virtual key processing method
CN106354504B (en) Message display method and device
CN106802741B (en) Method and device for determining screen edge touch event and mobile terminal
US11018741B2 (en) Wireless communication device and method for switching antenna
CN110262692B (en) Touch screen scanning method, device and medium
CN111104001B (en) Method and device for preventing screen from being touched mistakenly, mobile terminal and storage medium
CN106445122B (en) Equipment state control method and device
CN107682101B (en) Noise detection method and device and electronic equipment
CN112148148A (en) Touch operation identification method and device, mobile terminal and storage medium
US20170147134A1 (en) Method and apparatus for controlling touch-screen sensitivity
CN116954540A (en) Application program display method and device and terminal
CN107402677B (en) Method and device for recognizing finger lifting in touch operation and terminal
CN107621990B (en) Control method and device of terminal key and terminal
CN109905543B (en) Method and device for preventing misoperation of terminal
CN107203315B (en) Click event processing method and device and terminal
CN107422911B (en) Pressure value detection method and device and computer readable storage medium
CN107273173B (en) Fingerprint sensor control method and device and storage medium
CN106919302B (en) Operation control method and device of mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant