A short vibration control method, device, equipment and storage medium
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- WUHAN JUXIN MICROELECTRONICS CO LTD
- Filing Date
- 2023-05-25
- Publication Date
- 2026-07-21
Smart Images

Figure CN116653967B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic technology applications, and in particular to a short-vibration control method, device, equipment, and storage medium. Background Technology
[0002] In related technologies, for vibration description files that do not describe vibration time parameters, a fixed vibration duration is usually given when the drive signal associated with the vibration description file is used to control the motor to vibrate. In this case, the vibration effect produced by the drive signal associated with the vibration description file to control the motor to vibrate may not match the current working scenario of the motor. Summary of the Invention
[0003] This application provides a short-vibration control technology solution.
[0004] The technical solution of this application embodiment is implemented as follows:
[0005] This application provides a short-term vibration control method, the method comprising:
[0006] Obtain the initial vibration description file that does not describe vibration time parameters;
[0007] Add a vibration duration parameter to the initial vibration description file to obtain an intermediate vibration description file;
[0008] Based on the numerical comparison results between the operating parameters corresponding to the vibration of the control motor and the vibration parameters with the same attributes described in the intermediate vibration description file, the vibration duration parameter in the intermediate vibration description file is adjusted to obtain the target vibration description file;
[0009] The motor is controlled to vibrate using the drive signal associated with the target vibration description file.
[0010] This application provides a short-term vibration control device, the device comprising:
[0011] The acquisition module is used to acquire an initial vibration description file that does not describe vibration time parameters;
[0012] An add module is used to add vibration duration parameters to the initial vibration description file to obtain an intermediate vibration description file;
[0013] The adjustment module is used to adjust the vibration duration parameter in the intermediate vibration description file based on the numerical comparison results between the operating parameters corresponding to the vibration of the control motor and the vibration parameters with the same attributes in the intermediate vibration description file, so as to obtain the target vibration description file.
[0014] A control module is used to control the motor to vibrate using a drive signal associated with the target vibration description file.
[0015] This application provides a computer device, which includes a memory and a processor. The memory stores computer-executable instructions, and the processor can implement the short-vibration control method described above when it executes the computer-executable instructions in the memory.
[0016] This application provides a computer-readable storage medium storing computer-executable instructions. When these computer-executable instructions are executed, they can implement the short-vibration control method described above.
[0017] The short-range vibration control method, apparatus, device, and storage medium provided in this application embodiment include: First, obtaining an initial vibration description file without a described vibration time parameter; second, adding a vibration duration parameter to the initial vibration description file to obtain an intermediate vibration description file; then, adjusting the vibration duration parameter in the intermediate vibration description file based on a numerical comparison between the operating parameters corresponding to the vibration of the control motor and the parameters with the same attributes described in the intermediate vibration description file to obtain a target vibration description file; finally, controlling the motor to vibrate using a drive signal associated with the target vibration description file; thus, by sequentially controlling the initial vibration description file without a described vibration time parameter... The document describes the process of adding vibration duration parameters and comparing the values of parameters with the same attributes in the intermediate vibration description file with the vibration parameters corresponding to the control motor. This allows for the adjustment of the vibration duration parameters in the intermediate vibration description file according to different actual working requirements. As a result, the motor vibration controlled by the drive signal associated with the adjusted target vibration description file can match the current working scenario of the motor. In other words, it can adaptively adjust the vibration duration described in the relevant vibration description file, making the motor vibration control more in line with actual needs and applicable to different working scenarios.
[0018] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit the technical solutions provided in the embodiments of this application. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort, wherein:
[0020] Figure 1 A schematic flowchart illustrating the first short-wave vibration control method provided in this application embodiment;
[0021] Figure 2 A schematic flowchart illustrating the second short-wave vibration control method provided in this application embodiment;
[0022] Figure 3 A flowchart illustrating the third short-wave vibration control method provided in this application embodiment;
[0023] Figure 4 A flowchart illustrating the fourth short-wave vibration control method provided in this application embodiment;
[0024] Figure 5 A schematic diagram illustrating the process of controlling a motor to vibrate using the short-vibration control method provided in the embodiments of this application;
[0025] Figure 6 A schematic diagram illustrating the adjustment of vibration duration in the short-vibration control method provided in the embodiments of this application for adjusting the relevant vibration waveform data;
[0026] Figure 7 This is a schematic diagram of the composition structure of a short-vibration control device provided in an embodiment of this application;
[0027] Figure 8 This is a schematic diagram of the composition structure of a computer device provided in an embodiment of this application. Detailed Implementation
[0028] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the specific technical solutions of this application will be further described in detail below with reference to the accompanying drawings of the embodiments of this application. The following embodiments are used to illustrate the embodiments of this application, but are not intended to limit the scope of the embodiments of this application.
[0029] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0030] In the following description, the terms "first, second, third" are used merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that "first, second, third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.
[0031] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which embodiments of this application belong. The terminology used herein is for descriptive purposes only and is not intended to limit the scope of embodiments of this application.
[0032] The short-vibration control method provided in this application embodiment can be applied to computer equipment. The function implemented by this method can be achieved by the processor in the computer equipment calling program code. Of course, the program code can be stored in the computer storage medium. It can be seen that the computer equipment includes at least a processor and a storage medium.
[0033] This application provides a short-range vibration control method, such as... Figure 1 The diagram shown is a flowchart illustrating the first short-wave vibration control method provided in this application embodiment; combined with... Figure 1 The steps S101 to S104 described herein are explained below.
[0034] Step S101: Obtain the initial vibration description file for undescribed vibration time parameters.
[0035] In some embodiments, the initial vibration description file is a file that describes the composition of relevant parameters used to control the motor to vibrate.
[0036] It should be noted that the vibration description file is one of the key elements in controlling the vibration of a linear motor: the vibration description file describes the vibration waveform of the linear motor, which indicates various vibration parameters during the motor's vibration process, such as amplitude and frequency. In other words, the function of the vibration description file is to instruct how the motor vibrates.
[0037] In some embodiments, the initial vibration description file does not include vibration time parameters, which include, but are not limited to, vibration duration, vibration start time, and vibration end time.
[0038] It should be noted that the vibration parameters described in the initial vibration description file can generate one, two or more vibration waveform data under the relevant driving voltage. When the number of generated vibration waveform data is two or more, the vibration parameters corresponding to different vibration waveform data, such as vibration frequency and vibration displacement, can be the same or different.
[0039] Step S102: Add vibration duration parameters to the initial vibration description file to obtain an intermediate vibration description file.
[0040] In some embodiments, after obtaining the initial vibration description file, a vibration duration parameter can be added to the initial vibration description file based on pre-set relevant parameters to obtain an intermediate vibration description file; here, the value of the vibration duration parameter can be represented in any form.
[0041] For example, the value of the vibration duration parameter can be 5s, or 15s, etc.
[0042] It should be noted that the vibration duration parameter can be determined based on the application scenario of the device corresponding to the initial vibration description file; or, it can be determined based on the relevant values pre-set in the device corresponding to the initial vibration description file; or, a duration value can be randomly added and determined as the vibration duration parameter.
[0043] Among them, after different devices obtain the initial vibration description file, the values of the added vibration duration parameters can be the same or different.
[0044] In some embodiments, the intermediate vibration description file is only an additional vibration duration parameter compared to the initial vibration description file.
[0045] It should be noted that the vibration duration parameter describes the duration of vibration corresponding to the relevant vibration data. Here, the value of this vibration duration parameter is usually no greater than a threshold Tmax.
[0046] Step S103: Based on the numerical comparison results between the operating parameters corresponding to the vibration of the control motor and the vibration parameters with the same attributes described in the intermediate vibration description file, adjust the vibration duration parameter in the intermediate vibration description file to obtain the target vibration description file.
[0047] In some embodiments, the operating parameters corresponding to the vibration of the control motor and the vibration parameters described in the intermediate vibration description file can be determined respectively. The values of parameters with the same attributes in the operating parameters and vibration parameters are compared. Based on the comparison results, the vibration duration parameter in the intermediate vibration description file is adjusted to obtain the target vibration description file.
[0048] Here, the vibration duration parameter in the intermediate vibration description file can be adjusted by increasing the value of the vibration duration parameter, decreasing the value of the vibration duration parameter, or keeping the value of the vibration duration parameter unchanged.
[0049] In some embodiments, the vibration duration parameter in the intermediate vibration description file can be adjusted based on the ratio between the value of the vibration interval duration parameter corresponding to the continuous vibration of the motor and the value of the vibration duration parameter in the intermediate vibration description file; or the value of the drive voltage parameter corresponding to the scene in which the motor is located can be adjusted based on the ratio between the value of the vibration voltage parameter in the intermediate vibration description file and the value of the vibration voltage parameter in the intermediate vibration description file to obtain the target vibration description file.
[0050] Here, the vibration parameters in the intermediate vibration description file and the target vibration description file can be partially the same (i.e., the value of the vibration duration parameter changes) or completely the same (i.e., the value of the vibration duration parameter does not change).
[0051] Step S104: Control the motor to vibrate using the drive signal associated with the target vibration description file.
[0052] In some embodiments, the motor is driven to vibrate using the drive signal associated with the adjusted target vibration description file. That is, the relevant vibration parameters in the target vibration description file are mapped to the motor to vibrate, and the corresponding drive signal is obtained. Then, the vibration of the drive motor is controlled based on the drive signal.
[0053] It should be noted that the driving signal can be a driving voltage.
[0054] In some embodiments, when an initial vibration description file without a vibration time parameter is obtained, firstly, a vibration duration parameter is initially added to the initial vibration description file without a vibration time parameter, thus initially supplementing and improving the initial vibration description file; then, based on the operating parameters corresponding to the vibration of the control motor, the value of the vibration duration parameter in the obtained intermediate vibration description file is adjusted according to different actual working requirements, so that the drive signal associated with the adjusted target vibration description file can control the motor to vibrate in a way that matches the current application scenario of the motor, that is, it can adaptively adjust the vibration duration parameter in the relevant vibration description file, thereby making the vibration control of the motor using the drive signal associated with the adjusted target vibration description file more in line with actual needs and applicable to different working scenarios.
[0055] The short-range vibration control method provided in this application first obtains an initial vibration description file that does not describe vibration time parameters; second, it adds vibration duration parameters to the initial vibration description file to obtain an intermediate vibration description file; then, based on the numerical comparison results between the operating parameters corresponding to the vibration of the control motor and the parameters with the same attributes in the vibration parameters described in the intermediate vibration description file, it adjusts the vibration duration parameters in the intermediate vibration description file to obtain a target vibration description file; finally, it controls the motor to vibrate using the drive signal associated with the target vibration description file; thus, by sequentially applying the initial vibration description file that does not describe vibration time parameters, the vibration control method achieves the desired vibration. The initial addition of vibration duration parameters, and the comparison of values between parameters with the same attributes in the vibration parameters of the intermediate vibration description file and the corresponding working parameters of the control motor vibration, enable the adjustment of vibration duration parameters in the intermediate vibration description file according to different actual working requirements. This allows the motor vibration control using the drive signal associated with the adjusted target vibration description file to match the current working scenario of the motor. In other words, it enables adaptive adjustment of vibration duration parameters in the relevant vibration description file, making the motor vibration control using the drive signal associated with the adjusted target vibration description file more in line with actual needs and applicable to different working scenarios.
[0056] In some embodiments, firstly, based on the vibration data corresponding to the motor's vibration as instructed by the intermediate vibration description file, a first parameter and a second parameter with the same attributes are determined among the operating parameters and vibration parameters. Then, based on the comparison result between the value of the first parameter in the operating parameters and the value of the second parameter in the vibration parameters, the value of the vibration duration parameter in the intermediate vibration description file can be adjusted to obtain the target vibration description file. This ensures that the value of the vibration duration parameter described in the adjusted target vibration description file better matches the working scenario of the motor. That is, step S102 provided in the above embodiment can be implemented by following steps S201 and S202, such as... Figure 2 The diagram shown is a flowchart illustrating the second short-wave vibration control method provided in this application embodiment. Figure 1 and Figure 2 The steps shown are explained below.
[0057] Step S201: Based on the vibration data corresponding to the vibration of the motor as instructed by the intermediate vibration description file, determine the first parameter in the operating parameters and the second parameter in the vibration parameters.
[0058] The first parameter and the second parameter are parameters with the same attributes.
[0059] In some embodiments, the first parameter in the corresponding operating parameters can be determined based on the vibration data corresponding to the vibration of the motor indicated by the intermediate vibration description file, and the second parameter with the same attributes as the first parameter can be obtained from the vibration parameters described in the intermediate vibration description file.
[0060] In some embodiments, the intermediate vibration description file indicates the vibration data corresponding to the vibration of the motor. It may refer to: the intermediate vibration description file being the vibration description file that is not the last in the vibration order among at least two vibration description files in which the drive motor vibrates continuously; or it may refer to: the value of the drive voltage parameter corresponding to the drive motor being less than the value of the vibration voltage parameter corresponding to the intermediate vibration description file, etc.
[0061] It should be noted that the first parameter and the second parameter can both be time parameters related to the vibration duration corresponding to the vibration of the motor, or voltage parameters related to the driving voltage corresponding to the vibration of the motor, etc.
[0062] Step S202: Based on the comparison result between the values of the first parameter and the second parameter, adjust the value of the vibration duration parameter in the intermediate vibration description file to obtain the target vibration description file.
[0063] In some embodiments, the values of the first parameter and the second parameter can be compared to obtain a comparison result. Based on the comparison result, the value of the vibration duration parameter in the intermediate vibration description file can be adjusted to obtain the target vibration description file.
[0064] In some embodiments, the value of the vibration duration parameter in the intermediate vibration description file can be adjusted by the ratio between the values of the first parameter and the second parameter, provided that a preset condition is met, thereby obtaining the target vibration description file.
[0065] In some embodiments, when the intermediate vibration description file is any vibration description file that is not the last in the vibration order among at least two vibration description files that drive the motor to vibrate continuously, firstly, a first parameter is determined as the vibration interval duration parameter between the vibration start time corresponding to the intermediate vibration description file and the vibration description file to be compared, and a second parameter is determined as the vibration duration parameter. This provides a basis for subsequently adjusting the value of the vibration duration parameter in the intermediate vibration description file based on the comparison result between the values of the first and second parameters. That is, step S201 provided in the above embodiment can be implemented by the following step S301, such as... Figure 3 The diagram shown is a flowchart illustrating the third short-wave vibration control method provided in this application embodiment. Figures 1 to 3The steps shown are explained below.
[0066] Step S301: If the intermediate vibration description file is a vibration description file that is not the last in the vibration order among at least two vibration description files that drive the motor to vibrate continuously, the first parameter is determined as the vibration interval duration parameter between the vibration start time corresponding to the intermediate vibration description file and the vibration description file to be compared, and the second parameter is determined as the vibration duration parameter.
[0067] The vibration description file to be compared is the vibration description file among the at least two vibration description files, where the vibration order is adjacent and the vibration order is after the intermediate vibration description file.
[0068] In some embodiments, it is necessary to obtain an intermediate vibration description file and a vibration interval duration parameter between the vibration start time corresponding to the vibration description file to be compared that is adjacent to its vibration order and whose vibration order is after it.
[0069] Here, the unit for the vibration interval duration parameter can be expressed in seconds, etc.
[0070] For example, the vibration interval duration parameter between the vibration start time corresponding to the intermediate vibration description file and the vibration description file to be compared is 5; at the same time, the vibration duration parameter in the intermediate vibration description file is 7; the unit of this parameter can be expressed in seconds.
[0071] Accordingly, step S202 provided in the above embodiments can be implemented by the following step S302:
[0072] Step S302: If the value of the vibration interval duration parameter is less than or equal to the value of the vibration duration parameter, reduce the value of the vibration duration parameter in the intermediate vibration description file to obtain the target vibration description file.
[0073] Here, continuing from the previous description, when the vibration interval duration parameter between the vibration start time corresponding to the intermediate vibration description file and the vibration description file to be compared is 5, and the vibration duration parameter in the intermediate vibration description file is 7; that is, when the value of the vibration interval duration parameter is less than the value of the vibration duration parameter in the intermediate vibration description file, it indicates that the vibration duration reserved for the intermediate vibration description file is less than its custom vibration duration. In this case, the value of the vibration duration parameter needs to be reduced so that the intermediate vibration description file in at least two vibration description files for continuous vibration of the drive motor can be replaced by the adjusted target vibration description file. This results in at least two vibration description files for continuous vibration of the drive motor that are better matched to the working environment of the motor, enabling the motor to perform multiple continuous vibrations without vibration overlap.
[0074] In one feasible implementation, the vibration duration parameter in the intermediate vibration description file is adjusted to a target value by adjusting the vibration interval duration parameter, ensuring that the difference between the vibration interval duration parameter and the target value is less than a preset threshold, thereby obtaining the target vibration description file. This ensures that when driving signals associated with at least two vibration description files are used to control the motor to vibrate continuously, vibration overlap will not occur. That is, step 302 in the above embodiment, "reducing the value of the vibration duration parameter in the intermediate vibration description file to obtain the target vibration description file," can be achieved through the following process:
[0075] Based on the value of the vibration interval duration parameter, the value of the vibration duration parameter in the intermediate vibration description file is adjusted to the target value to obtain the target vibration description file.
[0076] Wherein, the difference between the value of the vibration interval duration parameter and the target value is less than or equal to a preset threshold.
[0077] In some embodiments, the value of the vibration duration parameter in the intermediate vibration description file can be shortened based on the value of the vibration interval duration parameter to obtain the target vibration duration parameter; wherein, the duration difference between the value of the vibration interval duration parameter and the value of the target vibration duration parameter is less than or equal to a preset threshold, and the preset threshold is greater than or equal to 0; here, the preset threshold is a pre-set value that can be determined according to actual needs.
[0078] In some embodiments, firstly, when the value of the drive voltage parameter corresponding to the drive motor is less than the value of the vibration voltage parameter corresponding to the intermediate vibration description file, the first parameter is determined as the first vibration amount corresponding to the intermediate vibration waveform data, and the second parameter is determined as the second vibration amount corresponding to the intermediate vibration description file; then, correspondingly, when the first vibration amount is less than the second vibration amount, the value of the vibration duration parameter of the intermediate vibration waveform data is increased to obtain the target vibration waveform data whose corresponding vibration amount is the second vibration amount; thus, a parameter basis is provided for subsequently adjusting the value of the vibration duration parameter of the vibration waveform data corresponding to the intermediate vibration description file based on the relevant drive voltage parameter, vibration voltage parameter, and relevant vibration amount to obtain the target vibration waveform data. That is, step S201 provided in the above embodiment can be implemented by the following steps S401, such as... Figure 4 The diagram shown is a flowchart illustrating the fourth short-wave vibration control method provided in this application embodiment. Figure 1 , Figure 2 as well as Figure 4 The steps shown are explained below.
[0079] Step S401: When the value of the driving voltage parameter corresponding to the motor is less than the value of the vibration voltage parameter corresponding to the intermediate vibration description file, the first parameter is determined as the first vibration quantity corresponding to the intermediate vibration waveform data, and the second parameter is determined as the second vibration quantity corresponding to the intermediate vibration description file.
[0080] The intermediate vibration waveform data refers to the vibration waveform data generated by the vibration parameters described in the intermediate vibration description file under the numerical limitation of the driving voltage parameters.
[0081] Here, the driving voltage parameters corresponding to the drive motor can be the voltage parameters provided to the motor by the drive chip inside the electronic device, application scenario, or working system where the motor is located; at the same time, the vibration voltage parameters corresponding to the intermediate vibration description file are the vibration parameters in the intermediate vibration description file mapped to the voltage parameters corresponding to the motor after vibration according to the mapping method of the vibration parameters in the intermediate vibration description file.
[0082] The values of the driving voltage parameter and the vibration voltage parameter can be the same or different.
[0083] In some embodiments, the first vibration quantity corresponding to the intermediate vibration waveform data is the vibration quantity generated when the motor is driven to vibrate using the intermediate vibration waveform data. Similarly, the second vibration quantity corresponding to the intermediate vibration description file is the vibration quantity generated when the motor is driven to vibrate using the vibration parameters described in the intermediate vibration description file. Here, the motor-related vibration conditions are not limited.
[0084] Accordingly, step S202 provided in the above embodiments can be implemented by the following step S402:
[0085] Step S402: When the first vibration amount is less than the second vibration amount, based on the first vibration amount, the second vibration amount and the preset vibration waveform data, the value of the vibration duration parameter of the intermediate vibration waveform data is increased to obtain the target vibration waveform data with the corresponding vibration amount being the second vibration amount.
[0086] In some embodiments, preset vibration waveform data can refer to a structured vibration waveform unit; wherein, the structured vibration waveform unit is a vibration waveform with a fixed proportional length, and all vibration parameters within the structured vibration waveform unit have the same expression; here, the fixed proportion means that the length of one vibration cycle of the structured vibration waveform data is a fixed value, generally 2, 1, 1 / 2, 1 / 4, etc.
[0087] Here, when the value of the driving voltage parameter is less than the value of the vibration voltage parameter, and the first vibration amount corresponding to the intermediate vibration waveform data is less than the second vibration amount corresponding to the intermediate vibration description file, it indicates that the value of the driving voltage parameter matched to the motor is less than the value of the relevant driving voltage parameter associated with the intermediate vibration description file, and the vibration amount generated by the vibration waveform data generated by the vibration parameters described in the intermediate vibration description file under the numerical limitation of the driving voltage parameter is less than the vibration amount generated when the motor is driven to vibrate using the vibration parameters described in the intermediate vibration description file. Thus, it indicates that the vibration amount generated by driving the motor to vibrate under the above conditions has not yet reached the vibration amount corresponding to the intermediate vibration description file, and therefore it is necessary to increase the relevant vibration data (i.e., by increasing the value of the relevant vibration duration parameter) so that the final vibration amount reached by the motor reaches the vibration amount corresponding to the intermediate vibration description file.
[0088] Based on the above description, firstly, the vibration waveform data to be adjusted, which corresponds to the preset vibration waveform data and has a preset vibration duration, can be determined based on the difference between the first vibration amount and the second vibration amount; then, based on the value corresponding to the preset vibration duration, the value of the vibration duration parameter of the intermediate vibration waveform data is increased to obtain the target vibration waveform data.
[0089] Here, the target vibration waveform data can correspond to the target vibration description file.
[0090] Therefore, step S104 provided in the above embodiment can be implemented by step S403:
[0091] Step S403: Use the target vibration waveform data to control the motor to vibrate.
[0092] Meanwhile, the step S402 above, "based on the first vibration amount, the second vibration amount, and the preset vibration waveform data, increasing the value of the vibration duration parameter of the intermediate vibration waveform data to obtain the target vibration waveform data whose corresponding vibration amount is the second vibration amount," can be achieved through the following steps A1 and A2:
[0093] Step A1: Based on the ratio between the vibration difference and the vibration amount corresponding to the preset vibration waveform data, generate vibration waveform data to be added with a preset vibration duration associated with the preset vibration waveform data.
[0094] Wherein, the vibration difference is the difference between the second vibration amount and the first vibration amount.
[0095] In some embodiments, firstly, based on the ratio between the vibration difference between the second vibration amount and the first vibration amount and the vibration amount corresponding to the preset vibration waveform data, the vibration amount corresponding to N preset vibration waveform data is determined as the vibration difference; then, N preset vibration waveform data with preset vibration duration are determined as vibration waveform data to be added.
[0096] Step A2: Based on the value corresponding to the preset vibration duration, increase the value of the vibration duration parameter of the intermediate vibration waveform data to obtain the target vibration waveform data.
[0097] Here, the value corresponding to the preset vibration duration can be directly increased by the value of the vibration duration parameter of the intermediate vibration waveform data to obtain the corresponding vibration amount as the second vibration amount target vibration waveform data.
[0098] In one feasible implementation, step A2 can be achieved directly using the following process:
[0099] According to the vibration timing sequence, the intermediate vibration waveform data and the vibration waveform data to be added are fused to obtain the target vibration waveform data.
[0100] In some embodiments, the intermediate vibration waveform data and the vibration waveform data to be added are directly fused according to the vibration timing sequence to increase the value of the vibration duration parameter of the intermediate vibration waveform data, thereby obtaining the target vibration waveform data.
[0101] Here, intermediate vibration waveform data can be added after the vibration waveform data to be added to form the target vibration waveform data.
[0102] In one feasible implementation, firstly, the vibration waveform data to be added and the intermediate vibration waveform data are fused according to the vibration timing sequence. Then, a braking waveform data is added to the fused vibration waveform data. This makes the obtained target vibration waveform data more consistent with the actual vibration of the motor. That is, the above step of "fusing the intermediate vibration waveform data and the vibration waveform data to be added according to the vibration timing sequence to obtain the target vibration waveform data" can be achieved by the following steps B1 and B2:
[0103] Step B1: According to the vibration timing sequence, fuse the intermediate vibration waveform data and the vibration waveform data to be added to obtain the vibration waveform data to be combined.
[0104] Step B2: Combine the vibration waveform data to be combined with the braking waveform data to obtain the target vibration waveform data.
[0105] In some embodiments, adding the vibration waveform data to be added and the brake waveform data sequentially to the end of the intermediate vibration waveform data not only makes the vibration amount corresponding to the target vibration waveform data closer to the vibration amount corresponding to the intermediate vibration description file, but also makes the target vibration waveform data for controlling the motor to vibrate more consistent with the actual operating conditions of the motor.
[0106] The short-vibration control method provided in the above embodiments will be described below with reference to a specific embodiment. However, it should be noted that this specific embodiment is only for better illustrating the embodiments of this application and does not constitute an improper limitation on the embodiments of this application.
[0107] In related technologies, the vibration description file associated with the motor (without describing vibration time parameters) is usually implemented by playing preset vibration waveform data, which is called short vibration. The preset vibration waveform data is mostly fixed vibration waveform data with predetermined vibration length and shape. This vibration description file is typically stored and played in the following two forms:
[0108] Format 1: In the system's built-in scenario where the motor is located, such as when a keyboard key is pressed, a pre-designed fixed vibration waveform data is usually played.
[0109] Form 2: When interacting with other applications, such as triggering specific scenes in a game to control the motor to vibrate, the vibration description file is parsed to control the motor to vibrate.
[0110] Here, the vibration description file only describes vibration frequency and intensity parameters, but does not define the vibration duration. When applying this vibration description file in practice, a preset waveform database is typically set up, pre-setting fixed vibration duration waveform data for different vibration frequency levels, and compressing the relevant data at different vibration intensity levels. Thus, when it is necessary to play the vibration waveform data corresponding to the vibration parameters described in the vibration description file, the vibration waveform data is retrieved from the vibration waveform database and played. This achieves motor vibration control using drive signals related to the vibration description file, which does not describe vibration time parameters (such as vibration duration parameters). Essentially, this still plays vibration waveform data of a fixed duration; that is, the vibration duration corresponding to this waveform data cannot be adaptively adjusted to match the current working scenario of the motor.
[0111] Based on this, this application provides a short-term vibration control method to address the problem that vibration description files without vibration time parameters are often difficult to adapt to different working scenarios, thereby providing a more flexible design method for vibration duration parameters. Specifically, a preset vibration duration parameter is first added to the vibration description file without vibration time parameters to obtain an intermediate vibration description file carrying the vibration duration parameter. Then, based on the comparison results between the operating parameters corresponding to the vibration of the control motor and the relevant vibration parameters in the obtained intermediate vibration description file, the vibration duration parameter is further adjusted, so that subsequent related vibration conditions can adaptively match the current working scenario of the motor. This not only avoids situations where the vibration duration cannot adaptively match the current vibration process, such as in cases of overlapping vibrations, but also allows for adjustment of the vibration duration according to the application purpose when encountering various different situations through adaptive vibration duration.
[0112] like Figure 5 The diagram shows a flowchart illustrating the process of controlling a motor to vibrate using the short-duration vibration control method provided in this application embodiment. First, a duration description parameter is added to the initial vibration description file, which does not currently contain vibration time parameters. Figure 5 In section 501, it should be noted that the value corresponding to the duration description parameter can be an empirical value or a default value, which is usually no greater than a preset time threshold Tmax. Then, based on the scenario in which the motor is located when this vibration description parameter is issued, i.e., different actual needs, the value corresponding to the duration description parameter added in section 501 is adaptively adjusted, that is, the duration description parameter is adaptively adjusted according to the needs. Figure 5502 in the middle; Finally, according to the vibration description file describing the adjusted duration parameters, the associated drive signal controls the motor to vibrate, that is, to generate the corresponding vibration waveform data according to the adjusted vibration description file; Finally, as Figure 5 As shown in 503.
[0113] Here, the vibration duration described in the relevant vibration description file is adaptively adjusted according to the actual needs of the environment in which the motor is located. This can refer to adjusting the vibration duration described in the relevant vibration description file according to different vibration purposes, so that the vibration duration described in the target vibration description file after adjustment, i.e., the vibration duration, can adaptively match the vibration requirements of the scenario described by the motor.
[0114] Corresponding to the above ideas, the following are embodiments of applying the short-term vibration control method provided in this application to adjust the relevant vibration duration:
[0115] Example 1: A method for adaptively adjusting the vibration duration described in a vibration description file is provided. For example, when a scenario where a motor is located is detected, N consecutive vibration description files are triggered. The nth vibration description file is a vibration description file that provides a vibration duration of Tn to the system where the motor is located, and the time interval between the nth vibration description file and the (n+1)th (n+1≤N)th vibration description file is t. When Tn is detected to be greater than t, Tn is adjusted to Tn', and the difference between t and Tn' is less than or equal to T'. Here, T' is a safety time threshold greater than 0. This ensures that the drive signals associated with the N consecutive vibration description files do not interfere with each other when controlling the motor to vibrate, i.e., no vibration overlap occurs.
[0116] Example 2: A method is provided whereby the vibration amplitude decreases as the chip driving voltage corresponding to the motor decreases, thereby adjusting the vibration duration described in the relevant vibration description file to achieve the target vibration amplitude in the initial design. Specifically, after reducing the voltage (i.e., to less than or equal to the chip driving voltage), it is calculated whether the vibration amplitude corresponding to the initial vibration description file can reach the energy required for the target vibration amplitude within the original vibration duration. If so, the vibration voltage value described in the original vibration description file is directly adjusted to meet the target vibration amplitude. If not, the amplitude of the vibration waveform data generated by the vibration description file under the chip driving voltage limit is adjusted, and a preset waveform data is added to the adjusted vibration waveform data. The vibration duration corresponding to the preset waveform data is then adjusted, so that the vibration amplitude corresponding to the finally adjusted vibration waveform data reaches the target vibration amplitude. Furthermore, a braking waveform data (i.e., the vibration waveform data corresponding to the motor braking process) can be added to the adjusted vibration waveform data to ensure that the current vibration data of the motor matches the actual vibration situation of the motor.
[0117] like Figure 6 The diagram shown illustrates the adjustment of vibration duration in the short-wave vibration control method provided in this application embodiment, where the vibration duration of relevant vibration waveform data is adjusted. Figure 6 As shown in Figure a, when the vibration duration of the relevant vibration waveform data needs to be adjusted, the change in the driving voltage corresponding to the vibration waveform data before and after adjustment is illustrated. Simultaneously, as shown in Figure a... Figure 6 As shown in Figure b, when the vibration duration of the relevant vibration waveform data needs to be adjusted, the changes in vibration acceleration corresponding to the vibration waveform data before and after the adjustment are shown.
[0118] Based on the foregoing embodiments, this application also provides a short-range vibration control device, such as... Figure 7 The diagram shown is a structural schematic of a short-vibration control device provided in an embodiment of this application. The short-vibration control device 700 includes:
[0119] The acquisition module 701 is used to acquire an initial vibration description file that does not describe vibration time parameters;
[0120] Add module 702, used to add vibration duration parameters to the initial vibration description file to obtain an intermediate vibration description file;
[0121] The adjustment module 703 is used to adjust the vibration duration parameter in the intermediate vibration description file based on the numerical comparison results between the working parameters corresponding to the vibration of the control motor and the vibration parameters with the same attributes described in the intermediate vibration description file, so as to obtain the target vibration description file.
[0122] The control module 704 is used to control the motor to vibrate using the drive signal associated with the target vibration description file.
[0123] In some embodiments, the adjustment module 703 is further configured to determine a first parameter in the operating parameters and a second parameter in the vibration parameters based on the vibration data corresponding to the vibration data indicating that the motor should vibrate in the intermediate vibration description file; wherein the first parameter and the second parameter are parameters with the same attributes; and adjust the value of the vibration duration parameter in the intermediate vibration description file based on the comparison result between the value of the first parameter and the value of the second parameter to obtain the target vibration description file.
[0124] In some embodiments, the adjustment module 703 is further configured to, when the intermediate vibration description file is a vibration description file that is not the last in the vibration order among at least two vibration description files that drive the motor to vibrate continuously, determine the first parameter as the vibration interval duration parameter between the vibration start time corresponding to the intermediate vibration description file and the vibration description file to be compared, and determine the second parameter as the vibration duration parameter; wherein, the vibration description file to be compared is a vibration description file among the at least two vibration description files whose vibration order is adjacent and whose vibration order is after the intermediate vibration description file; and when the value of the vibration interval duration parameter is less than or equal to the value of the vibration duration parameter, reduce the value of the vibration duration parameter in the intermediate vibration description file to obtain the target vibration description file.
[0125] In some embodiments, the adjustment module 703 is further configured to adjust the value of the vibration duration parameter in the intermediate vibration description file to a target value based on the value of the vibration interval duration parameter, thereby obtaining the target vibration description file; wherein the difference between the value of the vibration interval duration parameter and the target value is less than or equal to a preset threshold.
[0126] In some embodiments, the adjustment module 703 is further configured to, when the value of the driving voltage parameter corresponding to the motor is less than the value of the vibration voltage parameter corresponding to the intermediate vibration description file, determine the first parameter as the first vibration amount corresponding to the intermediate vibration waveform data and determine the second parameter as the second vibration amount corresponding to the intermediate vibration description file; wherein, the intermediate vibration waveform data is vibration waveform data generated by the vibration parameters described in the intermediate vibration description file under the numerical limitation of the driving voltage parameter; when the first vibration amount is less than the second vibration amount, based on the first vibration amount, the second vibration amount and the preset vibration waveform data, increase the value of the vibration duration parameter of the intermediate vibration waveform data to obtain target vibration waveform data whose corresponding vibration amount is the second vibration amount; the control module 704 is further configured to control the motor to vibrate using the target vibration waveform data.
[0127] In some embodiments, the adjustment module 703 is further configured to generate vibration waveform data to be added, which is associated with the preset vibration waveform data and has a preset vibration duration, based on the ratio between the vibration difference and the vibration amount corresponding to the preset vibration waveform data; wherein, the vibration difference is the difference between the second vibration amount and the first vibration amount; and based on the value corresponding to the preset vibration duration, the value of the vibration duration parameter of the intermediate vibration waveform data is increased to obtain the target vibration waveform data.
[0128] In some embodiments, the adjustment module 703 is further configured to perform waveform fusion on the intermediate vibration waveform data and the vibration waveform data to be added according to the vibration timing sequence to obtain the target vibration waveform data.
[0129] In some embodiments, the adjustment module 703 is further configured to fuse the intermediate vibration waveform data and the vibration waveform data to be added according to the vibration timing sequence to obtain vibration waveform data to be combined; and to combine the vibration waveform data to be combined with the braking waveform data to obtain the target vibration waveform data.
[0130] It should be noted that the descriptions of the above device embodiments are similar to those of the above method embodiments, and have similar beneficial effects. For technical details not disclosed in the device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0131] It should be noted that, in the embodiments of this application, if the above-mentioned short-vibration control method is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, or the part that contributes to the related technology, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device (which may be a smartphone, tablet computer, etc. with a camera) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, mobile hard drives, read-only memory (ROM), magnetic disks, or optical disks. Thus, the embodiments of this application are not limited to any specific hardware and software combination.
[0132] Based on the same technical concept, this application provides a computer device for implementing the short-vibration control method described in the above method embodiments. Figure 8 This is a schematic diagram of the composition structure of a computer device provided in an embodiment of this application, such as... Figure 8 As shown, the computer device 800 includes: a processor 801, at least one communication bus 804, a communication interface 802, at least one external communication interface, and a memory 803. The communication interface 802 is configured to enable communication between these components. The communication interface 802 may include a display screen, and the external communication interface may include standard wired and wireless interfaces. The processor 801 is configured to execute a program in the memory to implement the short-vibration control method provided in the above embodiments.
[0133] Correspondingly, embodiments of this application provide a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements any of the short-vibration control methods described in the above embodiments.
[0134] Accordingly, in this application embodiment, a chip is also provided, the chip including programmable logic circuits and / or program instructions, which, when the chip is running, is used to implement any of the short-vibration control methods described in the above embodiments.
[0135] Accordingly, in this application embodiment, a computer program product is also provided, which, when executed by the processor of an electronic device, is used to implement any of the short-vibration control methods described in the above embodiments.
[0136] The descriptions of the short-vibration control device, computer equipment, and storage medium embodiments above are similar to the descriptions of the method embodiments above, and have similar technical descriptions and beneficial effects as the corresponding method embodiments. Due to space limitations, the descriptions of the method embodiments above can be followed, and therefore will not be repeated here. For technical details not disclosed in the short-vibration control device, computer equipment, and storage medium embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0137] It should be understood that the phrase "an embodiment" or "one embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of the present application. Therefore, "in one embodiment" or "one embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of the present application, the sequence number of the above-described processes does not imply the order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The sequence numbers of the above-described embodiments are merely for descriptive purposes and do not represent the superiority or inferiority of the embodiments. It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0138] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.
[0139] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.
[0140] Furthermore, in the embodiments of this application, all functional units can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in a combination of hardware and software functional units. Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium, and when executed, it performs the steps of the above method embodiments.
[0141] The above description is merely a specific implementation of the embodiments of this application, but the protection scope of the embodiments of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the embodiments of this application should be included within the protection scope of the embodiments of this application. Therefore, the protection scope of the embodiments of this application should be determined by the protection scope of the claims.
Claims
1. A short-range vibration control method, characterized in that, The method includes: Obtain the initial vibration description file that does not describe vibration time parameters; Add a vibration duration parameter to the initial vibration description file to obtain an intermediate vibration description file; Based on the numerical comparison results between the operating parameters corresponding to the vibration of the control motor and the vibration parameters with the same attributes described in the intermediate vibration description file, the vibration duration parameter in the intermediate vibration description file is adjusted to obtain the target vibration description file; The motor is controlled to vibrate using the drive signal associated with the target vibration description file.
2. The method according to claim 1, characterized in that, The comparison results between the operating parameters corresponding to the vibration based on the control motor and the vibration parameters with the same attributes described in the intermediate vibration description file are used to adjust the vibration duration parameter in the intermediate vibration description file to obtain the target vibration description file, including: Based on the vibration data corresponding to the vibration of the motor as instructed by the intermediate vibration description file, a first parameter is determined from the operating parameters, and a second parameter is determined from the vibration parameters; wherein, the first parameter and the second parameter are parameters with the same attributes; Based on the comparison between the values of the first parameter and the second parameter, the value of the vibration duration parameter in the intermediate vibration description file is adjusted to obtain the target vibration description file.
3. The method according to claim 2, characterized in that, The process of determining a first parameter from the operating parameters and a second parameter from the vibration parameters based on the vibration data corresponding to the vibration data instructing the motor to vibrate according to the intermediate vibration description file includes: When the intermediate vibration description file is a vibration description file that is not the last in the vibration order among at least two vibration description files that drive the motor to vibrate continuously, the first parameter is determined as the vibration interval duration parameter between the vibration start time corresponding to the intermediate vibration description file and the vibration description file to be compared, and the second parameter is determined as the vibration duration parameter; wherein, the vibration description file to be compared is a vibration description file among the at least two vibration description files whose vibration order is adjacent and whose vibration order is after the intermediate vibration description file; The comparison result between the values of the first parameter and the second parameter is used to adjust the value of the vibration duration parameter in the intermediate vibration description file to obtain the target vibration description file, including: If the value of the vibration interval duration parameter is less than or equal to the value of the vibration duration parameter, the value of the vibration duration parameter in the intermediate vibration description file is reduced to obtain the target vibration description file.
4. The method according to claim 3, characterized in that, The step of reducing the value of the vibration duration parameter in the intermediate vibration description file to obtain the target vibration description file includes: Based on the value of the vibration interval duration parameter, the value of the vibration duration parameter in the intermediate vibration description file is adjusted to the target value to obtain the target vibration description file; Wherein, the difference between the value of the vibration interval duration parameter and the target value is less than or equal to a preset threshold.
5. The method according to claim 2, characterized in that, The process of determining a first parameter from the operating parameters and a second parameter from the vibration parameters based on the vibration data corresponding to the vibration data instructing the motor to vibrate according to the intermediate vibration description file includes: When the value of the driving voltage parameter corresponding to the motor is less than the value of the vibration voltage parameter corresponding to the intermediate vibration description file, the first parameter is determined as the first vibration quantity corresponding to the intermediate vibration waveform data, and the second parameter is determined as the second vibration quantity corresponding to the intermediate vibration description file; wherein, the intermediate vibration waveform data is the vibration waveform data generated by the vibration parameter described by the intermediate vibration description file under the numerical limitation of the driving voltage parameter. The comparison result between the values of the first parameter and the second parameter is used to adjust the value of the vibration duration parameter in the intermediate vibration description file to obtain the target vibration description file, including: When the first vibration amount is less than the second vibration amount, based on the first vibration amount, the second vibration amount and the preset vibration waveform data, the value of the vibration duration parameter of the intermediate vibration waveform data is increased to obtain the target vibration waveform data with the corresponding vibration amount being the second vibration amount. The step of controlling the motor to vibrate using the drive signal associated with the target vibration description file includes: The motor is controlled to vibrate using the target vibration waveform data.
6. The method according to claim 5, characterized in that, The step of increasing the value of the vibration duration parameter of the intermediate vibration waveform data based on the first vibration amount, the second vibration amount, and preset vibration waveform data to obtain target vibration waveform data with the corresponding vibration amount being the second vibration amount includes: Based on the ratio between the vibration difference and the vibration amount corresponding to the preset vibration waveform data, vibration waveform data to be added with a preset vibration duration is generated, which is associated with the preset vibration waveform data; wherein, the vibration difference is the difference between the second vibration amount and the first vibration amount; Based on the value corresponding to the preset vibration duration, the value of the vibration duration parameter of the intermediate vibration waveform data is increased to obtain the target vibration waveform data.
7. The method according to claim 6, characterized in that, The step of increasing the value of the vibration duration parameter of the intermediate vibration waveform data based on the value corresponding to the preset vibration duration to obtain the target vibration waveform data includes: According to the vibration timing sequence, the intermediate vibration waveform data and the vibration waveform data to be added are fused to obtain the target vibration waveform data.
8. The method according to claim 7, characterized in that, The step of fusing the intermediate vibration waveform data and the vibration waveform data to be added according to the vibration time sequence to obtain the target vibration waveform data includes: According to the vibration timing sequence, the intermediate vibration waveform data and the vibration waveform data to be added are fused to obtain the vibration waveform data to be combined. The vibration waveform data to be combined and the braking waveform data are combined to obtain the target vibration waveform data.
9. A short-range vibration control device, characterized in that, The device includes: The acquisition module is used to acquire an initial vibration description file that does not describe vibration time parameters; An add module is used to add vibration duration parameters to the initial vibration description file to obtain an intermediate vibration description file; The adjustment module is used to adjust the vibration duration parameter in the intermediate vibration description file based on the numerical comparison results between the operating parameters corresponding to the vibration of the control motor and the vibration parameters with the same attributes in the intermediate vibration description file, so as to obtain the target vibration description file. A control module is used to control the motor to vibrate using a drive signal associated with the target vibration description file.
10. A computer device, characterized in that, The computer device includes a memory and a processor. The memory stores computer-executable instructions, and when the processor executes the computer-executable instructions in the memory, it can implement the short-vibration control method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed, enable the short-vibration control method according to any one of claims 1 to 8.