WO2021208447A1 - Signal processing method and apparatus, and electronic device - Google Patents

Signal processing method and apparatus, and electronic device Download PDF

Info

Publication number
WO2021208447A1
WO2021208447A1 PCT/CN2020/132039 CN2020132039W WO2021208447A1 WO 2021208447 A1 WO2021208447 A1 WO 2021208447A1 CN 2020132039 W CN2020132039 W CN 2020132039W WO 2021208447 A1 WO2021208447 A1 WO 2021208447A1
Authority
WO
WIPO (PCT)
Prior art keywords
signal
vibration
moment
splicing
time
Prior art date
Application number
PCT/CN2020/132039
Other languages
French (fr)
Chinese (zh)
Inventor
郑亚军
Original Assignee
瑞声声学科技(深圳)有限公司
瑞声科技(新加坡)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 瑞声声学科技(深圳)有限公司, 瑞声科技(新加坡)有限公司 filed Critical 瑞声声学科技(深圳)有限公司
Publication of WO2021208447A1 publication Critical patent/WO2021208447A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/016Input arrangements with force or tactile feedback as computer generated output to the user
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B06GENERATING OR TRANSMITTING MECHANICAL VIBRATIONS IN GENERAL
    • B06BMETHODS OR APPARATUS FOR GENERATING OR TRANSMITTING MECHANICAL VIBRATIONS OF INFRASONIC, SONIC, OR ULTRASONIC FREQUENCY, e.g. FOR PERFORMING MECHANICAL WORK IN GENERAL
    • B06B1/00Methods or apparatus for generating mechanical vibrations of infrasonic, sonic, or ultrasonic frequency
    • B06B1/10Methods or apparatus for generating mechanical vibrations of infrasonic, sonic, or ultrasonic frequency making use of mechanical energy
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B06GENERATING OR TRANSMITTING MECHANICAL VIBRATIONS IN GENERAL
    • B06BMETHODS OR APPARATUS FOR GENERATING OR TRANSMITTING MECHANICAL VIBRATIONS OF INFRASONIC, SONIC, OR ULTRASONIC FREQUENCY, e.g. FOR PERFORMING MECHANICAL WORK IN GENERAL
    • B06B3/00Methods or apparatus specially adapted for transmitting mechanical vibrations of infrasonic, sonic, or ultrasonic frequency
    • B06B3/02Methods or apparatus specially adapted for transmitting mechanical vibrations of infrasonic, sonic, or ultrasonic frequency involving a change of amplitude
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/01Indexing scheme relating to G06F3/01
    • G06F2203/014Force feedback applied to GUI

Definitions

  • This application relates to the field of signal processing technology, and in particular to a signal processing method, device and electronic equipment.
  • Tactile feedback technology is a tactile feedback mechanism that combines hardware and software, supplemented by actions such as force or vibration, and can simulate the real human tactile experience.
  • Tactile feedback technology is widely used in electronic devices such as mobile phones, automobiles, wearable devices, and gaming devices, and the user experience is improved by customizing unique tactile feedback effects.
  • the electronic device may be provided with a vibration system that simulates the tactile feedback effect through the vibration effect.
  • the vibration system receives the vibration signal and generates the voltage input signal of the motor based on the vibration signal, so that the motor drives the vibration system to generate the vibration effect required by the vibration signal.
  • Based on different vibration amplitudes, different vibration durations, and different vibration frequencies of the vibration signal a variety of tactile feedback effects can be combined.
  • some vibration effects are difficult to achieve by the vibration system.
  • the vibration signal received by the vibration system of an electronic device may require the vibration system to quickly generate a relatively large amount of vibration in a very short period of time.
  • this demand requires the electronic device to provide a very high level of vibration for the vibration system. A large voltage can be achieved, but the voltage output capability of electronic devices is limited, and the vibration effect required by the vibration signal cannot be achieved.
  • the present application provides a signal processing method, which can cause the vibration system to quickly generate relatively strong vibration within the range of the voltage output capability of the electronic device.
  • a signal processing method of the present application includes:
  • the phase at the termination time of the first splicing signal is the preset phase;
  • the first splicing signal is derived from the vibration response curve generated by the motor when a single-frequency sine wave voltage signal is used to drive the motor
  • the signal from the initial moment to the second moment is intercepted, the frequency of the single-frequency sine wave voltage signal is the resonance frequency of the motor, and the amplitude is the maximum output voltage of the electronic device to which the motor belongs;
  • the second splicing signal and the second vibration signal are spliced to obtain a target vibration signal.
  • the target vibration signal obtained based on the above method can be within the range of the voltage output capability of the electronic device, so that the vibration system can quickly generate a larger intensity vibration.
  • the acquiring the first splicing signal includes:
  • the signal from the initial moment to the second moment in the vibration response curve is intercepted and used as the first splicing signal.
  • the first time is the time corresponding to the peak of the first vibration signal
  • the second time is the time corresponding to the peak in the vibration response curve
  • the first time is a time corresponding to a trough of the first vibration signal
  • the second time is a time corresponding to a trough in the vibration response curve.
  • the second moment is a moment corresponding to the second peak in the vibration response curve.
  • the preset duration is from the first moment of the first vibration signal to the end moment of the first vibration signal.
  • an embodiment of the present application provides a signal processing device, including:
  • a signal interception unit configured to receive a first vibration signal, intercept a signal of a preset duration from the first moment of the first vibration signal as a second vibration signal, and the phase at the first moment is the preset phase;
  • the acquiring unit is configured to acquire a first splicing signal, and the phase at the termination time of the first splicing signal is the preset phase; the first splicing signal is generated from the motor when a single frequency sine wave voltage signal is used to drive the motor
  • the signal from the initial moment of the vibration response curve to the second moment is intercepted, the frequency of the single-frequency sine wave voltage signal is the resonance frequency of the motor, and the amplitude is the maximum output voltage of the electronic device to which the motor belongs;
  • a scaling unit configured to perform amplitude scaling on the first splicing signal to obtain a second splicing signal, and the amplitude of the end time of the second splicing signal is equal to the amplitude of the start time of the second vibration signal;
  • the splicing unit is used for splicing the second splicing signal and the second vibration signal to obtain a target vibration signal.
  • the acquiring unit includes:
  • the calculation subunit is used to calculate the vibration response curve generated by the motor when the single frequency sine wave voltage signal is used to drive the motor;
  • the time determining subunit is configured to determine the second time in the vibration response curve according to the phase corresponding to the first time in the first vibration signal, and the phase corresponding to the second time corresponds to the phase corresponding to the first time. The same phase;
  • the intercepting subunit is used to intercept the signal from the initial moment to the second moment in the vibration response curve as the first splicing signal.
  • an electronic device including:
  • One or more processors comprising: memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, when the instructions are When the device is executed, the device is caused to execute the method of the first aspect.
  • an embodiment of the present application provides a computer-readable storage medium in which a computer program is stored, and when it runs on a computer, the computer executes the method of the first aspect.
  • this application provides a computer program, which is used to execute the method described in the first aspect when the computer program is executed by a computer.
  • the program in the fifth aspect may be stored in whole or in part on a storage medium that is packaged with the processor, and may also be stored in part or in a memory that is not packaged with the processor.
  • Figure 1 is a structural diagram of an embodiment of an electronic device of this application.
  • FIG. 2 is a structural diagram of another embodiment of the electronic device of this application.
  • FIG. 3 is a flowchart of an embodiment of the signal processing method of this application.
  • FIG. 5A is an example diagram of a waveform of a first vibration signal according to an embodiment of the application.
  • FIG. 5B is an example diagram of a method for intercepting a second vibration signal according to an embodiment of the application.
  • FIG. 5C is an example diagram of a method for intercepting a first spliced signal according to an embodiment of the application.
  • 5D is an example diagram of amplitude scaling and signal splicing according to an embodiment of the application.
  • Fig. 6 is a structural diagram of an embodiment of a signal processing device according to the present application.
  • Fig. 7 is a structural diagram of another embodiment of a signal processing device according to the present application.
  • the vibration signal received by the vibration system of the electronic device may require the vibration system to rapidly generate a relatively large vibration in a very short time, but the electronic device is required to provide a large voltage for the vibration system.
  • the system can only meet this demand, and the voltage output capability of the electronic device is limited, so the vibration system cannot achieve the vibration effect required by the vibration signal.
  • the vibration system needs to be within the voltage output capacity of the electronic device, and try to generate the greater intensity of vibration required by the vibration signal at the fastest speed, so as to achieve the vibration effect required by the vibration signal received by the vibration system as much as possible .
  • an embodiment of the present application proposes a signal processing method, which can make the vibration system quickly generate vibrations of greater intensity within the range of the voltage output capability of the electronic device.
  • the electronic device 100 may include: a processor 110, a memory 120, and a vibration system 130; wherein, the vibration system 130 may include: a motor 131; optionally, the vibration system 130 may also include: a displacement sensor 132, acceleration Sensor 133 and so on.
  • the memory 120 may be used to store one or more computer programs, and the processor 110 may be used to call and execute the computer programs from the memory 120.
  • a computer program that implements the signal processing method of the embodiment of the present application may be stored in the memory 120, and the processor 110 calls and runs the computer program from the memory 120 to implement signal processing.
  • the electronic device 200 may include: a processor 210, a first memory 220, and a vibration system 230; wherein, the vibration system 230 may include: a motor 231, a signal processor 232, and a second memory 233; optionally The vibration system 230 may also include: a displacement sensor 234, an acceleration sensor 235, and the like.
  • the second memory 233 may be used to store data of the vibration system, such as the preset displacement interval described below; the second memory 233 may also be used to store the computer program of the signal processing method of the embodiment of the present application;
  • the signal processor 232 calls and runs the computer program from the second memory 233 to realize signal processing.
  • FIG. 1 and FIG. 2 can implement various processes of the methods provided in the embodiments shown in FIG. 3 to FIG. 4 of this application.
  • the operation and/or function of each module in the electronic device are respectively for implementing the corresponding process in the method embodiment.
  • FIG. 3 is a flowchart of an embodiment of the signal processing method of this application. As shown in FIG. 3, the method may include:
  • Step 301 Receive a first vibration signal, intercept a signal of a preset duration from the first moment of the first vibration signal as the second vibration signal, and the phase at the first moment is the preset phase.
  • the first moment corresponds to the start moment of the second vibration signal.
  • Step 302 Obtain the first splicing signal, the phase of the termination time of the first splicing signal is the preset phase; the first splicing signal is intercepted from the initial moment of the vibration response curve generated by the motor when the single frequency sine wave voltage signal is used to drive the motor For the signal at the second moment, the frequency of the single-frequency sine wave voltage signal is the resonance frequency of the motor, and the amplitude is the maximum output voltage of the electronic device to which the motor belongs.
  • Step 303 Perform amplitude scaling on the first spliced signal to obtain a second spliced signal, and the amplitude of the end time of the second spliced signal is equal to the amplitude of the start time of the second vibration signal.
  • Step 304 splicing the second splicing signal and the second vibration signal to obtain the target vibration signal.
  • the target vibration signal obtained based on the above method can be within the range of the voltage output capability of the electronic device, so that the vibration system quickly generates a relatively large vibration, so that the vibration system can achieve the vibration effect required by the first vibration signal as quickly as possible.
  • Fig. 4 is a flowchart of another embodiment of the signal processing method of this application. As shown in Fig. 4, the method may include:
  • Step 401 Receive a first vibration signal.
  • the first vibration signal may be generated by an application that requires tactile feedback in the electronic device, thereby triggering the processor to execute the signal processing method of the present application to process the first vibration signal.
  • Applications that require tactile feedback may include, but are not limited to: games, video and other applications.
  • Step 402 When it is determined that the voltage required by the motor to generate the first vibration signal is greater than the maximum output voltage of the electronic device, a signal of a preset duration is intercepted from the first moment of the first vibration signal as the second vibration signal, and the phase at the first moment is Preset phase.
  • the first vibration signal can be substituted into the preset electromechanical coupling equation of the vibration system, and the voltage signal corresponding to the first vibration signal can be calculated.
  • the absolute maximum value of the voltage signal is the voltage required by the motor to generate the first vibration signal.
  • the electromechanical coupling equation of the vibration system can be:
  • m is the mass of the motor mover
  • c is the motor mechanical damping
  • k for the motor spring coefficient
  • BL is the electromechanical coupling coefficient
  • R e is a motor coil resistance
  • L e is the motor coil inductance
  • i is the current
  • u voltage
  • x is the displacement
  • Is the speed
  • Is acceleration the acceleration
  • the values of the motor mover mass, motor mechanical damping, motor spring coefficient, electromechanical coupling coefficient, motor coil resistance, motor coil inductance and other parameters involved in the equation can be preset based on the motor, and the first vibration signal is used as the displacement x, corresponding , That is, the voltage signal u can be calculated.
  • the first moment may be the moment corresponding to the peak of the first vibration signal or the moment corresponding to the trough.
  • the preset phase may be the phase corresponding to the peak of the first vibration signal or the phase corresponding to the trough.
  • the first moment may be a moment corresponding to the second peak of the first vibration signal.
  • the specific value of the preset duration can be independently set in practical applications, which is not limited in the embodiment of the present application.
  • the preset duration can be from the first moment of the first vibration signal to the termination moment.
  • the preset duration cannot be too short to avoid that the final target vibration signal is too short, and the vibration system cannot generate the vibration effect required by the first vibration signal.
  • the minimum value of the preset duration is related to the performance of the motor driving the vibration system. For example, if the motor performance is relatively good, the minimum value of the preset duration can be relatively small, and the motor performance is relatively poor, then the minimum value of the preset duration can be relatively Larger.
  • FIG. 5A is a schematic diagram of the waveform of a first vibration signal. Assuming that the voltage required by the motor to generate the first vibration signal shown in FIG. 5A is greater than the maximum output voltage Vmax of the electronic device; then,
  • all the first vibration signals after being intercepted from the position of the second peak of the first vibration signal are the second vibration signals.
  • the length of the first vibration signal in the embodiment of the present application generally cannot be too short, so that the first moment with the preset phase can be found from the first vibration signal in step 402, thereby
  • the second vibration signal is intercepted, and the length of the first vibration signal is related to the interception rule of the second vibration signal, that is, it is related to the first moment and the preset phase. For example, for the first vibration signal shown in FIG.
  • the first time is the time corresponding to the first peak of the first vibration signal, then the first time is T/4, and T is the period of the motor, then the first time
  • T is the period of the motor
  • the first time The length of a vibration signal needs to be greater than T/4 to intercept the second vibration signal; assuming that the first time is the time corresponding to the second peak of the first vibration signal, then the first time is 5T/4, then the first vibration The length of the signal needs to be greater than 5T/4 to intercept the second vibration signal.
  • Step 403 Obtain the first splicing signal.
  • the phase at the end of the first splicing signal is the preset phase; the first splicing signal is intercepted from the initial moment of the vibration response curve generated by the motor when the single-frequency sine wave voltage signal is used to drive the motor.
  • the frequency of the single-frequency sine wave voltage signal is the resonance frequency of the motor, and the amplitude is the maximum output voltage of the electronic device to which the motor belongs.
  • the first splicing signal may be preset in the electronic device, and then the first splicing signal may be directly obtained from the electronic device in this step.
  • the preset phase in step 402 needs to be the same as the phase at the termination time of the first splicing signal preset in the electronic device.
  • the first splicing signal can be generated in real time. At this time, acquiring the first splicing signal may include:
  • the frequency of the single-frequency sine wave voltage signal is the resonance frequency of the motor
  • the amplitude is the maximum output voltage of the electronic equipment to which the motor belongs
  • the signal from the initial moment to the second moment in the vibration response curve is intercepted and used as the first splicing signal.
  • the second moment is also the moment corresponding to the peak in the vibration response curve; optionally, the second moment may be the second peak corresponding to the vibration response curve.
  • the moment or,
  • the second moment is also the moment corresponding to the trough of the vibration response curve.
  • step 403 An example of the implementation of step 403: see Figure 5C, the signal formed by the solid line and the dashed line is the vibration response curve, the solid line part of the vibration response curve is the intercepted splicing signal, and the termination time of the splicing signal corresponds to the vibration response curve.
  • the second moment is the moment corresponding to the second peak in the vibration response curve.
  • Step 404 Perform amplitude scaling on the first spliced signal to obtain a second spliced signal, and the amplitude of the end time of the second spliced signal is equal to the amplitude of the start time of the second vibration signal.
  • Step 405 Splicing the second splicing signal and the second vibration signal to obtain the target vibration signal.
  • the second splicing signal is placed before the second vibration signal for splicing.
  • the signal with a shorter length is the first splicing signal, and the first splicing signal is reduced in amplitude, so that the obtained second splicing signal has the same amplitude at the end time of the second vibration signal.
  • the amplitudes at the moments are the same, and the signal obtained after the second splicing signal and the second vibration signal are spliced together is the target vibration signal.
  • the voltage input signal of the motor can be calculated according to the target vibration signal, and the voltage input signal is input to the motor to make the motor generate the target vibration signal, so that the motor can be within the voltage output capability of the electronic device.
  • the rapid generation of large-intensity vibration means that the vibration system can achieve the vibration effect required by the first vibration signal as quickly as possible within the voltage output capability of the electronic device.
  • FIG. 6 is a structural diagram of an embodiment of a signal processing device of this application. As shown in FIG. 6, the device 60 may include:
  • the signal intercepting unit 61 is configured to receive a first vibration signal, and intercept a signal of a preset duration from the first moment of the first vibration signal as the second vibration signal, and the phase at the first moment is the preset phase;
  • the acquiring unit 62 is configured to acquire a first splicing signal, and the phase at the termination time of the first splicing signal is the preset phase; the first splicing signal is derived from when the motor is driven by a single frequency sine wave voltage signal The generated vibration response curve is intercepted from the initial moment to the second moment, the frequency of the single-frequency sine wave voltage signal is the resonance frequency of the motor, and the amplitude is the maximum output voltage of the electronic device to which the motor belongs;
  • the scaling unit 63 is configured to perform amplitude scaling on the first splicing signal to obtain a second splicing signal, and the amplitude of the end time of the second splicing signal is equal to the amplitude of the start time of the second vibration signal;
  • the splicing unit 64 is configured to splice the second splicing signal and the second vibration signal to obtain a target vibration signal.
  • the acquiring unit 62 may include:
  • the calculation subunit 621 is configured to calculate the vibration response curve generated by the motor when the single frequency sine wave voltage signal is used to drive the motor;
  • the time determination subunit 622 is configured to determine the second time in the vibration response curve according to the phase corresponding to the first time in the first vibration signal, and the phase corresponding to the second time corresponds to the first time The phase is the same;
  • the intercepting subunit 623 is configured to intercept the signal from the initial moment to the second moment in the vibration response curve as the first splicing signal.
  • the apparatus 60 provided in the embodiment shown in FIGS. 6 and 7 can be used to implement the technical solutions of the method embodiments shown in FIGS. 3 to 4 of the present application. For its implementation principles and technical effects, further reference may be made to related descriptions in the method embodiments.
  • each unit of the apparatus shown in FIG. 6 and FIG. 7 is only a division of logical functions, and may be fully or partially integrated into one physical entity during actual implementation, or may be physically separated.
  • these units can all be implemented in the form of software called by processing elements; they can also be implemented in the form of hardware; part of the units can also be implemented in the form of software called by the processing elements, and some of the units can be implemented in the form of hardware.
  • the signal interception unit may be a separately established processing element, or it may be integrated in a certain chip of the electronic device.
  • the implementation of other units is similar.
  • all or part of these units can be integrated together or implemented independently.
  • each step of the above method or each of the above units can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
  • the above units may be one or more integrated circuits configured to implement the above methods, such as: one or more specific integrated circuits (Application Specific Integrated Circuit; hereinafter referred to as ASIC), or, one or more micro-processing Digital Processor (Digital Singnal Processor; hereinafter referred to as DSP), or, one or more Field Programmable Gate Array (Field Programmable Gate Array; hereinafter referred to as FPGA), etc.
  • ASIC Application Specific Integrated Circuit
  • DSP Digital Singnal Processor
  • FPGA Field Programmable Gate Array
  • these units can be integrated together and implemented in the form of a System-On-a-Chip (hereinafter referred to as SOC).
  • SOC System-On-a-Chip
  • the device includes a storage medium and a central processing unit.
  • the storage medium may be a non-volatile storage medium.
  • a computer executable program is stored in the storage medium.
  • the central processing unit is connected to the The non-volatile storage medium is connected, and the computer executable program is executed to implement the methods provided by the embodiments shown in FIGS. 3 to 4 of this application.
  • the embodiments of the present application also provide a computer-readable storage medium.
  • the computer-readable storage medium stores a computer program. When it runs on a computer, the computer executes the functions provided by the embodiments shown in FIGS. 3 to 4 of the present application. method.
  • the embodiments of the present application also provide a computer program product.
  • the computer program product includes a computer program that, when running on a computer, causes the computer to execute the method provided by the embodiments shown in FIGS. 3 to 4 of the present application.
  • At least one refers to one or more
  • multiple refers to two or more.
  • And/or describes the association relationship of the associated objects, indicating that there can be three types of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone. Among them, A and B can be singular or plural.
  • the character “/” generally indicates that the associated objects before and after are in an “or” relationship.
  • the following at least one item” and similar expressions refer to any combination of these items, including any combination of single items or plural items.
  • At least one of a, b, and c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, and c can be single, or There can be more than one.
  • any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of the present application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory; hereinafter referred to as ROM), random access memory (Random Access Memory; hereinafter referred to as RAM), magnetic disks or optical disks, etc.
  • ROM read-only memory
  • RAM random access memory
  • magnetic disks or optical disks etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Apparatuses For Generation Of Mechanical Vibrations (AREA)
  • Control Of Electric Motors In General (AREA)

Abstract

A signal processing method and apparatus, and an electronic device. Said method comprises: receiving a first vibration signal, and intercepting, from a first time point of the first vibration signal, a signal of a preset duration as a second vibration signal, the phase at the first time point being a preset phase; acquiring a first splicing signal, the phase at the end time point of the first splicing signal being the preset phase; scaling the amplitude value of the first splicing signal to enable the amplitude value at the end time point of an obtained second splicing signal to be equal to the amplitude value at the start time point of the second vibration signal; and splicing the second splicing signal and the second vibration signal to obtain a target vibration signal. The target vibration signal generated by said method can be within a voltage output capability range of an electronic device, so that a vibration system rapidly generates a vibration having a large intensity.

Description

信号处理方法、装置和电子设备Signal processing method, device and electronic equipment 技术领域Technical field
本申请涉及信号处理技术领域,特别涉及一种信号处理方法、装置和电子设备。This application relates to the field of signal processing technology, and in particular to a signal processing method, device and electronic equipment.
背景技术Background technique
触觉反馈技术是一种通过硬件与软件结合、辅以作用力或振动等动作的触觉反馈机制,能够模拟人的真实触觉体验。触觉反馈技术在手机、汽车、可穿戴设备、游戏设备等电子设备中广泛应用,通过定制独特的触觉反馈效果提升用户体验。Tactile feedback technology is a tactile feedback mechanism that combines hardware and software, supplemented by actions such as force or vibration, and can simulate the real human tactile experience. Tactile feedback technology is widely used in electronic devices such as mobile phones, automobiles, wearable devices, and gaming devices, and the user experience is improved by customizing unique tactile feedback effects.
电子设备中可以设置通过振动效果模拟触觉反馈效果的振动***。一般的,振动***接收到振动信号,基于振动信号产生电机的电压输入信号,使得电机驱动振动***产生振动信号所需的振动效果。基于振动信号不同的振动幅值、不同的振动时长、及不同的振动频率,可以组合出多种多样的触觉反馈效果。但是,受限于电子设备对振动***的电压输出能力以及振动***中电机的性能,有些振动效果很难被振动***实现。The electronic device may be provided with a vibration system that simulates the tactile feedback effect through the vibration effect. Generally, the vibration system receives the vibration signal and generates the voltage input signal of the motor based on the vibration signal, so that the motor drives the vibration system to generate the vibration effect required by the vibration signal. Based on different vibration amplitudes, different vibration durations, and different vibration frequencies of the vibration signal, a variety of tactile feedback effects can be combined. However, limited by the voltage output capability of the electronic equipment to the vibration system and the performance of the motor in the vibration system, some vibration effects are difficult to achieve by the vibration system.
例如,在某些应用场景下,电子设备的振动***接收到的振动信号可能需要振动***在极短的时间内迅速产生较大强度的振动,但是这种需求需要电子设备为振动***提供一个极大的电压才能够实现,而电子设备的电压输出能力是有限的,无法实现振动信号所要求的振动效果。For example, in certain application scenarios, the vibration signal received by the vibration system of an electronic device may require the vibration system to quickly generate a relatively large amount of vibration in a very short period of time. However, this demand requires the electronic device to provide a very high level of vibration for the vibration system. A large voltage can be achieved, but the voltage output capability of electronic devices is limited, and the vibration effect required by the vibration signal cannot be achieved.
申请内容Application content
本申请提供了一种信号处理方法,能够在电子设备的电压输出能力范围内,使得振动***快速产生较大强度的振动。The present application provides a signal processing method, which can cause the vibration system to quickly generate relatively strong vibration within the range of the voltage output capability of the electronic device.
第一方面,本申请一种信号处理方法,包括:In the first aspect, a signal processing method of the present application includes:
接收第一振动信号,从所述第一振动信号的第一时刻开始截取预设时长的 信号作为第二振动信号,所述第一时刻的相位为预设相位;Receiving a first vibration signal, intercepting a signal of a preset duration from a first moment of the first vibration signal as a second vibration signal, and the phase at the first moment is the preset phase;
获取第一拼接信号,所述第一拼接信号终止时刻的相位为所述预设相位;所述第一拼接信号是从使用单频正弦波电压信号驱动电机时所述电机产生的振动响应曲线的初始时刻开始截取至第二时刻的信号,所述单频正弦波电压信号的频率是所述电机的谐振频率,幅值是电机所属电子设备的最大输出电压;Acquire a first splicing signal, the phase at the termination time of the first splicing signal is the preset phase; the first splicing signal is derived from the vibration response curve generated by the motor when a single-frequency sine wave voltage signal is used to drive the motor The signal from the initial moment to the second moment is intercepted, the frequency of the single-frequency sine wave voltage signal is the resonance frequency of the motor, and the amplitude is the maximum output voltage of the electronic device to which the motor belongs;
对所述第一拼接信号进行幅值缩放,得到第二拼接信号,所述第二拼接信号终止时刻的幅值与所述第二振动信号起始时刻的幅值相等;Performing amplitude scaling on the first splicing signal to obtain a second splicing signal, and the amplitude of the end time of the second splicing signal is equal to the amplitude of the start time of the second vibration signal;
对所述第二拼接信号和所述第二振动信号进行拼接,得到目标振动信号。The second splicing signal and the second vibration signal are spliced to obtain a target vibration signal.
基于以上方法得到的目标振动信号能够在电子设备的电压输出能力范围内,使得振动***快速产生较大强度的振动。The target vibration signal obtained based on the above method can be within the range of the voltage output capability of the electronic device, so that the vibration system can quickly generate a larger intensity vibration.
其中,所述获取第一拼接信号,包括:Wherein, the acquiring the first splicing signal includes:
计算使用单频正弦波电压信号驱动所述电机时所述电机产生的振动响应曲线;Calculating the vibration response curve generated by the motor when the single frequency sine wave voltage signal is used to drive the motor;
根据所述第一振动信号中第一时刻对应的相位,确定所述振动响应曲线中的第二时刻,所述第二时刻对应的相位与所述第一时刻对应的相位相同;Determine the second time in the vibration response curve according to the phase corresponding to the first time in the first vibration signal, where the phase corresponding to the second time is the same as the phase corresponding to the first time;
截取所述振动响应曲线中从初始时刻至所述第二时刻的信号,作为所述第一拼接信号。The signal from the initial moment to the second moment in the vibration response curve is intercepted and used as the first splicing signal.
其中,所述第一时刻是所述第一振动信号的波峰对应的时刻,所述第二时刻是所述振动响应曲线中的波峰对应的时刻;或者,Wherein, the first time is the time corresponding to the peak of the first vibration signal, and the second time is the time corresponding to the peak in the vibration response curve; or,
所述第一时刻是所述第一振动信号的波谷对应的时刻,所述第二时刻是所述振动响应曲线中的波谷对应的时刻。The first time is a time corresponding to a trough of the first vibration signal, and the second time is a time corresponding to a trough in the vibration response curve.
其中,所述第二时刻是所述振动响应曲线中的第二个波峰对应的时刻。Wherein, the second moment is a moment corresponding to the second peak in the vibration response curve.
其中,所述预设时长为从所述第一振动信号的第一时刻至所述第一振动信号的终止时刻。Wherein, the preset duration is from the first moment of the first vibration signal to the end moment of the first vibration signal.
第二方面,本申请实施例提供一种信号处理装置,包括:In a second aspect, an embodiment of the present application provides a signal processing device, including:
信号截取单元,用于接收第一振动信号,从所述第一振动信号的第一时刻开始截取预设时长的信号作为第二振动信号,所述第一时刻的相位为预设相位;A signal interception unit, configured to receive a first vibration signal, intercept a signal of a preset duration from the first moment of the first vibration signal as a second vibration signal, and the phase at the first moment is the preset phase;
获取单元,用于获取第一拼接信号,所述第一拼接信号终止时刻的相位为 所述预设相位;所述第一拼接信号是从使用单频正弦波电压信号驱动电机时所述电机产生的振动响应曲线的初始时刻开始截取至第二时刻的信号,所述单频正弦波电压信号的频率是所述电机的谐振频率,幅值是电机所属电子设备的最大输出电压;The acquiring unit is configured to acquire a first splicing signal, and the phase at the termination time of the first splicing signal is the preset phase; the first splicing signal is generated from the motor when a single frequency sine wave voltage signal is used to drive the motor The signal from the initial moment of the vibration response curve to the second moment is intercepted, the frequency of the single-frequency sine wave voltage signal is the resonance frequency of the motor, and the amplitude is the maximum output voltage of the electronic device to which the motor belongs;
缩放单元,用于对所述第一拼接信号进行幅值缩放,得到第二拼接信号,所述第二拼接信号终止时刻的幅值与所述第二振动信号起始时刻的幅值相等;A scaling unit, configured to perform amplitude scaling on the first splicing signal to obtain a second splicing signal, and the amplitude of the end time of the second splicing signal is equal to the amplitude of the start time of the second vibration signal;
拼接单元,用于对所述第二拼接信号和所述第二振动信号进行拼接,得到目标振动信号。The splicing unit is used for splicing the second splicing signal and the second vibration signal to obtain a target vibration signal.
其中,所述获取单元包括:Wherein, the acquiring unit includes:
计算子单元,用于计算使用单频正弦波电压信号驱动所述电机时所述电机产生的振动响应曲线;The calculation subunit is used to calculate the vibration response curve generated by the motor when the single frequency sine wave voltage signal is used to drive the motor;
时刻确定子单元,用于根据所述第一振动信号中第一时刻对应的相位,确定所述振动响应曲线中的第二时刻,所述第二时刻对应的相位与所述第一时刻对应的相位相同;The time determining subunit is configured to determine the second time in the vibration response curve according to the phase corresponding to the first time in the first vibration signal, and the phase corresponding to the second time corresponds to the phase corresponding to the first time. The same phase;
截取子单元,用于截取所述振动响应曲线中从初始时刻至所述第二时刻的信号,作为所述第一拼接信号。The intercepting subunit is used to intercept the signal from the initial moment to the second moment in the vibration response curve as the first splicing signal.
第三方面,本申请实施例提供一种电子设备,包括:In a third aspect, an embodiment of the present application provides an electronic device, including:
一个或多个处理器;存储器;以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述设备执行时,使得所述设备执行第一方面的方法。One or more processors; memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, when the instructions are When the device is executed, the device is caused to execute the method of the first aspect.
第四方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行第一方面的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium in which a computer program is stored, and when it runs on a computer, the computer executes the method of the first aspect.
第五方面,本申请提供一种计算机程序,当所述计算机程序被计算机执行时,用于执行第一方面所述的方法。In a fifth aspect, this application provides a computer program, which is used to execute the method described in the first aspect when the computer program is executed by a computer.
在一种可能的设计中,第五方面中的程序可以全部或者部分存储在与处理器封装在一起的存储介质上,也可以部分或者全部存储在不与处理器封装在一起的存储器上。In a possible design, the program in the fifth aspect may be stored in whole or in part on a storage medium that is packaged with the processor, and may also be stored in part or in a memory that is not packaged with the processor.
附图说明Description of the drawings
图1为本申请电子设备一个实施例的结构图;Figure 1 is a structural diagram of an embodiment of an electronic device of this application;
图2为本申请电子设备另一个实施例的结构图;FIG. 2 is a structural diagram of another embodiment of the electronic device of this application;
图3为本申请信号处理方法一个实施例的流程图;FIG. 3 is a flowchart of an embodiment of the signal processing method of this application;
图4为本申请信号处理方法另一个实施例的流程图;4 is a flowchart of another embodiment of the signal processing method of this application;
图5A为本申请实施例第一振动信号的波形示例图;FIG. 5A is an example diagram of a waveform of a first vibration signal according to an embodiment of the application; FIG.
图5B为本申请实施例第二振动信号的截取方法示例图;FIG. 5B is an example diagram of a method for intercepting a second vibration signal according to an embodiment of the application; FIG.
图5C为本申请实施例第一拼接信号的截取方法示例图;FIG. 5C is an example diagram of a method for intercepting a first spliced signal according to an embodiment of the application; FIG.
图5D为本申请实施例幅值缩放以及信号拼接示例图;5D is an example diagram of amplitude scaling and signal splicing according to an embodiment of the application;
图6为本申请信号处理装置一个实施例的结构图;Fig. 6 is a structural diagram of an embodiment of a signal processing device according to the present application;
图7为本申请信号处理装置另一个实施例的结构图。Fig. 7 is a structural diagram of another embodiment of a signal processing device according to the present application.
具体实施方式Detailed ways
本申请的实施方式部分使用的术语仅用于对本申请的具体实施例进行解释,而非旨在限定本申请。The terms used in the implementation mode part of this application are only used to explain specific embodiments of this application, and are not intended to limit this application.
现有的实现方案中,电子设备的振动***接收到的振动信号可能需要振动***在极短的时间内迅速产生较大强度的振动,但是需要电子设备为振动***提供一个极大的电压,振动***才能够实现这种需求,而电子设备的电压输出能力是有限的,从而振动***无法实现振动信号所要求的振动效果。In the existing implementation scheme, the vibration signal received by the vibration system of the electronic device may require the vibration system to rapidly generate a relatively large vibration in a very short time, but the electronic device is required to provide a large voltage for the vibration system. The system can only meet this demand, and the voltage output capability of the electronic device is limited, so the vibration system cannot achieve the vibration effect required by the vibration signal.
这时,就需要振动***在电子设备的电压输出能力范围内,尽量以最快的速度产生振动信号所要求的较大强度的振动,从而尽量实现振动***接收到的振动信号所需要的振动效果。At this time, the vibration system needs to be within the voltage output capacity of the electronic device, and try to generate the greater intensity of vibration required by the vibration signal at the fastest speed, so as to achieve the vibration effect required by the vibration signal received by the vibration system as much as possible .
为此,本申请实施例提出一种信号处理方法,能够在电子设备的电压输出能力范围内,使得振动***快速产生较大强度的振动。To this end, an embodiment of the present application proposes a signal processing method, which can make the vibration system quickly generate vibrations of greater intensity within the range of the voltage output capability of the electronic device.
以下,首先对本申请实施例电子设备的可能实现结构进行示例性说明。如图1所示,电子设备100可以包括:处理器110,存储器120,振动***130;其中,振动***130可以包括:电机131;可选地,振动***130还可以包括: 位移传感器132、加速度传感器133等。In the following, firstly, a possible implementation structure of the electronic device in the embodiment of the present application will be exemplified. As shown in FIG. 1, the electronic device 100 may include: a processor 110, a memory 120, and a vibration system 130; wherein, the vibration system 130 may include: a motor 131; optionally, the vibration system 130 may also include: a displacement sensor 132, acceleration Sensor 133 and so on.
其中,存储器120可以用于存储一个或多个计算机程序,处理器110可以用于从存储器120中调用并执行计算机程序。The memory 120 may be used to store one or more computer programs, and the processor 110 may be used to call and execute the computer programs from the memory 120.
其中,实现本申请实施例信号处理方法的计算机程序可以存储于存储器120中,处理器110从存储器120中调用并运行该计算机程序,实现信号处理。Among them, a computer program that implements the signal processing method of the embodiment of the present application may be stored in the memory 120, and the processor 110 calls and runs the computer program from the memory 120 to implement signal processing.
如图2所示,电子设备200可以包括:处理器210,第一存储器220,振动***230;其中,振动***230可以包括:电机231、信号处理器232、以及第二存储器233;可选地,振动***230还可以包括:位移传感器234、加速度传感器235等。As shown in FIG. 2, the electronic device 200 may include: a processor 210, a first memory 220, and a vibration system 230; wherein, the vibration system 230 may include: a motor 231, a signal processor 232, and a second memory 233; optionally The vibration system 230 may also include: a displacement sensor 234, an acceleration sensor 235, and the like.
其中,第二存储器233可以用于存储振动***的数据,例如下文中所述的预设位移区间等;第二存储器233还可以用于存储本申请实施例信号处理方法的计算机程序;Wherein, the second memory 233 may be used to store data of the vibration system, such as the preset displacement interval described below; the second memory 233 may also be used to store the computer program of the signal processing method of the embodiment of the present application;
信号处理器232从第二存储器233中调用并运行该计算机程序,实现信号处理。The signal processor 232 calls and runs the computer program from the second memory 233 to realize signal processing.
应理解,图1和图2所示的电子设备能够实现本申请图3~图4所示实施例提供的方法的各个过程。电子设备中的各个模块的操作和/或功能,分别为了实现方法实施例中的相应流程。具体可参见本申请图3~图4所示方法实施例中的描述,为避免重复,此处适当省略详细描述。It should be understood that the electronic devices shown in FIG. 1 and FIG. 2 can implement various processes of the methods provided in the embodiments shown in FIG. 3 to FIG. 4 of this application. The operation and/or function of each module in the electronic device are respectively for implementing the corresponding process in the method embodiment. For details, please refer to the descriptions in the method embodiments shown in FIGS. 3 to 4 of this application. To avoid repetition, detailed descriptions are appropriately omitted here.
图3为本申请信号处理方法一个实施例的流程图,如图3所示,该方法可以包括:FIG. 3 is a flowchart of an embodiment of the signal processing method of this application. As shown in FIG. 3, the method may include:
步骤301:接收第一振动信号,从第一振动信号的第一时刻开始截取预设时长的信号作为第二振动信号,第一时刻的相位为预设相位。Step 301: Receive a first vibration signal, intercept a signal of a preset duration from the first moment of the first vibration signal as the second vibration signal, and the phase at the first moment is the preset phase.
其中,第一时刻也即对应着第二振动信号的起始时刻。Among them, the first moment corresponds to the start moment of the second vibration signal.
步骤302:获取第一拼接信号,第一拼接信号终止时刻的相位为预设相位;第一拼接信号是从使用单频正弦波电压信号驱动电机时电机产生的振动响应曲线的初始时刻开始截取至第二时刻的信号,单频正弦波电压信号的频率是电机的谐振频率,幅值是电机所属电子设备的最大输出电压。Step 302: Obtain the first splicing signal, the phase of the termination time of the first splicing signal is the preset phase; the first splicing signal is intercepted from the initial moment of the vibration response curve generated by the motor when the single frequency sine wave voltage signal is used to drive the motor For the signal at the second moment, the frequency of the single-frequency sine wave voltage signal is the resonance frequency of the motor, and the amplitude is the maximum output voltage of the electronic device to which the motor belongs.
步骤303:对第一拼接信号进行幅值缩放,得到第二拼接信号,第二拼接信号终止时刻的幅值与第二振动信号起始时刻的幅值相等。Step 303: Perform amplitude scaling on the first spliced signal to obtain a second spliced signal, and the amplitude of the end time of the second spliced signal is equal to the amplitude of the start time of the second vibration signal.
步骤304:对第二拼接信号和第二振动信号进行拼接,得到目标振动信号。Step 304: splicing the second splicing signal and the second vibration signal to obtain the target vibration signal.
基于以上方法得到的目标振动信号能够在电子设备的电压输出能力范围内,使得振动***快速产生较大强度的振动,从而使得振动***尽量快速的达到第一振动信号所需的振动效果。The target vibration signal obtained based on the above method can be within the range of the voltage output capability of the electronic device, so that the vibration system quickly generates a relatively large vibration, so that the vibration system can achieve the vibration effect required by the first vibration signal as quickly as possible.
图4为本申请信号处理方法另一个实施例的流程图,如图4所示,该方法可以包括:Fig. 4 is a flowchart of another embodiment of the signal processing method of this application. As shown in Fig. 4, the method may include:
步骤401:接收第一振动信号。Step 401: Receive a first vibration signal.
其中,第一振动信号可以由电子设备中需要进行触觉反馈的应用生成,从而触发处理器执行本申请信号处理方法,进行第一振动信号的处理。需要进行触觉反馈的应用可以包括但不限于:游戏、视频等应用。Wherein, the first vibration signal may be generated by an application that requires tactile feedback in the electronic device, thereby triggering the processor to execute the signal processing method of the present application to process the first vibration signal. Applications that require tactile feedback may include, but are not limited to: games, video and other applications.
步骤402:判断电机产生第一振动信号所需电压大于电子设备的最大输出电压时,从第一振动信号的第一时刻开始截取预设时长的信号作为第二振动信号,第一时刻的相位为预设相位。Step 402: When it is determined that the voltage required by the motor to generate the first vibration signal is greater than the maximum output voltage of the electronic device, a signal of a preset duration is intercepted from the first moment of the first vibration signal as the second vibration signal, and the phase at the first moment is Preset phase.
其中,可以将第一振动信号代入预设的振动***机电耦合方程,计算得到第一振动信号对应的电压信号,电压信号的绝对最大值即为上述电机产生第一振动信号所需电压。The first vibration signal can be substituted into the preset electromechanical coupling equation of the vibration system, and the voltage signal corresponding to the first vibration signal can be calculated. The absolute maximum value of the voltage signal is the voltage required by the motor to generate the first vibration signal.
以上述电机是线性电机为例,振动***机电耦合方程可以为:Taking the above-mentioned motor as a linear motor as an example, the electromechanical coupling equation of the vibration system can be:
Figure PCTCN2020132039-appb-000001
Figure PCTCN2020132039-appb-000001
其中,m为电机动子的质量,c为电机机械阻尼,k为电机弹簧系数,BL为机电耦合系数,R e为电机线圈电阻,L e为电机线圈电感,i为电流,u为电压,x为位移,
Figure PCTCN2020132039-appb-000002
为速度,
Figure PCTCN2020132039-appb-000003
为加速度。其中,速度
Figure PCTCN2020132039-appb-000004
可以由位移x一次求导得到,加速度
Figure PCTCN2020132039-appb-000005
可以由位移x两次求导得到,电流为中间耦合量i。方程中涉及的电机动子的质量、电机机械阻尼、电机弹簧系数、机电耦合系数、电机线圈电阻、电机线圈电感等参数的数值可以基于电机预先设置,将第一振动信号作为位移x,相应 的,即可以计算得到电压信号u。
Wherein, m is the mass of the motor mover, c is the motor mechanical damping, k for the motor spring coefficient, BL is the electromechanical coupling coefficient, R e is a motor coil resistance, L e is the motor coil inductance, i is the current, u is voltage, x is the displacement,
Figure PCTCN2020132039-appb-000002
Is the speed,
Figure PCTCN2020132039-appb-000003
Is acceleration. Among them, the speed
Figure PCTCN2020132039-appb-000004
It can be derived from the displacement x once, and the acceleration
Figure PCTCN2020132039-appb-000005
It can be derived from the displacement x twice, and the current is the intermediate coupling quantity i. The values of the motor mover mass, motor mechanical damping, motor spring coefficient, electromechanical coupling coefficient, motor coil resistance, motor coil inductance and other parameters involved in the equation can be preset based on the motor, and the first vibration signal is used as the displacement x, corresponding , That is, the voltage signal u can be calculated.
其中,为了便于拼接,第一时刻可以为第一振动信号的波峰对应的时刻,或者波谷对应的时刻,相应的,预设相位可以为第一振动信号的波峰对应的相位、或者波谷对应的相位。可选地,第一时刻可以为第一振动信号第二个波峰对应的时刻。Among them, in order to facilitate splicing, the first moment may be the moment corresponding to the peak of the first vibration signal or the moment corresponding to the trough. Accordingly, the preset phase may be the phase corresponding to the peak of the first vibration signal or the phase corresponding to the trough. . Optionally, the first moment may be a moment corresponding to the second peak of the first vibration signal.
其中,预设时长的具体取值可以在实际应用中自主设定,本申请实施例不作限定,例如,预设时长可以为:从第一振动信号的第一时刻至终止时刻。Wherein, the specific value of the preset duration can be independently set in practical applications, which is not limited in the embodiment of the present application. For example, the preset duration can be from the first moment of the first vibration signal to the termination moment.
一般的,预设时长不能过短,以避免最终得到的目标振动信号过短,振动***无法产生第一振动信号所需要的振动效果。预设时长的最小值与驱动振动***的电机的性能相关,例如电机性能相对较好,则预设时长的最小值可以相对较小,电机性能相对较差,则预设时长的最小值可以相对较大。Generally, the preset duration cannot be too short to avoid that the final target vibration signal is too short, and the vibration system cannot generate the vibration effect required by the first vibration signal. The minimum value of the preset duration is related to the performance of the motor driving the vibration system. For example, if the motor performance is relatively good, the minimum value of the preset duration can be relatively small, and the motor performance is relatively poor, then the minimum value of the preset duration can be relatively Larger.
参见图5A所示,为一种第一振动信号的波形示意图,假设电机产生图5A所示的第一振动信号所需电压大于电子设备的最大输出电压Vmax;则,Refer to FIG. 5A, which is a schematic diagram of the waveform of a first vibration signal. Assuming that the voltage required by the motor to generate the first vibration signal shown in FIG. 5A is greater than the maximum output voltage Vmax of the electronic device; then,
参见图5B所示,可以从第一振动信号的第二个波峰的位置开始截取之后的所有第一振动信号为第二振动信号。As shown in FIG. 5B, all the first vibration signals after being intercepted from the position of the second peak of the first vibration signal are the second vibration signals.
需要说明的是,基于步骤402可知,本申请实施例中的第一振动信号的长度一般不能过短,以使得步骤402中能够从第一振动信号中找到具有预设相位的第一时刻,从而截取到第二振动信号,第一振动信号的长度与第二振动信号的截取规则有关,也即与第一时刻、以及预设相位相关。举例来说,对于图5A所示第一振动信号,假设第一时刻是第一振动信号的第一个波峰对应的时刻,那么,第一时刻为T/4,T是电机的周期,则第一振动信号的长度需要大于T/4,才能截取到第二振动信号;假设第一时刻是第一振动信号的第二个波峰对应的时刻,那么第一时刻为5T/4,则第一振动信号的长度需要大于5T/4,才能截取到第二振动信号。It should be noted that, based on step 402, it can be known that the length of the first vibration signal in the embodiment of the present application generally cannot be too short, so that the first moment with the preset phase can be found from the first vibration signal in step 402, thereby The second vibration signal is intercepted, and the length of the first vibration signal is related to the interception rule of the second vibration signal, that is, it is related to the first moment and the preset phase. For example, for the first vibration signal shown in FIG. 5A, assuming that the first time is the time corresponding to the first peak of the first vibration signal, then the first time is T/4, and T is the period of the motor, then the first time The length of a vibration signal needs to be greater than T/4 to intercept the second vibration signal; assuming that the first time is the time corresponding to the second peak of the first vibration signal, then the first time is 5T/4, then the first vibration The length of the signal needs to be greater than 5T/4 to intercept the second vibration signal.
通过以上的步骤401~步骤403,即得到步骤301中的第二振动信号。Through the above steps 401 to 403, the second vibration signal in step 301 is obtained.
步骤403:获取第一拼接信号,第一拼接信号终止时刻的相位为预设相位;第一拼接信号是从使用单频正弦波电压信号驱动电机时电机产生的振动响应曲线的初始时刻开始截取至第二时刻的信号,单频正弦波电压信号的频率是电机 的谐振频率,幅值是电机所属电子设备的最大输出电压。Step 403: Obtain the first splicing signal. The phase at the end of the first splicing signal is the preset phase; the first splicing signal is intercepted from the initial moment of the vibration response curve generated by the motor when the single-frequency sine wave voltage signal is used to drive the motor. For the signal at the second moment, the frequency of the single-frequency sine wave voltage signal is the resonance frequency of the motor, and the amplitude is the maximum output voltage of the electronic device to which the motor belongs.
在一种可能的实现方式中,第一拼接信号可以预先设置于电子设备中,则本步骤中可以从电子设备中直接获取该第一拼接信号。此时,步骤402中的预设相位需要与电子设备中预先设置的第一拼接信号的终止时刻的相位相同。In a possible implementation manner, the first splicing signal may be preset in the electronic device, and then the first splicing signal may be directly obtained from the electronic device in this step. At this time, the preset phase in step 402 needs to be the same as the phase at the termination time of the first splicing signal preset in the electronic device.
在另一种可能的实现方式中,第一拼接信号可以实时生成。此时,获取第一拼接信号可以包括:In another possible implementation manner, the first splicing signal can be generated in real time. At this time, acquiring the first splicing signal may include:
计算使用单频正弦波电压信号驱动电机时电机产生的振动响应曲线;单频正弦波电压信号的频率是电机的谐振频率,幅值是电机所属电子设备的最大输出电压;Calculate the vibration response curve of the motor when a single-frequency sine wave voltage signal is used to drive the motor; the frequency of the single-frequency sine wave voltage signal is the resonance frequency of the motor, and the amplitude is the maximum output voltage of the electronic equipment to which the motor belongs;
根据第一振动信号中第一时刻对应的相位,确定振动响应曲线中的第二时刻,第二时刻对应的相位与第一时刻对应的相位相同;Determine the second time in the vibration response curve according to the phase corresponding to the first time in the first vibration signal, and the phase corresponding to the second time is the same as the phase corresponding to the first time;
截取振动响应曲线中从初始时刻至第二时刻的信号,作为第一拼接信号。The signal from the initial moment to the second moment in the vibration response curve is intercepted and used as the first splicing signal.
其中,如果第一时刻是第一振动信号的波峰对应的时刻,那么第二时刻也是振动响应曲线中的波峰对应的时刻;可选地,第二时刻可以是振动响应曲线中第二个波峰对应的时刻;或者,Among them, if the first moment is the moment corresponding to the peak of the first vibration signal, then the second moment is also the moment corresponding to the peak in the vibration response curve; optionally, the second moment may be the second peak corresponding to the vibration response curve. The moment; or,
如果第一时刻是第一振动信号的波谷对应的时刻,那么第二时刻也是振动响应曲线的波谷对应的时刻。If the first moment is the moment corresponding to the trough of the first vibration signal, then the second moment is also the moment corresponding to the trough of the vibration response curve.
对步骤403的实现举例说明:参见图5C所示,实线和虚线构成的信号为振动响应曲线,振动响应曲线中的实线部分为截取的拼接信号,拼接信号的终止时刻对应振动响应曲线的第二时刻,第二时刻为振动响应曲线中第二个波峰对应的时刻。An example of the implementation of step 403: see Figure 5C, the signal formed by the solid line and the dashed line is the vibration response curve, the solid line part of the vibration response curve is the intercepted splicing signal, and the termination time of the splicing signal corresponds to the vibration response curve. The second moment is the moment corresponding to the second peak in the vibration response curve.
步骤404:对第一拼接信号进行幅值缩放,得到第二拼接信号,第二拼接信号终止时刻的幅值与第二振动信号起始时刻的幅值相等。Step 404: Perform amplitude scaling on the first spliced signal to obtain a second spliced signal, and the amplitude of the end time of the second spliced signal is equal to the amplitude of the start time of the second vibration signal.
步骤405:对第二拼接信号和第二振动信号进行拼接,得到目标振动信号。Step 405: Splicing the second splicing signal and the second vibration signal to obtain the target vibration signal.
其中,将第二拼接信号放置于第二振动信号之前进行拼接。Wherein, the second splicing signal is placed before the second vibration signal for splicing.
延续之前的举例,参见图5D所示,长度较短的信号为第一拼接信号,第一拼接信号缩小幅值,使得得到的第二拼接信号的终止时刻的幅值与第二振动信号起始时刻的幅值相同,第二拼接信号与第二振动信号拼接后得到的信号即为 目标振动信号。Continuing the previous example, referring to Figure 5D, the signal with a shorter length is the first splicing signal, and the first splicing signal is reduced in amplitude, so that the obtained second splicing signal has the same amplitude at the end time of the second vibration signal. The amplitudes at the moments are the same, and the signal obtained after the second splicing signal and the second vibration signal are spliced together is the target vibration signal.
得到目标振动信号后,可以根据目标振动信号计算得到电机的电压输入信号,将电压输入信号输入至电机,即可使得电机产生目标振动信号,从而使得电机能够在电子设备的电压输出能力范围内,快速产生较大强度的振动,也即使得振动***在电子设备的电压输出能力范围内尽量快速的达到第一振动信号所需的振动效果。After the target vibration signal is obtained, the voltage input signal of the motor can be calculated according to the target vibration signal, and the voltage input signal is input to the motor to make the motor generate the target vibration signal, so that the motor can be within the voltage output capability of the electronic device. The rapid generation of large-intensity vibration means that the vibration system can achieve the vibration effect required by the first vibration signal as quickly as possible within the voltage output capability of the electronic device.
可以理解的是,上述实施例中的部分或全部步骤骤或操作仅是示例,本申请实施例还可以执行其它操作或者各种操作的变形。此外,各个步骤可以按照上述实施例呈现的不同的顺序来执行,并且有可能并非要执行上述实施例中的全部操作。It can be understood that some or all of the steps or operations in the above-mentioned embodiments are merely examples, and the embodiments of the present application may also perform other operations or variations of various operations. In addition, each step may be executed in a different order presented in the foregoing embodiment, and it may not be necessary to perform all operations in the foregoing embodiment.
图6为本申请信号处理装置一个实施例的结构图,如图6所示,该装置60可以包括:FIG. 6 is a structural diagram of an embodiment of a signal processing device of this application. As shown in FIG. 6, the device 60 may include:
信号截取单元61,用于接收第一振动信号,从所述第一振动信号的第一时刻开始截取预设时长的信号作为第二振动信号,所述第一时刻的相位为预设相位;The signal intercepting unit 61 is configured to receive a first vibration signal, and intercept a signal of a preset duration from the first moment of the first vibration signal as the second vibration signal, and the phase at the first moment is the preset phase;
获取单元62,用于获取第一拼接信号,所述第一拼接信号终止时刻的相位为所述预设相位;所述第一拼接信号是从使用单频正弦波电压信号驱动电机时所述电机产生的振动响应曲线的初始时刻开始截取至第二时刻的信号,所述单频正弦波电压信号的频率是所述电机的谐振频率,幅值是电机所属电子设备的最大输出电压;The acquiring unit 62 is configured to acquire a first splicing signal, and the phase at the termination time of the first splicing signal is the preset phase; the first splicing signal is derived from when the motor is driven by a single frequency sine wave voltage signal The generated vibration response curve is intercepted from the initial moment to the second moment, the frequency of the single-frequency sine wave voltage signal is the resonance frequency of the motor, and the amplitude is the maximum output voltage of the electronic device to which the motor belongs;
缩放单元63,用于对所述第一拼接信号进行幅值缩放,得到第二拼接信号,所述第二拼接信号终止时刻的幅值与所述第二振动信号起始时刻的幅值相等;The scaling unit 63 is configured to perform amplitude scaling on the first splicing signal to obtain a second splicing signal, and the amplitude of the end time of the second splicing signal is equal to the amplitude of the start time of the second vibration signal;
拼接单元64,用于对所述第二拼接信号和所述第二振动信号进行拼接,得到目标振动信号。The splicing unit 64 is configured to splice the second splicing signal and the second vibration signal to obtain a target vibration signal.
可选地,参见图7所示,所述获取单元62可以包括:Optionally, referring to FIG. 7, the acquiring unit 62 may include:
计算子单元621,用于计算使用单频正弦波电压信号驱动所述电机时所述电机产生的振动响应曲线;The calculation subunit 621 is configured to calculate the vibration response curve generated by the motor when the single frequency sine wave voltage signal is used to drive the motor;
时刻确定子单元622,用于根据所述第一振动信号中第一时刻对应的相位,确定所述振动响应曲线中的第二时刻,所述第二时刻对应的相位与所述第一时刻对应的相位相同;The time determination subunit 622 is configured to determine the second time in the vibration response curve according to the phase corresponding to the first time in the first vibration signal, and the phase corresponding to the second time corresponds to the first time The phase is the same;
截取子单元623,用于截取所述振动响应曲线中从初始时刻至所述第二时刻的信号,作为所述第一拼接信号。The intercepting subunit 623 is configured to intercept the signal from the initial moment to the second moment in the vibration response curve as the first splicing signal.
图6和图7所示实施例提供的装置60可用于执行本申请图3~图4所示方法实施例的技术方案,其实现原理和技术效果可以进一步参考方法实施例中的相关描述。The apparatus 60 provided in the embodiment shown in FIGS. 6 and 7 can be used to implement the technical solutions of the method embodiments shown in FIGS. 3 to 4 of the present application. For its implementation principles and technical effects, further reference may be made to related descriptions in the method embodiments.
应理解以上图6和图7所示的装置的各个单元的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且这些单元可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分单元以软件通过处理元件调用的形式实现,部分单元通过硬件的形式实现。例如,信号截取单元可以为单独设立的处理元件,也可以集成在电子设备的某一个芯片中实现。其它单元的实现与之类似。此外这些单元全部或部分可以集成在一起,也可以独立实现。在实现过程中,上述方法的各步骤或以上各个单元可以通过处理器元件中的硬件的集成逻辑电路或者软件形式的指令完成。It should be understood that the division of each unit of the apparatus shown in FIG. 6 and FIG. 7 is only a division of logical functions, and may be fully or partially integrated into one physical entity during actual implementation, or may be physically separated. And these units can all be implemented in the form of software called by processing elements; they can also be implemented in the form of hardware; part of the units can also be implemented in the form of software called by the processing elements, and some of the units can be implemented in the form of hardware. For example, the signal interception unit may be a separately established processing element, or it may be integrated in a certain chip of the electronic device. The implementation of other units is similar. In addition, all or part of these units can be integrated together or implemented independently. In the implementation process, each step of the above method or each of the above units can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
例如,以上这些单元可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(Application Specific Integrated Circuit;以下简称:ASIC),或,一个或多个微处理器(Digital Singnal Processor;以下简称:DSP),或,一个或者多个现场可编程门阵列(Field Programmable Gate Array;以下简称:FPGA)等。再如,这些单元可以集成在一起,以片上***(System-On-a-Chip;以下简称:SOC)的形式实现。For example, the above units may be one or more integrated circuits configured to implement the above methods, such as: one or more specific integrated circuits (Application Specific Integrated Circuit; hereinafter referred to as ASIC), or, one or more micro-processing Digital Processor (Digital Singnal Processor; hereinafter referred to as DSP), or, one or more Field Programmable Gate Array (Field Programmable Gate Array; hereinafter referred to as FPGA), etc. For another example, these units can be integrated together and implemented in the form of a System-On-a-Chip (hereinafter referred to as SOC).
本申请还提供一种电子设备,所述设备包括存储介质和中央处理器,所述存储介质可以是非易失性存储介质,所述存储介质中存储有计算机可执行程序,所述中央处理器与所述非易失性存储介质连接,并执行所述计算机可执行程序以实现本申请图3~图4所示实施例提供的方法。This application also provides an electronic device. The device includes a storage medium and a central processing unit. The storage medium may be a non-volatile storage medium. A computer executable program is stored in the storage medium. The central processing unit is connected to the The non-volatile storage medium is connected, and the computer executable program is executed to implement the methods provided by the embodiments shown in FIGS. 3 to 4 of this application.
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行本申请图3~图4所示实施例提供的方法。The embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program. When it runs on a computer, the computer executes the functions provided by the embodiments shown in FIGS. 3 to 4 of the present application. method.
本申请实施例还提供一种计算机程序产品,该计算机程序产品包括计算机程序,当其在计算机上运行时,使得计算机执行本申请图3~图4所示实施例提供的方法。The embodiments of the present application also provide a computer program product. The computer program product includes a computer program that, when running on a computer, causes the computer to execute the method provided by the embodiments shown in FIGS. 3 to 4 of the present application.
本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示单独存在A、同时存在A和B、单独存在B的情况。其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项”及其类似表达,是指的这些项中的任意组合,包括单项或复数项的任意组合。例如,a,b和c中的至少一项可以表示:a,b,c,a和b,a和c,b和c或a和b和c,其中a,b,c可以是单个,也可以是多个。In the embodiments of the present application, "at least one" refers to one or more, and "multiple" refers to two or more. "And/or" describes the association relationship of the associated objects, indicating that there can be three types of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone. Among them, A and B can be singular or plural. The character "/" generally indicates that the associated objects before and after are in an "or" relationship. "The following at least one item" and similar expressions refer to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, and c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, and c can be single, or There can be more than one.
本领域普通技术人员可以意识到,本文中公开的实施例中描述的各单元及算法步骤,能够以电子硬件、计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。A person of ordinary skill in the art may be aware that the units and algorithm steps described in the embodiments disclosed herein can be implemented by a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的***、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, the specific working process of the system, device and unit described above can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,任一功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only  Memory;以下简称:ROM)、随机存取存储器(Random Access Memory;以下简称:RAM)、磁碟或者光盘等各种可以存储程序代码的介质。In the several embodiments provided in this application, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solution of the present application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory; hereinafter referred to as ROM), random access memory (Random Access Memory; hereinafter referred to as RAM), magnetic disks or optical disks, etc. A medium that can store program codes.
以上所述,仅为本申请的具体实施方式,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific implementations of this application. Any person skilled in the art can easily conceive of changes or substitutions within the technical scope disclosed in this application, and they should all be covered by the protection scope of this application. The protection scope of this application shall be subject to the protection scope of the claims.

Claims (9)

  1. 一种信号处理方法,其特征在于,包括:A signal processing method, characterized in that it comprises:
    接收第一振动信号,从所述第一振动信号的第一时刻开始截取预设时长的信号作为第二振动信号,所述第一时刻的相位为预设相位;Receiving a first vibration signal, intercepting a signal of a preset duration from the first moment of the first vibration signal as a second vibration signal, and the phase at the first moment is the preset phase;
    获取第一拼接信号,所述第一拼接信号终止时刻的相位为所述预设相位;所述第一拼接信号是从使用单频正弦波电压信号驱动电机时所述电机产生的振动响应曲线的初始时刻开始截取至第二时刻的信号,所述单频正弦波电压信号的频率是所述电机的谐振频率,幅值是电机所属电子设备的最大输出电压;Acquire a first splicing signal, the phase at the termination time of the first splicing signal is the preset phase; the first splicing signal is derived from the vibration response curve generated by the motor when a single-frequency sine wave voltage signal is used to drive the motor The signal from the initial moment to the second moment is intercepted, the frequency of the single-frequency sine wave voltage signal is the resonance frequency of the motor, and the amplitude is the maximum output voltage of the electronic device to which the motor belongs;
    对所述第一拼接信号进行幅值缩放,得到第二拼接信号,所述第二拼接信号终止时刻的幅值与所述第二振动信号起始时刻的幅值相等;Performing amplitude scaling on the first splicing signal to obtain a second splicing signal, and the amplitude of the end time of the second splicing signal is equal to the amplitude of the start time of the second vibration signal;
    对所述第二拼接信号和所述第二振动信号进行拼接,得到目标振动信号。The second splicing signal and the second vibration signal are spliced to obtain a target vibration signal.
  2. 根据权利要求1所述的方法,其特征在于,所述获取第一拼接信号,包括:The method according to claim 1, wherein said obtaining the first splicing signal comprises:
    计算使用单频正弦波电压信号驱动所述电机时所述电机产生的振动响应曲线;Calculating the vibration response curve generated by the motor when the single frequency sine wave voltage signal is used to drive the motor;
    根据所述第一振动信号中第一时刻对应的相位,确定所述振动响应曲线中的第二时刻,所述第二时刻对应的相位与所述第一时刻对应的相位相同;Determine the second time in the vibration response curve according to the phase corresponding to the first time in the first vibration signal, where the phase corresponding to the second time is the same as the phase corresponding to the first time;
    截取所述振动响应曲线中从初始时刻至所述第二时刻的信号,作为所述第一拼接信号。The signal from the initial moment to the second moment in the vibration response curve is intercepted and used as the first splicing signal.
  3. 根据权利要求1或2所述的方法,其特征在于,所述第一时刻是所述第一振动信号的波峰对应的时刻,所述第二时刻是所述振动响应曲线中的波峰对应的时刻;或者,The method according to claim 1 or 2, wherein the first moment is a moment corresponding to the peak of the first vibration signal, and the second moment is a moment corresponding to the peak in the vibration response curve ;or,
    所述第一时刻是所述第一振动信号的波谷对应的时刻,所述第二时刻是所述振动响应曲线中的波谷对应的时刻。The first time is a time corresponding to a trough of the first vibration signal, and the second time is a time corresponding to a trough in the vibration response curve.
  4. 根据权利要求3所述的方法,其特征在于,所述第二时刻是所述振动响应曲线中的第二个波峰对应的时刻。The method according to claim 3, wherein the second moment is a moment corresponding to the second peak in the vibration response curve.
  5. 根据权利要求1或2所述的方法,其特征在于,所述预设时长为从所述 第一振动信号的第一时刻至所述第一振动信号的终止时刻。The method according to claim 1 or 2, wherein the preset duration is from a first moment of the first vibration signal to a termination moment of the first vibration signal.
  6. 一种信号处理装置,其特征在于,包括:A signal processing device, characterized in that it comprises:
    信号截取单元,用于接收第一振动信号,从所述第一振动信号的第一时刻开始截取预设时长的信号作为第二振动信号,所述第一时刻的相位为预设相位;A signal interception unit, configured to receive a first vibration signal, intercept a signal of a preset duration from the first moment of the first vibration signal as a second vibration signal, and the phase at the first moment is the preset phase;
    获取单元,用于获取第一拼接信号,所述第一拼接信号终止时刻的相位为所述预设相位;所述第一拼接信号是从使用单频正弦波电压信号驱动电机时所述电机产生的振动响应曲线的初始时刻开始截取至第二时刻的信号,所述单频正弦波电压信号的频率是所述电机的谐振频率,幅值是电机所属电子设备的最大输出电压;The acquiring unit is configured to acquire a first splicing signal, and the phase at the termination time of the first splicing signal is the preset phase; the first splicing signal is generated from the motor when a single frequency sine wave voltage signal is used to drive the motor The signal from the initial moment of the vibration response curve to the second moment is intercepted, the frequency of the single-frequency sine wave voltage signal is the resonant frequency of the motor, and the amplitude is the maximum output voltage of the electronic device to which the motor belongs;
    缩放单元,用于对所述第一拼接信号进行幅值缩放,得到第二拼接信号,所述第二拼接信号终止时刻的幅值与所述第二振动信号起始时刻的幅值相等;A scaling unit, configured to perform amplitude scaling on the first splicing signal to obtain a second splicing signal, and the amplitude of the end time of the second splicing signal is equal to the amplitude of the start time of the second vibration signal;
    拼接单元,用于对所述第二拼接信号和所述第二振动信号进行拼接,得到目标振动信号。The splicing unit is used for splicing the second splicing signal and the second vibration signal to obtain a target vibration signal.
  7. 根据权利要求6所述的装置,其特征在于,所述获取单元包括:The device according to claim 6, wherein the acquiring unit comprises:
    计算子单元,用于计算使用单频正弦波电压信号驱动所述电机时所述电机产生的振动响应曲线;The calculation subunit is used to calculate the vibration response curve generated by the motor when the single frequency sine wave voltage signal is used to drive the motor;
    时刻确定子单元,用于根据所述第一振动信号中第一时刻对应的相位,确定所述振动响应曲线中的第二时刻,所述第二时刻对应的相位与所述第一时刻对应的相位相同;The time determining subunit is configured to determine the second time in the vibration response curve according to the phase corresponding to the first time in the first vibration signal, and the phase corresponding to the second time corresponds to the phase corresponding to the first time. The same phase;
    截取子单元,用于截取所述振动响应曲线中从初始时刻至所述第二时刻的信号,作为所述第一拼接信号。The intercepting subunit is used to intercept the signal from the initial moment to the second moment in the vibration response curve as the first splicing signal.
  8. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    一个或多个处理器;存储器;以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述设备执行时,使得所述设备执行权利要求1至5任一项所述的方法。One or more processors; memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, when the instructions are When the device is executed, the device is caused to execute the method according to any one of claims 1 to 5.
  9. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行如权利要求1至5 任一项所述的方法。A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which when running on a computer, causes the computer to execute the method according to any one of claims 1 to 5.
PCT/CN2020/132039 2020-04-14 2020-11-27 Signal processing method and apparatus, and electronic device WO2021208447A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010289644.2 2020-04-14
CN202010289644.2A CN111580644B (en) 2020-04-14 2020-04-14 Signal processing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
WO2021208447A1 true WO2021208447A1 (en) 2021-10-21

Family

ID=72126304

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/132039 WO2021208447A1 (en) 2020-04-14 2020-11-27 Signal processing method and apparatus, and electronic device

Country Status (2)

Country Link
CN (1) CN111580644B (en)
WO (1) WO2021208447A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111580644B (en) * 2020-04-14 2023-04-28 瑞声科技(新加坡)有限公司 Signal processing method and device and electronic equipment
CN112394817B (en) * 2020-11-26 2022-04-26 瑞声新能源发展(常州)有限公司科教城分公司 Method, apparatus, electronic device and storage medium for responding to vibration event
CN115357124B (en) * 2022-09-20 2023-09-05 武汉市聚芯微电子有限责任公司 Vibration control method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8084968B2 (en) * 2007-09-17 2011-12-27 Sony Ericsson Mobile Communications Ab Use of an accelerometer to control vibrator performance
CN106301137A (en) * 2016-08-31 2017-01-04 歌尔股份有限公司 Actively control the method for linear motor vibrations, device, system and electronic equipment
CN106411217A (en) * 2016-08-31 2017-02-15 歌尔股份有限公司 Method, device and system for active control linear motor, and electronic equipment
CN107831899A (en) * 2017-11-20 2018-03-23 珠海市魅族科技有限公司 Vibration control method, device, mobile terminal and the readable storage medium storing program for executing of motor
US20190206201A1 (en) * 2017-12-29 2019-07-04 AAC Technologies Pte. Ltd. Method and device for generating vibrating signal
CN111580644A (en) * 2020-04-14 2020-08-25 瑞声科技(新加坡)有限公司 Signal processing method and device and electronic equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4349275B2 (en) * 2004-12-21 2009-10-21 株式会社安川電機 Method and apparatus for detecting vibration frequency of motion control apparatus
CN104811251A (en) * 2014-01-27 2015-07-29 腾讯科技(深圳)有限公司 Information transmission method, device and system
CN105630021B (en) * 2015-12-31 2018-07-31 歌尔股份有限公司 A kind of the tactile vibrations control system and method for intelligent terminal
CN105897120B (en) * 2016-05-19 2018-09-21 瑞声科技(新加坡)有限公司 Accurately control the signal creating method of motor
WO2018126560A1 (en) * 2017-01-04 2018-07-12 华为技术有限公司 Method for driving a linear resonant actuator, and terminal
CN107734167A (en) * 2017-10-11 2018-02-23 深圳市金立通信设备有限公司 A kind of vibration control method, terminal and computer-readable recording medium
CN110189743B (en) * 2019-05-06 2024-03-08 平安科技(深圳)有限公司 Splicing point smoothing method and device in waveform splicing and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8084968B2 (en) * 2007-09-17 2011-12-27 Sony Ericsson Mobile Communications Ab Use of an accelerometer to control vibrator performance
CN106301137A (en) * 2016-08-31 2017-01-04 歌尔股份有限公司 Actively control the method for linear motor vibrations, device, system and electronic equipment
CN106411217A (en) * 2016-08-31 2017-02-15 歌尔股份有限公司 Method, device and system for active control linear motor, and electronic equipment
CN107831899A (en) * 2017-11-20 2018-03-23 珠海市魅族科技有限公司 Vibration control method, device, mobile terminal and the readable storage medium storing program for executing of motor
US20190206201A1 (en) * 2017-12-29 2019-07-04 AAC Technologies Pte. Ltd. Method and device for generating vibrating signal
CN111580644A (en) * 2020-04-14 2020-08-25 瑞声科技(新加坡)有限公司 Signal processing method and device and electronic equipment

Also Published As

Publication number Publication date
CN111580644A (en) 2020-08-25
CN111580644B (en) 2023-04-28

Similar Documents

Publication Publication Date Title
WO2021208447A1 (en) Signal processing method and apparatus, and electronic device
CN110346720B (en) Method and device for testing nonlinear parameters of motor
WO2020258149A1 (en) Motor vibration control method and apparatus and computer-readable storage medium
WO2021000178A1 (en) Excitation signal generation method and device for motor, and computer apparatus
WO2021208446A1 (en) Signal processing method and apparatus, and electronic device
JP6226836B2 (en) Generate haptic effects while minimizing cascades
WO2017113651A1 (en) Tactile vibration control system and method for smart terminal
JP6749455B2 (en) Motor driving method, terminal device, and computer-readable recording medium
US20150207632A1 (en) Random Number Generation Failure Detection and Entropy Estimation
CN110162171B (en) Motor driving signal setting method, electronic device and storage medium
US11876474B2 (en) Linear resonant device, and braking method for same
JP2014016991A (en) Generating haptic effects for dynamic events
US20210038978A1 (en) Method for constructing motor vibration model, method and electronic device for haptics implementation, and storage medium
US10768706B1 (en) Determining an amplitude of a braking portion of a waveform of a driving voltage signal for a linear resonant actuator
CN110235149B (en) Neural plot control
US11579697B2 (en) Haptic effect encoding and rendering system
CN110992009A (en) Delayed transaction advanced processing method, device and storage medium
CN106406522A (en) Virtual reality scene content adjustment method and apparatus
WO2021248849A1 (en) Driving voltage generation method and apparatus, and storage medium, and electronic device
JP2018005917A (en) Cloud connected haptic platform
WO2021208121A1 (en) Method and apparatus for quickly stopping vibration system, and computer device and storage medium
CN113949323B (en) Control method, control device, equipment and medium for linear motor
US20180341710A1 (en) Heterogeneous social networking
WO2022110268A1 (en) Method and apparatus for responding to vibration event, electronic device, and storage medium
WO2023273156A1 (en) Delay estimation adjustment method and apparatus, and device and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20930677

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20930677

Country of ref document: EP

Kind code of ref document: A1