Function execution method and device, terminal and computer readable storage medium

By integrating sensors in the physical buttons of the terminal, monitoring the user's touch operation and triggering the corresponding second function, the problem of large space and cost overhead in the prior art is solved, and convenient operation and high efficiency are achieved. Extend the service life of the equipment.

CN119449948APending Publication Date: 2025-02-14GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310968976.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-02
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

When the prior art realizes function switching in the terminal, it is necessary to set up a mechanical three-stage button, resulting in increased space and cost and mechanical parts being easily damaged.

Method used

By integrating sensors in the physical keys of the terminal, monitoring the user's touch operation using sensor data is triggered to execute the corresponding second function, and the second function is different from the first function of the physical key itself.

Benefits of technology

Reduces space and cost overhead, achieves more convenient operation, improves operating efficiency, and has a long service life of the sensor.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119449948A_ABST
    Figure CN119449948A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a function execution method and device, a terminal and a computer readable storage medium, and relates to the technical field of terminals. The method is applied to the terminal comprising a physical key and a sensor, the sensor is integrated in the physical key, and the physical key is used for triggering the terminal to execute a first function when receiving a pressing operation. The method comprises the following steps: acquiring sensor data output by a sensor; under the condition that the sensor data represents that the touch operation on the entity key is received, second functions corresponding to the touch operation are determined, different touch operations correspond to different second functions, the touch operation is different from the pressing operation, and the second functions are different from the first function; and performing a second function. By adopting the method provided by the embodiment of the invention, the second function can be executed through the physical key, and the second function is different from the first function of the physical key, so that the overhead of space and cost is reduced, and the convenience degree of operation is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of terminal technology, and in particular to a function execution method, device, terminal and computer-readable storage medium. Background Art

[0002] The use of a terminal is often accompanied by switching between different terminal modes, for example, switching from a ringing mode to a silent mode or a vibrating mode.

[0003] In the related art, a hole may be opened on the shell of the terminal to set a mechanical three-stage button, and the magnetic flux is detected by integrating a magnet and a Hall device to identify different button operations of the user, thereby realizing the switching of different terminal modes. Summary of the invention

[0004] The embodiments of the present application provide a function execution method, device, terminal and computer-readable storage medium. The technical solution is as follows:

[0005] On the one hand, an embodiment of the present application provides a function execution method, the method is applied to a terminal including a physical button and a sensor, the sensor is integrated in the physical button, the physical button is used to trigger the terminal to execute a first function when receiving a pressing operation, the method comprising:

[0006] Get sensor data output by the sensor;

[0007] In a case where the sensor data indicates that a touch operation on the physical key has been received, determining a second function corresponding to the touch operation, wherein different touch operations correspond to different second functions, the touch operation is different from the pressing operation, and the second function is different from the first function; and

[0008] The second function is performed.

[0009] On the other hand, an embodiment of the present application provides a function execution device, which is applied to a terminal including a physical button and a sensor, wherein the sensor is integrated in the physical button, and the physical button is used to trigger the terminal to execute a first function when a pressing operation is received, and the device includes:

[0010] An acquisition module, used for acquiring sensor data output by the sensor;

[0011] a determination module, configured to determine, when the sensor data indicates that a touch operation on the physical key has been received, a second function corresponding to the touch operation, wherein different touch operations correspond to different second functions, the touch operation is different from the pressing operation, and the second function is different from the first function; and

[0012] An execution module is used to execute the second function.

[0013] On the other hand, an embodiment of the present application provides a terminal, which includes a physical button, a sensor integrated in the physical button, a processor and a memory, wherein at least one instruction is stored in the memory, and the at least one instruction is loaded and executed by the processor to implement the method described in the above aspect.

[0014] On the other hand, an embodiment of the present application provides a computer-readable storage medium, in which at least one instruction is stored, and the instruction is loaded and executed by a processor to implement the method described in the above aspect.

[0015] On the other hand, an embodiment of the present application provides a computer program product, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the terminal executes the method provided in various optional implementations of the above aspects.

[0016] In the embodiment of the present application, the sensors are concentrated in the existing physical buttons of the terminal, the touch operation on the physical buttons is monitored according to the sensor data, and the second function corresponding to the touch operation is triggered, and the second function is different from the first function of the physical button itself. On the one hand, compared with setting up additional physical buttons, the method of the embodiment of the present application can reduce space and cost expenses; on the other hand, it can achieve more convenient operation and improve the efficiency of operation. For example, the user only needs to slide on the surface of the volume key to switch to silent mode, without having to jump through multiple levels of interfaces, enter the mode switching interface, and then select silent mode to switch. At the same time, the sensor has a longer service life than mechanical buttons. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0018] Figure 1 is a schematic diagram of a terminal provided by an exemplary embodiment of the present application;

[0019] Figure 2 is a flow chart of a function execution method provided by an exemplary embodiment of the present application;

[0020] Figure 3is a schematic diagram of determining a second function corresponding to a touch operation based on an operation type and an operation parameter provided by an exemplary embodiment of the present application;

[0021] Figure 4 is a schematic diagram of realizing a mode switching function by using a physical button in a reading scenario provided by an exemplary embodiment of the present application;

[0022] Figure 5 is a schematic diagram of realizing an audio and video switching function by using a physical button in an audio and video playback scenario provided by an exemplary embodiment of the present application;

[0023] Figure 6 is a schematic diagram of a user entering a standard touch operation provided by an exemplary embodiment of the present application;

[0024] Figure 7 is a flow chart of a function execution method provided by another exemplary embodiment of the present application;

[0025] Figure 8 is a flowchart of performing the first function or the second function provided by an exemplary embodiment of the present application;

[0026] Fig. 9 is a structural block diagram of a function execution device provided by an exemplary embodiment of the present application;

[0027] Fig.10 It is a schematic diagram of the structure of a terminal provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0028] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0029] The use of a terminal is often accompanied by switching between different functions, for example, switching to silent mode, switching to vibration mode, switching to ringing mode, etc. In the related art, a hole may be opened on the shell of the terminal to set a mechanical three-stage button, and the magnetic flux is detected by integrating a magnet and a Hall device to identify different key operations of the user, thereby realizing the switching of different functions.

[0030] However, on the one hand, the mechanical three-stage key requires a hole to be opened on the terminal casing, which affects the appearance; on the other hand, the mechanical three-stage key requires the installation of magnets and Hall devices, which increases the space and cost expenditure; on the other hand, the mechanical three-stage key has a certain mechanical life and is easily damaged after long-term use.

[0031] An embodiment of the present application proposes a function execution method, which integrates a sensor in an existing physical button of a terminal, so that a function can be executed through the physical button, and the function is different from the function of the physical button itself, thereby reducing space and cost overhead and improving the convenience of operation. At the same time, the sensor has a longer service life.

[0032] See also Figure 1 , Figure 1 FIG. 1 is a schematic diagram of a terminal provided by an exemplary embodiment of the present application. Figure 1 As shown, the terminal 11 is a smart phone. It should be noted that the present application embodiment takes the terminal 11 as a smart phone as an example for description, but does not constitute a limitation thereto, and the terminal 11 may also be other types of electronic devices such as a tablet computer, a multimedia player, a wearable device, a desktop computer, etc.

[0033] The terminal 11 has physical buttons, for example, the physical buttons may include a volume button 12 and a power button 13. The physical buttons refer to buttons implemented using a mechanical structure. The physical buttons may be composed of an elastic element and a mechanical structure. When a finger presses the physical button, the elastic element will produce elastic deformation, thereby triggering the action of the mechanical structure, so that the physical button is recognized as a pressed signal.

[0034] In some embodiments, the sensor is integrated into the physical button of the terminal. For example, the volume button 12 may be integrated with a sensor array 121 ( Figure 1 denoted by a dotted line).

[0035] When the user performs a touch operation on the surface of the volume key 12 , the terminal can determine the function corresponding to the touch operation based on the sensor data output by the sensor array 121 , and execute the function.

[0036] Exemplarily, a swipe up operation on the surface of the volume key indicates that the terminal mode is switched to silent mode, a swipe down operation on the surface of the volume key indicates that the terminal mode is switched to ringing mode, and a long press operation in the middle of the volume key indicates that the terminal mode is switched to vibration mode. When the user swipes up on the surface of the volume key 12, the terminal determines that the touch operation is a swipe up operation based on the sensor data output by the sensor sequence 121, and switches the terminal mode to the silent mode corresponding to the swipe up operation.

[0037] A sensor is a device or apparatus that can sense a specified quantity and convert it into a usable signal according to a certain rule, and is usually composed of a sensitive element and a conversion element. Optionally, the sensor may include at least one of different types of sensors such as a capacitive sensor, an ultrasonic sensor, an infrared sensor, an inductive sensor, a photoelectric sensor, a Hall effect sensor, an inductive proximity sensor, and the like.

[0038] Optionally, the sensor may have a fingerprint image extraction function. For example, when the user performs a touch operation on the surface of the volume key 12, a capacitive sensor, an ultrasonic sensor, an infrared sensor or other type of sensor may extract a fingerprint image from the sensor data.

[0039] Optionally, the sensor may include a sensor array including a plurality of sensor elements to collect more comprehensive information.

[0040] It should be noted that the above embodiment only describes a part of the architecture of the terminal, and the system may also include more or fewer components, or combine certain components, which is not limited in this embodiment.

[0041] See also Figure 2 , Figure 2 It is a flowchart of a function execution method provided by an exemplary embodiment of the present application.

[0042] The function execution method is applied to a terminal including a physical button and a sensor, wherein the sensor is integrated in the physical button, and the physical button is used to trigger the terminal to execute a first function when a pressing operation is received.

[0043] Optionally, the physical button is a power button or a volume button. The first function is a function supported by the physical button itself. For example, when the physical button is a volume button, the first function is the volume increase / decrease function; when the physical button is a power button, the first function is the power on / off function or the screen lock / unlock function. When the user presses the physical button, the elastic element in the physical button will produce elastic deformation, thereby triggering the action of the mechanical structure, so that the physical button is recognized as a pressed signal, thereby executing the corresponding first function. For example, when the user presses the upper part of the volume button, the terminal recognizes the pressing operation and executes the volume increase function.

[0044] The flow chart includes the following steps.

[0045] Step 201: Acquire sensor data output by a sensor.

[0046] Optionally, the sensor may include at least one of different types of sensors such as a capacitive sensor, an ultrasonic sensor, an infrared sensor, an inductive sensor, a photoelectric sensor, a Hall effect sensor, and an inductive proximity sensor.

[0047] Optionally, the sensor may have a fingerprint image extraction function. For example, when the user performs a touch operation on the surface of the volume key 12, a capacitive sensor, an ultrasonic sensor, an infrared sensor or other type of sensor may extract a fingerprint image from the sensor data.

[0048] Regarding the principle of capacitive sensor to extract fingerprint image, the capacitive sensor uses the skin surface of the finger as one pole. The ridges and valleys (high and low points on the fingerprint) form different capacitance values ​​due to the different distances from the sensor surface, so the capacitive fingerprint recognition sensor can obtain the fingerprint image based on the capacitance value. Regarding the principle of ultrasonic sensor to extract fingerprint image, the ultrasonic emission layer emits ultrasonic waves of a specific frequency to scan the finger. Due to the different fingerprint patterns, the acoustic impedance of the interface medium is also different, resulting in different echo energy of the ultrasonic wave at the interface, and the echo received by the ultrasonic detection layer is also different. Therefore, the ultrasonic sensor detects the difference in echo energy and generates an electrical signal, which can determine the ridge and valley information of the fingerprint pattern and complete fingerprint recognition. Regarding the principle of infrared sensor to extract fingerprint image, due to the different physical properties of the radiated infrared caused by different fingerprint patterns, the radiated infrared can be used to measure and obtain the fingerprint image.

[0049] Optionally, the sensor may include a sensor array, which includes multiple sensor elements to collect more comprehensive information. It should be noted that the sensor can be integrated inside the physical button or on the surface of the physical button, and the embodiment of the present application does not limit this. The sensor can continuously sense the user's operation and continuously output sensor data.

[0050] Step 202, when the sensor data indicates that a touch operation on a physical key has been received, determine a second function corresponding to the touch operation, wherein different touch operations correspond to different second functions, the touch operation is different from the pressing operation, and the second function is different from the first function.

[0051] In some embodiments, whether the sensor data represents receiving a touch operation on a physical key may be determined based on a difference between the sensor data and an initial value of the sensor.

[0052] Taking a capacitive sensor integrated in a physical button as an example, when the user does not perform a touch operation, the initial capacitance of the capacitive sensor is a; when the user performs a touch operation, the capacitance of the capacitive sensor changes to b. When the difference between a and b is greater than a predetermined capacitance threshold, it indicates that a touch operation on the physical button has been received.

[0053] Taking an ultrasonic sensor or infrared sensor integrated in a physical button as an example, when the user does not perform a touch operation, the initial reflection value of the ultrasonic sensor or infrared sensor is c; when the user performs a touch operation, the reflection value of the ultrasonic sensor or infrared sensor changes to d. When the difference between c and d is greater than a predetermined capacitance threshold, it indicates that a touch operation on the physical button has been received.

[0054] The second function is different from the first function and is a function other than the function supported by the physical button itself. For example, when the physical button is a volume button, the first function is the volume increase / decrease function, and the second function can be a mode switching function of switching to silent mode, switching to vibration mode, and switching to ringing mode; for another example, when the physical button is a power button, the first function is the power on / off function or the screen lock / unlock function, and the second function can be the fingerprint collection function.

[0055] Different touch operations correspond to different second functions. For example, sliding up on the surface of the volume key corresponds to a mode switching function of switching to silent mode, sliding down on the surface of the volume key corresponds to a mode switching function of switching to ringing mode, and long pressing in the middle of the volume key corresponds to a mode switching function of switching to vibration mode.

[0056] In some embodiments, the operation type of the touch operation can be determined based on the sensor data, and the second function corresponding to the touch operation can be determined based on the operation type according to a predetermined rule. For example, the touch operation can be determined to be an upward sliding operation or a downward sliding operation based on the sensor data, and the second function corresponding to the touch operation can be determined to be a mode switching function of switching to a silent mode or a ringing mode according to a predetermined rule.

[0057] Step 203, executing the second function.

[0058] For example, when the second function is a mode switching function for switching to silent mode, the terminal switches the terminal mode to silent mode. For example, the silent mode is achieved by adjusting the media volume to no volume. For another example, when the second function is a playback parameter adjustment function in an audio and video playback scenario, the terminal adjusts the playback parameters.

[0059] In some embodiments, after executing the second function, the terminal may display an execution prompt message to inform the user that the second function has been executed. For example, when the user performs a swipe up operation on the surface of the volume key, the terminal switches the terminal mode to silent and displays a silent prompt icon to inform the user that the terminal mode has been switched to silent.

[0060] In summary, the sensors are concentrated in the existing physical buttons of the terminal, the touch operation on the physical buttons is monitored according to the sensor data, and the second function corresponding to the touch operation is triggered, and the second function is different from the first function of the physical button itself. On the one hand, compared with setting up additional physical buttons, it can reduce space and cost overhead; on the other hand, it can achieve more convenient operation and improve operation efficiency. For example, the user only needs to slide on the surface of the volume key to switch to silent mode, without having to jump through multiple levels of interfaces, enter the mode switching interface, and then select silent mode to switch. At the same time, the sensor has a longer service life than mechanical buttons.

[0061] The manner of determining the second function corresponding to the touch operation may include at least one of the following manners.

[0062] (1) Determine the second function corresponding to the touch operation based on the operation type of the touch operation. Touch operations of different operation types correspond to different second functions. Optionally, the operation type is one of a long press operation, a sliding operation, and a click operation. For example, when the operation type is a sliding operation, the corresponding second function is a mode switching function; when the operation type is a click operation, the corresponding second function is a playback parameter adjustment function.

[0063] (2) Determining a second function corresponding to the touch operation based on the operation type and operation parameters of the touch operation, wherein touch operations of the same operation type and with different operation parameters correspond to different second functions.

[0064] Optionally, touch operations of different operation types may have different operation parameters. For example, when the operation type is a sliding operation, its operation parameters may include sliding direction, sliding times, sliding length, etc.; when the operation type is a long press operation, its operation parameters may include long press duration and long press position, etc.; when the operation type is a click operation, its operation parameters may include click duration and click position, etc.

[0065] See also Figure 3 , Figure 3 1 is a schematic diagram of determining the second function corresponding to the touch operation based on the operation type and operation parameters provided by an exemplary embodiment of the present application. In some embodiments, when the operation type of the touch operation is a sliding operation, the second function corresponding to the touch operation can be determined based on the sliding direction of the sliding operation.

[0066] like Figure 3 As shown, when the touch operation is a sliding operation on the surface of the volume key 31, based on the operation type being a sliding operation and the sliding direction being upward, it can be determined that the second function corresponding to the touch operation is a mode switching function of switching to the silent mode. The terminal executes the silent function and displays the silent icon 321 to prompt the user that the terminal mode has been switched to the silent mode.

[0067] like Figure 3 As shown, when the touch operation is a sliding operation on the surface of the volume key 31, based on the operation type being a sliding operation and the sliding direction being downward, it can be determined that the second function corresponding to the touch operation is a mode switching function of switching to the ringing mode. The terminal executes the ringing function and displays the ringing icon 322 to prompt the user that the terminal mode has been switched to the ringing mode.

[0068] To prevent accidental touches, in a possible implementation, the sliding operation may have a certain degree of complexity to reduce misjudgments caused by factors such as touches of other objects. For example, the sliding operation may slide more than once. For example only, a sliding operation of sliding up twice is regarded as a touch operation for switching to the mute function, and a sliding operation of sliding down twice is regarded as a touch operation for switching to the ring function, and so on. Therefore, in some embodiments, the second function corresponding to the touch operation may also be determined based on at least one of the sliding direction and the number of sliding times of the sliding operation. In the case where the operation type of the touch operation is a long press operation, the second function corresponding to the long press operation may be determined based on at least one of the long press duration and the long press position of the long press operation.

[0069] like Figure 3 As shown, when the touch operation is a long press operation on the middle of the volume key 31, based on the operation type being a long press operation and the long press position being the middle of the volume key 31, it can be determined that the second function corresponding to the touch operation is a mode switching function of switching to the vibration mode. The terminal executes the vibration function and displays a vibration icon 323 to prompt the user that the terminal mode has been switched to the vibration mode.

[0070] Similarly, to prevent accidental touches, in a possible implementation, the long press operation may have a certain degree of complexity to reduce misjudgments caused by factors such as touches of other objects. For example, the long press duration of the long press operation may be greater than the duration threshold. For example only, a long press operation with a long press duration greater than 1s is regarded as a touch operation that switches to a vibration function. Therefore, in some embodiments, the second function corresponding to the touch operation may also be determined based on at least one of the long press position and the long press duration of the long press operation. Similarly, in the case where the operation type of the touch operation is a click operation, the second function corresponding to the touch operation may be determined based on at least one of the number of clicks and the click position of the click operation.

[0071] For example only, the user can make settings in advance, setting the second function corresponding to the click operation on the upper part of the volume key to the mode switching function of switching to the silent mode, setting the second function corresponding to the click operation on the middle part of the volume key to the mode switching function of switching to the ringing mode, and setting the second function corresponding to the click operation on the lower part of the volume key to the mode switching function of switching to the vibration mode.

[0072] In this embodiment, the second function corresponding to the touch operation is determined by the operation type or operation parameters of the touch operation, so that the recognition accuracy can be improved; by increasing the complexity of the touch operation, the misjudgment caused by factors such as touch of other objects can be reduced.

[0073] The same touch operation may correspond to different second functions in different terminal usage scenarios. For example, for the same swipe up operation, in the mode switching scenario, the corresponding second function is the mute function in the mode switching function; in the reading scenario, the corresponding second function is the previous page function; and in the audio and video playback scenario, the corresponding second function is the previous video playback function. Therefore, in some embodiments, when the same touch operation corresponds to at least two second functions, the target function that matches the current usage scenario can be determined from the at least two second functions, and the target function can be executed.

[0074] In some embodiments, when the current usage scenario is a reading scenario and the second function includes a page turning function, the page turning function is determined as a target function and the target function is executed.

[0075] See also Figure 4 , Figure 4 It is a schematic diagram of realizing a mode switching function through a physical button in a reading scenario provided by an exemplary embodiment of the present application.

[0076] like Figure 4 As shown, when the user performs a swipe-up operation on the surface of the volume key 41, the sensor array inside the volume key 41 senses the swipe-up operation and outputs corresponding sensor data; the terminal determines the operation type as a swipe-up operation based on the sensor data. The second function corresponding to the swipe-up operation can be either the mute function in the mode switching function or the page turning function. Since the current usage scenario of the terminal is a reading scenario, and the second function includes the page turning function, the page turning function is used as the target function and the target function is executed. Figure 4 As shown, after the user performs a swipe-up operation, the terminal executes a page-turning function and displays the content of the previous page.

[0077] In some embodiments, when the current usage scenario is an audio or video playback scenario and the second function includes a playback parameter adjustment function, the playback parameter adjustment function is determined as the target function. Optionally, the playback parameter adjustment function may include one of playback progress adjustment, playback volume adjustment, audio or video switching, and display parameter adjustment (such as brightness, contrast, sharpness, etc.).

[0078] See also Figure 5 , Figure 5 It is a schematic diagram of realizing the audio and video switching function through physical buttons in an audio and video playback scenario provided by an exemplary embodiment of the present application.

[0079] like Figure 5As shown, before the user swipes up, the terminal is playing the video corresponding to episode 6. When the user swipes up on the surface of the volume key 51, the sensor array inside the volume key 51 senses the swipe up operation and outputs corresponding sensor data; the terminal determines the operation type as a swipe up operation based on the sensor data. Since the current use scenario of the terminal is an audio and video playback scenario, and the second function includes an audio and video switching function, the audio and video switching function is used as the target function and the target function is executed. Figure 5 As shown, after the user performs an upward swipe operation, the terminal performs an audio and video switching function and plays the video corresponding to the 5th episode.

[0080] In some embodiments, when the current usage scenario is a fingerprint entry scenario and the second function includes a fingerprint acquisition function, the fingerprint acquisition function is determined as the target function. Optionally, the sensor may have a fingerprint image extraction function. Exemplarily, sensors such as capacitive sensors, ultrasonic sensors, or infrared sensors can extract fingerprint images from sensor data. For example only, fingerprint entry scenarios may include identity recognition, payment verification, fingerprint unlocking, and other scenarios.

[0081] In some embodiments, whether the current usage scenario is a fingerprint recording scenario can be determined based on the foreground application being run by the terminal. For example, when performing payment behavior by running a payment application, the current usage scenario is determined to be a fingerprint recording scenario.

[0082] In some embodiments, it is possible to determine whether the current usage scenario is a fingerprint recording scenario based on the current mode of the terminal. For example, when the terminal is in a lock screen mode or a screen off mode, the current usage scenario is determined to be a fingerprint recording scenario. When the current usage scenario of the terminal is a fingerprint recording scenario, and the second function corresponding to the touch operation sensed by the sensor includes a fingerprint collection function, the terminal determines the fingerprint collection function as a target function and executes the target function.

[0083] In some embodiments, when the current usage scenario is a mode switching scenario and the second function includes a mode switching function, the mode switching function is determined as the target function and the target function is executed. Optionally, the mode switching scenario may include all scenarios other than the busy state (such as games, reading, music, etc.). When the current usage scenario of the terminal is a mode switching scenario and the second function corresponding to the touch operation sensed by the sensor includes a mode switching function, the terminal determines the mode switching function as the target function and executes the target function.

[0084] In this embodiment, when the touch operation corresponds to at least two second functions, the target function is determined based on the matching of the second function with the current usage scenario, and the target function is executed, so that the target function can better meet the needs of the current usage scenario and make user operation more convenient and quick.

[0085] In one possible scenario, the touch operation is not initiated by the user, but is accidentally touched (for example, when it is placed in a pocket and accidentally touched by other objects, or when the hand accidentally touches the volume button, etc.). In some embodiments, the terminal can perform false touch recognition on the touch operation to obtain a false touch recognition result. The terminal can execute the second function if the false touch recognition result indicates that there is no false touch; and not execute the second function if the false touch recognition result indicates that there is a false touch.

[0086] In order to solve the problem of false touches caused by non-human operation (such as being hit by other objects), fingerprint extraction can be performed on the touch operation, because fingerprint information cannot be extracted in the case of false touches caused by non-human operation.

[0087] In some embodiments, a sensor with a fingerprint extraction function may be provided in a physical button. The terminal may extract a fingerprint image for the touch operation based on the sensor data. In some embodiments, when a fingerprint image is extracted, the false touch recognition result is determined to be that there is no false touch; when a fingerprint image cannot be extracted, the false touch recognition result is determined to be that there is a false touch, so as to reduce false touches caused by non-human operations.

[0088] In order to solve the problem of false touches caused by human operation (such as accidental touch by hand), the false touch recognition result can be determined based on the matching degree between the operation parameters corresponding to the touch operation and the reference operation parameters. The reference operation parameters can be the operation parameters corresponding to the historical touch operation that triggers the execution of the second function, or the operation parameters corresponding to the standard touch operation that triggers the execution of the second function.

[0089] In some embodiments, when the degree of match is greater than or equal to the matching degree threshold, the false touch recognition result is determined to be that there is no false touch; when the degree of match is less than the matching degree threshold, the false touch recognition result is determined to be that there is a false touch.

[0090] The operation parameters corresponding to the historical touch operation can be obtained based on the historical output data of the sensor. For example, when the second function is a page-turning function, the operation parameters corresponding to the historical page-turning function can be used as reference operation parameters. For example, the sliding length of the historical swipe operation is compared with the current sliding length, and the sliding track of the historical swipe operation is compared with the current sliding track to determine the matching degree between the current touch operation and the historical touch operation.

[0091] The reference operation parameters should be the operation parameters corresponding to the historical touch operation that correctly triggers the execution of the second function. Therefore, in some embodiments, the historical touch operation that triggers the execution of the second function and the second function is not switched for a certain period of time can be obtained, and the operation parameters corresponding to the historical touch operation are used as reference operation parameters. For example, the sensor senses an upward sliding operation on the surface of the volume key, and the second function corresponding to the upward sliding operation is a mode switching function to switch to silent mode. Then, the operation parameters corresponding to the historical touch operation that switches to silent mode and does not switch to other modes within 10 seconds can be used as reference operation parameters.

[0092] The operation parameters corresponding to the standard touch operation may be standard operation parameters pre-stored in the terminal. In some embodiments, different operation parameters for the same touch operation of different users may be collected, and the average of these operation parameters may be used as the standard operation parameter. For example, different sliding distances for the swipe-up operation of different users may be collected, and the average of these sliding distances may be used as the standard sliding distance. In some embodiments, the terminal may instruct the user to pre-enter the touch operation, and the touch operation entered by the user may be used as the standard touch operation and stored.

[0093] See also Figure 6 , Figure 6 FIG. 1 is a schematic diagram of a user inputting a standard touch operation provided by an exemplary embodiment of the present application. Figure 6 As shown, in the terminal input interface, input prompt information 621 is displayed to prompt the user to input the gesture corresponding to the ringing switch function on the surface of the volume key 61. When the user inputs the gesture corresponding to the sliding operation on the surface of the volume key 61, the terminal input interface may also display input display information 622 to display the sliding operation input by the user in real time. When the user completes the input, a re-entry button 623 and a confirmation input button 624 may also be displayed in the terminal input interface. When the user clicks the confirmation input button 624, the sliding operation input by the user is stored as the standard touch operation corresponding to the sliding operation.

[0094] In some embodiments, the two methods of fingerprint image extraction and matching with reference operation parameters can also be combined at the same time to reduce false touches caused by non-human operations and human operations.

[0095] See also Figure 7 , Figure 7 FIG. 1 is a flow chart of a function execution method provided by another exemplary embodiment of the present application. The flow chart includes the following steps.

[0096] Step 701: Acquire sensor data output by a sensor.

[0097] Step 702 : when the sensor data indicates that a touch operation on a physical key has been received, determine a second function corresponding to the touch operation.

[0098] Step 703: Extract fingerprint image of touch operation based on sensor data.

[0099] In the case where the sensor has a fingerprint image extraction function, the fingerprint image is extracted for the touch operation based on the sensor data. For example, sensors such as capacitive sensors, ultrasonic sensors or infrared sensors can extract fingerprint images from the sensor data.

[0100] Step 704, determine whether a fingerprint image is extracted.

[0101] If the fingerprint image cannot be extracted, step 709 is executed. If the fingerprint image is extracted, step 705 is executed.

[0102] Step 705 , determining the matching degree between the operation parameters corresponding to the touch operation and the reference operation parameters.

[0103] Optionally, the reference operation parameter is an operation parameter corresponding to a historical touch operation that triggers the execution of the second function. For example, when the second function is a page-turning function, the user's historical operation parameters corresponding to the historical page-turning function can be used as reference operation parameters to determine the matching degree between the current touch operation and the historical touch operation. The user's historical operation parameters can be obtained based on the historical output data of the sensor.

[0104] Optionally, the reference operation parameter is an operation parameter corresponding to a standard touch operation that triggers the execution of the second function. For example, when the second function is an audio and video switching function, the standard operation parameter corresponding to the audio and video switching function can be used as a reference operation parameter to determine the matching degree between the current touch operation and the standard touch operation. The standard operation parameter can be pre-set and stored in the terminal.

[0105] Optionally, the matching degree may be any value between 0 and 100, and the matching degree may also be different matching levels.

[0106] Step 706: determine whether the matching degree is greater than or equal to a matching degree threshold.

[0107] When the matching degree is less than the matching degree threshold, step 709 is performed. When the matching degree is greater than or equal to the matching degree threshold, step 707 is performed. The matching degree threshold may be a preset fixed value, such as 70%.

[0108] Step 707: Determine that the false touch recognition result is that there is no false touch.

[0109] Step 708, executing the second function.

[0110] If the fingerprint image cannot be extracted, or if the matching degree is less than the matching degree threshold, step 709 is executed.

[0111] Step 709: Determine that the false touch recognition result is a false touch.

[0112] Step 710, the second function is not executed.

[0113] In this embodiment, fingerprint image extraction is performed on the touch operation through sensor data. When the fingerprint image cannot be extracted, the false touch recognition result is determined to be a false touch, which can reduce the false touch caused by non-human operation factors; by determining the matching degree between the operation parameters corresponding to the touch operation and the reference operation parameters, when the matching degree is less than the matching degree threshold, the false touch recognition result is determined to be a false touch, which can reduce the false touch caused by human operation factors, thereby making the terminal's functional response to the touch operation more accurate.

[0114] Since the sensor is integrated in the physical button, when the user presses the button to make the terminal execute the first function, the sensor will also sense the user's touch operation, so the terminal may not be able to distinguish whether the first function or the second function is executed.

[0115] In some embodiments, when the sensor data indicates that a touch operation is received on a physical button and the physical button receives a press operation, it is determined that the user's true intention is to press the physical button, so the terminal executes the first function.

[0116] In some embodiments, when the sensor data indicates that a touch operation is received on a physical key and the physical key does not receive a press operation, it is determined that the user's true intention is to perform a touch operation on the physical key, and thus the terminal executes the second function.

[0117] In a possible scenario, when the sensor data indicates that a touch operation is received on a physical key, and the physical key receives a press operation, the first function may fail. The first function failure means that the first function is executed on the physical key based on the press operation, and the function parameters corresponding to the first function do not change.

[0118] The function parameter is a parameter to be adjusted corresponding to the first function. For example, if the first function is a volume increase function, the corresponding function parameter is a volume parameter.

[0119] In some embodiments, when the first function is a parameter adjustment function and the current parameter reaches the parameter adjustment threshold, the first function fails. Optionally, when the first function is a volume increase function and the current volume is equal to the maximum volume, the first function fails. Optionally, when the first function is a volume reduction function and the current volume is equal to the minimum volume, the first function fails.

[0120] When the first function fails, executing the first function no longer works, and it is determined that the user's real intention is to perform a touch operation on the physical key, so the terminal executes the second function.

[0121] See also Figure 8 , Figure 8 It is a flowchart of executing the first function or the second function provided by an exemplary embodiment of the present application. The flowchart includes the following steps.

[0122] Step 801, acquiring sensor data output by a sensor.

[0123] Step 802 : when the sensor data indicates that a touch operation on a physical key has been received, determine a second function corresponding to the touch operation.

[0124] Step 803, determining whether the physical button receives a pressing operation.

[0125] If the physical key does not receive a press operation, step 805 is executed. If the physical key receives a press operation, step 804 is executed.

[0126] Step 804, determining whether the first function is invalid.

[0127] In some embodiments, when the first function is a parameter adjustment function and the current parameter reaches the parameter adjustment threshold, the first function is invalid. Optionally, when the first function is a volume increase function and the current volume is equal to the maximum volume, the first function is invalid. Optionally, when the first function is a volume reduction function and the current volume is equal to the minimum volume, the first function is invalid.

[0128] If the first function is not invalid, execute step 806. If the first function is invalid, execute step 805.

[0129] Step 805, executing the second function.

[0130] Step 806, executing the first function.

[0131] In this embodiment, by determining whether the physical button receives a press operation and by determining whether the first function is invalid, it can be determined whether the user intends to perform the first operation or the second operation, thereby making the terminal's functional response to the touch operation more accurate.

[0132] See also Fig. 9 , Fig. 9 This is a structural block diagram of a function execution device provided by an exemplary embodiment of the present application. The device is applied to a terminal including a physical button and a sensor, the sensor is integrated in the physical button, and the physical button is used to trigger the terminal to execute a first function when a pressing operation is received. The device includes:

[0133] An acquisition module 901 is used to acquire sensor data output by a sensor;

[0134] a determination module 902, configured to determine, when the sensor data indicates that a touch operation on the physical key has been received, a second function corresponding to the touch operation, wherein different touch operations correspond to different second functions, the touch operation is different from the pressing operation, and the second function is different from the first function; and

[0135] The execution module 903 is used to execute the second function.

[0136] Optionally, the determination module 902 is configured to: determine the second function corresponding to the touch operation based on the operation type of the touch operation, wherein touch operations of different operation types correspond to different second functions; or

[0137] The second function corresponding to the touch operation is determined based on the operation type and the operation parameter of the touch operation, wherein touch operations belonging to the same operation type and having different operation parameters correspond to different second functions.

[0138] Optionally, the determining module 902 is used to:

[0139] When the operation type of the touch operation is a sliding operation, determining the second function corresponding to the touch operation based on at least one of a sliding direction and a sliding number of the sliding operation;

[0140] When the operation type of the touch operation is a long press operation, determining the second function corresponding to the touch operation based on at least one of a long press duration and a long press position of the long press operation;

[0141] In a case where the operation type of the touch operation is a click operation, the second function corresponding to the touch operation is determined based on at least one of the number of clicks and the click position of the click operation.

[0142] Optionally, the determining module 902 is used to:

[0143] In a case where the touch operation corresponds to at least two of the second functions, determining a target function matching the current usage scenario from the at least two second functions;

[0144] The performing of the second function comprises:

[0145] Execute the target function.

[0146] Optionally, the determining module 902 is used to:

[0147] When the current usage scenario is a reading scenario and the second function includes a page turning function, determining the page turning function as the target function;

[0148] When the current usage scenario is an audio or video playback scenario and the second function includes a playback parameter adjustment function, determining the playback parameter adjustment function as the target function;

[0149] When the current usage scenario is a fingerprint entry scenario and the second function includes a fingerprint collection function, determining the fingerprint collection function as the target function;

[0150] When the current usage scenario is a mode switching scenario and the second function includes a mode switching function, the mode switching function is determined as the target function.

[0151] Optionally, the device includes a false touch identification module, and the false touch identification module is used to:

[0152] Performing false touch recognition on the touch operation to obtain a false touch recognition result.

[0153] Optionally, the execution module 903 is used to:

[0154] When the false touch identification result indicates that there is no false touch, the second function is executed.

[0155] When the false touch identification result indicates that a false touch exists, the second function is not executed.

[0156] Optionally, the sensor has a fingerprint image extraction function, and the false touch identification module is used to:

[0157] Extracting a fingerprint image of the touch operation based on the sensor data;

[0158] In the case where the fingerprint image is extracted, determining that the false touch recognition result is that there is no false touch;

[0159] In the case that the fingerprint image cannot be extracted, it is determined that the false touch recognition result is that a false touch exists.

[0160] Optionally, the false touch identification module is used to: determine the matching degree between the operation parameters corresponding to the touch operation and the reference operation parameters, where the reference operation parameters are the operation parameters corresponding to the historical touch operation that triggers the execution of the second function, or the operation parameters corresponding to the standard touch operation that triggers the execution of the second function;

[0161] When the matching degree is greater than or equal to the matching degree threshold, determining that the false touch recognition result is that there is no false touch;

[0162] When the matching degree is less than or equal to the matching degree threshold, it is determined that the false touch recognition result is that a false touch exists.

[0163] Optionally, the execution module 903 is used to: execute the second function when the sensor data indicates that the touch operation on the physical key has been received and the physical key has not received a pressing operation.

[0164] Optionally, the execution module 903 is used to: execute the first function when the sensor data indicates that the touch operation on the physical button has been received and the physical button has received a pressing operation.

[0165] Optionally, the execution module 903 is used to: execute the second function when the sensor data indicates that the touch operation on the physical button has been received, the physical button has received a press operation, and the first function is invalid, wherein the failure of the first function refers to executing the first function on the physical button based on the press operation, and function parameters corresponding to the first function do not change.

[0166] Optionally, the physical button is a volume button or a power button, and the second function includes at least one of switching to silent mode, switching to vibration mode, and switching to ringing mode.

[0167] See also Fig.10 , Fig.10 10 is a schematic diagram of the structure of a terminal provided by an exemplary embodiment of the present application. The terminal can execute the function execution method of the above embodiment. The terminal can be a smart phone, a laptop, a tablet computer, a navigation device, a smart TV, etc. The terminal may also be called a user device, a portable terminal, etc. The terminal may include one or more of the following components: a processor 1010, a memory 1020, and a sensor 1030.

[0168] Optionally, the processor 1010 uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions of the electronic device and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 1020, and calling data stored in the memory 1020. Optionally, the processor 1010 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 1010 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a neural network processor (NPU), and a baseband chip. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content that needs to be displayed on the touch display; the NPU is used to implement artificial intelligence (AI) functions; and the baseband chip is used to process wireless communications. It is understandable that the above-mentioned baseband chip may not be integrated into the processor 1010, but may be implemented by a separate chip.

[0169] The memory 1020 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 1020 includes a non-transitory computer-readable storage medium. The memory 1020 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 1020 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area may store data created according to the use of the electronic device (such as audio data, a phone book), etc.

[0170] The sensor 1030 is a device or apparatus that can sense the specified measured quantity and convert it into a usable signal according to a certain rule, and is usually composed of a sensitive element and a conversion element. In some embodiments, the sensor 1030 is integrated into a physical button of the terminal. Exemplarily, the sensor 1030 can be integrated inside the volume button or the power button, or on the surface of the volume button or the power button.

[0171] Optionally, the sensor 1030 includes at least one of different types of sensors such as a capacitive sensor, an ultrasonic sensor, an infrared sensor, an inductive sensor, a photoelectric sensor, a Hall effect sensor, an inductive proximity sensor, etc. Optionally, the sensor 1030 may have a fingerprint image extraction function. Exemplarily, when a user performs a touch operation on the surface of the volume key, a sensor such as a capacitive sensor, an ultrasonic sensor, or an infrared sensor may extract a fingerprint image from the sensor data. Optionally, the sensor 1030 may include a sensor array, and the sensor array includes multiple sensor elements to collect more comprehensive information.

[0172] In addition, those skilled in the art will appreciate that the structure of the terminal shown in the above figures does not constitute a limitation on the terminal, and the terminal may include more or fewer components than shown, or a combination of certain components, or a different arrangement of components.

[0173] The embodiment of the present application also provides a computer-readable storage medium, in which at least one instruction is stored, and the at least one instruction is loaded and executed by a processor to implement the method described in the above embodiment. Optionally, the computer-readable storage medium may include: ROM, RAM, solid state drives (SSD, Solid State Drives) or optical disks, etc. Among them, RAM may include resistance random access memory (ReRAM, Resistance Random Access Memory) and dynamic random access memory (DRAM, Dynamic Random Access Memory).

[0174] The embodiment of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in various optional implementations of the above aspects.

[0175] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A function execution method, characterized in that: Applied to a terminal including a physical button and a sensor, the sensor being integrated in the physical button, the physical button being used to trigger the terminal to execute a first function when receiving a pressing operation, the method comprising: Acquiring sensor data output by the sensor; In a case where the sensor data indicates that a touch operation on the physical key has been received, determining a second function corresponding to the touch operation, wherein different touch operations correspond to different second functions, the touch operation is different from the pressing operation, and the second function is different from the first function; and The second function is performed.

2. The function execution method according to claim 1, characterized in that: The determining the second function corresponding to the touch operation includes: determining the second function corresponding to the touch operation based on the operation type of the touch operation, wherein touch operations belonging to different operation types correspond to different second functions; or, The second function corresponding to the touch operation is determined based on the operation type and the operation parameter of the touch operation, wherein touch operations belonging to the same operation type and having different operation parameters correspond to different second functions.

3. The function execution method according to claim 2, characterized in that: The determining the second function corresponding to the touch operation based on the operation type and operation parameters of the touch operation includes: When the operation type of the touch operation is a sliding operation, determining the second function corresponding to the touch operation based on at least one of a sliding direction and a sliding number of the sliding operation; When the operation type of the touch operation is a long press operation, determining the second function corresponding to the touch operation based on at least one of a long press duration and a long press position of the long press operation; In a case where the operation type of the touch operation is a click operation, the second function corresponding to the touch operation is determined based on at least one of the number of clicks and the click position of the click operation.

4. The function execution method according to claim 1, characterized in that: The determining the second function corresponding to the touch operation includes: In a case where the touch operation corresponds to at least two of the second functions, determining a target function matching the current usage scenario from the at least two second functions; The performing of the second function comprises: Execute the target function.

5. The function execution method according to claim 4, characterized in that: When the touch operation corresponds to at least two of the second functions, determining a target function matching the current usage scenario from the at least two second functions includes: When the current usage scenario is a reading scenario and the second function includes a page turning function, determining the page turning function as the target function; When the current usage scenario is an audio or video playback scenario and the second function includes a playback parameter adjustment function, determining the playback parameter adjustment function as the target function; When the current usage scenario is a fingerprint entry scenario and the second function includes a fingerprint collection function, determining the fingerprint collection function as the target function; When the current usage scenario is a mode switching scenario and the second function includes a mode switching function, the mode switching function is determined as the target function.

6. The function execution method according to claim 1, characterized in that: After determining the second function corresponding to the touch operation, the method further includes: Performing false touch recognition on the touch operation to obtain a false touch recognition result; The performing of the second function comprises: If the false touch identification result indicates that there is no false touch, executing the second function; The method further comprises: When the false touch identification result indicates that a false touch exists, the second function is not executed.

7. The function execution method according to claim 6, characterized in that: The sensor has a fingerprint image extraction function; The performing false touch recognition on the touch operation to obtain a false touch recognition result includes: Extracting a fingerprint image of the touch operation based on the sensor data; In the case where the fingerprint image is extracted, determining that the false touch recognition result is that there is no false touch; In the case that the fingerprint image cannot be extracted, it is determined that the false touch recognition result is that a false touch exists.

8. The function execution method according to claim 6, characterized in that: The performing false touch recognition on the touch operation to obtain a false touch recognition result includes: Determining a matching degree between an operation parameter corresponding to the touch operation and a reference operation parameter, where the reference operation parameter is an operation parameter corresponding to a historical touch operation that triggers execution of the second function, or an operation parameter corresponding to a standard touch operation that triggers execution of the second function; When the matching degree is greater than or equal to the matching degree threshold, determining that the false touch recognition result is that there is no false touch; When the matching degree is less than the matching degree threshold, it is determined that the false touch recognition result is that a false touch exists.

9. The function execution method according to claim 1, characterized in that: The performing of the second function comprises: When the sensor data indicates that the touch operation on the physical key is received and the physical key does not receive a press operation, executing the second function; The method further comprises: When the sensor data indicates that the touch operation on the physical button is received and the physical button receives a press operation, the first function is executed.

10. The function execution method according to claim 9, characterized in that: The performing of the second function further includes: When the sensor data indicates that the touch operation on the physical button is received, the physical button receives a press operation, and the first function fails, the second function is executed, wherein the failure of the first function refers to executing the first function on the physical button based on the press operation, and the function parameters corresponding to the first function do not change.

11. The function execution method according to claim 1, characterized in that: The physical button is a volume button or a power button, and the second function includes at least one of switching to a silent mode, switching to a vibration mode, and switching to a ringing mode.

12. A function execution device, characterized in that: Applied to a terminal including a physical button and a sensor, the sensor being integrated in the physical button, the physical button being used to trigger the terminal to execute a first function when receiving a pressing operation, the device comprising: An acquisition module, used for acquiring sensor data output by the sensor; a determination module, configured to determine, when the sensor data indicates that a touch operation on the physical key has been received, a second function corresponding to the touch operation, wherein different touch operations correspond to different second functions, the touch operation is different from the pressing operation, and the second function is different from the first function; and An execution module is used to execute the second function.

13. A terminal, characterized in that: The terminal includes a physical button, a sensor integrated in the physical button, a processor and a memory; the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to implement the function execution method as described in any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, and the instruction is loaded and executed by the processor to implement the function execution method according to any one of claims 1 to 11.

15. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium; a processor of the terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the terminal executes the function execution method as described in any one of claims 1 to 11.