CN114860085B - Vibration control method, device, equipment and storage medium - Google Patents

Vibration control method, device, equipment and storage medium Download PDF

Info

Publication number
CN114860085B
CN114860085B CN202210794199.4A CN202210794199A CN114860085B CN 114860085 B CN114860085 B CN 114860085B CN 202210794199 A CN202210794199 A CN 202210794199A CN 114860085 B CN114860085 B CN 114860085B
Authority
CN
China
Prior art keywords
vibration
target
component
parameters
assembly
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202210794199.4A
Other languages
Chinese (zh)
Other versions
CN114860085A (en
Inventor
陈松
柳慧芬
明幼林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Silicon Integrated Co Ltd
Original Assignee
Wuhan Silicon Integrated Co Ltd
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 Wuhan Silicon Integrated Co Ltd filed Critical Wuhan Silicon Integrated Co Ltd
Priority to CN202210794199.4A priority Critical patent/CN114860085B/en
Publication of CN114860085A publication Critical patent/CN114860085A/en
Application granted granted Critical
Publication of CN114860085B publication Critical patent/CN114860085B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation

Abstract

The application discloses a vibration control method, a device, equipment and a storage medium, wherein a vibration event triggering vibration is detected, and at least one vibration element included in the vibration event is determined; different vibration elements are used for indicating different vibration effects included by the vibration events; respectively selecting a target vibration component matched with the vibration element from at least two vibration components according to each vibration element to obtain at least one target vibration component; controlling the at least one target vibration component to work; can realize that many vibration subassemblies vibrate in coordination, improve the vibration sense of touch effect at terminal.

Description

Vibration control method, device, equipment and storage medium
Technical Field
The present application relates to the field of terminal technologies, and relates to, but is not limited to, a vibration control method, apparatus, device, and storage medium.
Background
The vibration touch is an important means for realizing non-visual interaction on the terminal, and is mainly applied to the aspects of information reminding, tactile feedback and the like of the terminal.
The terminal equipment is usually provided with a motor, and a motor rotor in the motor rotates to provide driving force for the terminal equipment, so that the terminal equipment is driven to vibrate, and vibration touch feeling is generated. Currently, the vibration touch is realized by the operation of a single motor in the terminal device, and therefore, the vibration touch of the terminal device is single.
Disclosure of Invention
The embodiment of the application provides a vibration control method, device, equipment and storage medium, which can realize the cooperative vibration of multiple vibration components and improve the vibration touch effect of electronic equipment.
The technical scheme of the embodiment of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a vibration control method, where the method includes:
detecting a vibration event triggering vibration, and determining at least one vibration element included in the vibration event; different vibration elements are used for indicating different vibration effects included by the vibration events;
respectively selecting a target vibration component matched with the vibration element from at least two vibration components according to each vibration element to obtain at least one target vibration component;
and controlling the at least one target vibration component to work.
In a second aspect, embodiments of the present application provide a vibration control apparatus, the apparatus including:
the determination module is used for detecting a vibration event triggering vibration and determining at least one vibration element included in the vibration event; different vibration elements are used for indicating different vibration effects included by the vibration events;
the selection module is used for selecting a target vibration assembly matched with the vibration element from at least two vibration assemblies according to each vibration element to obtain at least one target vibration assembly;
and the control module is used for controlling the at least one target vibration component to work.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a memory, a processor, at least two vibration components, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the steps in the vibration control method.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, that is, a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the vibration control method described above.
According to the vibration control method, the device and the equipment of the single photon photoelectric device, a vibration event triggering vibration is detected, and at least one vibration element included in the vibration event is determined; different vibration elements are used for indicating different vibration effects included by the vibration events; respectively selecting a target vibration assembly matched with the vibration elements from at least two vibration assemblies according to the vibration elements to obtain at least one target vibration assembly; controlling the at least one target vibration component to work; can realize that many vibration subassemblies vibrate in coordination, improve the vibration sense of touch effect at terminal.
Drawings
Fig. 1 is a schematic view of an alternative structure of an electronic device provided in an embodiment of the present application;
FIG. 2 is a first schematic flow chart of an alternative vibration control method provided by an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating an alternative flow chart of a vibration control method according to an embodiment of the present disclosure;
FIG. 4 is an alternative diagram of an association provided by an embodiment of the present application;
FIG. 5 is a third alternative flow chart of the vibration control method provided by the embodiment of the present application;
FIG. 6 is a fourth alternative flow chart of the vibration control method provided by the embodiments of the present application;
FIG. 7 is a schematic flow chart diagram of an alternative vibration control method according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram ii of an alternative electronic device provided in the embodiment of the present application;
FIG. 9 is a sixth alternative flow chart of the vibration control method provided by the embodiments of the present application;
FIG. 10 is a seventh alternative flow chart of a vibration control method provided by the embodiments of the present application;
fig. 11 is an alternative schematic flow chart eight of the vibration control method provided in the embodiment of the present application;
fig. 12 is a schematic flow chart nine illustrating an alternative vibration control method according to an embodiment of the present application;
FIG. 13 is a schematic view of an alternative configuration of a vibration control apparatus provided in an embodiment of the present application;
fig. 14 is a schematic view of an optional structure of an electronic device provided in the embodiment of the present application.
Detailed Description
In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the accompanying drawings, the described embodiments should not be considered as limiting the present application, and all other embodiments obtained by a person of ordinary skill in the art without making creative efforts fall within the protection scope of the present application.
The embodiment of the application can be provided as a vibration control method, a device, equipment and a storage medium. In practical applications, the vibration control method may be implemented by a vibration control apparatus, and each functional entity in the vibration control apparatus may be cooperatively implemented by hardware resources of an electronic device (e.g., a terminal device), such as computing resources like a processor, and communication resources (e.g., for supporting communications in various manners like optical cables and cellular).
Of course, the embodiments of the present application are not limited to being provided as methods and hardware, and may be implemented in various ways, such as being provided as a storage medium (storing instructions for executing the vibration control method provided by the embodiments of the present application).
As shown in fig. 1, an electronic device 100 implementing a vibration control method according to an embodiment of the present application includes: at least two vibrating assemblies 101, which may be motors, such as: a linear motor. The component parameters of different vibration components may be different, wherein the component parameters may include: vibration direction, vibration frequency, overtaking time, braking time etc. characterize the physical vibration's of vibration subassembly parameter, still can include: rated voltage, rated acceleration, maximum displacement, resistance, inductance, damping coefficient and other parameters simulating the vibration model of the vibration component.
According to the vibration control method provided by the embodiment of the application, a vibration event triggering vibration is detected, and at least one vibration element included in the vibration event is determined; different vibration elements are used for indicating different vibration effects included by the vibration events; respectively selecting a target vibration component matched with the vibration element from at least two vibration components according to each vibration element to obtain at least one target vibration component; and controlling the at least one target vibration component to work, so as to control one or more vibration components in the plurality of vibration components in the electronic equipment to work cooperatively based on the vibration effect included in the vibration event.
Embodiments of a vibration control method, apparatus, device, and storage medium according to embodiments of the present application are described below with reference to a schematic diagram of an electronic device shown in fig. 1. The vibration control method provided by the embodiment of the application can be applied to electronic equipment comprising a plurality of vibration assemblies.
An embodiment of the present application provides a vibration control method, and fig. 2 is a schematic diagram illustrating an implementation flow of the vibration control method according to the embodiment of the present application, and as shown in fig. 2, the method includes the following steps:
s201, the electronic device detects a vibration event triggering vibration, determines at least one vibration element included in the vibration event, and different vibration elements are used for indicating different vibration effects included in the vibration event.
In the embodiment of the present application, the vibration event is an event capable of triggering vibration, and the vibration event may include audio output, video output, a user operation for triggering vibration, and the like.
After the electronic equipment detects a vibration event, determining vibration elements included in the vibration event, wherein the vibration elements are elements which can trigger vibration and are included in the vibration event, and the vibration effects of the vibration triggered by different vibration elements are different. For vibrations of different vibration effects, one or more of the following parameters are different: frequency, intensity, duration, direction, etc.
In practical applications, where the vibration event is input audio or video, the electronic device may detect the vibration element included in the vibration event within a different time window based on the time window.
In the case that the event description information carried by the vibration event includes vibration element information identifying the vibration element, the electronic device may directly determine the vibration element according to the event description information.
In the case that the vibration event does not carry event description information or the carried event description information does not include vibration element information, the electronic device may detect a vibration element included in the vibration event through a vibration element detection algorithm. In an example, the electronic device needs to output audio 1 capable of triggering vibration, and the electronic device detects that the audio 1 contains the following audio contents through a vibration element detection algorithm: piano, violin, cello, urheen, then the vibration element that audio frequency 1 includes: pianos, violins, cellos, and urheens.
S202, the electronic equipment selects a target vibration assembly matched with the vibration element from at least two vibration assemblies according to the vibration elements respectively to obtain at least one target vibration assembly.
After the electronic equipment determines the vibration elements included in the vibration event, a target vibration assembly corresponding to the vibration element in the vibration assemblies included in the electronic equipment is determined for each vibration element included in the vibration event, wherein one vibration element corresponds to one or more target vibration assemblies, different vibration elements correspond to different target vibration assemblies, and the target vibration assemblies are used for generating vibration effects of the corresponding vibration elements.
In one example, an electronic device includes a vibration component: vibration subassembly 1, vibration subassembly 2, vibration subassembly 3, vibration subassembly 4 and vibration subassembly 5, vibration event 1 is including following vibration element: vibration element 1, vibration element 2, vibration element 3, the electronic equipment confirms the vibration subassembly that vibration element 1, vibration element 2, vibration element 3 correspond respectively, and wherein, the vibration subassembly that vibration element 1 corresponds is vibration subassembly 1, and the vibration subassembly that vibration element 2 corresponds is vibration subassembly 3, and the vibration subassembly that vibration element 3 corresponds is vibration subassembly 4.
S203, the electronic equipment controls the at least one target vibration component to work.
After the target vibration assembly corresponding to each vibration element in the vibration elements included in the vibration event is determined by the electronic equipment, the corresponding target vibration assembly is controlled to work based on the vibration effect of each vibration element, so that the vibration effect corresponding to each vibration assembly is realized.
In one example, an electronic device includes a vibration component: vibration subassembly 1, vibration subassembly 2, vibration subassembly 3, vibration subassembly 4 and vibration subassembly 5, vibration event 1 is including following vibration element: vibration element 1, vibration element 2, vibration element 3, electronic equipment confirms vibration element 1 respectively, vibration element 2, the vibration subassembly that vibration element 3 corresponds, wherein, the vibration subassembly that vibration element 1 corresponds is vibration subassembly 1, the vibration subassembly that vibration element 2 corresponds is vibration subassembly 3, the vibration subassembly that vibration element 3 corresponds is vibration subassembly 4, at this moment, electronic equipment control vibration subassembly 1, vibration subassembly 3 vibration subassembly 5 work, and vibration subassembly 1 carries out the vibration effect of vibration element 1, vibration footprint An3 carries out the vibration effect of vibration element 2, vibration subassembly 5 carries out the vibration effect of vibration element 3.
In the embodiment of the application, a vibration event triggering vibration is detected, and at least one vibration element included in the vibration event is determined; different vibration elements are used for indicating different vibration effects included by the vibration events; respectively selecting a target vibration component matched with the vibration element from at least two vibration components according to each vibration element to obtain at least one target vibration component; controlling the at least one target vibration component to work; therefore, the vibration assemblies with the corresponding number are controlled to work based on the vibration elements included in the vibration event, the vibration effects of different vibration elements are executed by different vibration assemblies, the multi-vibration assembly cooperative vibration is realized, and the vibration touch effect of the terminal is improved.
In some embodiments, as shown in fig. 3, S202 selects a target vibration component adapted to each of the vibration elements from at least two vibration components according to each of the vibration elements, and obtains at least one target vibration component, including:
for each of the at least one vibration element, performing the following processing:
s2021, determining target vibration characteristics corresponding to the vibration elements;
s2022, selecting a target vibration assembly with vibration performance matched with the target vibration characteristic from the at least two vibration assemblies based on the target vibration characteristic.
Here, S2021 and S2022 are performed for the vibration element included in the vibration event to determine a target vibration component corresponding to the vibration element.
In S2021, a target vibration characteristic of the vibration element is determined, and the target vibration characteristic may include: a target vibration description or a target vibration waveform.
The target vibration description is a vibration description corresponding to the current vibration element in a vibration description file, wherein at least one vibration description is included in the vibration description file, and the vibration description is used for describing the vibration effect of the vibration element. It will be appreciated that different vibration descriptions may include different vibration parameters such that the different vibration descriptions describe different vibration effects. The vibration description may include one or more of the following vibration parameters: the vibration parameters include: the vibration frequency control method comprises the following steps of vibration direction, vibration frequency, envelope parameters, vibration intensity, vibration time, overtaking time and braking time, wherein the vibration frequency can be a specific value of the vibration frequency and can also be a vibration frequency grade. Envelope parameters, vibration intensity, vibration time, overtaking time and braking time in the vibration description are performance parameters representing performance requirements of vibration elements, and the overtaking time is the time required by the vibration quantity to reach a target vibration quantity from rest; the braking time is the time required by the vibration component from the target vibration quantity to the brake, and the shorter the overtaking time and the braking time are, the higher the performance requirement is, otherwise, the lower the performance requirement is.
The target vibration waveform is a vibration waveform corresponding to the current vibration element in a vibration waveform library, wherein the vibration waveform library comprises at least two vibration waveforms, and the vibration waveforms are used for describing the vibration effect of the vibration element. It will be appreciated that the vibration waveform may be represented by samples on the waveform envelope, which may be discrete points, or may be represented by vibration parameters describing the vibration waveform, including: time, frequency, displacement, etc. can describe the parameters of the vibration waveform of a vibrating component.
In this embodiment of the application, a target vibration feature corresponding to a vibration element may be directly determined based on a correspondence between the vibration element and the vibration feature, or a vibration feature corresponding to the vibration element may be determined based on a vibration tag, where the vibration tag is used to identify a vibration event, for example, an event tag of an audio event is an audio tag, and represents a type of audio corresponding to the audio event.
Optionally, the implementation of S2021 comprises: determining a vibration label corresponding to the vibration element; and determining the target vibration characteristics according to the vibration label.
In the embodiment of the application, a corresponding relation exists between the vibration element and the vibration label, and a corresponding relation exists between the vibration label and the vibration characteristic. One vibration signature corresponds to one vibration tag. In the vibration control method provided by the embodiment of the application, the electronic equipment can quickly and effectively determine the target vibration characteristics corresponding to the vibration elements by means of the vibration labels.
In the embodiment of the present application, the mode of determining, by the electronic device, the target vibration characteristic corresponding to the vibration element further includes other modes, for example: the method includes the steps of determining vibration parameters of the vibration elements, searching vibration characteristics matched with the vibration parameters of the vibration elements in a characteristic library based on the vibration parameters to be target vibration characteristics, and in the embodiment of the application, no limitation is imposed on the mode of determining the target vibration characteristics corresponding to the vibration elements by the electronic equipment.
For a vibration element, after the electronic device acquires the vibration feature of the vibration element, namely the target vibration feature, the target vibration component is selected from the vibration components included in the electronic device through the target vibration feature.
In the embodiment of the application, the manner of selecting the target vibration component by the electronic device based on the target vibration feature includes at least one of the following:
mode 1, selecting based on the association relation;
mode 2, selection is made based on component parameters of the vibrating component.
In mode 1, S2022 selects a target vibration component whose vibration performance is adapted to the target vibration characteristic from the at least two vibration components based on the target vibration characteristic, including:
S20221A, acquiring an association relation between the vibration component and the vibration characteristics;
S20222A, selecting a target vibration assembly corresponding to the target vibration feature from the at least two vibration assemblies based on the association relation.
In the embodiment of the application, the electronic device is provided with at least two association relations between the vibration components and the vibration characteristics, different association relations are relations between different vibration components and different vibration characteristics, in the association relations, the vibration components can be identified through vibration component identification, namely component names, and the vibration characteristics can be identified through labels. And the electronic equipment searches a target incidence relation corresponding to the target vibration component in the set incidence relation, and determines the vibration component corresponding to the target vibration characteristic in the target incidence relation as the target vibration component with vibration performance adaptive to the target vibration characteristic.
In one example, as shown in fig. 4, the electronic device is provided with the following association relationship: the motor A and the label 1 are in an incidence relation, the motor B and the label 2 are in an incidence relation, the motor C and the label 3 are in an incidence relation, the motor D and the label 4 are in an incidence relation, and the labels 1 to 4 are used for identifying different vibration characteristics; in the case that the label of the target vibration feature is label 3, the target vibration component is motor C; in the case where the label of the target vibration feature is the label 4, the target vibration component is the motor D.
In mode 2, S2022, based on the target vibration characteristic, selects a target vibration component whose vibration performance is adapted to the target vibration characteristic from the at least two vibration components, including:
S20221B, selecting the target vibration assembly with assembly parameters matched with the target vibration characteristics from the at least two vibration assemblies according to the target vibration characteristics and the assembly parameters of each vibration assembly of the at least two vibration assemblies.
In S20221B, the electronic device searches for a target vibration component from electronic devices included in the electronic device according to the target vibration characteristic and the component parameter of the vibration component. The component parameters may include: the physical vibration parameters such as vibration direction, vibration frequency, overtaking time, braking time and the like can also comprise: the parameters of a vibration model of the vibration component, such as rated voltage, rated acceleration, maximum displacement, resistance, inductance, damping coefficient and the like, can also comprise the vibration model.
In practical applications, the electronic device may first determine the target vibration component by using the method 1, and in a case where the target vibration component is not found based on the method 1, may determine the target vibration component by using the method 2.
In mode 2, based on the difference of the component parameters, the determination mode of selecting the target vibration component with the component parameter adapted to the target vibration characteristic from the at least two vibration components includes at least one of:
determining a mode 1, and determining a target vibration component based on physical vibration parameters;
determining mode 2, determining a target vibration component based on model parameters of a vibration model;
mode 3, the vibration component is determined based on the vibration model.
In the determination mode 1, the target vibration characteristics include: a target vibration description corresponding to the vibration element; S20221B selects the target vibration component having a component parameter adapted to the target vibration characteristic from the at least two vibration components according to the target vibration characteristic and the component parameter of each of the at least two vibration components, including: determining adaptive component parameters which are adapted to the vibration parameters included in the target vibration description in the component parameters of each of the at least two vibration components; selecting the target vibratory assembly from the at least two vibratory assemblies based on the adapted assembly parameters for each vibratory assembly.
Here, the vibration description corresponding to the target vibration element, i.e., the target vibration description, is compared with the component parameters of each vibration component, and the vibration parameters included in the component parameters of each vibration component in adaptation to the target vibration description, i.e., the adaptation vibration parameters, are determined. Wherein the target vibration description comprises vibration parameters including: vibration direction, vibration frequency, overtaking time, braking time, etc., where the target vibration description includes vibration parameters defined as: the method comprises the steps of respectively matching the vibration direction, the vibration frequency, the overtaking time, the braking time and the first vibration direction, the first vibration frequency, the first overtaking time and the first braking time which are included by target vibration description of each vibration component, and determining component parameters matched with the first vibration direction, the first vibration frequency, the first overtaking time and the first braking time in component parameters included by each vibration component.
In the embodiments of the present application, adaptation may be understood as two similar parameters, such as: for the vibration direction, under the condition that the direction of the vibration description is the same as the direction of the vibration assembly, determining that the direction of the vibration description is matched with the direction of the vibration assembly, and then, the vibration direction is a matched vibration parameter; for another example: for the vibration frequency, when the frequency difference between the vibration frequency described by the vibration and the vibration frequency of the vibration component is smaller than or equal to a frequency difference threshold value, the vibration frequency described by the vibration is determined to be matched with the vibration frequency of the vibration component, the vibration frequency is a matched vibration parameter, and when the frequency difference between the vibration frequency described by the vibration and the vibration frequency of the vibration component is larger than the frequency difference threshold value, the vibration frequency described by the vibration is determined not to be matched with the vibration frequency of the vibration component. For another example: and if not, determining that the overtaking time described by the vibration is not matched with the overtaking time of the vibration component. For another example: and if not, determining that the braking time described by the vibration is not matched with the braking time of the vibration assembly.
In the embodiment of the application, after the parameters of the adaptive components corresponding to each vibration component are determined, the target vibration component can be selected from the plurality of vibration components based on the number of the parameters of the adaptive components and/or the priorities of the parameters of the adaptive components.
Optionally, a first number corresponding to each vibration assembly in the plurality of vibration assemblies is determined, where the first number is the number of parameters of the adaptive assembly included in the corresponding vibration assembly, and the vibration assembly with the largest first number is determined as the target vibration assembly.
And determining a first number corresponding to each vibration component in the vibration components included in the electronic equipment, and determining the vibration component with the largest first number as a target vibration component. It will be appreciated that in the case where there are a plurality of the same maximum first numbers, one vibration assembly is randomly selected among the plurality of vibration assemblies as the target vibration assembly, or the target vibration assembly is determined according to the degree of adaptation of the parameter. Alternatively, the fitness of a parameter may be characterized by a difference of the parameter, the smaller the difference the higher the fitness, the larger the difference the lower the fitness.
In one example, the electronic device includes 4 vibrating components, and the component parameters of the vibrating component 1 include: vibration direction 1, vibration frequency 1, overtaking time 1, the subassembly parameter of vibration subassembly 2 includes: vibration direction 1, vibration frequency 2, overtaking time 2, the subassembly parameter of vibration subassembly 3 includes: vibration direction 1, vibration frequency 3, overtaking time 3, the subassembly parameter of vibration subassembly 4 includes: vibration direction 2, vibration frequency 3, overtaking time 4, the vibration parameters described by the target vibration include: vibration direction 1, vibration frequency 4 and overtaking time 5, and vibration frequency 4 and vibration frequency 2 adaptation, overtaking time 5 and the overtaking time 2 adaptation that shakes, overtaking time 5 and overtaking time 3 adaptation, then vibration direction and the vibration direction adaptation of vibration description of vibration subassembly 1, the first quantity that vibration subassembly 1 corresponds is 1, vibration direction of vibration subassembly 2, vibration frequency, overtaking time respectively with the vibration direction of vibration description, vibration frequency, overtaking time adaptation, the first quantity that vibration subassembly 2 corresponds is 3, vibration direction of vibration subassembly 3, overtaking time respectively with the vibration direction of vibration description, overtaking time adaptation, the first quantity that vibration subassembly 3 corresponds is 2, vibration direction of vibration subassembly 4, vibration frequency, the vibration direction of overtaking time and vibration description, vibration frequency, overtaking time adaptation, the first quantity that vibration subassembly 3 corresponds is 0. At this time, the vibration component 2 is a target vibration component.
In one example, the electronic device includes 4 vibrating components, and the component parameters of the vibrating component 1 include: vibration direction 1, vibration frequency 1, overtaking time 1, the subassembly parameter of vibration subassembly 2 includes: vibration direction 1, vibration frequency 2, overtaking time 2, the subassembly parameter of vibration subassembly 3 includes: vibration direction 1, vibration frequency 2, overtaking time 3, the subassembly parameter of vibration subassembly 4 includes: vibration direction 2, vibration frequency 3, overtaking time 4, the vibration parameters described by the target vibration include: vibration direction 1, vibration frequency 4 and overtaking time 5, and vibration frequency 4 and vibration frequency 2 adaptation, overtaking time 5 and overtaking time 3 adaptation, then vibration direction and the vibration direction adaptation of vibration description of vibration subassembly 1, the first quantity that vibration subassembly 1 corresponds is 1, the vibration direction of vibration subassembly 2, vibration frequency, overtaking time respectively with the vibration direction of vibration description, vibration frequency, overtaking time adaptation, the first quantity that vibration subassembly 2 corresponds is 3, the vibration direction of vibration subassembly 3, vibration frequency, overtaking time respectively with the vibration direction of vibration description, vibration frequency, overtaking time adaptation, the first quantity that vibration subassembly 3 corresponds is 3, the vibration direction of vibration subassembly 4, vibration frequency, overtaking time and the vibration direction of vibration description, vibration frequency overtaking time all not adaptation, the first quantity that vibration subassembly 3 corresponds is 0. At this time, the first numbers corresponding to the vibration assemblies 2 and 3 are 3, both being the maximum first numbers, then one of the vibration assemblies 2 and 3 is selected as a target vibration assembly, in one case, the vibration assembly 2 is randomly selected as a target vibration assembly, in one case, the vibration assembly 2 and the vibration assembly 3 are different in the passing time, the adaptation degree of the passing time 2 and the passing time 5 of the vibration assembly 2 is lower than the adaptation degree of the passing time 3 and the passing time 5 of the vibration assembly 2, and then the vibration assembly 3 is taken as the target vibration assembly.
Optionally, the priority of the adaptation component parameter corresponding to each vibration component in the plurality of vibration components is determined, and the vibration component corresponding to the adaptation component parameter with the higher priority is determined as the target vibration component.
In one example, the electronic device includes 3 vibration assemblies, and the assembly parameters of vibration assembly 1 include: vibration direction 1, vibration frequency 1, overtaking time 1, the subassembly parameter of vibration subassembly 2 includes: vibration direction 2, vibration frequency 1, overtaking time 2, the subassembly parameter of vibration subassembly 3 includes: vibration direction 2, vibration frequency 2, overtaking time 3, the vibration parameter of vibration description includes: vibration direction 1, vibration frequency 3 and overtaking time 2, this moment, the adaptation subassembly parameter of vibration subassembly 1 is vibration direction 1, and the adaptation subassembly parameter of vibration subassembly 2 is: the overtaking time 2, the adaptive component parameter of the vibration component 3 is the vibration frequency 2, and the sorting result of the component parameters sorted from large to small based on the priority is as follows: vibration direction, vibration frequency and overtaking time, the vibration component 1 is the target vibration component.
In one example, the electronic device includes 3 vibration assemblies, and the assembly parameters of the vibration assembly 1 include: vibration direction 1, vibration frequency 1, overtaking time 1, the subassembly parameter of vibration subassembly 2 includes: vibration direction 2, vibration frequency 2, overtaking time 2, the subassembly parameter of vibration subassembly 3 includes: vibration direction 3, vibration frequency 2, overtaking time 3, the vibration parameter that the target vibration described includes: vibration direction 1, vibration frequency 4 and overtaking time 5, and vibration frequency 4 and 2 adaptations of vibration frequency, overtaking time 5 and overtaking time 2 adaptations, overtaking time 5 and 3 adaptations of overtaking time, then the adaptation subassembly parameter of vibration subassembly 1 is the vibration direction, and the adaptation subassembly parameter of vibration subassembly 2 is: vibration frequency, overtaking time, the adaptation subassembly parameter of vibration subassembly 3 is: the vibration frequency and the overtaking time are sequentially ranked from large to small according to the component parameters, and the ranking result is as follows: the vibration module 1 is a target vibration module in the case of vibration direction, vibration frequency, and passing time.
Optionally, a first number corresponding to each vibration component in the plurality of vibration components is determined, where the first number is the number of adapted component parameters included in the corresponding vibration component, and in a case that the largest first number corresponds to the plurality of vibration components, a vibration component including a component parameter with a higher priority is determined as the target vibration component.
In practical application, the setting of the priorities of different component parameters can be set according to practical requirements, and the embodiment of the application does not limit the setting.
In the determination mode 2, the target vibration characteristics include: a target vibration waveform corresponding to the vibration element; S20221B selects the target vibration component having a component parameter adapted to the target vibration characteristic from the at least two vibration components according to the target vibration characteristic and the component parameter of each of the at least two vibration components, including: determining target component parameters corresponding to the target vibration waveform, wherein the target component parameters are component parameters of a vibration component obtaining the target vibration waveform; comparing the target component parameter to a component parameter of each of the at least two vibrating components; and determining the vibration component corresponding to the component parameter with the minimum difference with the target component parameter as the target vibration component.
Here, the component parameter is a model parameter of a vibration model for obtaining a vibration waveform, and the vibration model is a mathematical model for simulating a vibration component. The target component parameters are model parameters of a vibration model for obtaining the target vibration waveform, and the component parameters of each vibration component are model parameters of the vibration model of each vibration component.
The electronic equipment compares the target component parameters with the component parameters of all the vibration components, determines the parameter adaptation degrees of the target component parameters and all the component parameters, and determines the vibration component corresponding to the component parameter with the highest parameter adaptation degree as the target vibration component.
In the embodiment of the present application, when a plurality of component parameters are included, the difference corresponding to each component parameter may be determined, and the weighted calculation is performed on the differences corresponding to all the component parameters, where the sum of the weights corresponding to each component parameter may be 1 or the weight corresponding to each component parameter may be 1. In an embodiment of the present application, the component parameter may include at least one of: rated voltage, rated acceleration, maximum displacement, resistance, inductance, damping coefficient, and the like.
In one example, the electronic device includes 4 vibrating components, a component parameter 1 of vibrating component 1, a component parameter 2 of vibrating component 2, a component parameter 3 of vibrating component 3, and a component parameter 4 of vibrating component 4, the target component parameters being: a component parameter 5, wherein the differences between the component parameter 5 and the component parameters 1, 2, 3, and 4 are: difference 1, difference 2, difference 3, and difference 4, and the order of difference 1 to difference 4 from small to large is: if the difference 3, the difference 2, the difference 4, and the difference 1 are different, the vibration element 3 corresponding to the difference 3 is the target vibration element.
In the determination mode 3, the target vibration characteristics include: the component parameters are used for representing a vibration model of the corresponding vibration component; selecting the target vibration component from the at least two vibration components with component parameters adapted to the target vibration characteristic according to the target vibration characteristic and component parameters of each of the at least two vibration components, including: inputting the target vibration waveform into a vibration model corresponding to each of the at least two vibration assemblies to obtain vibration data of each vibration model, wherein the vibration data represent the vibration effect of the target vibration waveform after being input into the corresponding vibration model; and determining the vibration component corresponding to the vibration data with the optimal vibration effect as the target vibration component.
The electronic equipment inputs the target vibration characteristics into the vibration model corresponding to each vibration component in the plurality of vibration components, and obtains vibration data of each vibration component under the condition of inputting the target vibration waveform, wherein the vibration data are simulation results of the vibration model, and represent the vibration effect of the vibration component simulated by the vibration model when executing the vibration element, so that the vibration effect of the vibration element is simulated by simulating the corresponding vibration component through the vibration model. Here, the vibration data may include: overtaking duration, braking duration, vibration amount, acceleration and other information representing the simulated vibration result.
In one example, an electronic device includes a vibration component: as shown in fig. 5, the electronic device inputs a target vibration waveform to the vibration model 1 corresponding to the vibration component 1, the vibration model 2 corresponding to the vibration component 2, the vibration model 3 corresponding to the vibration component 3, and the vibration model 4 corresponding to the vibration component 4, and obtains vibration data 1, vibration data 2, vibration data 3, and vibration data 4, respectively.
And after the electronic equipment obtains vibration data of the vibration model obtained by inputting the target vibration waveform to each vibration model, comparing the vibration data corresponding to each vibration model, and determining the vibration component corresponding to the vibration data with the optimal vibration effect as the target vibration component. Here, the optimum vibration effect is understood to mean the most stable vibration, the shortest overtaking time or braking time, and the like.
Based on the input of the vibration model shown in fig. 5, as shown in fig. 6, in the case where the vibration effect of the vibration data 4 is optimal, the vibration component 4 is determined as the target vibration component.
In the embodiment of the application, the target vibration assembly of adaptation is selected for the vibration element through different assembly parameters of the vibration assembly, so that the most adapted vibration assembly is selected for the vibration element in the limited vibration assembly of the electronic equipment, the flexibility of selection of the vibration assembly is improved, and the vibration effect of the vibration assembly is ensured.
In some embodiments, as shown in fig. 7, the electronic device further performs the steps of:
s204, for each target vibration component of the at least one target vibration component, the electronic device performs the following processing:
s2041, detecting the availability or feasibility of the target vibration assembly;
s2042, keeping the target vibration component unchanged under the condition that the availability or feasibility of the target vibration component passes;
s2043, in the case that the availability or feasibility of the target vibration component is not passed, selecting a new target vibration component from the at least two vibration components.
In the embodiment of the application, after determining the target vibration components, the electronic device detects the availability and/or feasibility of the target vibration components for each target vibration component. Availability refers to whether the target vibration assembly can be used normally, wherein the target vibration assembly cannot be used normally when it is occupied. Feasibility refers to whether the target vibration component can safely execute the vibration element corresponding to the target vibration component.
In the event that the target vibration component availability or feasibility passes the detection, then the target vibration component may use or be able to safely execute the vibration element corresponding to the target vibration component. In the case that the availability or feasibility of the target vibration component is not detected, the vibration element corresponding to the target vibration component cannot be used or can be safely executed by the target vibration component, and then the target vibration component may be reselected from the vibration components included in the electronic device based on the mode 1 or the mode 2. It is understood that a new target vibration component may be selected among vibration components included in the electronic device other than the already determined target vibration component.
In one example, the vibration event includes a vibration element 1 and a vibration element 2, and the electronic device includes a vibration component: the electronic equipment determines that a target vibration component corresponding to the vibration element 1 is the vibration component 2, the target vibration component corresponding to the vibration element 1 is the vibration component 3, the target vibration component corresponding to the vibration element 1 is confirmed to be the vibration component 2 when the availability and feasibility of the vibration component 2 pass, and the electronic equipment reselects the target vibration component for the vibration element 2 from the vibration component 1 and the vibration component 4 when the availability or feasibility of the vibration component 3 does not pass.
In the embodiment of the application, after selecting a new target vibration component, the electronic device can continue to detect the availability and feasibility of the new target vibration component, and when the availability and feasibility of the new target vibration component pass, the electronic device confirms that the new target vibration component is the finally determined target vibration component; in the event that the availability and feasibility of the new target vibratory assembly fails, the selection of the new target vibratory assembly is resumed until the availability and feasibility of the selected new target vibratory assembly passes.
In some embodiments, said detecting the availability of the target vibratory assembly comprises:
acquiring the occupation state of the target vibration component;
determining whether the availability of the target vibratory component passes based on the occupancy status; if the occupation state represents that the target vibration component is not occupied, the availability of the target vibration component is passed; and if the occupation state represents that the target vibration assembly is occupied, the usability of the target vibration assembly is not passed.
In the embodiment of the application, can correspond the vibration subassembly and set up the occupation state, wherein, the occupation state can characterize whether the vibration subassembly that corresponds is occupied and whether work promptly, is occupied at work when a vibration subassembly, then sets up corresponding occupation state for being occupied, does not work when a vibration subassembly, then sets up corresponding occupation state for not occupying or idle.
When the electronic equipment detects the availability of the target vibration component, the occupation state of the target vibration component is obtained, the target vibration component is determined to be unoccupied based on the occupation state, the availability is determined to be passed, and the target vibration component is determined to be occupied based on the occupation state, and the availability is determined to be failed.
In some embodiments, said detecting feasibility of said target vibratory assembly comprises:
inputting the target vibration characteristics corresponding to the target vibration component into a target component model corresponding to the target vibration component to obtain feasibility parameters output by the target component model; comparing the feasibility parameters with the safe operation ranges corresponding to the feasibility parameters; if the feasibility parameter meets the condition in the corresponding safe operation range, determining that the feasibility of the target vibration component passes; and if the feasibility parameter does not meet the condition outside the corresponding safe operation range, determining that the feasibility of the target vibration component does not pass.
When the electronic equipment conducts feasibility inspection on a target vibration component, inputting vibration characteristics, namely target vibration characteristics, of a vibration element corresponding to the target vibration component into a target component model of the target vibration component, simulating vibration of the vibration element based on the target component model, and obtaining feasibility parameters output by the target component model, wherein the feasibility parameters can include: the vibration quantity, the displacement, the temperature and the like are used for detecting whether the target vibration assembly can safely operate.
In the embodiment of the application, a target component model of a target vibration component can output feasibility parameters based on target vibration characteristics, wherein the target component model can output one or more feasibility parameters. In the case where the target component model outputs a plurality of feasibility parameters, the target component model is a model capable of outputting a plurality of different feasibility parameters, and the target component model may also include a plurality of submodels outputting different feasibility parameters, such as: the target component model includes: a target vibration type for outputting a vibration quantity, and a target temperature model for outputting a temperature. In the embodiment of the present application, the structure of the target component model is not limited at all.
The electronic equipment respectively sets corresponding safe operation ranges according to different feasibility parameters, and the feasibility of the target vibration assembly can be determined to pass when each feasibility parameter respectively meets the corresponding safe operation range. In the event that any of the feasibility parameters does not satisfy the corresponding safe operating range, determining that the feasibility of the target vibratory assembly does not pass. It will be appreciated that different feasibility parameters may correspond to different safe operating ranges, respectively, such as: the safe operation range corresponding to the vibration quantity is as follows: and when the vibration quantity is smaller than the vibration quantity threshold value, the safe operation range corresponding to the temperature is smaller than the temperature threshold value.
According to the vibration control method provided by the embodiment of the application, the vibration assembly can be pre-protected through detection of feasibility of the target vibration assembly, the target vibration assembly can be guaranteed to work in a safe state, and stability of the vibration assembly is improved.
The vibration control method provided in the embodiment of the present application is further described below by taking the vibration component as a motor as an example.
The vibration control method provided by the embodiment of the application controls the plurality of motors to vibrate according to the vibration events detected in audio, video and games or preset vibration events, and generates diversified vibration effects on the electronic equipment, wherein at least one of the following parameters of the vibrations with different vibration effects is different: vibration position, vibration frequency, vibration intensity, vibration duration and vibration direction.
The structure of the electronic device implementing the vibration control method provided in the embodiment of the present application is shown in fig. 8, and includes: a vibration description file 801, a vibration waveform library 802, a processing module 803, a plurality of chip channels 804, and a motor 805 corresponding to the chip channels 804. The vibration description file 801 includes a plurality of vibration descriptions, the vibration waveform library 802 includes a plurality of vibration waveforms, and the vibration descriptions and the vibration waveforms are configured based on vibration design and are used for describing parameters of vibration effects. The vibration description may include: vibration direction, vibration frequency, overtaking time, etc. The vibration waveform can be represented by sampling point identification and also by vibration parameters describing the vibration waveform, and the vibration parameters for describing the vibration waveform comprise: time, frequency, displacement, etc. The processing module 803 is configured to determine a target motor corresponding to a vibration element based on the vibration description in the vibration description file 801 or the vibration waveform in the vibration waveform library 802, and input information of the determined target motor into the chip channel 804 corresponding to the target motor, so as to drive the target motor to operate to generate vibration and form a tactile sensation.
The vibration control method provided by the embodiment of the application receives input labels of various forms of vibration input, vibration events or indication vibration, determines the number of vibration elements in a single time window and attribute information of the vibration elements based on the received input, and sends the number of the vibration elements and the attribute information of the vibration elements to a vibration description allocation decision maker or a preset waveform library allocation decision maker, wherein the vibration description allocation decision maker determines a target motor by determining various information (such as direction, frequency, super-braking performance, strength and the like, which are not in sequence) based on vibration description, or determines the target motor by the preset waveform library allocation decision maker based on the preset waveform library, and then performs motor protection on a judgment result, motor capability evaluation, motor availability state and the like check, if the distribution result does not pass the check condition smoothly, an optimized distribution result is given according to the specific condition of motor availability, and is processed into a chip form and then sent into a chip channel to drive the motor to work to generate vibration and form touch sense.
Taking a vibration event as an audio event as an example, the vibration control method provided in the embodiment of the present application is shown in fig. 9, and includes:
and S901, receiving an audio event.
And S902, determining vibration elements included by the audio event.
Here, the vibration element may be determined based on event description information of the audio event, and the vibration element included in the audio event may also be detected through an audio processing algorithm.
S903A, for one vibration element, determines a vibration description based on the vibration element.
The vibration description includes the following parameters: vibration direction, vibration frequency, overtaking time, braking time and the like.
And S904A, for one vibration element, determining a target motor corresponding to the vibration element based on the vibration description of the vibration element.
S905, checking and optimizing the target motor.
And S906, controlling the target motor to work.
As shown in fig. 9, S903A may be replaced with S903B, and for one vibration element, a vibration waveform is determined based on the vibration element. S904A may be replaced with S904B, and for one vibration element, a target motor corresponding to the vibration element is determined based on a vibration waveform of the vibration element.
For S904A, as shown in fig. 10, comprising:
s1001, judging whether the vibration description includes a direction or not;
if yes, S1002 is executed, and if not, S1003 is executed.
And S1002, dividing the motor set based on the direction in the vibration description.
Here, in the case where the vibration direction includes an X axis and a Z axis, the current motor is divided into an X axis motor or a Z axis motor according to the vibration direction, wherein the X axis motor and the Z axis motor respectively belong to different sets, and a first set corresponding to the direction of the vibration description is determined.
S1003, determining the vibration level of the vibration frequency in the vibration description;
and S1004, grouping the motors based on the vibration levels.
Here, the vibration level, i.e., the vibration sensation, is divided into several sections from a low frequency to a high frequency, and different vibration levels are associated with motors having different resonance frequencies, so that the vibration sensation usable frequency range is made larger based on the vibration level, and the motor operation is made more efficient.
A second set corresponding to vibration levels of vibration frequencies in the vibration descriptions in the sets classified according to the vibration levels is determined.
S1005, judging whether the performance requirement is included in the vibration description.
If yes, S1006 is executed, and if no, S1007 is executed.
The performance requirements comprise parameters such as overtaking time and braking time, wherein the motors are divided into performance requirements of different grades based on different overtaking time and braking time and other parameters representing the intensity and the intensity of vibration change (such as overtaking time and the relationship between braking time and intensity change), and then corresponding performance hardware is matched (such as a high-voltage driving chip with intense vibration sense change or large vibration amount is used or a motor with good service performance is selected to complete faster overtaking operation, for example, a normal-pressure chip can be used or a cheap motor can be used in cooperation for more relaxed vibration), so that the purposes of high and low collocation and cost saving are achieved while the effect is ensured.
And S1006, dividing the motor set based on the performance requirement.
After the motors in the electronic device are subjected to set division according to the performance requirements, a third set to which the performance requirements in the vibration description belong is determined.
And S1007, outputting a decision result.
And the motor in the decision result is the finally selected target motor. Wherein the motors in the first set, the second set and the third set at the same time are taken as target motors.
In the method shown in fig. 10, the sets are divided according to the order of the vibration direction, the vibration frequency, and the performance requirement, in practical applications, the order of the vibration direction, the vibration frequency, and the performance requirement may be other orders, and in addition, the vibration parameters of the divided sets may also be other vibration parameters.
For S904B, as shown in fig. 11, it includes:
s1101, judging whether the motor is related or not according to the vibration waveform.
If so, S1103 is executed, and if not, S1102 is executed. Here, the presence or absence of the adaptive motor is determined based on the correlation between the vibration waveform and the motor.
And S1102, selecting a motor matched with the vibration waveform based on the vibration model.
As shown in fig. 11, S1102 may include any one of the following steps S11021, S11022:
s11021, determining an adaptive motor based on the model parameters of the vibration model.
Here, the model parameters of the vibration model from which the vibration waveform can be obtained are determined, the determined model parameters are compared with the model parameters of the vibration model of each motor, and the motor having the smallest difference between the model parameters and the determined model parameters is determined as the adaptive motor.
And S11022, determining an adaptive motor based on the simulation result of the vibration model to the vibration waveform.
The electronic equipment inputs the vibration waveform into the vibration model of each motor to obtain the vibration data output by each vibration model, namely simulation parameters, and the motor corresponding to the vibration data with the optimal vibration effect is determined as the adaptive motor.
And S1103, outputting a decision result.
And the motor in the decision result is the finally selected target motor. If S1101 is executed, the decision result is the associated motor, and if S1102 is executed, the decision result is the adapted motor.
In the embodiment of the present application, a method for checking and optimizing a target motor is shown in fig. 12, and includes:
s1201, the feasibility of the target motor is checked.
Checking whether the displacement of the vibration model of the target motor under the condition of inputting the vibration element is in a safe range, if not, interfering the vibration parameters of the vibration element, such as: under the condition that the interfered vibration parameter is over displacement, the intensity parameter in the vibration description can be adjusted to be small, or the voltage of a preset driving waveform is adjusted to be small; whether the vibration amount of the motor can satisfy the target vibration amount and is within a safe range, whether the vibration amount of the motor can achieve the minimum vibration amount and is not distorted, and the like are checked.
If the feasibility check is not passed, S1203 is executed.
S1202, checking the availability of the target motor.
Checking the state of the target motor, judging whether the target motor can be normally used, whether the target motor is occupied and the like. Where occupied is when other vibration events are taking place, checking the status of the target motor is to ensure that the motor is not bad and the connection is normal.
If the availability check fails, S1203 is performed.
S1203, optimizing the target motor.
The availability, the feasibility and the decision result parameter condition of the motor are integrated, distribution adjustment is carried out, a final vibration distribution result is given, the motor can vibrate efficiently and synergistically, and vibration experience is enriched. Such as: if the target motor 1 is occupied, checking the remaining motor availability status, and selecting a motor having an available capacity next to the motor 1; and then if the preset waveform exceeds the displacement on the target motor, the chip driving voltage parameter is reduced, so that the chip driving voltage parameter works in a safe range.
For the checking and optimizing method shown in fig. 12, the execution of S1201 and S1202 may not be sequential.
In the related art, since music is often played simultaneously for multiple instruments/voices, a single motor cannot give vibrations containing multiple music elements at a time. If a plurality of music element vibration time distance is very close and the vibration is longer, a plurality of vibrations can have mutual interference to and the no degree of differentiation condition appears, can not reach the original purpose that the design was experienced to the feelings of shaking. Even the latter is deformed by vibration, and the motor is damaged by over-displacement. In addition, a single motor cannot accomplish efficient vibration at the full frequency.
The vibration control method provided by the embodiment of the application can provide the vibration effect which cannot be brought by a single motor, for example, the vibration has more directional sense, different frequencies, vibration strengths and types can be generated at different positions, and the vibration sense design has more possibilities and better experience. And use the motor of different characteristics, carry out the frequency, the collocation of vibration direction helps improving motor vibration efficiency, practices thrift battery power to and provide the experience of more vibration directions. In addition, the motor is protected from rattling and the results are optimized in terms of motor performance.
In order to implement the vibration control method, an embodiment of the present application provides a vibration control apparatus, as shown in fig. 13, an apparatus 1300 includes:
a determining module 1301, configured to detect a vibration event triggering vibration, and determine at least one vibration element included in the vibration event; different vibration elements are used for indicating different vibration effects included in the vibration event;
a selecting module 1302, configured to select, according to each vibration element, a target vibration component adapted to the vibration element from at least two vibration components, to obtain at least one target vibration component;
and the control module 1303 is used for controlling the at least one target vibration component to work.
In some embodiments, the selecting module 1302 is further configured to:
for each vibration element of the at least one vibration element, respectively performing the following:
determining a target vibration characteristic corresponding to the vibration element; selecting a target vibration component from the at least two vibration components, the vibration performance of which is adapted to the target vibration characteristic, based on the target vibration characteristic.
In some embodiments, the selecting module 1302 is further configured to:
acquiring an incidence relation between a vibration component and vibration characteristics;
and selecting a target vibration component corresponding to the target vibration characteristic from the at least two vibration components based on the association relationship.
In some embodiments, the selecting module 1302 is further configured to:
selecting the target vibration component with component parameters matched with the target vibration characteristic from the at least two vibration components according to the target vibration characteristic and the component parameters of each vibration component of the at least two vibration components.
In some embodiments, the selecting module 1302 is further configured to:
determining adaptive component parameters of vibration parameters included in adaptive target vibration description in component parameters of each of the at least two vibration components; wherein the target vibration characteristics include: the target vibration description;
selecting the target vibratory assembly from the at least two vibratory assemblies based on the adapted assembly parameters of each vibratory assembly.
In some embodiments, the selecting module 1302 is further configured to:
determining target component parameters corresponding to a target vibration waveform, wherein the target component parameters are component parameters of a vibration component obtaining the target vibration waveform; wherein the target vibration characteristics include: the target vibration waveform;
comparing the target component parameter to a component parameter of each of the at least two vibrating components;
and determining the vibration component corresponding to the component parameter with the minimum difference with the target component parameter as the target vibration component.
In some embodiments, the selecting module 1302 is further configured to:
inputting a target vibration waveform into a vibration model corresponding to each vibration component of the at least two vibration components to obtain vibration data of each vibration model, wherein the vibration data represent a vibration effect of the target vibration waveform after being input into the corresponding vibration model; wherein the target vibration characteristics include: the component parameters are used for characterizing the vibration model of the corresponding vibration component;
and determining the vibration component corresponding to the vibration data with the optimal vibration effect as the target vibration component.
In some embodiments, apparatus 1300 further comprises: an optimization module to:
for each of the at least one target vibratory assembly, performing the following:
detecting the availability or feasibility of the target vibratory component;
maintaining the target vibratory component unchanged if the availability or feasibility of the target vibratory component passes;
selecting a new target vibratory assembly from the at least two vibratory assemblies in the event that the availability or feasibility of the target vibratory assembly fails.
In some embodiments, the optimization module is further configured to:
acquiring the occupation state of the target vibration assembly;
determining whether the availability of the target vibratory component passes based on the occupancy status; if the occupation state represents that the target vibration component is not occupied, the availability of the target vibration component is passed; and if the occupation state represents that the target vibration assembly is occupied, the usability of the target vibration assembly is not passed.
In some embodiments, the optimization module is further configured to:
inputting the target vibration characteristics corresponding to the target vibration assembly into a target assembly model corresponding to the target vibration assembly to obtain feasibility parameters output by the target assembly model;
comparing the feasibility parameter with a safe operation range corresponding to the feasibility parameter; if the feasibility parameter meets the condition in the corresponding safe operation range, determining that the feasibility of the target vibration component passes; and if the feasibility parameter does not meet the condition outside the corresponding safe operation range, determining that the feasibility of the target vibration component does not pass.
It should be noted that each logic unit included in the vibration control apparatus provided in the embodiment of the present application may be implemented by a processor in an electronic device; of course, the implementation can also be realized through a specific logic circuit; in the implementation process, the Processor may be a Central Processing Unit (CPU), a microprocessor Unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
The above description of the system embodiment, similar to the above description of the method embodiment, has similar beneficial effects as the method embodiment. For technical details not disclosed in the embodiments of the system of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
It should be noted that, in the embodiment of the present application, if the vibration control method is implemented in the form of a software functional module and sold or used as a standalone product, the vibration control method may also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof contributing to the related art may be embodied in the form of a software product stored in a storage medium, and including several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
The embodiment of the present application further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, the steps in the vibration control method implemented above are implemented.
Accordingly, embodiments of the present application provide a storage medium, that is, a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the vibration control method provided in the above embodiments.
Here, it should be noted that: the above description of the storage medium embodiments, similar to the above description of the method embodiments, has similar beneficial effects as the method embodiments. For technical details not disclosed in the embodiments of the storage medium of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
It should be noted that fig. 14 is a schematic diagram of a hardware entity of an electronic device according to an embodiment of the present application, and as shown in fig. 14, the electronic device 1400 includes: a processor 1401, at least one communication bus 1402, at least one external communication interface 1404, and a memory 1405. Wherein the communication bus 1402 is configured to enable connective communication between these components. In an example, the electronic device 1400 further includes: a user interface 1403, wherein the user interface 1403 may comprise a display screen and the external communication interface 1404 may comprise a standard wired interface and a wireless interface. The electronic equipment that this application embodiment provided still includes two at least vibration subassemblies, and the vibration subassembly can produce the vibration based on the vibration event.
The Memory 1405 is configured to store instructions and applications executable by the processor 1401, and may also cache data (e.g., image data, audio data, and communication data) to be processed or already processed by the processor 1401 and modules in the electronic device, and may be implemented by a FLASH Memory (FLASH) or a Random Access Memory (RAM).
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in some embodiments" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not imply any order of execution, and the order of execution of the processes should be determined by their functions and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are merely for description, and do not represent the advantages and disadvantages of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one of 8230, and" comprising 8230does not exclude the presence of additional like elements in a process, method, article, or apparatus comprising the element.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated units described above in the present application may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present application or portions thereof that contribute to the related art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media that can store program code, such as removable storage devices, ROMs, magnetic or optical disks, etc.
The above description is only for the embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (13)

1. A vibration control method, characterized in that the method comprises:
detecting a vibration event triggering vibration, and determining at least one vibration element included in the vibration event, wherein the vibration element is an element capable of triggering vibration included in the vibration event, and different vibration elements are used for indicating different vibration effects included in the vibration event;
respectively selecting a target vibration component matched with the vibration element from at least two vibration components according to each vibration element to obtain at least one target vibration component;
controlling the at least one target vibration component to work;
wherein different vibration elements correspond to different target vibration assemblies for generating vibration effects of the corresponding vibration elements.
2. The method of claim 1, wherein selecting a target vibration component adapted to the vibration element from at least two vibration components according to each vibration element to obtain at least one target vibration component comprises:
for each vibration element of the at least one vibration element, respectively performing the following:
determining a target vibration characteristic corresponding to the vibration element;
selecting a target vibration component from the at least two vibration components, the vibration performance of which is adapted to the target vibration characteristic, based on the target vibration characteristic.
3. The method of claim 2, wherein selecting a target vibration component from the at least two vibration components having a vibration performance that is adapted to the target vibration characteristic based on the target vibration characteristic comprises:
acquiring an incidence relation between a vibration component and vibration characteristics;
and selecting a target vibration component corresponding to the target vibration characteristic from the at least two vibration components based on the association relationship.
4. The method of claim 2, wherein selecting a target vibration component from the at least two vibration components having a vibration performance that is adapted to the target vibration characteristic based on the target vibration characteristic comprises:
selecting the target vibration component with component parameters matched with the target vibration characteristic from the at least two vibration components according to the target vibration characteristic and the component parameters of each vibration component of the at least two vibration components.
5. The method of claim 4, wherein the target vibration characteristic comprises: a target vibration description corresponding to the vibration element; the selecting, from the at least two vibration assemblies, the target vibration assembly having assembly parameters adapted to the target vibration characteristics according to the target vibration characteristics and assembly parameters of each of the at least two vibration assemblies, includes:
determining adaptive component parameters which are used for adapting the vibration parameters included in the target vibration description in the component parameters of each of the at least two vibration components;
selecting the target vibratory assembly from the at least two vibratory assemblies based on the adapted assembly parameters of each vibratory assembly.
6. The method of claim 4, wherein the target vibration signature comprises: a target vibration waveform corresponding to the vibration element; the selecting, according to the target vibration characteristic and the component parameters of each of the at least two vibration components, the target vibration component having component parameters adapted to the target vibration characteristic from the at least two vibration components includes:
determining target component parameters corresponding to the target vibration waveform, wherein the target component parameters are component parameters of a vibration component obtaining the target vibration waveform;
comparing the target component parameter to a component parameter of each of the at least two vibrating components;
and determining the vibration component corresponding to the component parameter with the minimum difference with the target component parameter as the target vibration component.
7. The method of claim 4, wherein the target vibration characteristic comprises: the component parameters are used for representing a vibration model of the corresponding vibration component; selecting the target vibration component with component parameters adapted to the target vibration characteristic from the at least two vibration components according to the target vibration characteristic and the component parameters of each of the at least two vibration components, including:
inputting the target vibration waveform into a vibration model corresponding to each vibration component of the at least two vibration components to obtain vibration data of each vibration model, wherein the vibration data represent the vibration effect of the target vibration waveform after being input into the corresponding vibration model;
and determining the vibration component corresponding to the vibration data with the optimal vibration effect as the target vibration component.
8. The method according to any one of claims 1 to 7, further comprising:
for each of the at least one target vibratory assembly, performing the following:
detecting the availability or feasibility of the target vibratory component;
maintaining the target vibratory component unchanged if the availability or feasibility of the target vibratory component passes;
selecting a new target vibratory assembly from the at least two vibratory assemblies in the event the availability or feasibility of the target vibratory assembly fails.
9. The method of claim 8, wherein the detecting the availability of the target vibratory assembly comprises:
acquiring the occupation state of the target vibration assembly;
determining whether the availability of the target vibratory component passes based on the occupancy status; if the occupation state represents that the target vibration component is not occupied, the availability of the target vibration component is passed; and if the occupation state represents that the target vibration assembly is occupied, the usability of the target vibration assembly is not passed.
10. The method of claim 9, wherein said detecting viability of said target vibratory assembly comprises:
inputting the target vibration characteristics corresponding to the target vibration assembly into a target assembly model corresponding to the target vibration assembly to obtain feasibility parameters output by the target assembly model;
comparing the feasibility parameters with the safe operation ranges corresponding to the feasibility parameters; if the feasibility parameter meets the condition in the corresponding safe operation range, determining that the feasibility of the target vibration component passes; and if the feasibility parameter does not meet the condition outside the corresponding safe operation range, determining that the feasibility of the target vibration component does not pass.
11. A vibration control apparatus, the apparatus comprising:
the determination module is configured to detect a vibration event triggering vibration, and determine at least one vibration element included in the vibration event, where the vibration element is an element that can trigger vibration and is included in the vibration event, and different vibration elements are used to indicate different vibration effects included in the vibration event;
the selection module is used for selecting a target vibration assembly matched with the vibration elements from at least two vibration assemblies according to the vibration elements to obtain at least one target vibration assembly;
the control module is used for controlling the at least one target vibration component to work;
wherein, different vibration elements correspond different target vibration assemblies, the target vibration assembly is used for producing the vibration effect of the corresponding vibration element.
12. An electronic device, comprising a memory, a processor, at least two vibration components, and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the vibration control method according to any one of claims 1 to 10 when executing the computer program.
13. A storage medium storing an executable program, wherein the executable program, when executed by a processor, implements the vibration control method of any one of claims 1 to 10.
CN202210794199.4A 2022-07-07 2022-07-07 Vibration control method, device, equipment and storage medium Active CN114860085B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210794199.4A CN114860085B (en) 2022-07-07 2022-07-07 Vibration control method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210794199.4A CN114860085B (en) 2022-07-07 2022-07-07 Vibration control method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114860085A CN114860085A (en) 2022-08-05
CN114860085B true CN114860085B (en) 2022-11-04

Family

ID=82626548

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210794199.4A Active CN114860085B (en) 2022-07-07 2022-07-07 Vibration control method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114860085B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115357124B (en) * 2022-09-20 2023-09-05 武汉市聚芯微电子有限责任公司 Vibration control method, device, equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005086339A1 (en) * 2004-03-05 2005-09-15 Vive Lab Co., Ltd. Method for producing a library of multi-channel vibration types, and multi-channel vibration control device
CN103869949A (en) * 2012-12-14 2014-06-18 联想(北京)有限公司 Method for controlling vibration and electronic device
CN105549777A (en) * 2015-12-04 2016-05-04 联想(北京)有限公司 Electronic equipment and control method
CN106681486A (en) * 2015-11-11 2017-05-17 中兴通讯股份有限公司 Terminal vibration control method and device and terminal
CN108258977A (en) * 2018-01-11 2018-07-06 上海展扬通信技术有限公司 Motor vibrations control method, mobile terminal and computer readable storage medium
CN109901703A (en) * 2017-12-11 2019-06-18 北京小米移动软件有限公司 The method for oscillating and storage medium of a kind of terminal, terminal
CN110489845A (en) * 2019-08-09 2019-11-22 瑞声科技(新加坡)有限公司 Motor vibrations model building method, sense of touch implementation method and its device
CN111885257A (en) * 2020-07-21 2020-11-03 联想(北京)有限公司 Control method and device and electronic equipment
CN113763652A (en) * 2020-05-18 2021-12-07 北京小米移动软件有限公司 Mobile terminal, charging prompting method, charging prompting device and storage medium
CN113852719A (en) * 2021-09-28 2021-12-28 瑞声开泰声学科技(上海)有限公司 Method for determining relation of vibration effects of multiple motors and related equipment
CN114500729A (en) * 2022-02-14 2022-05-13 Tcl通讯科技(成都)有限公司 Vibration control method, device, terminal and computer readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6090163B2 (en) * 2011-07-06 2017-03-08 日本電気株式会社 Notification device, notification method, and program
WO2020258225A1 (en) * 2019-06-28 2020-12-30 瑞声声学科技(深圳)有限公司 Gamepad and gamepad vibration method and apparatus
CN112269895A (en) * 2020-11-06 2021-01-26 Oppo广东移动通信有限公司 Vibration control method and device and computer readable storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005086339A1 (en) * 2004-03-05 2005-09-15 Vive Lab Co., Ltd. Method for producing a library of multi-channel vibration types, and multi-channel vibration control device
CN103869949A (en) * 2012-12-14 2014-06-18 联想(北京)有限公司 Method for controlling vibration and electronic device
CN106681486A (en) * 2015-11-11 2017-05-17 中兴通讯股份有限公司 Terminal vibration control method and device and terminal
WO2017080506A1 (en) * 2015-11-11 2017-05-18 中兴通讯股份有限公司 Terminal vibration control method, device and terminal
CN105549777A (en) * 2015-12-04 2016-05-04 联想(北京)有限公司 Electronic equipment and control method
CN109901703A (en) * 2017-12-11 2019-06-18 北京小米移动软件有限公司 The method for oscillating and storage medium of a kind of terminal, terminal
CN108258977A (en) * 2018-01-11 2018-07-06 上海展扬通信技术有限公司 Motor vibrations control method, mobile terminal and computer readable storage medium
CN110489845A (en) * 2019-08-09 2019-11-22 瑞声科技(新加坡)有限公司 Motor vibrations model building method, sense of touch implementation method and its device
CN113763652A (en) * 2020-05-18 2021-12-07 北京小米移动软件有限公司 Mobile terminal, charging prompting method, charging prompting device and storage medium
CN111885257A (en) * 2020-07-21 2020-11-03 联想(北京)有限公司 Control method and device and electronic equipment
CN113852719A (en) * 2021-09-28 2021-12-28 瑞声开泰声学科技(上海)有限公司 Method for determining relation of vibration effects of multiple motors and related equipment
CN114500729A (en) * 2022-02-14 2022-05-13 Tcl通讯科技(成都)有限公司 Vibration control method, device, terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN114860085A (en) 2022-08-05

Similar Documents

Publication Publication Date Title
US7979146B2 (en) System and method for automatically producing haptic events from a digital audio signal
US8378964B2 (en) System and method for automatically producing haptic events from a digital audio signal
US9905090B2 (en) Automatic fitting of haptic effects
US9330546B2 (en) System and method for automatically producing haptic events from a digital audio file
EP1909201A2 (en) Information processing apparatus and method, program and recording medium
CN114860085B (en) Vibration control method, device, equipment and storage medium
US8812503B2 (en) Information processing device, method and program
CN105706161B (en) Automated audio based on pitch distributions is coordinated
Kiktova-Vozarikova et al. Feature selection for acoustic events detection
JP2007164545A (en) Preference profile generator, preference profile generation method, and profile generation program
CN103400593A (en) Audio-auditioning method and device
CN104615749A (en) Ring tone recommendation method and ring tone recommendation device
CN111428078A (en) Audio fingerprint coding method and device, computer equipment and storage medium
CN110178177B (en) System and method for score reduction
CN113035163A (en) Automatic generation method and device of musical composition, storage medium and electronic equipment
JP2006251935A (en) Document retrieval device, document retrieval method and document retrieval program
CN108319444B (en) Music drumbeat-based control terminal vibration method, storage device and computer device
CN111460215A (en) Audio data processing method and device, computer equipment and storage medium
CN103514182A (en) Music searching method and device
Tjahyanto et al. Fft-based features selection for javanese music note and instrument identification using support vector machines
CN113408702A (en) Music neural network model pre-training method, electronic device and storage medium
US20210150215A1 (en) Intelligent performance rating
US20220245193A1 (en) Music streaming, playlist creation and streaming architecture
CN115966219A (en) Music information generation method and device and computer readable storage medium
Kaminiarz et al. Mpeg-7 audio spectrum basis as a signature of violin sound

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant