Tactile feedback method and device, terminal equipment and storage medium

By responding to the pressing operation of the side button on the smart terminal device, pressing data is generated, and the vibration waveform is determined based on the current application scenario and data, and tactile feedback is performed, the problem that the side button cannot provide realistic haptic feedback is solved, reducing the probability of misoperation, and improving operation accuracy and experience.

CN119536502APending Publication Date: 2025-02-28GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 2 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The side buttons on smart terminal devices cannot provide timely and realistic haptic feedback, increasing the probability of misoperation.

Method used

By responding to the user's pressing operation on the side button, pressing data is generated, and the corresponding vibration waveform is determined based on the current application scenario and pressing data of the terminal device, and tactile feedback is performed.

Benefits of technology

It realizes timely response to user side button operations, reduces the probability of misoperation, and improves the accuracy and experience of user operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119536502A_ABST
    Figure CN119536502A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a tactile feedback method and device, terminal equipment and a storage medium, which are used for timely responding to a pressing operation of a user on a side key, carrying out tactile feedback and reducing the probability of misoperation. The method provided by the embodiment of the invention comprises the following steps: in response to a pressing operation of a user on a side key of the terminal equipment, obtaining pressing data; determining a current vibration sensing waveform corresponding to a current application scene of the terminal equipment and the pressing data, wherein different application scenes and different pressing data correspond to different vibration sensing waveforms; and performing tactile feedback on the pressing operation according to the current vibration sensing waveform.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal devices, and in particular to a tactile feedback method, device, terminal device and storage medium. Background Art

[0002] At present, when users operate the side buttons on smart terminal devices, they cannot obtain timely and realistic feedback, which increases the probability of wrong operation. Summary of the invention

[0003] The embodiments of the present application provide a tactile feedback method, apparatus, terminal device and storage medium for timely responding to a user's pressing operation on a side button, providing tactile feedback and reducing the probability of erroneous operation.

[0004] A first aspect of the present application provides a tactile feedback method, which may include:

[0005] In response to a user pressing a side button of a terminal device, generating pressing data;

[0006] Determine a current vibration waveform corresponding to a current application scenario of the terminal device and the pressing data, where different application scenarios and different pressing data correspond to different vibration waveforms;

[0007] The pressing operation is subjected to tactile feedback according to the current vibration waveform.

[0008] A second aspect of the present application provides a tactile feedback device for a side button, which may include:

[0009] A generating module, configured to generate pressing data in response to a user pressing a side button of a terminal device;

[0010] A determination module, used to determine a current vibration waveform corresponding to a current application scenario of the terminal device and the pressure data, where different application scenarios and different pressure data correspond to different vibration waveforms;

[0011] The tactile feedback module is used to provide tactile feedback to the pressing operation according to the current vibration waveform.

[0012] A third aspect of the present application provides a terminal device, which may include:

[0013] A memory storing executable program code;

[0014] a processor coupled to the memory;

[0015] The processor is used to execute the method described in the first aspect of the present application.

[0016] Another aspect of an embodiment of the present application provides a computer-readable storage medium, comprising instructions, which, when executed on a processor, enables the processor to execute the method described in the first aspect of the present application.

[0017] Yet another aspect of an embodiment of the present application discloses a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the method described in the first aspect of the present application.

[0018] Another aspect of an embodiment of the present application discloses an application publishing platform, which is used to publish a computer program product. When the computer program product runs on a computer, the computer executes the method described in the first aspect of the present application.

[0019] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0020] In the embodiment of the present application, in response to the user's pressing operation on the side button of the terminal device, press data is generated; the current vibration waveform corresponding to the current application scenario of the terminal device and the press data is determined, and different application scenarios and different press data correspond to different vibration waveforms; tactile feedback is given to the press operation according to the current vibration waveform. It is used to timely respond to the user's pressing operation on the side button, generate press data, and give tactile feedback to the press operation according to the current application scenario and press data of the terminal device, so as to reduce the probability of misoperation. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments and the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application, and other drawings can be obtained based on these drawings.

[0022] Figure 1 A schematic diagram of an embodiment of a tactile feedback method in an embodiment of the present application;

[0023] Figure 2 A schematic diagram of another embodiment of the tactile feedback method in the embodiment of the present application;

[0024] Figure 3A A schematic diagram of the smart side button setting interface in an embodiment of the present application;

[0025] Figure 3B A schematic diagram of a user's operation of setting the side button function in a target application scenario in an embodiment of the present application;

[0026] Figure 4 A schematic diagram of an embodiment of a tactile feedback device in the implementation of the present application;

[0027] Figure 5 This is a schematic diagram of an embodiment of a terminal device in an embodiment of the present application;

[0028] Figure 6 This is another schematic diagram of a terminal device in an embodiment of the present application. DETAILED DESCRIPTION

[0029] The embodiments of the present application provide a tactile feedback method, apparatus, terminal device and storage medium for timely responding to a user's pressing operation on a side button, providing tactile feedback and reducing the probability of erroneous operation.

[0030] In order to make the technical personnel in the technical field better understand the scheme of the present application, the technical scheme in the embodiment of the present application will be described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, not all of the embodiments. Based on the embodiments in the present application, they should all fall within the scope of protection of the present application.

[0031] The side buttons on current terminal devices (such as mobile phones) have the disadvantage of single function and users cannot customize the side button functions according to different application scenarios; moreover, after users operate the side buttons, they cannot obtain timely and realistic tactile feedback, which increases the probability of misoperation.

[0032] In the embodiment of the present application, the terminal device can be a mobile phone, a tablet computer, a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal device in industrial control, a wireless terminal device in self driving, a wireless terminal device in remote medical, a wireless terminal device in a smart grid, a wireless terminal device in transportation safety, a wireless terminal device in a smart city, or a wireless terminal device in a smart home, etc.

[0033] As an example but not limitation, in the embodiments of the present application, the terminal device may also be a wearable device. Wearable devices may also be referred to as wearable smart devices, which are a general term for wearable devices that are intelligently designed and developed using wearable technology for daily wear, such as glasses, gloves, watches, clothing, and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not only hardware devices, but also powerful functions achieved through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include full-featured, large-sized, and fully or partially independent of smartphones, such as smart watches or smart glasses, as well as devices that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various types of smart bracelets and smart jewelry for vital sign monitoring.

[0034] The technical solution of the present application is further described below by way of embodiments. Figure 1 As shown, it is a schematic diagram of an embodiment of a tactile feedback method in an embodiment of the present application, which may include:

[0035] 101. In response to a user pressing a side button of a terminal device, generate pressing data.

[0036] Optionally, the pressing data includes at least one of pressing intensity, pressing times and pressing duration.

[0037] Optionally, the generating of pressing data in response to the user pressing the side button may include: generating pressing data in response to the user pressing the side button through a pressure sensor; or generating pressing data in response to the user pressing the side button through a piezoelectric ceramic device.

[0038] 102. Determine a current vibration waveform corresponding to a current application scenario of the terminal device and the pressure data, where different application scenarios and different pressure data correspond to different vibration waveforms.

[0039] Optionally, the terminal device may detect a current application scenario, which may be a scenario corresponding to an application program currently running in the foreground of the terminal device.

[0040] Exemplarily, the current application scenario may include but is not limited to a camera scenario and a game scenario.

[0041] Optionally, determining a current vibration waveform corresponding to the current application scenario of the terminal device and the pressing data may include but is not limited to the following implementations:

[0042] (1) selecting a current vibration waveform mapping table corresponding to a current application scenario of a terminal device from a first preset vibration waveform database, wherein the first preset vibration waveform database includes vibration waveform mapping tables corresponding to different application scenarios, and each vibration waveform mapping table includes a mapping relationship between different pressure data and different vibration waveforms; and determining a corresponding current vibration waveform in the current vibration waveform mapping table according to the current pressure data.

[0043] (2) Selecting the current vibration waveform corresponding to the current application scenario of the terminal device from the second preset vibration waveform database, wherein the second preset vibration waveform database includes vibration waveforms corresponding to the reference pressing data range under different application scenarios; obtaining the current vibration waveform according to the current pressing data and the reference pressing data range, and the vibration waveform corresponding to the reference pressing data. It is understandable that, according to whether the current pressing data is within the pressing data reference range, it is determined whether to adjust the vibration waveform corresponding to the reference pressing data range, and finally the current vibration waveform is obtained.

[0044] Optionally, if the current press data is within the reference press data range, the vibration waveform corresponding to the reference press data range is used as the current vibration waveform corresponding to the current press data; if the current press data is lower than the lower limit of the reference press data range, the amplitude of the vibration waveform corresponding to the reference press data range can be reduced to reduce the vibration provided by the tactile feedback, and the current vibration waveform corresponding to the current press data is obtained; if the current press data is lower than the upper limit of the reference press data range, the amplitude of the vibration waveform corresponding to the reference press data range can be increased to increase the vibration provided by the tactile feedback, and the current vibration waveform corresponding to the current press data is obtained.

[0045] Optionally, the first preset vibration waveform database and the second preset vibration waveform database are vibration waveform databases saved before the terminal device leaves the factory.

[0046] It is understandable that for the simulated side buttons in different application scenarios, the vibration waveform of the tactile feedback can be customized before the terminal device leaves the factory. Before leaving the factory, the terminal equipment manufacturer collects the simulation effects of different physical side buttons in various application scenarios, including but not limited to the vibration waveform of the tactile feedback of the physical side buttons, such as the amplitude, frequency, feedback duration and other factors of the vibration waveform; then optimizes and debugs according to the specific hardware solution of this terminal device, so that the vibration waveform finally felt by the user has the same or similar characteristics as the tactile feedback effect of the physical side button that the manufacturer hopes to simulate, and stores these vibration waveforms in the vibration waveform database as a preset vibration waveform database, and binds them to the corresponding application scenarios. After leaving the factory, when the user chooses to turn on the smart side button and selects the side button function mapping for a certain application scenario, the corresponding vibration waveform is searched through the preset vibration waveform database, and then played according to the vibration waveform to achieve the effect of simulating the corresponding side button touch.

[0047] 103. Perform tactile feedback on the pressing operation according to the current vibration waveform.

[0048] Optionally, when a pressure sensor is used to generate pressing data in response to a user pressing a side button, providing tactile feedback for the pressing operation based on a current vibration waveform may include: providing tactile feedback for the pressing operation based on the current vibration waveform through a linear vibration motor or an electromagnetic coil.

[0049] Optionally, when a piezoelectric ceramic device is used to generate pressing data in response to a user pressing a side button, providing tactile feedback for the pressing operation based on a current vibration waveform may include: providing tactile feedback for the pressing operation based on the current vibration waveform through the piezoelectric ceramic device.

[0050] It is understandable that in the hardware implementation of the side button, different vibration waveforms can be used to autonomously call for tactile feedback of the pressing operation, which may include but are not limited to the following solutions:

[0051] (1) A pressure sensor is used to collect the pressure applied to the side buttons by the user, and a linear resonant actuator (LRA) is used to provide tactile feedback vibration.

[0052] (2) Piezoelectric ceramic devices are used to simultaneously collect the user's pressing force on the side buttons and provide tactile feedback vibration.

[0053] (3) A pressure sensor is used to collect the pressure applied by the user to the side buttons, and a customized electromagnetic coil is used to provide tactile feedback vibration.

[0054] Optionally, the implementation principle of the pressure sensor includes, but is not limited to: resistive, capacitive, piezoelectric, ultrasonic and other implementation methods.

[0055] The common feature of the above-mentioned implementation methods is that the user's pressing force on the side buttons can be collected, so as to set different vibration waveforms according to the comparison between the pressing force and different thresholds. Optionally, the vibration waveform for tactile feedback can also be customized according to the application scenario and other factors, so as to achieve the refinement and simulation of tactile feedback and realize the diversification of button functions. For example: the user's pressing time on the side buttons can also be collected, and different vibration waveforms can be set by comparing with the time threshold; the number of presses can also be collected, combined with the pressing force, and / or the pressing time, to set different vibration waveforms.

[0056] The vibration waveform is triggered by the user's pressing operation on the side button. As long as the pressing force corresponding to the pressing operation can match any of the preset multiple pressure thresholds, it will match the vibration waveform corresponding to the preset vibration waveform database to provide a tactile feedback to the user at the side button. When the pressing force matches different pressure thresholds, the feedback strength of the vibration waveform is different, allowing the user to perceive their pressing force through tactile feedback.

[0057] Optionally, the pressing data includes the pressing force; and the performing tactile feedback on the pressing operation according to the current vibration waveform may include but is not limited to the following implementations:

[0058] (1) When the pressing force is less than a first threshold, tactile feedback is provided to the pressing operation according to a first vibration waveform; that is, the first vibration waveform is output so that the user can feel the vibration corresponding to the first vibration waveform.

[0059] (2) When the pressing force is greater than or equal to the first threshold and less than a second threshold, tactile feedback is provided to the pressing operation according to the second vibration waveform; that is, the second vibration waveform is output so that the user can feel the vibration corresponding to the second vibration waveform.

[0060] (3) when the pressing force is greater than or equal to the second threshold, performing tactile feedback on the pressing operation according to the third vibration waveform; that is, outputting the third vibration waveform so that the user can feel the vibration corresponding to the third vibration waveform;

[0061] Among them, the amplitude of the first vibration waveform is smaller than the amplitude of the second vibration waveform, and the amplitude of the second vibration waveform is smaller than the amplitude of the third vibration waveform. Therefore, the vibration corresponding to the first vibration waveform perceived by the user (also called light touch vibration) is smaller than the vibration corresponding to the second vibration waveform (also called light pressure vibration), and the vibration corresponding to the second vibration waveform perceived by the user is smaller than the vibration corresponding to the third vibration waveform (also called heavy pressure vibration).

[0062] Optionally, the pressing data includes the pressing force and the pressing duration; and the performing of tactile feedback on the pressing operation according to the current vibration waveform may include but is not limited to the following implementations:

[0063] (1) When the pressing force is less than the first threshold and the pressing duration is less than the duration threshold, tactile feedback is provided to the pressing operation according to the first vibration waveform; that is, the first vibration waveform is output so that the user can feel the vibration corresponding to the first vibration waveform.

[0064] (2) When the pressing force is greater than or equal to the first threshold and less than the second threshold, and the pressing duration is greater than the duration threshold, tactile feedback is provided for the pressing operation according to the second vibration waveform; that is, the second vibration waveform is output so that the user can feel the vibration corresponding to the second vibration waveform.

[0065] (3) when the pressing force is greater than or equal to the second threshold and the pressing duration is greater than the duration threshold, performing tactile feedback on the pressing operation according to the third vibration waveform; that is, outputting the third vibration waveform so that the user can feel the vibration corresponding to the third vibration waveform;

[0066] Among them, the amplitude of the first vibration waveform is smaller than the amplitude of the second vibration waveform, and the amplitude of the second vibration waveform is smaller than the amplitude of the third vibration waveform. Therefore, the vibration corresponding to the first vibration waveform perceived by the user (also called light touch vibration) is smaller than the vibration corresponding to the second vibration waveform (also called light pressure vibration), and the vibration corresponding to the second vibration waveform perceived by the user is smaller than the vibration corresponding to the third vibration waveform (also called heavy pressure vibration).

[0067] Optionally, the pressing data includes the pressing force and the number of pressing times; and the performing tactile feedback on the pressing operation according to the current vibration waveform may include but is not limited to the following implementations:

[0068] (1) When the pressing force is less than a first threshold, tactile feedback is provided for the pressing operation according to the first vibration waveform and the number of pressing times; if the number of pressing times is once, the first vibration waveform is output once; if the number of pressing times is twice, the first vibration waveform is output twice, and so on, the first vibration waveform is output, so that the user can feel the vibration corresponding to the first vibration waveform.

[0069] (2) When the pressing force is greater than or equal to the first threshold and less than the second threshold, tactile feedback is provided for the pressing operation according to the second vibration waveform and the number of pressing times; if the number of pressing times is once, the second vibration waveform is output once; if the number of pressing times is twice, the second vibration waveform is output twice, and so on, the second vibration waveform is output, so that the user can feel the vibration corresponding to the second vibration waveform.

[0070] (3) when the pressing force is greater than or equal to the second threshold, performing tactile feedback on the pressing operation according to the third vibration waveform and the number of pressings; if the number of pressings is once, outputting the third vibration waveform once; if the number of pressings is twice, outputting the third vibration waveform twice, and so on, outputting the third vibration waveform, so that the user can feel the vibration corresponding to the third vibration waveform;

[0071] Among them, the amplitude of the first vibration waveform is smaller than the amplitude of the second vibration waveform, and the amplitude of the second vibration waveform is smaller than the amplitude of the third vibration waveform. Therefore, the vibration corresponding to the first vibration waveform perceived by the user (also called light touch vibration) is smaller than the vibration corresponding to the second vibration waveform (also called light pressure vibration), and the vibration corresponding to the second vibration waveform perceived by the user is smaller than the vibration corresponding to the third vibration waveform (also called heavy pressure vibration).

[0072] Optionally, the pressing data includes the pressing force, pressing duration, and number of pressing times; and the performing of tactile feedback on the pressing operation according to the current vibration waveform may include but is not limited to the following implementations:

[0073] (1) When the pressing force is less than the first threshold and the pressing duration is less than the duration threshold, tactile feedback is provided for the pressing operation according to the first vibration waveform and the number of pressing times; if the number of pressing times is once, the first vibration waveform is output once; if the number of pressing times is twice, the first vibration waveform is output twice, and so on, the first vibration waveform is output, so that the user can feel the vibration corresponding to the first vibration waveform.

[0074] (2) When the pressing force is greater than or equal to the first threshold and less than the second threshold, and the pressing duration is greater than the duration threshold, tactile feedback is provided for the pressing operation according to the second vibration waveform and the number of presses; if the number of presses is once, the second vibration waveform is output once; if the number of presses is twice, the second vibration waveform is output twice, and so on, the second vibration waveform is output, so that the user can feel the vibration corresponding to the second vibration waveform.

[0075] (3) when the pressing force is greater than or equal to the second threshold value, and the pressing duration is greater than the duration threshold value, performing tactile feedback on the pressing operation according to the third vibration waveform and the number of pressing times; if the number of pressing times is once, outputting the third vibration waveform once; if the number of pressing times is twice, outputting the third vibration waveform twice, and so on, outputting the third vibration waveform, so that the user can feel the vibration corresponding to the third vibration waveform;

[0076] Among them, the amplitude of the first vibration waveform is smaller than the amplitude of the second vibration waveform, and the amplitude of the second vibration waveform is smaller than the amplitude of the third vibration waveform. Therefore, the vibration corresponding to the first vibration waveform perceived by the user (also called light touch vibration) is smaller than the vibration corresponding to the second vibration waveform (also called light pressure vibration), and the vibration corresponding to the second vibration waveform perceived by the user is smaller than the vibration corresponding to the third vibration waveform (also called heavy pressure vibration).

[0077] In the embodiment of the present application, in response to the user's pressing operation on the side button of the terminal device, press data is generated; the current vibration waveform corresponding to the current application scenario of the terminal device and the press data is determined, and different application scenarios and different press data correspond to different vibration waveforms; tactile feedback is given to the press operation according to the current vibration waveform. It is used to timely respond to the user's pressing operation on the side button, generate press data, and give tactile feedback to the press operation according to the current application scenario and press data of the terminal device, so as to reduce the probability of misoperation.

[0078] like Figure 2 As shown, it is a schematic diagram of another embodiment of the tactile feedback method in the embodiment of the present application, which may include:

[0079] 201. In response to a user's setting operation on a side button function in a target application scenario, the side button function is set to a function corresponding to the target application scenario.

[0080] Optionally, the target application scenario is a camera scene, and the side button function is a function corresponding to the camera scene; the target application scenario is a game scene, and the side button function is a function corresponding to the game scene.

[0081] For example, Figure 3A As shown in FIG. 1 , a schematic diagram of the smart side button setting interface in an embodiment of the present application is shown. Figure 3B , which is a schematic diagram of a user's operation of setting the side button function in a target application scenario in an embodiment of the present application. Figure 3A As shown in the figure, in the smart side button setting interface, the function menu corresponding to the volume up button, volume down button, and power button can be expanded in response to the user's opening operation. Figure 3B As shown, users can set the functions of the volume up key, volume down key, and power key according to their actual needs.

[0082] For the volume up key, the general function is to increase the volume; in the camera scene, the corresponding functions include: enlarged preview, increase brightness, increase saturation, increase color temperature, increase hue, and other custom functions; in the game scene, such as Peace Elite scene, the corresponding functions include scope magnification +, other custom touch screen area functions, etc.; in the game scene, such as King of Glory scene, the corresponding functions include the first trick, other custom touch screen area functions, etc.

[0083] For the volume down button, the general function is to reduce the volume; in the camera scene, the corresponding functions include: reducing the preview, reducing the brightness, reducing the saturation, reducing the color temperature, reducing the hue, and other custom functions; in the game scene, such as the Peace Elite scene, the corresponding functions include the scope magnification, other custom touch screen area functions, etc.; in the game scene, such as the King of Glory scene, the corresponding functions include the second trick, other custom touch screen area functions, etc.

[0084] For the power button, the function is the power button; in the camera scene, the corresponding functions are: shutter button (half press to focus / long press to take a photo), start and stop recording, switch between front and rear cameras, switch between standard / professional mode; in the game scene, such as Peace Elite scene, the corresponding functions include shooting, other functions of the custom touch screen area, etc.; in the game scene, such as King of Glory scene, the corresponding functions include big moves, other functions of the custom touch screen area, etc.

[0085] It should be noted that the functions set by the user for the volume up key, volume down key and power key are corresponding. For example, in the camera scene, the function set for the volume up key is to enlarge the preview, and the function set for the volume down key is to reduce the preview.

[0086] 202. In response to a user pressing a side button of a terminal device, generate pressing data.

[0087] 203 . Determine a current vibration waveform corresponding to a current application scenario of the terminal device and the pressure data, where different application scenarios and different pressure data correspond to different vibration waveforms.

[0088] 204. Perform tactile feedback on the pressing operation according to the current vibration waveform.

[0089] It should be noted that the description of steps 202-204 can be referred to Figure 1 101-103 in the illustrated embodiment will not be described in detail here.

[0090] 205. Respond to the user's pressing operation on the side button and execute a corresponding function.

[0091] Optionally, the method may further include: when the current application scenario includes at least two application scenarios, determining, through a preset side button function priority mapping table, that the side button function is the side button function corresponding to the first application scenario, and the first application scenario is the application scenario with the highest priority among the at least two application scenarios.

[0092] Optionally, selecting the current vibration waveform mapping table corresponding to the current application scenario from a preset vibration waveform database may include: selecting a first vibration waveform mapping table corresponding to the first application scenario from a preset vibration waveform database.

[0093] Optionally, the preset side button function priority mapping table is prioritized according to user habits, convenience of user operation, or order of higher importance.

[0094] It is understandable that, considering the conflicts in the side button functions in some application scenarios, such as the scenario where an incoming call occurs when the user is using the camera, the volume button function needs to be restored to the volume adjustment function, rather than continuing to be mapped to the function corresponding to the camera application scenario. Therefore, it is necessary to formulate a side button function priority mapping table. For each concurrent application scenario, sort them in the order of user habits / convenience for user operation / higher importance, and map and output the side button functions accordingly. As in the above example, when the incoming call pop-up window floats above the camera application interface, the mobile phone system uses the application stack list to determine the application that is focused by the user and is floating on other applications. At this time, the volume button function needs to be restored to the volume adjustment function.

[0095] Optionally, the side button includes a volume up button, a volume down button, or a power button. When the current application scenario includes a camera scenario, responding to a user pressing the side button to execute a corresponding function may include:

[0096] In response to the user pressing the volume up key, executing a corresponding zoom preview function, brightness increase function, saturation increase function, color temperature increase function, or hue increase function; or,

[0097] In response to the user pressing the volume down key, executing a corresponding zoom out preview function, brightness reduction function, saturation reduction function, color temperature reduction function, or hue reduction function; or,

[0098] In response to the user pressing the power button, the corresponding focus function, photo taking function, start / stop video recording function, front and rear lens switching function, or photo mode switching function is executed.

[0099] Optionally, the side button includes a volume up button, a volume down button, or a power button. When the current application scenario includes a game scenario, responding to the user's pressing operation on the side button to execute a corresponding function may include:

[0100] In response to the user pressing the volume up key, executing the corresponding first trick function, or increasing the magnification of the scope; or,

[0101] In response to the user pressing the volume down button, executing the corresponding second trick function, or reducing the magnification of the scope; or,

[0102] In response to the user pressing the power button, a corresponding ultimate function or a shooting function is executed.

[0103] Optionally, assuming that in response to the user pressing the volume up key, a corresponding zoom preview function is executed, the current vibration waveform changes from the first vibration waveform to the second vibration waveform to the third vibration waveform, and the zoom preview coefficient in the zoom preview operation command becomes larger and larger.

[0104] Assume that in response to the user pressing the volume up key, the corresponding brightness increase function is executed, the current vibration waveform changes from the first vibration waveform to the second vibration waveform to the third vibration waveform, and the brightness increase coefficient in the brightness increase operation command becomes larger and larger.

[0105] Assume that in response to the user pressing the volume up key, the corresponding saturation increase function is executed, the current vibration waveform changes from the first vibration waveform to the second vibration waveform to the third vibration waveform, and the saturation increase coefficient in the saturation increase operation command becomes larger and larger.

[0106] Assume that in response to the user pressing the volume up key, the corresponding color temperature increase function is executed, the current vibration waveform changes from the first vibration waveform to the second vibration waveform to the third vibration waveform, and the color temperature increase coefficient in the color temperature increase operation command becomes larger and larger.

[0107] Assume that in response to the user pressing the volume up key, the corresponding tone increase function is executed, the current vibration waveform changes from the first vibration waveform to the second vibration waveform to the third vibration waveform, and the tone increase coefficient in the tone increase operation command becomes larger and larger.

[0108] Assume that in response to the user pressing the volume down key, the corresponding zoom-out preview function is executed, the current vibration waveform changes from the first vibration waveform to the second vibration waveform to the third vibration waveform, and the zoom-out preview coefficient in the zoom-out preview operation command becomes larger and larger.

[0109] Assume that in response to the user pressing the volume down key, the corresponding brightness reduction function is executed, the current vibration waveform changes from the first vibration waveform to the second vibration waveform to the third vibration waveform, and the brightness reduction coefficient in the brightness reduction operation command becomes larger and larger.

[0110] Assume that in response to the user pressing the volume down key, the corresponding saturation reduction function is executed, the current vibration waveform changes from the first vibration waveform to the second vibration waveform to the third vibration waveform, and the saturation reduction coefficient in the saturation reduction operation command becomes larger and larger.

[0111] Assume that in response to the user pressing the volume down key, the corresponding color temperature reduction function is executed, the current vibration waveform changes from the first vibration waveform to the second vibration waveform to the third vibration waveform, and the color temperature reduction coefficient in the color temperature reduction operation command becomes larger and larger.

[0112] Assume that in response to the user pressing the volume down key, the corresponding tone reduction function is executed, and the current vibration waveform changes from the first vibration waveform to the second vibration waveform to the third vibration waveform, and the tone reduction coefficient in the tone reduction operation command becomes larger and larger.

[0113] It should be noted that the timing of steps 202 - 204 and the timing of step 205 are not limited.

[0114] The current side buttons mainly include up and down volume buttons and a power button, which can only realize the functions of volume increase and decrease and screen on / off when pressed. In this application, users can customize the functions of the side buttons in a specific application scenario through the user interface (UI) provided by the terminal device system, and bind the side buttons with the customized functions, so as to realize the functional differences of the side buttons in different application scenarios; because the hardware solution uses a pressure sensor, it can subdivide events such as light touch / light pressure / heavy pressure / double click according to the scene, thereby triggering different side button functions.

[0115] For example: in the photo application scenario, the functions corresponding to these three buttons cannot provide any useful help for the camera scenario; in this application, users can customize the up and down volume buttons through the UI interface to simulate the zoom button function of the camera to zoom in / out; the power button simulates the shutter button of the camera to achieve the functions of half-pressing to focus and full-pressing to take pictures. For example: in the scenario where the mobile phone is running a game, the up and down volume buttons and the power button can also be mapped to game function buttons at different positions on the screen to achieve the function of quickly triggering in-game moves / events. At the same time, for the buttons simulated in different application scenarios, the vibration waveform for tactile feedback is customized, so that users can obtain unique, timely and realistic feedback, and understand the function represented by the current button vibration. The embodiment of the present application can provide users with a variety of side button functions, as well as tactile feedback corresponding to each side button function, which brings convenience to users and improves the user experience of using side buttons.

[0116] In the embodiment of the present application, in response to the user's setting operation of the side button function under the target application scenario, the side button function is set to the function corresponding to the target application scenario; in response to the user's pressing operation on the side button of the terminal device, pressing data is generated; the current vibration waveform corresponding to the current application scenario of the terminal device and the pressing data is determined, and different application scenarios and different pressing data correspond to different vibration waveforms; tactile feedback is given to the pressing operation according to the current vibration waveform; in response to the user's pressing operation on the side button, an operation command is generated; and the corresponding function is executed according to the operation command. It is used to provide users with diversified side button functions to meet the actual needs of users; and to provide a vibration waveform for tactile feedback of each side button function to reduce the probability of misoperation.

[0117] like Figure 4 FIG. 1 is a schematic diagram of an embodiment of a tactile feedback device in the implementation of the present application, which may include:

[0118] A generating module 401, configured to generate pressing data in response to a user pressing a side button of a terminal device;

[0119] A determination module 402 is used to determine a current vibration waveform corresponding to a current application scenario of the terminal device and the pressing data, where different application scenarios and different pressing data correspond to different vibration waveforms;

[0120] The tactile feedback module 403 is used to provide tactile feedback for the pressing operation according to the current vibration waveform.

[0121] Optionally, the generating module 401 is specifically configured to generate pressing data in response to a user pressing a side button of the terminal device through a pressure sensor;

[0122] The tactile feedback module 403 is specifically configured to provide tactile feedback to the pressing operation according to the current vibration waveform through a linear vibration motor or an electromagnetic coil.

[0123] Optionally, the generating module 401 is specifically configured to generate pressing data in response to a user pressing a side button of the terminal device through a piezoelectric ceramic device;

[0124] The tactile feedback module 403 is specifically configured to provide tactile feedback to the pressing operation according to the current vibration waveform through the piezoelectric ceramic device.

[0125] Optionally, the determination module 402 is specifically configured to select a current vibration waveform mapping table corresponding to a current application scenario of the terminal device from a first preset vibration waveform database, wherein the first preset vibration waveform database includes vibration waveform mapping tables corresponding to different application scenarios, and each vibration waveform mapping table includes a mapping relationship between different pressure data and different vibration waveforms; and determine the corresponding current vibration waveform in the current vibration waveform mapping table according to the current pressure data;

[0126] or,

[0127] Determination module 402 is specifically used to select a current vibration waveform corresponding to the current application scenario of the terminal device from a second preset vibration waveform database, wherein the second preset vibration waveform database includes vibration waveforms corresponding to a reference pressure data range under different application scenarios; the current vibration waveform is obtained according to the current pressure data and the reference pressure data range, as well as the vibration waveform corresponding to the reference pressure data.

[0128] Optionally, the pressing data includes at least one of pressing intensity, pressing times and pressing duration.

[0129] Optionally, the pressing data includes the pressing intensity;

[0130] The tactile feedback module 403 is specifically configured to provide tactile feedback to the pressing operation according to a first vibration waveform when the pressing force is less than a first threshold; provide tactile feedback to the pressing operation according to a second vibration waveform when the pressing force is greater than or equal to the first threshold and less than a second threshold; and provide tactile feedback to the pressing operation according to a third vibration waveform when the pressing force is greater than or equal to the second threshold;

[0131] The amplitude of the first vibration waveform is smaller than the amplitude of the second vibration waveform, and the amplitude of the second vibration waveform is smaller than the amplitude of the third vibration waveform.

[0132] Optionally, the pressing data includes the pressing force and the pressing duration;

[0133] The tactile feedback module 403 is specifically configured to provide tactile feedback to the pressing operation according to the first vibration waveform when the pressing force is less than the first threshold and the pressing duration is less than the duration threshold; provide tactile feedback to the pressing operation according to the second vibration waveform when the pressing force is greater than or equal to the first threshold and less than the second threshold and the pressing duration is greater than the duration threshold; and provide tactile feedback to the pressing operation according to the third vibration waveform when the pressing force is greater than or equal to the second threshold and the pressing duration is greater than the duration threshold;

[0134] The amplitude of the first vibration waveform is smaller than the amplitude of the second vibration waveform, and the amplitude of the second vibration waveform is smaller than the amplitude of the third vibration waveform.

[0135] Optionally, the pressing data includes the pressing force and the number of pressing times;

[0136] The tactile feedback module 403 is specifically configured to provide tactile feedback to the pressing operation according to a first vibration waveform and the number of pressing times when the pressing force is less than a first threshold; provide tactile feedback to the pressing operation according to a second vibration waveform and the number of pressing times when the pressing force is greater than or equal to the first threshold and less than a second threshold; and provide tactile feedback to the pressing operation according to a third vibration waveform and the number of pressing times when the pressing force is greater than or equal to the second threshold;

[0137] The amplitude of the first vibration waveform is smaller than the amplitude of the second vibration waveform, and the amplitude of the second vibration waveform is smaller than the amplitude of the third vibration waveform.

[0138] Optionally, the device further comprises:

[0139] The setting module 404 is used to respond to the user's setting operation on the side button function in the target application scenario, and set the side button function to the function corresponding to the target application scenario.

[0140] Optionally, the setting module 404 is also used to determine, when the current application scenario includes at least two application scenarios, that the side button function is the side button function corresponding to the first application scenario through a preset side button function priority mapping table, and the first application scenario is the application scenario with the highest priority among the at least two application scenarios.

[0141] Optionally, the execution module 405 is used to respond to the user's pressing operation on the side button and execute a corresponding function.

[0142] Optionally, the side button includes a volume up button, a volume down button, or a power button. When the current application scene includes a camera scene,

[0143] The execution module 405 is specifically used to respond to the user's pressing operation on the volume up key to execute the corresponding zoom preview function, increase brightness function, increase saturation function, increase color temperature function, or increase hue function; or,

[0144] The execution module 405 is specifically used to respond to the user's pressing operation on the volume down key and execute the corresponding zoom out preview function, brightness reduction function, saturation reduction function, color temperature reduction function, or hue reduction function; or,

[0145] The execution module 405 is specifically used to respond to the user's pressing operation on the power button and execute the corresponding focus function, photo function, start / stop video recording function, switch front and rear lens function, or switch photo mode function;

[0146] In the case where the current application scenario includes a game scenario,

[0147] The execution module 405 is specifically used to respond to the user's pressing operation on the volume up key to execute the corresponding first trick function, or to increase the magnification of the scope; or

[0148] The execution module 405 is specifically used to respond to the user's pressing operation on the volume down key to execute the corresponding second trick function, or to reduce the magnification function of the scope; or

[0149] The execution module 405 is specifically used to respond to the user's pressing operation on the power button and execute the corresponding ultimate move function, or the shooting function.

[0150] like Figure 5 As shown, it is a schematic diagram of an embodiment of a terminal device in an embodiment of the present application, which may include: Figure 4 The tactile feedback device shown.

[0151] like Figure 6 As shown, it is a schematic diagram of another embodiment of the terminal device in the embodiment of the present application, which may include:

[0152] Combine the following Figure 6 The following is a detailed introduction to the various components of the mobile phone in the terminal device:

[0153] The RF circuit 610 can be used for receiving and sending signals during the process of sending and receiving information or making calls. In particular, after receiving the downlink information of the base station, it is sent to the processor 680 for processing; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit 610 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, etc. In addition, the RF circuit 610 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to the Global System of Mobile communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Messaging Service (SMS), etc.

[0154] The memory 620 can be used to store software programs and modules. The processor 680 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 620. The memory 620 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 620 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0155] The input unit 630 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile phone. Specifically, the input unit 630 may include a touch panel 631 and other input devices 632. The touch panel 631, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 631 or near the touch panel 631 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel 631 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 680, and can receive and execute commands sent by the processor 680. In addition, the touch panel 631 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 631, the input unit 630 may also include other input devices 632. Specifically, the other input devices 632 may include but are not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, etc.

[0156] The display unit 640 can be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 640 may include a display panel 641. Optionally, the display panel 641 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch panel 631 may cover the display panel 641. When the touch panel 631 detects a touch operation on or near it, it is transmitted to the processor 680 to determine the type of touch event. Subsequently, the processor 680 provides a corresponding visual output on the display panel 641 according to the type of touch event. Although in Figure 6 In the embodiment, the touch panel 631 and the display panel 641 are used as two independent components to realize the input and output functions of the mobile phone, but in some embodiments, the touch panel 631 and the display panel 641 can be integrated to realize the input and output functions of the mobile phone.

[0157] The mobile phone may also include at least one sensor 650, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 641 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 641 and / or the backlight when the mobile phone is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the mobile phone, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.

[0158] The audio circuit 660, the speaker 661, and the microphone 662 can provide an audio interface between the user and the mobile phone. The audio circuit 660 can transmit the received audio data to the speaker 661 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 662 converts the collected sound signal into an electrical signal, which is received by the audio circuit 660 and converted into audio data, and then the audio data is output to the processor 680 for processing, and then sent to another mobile phone through the RF circuit 610, or the audio data is output to the memory 620 for further processing.

[0159] Wi-Fi is a short-range wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages and access streaming media through the Wi-Fi module 670, which provides users with wireless broadband Internet access. Figure 6 A Wi-Fi module 670 is shown, but it is understandable that it is not an essential component of the mobile phone and can be omitted as needed without changing the essence of the invention.

[0160] The processor 680 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 620, and calling data stored in the memory 620, it executes various functions of the mobile phone and processes data, thereby monitoring the mobile phone as a whole. Optionally, the processor 680 may include one or more processing units; preferably, the processor 680 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 680.

[0161] The mobile phone also includes a power supply 690 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 680 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions.

[0162] Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be described in detail here.

[0163] In an embodiment of the present application, the processor 680 is used to generate pressing data in response to a user pressing a side button of a terminal device; determine a current vibration waveform corresponding to a current application scenario of the terminal device and the pressing data, different application scenarios and different pressing data correspond to different vibration waveforms; and perform tactile feedback on the pressing operation according to the current vibration waveform.

[0164] Optionally, the processor 680 is specifically used to respond to the user's pressing operation on the side button of the terminal device through the pressure sensor to generate pressing data; and to provide tactile feedback for the pressing operation according to the current vibration waveform through the linear vibration motor or electromagnetic coil.

[0165] Optionally, the processor 680 is specifically used to respond to the user's pressing operation on the side button of the terminal device through a piezoelectric ceramic device to generate pressing data; and to provide tactile feedback for the pressing operation according to the current vibration waveform through the piezoelectric ceramic device.

[0166] Optionally, the processor 680 is specifically configured to select a current vibration waveform mapping table corresponding to a current application scenario of the terminal device from a first preset vibration waveform database, wherein the first preset vibration waveform database includes vibration waveform mapping tables corresponding to different application scenarios, and each vibration waveform mapping table includes a mapping relationship between different pressure data and different vibration waveforms; and determine the corresponding current vibration waveform in the current vibration waveform mapping table according to the current pressure data;

[0167] or,

[0168] Processor 680 is specifically used to select a current vibration waveform corresponding to a current application scenario of the terminal device from a second preset vibration waveform database, wherein the second preset vibration waveform database includes vibration waveforms corresponding to a reference pressure data range under different application scenarios; and obtain the current vibration waveform according to the current pressure data and the reference pressure data range, as well as the vibration waveform corresponding to the reference pressure data.

[0169] Optionally, the pressing data includes at least one of pressing intensity, pressing times and pressing duration.

[0170] Optionally, the pressing data includes the pressing intensity;

[0171] Processor 680 is specifically used to provide tactile feedback for the pressing operation according to a first vibration waveform when the pressing force is less than a first threshold; to provide tactile feedback for the pressing operation according to a second vibration waveform when the pressing force is greater than or equal to the first threshold and less than a second threshold; and to provide tactile feedback for the pressing operation according to a third vibration waveform when the pressing force is greater than or equal to the second threshold.

[0172] Optionally, the pressing data includes the pressing force and the pressing duration;

[0173] Processor 680 is specifically used to provide tactile feedback to the pressing operation according to the first vibration waveform when the pressing force is less than the first threshold and the pressing duration is less than the duration threshold; to provide tactile feedback to the pressing operation according to the second vibration waveform when the pressing force is greater than or equal to the first threshold and less than the second threshold and the pressing duration is greater than the duration threshold; and to provide tactile feedback to the pressing operation according to the third vibration waveform when the pressing force is greater than or equal to the second threshold and the pressing duration is greater than the duration threshold.

[0174] Optionally, the pressing data includes the pressing force and the number of pressing times;

[0175] Processor 680 is specifically used to provide tactile feedback to the pressing operation based on a first vibration waveform and the number of presses when the pressing force is less than a first threshold; to provide tactile feedback to the pressing operation based on a second vibration waveform and the number of presses when the pressing force is greater than or equal to the first threshold and less than a second threshold; and to provide tactile feedback to the pressing operation based on a third vibration waveform and the number of presses when the pressing force is greater than or equal to the second threshold.

[0176] Optionally, the processor 680 is further configured to respond to a user's operation of setting a side button function in a target application scenario, and set the side button function to a function corresponding to the target application scenario.

[0177] Optionally, processor 680 is further used to determine, when the current application scenario includes at least two application scenarios, that the side button function is the side button function corresponding to the first application scenario through a preset side button function priority mapping table, and the first application scenario is the application scenario with the highest priority among the at least two application scenarios.

[0178] Optionally, the processor 680 is used to respond to the user's pressing operation on the side button and execute the corresponding function.

[0179] Optionally, the side button includes a volume up button, a volume down button, or a power button. When the current application scene includes a camera scene,

[0180] The processor 680 is specifically configured to respond to the user's pressing operation on the volume up key to execute a corresponding zoom preview function, a brightness increase function, a saturation increase function, a color temperature increase function, or a hue increase function; or,

[0181] The processor 680 is specifically configured to respond to a user pressing the volume down key to execute a corresponding zoom out preview function, a brightness reduction function, a saturation reduction function, a color temperature reduction function, or a hue reduction function; or,

[0182] The processor 680 is specifically used to respond to the user's pressing operation of the power button to execute the corresponding focus function, photo function, start / stop video recording function, switch front and rear lens function, or switch photo mode function;

[0183] In the case where the current application scenario includes a game scenario,

[0184] The processor 680 is specifically configured to respond to the user's pressing operation on the volume up key to execute the corresponding first trick function, or to increase the magnification of the scope; or

[0185] The processor 680 is specifically configured to respond to the user's pressing operation on the volume down key to execute the corresponding second trick function, or to reduce the magnification function of the scope; or

[0186] The processor 680 is specifically used to respond to the user's pressing operation on the power button and execute the corresponding ultimate function, or the shooting function.

[0187] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a server, data center, etc. that contains one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).

[0188] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0189] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0190] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0191] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0192] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.

[0193] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A tactile feedback method, characterized in that: include: In response to a user pressing a side button of a terminal device, generating pressing data; Determine a current vibration waveform corresponding to a current application scenario of the terminal device and the pressing data, where different application scenarios and different pressing data correspond to different vibration waveforms; The pressing operation is subjected to tactile feedback according to the current vibration waveform.

2. The method according to claim 1, characterized in that: The step of generating pressing data in response to a user pressing a side button of a terminal device comprises: By means of a pressure sensor, responding to a user's pressing operation on a side button of a terminal device, press data is generated; The performing tactile feedback on the pressing operation according to the current vibration waveform includes: The pressing operation is subjected to tactile feedback according to the current vibration waveform through a linear vibration motor or an electromagnetic coil.

3. The method according to claim 1, characterized in that The step of generating pressing data in response to a user pressing a side button of a terminal device comprises: By using a piezoelectric ceramic device, the user responds to the pressing operation of the side button of the terminal device and generates pressing data; The performing tactile feedback on the pressing operation according to the current vibration waveform includes: The piezoelectric ceramic device is used to provide tactile feedback to the pressing operation according to the current vibration waveform.

4. The method according to any one of claims 1 to 3, characterized in that The determining of a current vibration waveform corresponding to a current application scenario of the terminal device and the pressing data includes: Selecting a current vibration waveform mapping table corresponding to a current application scenario of the terminal device from a first preset vibration waveform database, wherein the first preset vibration waveform database includes vibration waveform mapping tables corresponding to different application scenarios, and each vibration waveform mapping table includes a mapping relationship between different pressing data and different vibration waveforms; determining a corresponding current vibration waveform in the current vibration waveform mapping table according to the current pressing data; or, A current vibration waveform corresponding to a current application scenario of the terminal device is selected from a second preset vibration waveform database, wherein the second preset vibration waveform database includes vibration waveforms corresponding to a reference pressure data range under different application scenarios; the current vibration waveform is obtained according to the current pressure data and the reference pressure data range, as well as the vibration waveform corresponding to the reference pressure data.

5. The method according to any one of claims 1 to 3, characterized in that: The pressing data includes the pressing force; The performing tactile feedback on the pressing operation according to the current vibration waveform includes: When the pressing force is less than a first threshold, performing tactile feedback on the pressing operation according to a first vibration waveform; When the pressing force is greater than or equal to the first threshold and less than a second threshold, performing tactile feedback on the pressing operation according to a second vibration waveform; When the pressing force is greater than or equal to the second threshold, performing tactile feedback on the pressing operation according to a third vibration waveform; The amplitude of the first vibration waveform is smaller than the amplitude of the second vibration waveform, and the amplitude of the second vibration waveform is smaller than the amplitude of the third vibration waveform.

6. The method according to any one of claims 1 to 3, characterized in that The pressing data includes the pressing force and the pressing duration; The performing tactile feedback on the pressing operation according to the current vibration waveform includes: When the pressing force is less than the first threshold and the pressing duration is less than the duration threshold, performing tactile feedback on the pressing operation according to the first vibration waveform; When the pressing force is greater than or equal to the first threshold and less than the second threshold, and the pressing duration is greater than the duration threshold, performing tactile feedback on the pressing operation according to the second vibration waveform; When the pressing force is greater than or equal to the second threshold, and the pressing duration is greater than the duration threshold, performing tactile feedback on the pressing operation according to a third vibration waveform; The amplitude of the first vibration waveform is smaller than the amplitude of the second vibration waveform, and the amplitude of the second vibration waveform is smaller than the amplitude of the third vibration waveform.

7. The method according to any one of claims 1 to 3, characterized in that The pressing data includes the pressing force and the number of pressing times; The performing tactile feedback on the pressing operation according to the current vibration waveform includes: When the pressing force is less than a first threshold, performing tactile feedback on the pressing operation according to the first vibration waveform and the number of pressing times; When the pressing force is greater than or equal to the first threshold and less than a second threshold, performing tactile feedback on the pressing operation according to the second vibration waveform and the number of pressing times; When the pressing force is greater than or equal to the second threshold, performing tactile feedback on the pressing operation according to a third vibration waveform and the number of pressing times; The amplitude of the first vibration waveform is smaller than the amplitude of the second vibration waveform, and the amplitude of the second vibration waveform is smaller than the amplitude of the third vibration waveform.

8. The method according to any one of claims 1 to 3, characterized in that The method further comprises: In response to the user's setting operation of the side button function under the target application scenario, the side button function is set to the function corresponding to the target application scenario.

9. The method according to claim 8, characterized in that The method further comprises: In the case that the current application scenario includes at least two application scenarios, the side button function is determined to be the side button function corresponding to the first application scenario through a preset side button function priority mapping table, and the first application scenario is the application scenario with the highest priority among the at least two application scenarios.

10. The method according to any one of claims 1 to 3, characterized in that: The side button includes a volume up button, a volume down button, or a power button, and the method further includes: In the case where the current application scene includes a camera scene, In response to the user pressing the volume up key, executing a corresponding zoom preview function, brightness increase function, saturation increase function, color temperature increase function, or hue increase function; or, In response to the user pressing the volume down key, executing a corresponding zoom out preview function, brightness reduction function, saturation reduction function, color temperature reduction function, or hue reduction function; or, In response to the user pressing the power button, executing a corresponding focus function, a photo taking function, a start / stop video recording function, a front and rear lens switching function, or a photo taking mode switching function; In the case where the current application scenario includes a game scenario, In response to the user pressing the volume up key, executing the corresponding first trick function, or increasing the magnification of the scope; or, In response to the user pressing the volume down button, executing the corresponding second trick function, or reducing the magnification function of the scope; or, In response to the user pressing the power button, a corresponding ultimate function or a shooting function is executed.

11. A tactile feedback device, characterized in that: include: A generating module, configured to generate pressing data in response to a user pressing a side button of a terminal device; A determination module, used to determine a current vibration waveform corresponding to a current application scenario of the terminal device and the pressure data, where different application scenarios and different pressure data correspond to different vibration waveforms; The feedback module is used to provide tactile feedback to the pressing operation according to the current vibration waveform.

12. A terminal device, characterized in that: include: A memory storing executable program code; a processor coupled to the memory; The processor is used to execute the method according to any one of claims 1 to 10.

13. A computer-readable storage medium comprising instructions, which, when executed on a processor, causes the processor to perform the method according to any one of claims 1 to 10.

Citation Information

Cited By

  • Intelligent switch, operation feedback method thereof and vehicle

    CN120415411A

  • Touch vibration feedback method, vibration feedback system, computer equipment and storage medium

    CN120848754A