US12125371B2ActiveUtilityA1

Method for generating haptic feedback signal, electronic device, and storage medium

47
Assignee: AAC ACOUSTIC TECH SHANGHAI CO LTDPriority: Sep 13, 2022Filed: Dec 29, 2022Granted: Oct 22, 2024
Est. expirySep 13, 2042(~16.2 yrs left)· nominal 20-yr term from priority
G06F 3/016G08B 6/00
47
PatentIndex Score
0
Cited by
8
References
10
Claims

Abstract

Provided are a method for generating a haptic feedback signal, an electronic device, and a storage medium. The method includes: acquiring an initial haptic feedback signal; mapping an initial haptic feedback signal from a time domain to a frequency domain to obtain an initial spectrogram of the initial haptic feedback signal in the frequency domain; adjusting an amplitude value of a harmonic component of any frequency band in the initial spectrogram to obtain a target spectrogram; and mapping a signal corresponding to the target spectrogram from the frequency domain to the time domain to obtain a target haptic feedback signal. In the present application, a large number of haptic feedback signals with different haptic feedback effects may be obtained by adjusting the amplitude value of the harmonic component of any frequency band in the initial spectrogram, thereby effectively improving the richness of the haptic feedback signals.

Claims

exact text as granted — not AI-modified
What is claimed is: 
     
       1. A method for generating a haptic feedback signal, comprising:
 acquiring an initial haptic feedback signal; 
 mapping the initial haptic feedback signal from a time domain to a frequency domain to obtain an initial spectrogram of the initial haptic feedback signal in the frequency domain; comprising: performing a Fourier transform on the initial haptic feedback signal to map the initial haptic feedback signal from the time domain to the frequency domain; 
 adjusting an amplitude value of a harmonic component of any frequency band in the initial spectrogram to obtain a target spectrogram; and 
 mapping a signal corresponding to the target spectrogram from the frequency domain to the time domain to obtain a target haptic feedback signal, comprising: performing an inverse transform on the signal corresponding to the target spectrogram to map the signal corresponding to the target spectrogram from the frequency domain to the time domain; wherein the Fourier transform is represented by the following formula: 
 
       
         
           
             
               { 
               
                 
                   
                     
                       
                         
                           X 
                           ⁡ 
                           ( 
                           k 
                           ) 
                         
                         = 
                         
                           
                             ∑ 
                             
                               n 
                               = 
                               0 
                             
                             
                               N 
                               - 
                               1 
                             
                           
                           
                             
                               x 
                               ⁡ 
                               ( 
                               n 
                               ) 
                             
                             ⁢ 
                             
                               W 
                               N 
                               
                                 n 
                                 ⁢ 
                                 k 
                               
                             
                           
                         
                       
                     
                   
                   
                     
                       
                         
                           W 
                           N 
                           
                             n 
                             ⁢ 
                             k 
                           
                         
                         = 
                         
                           e 
                           
                             
                               - 
                               j 
                             
                             ⁢ 
                             
                               
                                 2 
                                 ⁢ 
                                 π 
                               
                               N 
                             
                             ⁢ 
                             nk 
                           
                         
                       
                     
                   
                 
                 ; 
               
             
           
         
       
       W N   nk  represents a rotation factor; k=0,1, . . . , N−1, and n=0,1, . . . , N−1. 
     
     
       2. The method for generating the haptic feedback signal of  claim 1 , wherein the step of adjusting the amplitude value of the harmonic component of any frequency band in the initial spectrogram comprises:
 multiplying the harmonic component of any frequency band in the initial spectrogram by a preset weighting function to adjust the amplitude value of the harmonic component of any frequency band. 
 
     
     
       3. The method for generating the haptic feedback signal of  claim 2 , wherein the preset weighting function comprises any one of a linear function, a Hanning window function, and a Gaussian window function. 
     
     
       4. The method for generating the haptic feedback signal of  claim 1 , wherein the step of acquiring the initial haptic feedback signal comprises:
 acquiring an acceleration signal, wherein the acceleration signal indicates an acceleration required by a haptic feedback device for outputting a haptic feedback action in an electronic device, and the acceleration signal is generated according to a required haptic feedback effect; and 
 converting the acceleration signal into a voltage signal as the initial haptic feedback signal. 
 
     
     
       5. The method for generating the haptic feedback signal of  claim 4 , wherein the step of converting the acceleration signal into the voltage signal comprises:
 converting the acceleration signal into the voltage signal according to an electromechanical coupling equation of a vibration system. 
 
     
     
       6. The method for generating the haptic feedback signal of  claim 5 , wherein the electromechanical coupling equation of the vibration system is as follows: 
       
         
           
             
               { 
               
                 
                   
                     
                       
                         
                           
                             m 
                             ⁢ 
                             
                               x 
                               ¨ 
                             
                           
                           + 
                           
                             c 
                             ⁢ 
                             
                               x 
                               ˙ 
                             
                           
                           + 
                           kx 
                         
                         = 
                         BLi 
                       
                     
                   
                   
                     
                       
                         
                           
                             
                               R 
                               e 
                             
                             ⁢ 
                             i 
                           
                           + 
                           
                             
                               L 
                               e 
                             
                             ⁢ 
                             
                               di 
                               dt 
                             
                           
                           + 
                           
                             BL 
                             ⁢ 
                             
                               x 
                               ˙ 
                             
                           
                         
                         = 
                         u 
                       
                     
                   
                 
                 ; 
               
             
           
         
         wherein m is a mass of a rotor in the haptic feedback device; c is a mechanical damping of the haptic feedback device; k is a spring coefficient of the haptic feedback device; BL is an electromechanical coupling factor; R e  is a resistance of a coil in the haptic feedback device; L e  is an inductance of the coil; i is a current; u is a voltage; x is a displacement; {dot over (x)} is a speed; and {umlaut over (x)} is an acceleration. 
       
     
     
       7. An electronic device, comprising a memory, wherein the memory stores a plurality of haptic feedback signals, and the plurality of haptic feedback signals are generated according to the method for generating the haptic feedback signal of  claim 1 . 
     
     
       8. The electronic device of  claim 7 , further comprising a processor and a haptic feedback device,
 wherein the processor is configured to select different haptic feedback signals from the memory according to different trigger instructions, and input the selected haptic feedback signals to the haptic feedback device, and 
 the haptic feedback device is configured to output a corresponding haptic feedback action according to the received haptic feedback signal. 
 
     
     
       9. The electronic device of  claim 8 , wherein the haptic feedback device comprises any one of a motor and a brake. 
     
     
       10. An electronic device, comprising a memory and at least one processor, wherein the memory is configured to store at least one program, which when executed by the at least one processor, cause the at least one program to perform the method of  claim 1 .

Cited by (0)

No later patents cite this yet.

References (0)

No backward citations on record.