CN117762532A - Vibration control method, device, equipment and computer readable storage medium - Google Patents

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

Info

Publication number
CN117762532A
CN117762532A CN202310030099.9A CN202310030099A CN117762532A CN 117762532 A CN117762532 A CN 117762532A CN 202310030099 A CN202310030099 A CN 202310030099A CN 117762532 A CN117762532 A CN 117762532A
Authority
CN
China
Prior art keywords
vibration
block
storage space
reference point
parameter
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.)
Pending
Application number
CN202310030099.9A
Other languages
Chinese (zh)
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202310030099.9A priority Critical patent/CN117762532A/en
Publication of CN117762532A publication Critical patent/CN117762532A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/116Details of conversion of file system types or formats
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database
    • 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

Abstract

The embodiment of the application discloses a vibration control method, a vibration control device, vibration control equipment and a computer-readable storage medium. The method comprises the following steps: in response to the parameter generation condition of the target vibration being triggered, the vibration calling party generates a vibration calling parameter corresponding to the target vibration according to a reference coding mode, the vibration calling party is provided with a vibration middleware, the vibration calling parameter is transmitted to the vibration middleware through a vibration parameter interface, the vibration calling parameter is transmitted to one or more vibration outputting parties through the vibration middleware, and each vibration outputting party analyzes the vibration calling parameter and outputs the target vibration based on the analysis result. Therefore, the vibration calling party (such as a client) sends the vibration calling parameters to the vibration output party through the vibration middleware, so that the vibration calling interface of the vibration calling party can be unified, and the convenience of vibration calling is improved.

Description

Vibration control method, device, equipment and computer readable storage medium
Technical Field
The present application relates to the field of computer technology, and in particular, to a vibration control method, a vibration control device, a computer device, and a computer readable storage medium.
Background
With the progress of scientific research, various terminal devices (such as mobile phones, tablet computers, etc.) have been integrated into the lives of people. Vibration invokers (e.g., clients) in these terminal devices typically output vibrations during use based on usage scenarios; for example, when social application software in the terminal device acquires a new message, vibration is output through the terminal device; for another example, the game software in the terminal device may output vibrations through the terminal device simultaneously when displaying the target image. Researches show that the calling modes of the vibration of the terminal equipment produced by different manufacturers are different, and the convenience is poor.
Disclosure of Invention
The embodiment of the application provides a vibration control method, a vibration control device, vibration control equipment and a computer readable storage medium, which can improve convenience of vibration calling.
In one aspect, an embodiment of the present application provides a vibration control method, including:
responding to the triggering of the parameter generation condition of the target vibration, generating a vibration calling parameter corresponding to the target vibration by a vibration calling party according to a reference coding mode, wherein the vibration calling party is provided with a vibration middleware;
transmitting the vibration calling parameters to the vibration middleware through the vibration parameter interface, transmitting the vibration calling parameters to one or more vibration exporters through the vibration middleware, enabling each vibration exporter to analyze the vibration calling parameters, and outputting target vibration based on analysis results.
In one aspect, an embodiment of the present application provides a vibration control device, including:
the processing unit is used for responding to the triggering of the parameter generation condition of the target vibration, the vibration calling party generates the vibration calling parameter corresponding to the target vibration according to the reference coding mode, and the vibration calling party is provided with the vibration middleware;
and the sending unit is used for transmitting the vibration calling parameters to the vibration middleware through the vibration parameter interface so as to send the vibration calling parameters to one or more vibration output parties through the vibration middleware, enabling each vibration output party to analyze the vibration calling parameters and outputting target vibration based on analysis results.
In one embodiment, if the file format of the vibration calling parameter does not belong to the target format, the processing unit is further configured to:
the format conversion processing is carried out on the vibration calling parameters through the vibration middleware, so that updated vibration calling parameters are obtained;
the file format of the updated vibration calling parameter belongs to the target format.
In one embodiment, the processing unit is configured to perform format conversion processing on the vibration calling parameter through the vibration middleware to obtain an updated vibration calling parameter, and is specifically configured to:
Converting the vibration calling parameters through the vibration middleware according to the parameter conversion rules corresponding to the target format; and;
and constructing a parameter conversion result through the vibration middleware according to a data organization form corresponding to the target format, and obtaining updated vibration calling parameters.
In one embodiment, the target format includes at least one of a first format and a second format, the second format being a compressed representation of the first format.
In one embodiment, the file format of the vibration invoking parameter belongs to the first format, the vibration invoking parameter includes a metadata key pair and a mode key pair, the metadata key pair being used to indicate metadata in the vibration invoking parameter; the mode key value pair is used to indicate a vibration mode.
In one embodiment, the values of the metadata key-value pairs are used to indicate a digest object that includes at least one of the following key-value pairs: version key value pair, creation time key value pair, description information key value pair;
the version key value pair is used for indicating the version number corresponding to the vibration calling parameter; the creation time key value pair is used for indicating the creation time of the vibration calling parameter; the description information key pair is used for describing the vibration effect of the vibration calling parameter.
In one embodiment, the value of the mode key value pair is at least one array element, and the value of each array element is an event object; the target event object includes at least one key value pair of: vibration part key value pairs, vibration time key value pairs, duration key value pairs, intensity sign key value pairs, frequency sign key value pairs; the target event object is a value of a target array element, and the target array element is any one of at least one array element;
wherein, the key value pair of the vibration part is used for indicating the motor called when outputting the vibration indicated by the target event object; the vibration time key value pair is used for indicating the starting time of the vibration indicated by the target event object; duration key value pair is used for indicating duration of vibration indicated by target event object; intensity indication means for indicating vibration indicated by the target event object by the intensity flag key value pair; the frequency flag key value indicates the frequency indication manner of the vibration indicated by the target event object.
In one embodiment, the target event object includes an intensity flag key value pair and a frequency flag key value pair, and the target event object further includes a vibration type key value pair and a vibration description parameter key value pair; the vibration type key value pair is used for indicating the type of vibration indicated by the target event object, and the vibration description parameter key value pair is used for indicating the output mode of the vibration indicated by the target event object;
When the vibration type indicated by the vibration type key value pair is the first type, the target event object indicates target vibration through at least one reference point, and the value of the vibration description parameter key value pair comprises a reference point number key value pair and N reference point group elements, and the value of each reference point group element is one reference point object; the reference point number key value pair is used for indicating the number of reference points associated with the target event object, and N is matched with the number of reference points associated with the target event object; the target reference point object is used for indicating a vibration output parameter associated with a target reference point, the target reference point object is a value of a target reference point group element, and the target reference point group element is any one of N reference point group elements;
when the vibration type indicated by the vibration type key value pair is the second type, the values of the vibration description parameter key value pair include a vibration intensity key value pair and a vibration frequency key value pair; the vibration intensity key value pair indicates the intensity of vibration indicated by the target event object, and the vibration frequency key value pair indicates the frequency of vibration indicated by the target event object.
In one embodiment, the target reference point object includes at least one key value pair of: a reference point time key value pair, a reference point intensity key value pair, a reference point frequency key value pair, and a reference point motor key value pair;
Wherein the reference point time key value pair is used for indicating the relative time of the target reference point in the vibration indicated by the target event object; the reference point intensity key value pair is used for indicating the vibration intensity corresponding to the target reference point; the reference point frequency key value pair is used for indicating the vibration frequency corresponding to the target reference point; the reference point motor key value pair is used for indicating a motor corresponding to the reference point, and the priority of the reference point motor key value pair is higher than that of the vibration part key value pair.
In one embodiment, the file format of the vibration invocation parameters belongs to the second format, the vibration invocation parameters including at least one block of: a head information block, a motor information block, a metadata block, a vibration timing block, a vibration event block, a reference point block and a vibration parameter block;
wherein the header information block is used for describing vibration calling parameters; the motor information block is used for indicating the called motor; the metadata block is used for indicating the abstract of the vibration calling parameter; the vibration timing block is used for indicating the sequence of at least one vibration event; the vibration event block is used for indicating the associated parameters of the vibration event; the reference point block is used for indicating vibration output parameters associated with the reference point; the vibration parameter block is used for indicating descriptive information corresponding to different vibration types; the storage areas corresponding to the blocks are different, each storage area comprises one or more storage spaces, and each storage space corresponds to a preset offset address.
In one embodiment, the header information block carries values in at least one of the following storage spaces: values in the file identity storage space, values in the file data length storage space;
the value in the file identification storage space is used for indicating the file identification of the vibration calling parameter; the value in the file data length storage space is used to indicate the file data length of the vibration invocation parameter.
In one embodiment, the motor information block carries values in at least one of the following memory spaces: a value in a motor information block identification storage space, a value in a motor information block data length storage space, a value in a vibration output side identification storage space, a value in a motor version number storage space, a value in a motor number storage space;
wherein the value in the motor information block identification storage space is used to indicate the identification of the motor information block; the value in the motor information block data length storage space is used to indicate the data length of the motor information block; the value in the vibration output party identification storage space is used for indicating the identification of the vibration output party; the value in the motor version number storage space is used for indicating whether the output target vibration needs to call a plurality of motors or not; the value in the motor number storage space is used to indicate the number of motors that the output target vibration is a desired call.
In one embodiment, the metadata block carries values in at least one of the following storage spaces: the metadata block identifies values in a storage space, values in a storage space of a metadata block data length, values in a vibration calling parameter version number storage space, values in a vibration calling parameter creation time storage space, values in a vibration calling parameter description information storage space;
wherein the value in the metadata block identification storage space is used to indicate the identification of the metadata block; the value in the storage space of the metadata block data length is used to indicate the data length of the metadata block; the value in the vibration calling parameter version number storage space is used for indicating the version number of the vibration calling parameter; the value in the vibration calling parameter creation time storage space is used for indicating the creation time of the vibration calling parameter; the values in the vibration call parameter description information storage space are used to indicate the description information of the vibration call parameter.
In one embodiment, the vibration timing block carries values in at least one of the following memory spaces: the vibration timing block identifies values in the memory space, and the vibration timing block data length stores values in the memory space;
wherein the value in the vibration timing block identification storage space is used to indicate the identification of the vibration timing block; the value in the vibration timing block data length storage space is used to indicate the data length of the vibration timing block.
In one embodiment, the vibration timing block is associated with at least one vibration event block, each vibration event block having a different corresponding storage area; each vibration event block carries values in at least one of the following memory spaces: the vibration event block identification storage space, the vibration event type storage space, the vibration event block number storage space, the motor identification storage space, the vibration event start time storage space, the vibration event duration storage space, the vibration intensity flag storage space, and the vibration frequency flag storage space;
wherein the value in the vibration event block identification storage space is used to indicate the identification of the vibration event block; the value in the vibration event type storage space is used for indicating the vibration type of the vibration corresponding to the vibration event block; the value in the vibration event block number storage space is used to indicate the number of the vibration event block; the value in the motor identification storage space is used for indicating a motor which is required to be called for outputting the vibration corresponding to the vibration event block; the value in the vibration event start time storage space is used for indicating the start time of vibration corresponding to the vibration event block; the value in the vibration event duration storage space is used for indicating the duration of vibration corresponding to the vibration event block; the value in the vibration intensity sign storage space is used for indicating a vibration intensity indication mode of vibration corresponding to the vibration event block; the value in the vibration frequency flag storage space is used to indicate the vibration frequency indication mode of the vibration corresponding to the vibration event block.
In one embodiment, when the vibration type of the vibration corresponding to the vibration event block is the first type, the vibration event block is associated with at least one reference point block, each reference point block corresponding to a different storage area, each reference point block carrying a value in at least one of the following storage spaces: the reference point block identification storage space, the reference point block sequence number storage space, the motor sequence number storage space, the reference point start time storage space, the reference point vibration intensity storage space and the reference point vibration frequency storage space;
wherein the value in the reference point block identity storage space is used to indicate the identity of the reference point block; the value in the reference point block sequence number storage space is used for indicating the sequence number of the reference point block; the value in the motor number storage space is used for indicating a motor which is required to be called for outputting vibration corresponding to the reference point block; the value in the reference point start time storage space is used for indicating the start time of vibration corresponding to the reference point block; the value in the reference point vibration intensity storage space is used for indicating the vibration intensity of the vibration corresponding to the reference point block; the value in the reference point vibration frequency storage space is used to indicate the vibration frequency of the vibration corresponding to the reference point block.
In one embodiment, the vibration event block is further associated with a first vibration parameter block carrying values in at least one of the following memory spaces: the vibration parameter block identifies values in the memory space, and references values in the number of points memory space;
wherein the value in the vibration parameter block identification storage space is used to indicate the identification of the first vibration parameter block; the value in the reference point number storage space is used to indicate the number of reference point blocks associated with the vibration event block.
In one embodiment, when the vibration type of the vibration event corresponding to the vibration event block is the second type, the vibration event block is associated with a second vibration parameter block; the second vibration parameter block carries values in at least one of the following memory spaces: the vibration parameter block identifies values in a memory space, values in an event vibration intensity memory space, values in an event vibration frequency memory space;
wherein the value in the vibration parameter block identification storage space is used to indicate the identification of the second vibration parameter block; the value in the event vibration intensity storage space is used for indicating the vibration intensity of the vibration corresponding to the vibration event block; the value in the event vibration frequency storage space is used to indicate the vibration frequency of the vibration to which the vibration event block corresponds.
Accordingly, the present application provides a computer device comprising:
a memory in which a computer program is stored;
and the processor is used for loading a computer program to realize the vibration control method.
Accordingly, the present application provides a computer readable storage medium storing a computer program adapted to be loaded by a processor and to perform the above-described vibration control method.
Accordingly, the present application provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions so that the computer device performs the vibration control method described above.
In the embodiment of the application, in response to triggering of a parameter generation condition of target vibration, a vibration calling party generates a vibration calling parameter corresponding to the target vibration according to a reference coding mode, the vibration calling party is provided with a vibration middleware, the vibration calling parameter is transmitted to the vibration middleware through a vibration parameter interface, the vibration calling parameter is transmitted to one or more vibration exporters through the vibration middleware, and each vibration exporter analyzes the vibration calling parameter and outputs the target vibration based on an analysis result. Therefore, the vibration calling party (such as a client) sends the vibration calling parameters to the vibration output party through the vibration middleware, so that the vibration calling interface of the vibration calling party can be unified, and the convenience of vibration calling is improved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a block diagram of a vibration control system according to an embodiment of the present disclosure;
FIG. 2 is a flow chart of a vibration control method according to an embodiment of the present disclosure;
FIG. 3 is a flow chart of another vibration control method according to an embodiment of the present application;
fig. 4 is a schematic sending diagram of a vibration calling parameter according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a vibration control device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
Referring to fig. 1, fig. 1 is a schematic diagram of a vibration control system according to an embodiment of the present application. As shown in fig. 1, the vibration control system may include: a vibration caller 101 and a vibration exporter 102. The vibration control method provided by the embodiment of the present application may be executed by the vibration caller 101. In a specific implementation, the vibration caller 101 and the vibration outputter 102 may belong to one terminal device at the same time, or may belong to two different terminal devices respectively; for example, the vibration caller 101 may be a client in a terminal device, and the vibration outputter 102 may be a motor in the terminal device; for another example, the vibration caller 101 may be a client in the terminal device 1 (e.g., a computer), and the vibration outputter may be a motor in the terminal device 2 (e.g., a game pad, a wearable device, etc.). The terminal device may include, but is not limited to: smart phones (such as Android phones, IOS phones, etc.), tablet computers, portable personal computers, smart home appliances, vehicle terminals, wearable smart devices, etc., which are not limited in this embodiment of the present application.
It should be noted that the number of vibration output parties may be one or more, and when the number of vibration output parties is plural, the vibration calling interfaces of each vibration output party may be different from each other; for example, one computer (vibration caller) may be connected to a plurality of handles (vibration exporter). The vibration caller 101 and the vibration outputter 102 may be directly or indirectly connected through wired communication or wireless communication, which is not limited herein.
The general principle of the vibration control scheme is as follows:
(1) In response to the parameter generation condition of the target vibration being triggered, the vibration invoker 101 generates a vibration invoker parameter corresponding to the target vibration in accordance with the reference encoding scheme. Wherein the vibration calling party 101 is mounted with a vibration middleware for transmitting the vibration calling parameters transmitted by the vibration calling party 101 to one or more vibration outputting parties.
The reference coding scheme may specifically refer to a coding scheme of a vibration HE format, a coding scheme of a vibration HEC format, or other coding schemes for indicating a vibration effect. The file in the vibration HE format carries vibration calling parameters, the suffix of the file is 'HE', and a vibration output party can output a corresponding vibration effect according to the indication of the vibration calling parameters in the file in the vibration HE format; the vibration HEC format is a compressed representation of the vibration HE format; that is, the file in the vibration HEC format is obtained by compressing the file in the vibration HEC format, and the file in the vibration HEC format also carries the vibration calling parameter, and the suffix of the file is ". HEC", so that the vibration output party can output the corresponding vibration effect according to the instruction of the vibration calling parameter in the file in the vibration HEC format.
In one embodiment, the file in the vibration HE format is in the form of key value pairs to indicate the effect of vibration, and the data organization form of the file in the vibration HE format may be in json format. The file in the vibration HEC format indicates the vibration effect by presetting the meaning of the value in the storage space indicated by each specific offset address in one storage area. That is, the vibrating middleware and the terminal device commonly know the meaning of the value in the storage space indicated by each specific offset address in a certain piece of storage area, in which case only the value (value) of each key value pair in the file in the ". Hec" format is stored in the file in the ". He" format, without storing the corresponding key (key) thereof.
It can be understood that the vibration effect is indicated by the file in the ". He" format, and the transmitted information is more complete and clear and has higher readability without depending on a specific storage area; compared with the method that the file in the format of ". Hec" is used for indicating the vibration effect, the method has the advantages that the transmission bandwidth is saved, the transmission speed is improved, and meanwhile, the storage space is saved.
(2) The vibration calling party 101 transmits the vibration calling parameters to the vibration middleware through the vibration parameter interface; the vibration parameter interface for transmitting the vibration calling parameters to the vibration middleware is the same for different vibration calling parties.
In one embodiment, if the file format of the vibration calling parameter transmitted by the vibration calling party 101 does not belong to the target format, the vibration middleware performs format conversion processing on the vibration calling parameter to obtain an updated vibration calling parameter, and sends the updated vibration calling parameter to one or more vibration output parties. The updated vibration calling parameter belongs to a target format, and the target format can be at least one of an 'he' format and an 'hec' format.
In another embodiment, if the file format of the vibration invocation parameters transferred by the vibration invoker 101 belongs to the target format, the vibration middleware may directly send the vibration invocation parameters to one or more vibration exporters. Specifically, the vibration middleware transmits the vibration calling parameters belonging to the target format to interfaces for supporting the target format file provided by the respective vibration exporters.
(3) After receiving the vibration calling parameters belonging to the target format, the vibration output party 102 may analyze the vibration calling parameters and output the target vibration based on the analysis result. It will be appreciated that each vibration output party needs to support (be able to parse) at least one of the "he" format and the "hec" format.
In the embodiment of the application, in response to triggering of a parameter generation condition of target vibration, a vibration calling party generates a vibration calling parameter corresponding to the target vibration according to a reference coding mode, the vibration calling party is provided with a vibration middleware, the vibration calling parameter is transmitted to the vibration middleware through a vibration parameter interface, the vibration calling parameter is transmitted to one or more vibration exporters through the vibration middleware, and each vibration exporter analyzes the vibration calling parameter and outputs the target vibration based on an analysis result. Therefore, the vibration calling party (such as a client) sends the vibration calling parameters to the vibration output party through the vibration middleware, so that the vibration calling interface of the vibration calling party can be unified, and the convenience of vibration calling is improved. In addition, the format conversion can be carried out on the vibration calling parameters through the vibration middleware, so that the compatibility of the vibration calling parameters and the convenience of vibration calling are further improved.
Based on the above vibration control scheme, a more detailed vibration control method is provided in the embodiments of the present application, and the vibration control method provided in the embodiments of the present application will be described in detail with reference to the accompanying drawings.
Referring to fig. 2, fig. 2 is a flowchart of a vibration control method according to an embodiment of the present application, where the vibration control method may be performed by a computer device, and the computer device may be the terminal device shown in fig. 1. As shown in fig. 2, the vibration control method may include the following steps S201 to S202.
S201, responding to the triggering of the parameter generation condition of the target vibration, and generating a vibration calling parameter corresponding to the target vibration by a vibration calling party according to a reference coding mode.
The parameter generating conditions of the target vibration may be set according to actual requirements, which are not limited in this application. For example, the parameter generating condition of the target vibration may be that the social application software in the computer device obtains a new message, the parameter generating condition of the target vibration may also be that a target event in the game software in the computer device is triggered, the parameter generating condition of the target vibration may also be that the computer device detects that the current time matches a preset time, and the like.
The vibration caller can refer to a computer device or a client loaded in the computer device; for example, in the scenario where the computer device is connected to a wearable device, the computer device may be a vibration caller and the wearable device may be a vibration exporter; for another example, in a scenario where the computer device is loaded with a motor, the client in the computer device may be the vibration caller and the motor in the computer device may be the vibration exporter.
The reference coding scheme may specifically refer to a coding scheme of a vibration HE format, a coding scheme of a vibration HEC format, or other coding schemes for indicating a vibration effect. The file is in a vibration HE format, the file carries vibration calling parameters, the suffix of the file is 'HE', and a vibration output party can output a corresponding vibration effect according to the indication of the vibration calling parameters in the file in the vibration HE format; the vibration HEC format is a compressed representation of the vibration HE format; that is, the file in the vibration HEC format is obtained by compressing the file in the vibration HEC format, and the file in the vibration HEC format also carries the vibration calling parameter, and the suffix of the file is ". HEC", so that the vibration output party can output the corresponding vibration effect according to the instruction of the vibration calling parameter in the file in the vibration HEC format.
In one embodiment, the file in the vibration HE format is in the form of key value pairs to indicate the effect of the vibration, and the data organization of the file in the vibration HE format may be in a lightweight data exchange format (e.g., json format). The file in the vibration HEC format indicates the vibration effect by presetting the meaning of the value in the storage space indicated by each specific offset address in one storage area. That is, the vibrating middleware and the terminal device commonly know the meaning of the value in the storage space indicated by each specific offset address in a certain piece of storage area, in which case only the value (value) of each key value pair in the file in the ". Hec" format is stored in the file in the ". He" format, without storing the corresponding key (key) thereof.
It can be understood that the vibration effect is indicated by the file in the ". He" format, and the transmitted information is more complete and clear and has higher readability without depending on a specific storage area; compared with the method that the file in the format of ". Hec" is used for indicating the vibration effect, the method has the advantages that the transmission bandwidth is saved, the transmission speed is improved, and meanwhile, the storage space is saved.
The vibration calling parameter is used for indicating a vibration output party to output target vibration according to the indicated vibration effect. The vibration calling party is provided with a vibration middleware, and the vibration middleware is used for sending the vibration calling parameters transmitted by the vibration calling party to one or more vibration output parties.
Alternatively, the vibration caller and the vibration middleware may be independent of each other; for example, the vibration caller may be any one of the clients in the computer device and the vibration middleware is a software development kit (Software Development Kit, SDK) integrated in the computer device. That is, different clients in the computer device may each send vibration invocation parameters to one or more vibration exporters through the vibration middleware in the computer device.
S202, transmitting the vibration calling parameters to the vibration middleware through the vibration parameter interface so as to send the vibration calling parameters to one or more vibration exporters through the vibration middleware.
The vibration parameter interface for delivering the vibration invocation parameters to the vibration middleware is the same for different vibration invokers (i.e., the vibration parameter interface is uniform).
In one embodiment, if the file format of the vibration calling parameter transmitted by the vibration calling party does not belong to the target format, the vibration middleware performs format conversion processing on the vibration calling parameter to obtain an updated vibration calling parameter, and sends the updated vibration calling parameter to one or more vibration output parties. The updated vibration calling parameter belongs to a target format, and the target format can be at least one of an 'he' format and an 'hec' format.
In another embodiment, if the file format of the vibration invocation parameters transferred by the vibration invoker belongs to the target format, the vibration middleware may directly send the vibration invocation parameters to one or more vibration exporters. Specifically, the vibration middleware sends the vibration calling parameters belonging to the target format to interfaces provided by the respective vibration exporters for supporting the target format file, and the interfaces provided by the respective vibration exporters for supporting the target format file may be the same or different.
Further, the vibration output party may analyze the vibration calling parameter after receiving the vibration calling parameter belonging to the target format, and output the target vibration based on the analysis result. It will be appreciated that each vibration output party needs to support (be able to parse) at least one of the "he" format and the "hec" format.
In the embodiment of the application, in response to triggering of a parameter generation condition of target vibration, a vibration calling party generates a vibration calling parameter corresponding to the target vibration according to a reference coding mode, the vibration calling party is provided with a vibration middleware, the vibration calling parameter is transmitted to the vibration middleware through a vibration parameter interface, the vibration calling parameter is transmitted to one or more vibration exporters through the vibration middleware, and each vibration exporter analyzes the vibration calling parameter and outputs the target vibration based on an analysis result. Therefore, the vibration calling party (such as a client) sends the vibration calling parameters to the vibration output party through the vibration middleware, so that the vibration calling interface of the vibration calling party can be unified, and the convenience of vibration calling is improved. In addition, the format conversion can be carried out on the vibration calling parameters through the vibration middleware, so that the compatibility of the vibration calling parameters and the convenience of vibration calling are further improved.
Referring to fig. 3, fig. 3 is a flowchart of another vibration control method according to an embodiment of the present application, where the vibration control method may be performed by a computer device, and the computer device may be the terminal device shown in fig. 1. As shown in fig. 3, the vibration control method may include the following steps S301 to S304.
And S301, responding to the triggered parameter generation condition of the target vibration, and generating a vibration calling parameter corresponding to the target vibration by the vibration calling party according to a reference coding mode.
The specific embodiment of step S301 can refer to the embodiment of step S201 in fig. 2, and will not be described herein.
S302, transmitting the vibration calling parameters to the vibration middleware through the vibration parameter interface.
The vibration parameter interface for delivering the vibration invocation parameters to the vibration middleware is the same for different vibration invokers (i.e., the vibration parameter interface is uniform).
S303, performing format conversion processing on the vibration calling parameters through the vibration middleware to obtain updated vibration calling parameters.
In one embodiment, the file format of the vibration invocation parameters passed by the vibration caller does not belong to the target format, e.g., the file format of the vibration invocation parameters passed by the vibration caller does not belong to the ". He" format or the ". Hec" format. On one hand, the computer equipment converts the vibration calling parameters through the vibration middleware according to the parameter conversion rules corresponding to the target format; for example, assume that the vibration intensity in the vibration calling parameters before conversion is indicated by the level, the vibration intensity is seven levels, and the parameter conversion rule corresponding to the target format is: the vibration intensity is indicated by the percentage of the maximum vibration power of the vibration output side under the target format, the conversion vibration intensity percentage corresponding to the seven-level vibration intensity is 70%, and the vibration intensity in the converted vibration calling parameter is 70%. On the other hand, the computer equipment constructs a parameter conversion result according to a data organization form corresponding to the target format through the vibration middleware; for example, assume that the pre-conversion vibration invocation parameters indicate invocation of two different motor output vibrations by two different sets of parameters, and that the post-conversion vibration invocation parameters may indicate invocation of two different motor output vibrations by priority.
The data organization forms of the ". He" format and ". Hec" format are described in detail below:
(1) ". he" format: the ". he" format data organization is in a lightweight data exchange format, such as the json format; an example of a code in ". He" format provided in the embodiment of the present application is as follows:
/>
the values of the key value pairs are only used as examples, and do not constitute actual limitation of the present application, and the following details of the key value pairs in the above code are described below:
the ". he" format vibration call parameter is an object, and the internal first layer includes two pairs of Metadata key value pairs (Metadata key is "Metadata") and mode key value pairs (mode key is "Pattern"). Specifically, a Metadata key value pair (Metadata key is "Metadata") is used to indicate Metadata in the vibration calling parameter, metadata may be understood as basic information of the vibration calling parameter, a value of the Metadata key value pair is a summary object, and the summary object includes at least one key value pair of the following: version key value pair (Version key "Version"), creation time key value pair (creation time key "Created"), description information key value pair (Description information key "Description"). The version key value pair is used for indicating a version number corresponding to the vibration calling parameter, and the data type of the value (value) of the version key value pair is integer (int); the creation time key value pair is used for indicating the creation time of the vibration calling parameter, and the data type of the value (value) of the creation time key value pair is a String type; the description information key value pair is used for describing the vibration effect of the vibration calling parameter (namely, the description information of the target vibration), and the data type of the value (value) of the description information key value pair is a String type.
A pair of mode key values (mode key is "Pattern") is used to indicate a vibration mode, the pair of mode key values is at least one array element, each array element is an event object, and each event object is used to indicate a segment of continuous vibration. Table 1 is a description of each key value pair in an event object provided in an embodiment of the present application:
TABLE 1
/>
As shown in table 1, the event object includes at least one key-value pair of: a vibration site key value pair (vibration site key is "Position"), a vibration Type key value pair (vibration Type key is "Type"), a vibration time key value pair (vibration time key is "relativietime"), a duration key value pair (duration key is "relativietime"), an intensity flag key value pair (intensity flag key is "absintestiyflag"), a frequency flag key value pair (frequency flag key is "AbsFrequencyFlag"), a vibration description parameter key value pair (vibration description parameter key is "Parameters"); wherein, the vibration part key value pair is used for indicating the motor called when outputting the vibration indicated by the event object, the data type of the value (value) of the vibration part key value pair is integer (int); the vibration type key value pair is used for indicating the type of vibration indicated by the event object, and the value of the vibration type key value pair can be: continuous (for indicating that the vibration type is continuous vibration), transient (for indicating that the vibration type is brief vibration (the vibration time length is less than the time length threshold)); the start time of the vibration indicated by the event object may be indicated by indicating a relative start time (e.g., relative to a current time), in one implementation, the data type of the value (value) of the vibration time key pair is integer (int) in ms; the duration key value pair is used for indicating the duration of the vibration indicated by the event object, the duration key value belongs to the duration vibration type (namely, the duration key value pair is only included in the event object when the value of the vibration type key value pair is continuous), and the data type of the value (value) of the duration key value pair is integer (int) with the unit of ms; intensity indication means for indicating vibration indicated by the event object, the data type of the value (value) of the intensity indication key value pair being boolean (boost) type, the intensity indication means may include a relative intensity and an absolute intensity, the intensity indication means indicating the vibration intensity by the relative intensity when the value of the intensity indication key value pair is a first set value (e.g., false), and the intensity indication means indicating the vibration intensity by the absolute intensity when the value of the intensity indication key value pair is a second set value (e.g., true); similarly, a frequency indication mode of a frequency flag key value pair for indicating vibration indicated by an event object, the data type of a value (value) of the frequency flag key value pair being a boolean (boost) type, the frequency indication mode may include a relative frequency and an absolute frequency, the vibration frequency being indicated by the relative frequency when the value of the frequency flag key value pair is a first set value (e.g., false), and the vibration frequency being indicated by the absolute frequency when the value of the frequency flag key value pair is a second set value (e.g., true); the vibration description parameter key value pair is used for indicating the output mode of the vibration indicated by the event object.
In one embodiment, the vibration description parameter key pair is used in combination with the vibration type key pair, and when the vibration type indicated by the vibration type key pair is the first type (continuous vibration type), the event object indicates the vibration through at least one reference point, specifically, the computer device may indicate the vibration curve based on the at least one reference point, so that the vibration output side outputs the vibration based on the vibration curve. It should be noted that, the first reference point of the vibration curve is not necessarily a point with a vibration intensity of 0 (but the first reference point may be a point with a vibration intensity of 0), but an initial vibration effect that needs to be output by the vibration output side; similarly, the last reference point of the vibration curve is not necessarily the point at which the vibration intensity is 0 (but the last reference point may be the point at which the vibration intensity is 0). When the number of reference points is 1, it is indicated that the vibration output side outputs vibration in accordance with the instruction of the reference point, and stops the vibration within the time threshold. When the vibration type indicated by the vibration type key value pair is the first type (continuous vibration type), the value of the vibration description parameter key value pair (vibration description parameter key is "Parameters") contains a reference point number key value pair (reference point number key is "CurvePoints") and N reference point group elements, the value of each reference point group element being one reference point object; the reference point number key value pair is used for indicating the number of reference points associated with the event object, N is matched with the number of the reference points associated with the event object, and the data type of the value (value) of the reference point number key value pair is integer (int); the reference point object is used to indicate the vibration output parameters associated with the reference point, see table 2 for details:
TABLE 2
As shown in table 2, the reference point object includes at least one key value pair of: a reference point Time key value pair (reference point Time key is "Time"), a reference point Intensity key value pair (reference point Intensity key is "density"), a reference point Frequency key value pair (reference point Frequency key is "Frequency"), a reference point motor key value pair (reference point motor key is "Position"); wherein the reference point Time key value pair is used for indicating the relative Time of the reference point in the vibration indicated by the event object, the data type of the value (value) of the reference point Time key value pair is integer (int), the unit is ms, for example, assuming that the vibration duration indicated by the event object is 1000ms, when time=100 ms, the reference point is the reference point corresponding to the 100 th ms in the vibration indicated by the event object; a reference point intensity key value pair for indicating a vibration intensity corresponding to the reference point, the data type of the value (value) of the reference point intensity key value pair being integer (int), specifically, the reference point intensity key value pair being used in combination with an intensity flag key value pair in the event object, the value of the reference point intensity key value pair being a percentage (range [0,100 ]) with respect to a maximum vibration intensity of the vibration output side when the intensity flag key value pair indicates that the vibration intensity is indicated by the relative intensity, the value of the reference point intensity key value pair being a vibration intensity value (equal to or greater than 0) when the intensity flag key value pair indicates that the vibration intensity is indicated by the absolute intensity; a reference point frequency key value pair for indicating a vibration frequency corresponding to the reference point, the data type of the value (value) of the reference point frequency key value pair being integer (int), specifically, the reference point frequency key value pair being used in combination with a frequency index key value pair in the event object, the value of the reference point frequency key value pair being a percentage (range [0,100 ]) with respect to a maximum vibration frequency of the vibration output side when the frequency index key value pair indicates the vibration frequency by the relative frequency, the value of the reference point frequency key value pair being a vibration frequency take value (greater than or equal to 0) when the frequency index key value pair indicates the vibration frequency by the absolute frequency; the reference point motor key value pair is used for indicating a motor corresponding to a reference point, namely, a motor required to be invoked when a vibration output party outputs vibration indicated by the reference point, the data type of a value (value) of the reference point motor key value pair is integer (int), the priority of the reference point motor key value pair is higher than that of a vibration part key value pair in an event object, for example, when the value of the reference point motor key value pair is 1 and the value of the vibration part key value pair is 2, the vibration output party invokes a motor identified as 1 when outputting vibration indicated by the reference point.
When the vibration type indicated by the vibration type key value pair is the second type (short vibration type), the values of the vibration description parameter key value pair include a vibration Intensity key value pair (vibration Intensity key is "Intensity") and a vibration Frequency key value pair (vibration Frequency key is "Frequency"); a vibration intensity key value pair for indicating intensity of vibration indicated by the target event object, the data type of the value (value) of the vibration intensity key value pair being integer (int), specifically, the vibration intensity key value pair being used in combination with an intensity flag key value pair in the event object, the value of the vibration intensity key value pair being a percentage (range of [0,100 ]) with respect to the maximum vibration intensity of the vibration output side when the intensity flag key value pair indicates that the vibration intensity is indicated by the relative intensity, the value of the vibration intensity key value pair being a vibration intensity value (greater than or equal to 0) when the intensity flag key value pair indicates that the vibration intensity is indicated by the absolute intensity; the vibration frequency key value pair is used to indicate the frequency of vibration indicated by the target event object, the data type of the value (value) of the vibration frequency key value pair is integer (int), specifically, the vibration frequency key value pair is used in combination with the frequency flag key value pair in the event object, when the frequency flag key value pair indicates that the vibration frequency is indicated by the relative frequency, the value of the vibration frequency key value pair is a percentage (range of [0,100 ]) with respect to the maximum vibration frequency of the vibration output side, and when the frequency flag key value pair indicates that the vibration frequency is indicated by the absolute frequency, the value of the vibration frequency key value pair is the vibration frequency value (greater than or equal to 0).
(2) ". hec" format: the data organization in ". hec" format may be a sequence of consecutive characters, and the vibration invocation parameters in the ". Hec" format include at least one of the following blocks: a Header block, a motor block ("Format block"), a Metadata block ("Metadata block"), a vibration timing block ("Pattern" block), a vibration Event block ("Event" block), a reference point block ("Curve" block), a vibration parameter block ("Parameters block"); wherein the header information block is used for describing vibration calling parameters; the motor information block is used for indicating the called motor; the metadata block is used for indicating the abstract of the vibration calling parameter; the vibration timing block is used for indicating the sequence of at least one vibration event; the vibration event block is used for indicating the associated parameters of the vibration event; the reference point block is used for indicating vibration output parameters associated with the reference point; the vibration parameter block is used for indicating descriptive information corresponding to different vibration types; the storage areas corresponding to the blocks are different, each storage area comprises one or more storage spaces, and each storage space corresponds to a preset offset address. The following details each block:
a) The meaning of the storage area corresponding to the Header information block (Header block) is shown in table 3:
TABLE 3 Table 3
/>
As shown in table 3, the header information block carries values in at least one of the following storage spaces: a value in the file identification storage space (offset address 00H), a value in the file data length storage space (offset address 04H); the value in the file identification storage space is used for indicating a file identification (such as THEC) of the vibration calling parameter, so that the vibration output side determines the coding format of the vibration calling parameter according to the value in the file identification storage space, the byte number of the file identification storage space is 4, and the data type is character type (char); the value in the file data length storage space is used to indicate the file data length of the vibration calling parameter, the byte number of the file data length storage space is 4, and the data type is integer (int).
B) The meaning of the memory area corresponding to the motor information block ("Format block") is shown in table 4:
TABLE 4 Table 4
As shown in table 4, the motor information block carries values in at least one of the following memory spaces: a value in a motor information block identification storage space (offset address of 00H), a value in a motor information block data length storage space (offset address of 04H), a value in a vibration output side identification storage space (offset address of 08H), a value in a motor version number storage space (offset address of 10H), a value in a motor number storage space (offset address of 12H); wherein, the value in the motor information block identification storage space is used for indicating the identification of the motor information block, the byte number of the motor information block identification storage space is 4, and the data type is character type (char); the value in the motor information block data length storage space is used for indicating the data length of the motor information block, the byte number of the motor information block data length storage space is 4, and the data type is integer (int); the value in the vibration output party identification storage space is used for indicating the identification of the vibration output party, namely the value in the vibration output party identification storage space is used for indicating the vibration output party capable of analyzing (supporting) the vibration calling parameter, the byte number of the vibration output party identification storage space is 2, the data type is short integer (short), in one embodiment, when the value in the vibration output party identification storage space is a first set value (such as 0), the vibration output party is indicated as a mobile phone device, and when the value in the vibration output party identification storage space is a second set value (such as 1), the vibration output party is indicated as a handle device; the value in the motor version number storage space is used for indicating whether the output target vibration needs to call a plurality of motors, the byte number of the motor version number storage space is 2, and the data type is short integer (short), in one embodiment, when the value in the motor version number storage space is a first set value (such as V1), the output target vibration is indicated not to call a plurality of (at least two) motors, and when the value in the motor version number storage space is a second set value (such as V2), the output target vibration is indicated to call a plurality of (at least two) motors; the value in the motor number storage space is used to indicate that the output target vibration is the number of motors to be called, the number of bytes of the motor number storage space is 2, and the data type is short (short), it is understood that when the value in the motor version number storage space is a first set value (e.g., V1), the value in the motor number storage space is 1, and when the value in the motor version number storage space is a second set value (e.g., V2), the value in the motor number storage space is an integer greater than 1.
C) The meaning of the storage area corresponding to the Metadata block ("Metadata block") is shown in table 5:
TABLE 5
As shown in table 5, the metadata block carries values in at least one of the following storage spaces: the metadata block identifies a value in a storage space (offset address is 00H), a value in a storage space (offset address is 04H) of a metadata block data length, a value in a vibration call parameter version number storage space (offset address is 06H), a value in a vibration call parameter creation time storage space (offset address is 08H), a value in a vibration call parameter description information storage space (offset address is 16H); wherein, the value in the metadata block identification storage space is used for indicating the identification of the metadata block, the byte number of the metadata block identification storage space is 4, and the data type is character type (char); the value in the storage space of the data length of the metadata block is used for indicating the data length of the metadata block, the byte number of the storage space of the data length of the metadata block is 4, and the data type is integer (int); the value in the vibration calling parameter Version number storage space is used for indicating the Version number of the vibration calling parameter, the value in the vibration calling parameter Version number storage space corresponds to the value (value) of a Version key value pair (key is Version) in the vibration calling parameter in the 'he' format, the byte number of the vibration calling parameter Version number storage space is 2, and the data type is short integer (short); the value in the vibration calling parameter creation time storage space is used for indicating the creation time of the vibration calling parameter, the value in the vibration calling parameter creation time storage space corresponds to the value (value) of the vibration calling parameter creation time key value pair (key is Created) in the 'he' format, the byte number of the vibration calling parameter creation time storage space is 8, and the data type is long; the value in the vibration calling parameter Description information storage space is used for indicating the Description information of the vibration calling parameter, the value in the vibration calling parameter Description information storage space corresponds to the value (value) of a Description information key value pair (key is Description) in the vibration calling parameter in a 'he' format, the byte number of the vibration calling parameter Description information storage space is not fixed, and the data type is character type (char).
D) The meaning of the memory area corresponding to the vibration timing block ("Pattern" block) is shown in table 6:
TABLE 6
As shown in table 6, the vibration timing block carries values in at least one of the following memory spaces: the vibration timing block identifies a value in the memory space (offset address 00H), and the vibration timing block data length memory space (offset address 04H); the value in the vibration time sequence block identification storage space is used for indicating the identification of the vibration time sequence block, the byte number of the vibration time sequence block identification storage space is 4, and the data type is character type (char); the value in the vibration time sequence block data length storage space is used for indicating the data length of the vibration time sequence block, the byte number of the vibration time sequence block data length storage space is 4, and the data type is integer (int).
The vibration timing block is associated with at least one vibration event block, each vibration event block corresponding to a different storage area, and in one implementation, the computer device specifies the timing of each vibration event block by the number of the vibration event block.
E) The meaning of the memory area corresponding to the vibration Event block ("Event" block) is shown in table 7:
TABLE 7
As shown in table 7, the vibration event block carries values in at least one of the following memory spaces: the vibration event block identification storage space (offset address 00H), the vibration event type storage space (offset address 03H), the vibration event block number storage space (offset address 04H), the motor identification storage space (offset address 06H), the vibration event start time storage space (offset address 08H), the vibration event duration storage space (offset address 12H), the vibration intensity flag storage space (offset address 16H), and the vibration frequency flag storage space (offset address 18H); wherein the value in the vibration event block identification storage space is used for indicating the identification of the vibration event block, the byte number of the vibration event block identification storage space is 3, and the data type is character type (char); the value in the vibration event type storage space is used for indicating the vibration type of the vibration corresponding to the vibration event block, in one implementation, when the value in the vibration event type storage space is a first set value (such as 0), the vibration type of the vibration corresponding to the vibration event block is a short vibration type, when the value in the vibration event type storage space is a second set value (such as 1), the vibration type of the vibration corresponding to the vibration event block is a continuous vibration type, the byte number of the vibration event type storage space is 1, and the data type is a short integer (short); the value in the vibration event block number storage space is used to indicate the number of the vibration event block, in one implementation the starting number of the vibration event block is 1, the byte number of the vibration event block number storage space is 2, and the data type is short integer (short); the value in the motor identification storage space is used for indicating the motor required to be invoked for outputting the vibration corresponding to the vibration event block, in one implementation, the starting number of the motor is 1, the byte number of the motor identification storage space is 2, and the data type is short integer (short); the value in the vibration event starting time storage space is used for indicating the starting time of vibration corresponding to the vibration event block, the byte number of the vibration event starting time storage space is 4, and the data type is integer (int); the value in the vibration event duration storage space is used for indicating the duration time of vibration corresponding to the vibration event block, the byte number of the vibration event duration storage space is 4, and the data type is integer (int); the value in the vibration intensity sign storage space is used for indicating a vibration intensity indication mode of vibration corresponding to the vibration event block, the byte number of the vibration intensity sign storage space is 2, and the data type is short integer (short); the value in the vibration frequency flag storage space is used for indicating the vibration frequency indication mode of vibration corresponding to the vibration event block, the byte number of the vibration frequency flag storage space is 2, and the data type is short.
When the vibration type of the vibration corresponding to the vibration event block is a first type (continuous vibration type), the vibration event block is associated with at least one reference point block, and each reference point block corresponds to a different storage area. In one embodiment, the computer device specifies the order of the positions of the reference points corresponding to the respective reference point blocks in the vibration curve by the sequence numbers of the reference point blocks.
F) The meaning of the memory area corresponding to the reference point block ("Curve" block) is shown in Table 8:
TABLE 8
As shown in table 8, the reference point block carries values in at least one of the following memory spaces: the reference point block identification memory space (offset address 00H), the reference point block number memory space (offset address 05H), the motor number memory space (offset address 06H), the reference point start time memory space (offset address 08H), the reference point vibration intensity memory space (offset address 12H), and the reference point vibration frequency memory space (offset address 14H); the value in the reference point block identification storage space is used for indicating the identification of the reference point block, the byte number of the reference point block identification storage space is 5, and the data type is character type (char); the value in the reference point block sequence number storage space is used for indicating the sequence number of the reference point block, the sequence number of the reference point block is used for indicating the position sequence of the reference point corresponding to each reference point block in the vibration curve, the byte number of the reference point block sequence number storage space is 1, and the data type is short integer (short); the value in the motor number storage space is used for indicating the motor required to be invoked for outputting the vibration corresponding to the reference point block, in one implementation, the computer equipment indicates the motor required to be invoked for outputting the vibration corresponding to the reference point block by indicating the number of the motor, the initial number of the motor is 1, when the value in the motor number storage space is 0, the motor required to be invoked for indicating the vibration corresponding to the reference point block is the same as the motor indicated in the vibration event block associated with the reference point block, the byte number of the motor number storage space is 2, and the data type is short integer (short); the value in the reference point starting time storage space is used for indicating the starting time of vibration corresponding to the reference point block, the byte number of the reference point starting time storage space is 4, and the data type is integer (int); in one implementation, if the value in the vibration intensity flag storage space in the vibration event block associated with the reference point block is a first set value (such as false), the value in the reference point vibration intensity storage space is a reduced percentage of the vibration intensity of the vibration corresponding to the vibration event block, and if the value in the vibration intensity flag storage space in the vibration event block associated with the reference point block is a second set value (such as true), the value in the reference point vibration intensity storage space is a vibration intensity value, the number of bytes in the reference point vibration intensity storage space is 2, and the data type is a short integer (short); in one implementation, if the value in the vibration frequency flag storage space in the vibration event block associated with the reference point block is a first set value (such as false), the value in the reference point vibration frequency storage space is an increase or decrease of the vibration frequency of the vibration corresponding to the vibration event block, and if the value in the vibration frequency flag storage space in the vibration event block associated with the reference point block is a second set value (such as true), the value in the reference point vibration frequency storage space is a vibration frequency value, the number of bytes in the reference point vibration frequency storage space is 2, and the data type is a short integer (short).
In one embodiment, when the vibration event block is associated with a plurality of (at least two) reference point blocks, the start offset address (offset address corresponding to the reference point block number storage space) of the second reference point block is located after the offset address corresponding to the reference point vibration frequency storage space of the first reference point block, for example, the offset address corresponding to the reference point vibration frequency storage space in the first reference point block is 14H, the offset address corresponding to the reference point block number storage space in the second reference point block is 16H, and it should be noted that the reference point block identification storage space may not be included in other reference point blocks except the first reference point block.
G) When the vibration type of the vibration corresponding to the vibration event block is the first type (continuous vibration type), the vibration event block is also associated with a first vibration parameter block ("Parameters block"), and the meaning of the storage area corresponding to the first vibration parameter block is shown in table 9:
TABLE 9
As shown in table 9, the first vibration parameter block carries values in at least one of the following memory spaces: the vibration parameter block identifies a value in the memory space (offset address 00H), and references a value in the number of points memory space (offset address 05H); the value in the vibration parameter block identification storage space is used for indicating the identification of the first vibration parameter block, the byte number of the vibration parameter block identification storage space is 5, and the data type is character type (char); the value in the reference point number storage space is used to indicate the number of reference point blocks associated with the vibration event block, the value in the reference point number storage space is a positive integer, the number of bytes in the reference point number storage space is 4, and the data type is integer (int).
When the vibration type of the vibration corresponding to the vibration event block is the second type (short vibration type), the vibration event block is associated with a second vibration parameter block ("Parameters block"), and the meaning of the storage area corresponding to the second vibration parameter block is shown in table 10:
table 10
As shown in table 10, the second vibration parameter block carries values in at least one of the following memory spaces: the vibration parameter block identifies a value in a memory space (offset address of 00H), a value in an event vibration intensity memory space (offset address of 05H), a value in an event vibration frequency memory space (offset address of 07H); the value in the vibration parameter block identification storage space is used for indicating the identification of the second vibration parameter block, the byte number of the vibration parameter block identification storage space is 5, and the data type is character type (char); the value in the event vibration intensity storage space is used for indicating the vibration intensity of the vibration corresponding to the vibration event block, in one implementation, if the value in the vibration intensity sign storage space in the vibration event block associated with the second vibration parameter block is a first set value (such as false), the value in the event vibration intensity storage space is a reduction percentage of the vibration intensity of the vibration corresponding to the vibration event block, and if the value in the vibration intensity sign storage space in the vibration event block associated with the second vibration parameter block is a second set value (such as true), the value in the event vibration intensity storage space is a vibration intensity value, the number of bytes in the event vibration intensity storage space is 2, and the data type is a short integer (short); in one implementation, if the value in the vibration frequency flag storage space in the vibration event block associated with the second vibration parameter block is a first set value (such as false), the value in the event vibration frequency storage space is an increase or decrease of the vibration frequency of the vibration corresponding to the vibration event block, and if the value in the vibration frequency flag storage space in the vibration event block associated with the second vibration parameter block is a second set value (such as true), the value in the event vibration frequency storage space is a vibration frequency value, the number of bytes in the event vibration frequency storage space is 2, and the data type is a short integer (short).
S304, sending the vibration calling parameters to one or more vibration exporters through the vibration middleware.
The interfaces of the vibration output parties for receiving the vibration calling parameters can be the same or different, and when the interfaces of the vibration output parties for receiving the vibration calling parameters are different, the vibration middleware respectively sends the vibration calling parameters to the interfaces of the vibration output parties for receiving the vibration calling parameters. Fig. 4 is a schematic sending diagram of a vibration calling parameter provided in an embodiment of the present application, as shown in fig. 4, a vibration calling party transmits the vibration calling parameter to a vibration middleware through a unified interface, and after the vibration middleware obtains the vibration calling parameter belonging to a target format, the vibration middleware sends the vibration calling parameter to interfaces of each vibration output party for receiving the vibration calling parameter.
In the embodiment of the application, in response to triggering of a parameter generation condition of target vibration, a vibration calling party generates a vibration calling parameter corresponding to the target vibration according to a reference coding mode, the vibration calling party is provided with a vibration middleware, the vibration calling parameter is transmitted to the vibration middleware through a vibration parameter interface, the vibration calling parameter is transmitted to one or more vibration exporters through the vibration middleware, and each vibration exporter analyzes the vibration calling parameter and outputs the target vibration based on an analysis result. Therefore, the vibration calling party (such as a client) sends the vibration calling parameters to the vibration output party through the vibration middleware, so that the vibration calling interface of the vibration calling party can be unified, and the convenience of vibration calling is improved. In addition, the format conversion can be carried out on the vibration calling parameters through the vibration middleware, so that the compatibility of the vibration calling parameters and the convenience of vibration calling are further improved; ". he 'format and hec' format vibration calling parameters can accurately indicate converted vibration by indicating reference points in a vibration curve, uniformly define meanings of various fields (key value pairs) in the vibration calling parameters, unify formats of information transmitted when the vibration middleware interacts with interfaces of different vibration output parties, and provide a common and universal solution for defining vibration effects.
The foregoing details of the method of embodiments of the present application are set forth in order to provide a better understanding of the foregoing aspects of embodiments of the present application, and accordingly, the following provides a device of embodiments of the present application.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a vibration control device according to an embodiment of the present application, and the vibration control device shown in fig. 5 may be used to perform some or all of the functions of the method embodiments described in fig. 2 and 3. Referring to fig. 5, the vibration control apparatus includes:
a processing unit 501, configured to generate, by a vibration caller, a vibration calling parameter corresponding to a target vibration according to a reference encoding manner in response to a parameter generation condition of the target vibration being triggered, the vibration caller being mounted with a vibration middleware;
and a sending unit 502, configured to transfer the vibration calling parameter to the vibration middleware through the vibration parameter interface, so as to send the vibration calling parameter to one or more vibration exporters through the vibration middleware, and enable each vibration exporter to analyze the vibration calling parameter, and output the target vibration based on the analysis result.
In one embodiment, if the file format of the vibration calling parameter does not belong to the target format, the processing unit 501 is further configured to:
The format conversion processing is carried out on the vibration calling parameters through the vibration middleware, so that updated vibration calling parameters are obtained;
the file format of the updated vibration calling parameter belongs to the target format.
In one embodiment, the processing unit 501 is configured to perform format conversion processing on the vibration call parameter through the vibration middleware, so as to obtain an updated vibration call parameter, which is specifically configured to:
converting the vibration calling parameters through the vibration middleware according to the parameter conversion rules corresponding to the target format; and;
and constructing a parameter conversion result through the vibration middleware according to a data organization form corresponding to the target format, and obtaining updated vibration calling parameters.
In one embodiment, the target format includes at least one of a first format and a second format, the second format being a compressed representation of the first format.
In one embodiment, the file format of the vibration invoking parameter belongs to the first format, the vibration invoking parameter includes a metadata key pair and a mode key pair, the metadata key pair being used to indicate metadata in the vibration invoking parameter; the mode key value pair is used to indicate a vibration mode.
In one embodiment, the values of the metadata key-value pairs are used to indicate a digest object that includes at least one of the following key-value pairs: version key value pair, creation time key value pair, description information key value pair;
The version key value pair is used for indicating the version number corresponding to the vibration calling parameter; the creation time key value pair is used for indicating the creation time of the vibration calling parameter; the description information key pair is used for describing the vibration effect of the vibration calling parameter.
In one embodiment, the value of the mode key value pair is at least one array element, and the value of each array element is an event object; the target event object includes at least one key value pair of: vibration part key value pairs, vibration time key value pairs, duration key value pairs, intensity sign key value pairs, frequency sign key value pairs; the target event object is a value of a target array element, and the target array element is any one of at least one array element;
wherein, the key value pair of the vibration part is used for indicating the motor called when outputting the vibration indicated by the target event object; the vibration time key value pair is used for indicating the starting time of the vibration indicated by the target event object; duration key value pair is used for indicating duration of vibration indicated by target event object; intensity indication means for indicating vibration indicated by the target event object by the intensity flag key value pair; the frequency flag key value indicates the frequency indication manner of the vibration indicated by the target event object.
In one embodiment, the target event object includes an intensity flag key value pair and a frequency flag key value pair, and the target event object further includes a vibration type key value pair and a vibration description parameter key value pair; the vibration type key value pair is used for indicating the type of vibration indicated by the target event object, and the vibration description parameter key value pair is used for indicating the output mode of the vibration indicated by the target event object;
when the vibration type indicated by the vibration type key value pair is the first type, the target event object indicates target vibration through at least one reference point, and the value of the vibration description parameter key value pair comprises a reference point number key value pair and N reference point group elements, and the value of each reference point group element is one reference point object; the reference point number key value pair is used for indicating the number of reference points associated with the target event object, and N is matched with the number of reference points associated with the target event object; the target reference point object is used for indicating a vibration output parameter associated with a target reference point, the target reference point object is a value of a target reference point group element, and the target reference point group element is any one of N reference point group elements;
when the vibration type indicated by the vibration type key value pair is the second type, the values of the vibration description parameter key value pair include a vibration intensity key value pair and a vibration frequency key value pair; the vibration intensity key value pair indicates the intensity of vibration indicated by the target event object, and the vibration frequency key value pair indicates the frequency of vibration indicated by the target event object.
In one embodiment, the target reference point object includes at least one key value pair of: a reference point time key value pair, a reference point intensity key value pair, a reference point frequency key value pair, and a reference point motor key value pair;
wherein the reference point time key value pair is used for indicating the relative time of the target reference point in the vibration indicated by the target event object; the reference point intensity key value pair is used for indicating the vibration intensity corresponding to the target reference point; the reference point frequency key value pair is used for indicating the vibration frequency corresponding to the target reference point; the reference point motor key value pair is used for indicating a motor corresponding to the reference point, and the priority of the reference point motor key value pair is higher than that of the vibration part key value pair.
In one embodiment, the file format of the vibration invocation parameters belongs to the second format, the vibration invocation parameters including at least one block of: a head information block, a motor information block, a metadata block, a vibration timing block, a vibration event block, a reference point block and a vibration parameter block;
wherein the header information block is used for describing vibration calling parameters; the motor information block is used for indicating the called motor; the metadata block is used for indicating the abstract of the vibration calling parameter; the vibration timing block is used for indicating the sequence of at least one vibration event; the vibration event block is used for indicating the associated parameters of the vibration event; the reference point block is used for indicating vibration output parameters associated with the reference point; the vibration parameter block is used for indicating descriptive information corresponding to different vibration types; the storage areas corresponding to the blocks are different, each storage area comprises one or more storage spaces, and each storage space corresponds to a preset offset address.
In one embodiment, the header information block carries values in at least one of the following storage spaces: values in the file identity storage space, values in the file data length storage space;
the value in the file identification storage space is used for indicating the file identification of the vibration calling parameter; the value in the file data length storage space is used to indicate the file data length of the vibration invocation parameter.
In one embodiment, the motor information block carries values in at least one of the following memory spaces: a value in a motor information block identification storage space, a value in a motor information block data length storage space, a value in a vibration output side identification storage space, a value in a motor version number storage space, a value in a motor number storage space;
wherein the value in the motor information block identification storage space is used to indicate the identification of the motor information block; the value in the motor information block data length storage space is used to indicate the data length of the motor information block; the value in the vibration output party identification storage space is used for indicating the identification of the vibration output party; the value in the motor version number storage space is used for indicating whether the output target vibration needs to call a plurality of motors or not; the value in the motor number storage space is used to indicate the number of motors that the output target vibration is a desired call.
In one embodiment, the metadata block carries values in at least one of the following storage spaces: the metadata block identifies values in a storage space, values in a storage space of a metadata block data length, values in a vibration calling parameter version number storage space, values in a vibration calling parameter creation time storage space, values in a vibration calling parameter description information storage space;
wherein the value in the metadata block identification storage space is used to indicate the identification of the metadata block; the value in the storage space of the metadata block data length is used to indicate the data length of the metadata block; the value in the vibration calling parameter version number storage space is used for indicating the version number of the vibration calling parameter; the value in the vibration calling parameter creation time storage space is used for indicating the creation time of the vibration calling parameter; the values in the vibration call parameter description information storage space are used to indicate the description information of the vibration call parameter.
In one embodiment, the vibration timing block carries values in at least one of the following memory spaces: the vibration timing block identifies values in the memory space, and the vibration timing block data length stores values in the memory space;
wherein the value in the vibration timing block identification storage space is used to indicate the identification of the vibration timing block; the value in the vibration timing block data length storage space is used to indicate the data length of the vibration timing block.
In one embodiment, the vibration timing block is associated with at least one vibration event block, each vibration event block having a different corresponding storage area; each vibration event block carries values in at least one of the following memory spaces: the vibration event block identification storage space, the vibration event type storage space, the vibration event block number storage space, the motor identification storage space, the vibration event start time storage space, the vibration event duration storage space, the vibration intensity flag storage space, and the vibration frequency flag storage space;
wherein the value in the vibration event block identification storage space is used to indicate the identification of the vibration event block; the value in the vibration event type storage space is used for indicating the vibration type of the vibration corresponding to the vibration event block; the value in the vibration event block number storage space is used to indicate the number of the vibration event block; the value in the motor identification storage space is used for indicating a motor which is required to be called for outputting the vibration corresponding to the vibration event block; the value in the vibration event start time storage space is used for indicating the start time of vibration corresponding to the vibration event block; the value in the vibration event duration storage space is used for indicating the duration of vibration corresponding to the vibration event block; the value in the vibration intensity sign storage space is used for indicating a vibration intensity indication mode of vibration corresponding to the vibration event block; the value in the vibration frequency flag storage space is used to indicate the vibration frequency indication mode of the vibration corresponding to the vibration event block.
In one embodiment, when the vibration type of the vibration corresponding to the vibration event block is the first type, the vibration event block is associated with at least one reference point block, each reference point block corresponding to a different storage area, each reference point block carrying a value in at least one of the following storage spaces: the reference point block identification storage space, the reference point block sequence number storage space, the motor sequence number storage space, the reference point start time storage space, the reference point vibration intensity storage space and the reference point vibration frequency storage space;
wherein the value in the reference point block identity storage space is used to indicate the identity of the reference point block; the value in the reference point block sequence number storage space is used for indicating the sequence number of the reference point block; the value in the motor number storage space is used for indicating a motor which is required to be called for outputting vibration corresponding to the reference point block; the value in the reference point start time storage space is used for indicating the start time of vibration corresponding to the reference point block; the value in the reference point vibration intensity storage space is used for indicating the vibration intensity of the vibration corresponding to the reference point block; the value in the reference point vibration frequency storage space is used to indicate the vibration frequency of the vibration corresponding to the reference point block.
In one embodiment, the vibration event block is further associated with a first vibration parameter block carrying values in at least one of the following memory spaces: the vibration parameter block identifies values in the memory space, and references values in the number of points memory space;
wherein the value in the vibration parameter block identification storage space is used to indicate the identification of the first vibration parameter block; the value in the reference point number storage space is used to indicate the number of reference point blocks associated with the vibration event block.
In one embodiment, when the vibration type of the vibration event corresponding to the vibration event block is the second type, the vibration event block is associated with a second vibration parameter block; the second vibration parameter block carries values in at least one of the following memory spaces: the vibration parameter block identifies values in a memory space, values in an event vibration intensity memory space, values in an event vibration frequency memory space;
wherein the value in the vibration parameter block identification storage space is used to indicate the identification of the second vibration parameter block; the value in the event vibration intensity storage space is used for indicating the vibration intensity of the vibration corresponding to the vibration event block; the value in the event vibration frequency storage space is used to indicate the vibration frequency of the vibration to which the vibration event block corresponds.
According to one embodiment of the present application, some of the steps involved in the vibration control methods shown in fig. 2 and 3 may be performed by respective units in the vibration control apparatus shown in fig. 5. For example, step S201 shown in fig. 2 may be performed by the processing unit 501 shown in fig. 5, and step S202 may be performed by the transmitting unit 502 shown in fig. 5; step S301 and step S303 shown in fig. 3 may be performed by the processing unit 501 shown in fig. 5, and step S302 and step S304 may be performed by the transmitting unit 502 shown in fig. 5. The respective units in the vibration control device shown in fig. 5 may be individually or all combined into one or several additional units, or some (some) of the units may be further split into a plurality of units having smaller functions, which may achieve the same operation without affecting the achievement of the technical effects of the embodiments of the present application. The above units are divided based on logic functions, and in practical applications, the functions of one unit may be implemented by a plurality of units, or the functions of a plurality of units may be implemented by one unit. In other embodiments of the present application, the vibration control device may also include other units, and in practical applications, these functions may also be implemented with assistance from other units, and may be implemented by cooperation of multiple units.
According to another embodiment of the present application, the vibration control apparatus as shown in fig. 5 may be constructed by running a computer program (including program code) capable of executing the steps involved in the respective methods as shown in fig. 2 and 3 on a general-purpose computing apparatus such as a computer device including a processing element such as a Central Processing Unit (CPU), a random access storage medium (RAM), a read only storage medium (ROM), and the like, and a storage element, and the vibration control method of the embodiment of the present application is implemented. The computer program may be recorded on, for example, a computer-readable recording medium, and loaded into and run in the above-described computing device through the computer-readable recording medium.
Based on the same inventive concept, the principle and beneficial effects of the vibration control device provided in the embodiments of the present application are similar to those of the vibration control method in the embodiments of the present application, and may refer to the principle and beneficial effects of implementation of the method, which are not described herein for brevity.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a computer device provided in an embodiment of the present application, where the computer device may be a terminal device or a server. As shown in fig. 6, the computer device comprises at least a processor 601, a communication interface 602, and a memory 603. Wherein the processor 601, the communication interface 602 and the memory 603 may be connected by a bus or other means. Among these, the processor 601 (or central processing unit (Central Processing Unit, CPU)) is a computing core and a control core of a computer device, which can parse various instructions in the computer device and process various data of the computer device, for example: the CPU can be used for analyzing a startup and shutdown instruction sent by the object to the computer equipment and controlling the computer equipment to perform startup and shutdown operation; and the following steps: the CPU may transmit various types of interaction data between internal structures of the computer device, and so on. Communication interface 602 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI, mobile communication interface, etc.), and may be controlled by processor 601 to receive and transmit data; the communication interface 602 may also be used for transmission and interaction of data within a computer device. The Memory 603 (Memory) is a Memory device in the computer device for storing programs and data. It will be appreciated that the memory 603 herein may include both built-in memory of the computer device and extended memory supported by the computer device. Memory 603 provides storage space that stores the operating system of the computer device, which may include, but is not limited to: android (Android) systems, internet operating systems (Internetworking Operating System, IOS), etc., as not limited in this application.
The embodiments of the present application also provide a computer-readable storage medium (Memory), which is a Memory device in a computer device, for storing programs and data. It is understood that the computer readable storage medium herein may include both built-in storage media in a computer device and extended storage media supported by the computer device. The computer readable storage medium provides storage space that stores a processing system of a computer device. In this memory space, a computer program suitable for being loaded and executed by the processor 601 is stored. Note that the computer readable storage medium can be either a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory; alternatively, it may be at least one computer-readable storage medium located remotely from the aforementioned processor.
In one embodiment, the processor 601 performs the following operations by running a computer program in the memory 603:
responding to the triggering of the parameter generation condition of the target vibration, generating a vibration calling parameter corresponding to the target vibration by a vibration calling party according to a reference coding mode, wherein the vibration calling party is provided with a vibration middleware;
Transmitting the vibration calling parameters to the vibration middleware through the vibration parameter interface, transmitting the vibration calling parameters to one or more vibration exporters through the vibration middleware, enabling each vibration exporter to analyze the vibration calling parameters, and outputting target vibration based on analysis results.
As an alternative embodiment, if the file format of the vibration calling parameter does not belong to the target format, the processor 601 further performs the following operations by running the computer program in the memory 603:
the format conversion processing is carried out on the vibration calling parameters through the vibration middleware, so that updated vibration calling parameters are obtained;
the file format of the updated vibration calling parameter belongs to the target format.
As an alternative embodiment, the processor 601 performs format conversion processing on the vibration calling parameter through the vibration middleware, and specific embodiments of obtaining updated vibration calling parameters are as follows:
converting the vibration calling parameters through the vibration middleware according to the parameter conversion rules corresponding to the target format; and;
and constructing a parameter conversion result through the vibration middleware according to a data organization form corresponding to the target format, and obtaining updated vibration calling parameters.
As an alternative embodiment, the target format comprises at least one of a first format and a second format, the second format being a compressed representation of the first format.
As an alternative embodiment, the file format of the vibration invoking parameter belongs to the first format, and the vibration invoking parameter includes a metadata key pair and a mode key pair, where the metadata key pair is used to indicate metadata in the vibration invoking parameter; the mode key value pair is used to indicate a vibration mode.
As an alternative embodiment, the values of the metadata key-value pairs are used to indicate a digest object, the digest object comprising at least one key-value pair of: version key value pair, creation time key value pair, description information key value pair;
the version key value pair is used for indicating the version number corresponding to the vibration calling parameter; the creation time key value pair is used for indicating the creation time of the vibration calling parameter; the description information key pair is used for describing the vibration effect of the vibration calling parameter.
As an alternative embodiment, the value of the mode key value pair is at least one array element, and the value of each array element is an event object; the target event object includes at least one key value pair of: vibration part key value pairs, vibration time key value pairs, duration key value pairs, intensity sign key value pairs, frequency sign key value pairs; the target event object is a value of a target array element, and the target array element is any one of at least one array element;
Wherein, the key value pair of the vibration part is used for indicating the motor called when outputting the vibration indicated by the target event object; the vibration time key value pair is used for indicating the starting time of the vibration indicated by the target event object; duration key value pair is used for indicating duration of vibration indicated by target event object; intensity indication means for indicating vibration indicated by the target event object by the intensity flag key value pair; the frequency flag key value indicates the frequency indication manner of the vibration indicated by the target event object.
As an alternative embodiment, the target event object includes an intensity flag key value pair and a frequency flag key value pair, and the target event object further includes a vibration type key value pair and a vibration description parameter key value pair; the vibration type key value pair is used for indicating the type of vibration indicated by the target event object, and the vibration description parameter key value pair is used for indicating the output mode of the vibration indicated by the target event object;
when the vibration type indicated by the vibration type key value pair is the first type, the target event object indicates target vibration through at least one reference point, and the value of the vibration description parameter key value pair comprises a reference point number key value pair and N reference point group elements, and the value of each reference point group element is one reference point object; the reference point number key value pair is used for indicating the number of reference points associated with the target event object, and N is matched with the number of reference points associated with the target event object; the target reference point object is used for indicating a vibration output parameter associated with a target reference point, the target reference point object is a value of a target reference point group element, and the target reference point group element is any one of N reference point group elements;
When the vibration type indicated by the vibration type key value pair is the second type, the values of the vibration description parameter key value pair include a vibration intensity key value pair and a vibration frequency key value pair; the vibration intensity key value pair indicates the intensity of vibration indicated by the target event object, and the vibration frequency key value pair indicates the frequency of vibration indicated by the target event object.
As an alternative embodiment, the target reference point object comprises at least one key-value pair of: a reference point time key value pair, a reference point intensity key value pair, a reference point frequency key value pair, and a reference point motor key value pair;
wherein the reference point time key value pair is used for indicating the relative time of the target reference point in the vibration indicated by the target event object; the reference point intensity key value pair is used for indicating the vibration intensity corresponding to the target reference point; the reference point frequency key value pair is used for indicating the vibration frequency corresponding to the target reference point; the reference point motor key value pair is used for indicating a motor corresponding to the reference point, and the priority of the reference point motor key value pair is higher than that of the vibration part key value pair.
As an alternative embodiment, the file format of the vibration invoking parameter belongs to the second format, the vibration invoking parameter comprising at least one of the following blocks: a head information block, a motor information block, a metadata block, a vibration timing block, a vibration event block, a reference point block and a vibration parameter block;
Wherein the header information block is used for describing vibration calling parameters; the motor information block is used for indicating the called motor; the metadata block is used for indicating the abstract of the vibration calling parameter; the vibration timing block is used for indicating the sequence of at least one vibration event; the vibration event block is used for indicating the associated parameters of the vibration event; the reference point block is used for indicating vibration output parameters associated with the reference point; the vibration parameter block is used for indicating descriptive information corresponding to different vibration types; the storage areas corresponding to the blocks are different, each storage area comprises one or more storage spaces, and each storage space corresponds to a preset offset address.
As an alternative embodiment, the header information block carries values in at least one of the following storage spaces: values in the file identity storage space, values in the file data length storage space;
the value in the file identification storage space is used for indicating the file identification of the vibration calling parameter; the value in the file data length storage space is used to indicate the file data length of the vibration invocation parameter.
As an alternative embodiment, the motor information block carries values in at least one of the following memory spaces: a value in a motor information block identification storage space, a value in a motor information block data length storage space, a value in a vibration output side identification storage space, a value in a motor version number storage space, a value in a motor number storage space;
Wherein the value in the motor information block identification storage space is used to indicate the identification of the motor information block; the value in the motor information block data length storage space is used to indicate the data length of the motor information block; the value in the vibration output party identification storage space is used for indicating the identification of the vibration output party; the value in the motor version number storage space is used for indicating whether the output target vibration needs to call a plurality of motors or not; the value in the motor number storage space is used to indicate the number of motors that the output target vibration is a desired call.
As an alternative embodiment, the metadata block carries values in at least one of the following storage spaces: the metadata block identifies values in a storage space, values in a storage space of a metadata block data length, values in a vibration calling parameter version number storage space, values in a vibration calling parameter creation time storage space, values in a vibration calling parameter description information storage space;
wherein the value in the metadata block identification storage space is used to indicate the identification of the metadata block; the value in the storage space of the metadata block data length is used to indicate the data length of the metadata block; the value in the vibration calling parameter version number storage space is used for indicating the version number of the vibration calling parameter; the value in the vibration calling parameter creation time storage space is used for indicating the creation time of the vibration calling parameter; the values in the vibration call parameter description information storage space are used to indicate the description information of the vibration call parameter.
As an alternative embodiment, the vibration timing block carries values in at least one of the following memory spaces: the vibration timing block identifies values in the memory space, and the vibration timing block data length stores values in the memory space;
wherein the value in the vibration timing block identification storage space is used to indicate the identification of the vibration timing block; the value in the vibration timing block data length storage space is used to indicate the data length of the vibration timing block.
As an alternative embodiment, the vibration timing block is associated with at least one vibration event block, and each vibration event block corresponds to a different storage area; each vibration event block carries values in at least one of the following memory spaces: the vibration event block identification storage space, the vibration event type storage space, the vibration event block number storage space, the motor identification storage space, the vibration event start time storage space, the vibration event duration storage space, the vibration intensity flag storage space, and the vibration frequency flag storage space;
wherein the value in the vibration event block identification storage space is used to indicate the identification of the vibration event block; the value in the vibration event type storage space is used for indicating the vibration type of the vibration corresponding to the vibration event block; the value in the vibration event block number storage space is used to indicate the number of the vibration event block; the value in the motor identification storage space is used for indicating a motor which is required to be called for outputting the vibration corresponding to the vibration event block; the value in the vibration event start time storage space is used for indicating the start time of vibration corresponding to the vibration event block; the value in the vibration event duration storage space is used for indicating the duration of vibration corresponding to the vibration event block; the value in the vibration intensity sign storage space is used for indicating a vibration intensity indication mode of vibration corresponding to the vibration event block; the value in the vibration frequency flag storage space is used to indicate the vibration frequency indication mode of the vibration corresponding to the vibration event block.
As an alternative embodiment, when the vibration type of the vibration corresponding to the vibration event block is the first type, the vibration event block is associated with at least one reference point block, each reference point block corresponding to a different storage area, each reference point block carrying a value in at least one of the following storage spaces: the reference point block identification storage space, the reference point block sequence number storage space, the motor sequence number storage space, the reference point start time storage space, the reference point vibration intensity storage space and the reference point vibration frequency storage space;
wherein the value in the reference point block identity storage space is used to indicate the identity of the reference point block; the value in the reference point block sequence number storage space is used for indicating the sequence number of the reference point block; the value in the motor number storage space is used for indicating a motor which is required to be called for outputting vibration corresponding to the reference point block; the value in the reference point start time storage space is used for indicating the start time of vibration corresponding to the reference point block; the value in the reference point vibration intensity storage space is used for indicating the vibration intensity of the vibration corresponding to the reference point block; the value in the reference point vibration frequency storage space is used to indicate the vibration frequency of the vibration corresponding to the reference point block.
As an alternative embodiment, the vibration event block is further associated with a first vibration parameter block carrying values in at least one of the following memory spaces: the vibration parameter block identifies values in the memory space, and references values in the number of points memory space;
wherein the value in the vibration parameter block identification storage space is used to indicate the identification of the first vibration parameter block; the value in the reference point number storage space is used to indicate the number of reference point blocks associated with the vibration event block.
As an alternative embodiment, when the vibration type of the vibration event corresponding to the vibration event block is the second type, the vibration event block is associated with a second vibration parameter block; the second vibration parameter block carries values in at least one of the following memory spaces: the vibration parameter block identifies values in a memory space, values in an event vibration intensity memory space, values in an event vibration frequency memory space;
wherein the value in the vibration parameter block identification storage space is used to indicate the identification of the second vibration parameter block; the value in the event vibration intensity storage space is used for indicating the vibration intensity of the vibration corresponding to the vibration event block; the value in the event vibration frequency storage space is used to indicate the vibration frequency of the vibration to which the vibration event block corresponds.
Based on the same inventive concept, the principle and beneficial effects of the computer device for solving the problems provided in the embodiments of the present application are similar to those of the video processing method in the embodiments of the present application, and may refer to the principle and beneficial effects of implementation of the method, which are not described herein for brevity.
The present application also provides a computer readable storage medium having a computer program stored therein, the computer program being adapted to be loaded by a processor and to perform the video processing method of the above method embodiments.
The present application also provides a computer program product comprising a computer program adapted to be loaded by a processor and to perform the video processing method of the above method embodiments.
Embodiments of the present application also provide a computer program product or computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the video processing method described above.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The modules in the device of the embodiment of the application can be combined, divided and deleted according to actual needs.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program to instruct related hardware, the program may be stored in a computer readable storage medium, and the readable storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
The foregoing disclosure is only a preferred embodiment of the present application, and it is not intended to limit the scope of the claims, and one of ordinary skill in the art will understand that all or part of the processes for implementing the embodiments described above may be performed with equivalent changes in the claims of the present application and still fall within the scope of the claims.

Claims (20)

1. A vibration control method, the method comprising:
responding to the triggering of a parameter generation condition of target vibration, generating a vibration calling parameter corresponding to the target vibration by a vibration calling party according to a reference coding mode, wherein the vibration calling party is provided with a vibration middleware;
Transmitting the vibration calling parameters to the vibration middleware through a vibration parameter interface, transmitting the vibration calling parameters to one or more vibration output parties through the vibration middleware, enabling each vibration output party to analyze the vibration calling parameters, and outputting the target vibration based on analysis results;
wherein the file format of the vibration invocation parameters includes at least one of a HE format and a HEC format, the HEC format being a compressed representation of the HE format.
2. The method of claim 1, wherein if the file format of the vibration invocation parameter does not belong to the target format, the method further comprises:
performing format conversion processing on the vibration calling parameters through the vibration middleware to obtain updated vibration calling parameters;
wherein the file format of the updated vibration calling parameter belongs to the target format.
3. The method of claim 2, wherein the performing, by the vibration middleware, a format conversion process on the vibration call parameter to obtain an updated vibration call parameter includes:
converting the vibration calling parameters through the vibration middleware according to the parameter conversion rules corresponding to the target format; and;
And constructing a parameter conversion result by the vibration middleware according to the data organization form corresponding to the target format to obtain updated vibration calling parameters.
4. A method according to any one of claims 1-3, wherein the file format of the vibration invocation parameters belongs to HE format, the vibration invocation parameters comprising a metadata key pair and a mode key pair, the metadata key pair being used to indicate metadata in the vibration invocation parameters; the mode key pairs are used to indicate vibration modes.
5. The method of claim 4, wherein the value of the metadata key-value pair is used to indicate a digest object comprising at least one key-value pair of: version key value pair, creation time key value pair, description information key value pair;
the version key value pair is used for indicating a version number corresponding to the vibration calling parameter; the creation time key value pair is used for indicating the creation time of the vibration calling parameter; the description information key value pair is used for describing the vibration effect of the vibration calling parameter.
6. The method of claim 4, wherein the pattern key value pair has a value of at least one array element, each array element having a value of one event object; the target event object includes at least one key value pair of: vibration part key value pairs, vibration time key value pairs, duration key value pairs, intensity sign key value pairs, frequency sign key value pairs; the target event object is a value of a target array element, and the target array element is any one of the at least one array element;
Wherein the vibration location key pair is used for indicating a motor called when outputting the vibration indicated by the target event object; the vibration time key value pair is used for indicating the starting time of the vibration indicated by the target event object; the duration key value pair is used for indicating the duration of vibration indicated by the target event object; the intensity indication mode of the intensity sign key value pair for indicating the vibration indicated by the target event object; the frequency flag key value indicates a frequency indication manner of the vibration indicated by the target event object.
7. The method of claim 6, wherein the target event object comprises the intensity flag key value pair and the frequency flag key value pair, and the target event object further comprises a vibration type key value pair and a vibration description parameter key value pair; the vibration type key value pair is used for indicating the type of the vibration indicated by the target event object, and the vibration description parameter key value pair is used for indicating the output mode of the vibration indicated by the target event object;
when the vibration type indicated by the vibration type key value pair is a first type, the target event object indicates the target vibration through at least one reference point, the value of the vibration description parameter key value pair comprises a reference point number key value pair and N reference point group elements, and the value of each reference point group element is one reference point object; the reference point number key value pair is used for indicating the number of reference points associated with the target event object, and N is matched with the number of reference points associated with the target event object; the target reference point object is used for indicating a vibration output parameter associated with a target reference point, the target reference point object is a value of a target reference point group element, and the target reference point group element is any one of the N reference point group elements;
When the vibration type indicated by the vibration type key value pair is a second type, the value of the vibration description parameter key value pair comprises a vibration intensity key value pair and a vibration frequency key value pair; the vibration intensity key pair is used for indicating the intensity of vibration indicated by the target event object, and the vibration frequency key pair is used for indicating the frequency of vibration indicated by the target event object.
8. The method of claim 7, wherein the target reference point object comprises at least one key-value pair of: a reference point time key value pair, a reference point intensity key value pair, a reference point frequency key value pair, and a reference point motor key value pair;
wherein the reference point time key value pair is used for indicating the relative time of the target reference point in the vibration indicated by the target event object; the reference point intensity key value pair is used for indicating the vibration intensity corresponding to the target reference point; the reference point frequency key value pair is used for indicating the vibration frequency corresponding to the target reference point; the reference point motor key value pair is used for indicating a motor corresponding to the reference point, and the priority of the reference point motor key value pair is higher than that of the vibration part key value pair.
9. A method according to any of claims 1-3, wherein the file format of the vibration invocation parameters belongs to the HEC format, the vibration invocation parameters comprising at least one block of: a head information block, a motor information block, a metadata block, a vibration timing block, a vibration event block, a reference point block and a vibration parameter block;
wherein the header information block is used for describing the vibration calling parameter; the motor information block is used for indicating the called motor; the metadata block is used for indicating the abstract of the vibration calling parameter; the vibration timing block is used for indicating the sequence of at least one vibration event; the vibration event block is used for indicating the associated parameters of the vibration event; the reference point block is used for indicating vibration output parameters associated with the reference point; the vibration parameter block is used for indicating descriptive information corresponding to different vibration types; the storage areas corresponding to the blocks are different, each storage area comprises one or more storage spaces, and each storage space corresponds to a preset offset address.
10. The method of claim 9, wherein the header information block carries values in at least one of the following storage spaces: values in the file identity storage space, values in the file data length storage space;
Wherein the value in the file identity storage space is used for indicating the file identity of the vibration calling parameter; the value in the file data length storage space is used to indicate the file data length of the vibration calling parameter.
11. The method of claim 9, wherein the motor information block carries values in at least one of the following memory spaces: a value in a motor information block identification storage space, a value in a motor information block data length storage space, a value in a vibration output side identification storage space, a value in a motor version number storage space, a value in a motor number storage space;
wherein the value in the motor information block identification storage space is used to indicate the identification of the motor information block; the value in the motor information block data length storage space is used for indicating the data length of the motor information block; the value in the vibration output party identification storage space is used for indicating the identification of the vibration output party; the value in the motor version number storage space is used for indicating whether a plurality of motors are required to be called for outputting the target vibration; the value in the motor number storage space is used to indicate the number of motors that the output target vibration is required to invoke.
12. The method of claim 9, wherein the metadata block carries values in at least one of the following storage spaces: the metadata block identifies values in a storage space, values in a storage space of a metadata block data length, values in a vibration calling parameter version number storage space, values in a vibration calling parameter creation time storage space, values in a vibration calling parameter description information storage space;
wherein the value in the metadata block identification storage space is used to indicate the identification of the metadata block; a value in a storage space of the metadata block data length is used to indicate the data length of the metadata block; the value in the vibration calling parameter version number storage space is used for indicating the version number of the vibration calling parameter; the value in the vibration calling parameter creation time storage space is used for indicating the creation time of the vibration calling parameter; the values in the vibration calling parameter description information storage space are used for indicating the description information of the vibration calling parameters.
13. The method of claim 9, wherein the vibration timing block carries values in at least one of the following memory spaces: the vibration timing block identifies values in the memory space, and the vibration timing block data length stores values in the memory space;
Wherein the value in the vibration timing block identification storage space is used to indicate the identification of the vibration timing block; the value in the vibration timing block data length storage space is used to indicate the data length of the vibration timing block.
14. The method of claim 13, wherein the vibration timing block is associated with at least one vibration event block, each vibration event block having a different corresponding memory region; each vibration event block carries values in at least one of the following memory spaces: the vibration event block identification storage space, the vibration event type storage space, the vibration event block number storage space, the motor identification storage space, the vibration event start time storage space, the vibration event duration storage space, the vibration intensity flag storage space, and the vibration frequency flag storage space;
wherein the value in the vibration event block identification storage space is used to indicate the identification of the vibration event block; the value in the vibration event type storage space is used for indicating the vibration type of the vibration corresponding to the vibration event block; the value in the vibration event block number storage space is used to indicate the number of the vibration event block; the value in the motor identification storage space is used for indicating a motor required to be called for outputting the vibration corresponding to the vibration event block; the value in the vibration event start time storage space is used for indicating the start time of vibration corresponding to the vibration event block; the value in the vibration event duration storage space is used for indicating the duration of vibration corresponding to the vibration event block; the value in the vibration intensity sign storage space is used for indicating a vibration intensity indication mode of vibration corresponding to the vibration event block; the value in the vibration frequency flag storage space is used for indicating a vibration frequency indication mode of vibration corresponding to the vibration event block.
15. The method of claim 14, wherein when the vibration type of the vibration corresponding to the vibration event block is a first type, the vibration event block is associated with at least one reference point block, each reference point block corresponding to a different storage area, each reference point block carrying a value in at least one of the following storage spaces: the reference point block identification storage space, the reference point block sequence number storage space, the motor sequence number storage space, the reference point start time storage space, the reference point vibration intensity storage space and the reference point vibration frequency storage space;
wherein the value in the reference point block identity storage space is used to indicate the identity of the reference point block; the value in the reference point block sequence number storage space is used for indicating the sequence number of the reference point block; the value in the motor number storage space is used for indicating a motor required to be called for outputting vibration corresponding to the reference point block; the value in the reference point start time storage space is used for indicating the start time of vibration corresponding to the reference point block; the value in the reference point vibration intensity storage space is used for indicating the vibration intensity of the vibration corresponding to the reference point block; the value in the reference point vibration frequency storage space is used for indicating the vibration frequency of the vibration corresponding to the reference point block.
16. The method of claim 15, wherein the vibration event block is further associated with a first vibration parameter block, the first vibration parameter block carrying values in at least one of the following memory spaces: the vibration parameter block identifies values in the memory space, and references values in the number of points memory space;
wherein the value in the vibration parameter block identification storage space is used to indicate the identification of the first vibration parameter block; the value in the reference point number storage space is used to indicate the number of reference point blocks associated with the vibration event block.
17. The method of claim 14, wherein when the vibration type of the vibration event corresponding to the vibration event block is a second type, the vibration event block is associated with a second vibration parameter block; the second vibration parameter block carries values in at least one of the following memory spaces: the vibration parameter block identifies values in a memory space, values in an event vibration intensity memory space, values in an event vibration frequency memory space;
wherein the value in the vibration parameter block identification storage space is used to indicate the identification of the second vibration parameter block; the value in the event vibration intensity storage space is used for indicating the vibration intensity of the vibration corresponding to the vibration event block; the value in the event vibration frequency storage space is used for indicating the vibration frequency of the vibration corresponding to the vibration event block.
18. A vibration control device, characterized by comprising:
the processing unit is used for responding to the triggering of the parameter generation condition of the target vibration, and generating a vibration calling parameter corresponding to the target vibration by a vibration calling party according to a reference coding mode, wherein the vibration calling party is provided with a vibration middleware;
a transmitting unit, configured to transmit the vibration calling parameter to the vibration middleware through a vibration parameter interface, so as to transmit the vibration calling parameter to one or more vibration exporters through the vibration middleware, and enable each vibration exporter to analyze the vibration calling parameter, and output the target vibration based on an analysis result;
wherein the file format of the vibration invocation parameters includes at least one of a HE format and a HEC format, the HEC format being a compressed representation of the HE format.
19. A computer device, comprising: a memory and a processor;
a memory in which a computer program is stored;
a processor for loading the computer program to implement the vibration control method as claimed in any one of claims 1 to 17.
20. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program adapted to be loaded by a processor and to perform the vibration control method according to any one of claims 1-17.
CN202310030099.9A 2022-09-19 2022-09-19 Vibration control method, device, equipment and computer readable storage medium Pending CN117762532A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310030099.9A CN117762532A (en) 2022-09-19 2022-09-19 Vibration control method, device, equipment and computer readable storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202310030099.9A CN117762532A (en) 2022-09-19 2022-09-19 Vibration control method, device, equipment and computer readable storage medium
CN202211136014.7A CN115202767B (en) 2022-09-19 2022-09-19 Vibration control method, device, equipment and computer readable storage medium

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN202211136014.7A Division CN115202767B (en) 2022-09-19 2022-09-19 Vibration control method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN117762532A true CN117762532A (en) 2024-03-26

Family

ID=83573707

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202310030099.9A Pending CN117762532A (en) 2022-09-19 2022-09-19 Vibration control method, device, equipment and computer readable storage medium
CN202211136014.7A Active CN115202767B (en) 2022-09-19 2022-09-19 Vibration control method, device, equipment and computer readable storage medium

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202211136014.7A Active CN115202767B (en) 2022-09-19 2022-09-19 Vibration control method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (2) CN117762532A (en)

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003300015A (en) * 2002-04-05 2003-10-21 Nec Tokin Corp Method for driving vibration actuator, and portable device
US20200064444A1 (en) * 2015-07-17 2020-02-27 Origin Wireless, Inc. Method, apparatus, and system for human identification based on human radio biometric information
CN103870492B (en) * 2012-12-14 2017-08-04 腾讯科技(深圳)有限公司 A kind of date storage method and device based on key row sequence
KR101925034B1 (en) * 2017-03-28 2018-12-04 엘지전자 주식회사 Smart controlling device and method for controlling the same
CN109240617A (en) * 2018-09-03 2019-01-18 郑州云海信息技术有限公司 Distributed memory system write request processing method, device, equipment and storage medium
CN110022495B (en) * 2019-03-28 2021-07-23 海信视像科技股份有限公司 Method for pushing media file to display device by mobile terminal and display device
CN110597393B (en) * 2019-09-18 2023-05-05 Oppo(重庆)智能科技有限公司 Motor vibration control method and device and computer readable storage medium
CN111568584A (en) * 2020-05-14 2020-08-25 无锡青禾小贝科技有限公司 Control method and device based on vibration strength of toothbrush motor
CN112121411A (en) * 2020-09-18 2020-12-25 腾讯科技(深圳)有限公司 Vibration control method, device, electronic equipment and computer readable storage medium
CN113822017A (en) * 2021-06-03 2021-12-21 腾讯科技(深圳)有限公司 Audio generation method, device, equipment and storage medium based on artificial intelligence
CN114740981B (en) * 2022-04-25 2023-06-30 腾讯科技(深圳)有限公司 Information processing method, information processing apparatus, readable medium, electronic device, and program product
CN115047972A (en) * 2022-06-16 2022-09-13 腾讯科技(深圳)有限公司 Vibration control method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN115202767B (en) 2022-11-25
CN115202767A (en) 2022-10-18

Similar Documents

Publication Publication Date Title
KR102196192B1 (en) Transmission resource indication method, base station, user terminal and system
US10785630B2 (en) Method and apparatus for low energy discovery
US20140059235A1 (en) Method and apparatus for utilizing advertisements to provide information regarding connection setup
CN111954051B (en) Method and system for transmitting video and audio data, cloud server and storage medium
CN109831746B (en) Method and device for data transmission based on Bluetooth broadcast and Bluetooth equipment
JP5753946B2 (en) Method and system for downloading font files
CN109120687B (en) Data packet transmitting method, device, system, equipment and storage medium
CN111865952A (en) Data processing method, data processing device, storage medium and electronic equipment
CN113162977B (en) Information processing method and device, equipment and storage medium
CN117762532A (en) Vibration control method, device, equipment and computer readable storage medium
CN111562949B (en) Model file loading method and device
CN110851327A (en) Hardware state information acquisition method and device, terminal and readable storage medium
CN110347949A (en) Webpage loading method, device, electronic equipment and computer readable storage medium
CN109145619A (en) A kind of Android application resource reinforcement means and system
CN113805854A (en) Method, system and device for realizing Hook of application layer based on Linux system and storage medium
CN114661762A (en) Query method and device for embedded database, storage medium and equipment
CN113467823A (en) Configuration information acquisition method, device, system and storage medium
CN104572316A (en) Game program and running platform interaction method and system
CN115083572B (en) Picture storing and extracting method, system, equipment and medium
CN113075993B (en) Video display method, device, storage medium and electronic equipment
CN115586829B (en) Haptic vibration control method, haptic vibration control device, electronic apparatus, and storage medium
CN107930112A (en) Game data-transmission method and device
CN108964884A (en) Generation method, storage medium, electronic equipment and the system of mobile terminal dynamic password
CN110890957B (en) Key security device interaction method, electronic device and storage medium
EP4304167A1 (en) Electronic device carrying out video call by using frc, and operation method for electronic device

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