WO2022006958A1 - Method and system for achieving haptics effect - Google Patents

Method and system for achieving haptics effect Download PDF

Info

Publication number
WO2022006958A1
WO2022006958A1 PCT/CN2020/102421 CN2020102421W WO2022006958A1 WO 2022006958 A1 WO2022006958 A1 WO 2022006958A1 CN 2020102421 W CN2020102421 W CN 2020102421W WO 2022006958 A1 WO2022006958 A1 WO 2022006958A1
Authority
WO
WIPO (PCT)
Prior art keywords
haptics
vibration
effect
haptic
parameters
Prior art date
Application number
PCT/CN2020/102421
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 WO2022006958A1 publication Critical patent/WO2022006958A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/25Output arrangements for video game devices
    • A63F13/28Output arrangements for video game devices responding to control signals received from the game device for affecting ambient conditions, e.g. for vibrating players' seats, activating scent dispensers or affecting temperature or light
    • A63F13/285Generating tactile feedback signals via the game input device, e.g. force feedback
    • 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
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/10Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals
    • A63F2300/1037Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals being specially adapted for converting control signals received from the game device into a haptic signal, e.g. using force feedback

Definitions

  • the mobile phone application generates an excitation signal of the motor as required, and the excitation signal drives the motor to vibrate to generate a corresponding haptic experience.
  • the tactile experience using motor vibration in the prior art has the following shortcomings: First, the excitation signal of the motor is mostly pre-stored, and the tactile experience effect generated by the pre-stored vibration is limited, lacks versatility and scene adaptability, and has poor consistency.
  • the second is to generate the corresponding vibration signal data after using the input signal (such as audio data), decoding the tactile information and the associated vibration parameters, and then using the vibration signal data to drive the motor to generate vibration, the process is more complicated, and the vibration and the input signal such as Audio correlation, lack of flexibility and customization capabilities;
  • multi-motors are used when complex vibration scenes are to be realized, and the design of multi-motors is complex, high cost and power consumption;
  • the data storage format is single, such as Haptic Elementary Stream (Haptic Elementary Stream, HES) data, the versatility is poor; fifth, most of the parameters of the driving motor use the motor resonant frequency, so that the haptic experience effect brought by the motor vibration is less, the effect calculation results are inaccurate, and the haptic effect experience is poor.
  • the present invention provides a method and system for realizing Haptics haptic effect, aiming at solving the problems of lack of versatility and scene adaptability and poor consistency of the existing motor vibration, as well as the complicated realization process and high power consumption, which bring The problem of single haptic effect and poor user experience.
  • Step S20 generating vibration parameters according to the description of the vibration event
  • the system for implementing Haptics haptic effects further includes a power supply, and the power supply provides power for the processor platform and the Haptics chip.
  • the parameters of the driving motor include any one or more of desired excitation voltage signal, vibration acceleration signal, motor speed signal, motor displacement signal, maximum voltage limit and displacement protection.
  • the displacement protection is to limit the electrical signal as a whole according to the safe displacement of the vibrator of the motor, so as to ensure that the electrical signal will not cause the vibrator to exceed the predicted safe displacement.
  • haptic data are diversified, including txt, act, HED and xml formats are supported, which improves the versatility and diversity;
  • the parameters of the drive motor are rich, the effect calculation results are more accurate, and the haptic effect brought by the vibration is good.
  • FIG. 3 is a schematic diagram of a combined effect form provided by an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a system for providing a Haptics haptic effect according to an embodiment of the present invention
  • the user interface device for the target haptic effect experience is a mobile phone, and the target haptic output device inside the mobile phone includes a motor, and the motor includes a linear motor, a rotor motor, or a Piezo motor.
  • the applications of tactile experience include: various virtual keys, side keys, contextual change menus, and tactile interaction prompts edge touch, tap and slide operation and pressure touch, off-screen fingerprint recognition, and pressing operations, etc.; OS operation feedback ( For example: system-level reusable haptic controls, custom controls and custom feedback, combined with OEM design, animation, etc.); personalized notifications (for example: rhythm ringtone vibration, personalized notification, custom vibration pattern (vibration combination), etc.) ; Games, AR (for example: haptic enhancement of game elements, physical engine coordination, virtual space positioning, object selection, movement, distinguishing environmental elements and protagonist actions, etc.), etc.
  • the present invention provides a method and system for realizing Haptics haptic effect, which can give users an immersive experience by accurately adapting the drive motor to different applications and scenarios.
  • Step S10 Receive a vibration event that occurs at a certain point in time and perform effect ID definition and vibration event description; the vibration event description includes an effect library, an envelope library, a combination effect, a third-party native vibration effect, a synchronization mechanism and Any one or more of the looping mechanisms.
  • the envelope library is a vibration waveform determined by specifying vibration parameters; the vibration parameters include any one or more of excitation signal duration, relative time of excitation signal envelope points, vibration intensity and vibration frequency.
  • FIG. 2 it is a schematic diagram of an envelope form. Specifically, in an embodiment of the present invention, a vibration including four parameter configurations is defined, wherein the four parameter configurations are: intensity, frequency, duration and F-MODE, F-MODE is the vibration type.
  • the combined effect is composed of one or more Haptics vibration events according to a certain time sequence, and each vibration event corresponds to one vibration.
  • a Haptics vibration event can be a transient effect that changes the vibration intensity based on one of the vibration effects in the effects library. Steady transient effects and transient effects can be combined to form a combined effect.
  • the synchronization mechanism is a time stamp-based audio, video and tactile synchronization management mechanism, and automatically generates parameters and files of ringtone follow-up vibrations according to design files.
  • the interval of bullets is different, and the interval of the vibration effect corresponding to each bullet can be adjusted;
  • the looping mechanism includes priority setting. According to the priority presets of different playback streams, high-priority playback can interrupt low-priority playback, and when high-priority playback ends, the original playback content can be restored.
  • priority setting According to the priority presets of different playback streams, high-priority playback can interrupt low-priority playback, and when high-priority playback ends, the original playback content can be restored.
  • Support system vibration (such as incoming calls) to interrupt the vibration of the current app.
  • the vibration event description is stored as haptic data, and the format of the haptic data includes any one of txt, act, HED and xml.
  • Step S30 Encapsulate the vibration parameters through an integrated interface to obtain encapsulated data; the integrated interface includes a JNI extension interface and a third-party native interface.
  • Step S40 Define the encapsulation data as a list of Haptics effect enumeration types, so as to realize the mapping between signal names and effect IDs.
  • Step S50 perform processing according to the Haptics effect enumeration type list to obtain key hardware parameters used to drive hardware vibration; perform corresponding processing according to the parameters in the Haptics effect enumeration type list, including intensity scaling, envelope signal Generation, displacement protection, etc.
  • the effect library is the pre-generated deterministic Haptics effect
  • the hardware configuration information is the pre-configured key hardware parameters, including information such as the motor resonant frequency F0.
  • Step S70 Drive the motor to vibrate through the Haptics chip to generate a haptic effect.
  • the present invention provides a system for realizing Haptics haptic effect, and the system for realizing Haptics haptic effect includes processor platform 10 , Haptics chip 20 , motor 30 and power supply 40 , the processor platform 10 is connected to the Haptics chip 20 , the Haptics chip 20 is connected to the motor 30 , and the power supply 40 provides power for the processor platform 10 and the Haptics chip 20 .
  • the processor platform 10 is used to process vibration events and convert the vibration events into key hardware parameters that drive hardware vibration; the processor platform 10 is used as a system-level software carrier, and a customizable HAL interface can be used to process the vibration events. In various working scenarios in the mobile phone application, an interface with data transmission capability is used to communicate with the Haptics chip 20 .
  • the Haptics chip 20 is used to drive the motor to work; the Haptics chip 20 is a drive chip of the motor, and the Haptics chip 20 has a built-in power amplifier chip that can meet various motion modes of the motor. At the same time, the Haptics chip 20 also Including drive voltage, sampling rate and data interface, to achieve precise and flexible motor drive.
  • the motor 30 is used to vibrate to produce haptic effects.
  • the motor 30 includes a linear motor, a rotor motor or a Piezo motor.
  • the motor is positioned to match the end product and combined with the corresponding structural design. With the Haptics chip, the motor can respond quickly in various states and maintain low power consumption. , and excellent transient power response capability.
  • the processor platform includes an application layer, an architecture layer, a JNI layer, a HIDL layer, a HAL layer, and a Kernel layer in sequence from top to bottom, wherein,
  • the application layer is used to receive a vibration event that occurs at a certain point in time and perform effect ID definition and vibration event description;
  • the vibration event description includes an effect library, an envelope library, a combination effect, a third-party native vibration effect, Any one or more of synchronization mechanism and round-robin mechanism.
  • the architecture layer is used to generate vibration parameters according to the description of the vibration event;
  • the vibration parameters include a general effect library (also called built-in effect) and a custom effect library (stored in the form of a file, also called a custom file) in the effect library. or ACT file), envelope library, combination effect, third-party native vibration effect support (such as Google support), for system applications, such as the system ringtone of the mobile phone system, the vibration design is realized through the json parsing and synchronization mechanism through the extension interface, and the Custom file containing vibration parameters.
  • the JNI layer is used to encapsulate the vibration parameters through the integrated interface to obtain encapsulated data;
  • the JNI is a Java native interface (Java Native interface).
  • Interface, JNI) provides an interface scheme integrating Java and C language native code;
  • the JNI layer includes JNI extension interface and Android native interface.
  • the HIDL layer is used to define the encapsulation data as a list of Haptics effect enumeration types to realize the mapping between the signal name and the effect ID; the HIDL is an interface description language (HAL Interface) between the HAL layer and its users. Description Language, HIDL), the HIDL defines a list of Haptics effect enumeration types by matching with the HAL layer.
  • HAL Interface interface description language
  • the HAL layer is used for processing according to the Haptics effect enumeration type list to obtain key hardware parameters for driving hardware vibration;
  • the HAL is a hardware abstraction layer (Hardware Abstract Layer, HAL)
  • the HAL processing the Haptics effect enumeration type list is to perform corresponding processing according to the parameter category, including intensity scaling, envelope signal generation, displacement protection, etc.
  • the effect library is a pre-generated deterministic Haptics effect
  • the hardware information table includes hardware configuration information, where the hardware configuration information is pre-configured key hardware parameters, including information such as the motor resonant frequency F0.
  • the parameters of the drive motor include any one or more of desired excitation voltage signal, vibration acceleration signal, motor speed signal, motor displacement signal, maximum voltage limit and displacement protection.
  • crest factor reduction Crest Factor Reduction, CFR
  • CFR crest Factor Reduction
  • the Kernel layer is adapted to drive the Haptics chip according to the key hardware parameters. Due to the inconsistency of the performance of components in specific hardware circuits, such as driver chips and motors, the same effect may be different on the same type of electronic equipment. Therefore, after reading the parameter calibration information (such as resonant frequency, etc.), the drive signal input to the motor can be adjusted according to the preset algorithm, so as to achieve the consistency of the effect of different motors.
  • the parameter calibration information such as resonant frequency, etc.
  • haptic data are diversified, including txt, act, HED and xml formats are supported, which improves the versatility and diversity;
  • the parameters of the drive motor are rich, the effect calculation results are more accurate, and the haptic effect brought by the vibration is good.

Abstract

Provided are a method and system for achieving a haptics effect. The method for achieving a haptics effect comprises: receiving a vibration event that occurs at a certain time point, and defining an effect ID and describing the vibration event; generating a vibration parameter according to a description of the vibration event; encapsulating the vibration parameter by means of an integrated interface, so as to obtain encapsulated data; defining a haptics effect enumeration type list by means of the encapsulated data, so as to realize the mapping between a signal name and the effect ID; performing processing according to the haptics effect enumeration type list, so as to obtain a key hardware parameter for driving hardware to vibrate; adapting a driving haptics chip according to the key hardware parameter; and driving a motor to vibrate by means of the haptics chip, so as to create a haptics effect. By means of the technical solution provided in the present invention, the universality, scenario adaptability and consistency are improved; the implementation is simpler and more direct, and the power consumption is also reduced; and the vibration diversity is improved, and the experience in a haptics effect is good.

Description

实现Haptics触觉效果的方法及系统Method and system for implementing Haptics haptic effects 技术领域technical field
本发明涉及触觉感知技术领域,尤其涉及一种实现Haptics触觉效果的方法及系统。The present invention relates to the technical field of tactile perception, and in particular, to a method and system for realizing Haptics tactile effects.
背景技术Background technique
随着智能设备的快速发展,各类APP提供丰富多彩的应用,马达作为振动触觉器件,也越来越多的受到重视。手机应用根据需要产生马达的激励信号,激励信号驱动马达振动以产生相应的触觉体验。但现有技术中使用马达振动的触觉体验有以下几个缺点:一是马达的激励信号多采用预存方式,预存的振动产生的触觉体验效果有限,并且缺乏通用性和场景适配性,一致性差;二是在利用输入信号(如音频数据)、解码触觉信息以及关联振动参数后再生成对应的振动信号数据,利用振动信号数据再去驱动马达产生振动,过程较复杂,并且振动与输入信号如音频关联,缺乏灵活性和定制能力;三是在具体地应用中,当要实现复杂的振动场景时使用多马达,多马达的设计复杂、成本高并且功耗较大;四是现有的触觉数据存储格式单一,如触觉基本流(Haptic Elementary Stream,HES)数据,通用性较差;五是驱动马达的参数大多采用马达谐振频率,使马达振动带来的触觉体验效果少,效果计算结果不精确,触觉效果体验差。With the rapid development of smart devices, various APPs provide a variety of applications, and motors, as vibrotactile devices, are getting more and more attention. The mobile phone application generates an excitation signal of the motor as required, and the excitation signal drives the motor to vibrate to generate a corresponding haptic experience. However, the tactile experience using motor vibration in the prior art has the following shortcomings: First, the excitation signal of the motor is mostly pre-stored, and the tactile experience effect generated by the pre-stored vibration is limited, lacks versatility and scene adaptability, and has poor consistency. The second is to generate the corresponding vibration signal data after using the input signal (such as audio data), decoding the tactile information and the associated vibration parameters, and then using the vibration signal data to drive the motor to generate vibration, the process is more complicated, and the vibration and the input signal such as Audio correlation, lack of flexibility and customization capabilities; third, in specific applications, multi-motors are used when complex vibration scenes are to be realized, and the design of multi-motors is complex, high cost and power consumption; fourth, existing haptics The data storage format is single, such as Haptic Elementary Stream (Haptic Elementary Stream, HES) data, the versatility is poor; fifth, most of the parameters of the driving motor use the motor resonant frequency, so that the haptic experience effect brought by the motor vibration is less, the effect calculation results are inaccurate, and the haptic effect experience is poor.
技术问题technical problem
本发明提供一种实现Haptics触觉效果的方法及系统,旨在解决现有的马达振动缺乏通用性和场景适配性的问题以及一致性差的问题,以及实现过程复杂、功耗大,带来的触觉效果单一、用户体验差的问题。The present invention provides a method and system for realizing Haptics haptic effect, aiming at solving the problems of lack of versatility and scene adaptability and poor consistency of the existing motor vibration, as well as the complicated realization process and high power consumption, which bring The problem of single haptic effect and poor user experience.
技术解决方案technical solutions
为实现上述目的,本发明提供一种实现Haptics触觉效果的方法,该方法包括:To achieve the above object, the present invention provides a method for realizing Haptics haptic effect, the method comprising:
步骤S10:收到发生在某个时间点上的振动事件并进行效果ID定义和振动事件描述;所述振动事件描述包括效果库、包络库、组合效果、第三方原生振动效果、同步机制和循环机制中的任意一种或多种;Step S10: Receive a vibration event that occurs at a certain point in time and perform effect ID definition and vibration event description; the vibration event description includes an effect library, an envelope library, a combination effect, a third-party native vibration effect, a synchronization mechanism and any one or more of the looping mechanisms;
步骤S20:根据所述振动事件的描述生成振动参数;Step S20: generating vibration parameters according to the description of the vibration event;
步骤S30:将所述振动参数通过集成接口封装以得到封装数据;所述集成接口包括JNI扩展接口和第三方原生接口;Step S30: encapsulating the vibration parameters through an integrated interface to obtain encapsulated data; the integrated interface includes a JNI extension interface and a third-party native interface;
步骤S40:将所述封装数据定义Haptics效果枚举类型列表,实现信号名与效果ID的映射;Step S40: defining the encapsulation data as a list of Haptics effect enumeration types to realize the mapping between signal names and effect IDs;
步骤S50:根据所述Haptics效果枚举类型列表进行处理以得到用以驱动硬件振动的关键硬件参数;Step S50: process according to the Haptics effect enumeration type list to obtain key hardware parameters for driving hardware vibration;
步骤S60:根据所述关键硬件参数适配驱动Haptics芯片;Step S60: adapting and driving the Haptics chip according to the key hardware parameters;
步骤S70:通过所述Haptics芯片驱动马达振动以产生触觉效果。Step S70: Drive the motor to vibrate through the Haptics chip to generate a haptic effect.
进一步地,所述效果库包括通用效果库和定制效果库;所述通用效果库为预设的短效果的集合;所述定制效果库为使用者根据需求进行不同效果的组合。Further, the effect library includes a general effect library and a custom effect library; the general effect library is a set of preset short effects; the custom effect library is a combination of different effects performed by a user according to requirements.
进一步地,所述通用效果库包括振动信息与其对应的触觉效果。Further, the general effect library includes vibration information and its corresponding haptic effect.
进一步地,所述包络库为通过指定振动参数决定的振动波形;所述振动参数包括激励信号时长、激励信号包络点的相对时间、振动强度和振动频率中的任意一种或多种。Further, the envelope library is a vibration waveform determined by specifying vibration parameters; the vibration parameters include any one or more of excitation signal duration, relative time of excitation signal envelope points, vibration intensity and vibration frequency.
进一步地,所述组合效果由一个或者多个Haptics振动事件按照一定的时间序列组成,每个振动事件对应一次振动。Further, the combined effect is composed of one or more Haptics vibration events according to a certain time sequence, and each vibration event corresponds to one vibration.
进一步地,所述同步机制是基于时间戳的音频、视频与触觉同步管理机制,根据设计文件自动生成铃声随振的参数和文件。Further, the synchronization mechanism is a time stamp-based audio, video and haptic synchronization management mechanism, and parameters and files of the ringtone follow-up vibration are automatically generated according to the design file.
进一步地,所述循环机制基于内外部条件,动态调整缩放幅值和循环间隔。Further, the loop mechanism dynamically adjusts the scaling amplitude and loop interval based on internal and external conditions.
进一步地,所述循环机制包括优先级设置。Further, the round-robin mechanism includes priority setting.
进一步地,所述第三方原生振动效果为通过第三方原生接口支持的效果。Further, the third-party native vibration effect is an effect supported by a third-party native interface.
进一步地,所述第三方原生接口为Google原生振动接口。Further, the third-party native interface is a Google native vibration interface.
进一步地,所述振动事件描述以触觉数据存储,所述触觉数据的格式包括txt、act、HED和xml中的任意一种。Further, the vibration event description is stored as haptic data, and the format of the haptic data includes any one of txt, act, HED and xml.
此外,本发明提供一种实现Haptics触觉效果的系统,所述实现Haptics触觉效果的系统包括处理器平台、Haptics芯片和马达,所述处理器平台与所述Haptics芯片连接,所述Haptics芯片与所述马达连接,其中:In addition, the present invention provides a system for realizing Haptics haptic effects, the system for realizing Haptics haptic effects includes a processor platform, a Haptics chip and a motor, the processor platform is connected with the Haptics chip, and the Haptics chip is connected with all the Haptics chips. described motor connections, where:
所述处理器平台用于对振动事件的处理及将所述振动事件转为驱动硬件振动的关键硬件参数;The processor platform is used for processing vibration events and converting the vibration events into key hardware parameters that drive hardware vibration;
所述Haptics芯片用于驱动所述马达工作;The Haptics chip is used to drive the motor to work;
所述马达用于振动以产生触觉效果。The motors are used to vibrate to create haptic effects.
进一步地,所述处理器平台自上至下依次包括应用层、架构层、JNI层、HIDL层、HAL层和Kernel层,其中,Further, the processor platform includes an application layer, an architecture layer, a JNI layer, a HIDL layer, a HAL layer and a Kernel layer in order from top to bottom, wherein,
所述应用层用于收到发生在某个时间点上的振动事件并进行效果ID定义和振动事件描述;The application layer is used to receive vibration events that occur at a certain point in time and to define effect IDs and describe vibration events;
所述架构层用于根据所述振动事件的描述生成振动参数;The architecture layer is configured to generate vibration parameters according to the description of the vibration event;
所述JNI层用于将所述振动参数通过集成接口封装以得到封装数据;The JNI layer is used to encapsulate the vibration parameters through an integrated interface to obtain encapsulated data;
所述HIDL层用于将所述封装数据定义Haptics效果枚举类型列表,实现信号名与效果ID的映射;The HIDL layer is used to define the Haptics effect enumeration type list by the encapsulation data to realize the mapping of the signal name and the effect ID;
所述HAL层用于根据所述Haptics效果枚举类型列表进行处理以得到用以驱动硬件振动的关键硬件参数;The HAL layer is used for processing according to the Haptics effect enumeration type list to obtain key hardware parameters for driving hardware vibration;
所述Kernel层用于根据所述关键硬件参数适配驱动Haptics芯片。The Kernel layer is adapted to drive the Haptics chip according to the key hardware parameters.
优选地,所述JNI层是Java本地接口层,所述JNI层包括JNI扩展接口和Android原生接口。Preferably, the JNI layer is a Java native interface layer, and the JNI layer includes a JNI extension interface and an Android native interface.
优选地,所述实现Haptics触觉效果的系统还包括电源,所述电源为处理器平台和Haptics芯片提供电源。Preferably, the system for implementing Haptics haptic effects further includes a power supply, and the power supply provides power for the processor platform and the Haptics chip.
优选地,所述驱动马达的参数包括期望的激励电压信号、振动加速度信号、马达速度信号、马达位移信号、最大电压限制和位移保护中的任意一种或多种。Preferably, the parameters of the driving motor include any one or more of desired excitation voltage signal, vibration acceleration signal, motor speed signal, motor displacement signal, maximum voltage limit and displacement protection.
优选地,所述最大电压限制用于防止超过硬件最大输出能力的限制。Preferably, the maximum voltage limit is used to prevent exceeding the limit of the maximum output capability of the hardware.
优选地,所述位移保护是根据马达的安全振子位移进行电信号整体限制,确保电信号不至于使得振子超出预测的安全位移。Preferably, the displacement protection is to limit the electrical signal as a whole according to the safe displacement of the vibrator of the motor, so as to ensure that the electrical signal will not cause the vibrator to exceed the predicted safe displacement.
有益效果beneficial effect
本发明提供的实现Haptics触觉效果的方法及系统,其带来的收益包括:The method and system for realizing Haptics haptic effect provided by the present invention, the benefits it brings include:
一、预存驱动马达的激励信号动态适配和自动生成两种方式,提高了通用性、场景适配性和一致性;1. There are two ways of dynamic adaptation and automatic generation of the excitation signal of the pre-stored drive motor, which improves the versatility, scene adaptability and consistency;
二、通过输入激励信号、关联参数直接生成激励信号驱动马达振动,过程更加简单直接,并且振动不与音频关联;2. Directly generate the excitation signal to drive the motor to vibrate by inputting the excitation signal and associated parameters, the process is simpler and more direct, and the vibration is not associated with the audio;
三、通过单颗马达利用本申请的技术方案实现多马达的效果,降低了功耗;3. Using the technical solution of the present application to achieve the effect of multiple motors through a single motor, reducing power consumption;
四、触觉数据的格式多样化,支持包括txt、act、HED和xml多种格式,提高了通用性和多样性;4. The formats of haptic data are diversified, including txt, act, HED and xml formats are supported, which improves the versatility and diversity;
五、驱动马达的参数丰富,效果计算结果更加精确,振动带来的触觉效果体验好。5. The parameters of the drive motor are rich, the effect calculation results are more accurate, and the haptic effect brought by the vibration is good.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图,其中:In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, under the premise of no creative work, other drawings can also be obtained from these drawings, wherein:
图1为本发明一实施例提供实现Haptics触觉效果的方法的流程示意图;1 is a schematic flowchart of a method for implementing a Haptics haptic effect according to an embodiment of the present invention;
图2为本发明一实施例提供包络形式的示意图;2 is a schematic diagram of providing an envelope form according to an embodiment of the present invention;
图3为本发明一实施例提供的组合效果形式的示意图;3 is a schematic diagram of a combined effect form provided by an embodiment of the present invention;
图4为本发明一实施例提供的Google原生振动接口支持的示意图;4 is a schematic diagram of Google native vibration interface support provided by an embodiment of the present invention;
图5为本发明一实施例提供实现Haptics触觉效果的系统的结构示意图;5 is a schematic structural diagram of a system for providing a Haptics haptic effect according to an embodiment of the present invention;
图6为图5中处理器平台的框架示意图。FIG. 6 is a schematic diagram of the framework of the processor platform in FIG. 5 .
本发明的实施方式Embodiments of the present invention
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明的一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
目标触觉效果体验的用户接口设备为手机,手机内部的目标触觉输出设备包含马达,所述马达包括线性马达、转子马达或Piezo马达。具体地,触觉体验的应用包括:各类虚拟键、侧键、情景变化菜单及触觉交互提示边缘触控、点按滑动操作及压力触控、屏下指纹识别以及按压操作等;OS操作反馈(例如:系统级可复用触感控件、自定义控件及定制化反馈、结合OEM设计,动画等);个性化通知(例如:节奏铃声振动、个性化通知、自定义振动pattern(振动组合)等);游戏、AR(例如:游戏元素触觉增强、物理引擎配合、虚拟空间定位、物件选择、移动、区分环境元素及主角动作等)等。本发明提供一种实现Haptics触觉效果的方法和系统,通过对不同的应用和场景进行精确适配驱动马达,给予用户沉浸式体验。The user interface device for the target haptic effect experience is a mobile phone, and the target haptic output device inside the mobile phone includes a motor, and the motor includes a linear motor, a rotor motor, or a Piezo motor. Specifically, the applications of tactile experience include: various virtual keys, side keys, contextual change menus, and tactile interaction prompts edge touch, tap and slide operation and pressure touch, off-screen fingerprint recognition, and pressing operations, etc.; OS operation feedback ( For example: system-level reusable haptic controls, custom controls and custom feedback, combined with OEM design, animation, etc.); personalized notifications (for example: rhythm ringtone vibration, personalized notification, custom vibration pattern (vibration combination), etc.) ; Games, AR (for example: haptic enhancement of game elements, physical engine coordination, virtual space positioning, object selection, movement, distinguishing environmental elements and protagonist actions, etc.), etc. The present invention provides a method and system for realizing Haptics haptic effect, which can give users an immersive experience by accurately adapting the drive motor to different applications and scenarios.
请参阅图1,本发明提供一种实现Haptics触觉效果的方法,包括:Referring to FIG. 1, the present invention provides a method for realizing Haptics haptic effect, including:
步骤S10:收到发生在某个时间点上的振动事件并进行效果ID定义和振动事件描述;所述振动事件描述包括效果库、包络库、组合效果、第三方原生振动效果、同步机制和循环机制中的任意一种或多种。Step S10: Receive a vibration event that occurs at a certain point in time and perform effect ID definition and vibration event description; the vibration event description includes an effect library, an envelope library, a combination effect, a third-party native vibration effect, a synchronization mechanism and Any one or more of the looping mechanisms.
具体地,所述效果ID定义为预设的短激励信号的ID标识,用以区分不同的短激励信号。所述效果库包括通用效果库和定制效果库;所述通用效果库为预设的短效果的集合;具体地,所述通用效果库包括振动信息与其对应的触觉效果,所述振动信息为驱动马达的激励信号,即为直接作用驱动马达的电信号或是加速度、动量、位移、速度等的间接信号。所述定制效果库为使用者根据需求进行不同效果的组合;可由使用者根据需求进行不同效果的组合,实现定制特殊触感。Specifically, the effect ID is defined as an ID identifier of a preset short excitation signal, so as to distinguish different short excitation signals. The effect library includes a general effect library and a custom effect library; the general effect library is a set of preset short effects; specifically, the general effect library includes vibration information and its corresponding haptic effect, and the vibration information is a drive The excitation signal of the motor is an electrical signal that directly acts to drive the motor or an indirect signal of acceleration, momentum, displacement, speed, etc. The customized effect library is for the user to combine different effects according to the requirements; the user can perform the combination of different effects according to the requirements to realize the customized special touch.
所述包络库为通过指定振动参数决定的振动波形;所述振动参数包括激励信号时长、激励信号包络点的相对时间、振动强度和振动频率中的任意一种或多种。如图2所示,为包络形式的示意图,具体在本发明一实施例中,定义了一种包含了4种参数配置的振动,其中,4种参数配置分别为:强度、频率、时长和F-MODE,F-MODE为振动类型。The envelope library is a vibration waveform determined by specifying vibration parameters; the vibration parameters include any one or more of excitation signal duration, relative time of excitation signal envelope points, vibration intensity and vibration frequency. As shown in FIG. 2 , it is a schematic diagram of an envelope form. Specifically, in an embodiment of the present invention, a vibration including four parameter configurations is defined, wherein the four parameter configurations are: intensity, frequency, duration and F-MODE, F-MODE is the vibration type.
所述组合效果由一个或者多个Haptics振动事件按照一定的时间序列组成,每个振动事件对应一次振动。一个Haptics振动事件可以是瞬态效果,即在效果库中的其中一个振动效果的基础上改变振动强度。稳态瞬态效果与瞬态效果可以组合,成为组合效果。如图3所示,为组合效果形式的示意图,其中,每一次振动使用(a,b,freqn)描述,a表示开始时间,b表示振动强度,freqn表示振动频率,其中n为自然数;图3中,起始振动为(0,0,freq0),第一振动为(t1,Strength1,freq1),第二次振动为(t2,Strength2,freq2),第三次振动为(t3,0,freq3),通过组合将第一次振动、第二次振动和第三次振动组合为新的振动:Act{(0,0,freq0),(t1,Strength1,freq1),(t2,Strength2,freq2),(t3,0,freq3)}。The combined effect is composed of one or more Haptics vibration events according to a certain time sequence, and each vibration event corresponds to one vibration. A Haptics vibration event can be a transient effect that changes the vibration intensity based on one of the vibration effects in the effects library. Steady transient effects and transient effects can be combined to form a combined effect. As shown in Figure 3, it is a schematic diagram of the combined effect form, in which each vibration is described by (a, b, freqn), a represents the start time, b represents the vibration intensity, and freqn represents the vibration frequency, where n is a natural number; Figure 3 , the initial vibration is (0, 0, freq0), the first vibration is (t1, Strength1, freq1), the second vibration is (t2, Strength2, freq2), and the third vibration is (t3, 0, freq3 ), combine the first vibration, the second vibration and the third vibration into a new vibration by combining: Act{(0, 0, freq0), (t1, Strength1, freq1), (t2, Strength2, freq2) , (t3, 0, freq3)}.
所述同步机制是基于时间戳的音频、视频与触觉同步管理机制,根据设计文件自动生成铃声随振的参数和文件。The synchronization mechanism is a time stamp-based audio, video and tactile synchronization management mechanism, and automatically generates parameters and files of ringtone follow-up vibrations according to design files.
所述循环机制基于内外部条件,动态调整缩放幅值和循环间隔。所述循环机制针对组合效果进行循环,例如以下示例为使用循环机制的实际应用:The loop mechanism dynamically adjusts the zoom amplitude and loop interval based on internal and external conditions. The looping mechanism loops for combined effects, for example the following example is a practical application using the looping mechanism:
1. 游戏中载具在匀速行驶,行驶过程比较一致,可以使用循环播放同一个组合效果来实现;1. In the game, the vehicle is driving at a constant speed, and the driving process is relatively consistent, which can be achieved by playing the same combination effect in a loop;
2. 游戏中载具在匀速行驶,踩油门会整体增加幅度,即增加振动强度;2. When the vehicle is driving at a constant speed in the game, stepping on the accelerator will increase the overall amplitude, that is, increase the vibration intensity;
3. 游戏中连续开枪,每一发子弹的表现形式相同,可以使用循环播放同一个组合效果来实现;3. Continuous shooting in the game, the expression of each bullet is the same, which can be achieved by playing the same combination effect in a loop;
4. 游戏中根据不同的枪,子弹连发的间隔不同,可以调整与每一发子弹对应振动效果的间隔;4. According to different guns in the game, the interval of bullets is different, and the interval of the vibration effect corresponding to each bullet can be adjusted;
进一步地,所述循环机制包括优先级设置,通过不同播放流的优先级预设,高优先级的播放可打断低优先级的播放,高优先级的播放结束,可恢复原播放内容。循环机制的实际应用示例:Further, the looping mechanism includes priority setting. According to the priority presets of different playback streams, high-priority playback can interrupt low-priority playback, and when high-priority playback ends, the original playback content can be restored. An example of a practical application of the loop mechanism:
1. 支持游戏中一边开车一边打枪;1. Support shooting while driving in the game;
2. 支持系统振动(如来电)打断当前app的振动。2. Support system vibration (such as incoming calls) to interrupt the vibration of the current app.
所述第三方原生振动效果为通过第三方原生接口支持的效果;具体在本发明提供的一实施例中,所述第三方原生接口为Google原生振动接口,对于Z向马达,效果可以转换成Google原生接口支持的效果,实现基础振动,拓展Android平台应用。如图4所示,输入设计信号以及硬件型号信息,硬件型号信息经过平台特性识别,所述设计信号为驱动马达振动的激励信号,对设计信号和硬件型号信息综合进行判断是否支持应用,当支持时,直接使用Android原生VibratorService接口服务,若不支持,则使用信号调整/接口转换后使用Android原生VibratorService接口服务。The third-party native vibration effect is an effect supported by a third-party native interface; specifically, in an embodiment provided by the present invention, the third-party native interface is a Google native vibration interface, and for the Z-direction motor, the effect can be converted into Google The effect supported by the native interface, realize the basic vibration, and expand the Android platform application. As shown in Figure 4, input the design signal and hardware model information, the hardware model information is identified by the platform characteristics, and the design signal is the excitation signal for driving the vibration of the motor. , use the Android native VibratorService interface service directly. If it is not supported, use the Android native VibratorService interface service after using signal adjustment/interface conversion.
进一步地,所述振动事件描述以触觉数据存储,所述触觉数据的格式包括txt、act、HED和xml中的任意一种。Further, the vibration event description is stored as haptic data, and the format of the haptic data includes any one of txt, act, HED and xml.
步骤S20:根据所述振动事件的描述生成振动参数;所述振动参数包括了效果库中的通用效果库(也称内置效果)、定制效果库(以文件形式存储,也称定制文件或ACT文件)、包络库、组合效果、同步机制和循环机制,同时,针对第三方原生振动效果,例如Google原生振动接口,使用扩展接口转换为振动参数。Step S20: Generate vibration parameters according to the description of the vibration event; the vibration parameters include a general effect library (also called built-in effect), a custom effect library (stored in the form of a file, also called a custom file or an ACT file) in the effect library. ), envelope library, combination effect, synchronization mechanism and loop mechanism, and, for third-party native vibration effects, such as Google's native vibration interface, use the extension interface to convert to vibration parameters.
步骤S30:将所述振动参数通过集成接口封装以得到封装数据;所述集成接口包括JNI扩展接口和第三方原生接口。Step S30: Encapsulate the vibration parameters through an integrated interface to obtain encapsulated data; the integrated interface includes a JNI extension interface and a third-party native interface.
步骤S40:将所述封装数据定义Haptics效果枚举类型列表,实现信号名与效果ID的映射。Step S40: Define the encapsulation data as a list of Haptics effect enumeration types, so as to realize the mapping between signal names and effect IDs.
步骤S50:根据所述Haptics效果枚举类型列表进行处理以得到用以驱动硬件振动的关键硬件参数;根据所述Haptics效果枚举类型列表中的参数进行相应的处理,包括强度缩放、包络信号生成、位移保护等。其中效果库为预生成的确定Haptics效果,硬件配置信息为预配置的关键硬件参数,包括马达谐振频率F0等信息。Step S50: perform processing according to the Haptics effect enumeration type list to obtain key hardware parameters used to drive hardware vibration; perform corresponding processing according to the parameters in the Haptics effect enumeration type list, including intensity scaling, envelope signal Generation, displacement protection, etc. The effect library is the pre-generated deterministic Haptics effect, and the hardware configuration information is the pre-configured key hardware parameters, including information such as the motor resonant frequency F0.
步骤S60:根据所述关键硬件参数适配驱动Haptics芯片。Step S60: Adapt and drive the Haptics chip according to the key hardware parameters.
步骤S70:通过所述Haptics芯片驱动马达振动以产生触觉效果。Step S70: Drive the motor to vibrate through the Haptics chip to generate a haptic effect.
请参阅图5,为实现上述实现Haptics触觉效果的方法,本发明提供一种实现Haptics触觉效果的系统,所述实现Haptics触觉效果的系统包括处理器平台10、Haptics芯片20、马达30和电源40,所述处理器平台10与所述Haptics芯片20连接,所述Haptics芯片20与所述马达30连接,所述电源40为处理器平台10和Haptics芯片20提供电源。Please refer to FIG. 5 , in order to realize the above method for realizing Haptics haptic effect, the present invention provides a system for realizing Haptics haptic effect, and the system for realizing Haptics haptic effect includes processor platform 10 , Haptics chip 20 , motor 30 and power supply 40 , the processor platform 10 is connected to the Haptics chip 20 , the Haptics chip 20 is connected to the motor 30 , and the power supply 40 provides power for the processor platform 10 and the Haptics chip 20 .
其中:in:
所述处理器平台10用于对振动事件的处理及将所述振动事件转为驱动硬件振动的关键硬件参数;所述处理器平台10作为系统层面软件载体,可定制化设计的HAL接口,处理手机应用中各种工作场景,使用具有数据传输能力的接口与所述Haptics芯片20进行通信。The processor platform 10 is used to process vibration events and convert the vibration events into key hardware parameters that drive hardware vibration; the processor platform 10 is used as a system-level software carrier, and a customizable HAL interface can be used to process the vibration events. In various working scenarios in the mobile phone application, an interface with data transmission capability is used to communicate with the Haptics chip 20 .
所述Haptics芯片20用于驱动所述马达工作;所述Haptics芯片20为马达的驱动芯片,所述Haptics芯片20内置能够满足马达各种运动方式的功率放大芯片,同时,所述Haptics芯片20还包括驱动电压、采样率和数据接口,实现对精确和灵活地对马达的驱动。The Haptics chip 20 is used to drive the motor to work; the Haptics chip 20 is a drive chip of the motor, and the Haptics chip 20 has a built-in power amplifier chip that can meet various motion modes of the motor. At the same time, the Haptics chip 20 also Including drive voltage, sampling rate and data interface, to achieve precise and flexible motor drive.
所述马达30用于振动以产生触觉效果。所述马达30包括线性马达、转子马达或Piezo马达,所述马达与终端产品定位相匹配并结合相应结构设计,配合Haptics芯片,使所述马达在各种状态下的快速响应并保持低功耗,以及优良的瞬态功率响应能力。The motor 30 is used to vibrate to produce haptic effects. The motor 30 includes a linear motor, a rotor motor or a Piezo motor. The motor is positioned to match the end product and combined with the corresponding structural design. With the Haptics chip, the motor can respond quickly in various states and maintain low power consumption. , and excellent transient power response capability.
请参阅图6,所述处理器平台自上至下依次包括应用层、架构层、JNI层、HIDL层、HAL层和Kernel层,其中,Referring to FIG. 6, the processor platform includes an application layer, an architecture layer, a JNI layer, a HIDL layer, a HAL layer, and a Kernel layer in sequence from top to bottom, wherein,
所述应用层用于收到发生在某个时间点上的振动事件并进行效果ID定义和振动事件描述;所述振动事件描述包括效果库、包络库、组合效果、第三方原生振动效果、同步机制和循环机制中的任意一种或多种。The application layer is used to receive a vibration event that occurs at a certain point in time and perform effect ID definition and vibration event description; the vibration event description includes an effect library, an envelope library, a combination effect, a third-party native vibration effect, Any one or more of synchronization mechanism and round-robin mechanism.
所述架构层用于根据所述振动事件的描述生成振动参数;所述振动参数包括了效果库中的通用效果库(也称内置效果)、定制效果库(以文件形式存储,也称定制文件或ACT文件)、包络库、组合效果、第三方原生振动效果支持(例如Google支持),对于系统应用,例如手机系统的系统铃声,通过扩展接口经json解析和同步机制实现振动设计,转为包含了振动参数的定制文件。The architecture layer is used to generate vibration parameters according to the description of the vibration event; the vibration parameters include a general effect library (also called built-in effect) and a custom effect library (stored in the form of a file, also called a custom file) in the effect library. or ACT file), envelope library, combination effect, third-party native vibration effect support (such as Google support), for system applications, such as the system ringtone of the mobile phone system, the vibration design is realized through the json parsing and synchronization mechanism through the extension interface, and the Custom file containing vibration parameters.
所述JNI层用于将所述振动参数通过集成接口封装以得到封装数据;所述JNI是Java 本地接口(Java Native Interface,JNI),提供了将Java与C语言本地代码集成的接口方案;所述JNI层包括JNI扩展接口和Android原生接口。The JNI layer is used to encapsulate the vibration parameters through the integrated interface to obtain encapsulated data; the JNI is a Java native interface (Java Native interface). Interface, JNI), provides an interface scheme integrating Java and C language native code; the JNI layer includes JNI extension interface and Android native interface.
所述HIDL层用于将所述封装数据定义Haptics效果枚举类型列表,实现信号名与效果ID的映射;所述HIDL是HAL层和其用户之间的接口描述语言(HAL Interface Description Language,HIDL),所述HIDL通过与HAL层相匹配定义Haptics效果枚举类型列表。The HIDL layer is used to define the encapsulation data as a list of Haptics effect enumeration types to realize the mapping between the signal name and the effect ID; the HIDL is an interface description language (HAL Interface) between the HAL layer and its users. Description Language, HIDL), the HIDL defines a list of Haptics effect enumeration types by matching with the HAL layer.
所述HAL层用于根据所述Haptics效果枚举类型列表进行处理以得到用以驱动硬件振动的关键硬件参数;所述HAL为硬件抽象层(Hardware Abstract Layer,HAL),所述HAL对所述Haptics效果枚举类型列表的处理是根据参数类别进行相应的处理,包括强度缩放、包络信号生成,位移保护等。其中效果库为预生成的确定Haptics效果,硬件信息表中包含了硬件配置信息,所述硬件配置信息为预配置的关键硬件参数,包括马达谐振频率F0等信息。在所述实现Haptics触觉效果的系统的实现中,根据传递参数的不同有两种不同的处理路径。若是预先定义的激励电压信号,需要根据传递的Scale参数进行数字幅度的缩放后直接输出电压。若是定义的振动信号,根据Scale参数缩放后需要进行均衡处理生成电信号;若是其他效果,将根据马达参数信息等,按照均衡算法公式生成特定形式的振动信号。所述驱动马达的参数包括期望的激励电压信号、振动加速度信号、马达速度信号、马达位移信号、最大电压限制和位移保护中的任意一种或多种。通过波峰因子降低(Crest Factor Reduction,CFR)处理确定最大电压限制,所述最大电压限制用于防止超过硬件最大输出能力的限制。通过位移保护对马达的安全振子位移进行电信号整体限制,确保电信号不至于使得振子超出预测的安全位移。The HAL layer is used for processing according to the Haptics effect enumeration type list to obtain key hardware parameters for driving hardware vibration; the HAL is a hardware abstraction layer (Hardware Abstract Layer, HAL), the HAL processing the Haptics effect enumeration type list is to perform corresponding processing according to the parameter category, including intensity scaling, envelope signal generation, displacement protection, etc. The effect library is a pre-generated deterministic Haptics effect, and the hardware information table includes hardware configuration information, where the hardware configuration information is pre-configured key hardware parameters, including information such as the motor resonant frequency F0. In the realization of the system for realizing the Haptics haptic effect, there are two different processing paths according to different transfer parameters. If it is a pre-defined excitation voltage signal, it needs to directly output the voltage after scaling the digital amplitude according to the passed Scale parameter. If it is a defined vibration signal, it needs to be equalized to generate an electrical signal after scaling according to the Scale parameter; if it is other effects, a specific form of vibration signal will be generated according to the equalization algorithm formula according to the motor parameter information, etc. The parameters of the drive motor include any one or more of desired excitation voltage signal, vibration acceleration signal, motor speed signal, motor displacement signal, maximum voltage limit and displacement protection. By crest factor reduction (Crest Factor Reduction, CFR) process determines the maximum voltage limit that is used to prevent exceeding the limit of the maximum output capability of the hardware. Through the displacement protection, the electric signal of the motor's safe vibrator displacement is limited as a whole to ensure that the electric signal will not cause the vibrator to exceed the predicted safe displacement.
所述Kernel层用于根据所述关键硬件参数适配驱动Haptics芯片。由于具体硬件电路中元件如驱动芯片、马达性能的不一致性,导致同一个效果在同一型号的电子设备上产生差异。因此,在读取参数校准信息后(如谐振频率等),可以根据预制算法调整输入马达的驱动信号,从而达到不同马达效果的一致性。The Kernel layer is adapted to drive the Haptics chip according to the key hardware parameters. Due to the inconsistency of the performance of components in specific hardware circuits, such as driver chips and motors, the same effect may be different on the same type of electronic equipment. Therefore, after reading the parameter calibration information (such as resonant frequency, etc.), the drive signal input to the motor can be adjusted according to the preset algorithm, so as to achieve the consistency of the effect of different motors.
与现有技术相比,本发明提供的实现Haptics触觉效果的方法及系统,其收益包括:Compared with the prior art, the method and system for realizing Haptics haptic effect provided by the present invention, its benefits include:
一、预存驱动马达的激励信号动态适配和自动生成两种方式,提高了通用性、场景适配性和一致性;1. There are two ways of dynamic adaptation and automatic generation of the excitation signal of the pre-stored drive motor, which improves the versatility, scene adaptability and consistency;
二、通过输入激励信号、关联参数直接生成激励信号驱动马达振动,过程更加简单直接,并且振动不与音频关联;2. Directly generate the excitation signal to drive the motor to vibrate by inputting the excitation signal and associated parameters, the process is simpler and more direct, and the vibration is not associated with the audio;
三、通过单颗马达利用本申请的技术方案实现多马达的效果,降低了功耗;3. Using the technical solution of the present application to achieve the effect of multiple motors through a single motor, reducing power consumption;
四、触觉数据的格式多样化,支持包括txt、act、HED和xml多种格式,提高了通用性和多样性;4. The formats of haptic data are diversified, including txt, act, HED and xml formats are supported, which improves the versatility and diversity;
五、驱动马达的参数丰富,效果计算结果更加精确,振动带来的触觉效果体验好。5. The parameters of the drive motor are rich, the effect calculation results are more accurate, and the haptic effect brought by the vibration is good.
以上所述的仅是本发明的实施方式,在此应当指出,对于本领域的普通技术人员来说,在不脱离本发明创造构思的前提下,还可以做出改进,但这些均属于本发明的保护范围。The above are only the embodiments of the present invention. It should be pointed out that for those of ordinary skill in the art, improvements can be made without departing from the inventive concept of the present invention, but these belong to the present invention. scope of protection.

Claims (18)

  1. 一种实现Haptics触觉效果的方法,其特征在于,包括:A method for realizing Haptics haptic effect, comprising:
    步骤S10:收到发生在某个时间点上的振动事件并进行效果ID定义和振动事件描述;所述振动事件描述包括效果库、包络库、组合效果、第三方原生振动效果、同步机制和循环机制中的任意一种或多种;Step S10: Receive a vibration event that occurs at a certain point in time and perform effect ID definition and vibration event description; the vibration event description includes an effect library, an envelope library, a combination effect, a third-party native vibration effect, a synchronization mechanism and any one or more of the looping mechanisms;
    步骤S20:根据所述振动事件的描述生成振动参数;Step S20: generating vibration parameters according to the description of the vibration event;
    步骤S30:将所述振动参数通过集成接口封装以得到封装数据;所述集成接口包括JNI扩展接口和第三方原生接口;Step S30: encapsulating the vibration parameters through an integrated interface to obtain encapsulated data; the integrated interface includes a JNI extension interface and a third-party native interface;
    步骤S40:将所述封装数据定义Haptics效果枚举类型列表,实现信号名与效果ID的映射;Step S40: defining the encapsulation data as a list of Haptics effect enumeration types to realize the mapping between signal names and effect IDs;
    步骤S50:根据所述Haptics效果枚举类型列表进行处理以得到用以驱动硬件振动的关键硬件参数;Step S50: process according to the Haptics effect enumeration type list to obtain key hardware parameters for driving hardware vibration;
    步骤S60:根据所述关键硬件参数适配驱动Haptics芯片;Step S60: adapting and driving the Haptics chip according to the key hardware parameters;
    步骤S70:通过所述Haptics芯片驱动马达振动以产生触觉效果。Step S70: Drive the motor to vibrate through the Haptics chip to generate a haptic effect.
  2. 根据权利要求1所述的实现Haptics触觉效果的方法,其特征在于,所述效果库包括通用效果库和定制效果库;所述通用效果库为预设的短效果的集合;所述定制效果库为使用者根据需求进行不同效果的组合。The method for implementing Haptics haptic effects according to claim 1, wherein the effect library includes a general effect library and a custom effect library; the general effect library is a set of preset short effects; the custom effect library For users to combine different effects according to their needs.
  3. 根据权利要求2所述的实现Haptics触觉效果的方法,其特征在于,所述通用效果库包括振动信息与其对应的触觉效果。The method for implementing Haptics haptic effects according to claim 2, wherein the general effect library includes vibration information and its corresponding haptic effects.
  4. 根据权利要求1所述的实现Haptics触觉效果的方法,其特征在于,所述包络库为通过指定振动参数决定的振动波形;所述振动参数包括激励信号时长、激励信号包络点的相对时间、振动强度和振动频率中的任意一种或多种。The method for realizing Haptics haptic effect according to claim 1, wherein the envelope library is a vibration waveform determined by specifying vibration parameters; and the vibration parameters include the duration of the excitation signal and the relative time of the envelope points of the excitation signal. , any one or more of vibration intensity and vibration frequency.
  5. 根据权利要求1所述的实现Haptics触觉效果的方法,其特征在于,所述组合效果由一个或者多个Haptics振动事件按照一定的时间序列组成,每个振动事件对应一次振动。The method for realizing a Haptics haptic effect according to claim 1, wherein the combined effect is composed of one or more Haptics vibration events according to a certain time sequence, and each vibration event corresponds to one vibration.
  6. 根据权利要求1所述的实现Haptics触觉效果的方法,其特征在于,所述同步机制是基于时间戳的音频、视频与触觉同步管理机制,根据设计文件自动生成铃声随振的参数和文件。The method for realizing Haptics haptic effect according to claim 1, wherein the synchronization mechanism is a time stamp-based audio, video and haptic synchronization management mechanism, and parameters and files of ringtone follow-up vibration are automatically generated according to the design file.
  7. 根据权利要求1所述的实现Haptics触觉效果的方法,其特征在于,所述循环机制基于内外部条件,动态调整缩放幅值和循环间隔。The method for implementing Haptics haptic effects according to claim 1, wherein the loop mechanism dynamically adjusts the zoom amplitude and loop interval based on internal and external conditions.
  8. 根据权利要求7所述的实现Haptics触觉效果的方法,其特征在于,所述循环机制包括优先级设置。The method of implementing a Haptics haptic effect of claim 7, wherein the round-robin mechanism includes priority setting.
  9. 根据权利要求1所述的实现Haptics触觉效果的方法,其特征在于,所述第三方原生振动效果为通过第三方原生接口支持的效果。The method for implementing a Haptics haptic effect according to claim 1, wherein the third-party native vibration effect is an effect supported by a third-party native interface.
  10. 根据权利要求9所述的实现Haptics触觉效果的方法,其特征在于,所述第三方原生接口为Google原生振动接口。The method for implementing Haptics haptic effects according to claim 9, wherein the third-party native interface is a Google native vibration interface.
  11. 根据权利要求1所述的实现Haptics触觉效果的方法,其特征在于,所述振动事件描述以触觉数据存储,所述触觉数据的格式包括txt、act、HED和xml中的任意一种。The method for implementing a Haptics haptic effect according to claim 1, wherein the vibration event description is stored as haptic data, and the format of the haptic data includes any one of txt, act, HED and xml.
  12. 一种实现Haptics触觉效果的系统,其特征在于,所述实现Haptics触觉效果的系统包括处理器平台、Haptics芯片和马达,所述处理器平台与所述Haptics芯片连接,所述Haptics芯片与所述马达连接,其中:A system for realizing Haptics haptic effects, wherein the system for realizing Haptics haptic effects includes a processor platform, a Haptics chip and a motor, the processor platform is connected to the Haptics chip, and the Haptics chip is connected to the Haptics chip. Motor connection, where:
    所述处理器平台用于对振动事件的处理及将所述振动事件转为驱动硬件振动的关键硬件参数;The processor platform is used for processing vibration events and converting the vibration events into key hardware parameters that drive hardware vibration;
    所述Haptics芯片用于驱动所述马达工作;The Haptics chip is used to drive the motor to work;
    所述马达用于振动以产生触觉效果。The motors are used to vibrate to create haptic effects.
  13. 根据权利要求12所述的实现Haptics触觉效果的系统,其特征在于,所述处理器平台自上至下依次包括应用层、架构层、JNI层、HIDL层、HAL层和Kernel层,其中,The system for implementing Haptics haptic effects according to claim 12, wherein the processor platform includes an application layer, an architecture layer, a JNI layer, a HIDL layer, a HAL layer and a Kernel layer in order from top to bottom, wherein,
    所述应用层用于收到发生在某个时间点上的振动事件并进行效果ID定义和振动事件描述;The application layer is used to receive vibration events that occur at a certain point in time and to define effect IDs and describe vibration events;
    所述架构层用于根据所述振动事件的描述生成振动参数;The architecture layer is configured to generate vibration parameters according to the description of the vibration event;
    所述JNI层用于将所述振动参数通过集成接口封装以得到封装数据;The JNI layer is used to encapsulate the vibration parameters through an integrated interface to obtain encapsulated data;
    所述HIDL层用于将所述封装数据定义Haptics效果枚举类型列表,实现信号名与效果ID的映射;The HIDL layer is used to define the Haptics effect enumeration type list by the encapsulation data to realize the mapping of the signal name and the effect ID;
    所述HAL层用于根据所述Haptics效果枚举类型列表进行处理以得到用以驱动硬件振动的关键硬件参数;The HAL layer is used for processing according to the Haptics effect enumeration type list to obtain key hardware parameters for driving hardware vibration;
    所述Kernel层用于根据所述关键硬件参数适配驱动Haptics芯片。The Kernel layer is adapted to drive the Haptics chip according to the key hardware parameters.
  14. 根据权利要求13所述的实现Haptics触觉效果的系统,其特征在于,所述JNI层是Java本地接口层,所述JNI层包括JNI扩展接口和Android原生接口。The system for implementing Haptics haptic effects according to claim 13, wherein the JNI layer is a Java native interface layer, and the JNI layer includes a JNI extension interface and an Android native interface.
  15. 根据权利要求12所述的实现Haptics触觉效果的系统,其特征在于,所述实现Haptics触觉效果的系统还包括电源,所述电源为处理器平台和Haptics芯片提供电源。The system for implementing Haptics haptic effects according to claim 12, wherein the system for implementing Haptics haptic effects further comprises a power supply, and the power supply provides power for the processor platform and the Haptics chip.
  16. 根据权利要求12所述的实现Haptics触觉效果的系统,其特征在于,所述驱动马达的参数包括期望的激励电压信号、振动加速度信号、马达速度信号、马达位移信号、最大电压限制和位移保护中的任意一种或多种。The system for implementing Haptics haptic effects according to claim 12, wherein the parameters of the driving motor include desired excitation voltage signal, vibration acceleration signal, motor speed signal, motor displacement signal, maximum voltage limit and displacement protection any one or more of them.
  17. 根据权利要求16所述的实现Haptics触觉效果的系统,其特征在于,所述最大电压限制用于防止超过硬件最大输出能力的限制。The system of claim 16, wherein the maximum voltage limit is used to prevent exceeding the limit of the maximum output capability of the hardware.
  18. 根据权利要求16所述的实现Haptics触觉效果的系统,其特征在于,所述位移保护是根据马达的安全振子位移进行电信号整体限制,确保电信号不至于使得振子超出预测的安全位移。The system for realizing Haptics haptic effect according to claim 16, wherein the displacement protection is to limit the electrical signal as a whole according to the safe displacement of the vibrator of the motor, so as to ensure that the electrical signal will not cause the vibrator to exceed the predicted safe displacement.
PCT/CN2020/102421 2020-07-06 2020-07-16 Method and system for achieving haptics effect WO2022006958A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010642037.XA CN111897524B (en) 2020-07-06 2020-07-06 Method and system for realizing Haptics haptic effect
CN202010642037.X 2020-07-06

Publications (1)

Publication Number Publication Date
WO2022006958A1 true WO2022006958A1 (en) 2022-01-13

Family

ID=73192999

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/102421 WO2022006958A1 (en) 2020-07-06 2020-07-16 Method and system for achieving haptics effect

Country Status (2)

Country Link
CN (1) CN111897524B (en)
WO (1) WO2022006958A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130104040A1 (en) * 2010-09-30 2013-04-25 Immersion Corporation Haptically enhanced interactivity with interactive content
CN108540664A (en) * 2018-03-30 2018-09-14 联想(北京)有限公司 A kind of starting-up method and electronic equipment
CN110231865A (en) * 2019-05-17 2019-09-13 瑞声科技(新加坡)有限公司 Tactile feedback method, electronic equipment and storage medium
CN111142659A (en) * 2019-12-05 2020-05-12 瑞声科技(新加坡)有限公司 Implementation method, device, terminal and storage medium of touch signal
CN111257732A (en) * 2020-02-17 2020-06-09 上海艾为电子技术股份有限公司 Linear motor driving chip testing method and system

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9019087B2 (en) * 2007-10-16 2015-04-28 Immersion Corporation Synchronization of haptic effect data in a media stream
US9383820B2 (en) * 2011-06-03 2016-07-05 Apple Inc. Custom vibration patterns
US20140092003A1 (en) * 2012-09-28 2014-04-03 Min Liu Direct haptic feedback
KR20140115648A (en) * 2013-03-21 2014-10-01 삼성전자주식회사 Terminal apparatus providing haptic effect using haptic engine and control method thereof
US9330547B2 (en) * 2014-05-20 2016-05-03 Immersion Corporation Haptic effect authoring tool based on a haptification model
JP6322780B1 (en) * 2017-12-06 2018-05-09 株式会社ファセテラピー Haptic content generation device, acoustic content generation device, acoustic playback device, tactile content generation method, and acoustic content generation method
US10360775B1 (en) * 2018-06-11 2019-07-23 Immersion Corporation Systems and methods for designing haptics using speech commands
WO2021000178A1 (en) * 2019-06-30 2021-01-07 瑞声声学科技(深圳)有限公司 Excitation signal generation method and device for motor, and computer apparatus
CN110489845A (en) * 2019-08-09 2019-11-22 瑞声科技(新加坡)有限公司 Motor vibrations model building method, sense of touch implementation method and its device
CN111160159B (en) * 2019-12-18 2023-06-30 瑞声科技(新加坡)有限公司 Motor electric signal parameterization description method, device, equipment and medium
CN111076807B (en) * 2019-12-18 2022-03-04 瑞声科技(新加坡)有限公司 Method, device and equipment for processing vibration signal and readable medium
CN111309150A (en) * 2020-02-25 2020-06-19 瑞声科技(新加坡)有限公司 Method and device for realizing dynamic tactile vibration effect and storage medium
CN111352509A (en) * 2020-03-03 2020-06-30 瑞声科技(新加坡)有限公司 Vibration control method, storage medium and equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130104040A1 (en) * 2010-09-30 2013-04-25 Immersion Corporation Haptically enhanced interactivity with interactive content
CN108540664A (en) * 2018-03-30 2018-09-14 联想(北京)有限公司 A kind of starting-up method and electronic equipment
CN110231865A (en) * 2019-05-17 2019-09-13 瑞声科技(新加坡)有限公司 Tactile feedback method, electronic equipment and storage medium
CN111142659A (en) * 2019-12-05 2020-05-12 瑞声科技(新加坡)有限公司 Implementation method, device, terminal and storage medium of touch signal
CN111257732A (en) * 2020-02-17 2020-06-09 上海艾为电子技术股份有限公司 Linear motor driving chip testing method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ANONYMOUS: "Android mobile phone "core technology"---Vibrator (motor) drive analysis", 4 July 2020 (2020-07-04), CN, pages 1 - 23, XP009533476, Retrieved from the Internet <URL:https://blog.csdn.net/a568713197/article/details/107122931> *
GUNDER: "HIDL overview", 27 November 2018 (2018-11-27), pages 1 - 6, XP055886304, Retrieved from the Internet <URL:https://blog.csdn.net/u013357557/article/details/84561457> *

Also Published As

Publication number Publication date
CN111897524A (en) 2020-11-06
CN111897524B (en) 2022-04-29

Similar Documents

Publication Publication Date Title
US8619051B2 (en) Haptic feedback system with stored effects
US10055950B2 (en) Sound to haptic effect conversion system using waveform
US9448626B2 (en) Sound to haptic effect conversion system using amplitude value
CN112269895A (en) Vibration control method and device and computer readable storage medium
US20080204266A1 (en) Method and Device For Implementing Vibration Output Commands in Mobile Terminal Devices
EP2624099A1 (en) Sound to haptic effect conversion system using waveform
JP2010288301A (en) System for multimedia rendering in portable device
US20200168058A1 (en) Vibration Method, Electronic Device and Computer Readable Storage Medium
CN110519638A (en) Processing method, processing unit, electronic device and storage medium
CN109379678A (en) Non-linear compensation method, device, storage medium and terminal device
WO2021168898A1 (en) Tactile vibration effect realization method and apparatus, and storage medium
CN116603228A (en) Vibration control method, vibration control device, electronic apparatus, and computer-readable storage medium
CN109582274A (en) Volume adjusting method, device, electronic equipment and computer readable storage medium
WO2022006958A1 (en) Method and system for achieving haptics effect
US20120045083A1 (en) Electronic device and method thereof
RU2316907C2 (en) System for reproduction of multimedia in portable device
CN116456035B (en) Enhanced vibration prompting method and electronic equipment
CN113721880A (en) Application program sound control implementation method and electronic equipment
WO2024067645A1 (en) Processing method and related apparatus
CN113741855B (en) Audio playing method and terminal
CN111768756B (en) Information processing method, information processing device, vehicle and computer storage medium
US20230182010A1 (en) Haptic control method and apparatus, electronic device, and computer-readable storage medium
TW202403508A (en) Method and apparatus of encoding/decoding haptic data
KR101081126B1 (en) System and method setting a keypad of mobile communication terminal
KR20220156189A (en) Electronic device and method of operation thereof

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: 20944202

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: 20944202

Country of ref document: EP

Kind code of ref document: A1