Touchpad excitation waveform generation method, electronic equipment and storage medium
By partitioning the touchpad and generating partition-specific actuator excitation waveforms, the vibration inconsistency of the touchpad at different positions and pressures is solved, and the consistency of the global vibration effect and vibration consistency under different pressures is achieved, which improves the user's tactile experience.
Patent Information
- Application Number
- CN202410134335.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-30
- Publication Date
- 2025-08-01
AI Technical Summary
The existing touch panels produce inconsistent external interference under pressing at different positions, making it difficult to achieve the global vibration effect and the consistency of vibration under pressing with different pressures, affecting the user's tactile experience.
By dividing the touch panel into multiple partitions and identifying each partition with a vibration system, the actuator excitation waveform of each partition under different finger pressing pressure is generated, and the preset area division method and vibration mode are optimized, and a compensation filter signal is generated to drive the actuator to achieve consistency of the global vibration effect and consistency of vibration under different pressure pressing.
The vibration consistency of the touchpad at different positions and pressures is achieved, the user's tactile experience is improved, the vibration and tailing phenomenon is avoided, and the quality of tactile feedback is improved.
Smart Images

Figure CN120406715A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of tactile feedback, and in particular to a method for generating an actuator excitation waveform of a touchpad, an electronic device, and a storage medium. Background Art
[0002] With the development of actuator technologies such as piezoelectric ceramics and linear motors, more and more touchpads of electronic devices adopt vibration technology to achieve the tactile feedback effect when the user presses.
[0003] Generally, similar electronic devices can be summarized as a touchpad with a touch positioning function, supported by a certain structure to be in a suspended state, and relying on the actuator to drive the touchpad to vibrate, so as to provide a feedback effect to the user.
[0004] Since the touchpad has a certain area, it usually requires multiple points of support to maintain its suspended state. However, this design will cause inconsistent external interference to the pressing at different positions during the actual use by the user. The user's finger pressing can be regarded as a kind of damping and spring, and the influence of this damping and spring on the touchpad vibration system is also inconsistent under different pressing forces, resulting in the inability to achieve the consistency of the global vibration effect and the consistency of vibration under different pressure pressings. Summary of the Invention
[0005] Embodiments of the present invention aim to provide a method for generating an actuator excitation waveform of a touchpad, an electronic device, and a storage medium, which can solve the problem that the existing touchpad cannot achieve the consistency of the global vibration effect and the consistency of vibration under different pressure pressings.
[0006] To solve the above technical problems, a first aspect embodiment of the present invention provides a method for generating an actuator excitation waveform of a touchpad, the method including:
[0007] Dividing the touchpad into multiple partitions according to a preset area division method;
[0008] Identifying the vibration system of each partition, and generating an actuator excitation waveform of each partition under a variety of different finger pressing pressures.
[0009] Optionally, the dividing the touchpad into multiple partitions according to a preset area division method includes: dividing the touchpad into multiple partitions according to the grid shape of the touchpad.
[0010] Optionally, the dividing the touchpad into multiple partitions according to a preset area division method includes: dividing the touchpad into multiple partitions according to the vibration mode of the touchpad.
[0011] Optionally, the identifying the vibration system of each partition and generating an actuator excitation waveform of each partition under a variety of different finger pressing pressures includes:
[0012] For each partition on the touchpad, measure and calculate the vibration system characteristics of each partition under various different finger pressing pressures, where the vibration system characteristics include the time-domain impulse response and the amplitude-frequency response;
[0013] Generate a compensation filter signal based on the time-domain impulse response and the amplitude-frequency response, and combine it with the desired final vibration effect to generate an actuator excitation waveform.
[0014] Optionally, the measuring and calculating the vibration system characteristics of each partition on the touchpad under various different finger pressing pressures includes:
[0015] Select one partition from the already determined touchpad partitions;
[0016] Apply a finger pressing pressure to the selected partition, and obtain the pressure value of the selected partition under the finger pressing pressure;
[0017] Based on the obtained pressure value of the selected partition, measure and calculate the vibration system characteristics of the selected partition under the finger pressing pressure, where the vibration system characteristics include the time-domain impulse response and the amplitude-frequency response.
[0018] Optionally, the generating a compensation filter signal based on the time-domain impulse response and the amplitude-frequency response, and combining it with the desired final vibration effect to generate an actuator excitation waveform includes:
[0019] Generate a compensation filter signal for the vibration system based on the amplitude-frequency response and the time-domain impulse response;
[0020] Generate a target drive electrical signal based on the compensation filter signal and the initial drive signal of the desired final vibration effect;
[0021] Drive the vibration system with the target drive electrical signal so that the vibration system generates an actuator excitation waveform. Optionally, the method further includes: storing the actuator excitation waveforms of each partition generated above under various different finger pressing pressures.
[0022] Correspondingly, an embodiment of the second aspect of the present invention provides an electronic device, where the electronic device includes: a processor, a memory, a touch chip, a pressure sensor, and an actuator, and the processor is electrically connected to the memory, the touch chip, the pressure sensor, and the actuator respectively; where:
[0023] The processor is configured to divide the touchpad into multiple partitions according to a preset area division method, identify the vibration system of each partition, and generate an actuator excitation waveform of each partition under various different finger pressing pressures;
[0024] The memory is used to store the actuator excitation waveforms of each partition under various different finger pressing pressures;
[0025] The touch chip is used to detect the position coordinates of the finger pressing on the touchpad and transmit the position coordinates to the processor;
[0026] The pressure sensor is used to detect the pressure value of the finger pressing on the touchpad and transmit the pressure value to the processor;
[0027] The processor is further used to analyze the position coordinate and pressure value data, obtain the actuator excitation waveform corresponding to the position coordinate and pressure value data from the memory, and output it to the actuator;
[0028] The actuator is used to provide a haptic feedback vibration effect according to the actuator excitation waveform output by the processor.
[0029] Correspondingly, an embodiment of the third aspect of the present invention provides an electronic device, including: a memory, a processor, and a computer program stored on the memory and running on the processor. When the computer program is executed by the processor, it implements the method for generating the touchpad excitation waveform according to the embodiment of the first aspect of the present invention.
[0030] Correspondingly, an embodiment of the fourth aspect of the present invention provides a computer storage medium, on which a program for the method for generating the touchpad excitation waveform is stored. When the program for the method for generating the touchpad excitation waveform is executed by a processor, it implements the method for generating the touchpad excitation waveform according to the embodiment of the first aspect of the present invention.
[0031] Compared with the prior art, the present invention provides a method for generating a touchpad excitation waveform, an electronic device, and a storage medium. The method for generating the touchpad excitation waveform includes dividing the touchpad into multiple partitions according to a preset area division method, identifying the vibration system of each partition, and generating the actuator excitation waveforms of each partition under various different finger pressing pressures. Thus, in actual use, the corresponding actuator excitation waveform can be selected according to the finger pressing pressure information and the partition position coordinate information for playback, so as to achieve the consistency of the global vibration effect and the consistency of the vibration under different pressure presses, and improve the user's haptic experience. Thus, the problem that the existing touchpad cannot achieve the consistency of the global vibration effect and the consistency of the vibration under different pressure presses can be solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] One or more embodiments are exemplarily illustrated by the pictures in the corresponding drawings. These exemplary illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are represented as similar elements, unless otherwise stated. The drawings in the figures do not constitute a scale limitation.
[0033] Figure 1 are schematic diagrams of two existing typical internal suspension structures of a touchpad;
[0034] Figure 2 is a schematic flowchart of a method for generating an excitation waveform of a touchpad provided by the present invention;
[0035] Figure 3 is a schematic diagram of a partition of a method for generating an excitation waveform of a touchpad provided by the present invention;
[0036] Figure 4 is another schematic diagram of a partition of a method for generating an excitation waveform of a touchpad provided by the present invention;
[0037] Figure 5 is a schematic diagram of a partition of a method for generating an excitation waveform of a touchpad provided by the present invention;
[0038] Figure 6 is a schematic diagram of an excitation waveform of the first partition in a method for generating an excitation waveform of a touchpad provided by the present invention;
[0039] Figure 7 is a schematic diagram of an excitation waveform of the second partition in a method for generating an excitation waveform of a touchpad provided by the present invention;
[0040] Figure 8 is a schematic diagram of the structure of an electronic device provided by the present invention. Detailed implementation manners
[0041] For ease of understanding the present invention, the present invention will be described in more detail below with reference to the drawings and specific embodiments. It should be noted that when an element is expressed as "fixed to" another element, it can be directly on the other element, or there can be one or more intermediate elements therebetween. When an element is expressed as "connected to" another element, it can be directly connected to the other element, or there can be one or more intermediate elements therebetween. The terms "upper", "lower", "inner", "outer", "bottom", etc. used in this specification indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, and are only for facilitating the description of the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus cannot be construed as a limitation on the present invention. In addition, the terms "first", "second", "third", etc. are only used for descriptive purposes and cannot be construed as indicating or implying relative importance.
[0042] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as commonly understood by those skilled in the technical field to which the present invention pertains. The terms used in this specification in the description of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used in this specification includes any and all combinations of one or more of the related listed items.
[0043] In addition, the technical features involved in different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0044] With the development of actuator technologies such as piezoelectric ceramics and linear motors, more and more touchpads of electronic devices adopt vibration technologies to achieve the tactile feedback effect when the user presses.
[0045] Generally, similar electronic devices can be summarized as touchpads with touch positioning functions, which are supported by a certain structure and become a suspended state, relying on actuators to drive the touchpad to vibrate, so as to provide a feedback effect to the user.
[0046] Specifically, the internal structure of such a touchpad all involves a suspended structure of a cantilever beam, which is used to support the top touchpad and serve as a spring structure, or to detect the magnitude of the pressing force of the user on the touchpad. As Figure 1 shown are schematic diagrams of two typical internal suspended structures of touchpads, where the bent structure is an equivalent spring, and its direction can be horizontal or vertical.
[0047] Since the touchpad has a certain area, it usually requires multi-point support to maintain its suspended state. However, this design will cause inconsistent external interference when the user presses different positions during actual use. The user's finger pressing can be regarded as a kind of damping and spring, and the influence of this damping and spring on the touchpad vibration system is also inconsistent under different pressing forces, resulting in the inability to achieve the consistency of the global vibration effect and the consistency of vibration under different pressure presses. Moreover, the vibration responses at different positions of the touchpad itself vary in amplitude, and it is necessary to compensate for the areas with weak responses.
[0048] Therefore, during the R & D process, the inventor discovered the above technical problems and proposed a method for generating a touchpad excitation waveform with a haptic feedback function. By adopting a partitioned design concept for the excitation waveform of the touchpad actuator and considering that the vibration system will deviate under various different finger pressing forces, the excitation waveform of the actuator is optimized and corrected. Specifically, the touchpad is divided into multiple partitions according to a preset area division method, and a haptic feedback vibration system under various different finger pressing positions and pressing forces in each partition is modeled to generate a series of actuator excitation waveforms, so that in actual use by the user, the corresponding actuator excitation waveform can be selected for playback according to the finger pressing pressure information and partition information, to achieve the consistency of the global vibration effect and the consistency of vibration under different pressure presses, and improve the user's haptic experience. Thus, the problem that the existing touchpad cannot achieve the consistency of the global vibration effect and the consistency of vibration under different pressure presses can be solved.
[0049] To facilitate the understanding of the above inventive concept of the present invention, the following provides a more detailed description of the above inventive concept of the present invention in conjunction with the accompanying drawings and specific embodiments.
[0050] In one embodiment, as Figure 2 shown, the present invention provides a method for generating a touchpad excitation waveform with a haptic feedback function, and the method includes:
[0051] S1. Divide the touchpad into multiple partitions according to a preset area division method;
[0052] S2. Identify the vibration system for each partition and generate the actuator excitation waveforms for each partition under various different finger pressing pressures.
[0053] In this embodiment, by dividing the touchpad into multiple partitions according to a preset area division method, identifying the vibration system for each partition, and generating the actuator excitation waveforms for each partition under various different finger pressing pressures. Thus, in actual use, the corresponding actuator excitation waveform can be selected for playback according to the finger pressing pressure information and the partition position coordinate information, to achieve the consistency of the global vibration effect and the consistency of vibration under different pressure presses, and improve the user's haptic experience. Thus, the problem that the existing touchpad cannot achieve the consistency of the global vibration effect and the consistency of vibration under different pressure presses can be solved.
[0054] In one embodiment, in step S1, dividing the touchpad into multiple partitions according to a preset area division method includes: dividing the touchpad into multiple partitions according to the grid pattern of the touchpad.
[0055] As Figure 3 shown, the touchpad includes several grid-shaped areas, and correspondingly divides the touchpad into multiple partitions according to the several grid patterns of the touchpad.
[0056] Exemplarily, the sizes and shapes of a plurality of grid-like regions may be the same or different. As shown in FIG. X, the shapes of a plurality of grid-like regions are rectangular and the sizes are the same, and the touchpad is divided into a plurality of grid-like partitions that are rectangular and have the same size.
[0057] In one embodiment, in step S1, the touchpad is divided into a plurality of partitions according to a preset region division method, including: dividing the touchpad into a plurality of partitions according to the vibration modes of the touchpad.
[0058] As Figure 4 shown, the touchpad includes a plurality of vibration modes, and the touchpad is correspondingly divided into a plurality of partitions according to the plurality of vibration modes of the touchpad.
[0059] The vibration mode of the touchpad is a vibration state with a specific mode of the touchpad. When the excitation frequency of a certain touch area of the touchpad is close to the frequency of a certain order of vibration mode, the vibration mode of the touch area can be determined.
[0060] Therefore, the touchpad can be correspondingly divided into a plurality of partitions according to the vibration modes of the touchpad. Since the vibration modes of the touchpad generally appear irregular, the partitions divided according to the vibration modes of the touchpad also appear irregular.
[0061] In one embodiment, in step S2, the vibration system of each partition is identified to generate an actuator excitation waveform under various different finger pressing pressures for each partition; specifically including:
[0062] S21. According to each partition on the touchpad, measure and calculate the vibration system characteristics of each partition under various different finger pressing pressures, and the vibration system characteristics include a time-domain impulse response and an amplitude-frequency response.
[0063] S22. Generate a compensation filter signal according to the time-domain impulse response and the amplitude-frequency response, and generate an actuator excitation waveform in combination with the expected final vibration effect.
[0064] In this embodiment, according to each partition on the touchpad, measure and calculate the vibration system characteristics including the time-domain impulse response and the amplitude-frequency response of each partition under various different finger pressing pressures, generate a compensation filter signal according to the time-domain impulse response and the amplitude-frequency response, and generate an actuator excitation waveform in combination with the expected final vibration effect. Drive the vibration system to generate vibration through the actuator excitation waveform to form haptic feedback, and realize the open-loop control of the vibration waveform without empirical debugging.
[0065] Further, in step S21, according to each partition on the touchpad, measure and calculate the vibration system characteristics of each partition under various different finger pressing pressures, where the vibration system characteristics include time-domain impulse response and amplitude-frequency response; specifically including:
[0066] S211. Select one partition from the already determined touchpad partitions.
[0067] Specifically, based on the already determined touchpad partitions, select one partition, press a finger on this partition, and obtain the position coordinates of the finger pressing on this partition of the touchpad through the touch chip detection, marked as partition (i,j). As Figure 3 or Figure 4 shown.
[0068] S212. Apply a finger pressing pressure to the selected partition and obtain the pressure value of the selected partition under this finger pressing pressure.
[0069] Specifically, based on the selected partition, press a finger on the selected partition and apply a finger pressing pressure to the selected partition, and obtain the pressure value k of the selected partition through the pressure sensor detection. As Figure 3 or Figure 4 shown.
[0070] S213. According to the obtained pressure value of the selected partition, measure and calculate the vibration system characteristics of the selected partition under this finger pressing pressure, where the vibration system characteristics include time-domain impulse response and amplitude-frequency response.
[0071] In this embodiment, the impulse response of the vibration system is used to analyze the response characteristics of the vibration system. The impulse response of the vibration system is a way to represent the system characteristics with a time function. Based on the impulse response, the response of the vibration system under any input action can be solved. The impulse response of the vibration system can be determined by measuring the vibration system, and the specific method of measuring the vibration system here is not limited.
[0072] Exemplarily, one measurement method of the impulse response of the vibration system can be to use the received logarithmic swept-frequency signal as the excitation signal and perform a signal excitation of a set duration on the vibration system; during the signal excitation process, obtain the measured vibration signal of the measurement element in the electronic device relative to the vibration system measurement; determine the impulse response of the vibration system according to the measured vibration signal and the voltage signal possessed by the vibration system. After determining the impulse response of the vibration system, perform time-domain to frequency-domain conversion on the impulse response to obtain the amplitude-frequency response.
[0073] Specifically, in step S213, according to the obtained pressure value of the selected partition, the vibration system characteristics of the selected partition under the finger pressing pressure are measured and calculated, and the vibration system characteristics include the time-domain impulse response and the amplitude-frequency response; specifically, it includes:
[0074] S2131. Take the obtained pressure value of the selected partition as the excitation signal, and perform signal excitation on the vibration system for a set duration.
[0075] S2132. During the signal excitation process, obtain the measured vibration signal measured by the pressure sensor relative to the vibration system.
[0076] S2133. Determine the impulse response of the vibration system according to the measured vibration signal and the voltage signal possessed by the vibration system, so as to obtain the time-domain impulse response.
[0077] S2134. Perform discrete Fourier transform on the time-domain sequence of the impulse response to obtain the frequency-domain sequence of the impulse response, so as to obtain the amplitude-frequency response.
[0078] In this embodiment, the processor measures and calculates the vibration system characteristics of the selected partition under the finger pressing pressure according to the obtained pressure value of the selected partition, and the vibration system characteristics include the time-domain impulse response and the amplitude-frequency response.
[0079] Repeating the above steps S212 and S213 can generate the vibration system characteristics including the time-domain impulse response and the amplitude-frequency response corresponding to the selected partition under multiple different finger pressing pressures.
[0080] Correspondingly, in step S22, a compensation filter signal is generated according to the time-domain impulse response and the amplitude-frequency response, and an actuator excitation waveform is generated in combination with the expected final vibration effect.
[0081] Specifically, in the implementation of haptic feedback, it can be regarded as driving the vibration system to generate an excitation waveform for vibration through the generated drive electrical signal. Among them, the vibration system can be understood as a system that generates vibration for haptic feedback. For example, the vibration system can be an actuator.
[0082] The excitation waveform can be understood as a quantization value of the haptic effect. The excitation waveform can be a displacement waveform, a velocity waveform, or an acceleration waveform. Different service application requirements correspond to different excitation waveforms, that is, different haptic feedback effects correspond to different excitation waveforms. Since the bandwidth of the vibration structure involved in the vibration system is very limited, vibration tailing will occur during vibration, that is, after the drive electrical signal stops, the vibration system will still generate after-vibration, resulting in the haptic feedback not being crisp enough and affecting the user's haptic experience.
[0083] In the prior art, one way to solve vibration tailing is to use the initial braking method to rapidly reduce the amplitude of the linear motor, and use the feedback braking method to control the natural decay of the linear motor, thereby further reducing the oscillation period of the vibration motor and shortening the braking time. Its essence is to apply a reverse voltage to the trailing vibration to shorten the vibration length. However, it needs to be adjusted for each target device, and this method is empirical rather than methodological, with poor portability. In this embodiment, a compensation filter signal is generated according to the time-domain impulse response and the amplitude-frequency response, and combined with the desired final vibration effect, an actuator excitation waveform is generated. The actuator excitation waveform is used to drive the vibration system to generate vibration to form haptic feedback, realizing open-loop control of the actuator excitation waveform without empirical debugging.
[0084] This step S22 processes the vibration system characteristics including the time-domain impulse response and the amplitude-frequency response obtained in the above step S21 to generate a compensation filter signal, and combined with the desired final vibration effect, generates an actuator excitation waveform. The actuator excitation waveform is used to drive the vibration system to generate vibration for haptic feedback.
[0085] In step S22, a compensation filter signal is generated according to the amplitude-frequency response and the time-domain impulse response, and combined with the desired final vibration effect, an actuator excitation waveform is generated; specifically including:
[0086] S221. Generate a compensation filter signal for the vibration system according to the amplitude-frequency response and the time-domain impulse response, specifically including:
[0087] S2211. Based on the amplitude-frequency response and the time-domain impulse response, determine the minimum-phase system of the impulse response based on the frequency-domain sequence combined with the minimum-phase determination algorithm.
[0088] S2212. Determine the inverse system signal of the minimum-phase system through fast Fourier transform.
[0089] S2213. Input the inverse system signal as the signal to be filtered into a preset low-pass / band-pass filter.
[0090] S2214. Perform convolution processing on the inverse system signal through the low-pass / band-pass filter to obtain the output compensation filter signal.
[0091] In this embodiment, the impulse response of the vibration system is used to analyze the response characteristics of the vibration system to determine the impulse response of the vibration system. After determining the impulse response of the vibration system, time-domain to frequency-domain conversion is performed on the impulse response, and filtering processing is carried out to obtain the compensation filter signal.
[0092] S222. Generate a target drive electrical signal according to the compensation filter signal and the initial drive signal of the desired final vibration effect.
[0093] For a vibration system, after determining the compensation filter signal, for various actuator excitation waveforms generated by the vibration system, the compensation filter signal can be used for compensation to obtain a target drive electrical signal, and further obtain the actuator excitation waveform. For different vibration systems, their compensation filter signals may be different, and it is necessary to pre-determine the compensation filter signals for different vibration systems respectively.
[0094] Specifically, in step S222, according to the compensation filter signal and the initial drive signal of the expected final vibration effect, a target drive electrical signal is generated, including:
[0095] S2221. Perform convolution processing on the compensation filter signal and the initial drive signal, and determine the signal obtained after the convolution processing as the target drive electrical signal to be generated.
[0096] Specifically, perform convolution on the compensation filter hc(t) and the initial drive signal sd(t) to obtain a compensated drive signal. Using the following formula: si(t) = sd(t) * hc(t), the signal obtained after the convolution processing can be determined as the target drive electrical signal to be generated.
[0097] S2222. Adjust the preset drive electrical signal by adjusting the modulation parameters until the target drive electrical signal is generated.
[0098] Specifically, adjust the preset drive electrical signal by adjusting the modulation parameters until the target drive electrical signal is generated. Just using the target drive electrical signal to drive the vibration system can obtain the actuator excitation waveform.
[0099] S223. Drive the vibration system with the target drive electrical signal so that the vibration system generates an actuator excitation waveform.
[0100] In this step, the target drive electrical signal is used to drive the vibration system to generate an excitation waveform for vibration, thereby generating an actuator excitation waveform (such as Figure 3 and Figure 4 the waveforms (i, j) shown in
[0101] to be used for forming the tactile feedback corresponding to the vibration request.
[0102] Further, by repeating the above steps S221 to S223, actuator excitation waveforms of the selected partition under various different finger pressing pressures can be generated.
[0103] Further, by repeating the above steps S21 and 22, actuator excitation waveforms of each partition under various different finger pressing pressures can be generated.
[0104] In one embodiment, the method further includes: S3. Storing the actuator excitation waveforms of each partition generated above under various different finger pressing pressures.
[0105] In this embodiment, the actuator excitation waveforms of each partition generated above under various different finger pressing pressures are stored in the memory of the electronic device. In this way, the processor can call the corresponding actuator excitation waveforms from the memory of the electronic device according to the different requirements of different service applications. Specifically, when a vibration request of a service application is received, the actuator excitation waveform corresponding to the desired tactile feedback for the vibration request is obtained from the actuator excitation waveforms stored in the memory of the electronic device.
[0106] Among them, the electronic device can be any device with communication and storage functions, such as: intelligent devices with network functions such as tablet computers, mobile phones, e-readers, remote controls, personal computers, laptops, in-vehicle devices, Internet TVs, wearable devices, etc.
[0107] In one embodiment, the method further includes: S4. When obtaining touchpad data, analyzing the touchpad data and outputting an actuator excitation waveform corresponding to the touchpad data.
[0108] Specifically, when the user's finger presses on the touchpad, the touch chip detects and obtains the position coordinates of the partition on the touchpad where the finger presses, and the pressure sensor detects and obtains the finger pressing pressure of the partition on the touchpad, and forms the touchpad data by combining the position coordinates of the partition and the finger pressing pressure value of the partition and transmits it to the processor.
[0109] When the processor obtains the touchpad data, it analyzes the touchpad data, obtains the position coordinates of the partition and the finger pressing pressure value of the partition from it, determines the actuator excitation waveform, and obtains the corresponding actuator excitation waveform of the desired tactile feedback from the actuator excitation waveforms stored in the memory of the electronic device to the vibration system, so that the vibration system provides a tactile feedback vibration effect.
[0110] In this embodiment, in actual use, the corresponding actuator excitation waveform can be selected for playback according to the finger pressing pressure information and the partition information to achieve the consistency of the global vibration effect and the consistency of the vibration under different pressure presses, and improve the user's tactile experience.
[0111] To facilitate the understanding of the above inventive concept of the present invention, the above inventive concept of the present invention will be described in more detail below with a specific embodiment and in conjunction with the accompanying drawings.
[0112] As Figure 5 shown, the touchpad includes a first partition 1 and a second partition 2. Among them, the first partition 1 is located at the middle position of the touchpad, and the second partition 2 is located at the upper left corner position of the touchpad.
[0113] As Figure 6 shown, it is the excitation waveform of the first partition 1. It can be seen from Figure 6 that, compared with the excitation waveform obtained based on the system identification result of pressing, the excitation waveform obtained based on the system identification result without pressing on the first partition 1 has a more serious tail, which does not meet the design expectation of the excitation waveform and will bring a relatively bad user experience. It shows that the system identification based on pressing will bring greater beneficial effects.
[0114] As Figure 7 shown, it is the excitation waveform of the second partition 2. It can be seen from Figure 7 that, compared with the excitation waveform obtained based on the system identification result of the second partition 2, the excitation waveform obtained based on the system identification result of the first partition 1 on the second partition 2 has a more serious tail, which does not meet the design expectation of the excitation waveform and will bring a relatively bad user experience. It shows that the waveform optimization based on partitions will bring beneficial effects.
[0115] Based on the same inventive concept, in one embodiment, as Figure 8 shown, the present invention further provides an electronic device 900. The electronic device 900 is applied to a method for generating an actuator excitation waveform of a touchpad with a haptic feedback function described in any of the above embodiments. The electronic device 900 includes: a processor 901, a memory 902, a touch chip 904, a pressure sensor 905, and an actuator 906. The processor 901 is electrically connected to the memory 902, the touch chip 904, the pressure sensor 905, and the actuator 906 respectively; wherein:
[0116] The processor 901 is configured to divide the touchpad into multiple partitions according to a preset area division method, identify the vibration system of each partition, and generate an actuator excitation waveform of each partition under various different finger pressing pressures;
[0117] The memory 902 is configured to store the actuator excitation waveforms of each partition under various different finger pressing pressures;
[0118] The touch chip 904 is configured to detect the position coordinates of a finger pressing on the touchpad and transmit the position coordinates to the processor 901;
[0119] The pressure sensor 905 is used to detect the pressure value of a finger pressing on the touchpad and transmit the pressure value to the processor 901;
[0120] The processor 901 is further configured to analyze the position coordinate and pressure value data, obtain the actuator excitation waveform corresponding to the position coordinate and pressure value data from the memory 902, and output it to the actuator 906;
[0121] The actuator 906 is configured to provide a haptic feedback vibration effect according to the actuator excitation waveform output by the processor 901.
[0122] Wherein, the electronic device can be any device with communication and storage functions, such as: intelligent devices with network functions such as tablet computers, mobile phones, e-readers, remote controls, personal computers, laptop computers, in-vehicle devices, Internet TVs, wearable devices, etc.
[0123] In this embodiment, the processor divides the touchpad into multiple partitions according to a preset area division method, identifies the vibration system for each partition, and generates the actuator excitation waveforms for each partition under various different finger pressing pressures. Thus, in actual use, the processor can select the corresponding actuator excitation waveform for playback according to the finger pressing pressure information provided by the pressure sensor and the partition position coordinate information provided by the touch chip, so as to achieve the consistency of the global vibration effect and the vibration under different pressure presses, and improve the user's haptic experience. Thus, the problem that the existing touchpad cannot achieve the consistency of the global vibration effect and the vibration under different pressure presses can be solved.
[0124] It should be noted that the above-mentioned electronic device embodiment and the method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment, and the technical features in the method embodiment are correspondingly applicable to the electronic device embodiment, which will not be elaborated here.
[0125] Based on the same concept, in one embodiment, the present invention further provides an electronic device, as Figure 8 shown, the electronic device 900 includes: a memory 902, a processor 901, and one or more computer programs stored in the memory 902 and executable on the processor 901. The memory 902 and the processor 901 are coupled together through a bus system 903. When the one or more computer programs are executed by the processor 901, the following steps of a method for generating a touchpad excitation waveform provided by the embodiments of the present invention are implemented:
[0126] S1. Divide the touchpad into multiple partitions according to a preset area division method;
[0127] S2. Identify the vibration system for each partition to generate the actuator excitation waveforms of each partition under multiple different finger pressing pressures.
[0128] The method disclosed in the embodiments of the present invention described above can be applied to or implemented by the processor 901. The processor 901 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in the processor 901 or instructions in the form of software. The processor 901 may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The processor 901 can implement or execute each method, step, and logic block diagram disclosed in the embodiments of the present invention. The general-purpose processor may be a microprocessor or any conventional processor, etc. Combining the steps of the method disclosed in the embodiments of the present invention can be directly embodied as being executed and completed by the hardware decoding processor, or executed and completed by a combination of the hardware and software modules in the decoding processor. The software module may be located in the storage medium, and this storage medium is located in the memory 902. The processor 901 reads the information in the memory 902 and combines its hardware to complete the steps of the foregoing method.
[0129] It can be understood that the memory 902 in the embodiments of the present invention can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), a ferromagnetic random access memory (FRAM), a flash memory or other memory technologies, a compact disk read-only memory (CD-ROM), a digital versatile disk (DVD) or other optical disk storage, a magnetic cassette, a magnetic tape, a magnetic disk storage or other magnetic storage devices; the volatile memory can be a random access memory (RAM). By way of example but not limitation, many forms of RAM are available, such as a static random access memory (SRAM), a synchronous static random access memory (SSRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a sync link dynamic random access memory (SLDRAM), a direct rambus random access memory (DRRAM).The memories described in the embodiments of the present invention are intended to include, but are not limited to, these and any other suitable types of memories.
[0130] It should be noted that the above embodiments of the electronic device and the method embodiments belong to the same concept. For the specific implementation process, please refer to the method embodiments. The technical features in the method embodiments are correspondingly applicable to the embodiments of the electronic device, and will not be elaborated here.
[0131] In addition, in an exemplary embodiment, the embodiments of the present invention also provide a computer storage medium, specifically a computer-readable storage medium. For example, it includes a memory 902 storing a computer program. One or more programs of the method for generating a touchpad excitation waveform are stored on the computer storage medium. When the one or more programs of the method for generating a touchpad excitation waveform are executed by a processor 901, the following steps of a method for generating a touchpad excitation waveform provided by the embodiments of the present invention are implemented:
[0132] S1. Divide the touchpad into multiple partitions according to a preset area division method;
[0133] S2. Identify the vibration system for each partition, and generate actuator excitation waveforms for each partition under various different finger pressing pressures.
[0134] It should be noted that the program embodiments of the method for generating a touchpad excitation waveform on the above computer-readable storage medium and the method embodiments belong to the same concept. For the specific implementation process, please refer to the method embodiments. The technical features in the method embodiments are correspondingly applicable to the embodiments of the above computer-readable storage medium, and will not be elaborated here.
[0135] It should be noted that in this article, the term "including", "comprising" or any other variation thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of another identical element in the process, method, article or device including that element.
[0136] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it; under the concept of the present invention, the technical features in the above embodiments or different embodiments can also be combined, and the steps can be implemented in any order, and there are many other variations in different aspects of the present invention as described above. For the sake of brevity, they are not provided in detail; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A method for generating a touchpad excitation waveform, characterized in that The method for generating the touchpad excitation waveform includes: Dividing the touchpad into multiple partitions according to a preset area division method; Identifying the vibration system for each partition and generating the actuator excitation waveform for each partition under various different finger pressing pressures.
2. The method for generating a touchpad excitation waveform according to claim 1, wherein The step of dividing the touchpad into multiple partitions according to a preset area division method includes: dividing the touchpad into multiple partitions according to the grid pattern of the touchpad.
3. The method for generating a touchpad excitation waveform according to claim 1, wherein The step of dividing the touchpad into multiple partitions according to a preset area division method includes: dividing the touchpad into multiple partitions according to the vibration mode of the touchpad.
4. The method for generating a touchpad excitation waveform according to claim 1, wherein The step of identifying the vibration system for each partition and generating the actuator excitation waveform for each partition under various different finger pressing pressures includes: Measuring and calculating the vibration system characteristics of each partition on the touchpad under various different finger pressing pressures, where the vibration system characteristics include the time-domain impulse response and the amplitude-frequency response; Generating a compensation filter signal based on the time-domain impulse response and the amplitude-frequency response, and combining with the desired final vibration effect to generate the actuator excitation waveform.
5. The method for generating a touchpad excitation waveform according to claim 4, wherein The step of measuring and calculating the vibration system characteristics of each partition on the touchpad under various different finger pressing pressures includes: Selecting one partition from the already determined touchpad partitions; Applying a finger pressing pressure to the selected partition and obtaining the pressure value of the selected partition under the finger pressing pressure; Measuring and calculating the vibration system characteristics of the selected partition under the finger pressing pressure according to the obtained pressure value of the selected partition, where the vibration system characteristics include the time-domain impulse response and the amplitude-frequency response.
6. The method for generating a touchpad excitation waveform according to claim 5, wherein The step of generating a compensation filter signal based on the time-domain impulse response and the amplitude-frequency response, and combining with the desired final vibration effect to generate the actuator excitation waveform includes: Generating a compensation filter signal for the vibration system based on the amplitude-frequency response and the time-domain impulse response; Generating a target drive electrical signal according to the compensation filter signal and the initial drive signal of the desired final vibration effect; Driving the vibration system with the target drive electrical signal so that the vibration system generates the actuator excitation waveform.
7. The method for generating a touchpad excitation waveform according to claim 1, wherein The method for generating the touchpad excitation waveform further includes: storing the actuator excitation waveforms of each partition generated above under various different finger pressing pressures.
8. An electronic device, characterized in that, The electronic device includes: a processor, a memory, a touch chip, a pressure sensor, and an actuator, and the processor is electrically connected to the memory, the touch chip, the pressure sensor, and the actuator respectively; wherein: The processor is configured to divide the touchpad into multiple partitions according to a preset area division method, identify the vibration system for each partition, and generate the actuator excitation waveform for each partition under various different finger pressing pressures; The memory is configured to store the actuator excitation waveforms of each partition under various different finger pressing pressures; The touch chip is configured to detect the position coordinates of the finger pressing on the touchpad and transmit the position coordinates to the processor; The pressure sensor is configured to detect the pressure value of the finger pressing on the touchpad and transmit the pressure value to the processor; The processor is further configured to analyze the position coordinates and the pressure value data, obtain an actuator excitation waveform corresponding to the position coordinates and the pressure value data from the memory, and output the waveform to the actuator; The actuator is configured to provide a haptic feedback vibration effect according to the actuator excitation waveform output by the processor.
9. An electronic device, characterized in that, Comprising: A memory, a processor, and a computer program stored on the memory and running on the processor, where the computer program, when executed by the processor, implements the method for generating a touchpad excitation waveform according to any one of claims 1 to 7.
10. A computer storage medium, characterized in that, A program for the method for generating a touchpad excitation waveform is stored on the computer storage medium, and when the program for the method for generating a touchpad excitation waveform is executed by the processor, it implements the method for generating a touchpad excitation waveform according to any one of claims 1 to 7.