Vibration driving method based on micro touch sense, and related device
Vibration drive files are generated through dynamic effect models and preset mapping rules, which solves the problem of micro-touch that existing technology cannot match APP and application scene animations, achieves the combination of animation and touch, and improves user experience.
Patent Information
- Application Number
- PCT/CN2023/087322
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-10
- Publication Date
- 2024-10-17
AI Technical Summary
The existing technology cannot generate suitable micro-touch interaction effects based on APP and application scene animation matching, resulting in poor user experience.
By obtaining the node coordinates and total duration of the dynamic effect model of the touch interface, a dynamic effect curve is generated, and converted into a vibration characteristic curve using preset mapping rules, and finally a vibration drive file is generated to drive the vibration motor to achieve the combination of animation and touch.
It realizes the automatic generation of appropriate touch effects based on the dynamic effect model of the APP and application scenarios, improves the user experience and enriches the interaction mode.
Smart Images

Figure CN2023087322_17102024_PF_FP_ABST
Abstract
Description
Vibration driving method based on microtouch and related equipment Technical Field
[0001] The present invention relates to the technical field of vibration driving methods, and in particular to a vibration driving method based on micro-touch and related equipment. Background Art
[0002] The application of motion effects in touch-screen electronic device systems and apps within electronic devices is becoming more and more widespread. For example, on smartphones, micro-motion-based interaction has become one of the important interaction methods within electronic device platforms.
[0003] In order to enrich the user experience on mobile phones, micro-interactions and vibration effects in electronic devices are combined, and appropriate touch effects are added to special interaction scenarios and gestures to guide user interaction and achieve micro-touch effects. This has also become a new application research direction.
[0004] However, in electronic devices of the prior art, the vibration effect is simply a pre-defined vibration driving method combined with a fixed application scenario, such as the vibration feedback of key presses when typing. However, when new APPs and application scenarios are added to the electronic device, it is impossible to generate a suitable micro-touch interaction effect according to the animation matching of the APPs and application scenarios.
[0005] Therefore, it is necessary to provide a new vibration driving method based on micro-touch and related equipment to solve the above technical problems. Technical issues
[0006] The purpose of the present invention is to provide a micro-touch-based vibration driving method and related equipment that can generate suitable micro-touch interaction effects according to animation matching of APP and application scenarios, effectively improving user experience. Technical Solutions
[0007] In order to achieve the above-mentioned object, in a first aspect, the present invention provides a vibration driving method based on microtouch, comprising the following steps:
[0008] According to a given input of the touch interface, a plurality of node coordinates of a dynamic effect model corresponding to the given input and a total duration of the plurality of node coordinates are obtained;
[0009] Generate a dynamic effect curve according to the plurality of node coordinates and the total duration;
[0010] According to a preset mapping rule, a vibration characteristic curve is obtained from the dynamic effect curve;
[0011] A vibration drive file is generated according to the vibration characteristic curve; wherein the vibration drive file is used to drive the vibration motor to vibrate.
[0012] Preferably, the step of generating a dynamic effect curve according to the coordinates of the plurality of points and the total duration specifically includes the following sub-steps:
[0013] Generate the dynamic effect curve trajectory coordinates corresponding to time t according to the plurality of node coordinates Pn=(xn, yn) and the total duration, and obtain the dynamic effect curve trajectory according to the dynamic effect curve trajectory coordinates; wherein n is a positive integer greater than 1;
[0014] The dynamic effect curve trajectory is first-order differentiated to obtain the x-direction velocity and y-direction velocity, thereby obtaining the moment t of the dynamic effect curve trajectory and the x-direction velocity Xvel(t) and y-direction velocity Yvel(t) of the curve trajectory corresponding to the moment t, and then generating the dynamic effect curve.
[0015] Preferably, in the step of obtaining a plurality of node coordinates of a dynamic effect model corresponding to a given input and a total duration of the plurality of node coordinates according to the given input of the touch interface, four node coordinates are obtained.
[0016] Preferably, the step of obtaining the vibration characteristic curve from the dynamic effect curve according to the preset mapping rule specifically includes:
[0017] Generate an x-direction time-speed curve and a y-direction time-speed curve corresponding to time t according to the dynamic effect curve;
[0018] According to the x-direction velocity Xvel(t) and the preset relative frequency interval [f_min, f_max], the x-direction velocity Xvel(t) is made to maintain its own velocity trend according to the x-direction time-velocity curve, and is simultaneously mapped to the preset relative frequency interval [f_min, f_max], so that the maximum value of the x-direction velocity Xvel(t) is mapped to f_max and the minimum value of the x-direction velocity Xvel(t) is mapped to f_min, and finally a vibration time-frequency curve is generated;
[0019] According to the y-direction velocity Yvel(t) and the preset relative intensity interval [0, 1], the y-direction velocity Yvel(t) is mapped to the preset relative intensity interval [0, 1], so that the maximum value of the y-direction velocity Yvel(t) is mapped to 1 and the minimum value of the y-direction velocity Yvel(t) is mapped to 0, and weighted processing is performed to finally generate a vibration time-intensity curve;
[0020] The vibration time-frequency curve and the vibration time-intensity curve are used as the vibration characteristic curve.
[0021] Preferably, the step of generating a vibration drive file according to the vibration characteristic curve includes:
[0022] Event node information is generated according to the vibration characteristic curve and written into a readable vibration format file, thereby generating the vibration drive file.
[0023] Preferably, in the step of making the x-direction velocity Xvel(t) maintain its own velocity trend according to the x-direction time-velocity curve and simultaneously mapping it to the preset relative frequency interval [f_min, f_max], the corresponding mapping function is a monotonic function, and the function form includes linear mapping and nonlinear mapping forms;
[0024] In the step of mapping the y-direction velocity Yvel(t) to the preset relative intensity interval [0, 1], the corresponding mapping function is a monotonic function, and the function form includes linear mapping and nonlinear mapping forms.
[0025] Preferably, the dynamic effect model is any one of a third-order Bezier curve animation model, an RK4 animation model, and a DHO animation model.
[0026] In a second aspect, the present invention further provides a vibration drive device, comprising:
[0027] An acquisition module, configured to acquire, based on a given input on the touch interface, a plurality of node coordinates of a dynamic effect model corresponding to the given input and a total duration of the plurality of node coordinates;
[0028] A dynamic effect curve generation module, the dynamic effect curve generation module is used to generate a dynamic effect curve according to the plurality of node coordinates and the total duration;
[0029] A vibration characteristic curve generating module, which is used to obtain a vibration characteristic curve from the dynamic effect curve according to a preset mapping rule;
[0030] A vibration file generation module is used to generate a vibration drive file according to the vibration characteristic curve; wherein the vibration drive file is used to drive the vibration motor to vibrate.
[0031] In a third aspect, the present invention also provides an electronic device comprising a processor, a memory, and a vibration driver program stored in the memory and executable on the processor, wherein the vibration driver program, when executed by the processor, implements the steps of the above-mentioned micro-touch-based vibration driving method provided by the present invention.
[0032] In a fourth aspect, the present invention further provides a computer-readable storage medium, on which a vibration driving program is stored. When the vibration driving program is executed by a processor, the steps in the above-mentioned micro-touch-based vibration driving method provided by the present invention are implemented. Beneficial effects
[0033] Compared with the related art, in the vibration driving method and related equipment based on micro-touch of the present invention, the dynamic effect model of the APP and application scenario is read and its dynamic effect curve is obtained, and the dynamic effect curve is mapped and bound with the tactile effect in combination with the preset mapping rules, thereby generating vibration driving files corresponding to different dynamic effect models to achieve different driving effects, realizing an interactive mode of animation and tactile binding, and realizing the animation parameter setting of the dynamic effect model while also automatically generating appropriate tactile effects according to the set dynamic effect model parameters, effectively improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. Those skilled in the art can also derive other drawings based on these drawings without inventive work, among which:
[0035] FIG1 is a flowchart of a vibration driving method based on microtouch provided by an embodiment of the present invention;
[0036] FIG2 is a structural block diagram of a vibration driving device provided by an embodiment of the present invention;
[0037] FIG3 is a structural block diagram of an electronic device provided by an embodiment of the present invention. Modes for Carrying Out the Invention
[0038] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0039] Implementation List 1
[0040] Referring to FIG. 1 , an embodiment of the present invention provides a vibration driving method based on micro-touch, which is used for touch-controlled electronic terminals such as mobile phones and tablet computers. The method includes the following steps:
[0041] Step S1: According to a given input of the touch interface, a plurality of node coordinates Pn of a dynamic effect model corresponding to the given input and a total duration dur of the plurality of node coordinates Pn are obtained, wherein n is a positive integer greater than 1.
[0042] The given input can be a dynamic effect within the APP, or the internal operating system of the electronic terminal, etc.
[0043] In this step, the type of the dynamic effect model is not limited and can be a third-order Bezier curve animation model, an RK4 animation model, a DHO animation model, or the like. In this embodiment, a third-order Bezier curve animation model is used as an example for detailed description. Specifically, four node coordinates of the dynamic effect model corresponding to the given input are obtained, but the number is not limited to four.
[0044] Step S2: generating a dynamic effect curve according to the plurality of node coordinates and the total duration.
[0045] This step specifically includes:
[0046] Step S21, generating the Bezier curve trajectory coordinates corresponding to the time t (i.e., the dynamic effect curve trajectory coordinates) according to the multiple node coordinates Pn=(xn, yn) and the total duration dur, and obtaining the Bezier curve trajectory (i.e., the dynamic effect curve trajectory) according to the Bezier curve trajectory coordinates; wherein n is a positive integer greater than 1.
[0047] Taking 4 node coordinates as an example, the obtained node coordinates are P1=(x1, y1), P2=(x2, y2), P3=(x3, y3), and P4=(x4, y4).
[0048] Step S22: Taking the first-order derivative of the Bezier curve trajectory to obtain the x-direction velocity and the y-direction velocity, thereby obtaining the time t of the Bezier curve trajectory and the x-direction velocity Xvel(t) and the y-direction velocity Yvel(t) of the Bezier curve trajectory at the corresponding time t, and then generating the Bezier curve (i.e., the dynamic effect curve).
[0049] Step S3: Obtain a vibration characteristic curve from the dynamic effect curve according to a preset mapping rule.
[0050] Specifically, this step includes:
[0051] Step S31 : generating an x-direction time-speed curve and a y-direction time-speed curve corresponding to time t according to the Bezier curve (dynamic effect curve).
[0052] Step S32: Based on the x-direction velocity Xvel(t) and the preset relative frequency interval [f_min, f_max], the x-direction velocity Xvel(t) is made to maintain its own velocity trend according to the x-direction time-velocity curve, and at the same time is mapped to the preset relative frequency interval [f_min, f_max], so that the maximum value of the x-direction velocity Xvel(t) is mapped to f_max, and the minimum value of the x-direction velocity Xvel(t) is mapped to f_min. The corresponding mapping function is a monotonic function, and the function form includes linear mapping and nonlinear mapping forms, and finally a vibration time-frequency curve is generated;
[0053] Step S33: According to the y-direction rate Yvel(t) and the preset relative intensity interval [0, 1], the y-direction rate Yvel(t) is mapped to the preset relative intensity interval [0, 1], so that the maximum value of the y-direction rate Yvel(t) is mapped to 1, and the minimum value of the y-direction rate Yvel(t) is mapped to 0, and weighted processing is performed on this basis to increase volatility. The corresponding mapping function is a monotonic function, and the function form includes linear mapping and nonlinear mapping forms, and finally a vibration time-intensity curve is generated.
[0054] It should be noted that the order of step S32 and step S33 can be interchanged.
[0055] Step S34: Using the vibration time-frequency curve and the vibration time-intensity curve as the vibration characteristic curve.
[0056] Step S4: generating a vibration drive file according to the vibration characteristic curve; wherein the vibration drive file is used to drive the vibration motor to vibrate.
[0057] This step specifically includes: generating event node information according to the vibration characteristic curve, and writing the information into a readable vibration format file, thereby generating the vibration drive file.
[0058] Taking the method of this embodiment as an example of applying it to a mobile phone, the "micro-touch" vibration mode implemented by the above method and the micro-interaction with the APP or operating system in the mobile phone is to combine various animation models and tactile sensations in the mobile phone operating system or APP, etc., to establish a mapping relationship between the tactile effect and the animation model. By modifying various animation models, the tactile vibration effect can also be modified at the same time, realizing the combination of micro-motion effects, adding appropriate tactile effects to special interactive scenes and gestures to guide user interaction, and effectively enriching the user experience. For example, switching between left and right cards, deleting, and giving a like, the animation model and the tactile effect are mapped and bound, and the development can automatically generate appropriate tactile effects according to the set animation model parameters while setting the animation parameters of the interface interaction control, realizing deep binding of animation and tactile sensation.
[0059] Compared with the related art, in the vibration driving method based on micro-touch of the present invention, the dynamic effect model of the APP and the application scenario is read and its dynamic effect curve is obtained, and the dynamic effect curve is mapped and bound with the tactile effect in combination with the preset mapping rules, thereby generating vibration driving files corresponding to different dynamic effect models to achieve different driving effects, realizing an interactive mode of animation and tactile binding, and realizing the animation parameter setting of the dynamic effect model while also being able to automatically generate a suitable tactile effect according to the set dynamic effect model parameters, that is, combining the tactile sense with various dynamic effect models (third-order Bezier curve model, RK4 animation model, DHO animation model, etc.) to provide users with a new experience, and forming a new tactile interaction through the mapping method of animation model-tactile parameters, effectively improving the user experience.
[0060] Example 2
[0061] Referring to FIG. 2 , an embodiment of the present invention further provides a vibration driving device 200 , including:
[0062] The acquisition module 201 is used to obtain, according to a given input of the touch interface, a plurality of node coordinates of a dynamic effect model corresponding to the given input and a total duration of the plurality of node coordinates.
[0063] The dynamic effect curve generating module 202 is configured to generate a dynamic effect curve according to the plurality of node coordinates and the total duration.
[0064] The type of the dynamic effect model is not limited here and can be a third-order Bezier curve animation model, an RK4 animation model, a DHO animation model, etc. In this embodiment, the following detailed description is given using a third-order Bezier curve animation model as an example. Specifically, four node coordinates of the dynamic effect model corresponding to the given input are obtained, but the number is not limited to four.
[0065] Specifically, the dynamic effect curve generation module 202 generates the Bezier curve trajectory coordinates corresponding to the time t (i.e., the dynamic effect curve trajectory coordinates) based on the multiple node coordinates Pn=(xn, yn) and the total duration dur, and obtains the Bezier curve trajectory (i.e., the dynamic effect curve trajectory) based on the Bezier curve trajectory coordinates; wherein n is a positive integer greater than 1. Taking 4 node coordinates as an example, the obtained node coordinates are P1=(x1, y1), P2=(x2, y2), P3=(x3, y3), and P4=(x4, y4). Afterwards, the dynamic effect curve generation module 2 performs a first-order derivative on the Bezier curve trajectory to obtain the x-direction velocity and the y-direction velocity, thereby obtaining the time t of the Bezier curve trajectory and the x-direction velocity Xvel(t) and y-direction velocity Yvel(t) of the Bezier curve trajectory corresponding to the time t, and then generates the Bezier curve (i.e., the dynamic effect curve).
[0066] The vibration characteristic curve generating module 203 is used to obtain a vibration characteristic curve from the dynamic effect curve according to a preset mapping rule.
[0067] Specifically, the vibration characteristic curve generation module 203 first generates an x-direction time-velocity curve and a y-direction time-velocity curve corresponding to time t according to the Bezier curve (dynamic effect curve); the vibration characteristic curve generation module 203 then makes the x-direction rate Xvel(t) maintain its own rate trend according to the x-direction time-velocity curve and the preset relative frequency interval [f_min, f_max], and at the same time maps it to the preset relative frequency interval [f_min, f_max], so that the maximum value of the x-direction rate Xvel(t) is mapped to f_max, and the minimum value of the x-direction rate Xvel(t) is mapped to f_min. The corresponding mapping function is a monotonic function, and the function form includes linear mapping and nonlinear mapping. Linear mapping form, finally generating a vibration time-frequency curve; at the same time, the vibration characteristic curve generation module 203 maps the y-direction rate Yvel(t) to the preset relative intensity interval [0, 1] according to the y-direction rate Yvel(t) and the preset relative intensity interval [0, 1], so that the maximum value of the y-direction rate Yvel(t) is mapped to 1, and the minimum value of the y-direction rate Yvel(t) is mapped to 0, and weighted processing is performed on this basis to increase volatility. The corresponding mapping function is a monotonic function, and the function form includes linear mapping and nonlinear mapping forms, and finally generating a vibration time-intensity curve; finally, the vibration characteristic curve generation module 203 uses the vibration time-frequency curve and the vibration time-intensity curve as the vibration characteristic curve.
[0068] A vibration file generation module 204 is configured to generate a vibration drive file based on the vibration characteristic curve; wherein the vibration drive file is used to drive the vibration motor to vibrate. Specifically, the vibration file generation module 204 generates event node information based on the vibration characteristic curve and writes it into a readable vibration format file, thereby generating the vibration drive file.
[0069] In this embodiment, the technical effects achieved by the vibration driving device 200 are the same as the technical effects and principles achieved by the vibration driving method based on micro-touch provided above in the present invention, and will not be repeated here.
[0070] Example 3
[0071] An embodiment of the present invention further provides an electronic device 300, comprising a processor 301, a memory 302, and a vibration driver program stored in the memory 302 and executable on the processor 301. When the vibration driver program is executed by the processor 301, the steps of the micro-touch-based vibration driving method provided by the present invention are implemented as follows:
[0072] According to a given input of the touch interface, a plurality of node coordinates Pn of a dynamic effect model corresponding to the given input and a total duration dur of the plurality of node coordinates Pn are obtained, where n is a positive integer greater than 1.
[0073] Generate a dynamic effect curve based on the multiple node coordinates and the total duration. Specifically, it includes: generating the Bezier curve trajectory coordinates corresponding to the time t according to the multiple node coordinates Pn=(xn, yn) and the total duration dur (i.e., the dynamic effect curve trajectory coordinates), and obtaining the Bezier curve trajectory (i.e., the dynamic effect curve trajectory) based on the Bezier curve trajectory coordinates; wherein n is a positive integer greater than 1, and taking 4 node coordinates as an example, the obtained node coordinates are P1=(x1, y1), P2=(x2, y2), P3=(x3, y3), and P4=(x4, y4). Then, the Bezier curve trajectory is first-order derived to obtain the x-direction velocity and the y-direction velocity, thereby obtaining the time t of the Bezier curve trajectory and the x-direction velocity Xvel(t) and y-direction velocity Yvel(t) of the Bezier curve trajectory corresponding to the time t, and then generating the Bezier curve (i.e., the dynamic effect curve).
[0074] According to the preset mapping rules, the vibration characteristic curve is obtained from the dynamic effect curve. Specifically, the x-direction time-velocity curve and the y-direction time-velocity curve corresponding to the time t are first generated according to the Bezier curve (dynamic effect curve). Then, according to the x-direction velocity Xvel(t) and the preset relative frequency interval [f_min, f_max], the x-direction rate Xvel(t) is made to maintain its own rate trend according to the x-direction time-velocity curve, and at the same time mapped to the preset relative frequency interval [f_min, f_max], so that the maximum value of the x-direction rate Xvel(t) is mapped to f_max, and the minimum value of the x-direction rate Xvel(t) is mapped to f_min. The corresponding mapping function is a monotonic function, and the function form includes linear mapping and nonlinear mapping forms, and finally a vibration time-frequency curve is generated. Based on the y-direction velocity Yvel(t) and the preset relative intensity interval [0, 1], the y-direction velocity Yvel(t) is mapped to the preset relative intensity interval [0, 1], so that the maximum value of the y-direction velocity Yvel(t) is mapped to 1 and the minimum value of the y-direction velocity Yvel(t) is mapped to 0. Weighted processing is then performed on this basis to increase volatility. The corresponding mapping function is a monotonic function, and the function form includes linear mapping and nonlinear mapping forms, ultimately generating a vibration time-intensity curve. Finally, the vibration time-frequency curve and the vibration time-intensity curve are used as the vibration characteristic curve.
[0075] A vibration drive file is generated according to the vibration characteristic curve; wherein the vibration drive file is used to drive the vibration motor to vibrate.
[0076] It should be noted that the electronic device 300 also includes a vibration motor 303. When the vibration driver is executed by the processor 301, the processor 301 directly drives the vibration motor 303 based on the vibration drive file generated by mapping the dynamic effect model of the given input to achieve animation-tactile interaction. In other words, when the electronic device 300 is in use, it can achieve the technical effects achieved by the above-mentioned micro-touch-based vibration drive method. For details, please refer to the description of the above-mentioned micro-touch-based vibration drive method, which will not be repeated here.
[0077] Example 4
[0078] An embodiment of the present invention further provides a computer-readable storage medium, on which a vibration driving program is stored. When the vibration driving program is executed by a processor, the steps in the above-mentioned micro-touch-based vibration driving method provided by the present invention are implemented, so that the technical effect that can be achieved is the same as the technical effect achieved by the above-mentioned micro-touch-based vibration driving method, which will not be repeated here.
[0079] The above description is only an embodiment of the present invention. It should be pointed out that those skilled in the art can make improvements without departing from the creative concept of the present invention, but these improvements all fall within the scope of protection of the present invention.
Claims
1. A vibration driving method based on micro-touch, characterized in that: The microtouch-based vibration method comprises the following steps: According to a given input of the touch interface, a plurality of node coordinates of a dynamic effect model corresponding to the given input and a total duration of the plurality of node coordinates are acquired; Generate a dynamic effect curve according to the plurality of node coordinates and the total duration; According to a preset mapping rule, a vibration characteristic curve is obtained from the dynamic effect curve; A vibration driving file is generated according to the vibration characteristic curve; wherein the vibration driving file is used to drive the vibration motor to vibrate.
2. The micro-touch-based vibration driving method according to claim 1, characterized in that: The step of generating a dynamic effect curve according to the coordinates of the plurality of points and the total duration specifically includes the following sub-steps: Generate the dynamic effect curve trajectory coordinates corresponding to time t according to the plurality of node coordinates Pn=(xn, yn) and the total duration, and obtain the dynamic effect curve trajectory according to the dynamic effect curve trajectory coordinates; wherein n is a positive integer greater than 1; The dynamic effect curve trajectory is first-order differentiated to obtain the x-direction velocity and the y-direction velocity, thereby obtaining the moment t of the dynamic effect curve trajectory and the x-direction velocity Xvel(t) and y-direction velocity Yvel(t) of the curve trajectory corresponding to the moment t, thereby generating the dynamic effect curve.
3. The micro-touch-based vibration driving method according to claim 2, characterized in that: In the step of obtaining multiple node coordinates of the dynamic effect model corresponding to the given input and the total duration of the multiple node coordinates according to the given input of the touch interface, four node coordinates are obtained.
4. The micro-touch-based vibration driving method according to claim 2, characterized in that: The step of obtaining the vibration characteristic curve from the dynamic effect curve according to the preset mapping rule specifically includes: Generate an x-direction time-speed curve and a y-direction time-speed curve corresponding to time t according to the dynamic effect curve; According to the x-direction speed Xvel(t) and the preset relative frequency interval [f_min, f_max], the x-direction speed Xvel(t) maintains its own speed trend according to the x-direction time-speed curve, and is simultaneously mapped to the preset relative frequency interval [f_min, f_max], so that the maximum value of the x-direction speed Xvel(t) is mapped to f_max, and the minimum value of the x-direction speed Xvel(t) is mapped to f_min, and finally a vibration time-frequency curve is generated; According to the y-direction rate Yvel(t) and the preset relative intensity interval [0, 1], the y-direction rate Yvel(t) is mapped to the preset relative intensity interval [0, 1], so that the maximum value of the y-direction rate Yvel(t) is mapped to 1, and the minimum value of the y-direction rate Yvel(t) is mapped to 0, and weighted processing is performed to finally generate a vibration time-intensity curve; The vibration time-frequency curve and the vibration time-intensity curve are used as the vibration characteristic curve.
5. The micro-touch-based vibration driving method according to claim 4, characterized in that: The step of generating a vibration drive file according to the vibration characteristic curve includes: Event node information is generated according to the vibration characteristic curve and written into a readable vibration format file, thereby generating the vibration drive file.
6. The vibration driving method based on micro-touch according to claim 4, characterized in that: In the step of making the x-direction velocity Xvel(t) maintain its own velocity trend according to the x-direction time-velocity curve and simultaneously mapping it to the preset relative frequency interval [f_min, f_max], the corresponding mapping function is a monotonic function, and the function form includes linear mapping and nonlinear mapping forms; In the step of mapping the y-direction velocity Yvel(t) to the preset relative intensity interval [0, 1], the corresponding mapping function is a monotonic function, and the function form includes linear mapping and nonlinear mapping forms.
7. The vibration driving method based on micro-touch according to claim 1, characterized in that: The dynamic effect model is any one of a third-order Bezier curve animation model, an RK4 animation model, and a DHO animation model.
8. A vibration driving device, characterized in that: include: A collection module, the collection module is used to obtain a plurality of node coordinates of a dynamic effect model corresponding to a given input and a total duration of the plurality of node coordinates according to a given input of the touch interface; A dynamic effect curve generation module, the dynamic effect curve generation module is used to generate a dynamic effect curve according to the plurality of node coordinates and the total duration; A vibration characteristic curve generating module, the vibration characteristic curve generating module is used to obtain a vibration characteristic curve from the dynamic effect curve according to a preset mapping rule; A vibration file generation module is used to generate a vibration drive file according to the vibration characteristic curve; wherein the vibration drive file is used to drive the vibration motor to vibrate.
9. An electronic device, characterized in that: The method comprises a processor, a memory, and a vibration driving program stored in the memory and executable on the processor, wherein the vibration driving program, when executed by the processor, implements the steps in the vibration driving method based on micro-touch as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a vibration driving program, and when the vibration driving program is executed by the processor, the steps of the vibration driving method based on micro-touch as claimed in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Animation effect implementation method and device and storage equipment
CN107945253A
System and method for realizing dynamic effect of shopping cart
CN108008938A
Dynamic response method, electronic equipment and storage medium
CN113805772A
Vibration control method and device and computer readable storage medium
CN114924642A
Method and system for achieving haptics effect
WO2022006958A1
