CN115591226B - Service processing method, device, equipment and medium - Google Patents
Service processing method, device, equipment and medium Download PDFInfo
- Publication number
- CN115591226B CN115591226B CN202110776292.8A CN202110776292A CN115591226B CN 115591226 B CN115591226 B CN 115591226B CN 202110776292 A CN202110776292 A CN 202110776292A CN 115591226 B CN115591226 B CN 115591226B
- Authority
- CN
- China
- Prior art keywords
- vibration
- target
- information
- mode
- priority
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/25—Output arrangements for video game devices
- A63F13/28—Output arrangements for video game devices responding to control signals received from the game device for affecting ambient conditions, e.g. for vibrating players' seats, activating scent dispensers or affecting temperature or light
- A63F13/285—Generating tactile feedback signals via the game input device, e.g. force feedback
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/016—Input arrangements with force or tactile feedback as computer generated output to the user
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the application provides a service processing method, a device, equipment and a medium, wherein the method comprises the following steps: identifying a target service scene in a target application; if the target service scene comprises a target vibration object to be vibrated, a vibration description file of the target service scene is obtained; acquiring the working state of a target vibration device matched with a target vibration object in terminal equipment; generating vibration indication information based on a vibration mode of the target vibration object and an operation state of the target vibration device; and sending the vibration indication information and the vibration description file to the terminal equipment so that the terminal equipment drives the target vibration device to vibrate according to the vibration indication information and the vibration description file under the target service scene. By adopting the embodiment of the application, the authenticity of the vibration effect can be improved.
Description
Technical Field
The present application relates to the field of computer technology, and in particular, to the field of application programs, and more particularly, to a service processing method, a service processing apparatus, a service processing device, and a computer readable storage medium.
Background
In many application scenarios (e.g., music playing scenarios, alert event scenarios, game scenarios, etc.), a terminal device (e.g., a smart phone) may turn on a vibration function to bring a vibration experience to a user. The prior art supports vibrating a single vibrating object.
However, it is found in practice that there may be multiple vibration objects in a real physical environment at the same time, such as a scene where a player drives and opens a gun at the same time in a game, and in this scene, if the player can only feel a single vibration, the experience is incomplete. So with the increasing abundance of haptic scenes and play, in some more complex scenes, it is necessary to trigger a variety of different vibration effects. Therefore, how to control the vibration device to vibrate to achieve the purpose of enriching the vibration effect becomes a hot problem of research.
Disclosure of Invention
The embodiment of the application provides a service processing method, device, equipment and medium, which can improve the authenticity and flexibility of a vibration effect.
In one aspect, an embodiment of the present application provides a service processing method, where the method includes:
identifying a target service scene in a target application;
if the target service scene comprises a target vibration object to be vibrated, a vibration description file of the target service scene is obtained, the vibration description file of the target service scene comprises vibration parameters of the target vibration object in the target service scene, and the vibration parameters of the target vibration object comprise vibration modes of the target vibration object; the vibration mode of the target vibration object comprises a preemption mode or an superposition mode;
Acquiring the working state of a target vibration device matched with a target vibration object in terminal equipment;
generating vibration indication information based on a vibration mode of the target vibration object and an operation state of the target vibration device;
and sending the vibration indication information and the vibration description file to the terminal equipment so that the terminal equipment drives the target vibration device to vibrate according to the vibration indication information and the vibration description file under the target service scene.
In one aspect, an embodiment of the present invention provides another service processing method, where the method includes:
receiving a vibration description file and vibration indication information of a target service scene sent by a target application, wherein the vibration description file and the vibration indication information of the target service scene are sent when the target application identifies that a target vibration object needing to be vibrated is included in the target service scene, the vibration description file comprises vibration parameters of the target vibration object, the vibration parameters of the target vibration object comprise vibration modes of the target vibration object, and the vibration modes comprise a preemption mode or a superposition mode;
the vibration indication information is generated based on a vibration mode of the target vibration object and an operating state of a target vibration device, the target vibration device being a vibration device that matches the target vibration object;
And positioning the target vibration device from M vibration devices, and driving the target vibration device to vibrate according to the vibration indication information and the vibration description file under the target service scene.
In one aspect, an embodiment of the present application provides a service processing method, where the method includes:
when a target vibration object needing to vibrate exists in a target service scene of a target application, acquiring a vibration description file of the target service scene; the vibration description file of the target service scene comprises vibration parameters of the target vibration object, the vibration parameters of the target vibration object comprise vibration modes of the target vibration object, and the vibration modes of the target vibration object comprise a preemption mode or a superposition mode;
acquiring the working state of a target vibration device matched with the target vibration object, and generating vibration indication information based on the vibration mode of the target vibration object and the working state of the target vibration device;
and driving the target vibration device to vibrate according to the vibration indication information and the vibration description file under the target service scene.
In one aspect, an embodiment of the present application provides a service processing apparatus, including:
The processing unit is used for identifying a target service scene in the target application;
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a vibration description file of a target service scene if the target service scene comprises a target vibration object to be vibrated, the vibration description file of the target service scene comprises vibration parameters of the target vibration object in the target service scene, and the vibration parameters of the target vibration object comprise vibration modes of the target vibration object; the vibration mode of the target vibration object comprises a preemption mode or an superposition mode;
the acquisition unit is also used for acquiring the working state of the target vibration device matched with the target vibration object in the terminal equipment;
the processing unit is further used for generating vibration indication information based on the vibration mode of the target vibration object and the working state of the target vibration device;
the processing unit is further used for sending the vibration indication information and the vibration description file to the terminal equipment, so that the terminal equipment drives the target vibration device to vibrate according to the vibration indication information and the vibration description file under the target service scene.
In one implementation, the processing unit is further configured to:
configuring a vibration description file of a target vibration object according to scene requirements of a target service scene;
The vibration parameters of the target vibration object further comprise attribute parameters of the target vibration object and control parameters of the target vibration object; the attribute parameters include any of the following: position information, motion information, and vibration priority; the control parameters include at least one of: vibration start time, vibration duration, vibration end time, vibration frequency, vibration intensity.
In one implementation manner, the processing unit is configured to, when acquiring a working state of a target vibration device in the terminal device, where the working state is adapted to a target vibration object, specifically be configured to:
acquiring M vibration device information of M vibration control devices reported by a terminal device, wherein the vibration device information of one vibration control device comprises a position range of the vibration control device responsible for vibration management and a working state of the vibration device;
and determining a target vibration device responsible for managing the vibration of the target vibration object according to the position information and the M vibration device information included in the vibration parameters of the target vibration object, and acquiring the working state of the target vibration device.
In one implementation, the vibration indication information includes fused vibration information, and the processing unit is configured to, when generating the vibration indication information based on a vibration mode of the target vibration object and an operation state of the target vibration device, specifically:
If the working state of the target vibration device is that the first vibration object is executing the vibration, the vibration mode of the target vibration object comprises a superposition mode, and the vibration mode of the first vibration object is acquired;
if the vibration mode of the first vibration object is the superposition mode, generating fusion vibration information, wherein the fusion vibration information is used for indicating the terminal equipment to drive the target vibration device to perform fusion vibration on the first vibration object and the target vibration object.
In one implementation, the vibration indication information includes first priority vibration information, and the processing unit is configured to, when generating the vibration indication information based on a vibration mode of the target vibration object and an operation state of the target vibration device, specifically:
and if the working state of the target vibration device is that the first vibration object is executing the vibration, the vibration mode of the target vibration object comprises a superposition mode, the vibration mode of the first vibration object is a preemption mode, first priority vibration information is generated, and the first priority vibration information is used for indicating the terminal equipment to select to drive the target vibration device to vibrate the first vibration object or vibrate the target vibration object according to the vibration priority of the first vibration object and the vibration priority of the target vibration object.
In one implementation, the vibration indication information includes second priority vibration information, and the processing unit is configured to, when generating the vibration indication information based on the vibration mode of the target vibration object and the operation state of the target vibration device, specifically:
and if the working state of the target vibration device is that the first vibration object is executing, and the vibration mode of the target vibration object comprises a preemption mode, generating second priority vibration information, wherein the second priority vibration information is used for indicating the terminal equipment to select to drive the target vibration device to vibrate the first vibration object or vibrate the target vibration object according to the vibration priority of the first vibration object and the vibration priority of the target vibration object.
In one implementation, the vibration indication information includes individual vibration information, and the processing unit is configured to, when generating the vibration indication information based on the vibration mode of the target vibration object and the operation state of the target vibration device, specifically:
and if the working state of the target vibration device is an idle state, generating independent vibration information, wherein the independent vibration information is used for indicating the terminal equipment to drive the target vibration device to vibrate the target vibration object.
In one implementation, the target application comprises a gaming application, and the target business scenario is any one of the gaming scenarios in the gaming application.
In one aspect, an embodiment of the present application provides a service processing apparatus, including:
the receiving unit is used for receiving a vibration description file and vibration indication information of a target service scene sent by a target application, wherein the vibration description file and the vibration indication information of the target service scene are sent when the target application identifies that the target service scene comprises a target vibration object needing to be vibrated, the vibration description file comprises a vibration parameter of the target vibration object, the vibration parameter of the target vibration object comprises a vibration mode of the target vibration object, and the vibration mode comprises a preemption mode or a superposition mode;
the vibration instruction information is generated based on a vibration mode of a target vibration object and an operation state of a target vibration device, the target vibration device being a vibration control device that matches the target vibration object;
and the processing unit is used for positioning the target vibration device from the M vibration control devices and driving the target vibration device to vibrate according to the vibration indication information and the vibration description file under the target service scene.
In one implementation, the vibration parameters include attribute parameters and control parameters of the target vibration object; the attribute parameters include any of the following: position information, motion information, and vibration priority; the control parameters of the target vibration object include at least one of: vibration start time, vibration duration, vibration end time, vibration frequency, vibration intensity.
In one implementation, the attribute parameter includes location information of the target vibration object, and the processing unit is configured to, when locating the target vibration device from the M vibration control devices, specifically:
obtaining M vibration device information of M vibration control devices, wherein one vibration device information comprises a position range of the vibration control device responsible for vibration management;
and determining a target vibration device responsible for managing the vibration of the target vibration object according to the position information of the target vibration object and the M vibration device information.
In one implementation manner, the vibration indication information includes fusion vibration information, where the fusion vibration information is used to instruct the terminal device to drive the target vibration device to perform fusion vibration on the first vibration object and the target vibration object, and the first vibration object is a vibration object corresponding to the vibration being performed by the target vibration device;
The processing unit is used for driving the target vibration device to vibrate according to the vibration indication information and the vibration description file in the service scene, and is specifically used for:
acquiring control parameters of the first vibration object from vibration parameters of the first vibration object;
fusing the control parameters of the first vibration object and the control parameters of the target vibration object to obtain new control parameters;
and driving the target vibration device to vibrate based on the new control parameters under the target service scene.
In one implementation manner, the vibration indication information includes first priority vibration information or second priority vibration information, and the first priority vibration information and the second priority vibration information are used for indicating that the driving target vibration device vibrates the first vibration object or vibrates the target vibration object according to the vibration priority of the first vibration object and the vibration priority of the target vibration object;
the processing unit is used for driving the target vibration device to vibrate according to the vibration indication information and the vibration description file in the target service scene, and is specifically used for:
acquiring the vibration priority of the first vibration object from the control parameters of the first vibration object, and acquiring the vibration priority of the target vibration object from the control parameters of the target vibration object;
If the vibration priority of the first vibration object is different from the vibration priority of the target vibration object, driving the target vibration device to vibrate according to the control parameter corresponding to the vibration object with higher vibration priority under the target service scene;
if the vibration priority of the first vibration object is the same as that of the target vibration object, driving the target vibration device to vibrate according to the control parameter of the first vibration object or vibrate according to the control parameter of the target vibration object in the target service scene.
In one implementation manner, the vibration indication information includes separate vibration information, where the separate vibration information is used to instruct the terminal device to drive the target vibration device to vibrate the target vibration object, and the processing unit is used when driving the target vibration device to vibrate according to the vibration indication information and the vibration description file in the target service scene, and specifically is used to:
and driving the target vibration device to vibrate according to the control parameters of the target vibration device under the target service scene.
In one aspect, an embodiment of the present application provides a service processing apparatus, including:
a processor adapted to execute a computer program;
A computer readable storage medium having a computer program stored therein, which when executed by a processor, implements a business processing method as described above.
In one aspect, embodiments of the present application provide a computer readable storage medium storing a computer program adapted to be loaded by a processor and to perform a business processing method as described above.
In one aspect, embodiments of the present application provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the service processing device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the service processing device performs the service processing method described above.
In the embodiment of the application, after the target application identifies that the target vibration object to be vibrated exists in the target service scene, the vibration indication information can be generated by combining the working state of the target vibration device matched with the target vibration object, so that the terminal equipment can drive the target vibration device to vibrate according to the vibration indication information and the vibration description of the target vibration object. In the scheme, the target application can send the vibration indication information to the terminal equipment, so that the terminal equipment determines how to drive the target vibration device to vibrate based on the vibration indication information, the vibration mode is enriched, and meanwhile, the vibration generated in the target service scene is accurately executed, so that the effect of simulating the target service scene in the real physical environment by driving the vibration device to vibrate through the terminal equipment is achieved, the integrity of the vibration experience of a target user is improved, and the reality and the flexibility of the vibration effect are improved.
Drawings
In order to more clearly illustrate the embodiments of the application 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 application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1a illustrates a schematic architecture of a business processing system provided in accordance with an exemplary embodiment of the present application;
FIG. 1b illustrates a schematic view of a business process scenario provided by an exemplary embodiment of the present application;
fig. 2 is a flow chart of a service processing method according to an exemplary embodiment of the present application;
FIG. 3a illustrates a schematic view of a target business scenario provided by an exemplary embodiment of the present application;
FIG. 3b illustrates a schematic view of a target business scenario provided by an exemplary embodiment of the present application;
fig. 4 is a schematic diagram showing a terminal device configured with a plurality of vibration apparatuses according to an exemplary embodiment of the present application;
fig. 5 is a schematic flow chart of a service processing method according to an exemplary embodiment of the present application;
FIG. 6 illustrates a schematic diagram of a vibration waveform provided by an exemplary embodiment of the present application;
FIG. 7 illustrates a schematic diagram of a fusion process of vibration waveforms provided by an exemplary embodiment of the present application;
FIG. 8a is a flow chart illustrating a method for service processing according to an exemplary embodiment of the present application;
FIG. 8b is a flow chart illustrating a method for service processing according to an exemplary embodiment of the present application;
fig. 9 is a schematic structural diagram of a service processing apparatus according to an exemplary embodiment of the present application;
fig. 10 is a schematic structural view of a service processing apparatus according to an exemplary embodiment of the present application;
fig. 11 is a schematic structural diagram of a service processing device according to an exemplary embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Technical terms and concepts related to the embodiments of the present application are briefly described below, in which:
the vibration function is a function provided by the terminal device to cause vibration of a vibration means such as a motor, a vibration sensor or a motor in the terminal device. Specifically, a vibration device (such as a motor or a motor) and an eccentric wheel are configured in the terminal device, and when a service scene needing to vibrate exists or a vibration object needing to vibrate exists in a certain service scene, the terminal device can start the motor to drive the eccentric wheel to rotate, so that the vibration effect is generated in the target service scene. The service scenario may be generated by a system of the terminal device itself; for example: the service scene comprises a scene of alarm clock vibration in the terminal equipment, and the following is: the service scenario includes a scenario in which the terminal device outputs an alarm event, and so on. Alternatively, the service scenario may be generated by a target application running in the terminal device (the target application refers to any application program running in the terminal device, such as a game application); for example: the target application running in the terminal device includes a game application (e.g., a game application of the athletic class), then the game application may provide a plurality of business scenarios (or referred to as game scenarios), for example, the business scenarios may include a scenario in which a game character drives a vehicle (e.g., an automobile, a boat, etc.), a scenario in which a game character fires with a weapon, a scenario in which a game character hops, … …, etc. The game application may be Cloud game, which may also be referred to as game on Demand (game on Demand), an online game technology based on Cloud computing technology. Cloud gaming technology enables lightweight devices (Thin clients) with relatively limited graphics processing and data computing capabilities to run high quality games. In a cloud game scene, the game is not run in a terminal used by a game player, but is run in a cloud server; the cloud server renders the game scene into a video and audio stream and transmits the video and audio stream to the terminal of the game player through the communication network. The terminal of the game player does not need to have strong graphic processing and data computing capabilities, and only needs to have basic streaming media playing capabilities and the capabilities of acquiring instructions input by the game player and sending the instructions input by the game player to the cloud server. It should be noted that, the above description is given by taking an example that the target application includes a game application (such as a cloud game), and the category of the target application and the corresponding service scenario mentioned in the embodiment of the present application are not limited, for example, the target application running in the terminal device may also include a live broadcast application, a music application, and the service scenario provided by the target application may also include a live broadcast scenario, a music scenario, and the like; for convenience of description, the following description will take a game application as a target application, and a service scenario is described by taking a game scenario provided by the target application (i.e., a game application) as an example.
The target application is also called a target application program, and the target application program can be any application program running in the terminal device. An application may refer to a computer program that performs some particular task or tasks. Classifying the application programs according to different dimensions (such as running modes, functions and the like of the application programs), and obtaining types of the same application program under different dimensions, wherein: the applications may include, but are not limited to, by way of their manner of operation: (1) a client, a so-called client (also referred to as an application client, APP client), refers to an application installed and running in a terminal. (2) An application may also refer to an installation-free application, i.e., an application that can be used without downloading an installation, such an application is also commonly referred to as an applet, which typically runs as a sub-program in a client. (3) An application may also refer to a web application that is opened through a browser; etc. Applications may include, but are not limited to, by functional type of application: (1) IM (Instant Messaging ) applications, which refer to internet-based applications that communicate messages and social interactions in an instant. (2) Content interaction applications, which refer to applications that enable content interactions, such as social applications. It should be noted that, the target application mentioned later in the embodiment of the present application may be any one of three application programs classified according to the operation mode, or may be any one of two application programs classified according to the function type; the embodiment of the application does not limit the type of the target application.
Based on the foregoing, an embodiment of the present application proposes a service processing scheme, where, in a target service scenario where a target vibration object to be vibrated exists, a target application obtains a vibration description file corresponding to the target service scenario, where the vibration description file includes vibration parameters, such as location information, vibration frequency, vibration intensity, vibration priority, and vibration mode, of the target vibration object; further, the target application may generate vibration indication information for indicating to the terminal device how to drive the target vibration device to vibrate based on the vibration description file, based on the vibration pattern of the target vibration object and the operation state of the target vibration device in the terminal device that matches the target vibration object.
Specifically, assuming that the operation state of the target vibration device is in a state of executing the vibration of the first vibration object, the vibration instruction information may instruct the terminal device to drive the target vibration device to perform the fusion vibration of the first vibration object and the target vibration object, or instruct the terminal device to drive the target vibration device to vibrate the target vibration object, or vibrate the first vibration object.
In the business processing process, when the vibration of the target vibration object needs to be executed, the target application not only sends the vibration description file to the terminal equipment, but also sends the vibration indication information, so that when the target vibration device matched with the target vibration object is in a busy state (or called vibration state), that is, when the vibration of other vibration objects is being executed, the terminal equipment can accurately control the target vibration device to vibrate according to the vibration indication information, vibration control modes are enriched, and therefore vibration effects can be enriched.
In order to better understand the service processing scheme provided by the embodiment of the present application, the following is a brief description of the service processing scheme related to the embodiment of the present application with reference to the service processing system provided in fig. 1 a; as shown in fig. 1a, the service processing system includes a terminal device 101, a target application 102 deployed in the terminal device 101, and a background server 103 of the target application 102; the number and types of the terminal equipment, the target application and the background server contained in the service processing system are not limited in the embodiment of the application, and are described herein.
The terminal device 101 may include, but is not limited to: smart phones (such as Android phones, iOS phones, etc.), tablet computers, portable personal computers, mobile internet devices (MID for short), vehicle-mounted devices, head-mounted devices, etc., the embodiments of the present application do not limit the types of terminal devices, and are described herein. Wherein, at least one vibration device is disposed in the terminal device 101, when the terminal device 101 receives the vibration instruction information about the target service scene and the vibration description file of the target vibration object issued by the target application 102, the terminal device 101 may locate the target vibration device matching with the target vibration object from the at least one vibration device, and then drive the target vibration device to vibrate according to the vibration description file according to the vibration instruction information in the target service scene.
The target application 102 may be the aforementioned game application, music application, content interaction application, and so forth. The target application 102 may identify a service scenario (e.g., a target service scenario), obtain a vibration description file corresponding to the service scenario, generate vibration indication information of a target vibration object in the target service scenario based on a vibration mode included in the vibration description file and a working state of a target vibration device in the terminal device, which is matched with the target vibration object in the service scenario, and send the vibration indication information and the vibration description file to the terminal device 101.
The background server 103 is a server of the target application 102 in the terminal device 101 for interacting with the terminal device 101 to provide computing and application service support for the target application 102 in the terminal device 101. The server 101 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, basic cloud computing services such as big data and artificial intelligence platforms, and the like. The terminal device and the background server may be directly or indirectly connected through wired or wireless communication, which is not limited herein.
The following is a brief description of a service processing scenario according to the embodiment of the present application, with reference to fig. 1a and fig. 1b, and taking a target application as a game application and a target service scenario as a game scenario as an example. As shown in fig. 1b, assume that the target application 102 deployed in the terminal device 101 recognizes that the target traffic scenario is: a game scene in which the game character drives the vehicle 104 to travel on the hillside 105; determining that a target vibration object to be vibrated in the game scene is the carrier 104, and then the target application 102 acquires a vibration description file corresponding to the game scene, wherein the vibration description file comprises vibration parameters of the carrier 104, and the vibration parameters comprise vibration modes of the carrier 104, such as a superposition mode or a preemption mode; further, the working state of the target vibration device matched with the carrier 104 is obtained, and vibration indication information is generated based on the vibration mode and the working state; transmitting the vibration instruction information and the vibration description file of the carrier 104 to the terminal device 101; the terminal device 101 drives the adapted target vibration device to vibrate according to the vibration indication information and the vibration description file corresponding to the game scene in the target service scene, and the generated vibration effect is an effect of simulating the driving of the carrier by the target user on the hillside in the real physical environment, and is a jolt effect generated when the carrier (such as an automobile) is driven on the hillside.
It may be understood that the schematic diagram of the system architecture described in the embodiment of the present application is for more clearly describing the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided by the embodiment of the present application, and those skilled in the art can know that, with the evolution of the system architecture and the appearance of a new service scenario, the technical solution provided by the embodiment of the present application is equally applicable to similar technical problems.
Based on the above-described service processing scheme, the embodiment of the present application proposes a more detailed service processing method, and the service processing method proposed by the embodiment of the present application will be described in detail below with reference to the accompanying drawings. Referring to fig. 2, fig. 2 is a schematic flow chart of a service processing method according to an exemplary embodiment of the present application; the service processing method may be performed by the target application, or when the target application is a cloud game application, the service processing method may be performed by a service processing device corresponding to the cloud game application, which may refer to a cloud game server. In the following description, the service processing method is executed by the target application as an example description. The scheme may include steps S201-S204, wherein:
S201, identifying a target service scene in the target application.
As described above, the target application may include a game application, and then the target service scenario is any game scenario in the game application; for example: the game application is a game application of the athletic class, and the target service scene is any game scene provided by the game application of the athletic class, such as a game scene of a game character gun. Of course, the target application may also include other applications, for example, the target application includes a live application, where the target service scene is any live scene in the live service, and the live scene may include, but is not limited to: video live scenes, audio live scenes, etc. It should be noted that, the embodiment of the present application does not limit the target application and the target service scenario, and when the target application changes, the target service scenario also changes along with the type of the target application. In a specific implementation, when a target user opens and uses a target application, the target application begins to identify a target business scenario.
In the following, referring to fig. 3a, taking a target application as a game application and a target service scene as a game scene as an example, an interface schematic diagram of identifying the target service scene by the target application is described. As shown in fig. 3a, when a game application is opened and run, a game interface 301 is displayed in a terminal screen of a terminal device, and a carrier 302 and a start carrier option 303 are included in the game interface 301; when the start vehicle option 303 is triggered, the game object driving vehicle 302 may be triggered to run to simulate the running process of the user driving vehicle, and the running of the game object driving vehicle is a game scene. Then the target application recognizes that the target user entered the game scenario when launch vehicle option 303 is triggered. Of course, the operation of triggering the launch vehicle option 303 may include, in addition to the clicking operation described above: voice operation, gesture operation, key operation, etc., the embodiment of the present application is not particularly limited.
S202, if the target service scene comprises a target vibration object needing to be vibrated, a vibration description file of the target service scene is obtained.
An exemplary description will be given of a target vibration object to be vibrated included in a target service scenario with reference to fig. 3b, and as shown in fig. 3b, assuming that a target application is a game application, the target service scenario is a gun-holding shooting game scenario in the game application, where the gun-holding shooting game scenario may specifically include: game character 304 shoots with firearm 305; in a real gun-holding shooting scene, a gun can generate a larger vibration effect when a gun is started, so that a target vibration object needing to vibrate in the gun-holding shooting game scene is determined to be the gun; therefore, the vibration effect of the gun is generated in the gun-holding shooting game scene, the effect of shooting in the real physical environment can be simulated, and the game experience of the user is improved.
The vibration description file of the target service scene comprises vibration parameters of the target vibration object in the target service scene, wherein the vibration parameters of the target vibration object can be seen in the following table 1.
TABLE 1
As shown in table 1, the vibration description file of the target service scenario may include a plurality of fields for storing different vibration parameters of the target vibration object, and the description file of the vibration description may further include a meaning description of the vibration parameters stored in each field and a data type of the vibration parameters stored in each field. For example, the vibration parameters of the target vibration object may include: attribute parameters and control parameters of the target vibration object; the attribute parameters include any of the following: positional information (e.g., vibration source coordinates, i.e., the position of the target vibration object at the start of vibration), motion information (e.g., the target vibration object moves along the X-axis direction), vibration priority, and vibration mode; the control parameters include at least one of: vibration start time, vibration duration, vibration end time, vibration frequency, vibration intensity, etc.
The position information of the target vibration object may be stored in a coordinate field, the position information of the target vibration object may be identified by coordinates of the vibration object in the target service scene, the meaning of the vibration parameter stored in the coordinate field is the coordinate of the target vibration object or may also be called as the coordinate of the vibration source, and the data type to which the coordinate of the vibration source belongs is integer two-dimensional data; for another example, the vibration pattern of the target vibration object may be stored in a vibration pattern field, and in general, the vibration pattern is stored in the vibration pattern field in such a manner that: a value corresponding to one vibration mode is preset, the value corresponding to the vibration mode corresponding to the target vibration object is stored in a vibration mode field, and under normal conditions, the value corresponding to the preemption mode can be set to be 0, and the value corresponding to the superposition mode is set to be 1; therefore, the data type to which the content stored in the vibration mode field belongs is integer, and the numerical value corresponding to the superimposition mode and the numerical value corresponding to the preemption mode can be shown in the meaning description corresponding to the vibration mode field.
The superposition mode refers to that different vibration objects can vibrate in a fusion mode, and the vibration effect caused by resonance of a plurality of vibration objects in a real physical environment can be simulated. The preemption mode refers to that different vibration objects can not be overlapped in a fusion way, and only one vibration object can be selected to vibrate according to the vibration priority of each vibration object; for example, a vibration object having the highest vibration priority is selected from among a plurality of vibration objects to vibrate.
Specifically, the vibration description file of the target service scene may be configured by service personnel according to the scene requirement of the target service scene; namely, the service personnel can configure the vibration description file of the target service scene according to the scene requirement of the target service scene. Thus, the vibration effect of the object corresponding to the target vibration object in the real physical environment can be simulated. The vibration modes in the vibration parameters of the configuration target vibration object and the vibration priorities in the vibration parameters of the configuration target vibration object are given as examples, and the vibration description file of the configuration target service scene is exemplarily introduced.
(1) And configuring the vibration mode of the target vibration object according to the scene requirement of the service scene. For example: in a real physical environment, a vibration object-carrier (such as a car, a ship, an airplane and the like) can be often overlapped with other vibration objects (such as hills, sand, hills, rivers and the like) to output a vibration effect, and based on the vibration object-carrier, the vibration object-carrier can be arranged in a game application, wherein the vibration mode of the vibration object-carrier, the vibration mode of the hills, the vibration mode of the river and the like can be set to be an overlapped mode, so that when a target application recognizes a service scene of driving the carrier on the hills, a user can experience a bumpy feel caused when the carrier drives on the hills. And the following steps: in a real physical environment, the vibration effect of the vibration object-firearm (such as a rifle, a submachine gun and the like) is often brought to a strong impact sense for a user, so that the vibration waveform of the vibration object-firearm can be considered to have no superposition characteristic, and the parameter value of the vibration mode of the vibration object-firearm can be set to 0 (namely a preemption mode); etc.
(2) And configuring the vibration priority of the target vibration object according to the scene requirement of the service scene. Specifically, the value range of the vibration priority may be set to [1,10], and the greater the vibration priority value of the vibration object, the higher the vibration priority of the vibration object is determined, for example, the vibration priority of the vibration object having the vibration priority value of 5 is higher than the vibration priority of the vibration object having the vibration priority value of 3. For example, in a game object driving and gun-driving scenario, the vibration effect of a vibrating object-gun (such as rifle, submachine gun, etc.) tends to give a strong impact to the user, so the vibration priority of the gun may be set to be greater than that of the vehicle, such as setting the vibration priority of the gun to 9, and the vibration priority of the vehicle to be less than 9 (such as 2, 5, etc.).
It should be noted that the target service scene may include a plurality of vibration objects to be vibrated, where the target vibration object is any one of the plurality of vibration objects to be vibrated, and the vibration description file of the target service scene includes vibration parameters of the plurality of vibration objects; the vibration parameters of each vibration object can be referred to in table 1 and the related description, and the vibration parameters of each vibration object are not described in one-to-one manner.
S203, acquiring the working state of a target vibration device matched with the target vibration object in the terminal equipment.
The terminal device may be provided with one or more vibrating means, which may be motors, i.e. the terminal device is a single motor device or a multiple motor device. In one implementation, if one vibration device is configured in the terminal device, determining the one vibration device as a target vibration device matched with a target vibration object, and determining an operating state of the one vibration device as an operating state of the target vibration device; in other words, since only one vibration device is configured in the terminal apparatus, the vibration effect in all the business scenarios recognized by the target application is performed by the one vibration device. The operating states of the target vibration device may include a vibration state and an idle state, where the vibration state refers to a state in which the target vibration device is performing vibration on a first vibration object (e.g., any vibration object in a current business scenario). The idle state means that the target vibration device does not perform a vibration operation.
In other implementations, if M vibration devices are configured in the terminal device, where M is an integer greater than 1, determining the implementation manner of the target vibration device that matches the target vibration object may include: acquiring M vibration device information of M vibration devices reported by a terminal device, wherein the vibration device information of one vibration device comprises a position range of the vibration device responsible for vibration management and a working state of the vibration device; and determining a target vibration device responsible for managing the vibration of the target vibration object according to the position information and the M vibration device information included in the vibration parameters of the target vibration object, and acquiring the working state of the target vibration device. That is, when M vibration devices are disposed in the terminal apparatus, each vibration device (or devices) corresponds to one area of the terminal screen, and any one vibration device is responsible for managing vibrations within a position range of vibration management corresponding to any one vibration device; in other words, when a plurality of vibration devices are disposed in the terminal apparatus, the terminal screen of the terminal apparatus may be divided into a plurality of position ranges (or referred to as areas) in accordance with the positions in which the vibration devices are disposed in the terminal apparatus, one area corresponding to one (or more) vibration devices; when any vibration object is started to vibrate in any area, the vibration device corresponding to any area executes vibration. In addition, each vibration device controls the vibration in the corresponding area independently, so that if the vibration objects needing to vibrate exist in the area which is responsible for management of the plurality of vibration devices at the same time, the plurality of vibration devices can be triggered to vibrate according to the vibration parameters of the vibration objects in the responsible area at the same time.
An exemplary description of the deployment of M vibration devices in a terminal device is described below with reference to fig. 4; as shown in fig. 4, it is assumed that the terminal device is disposed with 4 vibration devices, i.e., m=4, which are disposed at 4 corners of the terminal device, respectively; the location ranges of the vibration management responsible for the 4 vibration devices can be described according to the coordinate identification method shown in fig. 4 (i.e., the upper left corner is the origin, the Y axis is downward along the origin, and the X axis is rightward along the origin): a vibration device M1 controllable region a, a vibration device M2 controllable region B, a vibration device M3 controllable region C, and a vibration device M4 controllable region D. Then, the position information of the target vibration object in the vibration description file of the target vibration object is acquired, and according to the relationship between the coordinate position of the target vibration object displayed in the terminal screen indicated by the position information and the vibration device information of the vibration device, it is known that: when the target vibration object falls within the area a, the vibration device M1 is determined as the target vibration device, that is, the vibration effect of vibrating the target vibration object is achieved by the vibration device M1. Similarly, when the target vibration object falls within the region B, the vibration device M2 is determined as the target vibration device, that is, the vibration effect of vibrating the target vibration object is achieved by the vibration device M2. When the target vibration object falls within the region C, the vibration device M3 is determined as the target vibration device, that is, the vibration effect of vibrating the target vibration object is achieved by the vibration device M3. When the target vibration object falls within the region D, the vibration device M4 is determined as the target vibration device, that is, the vibration effect of vibrating the target vibration object is achieved by the vibration device M4.
With continued reference to fig. 4, assume that the vibration device information of the vibration device M1 indicates that the area indicated by the position range a in which the vibration device M1 is responsible for vibration management is: the x-axis belongs to [10, 90] and the y-axis belongs to the region consisting of [10, 50 ]; the area indicated by the position range B in which the vibration device M2 is responsible for vibration management is: the x-axis belongs to [10, 90] and the y-axis belongs to the region consisting of [50, 90 ]; the area indicated by the position range C in which the vibration device M3 is responsible for vibration management is: the x-axis belongs to [10, 90] and the y-axis belongs to the region consisting of [50, 90 ]; and, the area indicated by the position range D in which the vibration device M4 performs vibration management is: the x-axis belongs to [90, 180] and the y-axis belongs to the region consisting of [10, 50 ]. When the position information of the detected target vibration object is (x=80, y=60), it is determined that the target vibration object falls into the region B, and the vibration device M2 is determined as a target vibration device that matches the target vibration object; in other words, the vibration effect of the target vibration object is achieved by the vibration device M2.
It should be noted that, when the terminal screen is divided by using different coordinate identification methods, the position range of the vibration management and the position information of the target vibration object that are responsible for the vibration management by the above-described vibration devices may be changed, which is not limited by the embodiment of the present application.
S204, generating vibration instruction information based on the vibration mode of the target vibration object and the working state of the target vibration device.
Based on the description of the vibration mode of the target vibration object and the operation state of the target vibration device shown in the foregoing steps S202 to S203, the vibration mode of the target vibration object may include: a preemption mode or an overlay mode; the operating state of the target vibration device may include: a vibrating state or an idle state. In connection with several descriptions of the vibration mode and the operation state, a specific implementation of generating vibration indication information based on the vibration mode of the target vibration object and the operation state of the target vibration device will be explained below.
1) If the operating state of the target vibration device is a vibration state, and if the operating state of the target vibration device is executing the vibration of the first vibration object, several implementations of generating the vibration indication information based on the vibration mode of the target vibration object and the operating state of the target vibration device may include:
(1) the vibration indication information includes fused vibration information. In a specific implementation, if the working state of the target vibration device is a vibration state, if the target vibration device is executing the vibration of a first vibration object, wherein the first vibration object is a vibration object in a current service scene, and the vibration mode of the target vibration object includes a superposition mode, which indicates that the target vibration object has a superposition characteristic, the vibration mode of the first vibration object is obtained; if the vibration mode of the first vibration object is the superposition mode, which means that the first vibration object is determined to have superposition characteristics, fusion vibration information is generated, and the fusion vibration information is used for indicating the terminal equipment to drive the target vibration device to perform fusion vibration on the first vibration object and the target vibration object. That is, if the target vibration device is executing the vibration of the first vibration object and the vibration modes of the first vibration object and the target vibration object are both superposition modes, indicating that the first vibration object and the target vibration object are both vibration objects having superposition characteristics, the fusion vibration information is generated.
Taking a game scene of driving an automobile on a hillside as an example, assuming that the current service scene is that a game character drives the automobile to run on a flat ground and the first vibration object is the automobile, determining that the target vibration device is executing the vibration of the automobile; if the target service scene is identified as the game role, the vehicle driven by the game role is driven to the hillside, and the target vibration object is the hillside. It can be understood that when the vehicle runs on a hillside in a real physical environment, the generated bumping sense is obviously stronger than that of the vehicle running on a flat ground, the vibration mode of the vehicle can be determined to be a superposition mode, and the vibration mode of the hillside is the superposition mode, so that the generated fusion vibration information can be used for indicating the terminal equipment to drive the target vibration device to perform fusion vibration on the vehicle and the hillside.
(2) The vibration indication information includes first vibration priority information. In a specific implementation, if the working state of the target vibration device is a vibration state, if the target vibration device is executing the vibration of the first vibration object, and the vibration mode of the target vibration object includes a superposition mode, which indicates that the target vibration object has a superposition feature, and the vibration mode of the first vibration object is a preemption mode, which indicates that the first vibration object does not have a superposition feature; and generating first priority vibration information, wherein the first priority vibration information is used for indicating the terminal equipment to select to drive the target vibration device to vibrate the first vibration object or vibrate the target vibration object according to the vibration priority of the first vibration object and the vibration priority of the target vibration object.
(3) The vibration indication information includes second vibration priority information. In a specific implementation, if the working state of the target vibration device is a vibration state, if the target vibration device is executing the vibration of the first vibration object, if the vibration mode of the target vibration object includes a preemption mode, generating second priority vibration information, where the second priority vibration information is used to instruct the terminal device to select to drive the target vibration device to vibrate the first vibration object or vibrate the target vibration object according to the vibration priority of the first vibration object and the vibration priority of the target vibration object. In other words, when the vibration mode of the target vibration object is the preemption mode, the second priority vibration information is generated regardless of whether the vibration mode of the first vibration object is the preemption mode or the superimposition mode. That is, in the first vibration object and the target vibration object, as long as one vibration mode is the preemption mode, both of them may not be superimposed with vibration.
Taking a game scene of driving a carrier and starting robbery as an example, and assuming that the current service scene is a scene that a game character is driving a vehicle to run and the vehicle is a first vibration object, determining that a target vibration device is executing vibration of the vehicle; if the target service scene is identified as a game scene of a gun when a game character drives a vehicle, the gun is a target vibration object; because superposition of the vibration effect of the gun and the vibration effect of the vehicle can influence the judgment of the target user, the vibration mode of the gun-target vibration object is determined to be a preemption mode, and the vibration effect of the vehicle and the vibration effect of the gun can not be superposed even though the vibration mode of the vehicle is a superposition mode.
2) And if the working state of the target vibration device is an idle state, generating independent vibration information, wherein the independent vibration information is used for indicating the terminal equipment to drive the target vibration device to vibrate the target vibration object. That is, if it is detected that the target vibration device is not currently executing the vibration of any of the vibration objects, it is determined that the target vibration device may directly execute the vibration of the target vibration object.
S205, sending the vibration indication information and the vibration description file to the terminal equipment.
In the specific implementation, the target application can call the vibration playing interface to send the vibration indication information and the vibration description file to the terminal equipment; and driving the target vibration device to vibrate according to the vibration indication information and the vibration description file by the terminal equipment in the target service scene. If the vibration indication information indicates that the first vibration object and the target vibration object are subjected to fusion superposition vibration, the target user can feel resonance generated by the first vibration object and the target vibration object, and the integrity of vibration experience of the target user is improved.
In the embodiment of the application, firstly, when a target application identifies a target service scene, the target application can detect whether the target service scene comprises a target vibration object to be vibrated or not, if the target vibration object to be vibrated exists, a vibration description file of the target service scene is obtained, the vibration description file of the target service scene comprises vibration parameters of the target vibration object in the target service scene, and the vibration parameters comprise vibration modes of the target vibration object; secondly, the target application can also acquire the working state of the target vibration device matched with the target vibration object from the terminal equipment, and generate vibration indication information based on the vibration mode of the target vibration object and the working state of the target vibration device; and finally, the target application transmits the vibration indication information and the vibration description file to the terminal equipment, so that the terminal equipment drives the target vibration device to vibrate according to the vibration description file and the vibration indication information under the target service scene. In the scheme, the terminal equipment determines how to drive the vibrating device to vibrate based on the vibration indication information sent by the target application, so that the vibrating mode is enriched, and meanwhile, the vibration generated in the target service scene is accurately executed, thereby realizing the effect of simulating the target service scene in the real physical environment by driving the vibrating device to vibrate through the terminal equipment, improving the integrity of the vibration experience of the target user, and improving the authenticity and flexibility of the vibration effect.
Referring to fig. 5, fig. 5 is a schematic flow chart of a service processing method according to an exemplary embodiment of the present application; the service processing method may be performed by a terminal device (e.g., any terminal). The scheme may include steps S501-S503, wherein:
s501, receiving a vibration description file and vibration indication information of a target service scene sent by a target application.
Specifically, the terminal device may receive, through the vibration playing interface, the vibration description file and the vibration indication information in the target service scene sent by the target application. The vibration description file and the vibration indication information of the target service scene are sent when the target application identifies that the target service scene comprises a target vibration object to be vibrated, the vibration description file comprises vibration parameters of the target vibration object, the vibration parameters of the target vibration object comprise vibration modes of the target vibration object, and the vibration modes comprise a preemption mode or a superposition mode; the vibration instruction information is generated based on a vibration mode of the target vibration object and an operation state of the target vibration device, which is a vibration device matching the target vibration object. The vibration parameters of the target vibration object comprise attribute parameters and control parameters of the target vibration object; the attribute parameters include any of the following: position information, motion information, and vibration priority; the control parameters of the target vibration object include at least one of: vibration start time, vibration duration, vibration end time, vibration frequency, vibration intensity.
It should be noted that, the specific implementation manner of the target application to obtain the vibration description file in the target service scene and generate the vibration indication information may refer to part of the content of the embodiment shown in fig. 2, which is not described herein.
S502, positioning a target vibration device from M vibration devices.
In the specific implementation, M pieces of vibration device information of M vibration devices are obtained, wherein one piece of vibration device information comprises a position range of vibration management served by one vibration device and a working state of the one vibration device; and determining a target vibration device responsible for managing the vibration of the target vibration object according to the position information and the M vibration device information included in the vibration parameters of the target vibration object. The specific implementation manner of determining the target vibration device according to the vibration device information of the vibration device and the position information of the target vibration object may be referred to the description of the specific implementation manner shown in step S203 in the embodiment shown in fig. 2, which is not described herein.
S503, driving the target vibration device to vibrate according to the vibration indication information and the vibration description file under the target service scene.
The terminal equipment drives the target vibration device to vibrate according to different contents contained in the received vibration indication information, wherein the modes of driving the target vibration device to vibrate by the terminal equipment are different, and the method comprises the following steps:
1) The vibration indication information comprises fusion vibration information, wherein the fusion vibration information is used for indicating the terminal equipment to drive the target vibration device to perform fusion vibration on a first vibration object and a target vibration object, and the first vibration object is the vibration object corresponding to the target vibration device executing vibration. In this implementation, the implementation of driving the target vibration device to vibrate according to the vibration instruction information and the vibration description file may include: acquiring control parameters of the first vibration object from vibration parameters of the first vibration object; fusing the control parameters of the first vibration object and the control parameters of the target vibration object to obtain new control parameters; and driving the target vibration device to vibrate based on the new control parameters under the target service scene.
Wherein the vibration parameters of the target vibration object comprise attribute parameters and control parameters of the target vibration object; the attribute parameters include any of the following: position information, motion information, and vibration priority; the control parameters of the target vibration object include at least one of: vibration start time, vibration duration, vibration end time, vibration frequency, vibration intensity. Then, fusing the control parameter of the first vibration object and the control parameter of the target vibration object to obtain a new control parameter may include: fusing the vibration frequency of the first vibration object with the vibration frequency of the target vibration object to obtain a new vibration frequency; and carrying out fusion processing on the vibration intensity of the first vibration object and the vibration intensity of the target vibration object to obtain new vibration intensity.
Optionally, fusing the vibration frequency of the first vibration object with the vibration frequency of the target vibration object to obtain a new vibration frequency, including: adding the vibration frequency of the first vibration object and the vibration frequency of the target vibration object; if the result of the addition operation is greater than the vibration frequency threshold value, the vibration frequency threshold value is used as a new vibration frequency; if the result of the addition operation is less than or equal to the vibration frequency threshold, the result of the addition operation is taken as a new vibration frequency. In particular, a new vibration frequency can be calculated using function 1.
Frequency=if (sum (Frequency {1 … … n }) >100,100, sum (Frequency {1 … … n })) function 1
Wherein the function sum is a summation function, n is the number of vibration objects, and n is an integer greater than 1.
Optionally, the fusing processing is performed on the vibration intensity of the first vibration object and the vibration intensity of the target vibration object to obtain a new vibration intensity, including: adding the vibration intensity of the first vibration object and the vibration intensity of the target vibration object; if the result of the addition operation is larger than the vibration intensity threshold value, the vibration intensity threshold value is used as new vibration intensity; if the result of the addition operation is less than or equal to the vibration intensity threshold value, the result of the addition operation is taken as a new vibration intensity. In particular, the new vibration intensity can be calculated using function 2.
IntellityIn=if (sum (integrityIn {1 … … n }) >100,100, sum (integrityIn {1 … … n })) function 2
When the target vibration device vibrates based on the control parameter of any one of the vibration objects, the target vibration device actually vibrates according to the vibration waveform corresponding to any one of the vibration objects, so as to realize the vibration effect reflected by the played vibration waveform. The vibration waveform of the vibration object can intuitively show the vibration effect when the vibration object vibrates, for example, when the vibration object is a flat ground, the vibration effect in the real physical environment is not obvious, and when the vibration object is a hillside, the vibration effect of the hillside in the real physical environment is obvious; based on this, an exemplary vibration waveform of a flat land and a vibration waveform of a hillside can be seen in fig. 6, the first graph shown in fig. 6 being the vibration waveform of the flat land, and the second graph shown in fig. 6 being the vibration waveform of the hillside.
The vibration waveform of any one of the vibration objects may be generated based on the vibration frequency and the vibration intensity among the control parameters of the any one of the vibration objects. The following describes a process of generating a vibration waveform of a target vibration object, taking the target vibration object as an example: first, the vibration duration in the vibration parameters of the target vibration object is divided into N time periods, N being an integer greater than 1, each time period corresponding to one vibration frequency factor and vibration intensity factor. Secondly, multiplying the vibration intensity of the target vibration object with the vibration intensity of the ith time period to obtain the vibration intensity of the ith time period, and adding the vibration frequency of the target vibration object with the vibration frequency factor of the ith time period to obtain the vibration frequency of the ith time period, wherein i is an integer greater than or equal to 1 and less than or equal to N; a sub-waveform of the ith period is generated based on the vibration intensity and the vibration frequency of the ith period. Next, the above steps are performed for the vibration frequency and vibration intensity of each period, resulting in sub-waveforms (i.e., N sub-waveforms) of each period. And finally, splicing the sub-waveforms of the N time periods according to the time sequence to obtain the vibration waveform of the target vibration object.
Based on this, the implementation of the driving target vibration device described above to vibrate based on the new control parameter may include: a target vibration waveform is generated based on the new control parameter and the vibration frequency factor and the vibration intensity factor for each of the N time periods, and the target vibration device is driven to vibrate in accordance with the target vibration waveform.
Specifically, the new control parameters include new vibration intensity and new vibration frequency, and then the sub-target waveform of each time period can be obtained based on the new vibration intensity and the vibration intensity factor of each time period, and the new vibration frequency and the vibration frequency factor of each time period; and splicing the sub-target waveforms of each time period according to the time sequence, so as to obtain the target vibration waveform. Taking determining a sub-target waveform of the jth time period as an example, describing a specific implementation manner of obtaining the sub-target waveform of the jth time period based on the new vibration intensity and the vibration intensity factor of the jth time period, and the new vibration frequency and the vibration frequency factor of the jth time period, wherein j is an integer greater than zero and less than or equal to N; the steps s11-s13 can be roughly included:
s11: multiplying the new vibration intensity by a vibration intensity factor of a jth time period under the target vibration object to obtain a first vibration intensity result; multiplying the new vibration intensity by the vibration intensity factor of the j-th time period under the first vibration object to obtain a second vibration intensity result; and adding the first vibration intensity result and the second vibration intensity result to obtain the superposition intensity parameter of the j-th time period.
s12: adding the new vibration frequency to the vibration frequency factor of the jth time period under the target vibration object to obtain a first vibration frequency result; adding the new vibration intensity to the vibration frequency factor of the j-th time period under the first vibration object to obtain a second vibration frequency result; and adding the first vibration frequency result and the second vibration frequency result to obtain a superposition frequency parameter of the j-th time period.
s13: and drawing to obtain a sub-target waveform corresponding to the jth time period based on the superposition intensity parameter of the jth time period and the superposition frequency parameter of the jth time period.
Specifically, the function 3 may be used to calculate the superposition vibration parameter and the superposition frequency parameter in the j-th time period in the steps s12 to s 13.
fx (timej, sum (parameters. Inte. Curve. Inte. 1 … … N), sum (parameters. Frequency+Curve. Frequency … … N)) function 3
Wherein the function fx is a function for determining a superposition intensity parameter and a superposition frequency parameter, the parameter parameters are a vibration frequency factor and a vibration intensity factor of a j-th time period, the two parameters may not be the same value, and the values of the two parameters in different time periods are different or the same; the parameter timej is the j time period; n is the number of vibration objects to be subjected to superposition processing; sum is a sum function.
2) The vibration instruction information includes first priority vibration information or second vibration priority information, each of which is used to instruct to selectively drive the target vibration device to vibrate the first vibration object or vibrate the target vibration object according to the vibration priority of the first vibration object and the vibration priority of the target vibration object. In this implementation manner, the implementation manner of driving the target vibration device to vibrate according to the vibration indication information and the vibration description file in the target service scene may include: firstly, acquiring the vibration priority of a first vibration object from control parameters of the first vibration object, and acquiring the vibration priority of a target object from the control parameters of the target vibration object; secondly, if the vibration priority of the first vibration object is different from the vibration priority of the target object, driving the target vibration device to vibrate according to control parameters corresponding to the vibration object with higher vibration priority under the target service scene; finally, if the vibration priority of the first vibration object is the same as the vibration priority of the target object, driving the target vibration device to vibrate according to the control parameter of the first vibration object or vibrate according to the control parameter of the target vibration object in the target service scene.
For example, assuming that the optional range of the vibration priority is [1,10], if the vibration priority of the first vibration object is 5 and the vibration priority of the target vibration object is 8, it is determined that the vibration priority of the target vibration object is the highest vibration priority. For example, the first vibration object is a carrier, the target vibration object is a firearm, and since the vibration effect generated by the firearm is large, it can be determined that the vibration priority of the firearm is higher than that of the carrier, if it is determined that the vibration priority of the firearm is the highest vibration priority, the target vibration device is driven to vibrate according to the control parameters of the firearm in the target service scene.
3) The vibration indication information includes individual vibration information for indicating that the terminal device drives the target vibration device to vibrate the target vibration object. In this implementation manner, the implementation manner of driving the target vibration device to vibrate according to the vibration indication information and the vibration description file in the target service scene may include: and driving the target vibration device to vibrate according to the control parameters of the target vibration device under the target service scene.
It is understood that in driving the target vibration device to vibrate any vibration object (such as a target vibration object), the position information of any vibration object in the terminal screen may be dynamically changed; for example, if any of the vibration objects is an automobile, the automobile may be located in different areas of the terminal screen during driving of the automobile in different periods of time, and if the terminal device is configured with multiple motors (i.e., multiple vibration devices), the target vibration control device for vibrating the automobile may be changed; based on the above, the embodiment of the application supports the real-time identification of the position information of the vibration object, and updates the target vibration device matched with the vibration object according to the position information of the vibration object. In the specific implementation, if the current position information of any vibrating object is detected to be beyond the position range of the vibration management responsible for the target vibrating device in the process of driving the target vibrating device to vibrate any vibrating device (if the target vibrating device), determining the vibrating device responsible for the position range of the current position information as an updated target vibrating device; and controlling the updated target vibration device to re-adopt the business processing method in the embodiment of the application, calculating the relation between one or more vibration objects in the position range of the updated target vibration device responsible for vibration management, and further performing vibration control.
For example, assume that a terminal screen deploys 2 vibration devices, vibration device 1 and vibration device 2, respectively; when the vibration target-car runs in the position 1 which is responsible for vibration management of the vibration device 1, the vibration device 1 can vibrate the vibration target-car; when it is detected that the current position information of the vibration object-vehicle indicates that the vibration object-vehicle is traveling to the position range 2 for which the vibration device 2 is responsible for vibration management, it may be determined that the vibration object is currently required to be vibrated by the vibration device 2. The mode that the vibration object is vibrated by adopting different vibration devices along with the movement of the vibration object can simulate the vibration effects such as the movement process and the direction change process of the vibration object, and the authenticity of the vibration effect is improved.
In the embodiment of the application, the terminal equipment can receive the vibration description file and the vibration indication information of the target service scene issued by the target application, and locate the target vibration device from the M vibration devices so as to drive the target vibration device to vibrate according to the vibration indication information and the vibration description file under the target service scene. In the scheme, the terminal equipment determines how to drive the vibrating device to vibrate based on the vibration indication information sent by the target application, so that the vibrating mode is enriched, and meanwhile, the vibration generated in the target service scene is accurately executed, thereby realizing the effect of simulating the target service scene in the real physical environment by driving the vibrating device to vibrate through the terminal equipment, improving the integrity of the vibration experience of the target user, and improving the authenticity and flexibility of the vibration effect.
The above embodiments respectively use the target application and the terminal device as execution bodies to describe the service processing method provided by the embodiments of the present application in detail, and the flow of the service processing method jointly executed by the target application and the terminal device is described in more detail below with reference to fig. 8 a; the process may generally include steps s21-s23, wherein:
s21, the target application supports setting a vibration mode of the vibration object, where the vibration mode includes a preemption mode and an overlay mode, and specific implementation manners of the preemption mode and the overlay mode may refer to related descriptions of the specific implementation manner shown in step S202 in fig. 2, which are not described herein. It should be noted that when the vibration objects exist in different service scenarios, the vibration modes set for the same vibration object may not be the same, and may be specifically set according to the scenario requirements of the service scenarios. In addition, the embodiment of the application supports that the set vibration mode is a global mode of the target application, in other words, the set vibration mode is applicable to any vibration object contained in the target application. Specifically, setting global vibration modes and vibration priorities for target applications can be realized by defining a vibration playing interface; or the vibration playing interface may be used to set the vibration mode and the vibration priority for any one of the vibration objects separately, for example, the following fields may be used to define the vibration playing interface, so as to set the vibration mode and the vibration priority for any one of the vibration objects:
public void updatePatten(intpatten,int level){}
The types of the parameter field pattern of the vibration mode and the parameter field level of the vibration priority are integer. Setting vibration modes and vibration priorities for the vibration objects facilitates subsequent analysis of the plurality of vibration objects to obtain vibration indication information. For example, assuming that 4 vibration objects are included in a position range where any one vibration device is responsible for vibration management, vibration modes and vibration priorities set for the respective vibration objects are respectively: if the vibration mode of the vibration object 1 is the preemption mode, the vibration mode of the vibration object 2 is the preemption mode, the vibration mode of the vibration object 3 is the superposition mode, and the vibration mode of the vibration object 4 is the superposition mode, the vibration object 1 (0, 1), the vibration object 2 (0, 3), the vibration object 3 (1, 5) and the vibration object 4 (1, 6) are determined; based on this, it is determined that the fusion process is impossible between the control parameter (or vibration waveform) of the vibration object 1, the control parameter (or vibration waveform) of the vibration object 2, the control parameter (or vibration waveform) of the vibration object 3, and the control parameter (or vibration waveform) of the vibration object 4; further, since the vibration priority of the vibration target 4 is highest, the drive control target vibration device vibrates the vibration target 4.
s22, when the target application identifies a target service scene and a target vibration object to be vibrated exists in the target service scene, a vibration description file of the target vibration object can be obtained, wherein the vibration description file comprises vibration parameters of the target vibration object in the target service scene, and the vibration parameters of the target vibration object comprise vibration modes of the target vibration object; the target application also obtains the working state of a target vibration device matched with the target vibration object in the terminal equipment; and generating vibration indication information based on the vibration mode of the target vibration object and the working state of the target vibration device, and transmitting the vibration indication information and the vibration description file to the terminal equipment through the vibration playing interface.
The vibration playing interface can be obtained by adding correction parameters of a vibration mode on the basis of an original interface (such as an initial interface), and can be used for controlling the vibration mode of any vibration object; of course, the vibration playing interface can also support setting of parameter fields such as circulation, intensity, frequency and the like. Specifically, the following fields may be used to define the vibration playing interface, so as to set parameter fields such as cycle, intensity, frequency, vibration mode, vibration priority, etc. for any vibration object:
public void start(int loop,int interval,int amplitude,intfreq,intpatten,int level){}
The respective parameters contained in the above fields are briefly noted below.
/**
* The loop cycle number of @ param is 1, the loop is not circulated, the loop cycle number is more than 1, and the loop cycle number is-1 infinitely circulated;
* Interval of @ param interval, interval of vibration cycle play each time, unit ms;
* The @ param amplitude vibration intensity, 1-255,1, is minimum and 255 maximum. The parameter is used for modifying the HE file to adjust/reduce the overall intensity signal;
* The @ paramfreq vibration frequency is 1-100,1 is minimum and 100 is maximum, and the parameter is used as a percentage for modifying the HE file to adjust the overall frequency signal;
* The vibration mode @ paramtatten, the preemption mode 0, the superposition mode 1, the parameter is used for informing the vibration analyzer how to perform superposition of the vibration effect;
* The @ param level vibration priority, highest level 1-10, is followed by a decrease, and this parameter is used for higher priority playback in preemption mode.
/**
Wherein, (1) the integer parameter loop is a parameter for setting the number of times of cycle of vibrating the vibrating object, and when the value=1, the integer parameter loop indicates that the vibrating object is not vibrated in a cycle, and when the value is greater than 1, the integer parameter loop indicates the number of times corresponding to the value of the vibrating object in a cycle of vibrating the vibrating object, and when the value is-1, the integer parameter loop indicates that the vibrating object is vibrated in an infinite cycle; (2) integer parameter interval is a parameter for setting a cycle interval, and the value range of the integer parameter interval can be [0,1000], and the unit can be millisecond; the cycle interval may refer to a time interval during which the vibration object is vibrated twice. (3) The integer parameter is used for setting the vibration intensity of the vibration object, the value range of the integer parameter can be [1,255], when the value is 1, the vibration intensity is determined to be minimum, and when the value is 255, the vibration intensity is determined to be maximum. The integer parameter freq is used to set the vibration frequency of the vibration object, and the value range of the integer parameter freq can be [1,100], and the larger the value is, the larger the frequency is. The integer parameter pattern is used for setting the vibration mode of the vibration object, and when the value is 1, the vibration mode is the superposition mode, and when the value is 0, the vibration mode is the preemption mode. And the integer parameter level is used for setting the vibration priority of the vibration object, the value range of the integer parameter level can be [1,10], and the larger the value is, the higher the vibration priority is.
S23, the terminal equipment receives the vibration description file and the vibration indication information of the target service scene sent by the target application through the vibration playing interface, and determines a target vibration device from M vibration devices; detecting the content contained in the vibration instruction information, if the vibration instruction information contains fusion vibration information, the terminal equipment fusion-processes the control parameter of the first vibration object and the control parameter of the target vibration object to obtain a control parameter (or vibration waveform) after fusion-processed, and if the vibration instruction information contains first priority vibration information or second priority vibration information, the terminal equipment compares the vibration priority of the first vibration object with the vibration priority of the target vibration object to obtain the control parameter of the vibration object to be vibrated (such as the first vibration object or the target vibration object); the terminal device drives the target vibration means to perform vibration based on the control parameter.
In summary, the embodiment of the application adopts a standardized interface mode, so that the interface layer can uniformly support the application layer and the system hardware layer, the innovative design of the application layer does not need to worry about the problem of mismatch between the application layer and the system hardware layer, and the development function of the application layer can be enriched. In addition, the application layer can set vibration parameters (or vibration waveforms) for each vibration object in advance, analyze the vibration parameters of a plurality of vibration objects under different service scenes or different system hardware settings, support and output the resonance effect of a plurality of vibration objects, enrich the triggering experience, improve the authenticity of the vibration effect and improve the vibration experience of a target user.
Based on the above method embodiments, the present application provides a further service processing method, and a schematic flow chart of the service processing method may be shown in fig. 8 b; the service processing method may be performed by a service processing device, which may be a terminal device, and the service processing method may include steps S801 to S803:
step S801, when a target vibration object needing to vibrate exists in a target service scene of a target application, a vibration description file of the target service scene is acquired.
The vibration description file of the target service scene comprises vibration parameters of a target vibration object, the vibration parameters of the target vibration object comprise vibration modes of the target vibration object, and the vibration modes of the target vibration object comprise a preemption mode or a superposition mode. It is worth to say that the vibration description file of the target service scene is configured and obtained according to the scene requirement of the target service scene; the vibration parameters of the target vibration object further comprise attribute parameters of the target vibration object and control parameters of the target vibration object; the attribute parameters include any of the following: position information, motion information, and vibration priority; the control parameters include at least one of: vibration start time, vibration duration, vibration end time, vibration frequency, vibration intensity.
The specific implementation shown in step S801 may be performed by the target application or the terminal device. Optionally, the target application supports identifying the target service scene, identifying the target vibration object in the target service scene, and acquiring the vibration description file in the target service scene. Optionally, the terminal device supports identifying the target service scene, identifying the target vibration object in the target service scene, and acquiring the vibration description file in the target service scene.
Optionally, the target application may identify the target service scenario, issue the identified target service scenario to the terminal device, identify a target vibration object in the target service scenario by the terminal device, and obtain a vibration description file of the target service scenario. Optionally, the target application identifies a target service scene and issues the identified target service scene to the terminal device; when the terminal equipment detects that a target vibration object exists in the target service scene, the target application acquires a vibration description file of the target service scene and issues the vibration description file to the terminal equipment. In summary, the embodiment of the present application is not limited to the execution body for executing step S801.
Step 802, acquiring an operating state of a target vibration device matched with a target vibration object, and generating vibration indication information based on a vibration mode of the target vibration object and the operating state of the target vibration device.
The implementation manner of acquiring the working state of the target vibration device may include: acquiring M vibration device information of M vibration devices configured in the terminal equipment, wherein the vibration device information of one vibration device comprises a position range of the vibration device responsible for vibration management and a working state of the vibration device; and determining a target vibration device responsible for managing the vibration of the target vibration object according to the position information and the M vibration device information included in the vibration parameters of the target vibration object, and acquiring the working state of the target vibration device. The operation state of the target vibration device may include an idle state or a state in which vibration of a first vibration object (e.g., a vibration object to be vibrated in a current business scenario) is being performed.
(1) When the operation state of the target vibration device is a state in which the vibration of the first vibration object is being performed, the vibration instruction information may include fusion vibration information, first priority vibration information, and second priority vibration information, and the following description is given of the three types of vibration instruction information acquisition modes, in which:
1) The implementation of generating the vibration indication information based on the vibration mode of the target vibration object and the operation state of the target vibration device may include: if the working state of the target vibration device is that the first vibration object is executing the vibration, the vibration mode of the target vibration object comprises a superposition mode, and the vibration mode of the first vibration object is acquired; if the vibration mode of the first vibration object is the superposition mode, generating fusion vibration information, wherein the fusion vibration information is used for indicating the terminal equipment to drive the target vibration device to perform fusion vibration on the first vibration object and the target vibration object.
2) The vibration indication information includes first priority vibration information, and the implementation manner of generating the vibration indication information based on the vibration mode of the target vibration object and the operation state of the target vibration device may include: and if the working state of the target vibration device is that the first vibration object is executing the vibration, the vibration mode of the target vibration object comprises a superposition mode, the vibration mode of the first vibration object is a preemption mode, first priority vibration information is generated, and the first priority vibration information is used for indicating the terminal equipment to select to drive the target vibration device to vibrate the first vibration object or vibrate the target vibration object according to the vibration priority of the first vibration object and the vibration priority of the target vibration object.
3) The vibration prompting information includes second priority vibration information, and the implementation manner of generating the vibration indicating information based on the vibration mode of the target vibration object and the working state of the target vibration device may include: and if the working state of the target vibration device is that the first vibration object is executing, and the vibration mode of the target vibration object comprises a preemption mode, generating second priority vibration information, wherein the second priority vibration information is used for indicating the terminal equipment to select to drive the target vibration device to vibrate the first vibration object or vibrate the target vibration object according to the vibration priority of the first vibration object and the vibration priority of the target vibration object.
(2) When the operating state of the target vibration device is an idle state, an implementation manner of generating vibration indication information based on the vibration mode of the target vibration object and the operating state of the target vibration device may include: and generating independent vibration information, wherein the independent vibration information is used for indicating the terminal equipment to drive the target vibration device to vibrate the target vibration object.
And 803, driving the target vibration device to vibrate according to the vibration indication information and the vibration description file under the target service scene.
In accordance with the difference in the vibration instruction information, the driving mode of the target vibration device to vibrate is also different in step S802, in which:
1) The vibration indication information includes fusion vibration information, and the fusion vibration information is used for indicating the terminal device to drive the target vibration device to perform fusion vibration on the first vibration object and the target vibration object, and then the implementation mode of driving the target vibration device to vibrate according to the vibration indication information and the vibration description file in the service scene can include: acquiring control parameters of the first vibration object from vibration parameters of the first vibration object; fusing the control parameters of the first vibration object and the control parameters of the target vibration object to obtain new control parameters; and driving the target vibration device to vibrate based on the new control parameters under the target service scene.
2) The vibration indication information comprises first priority vibration information or second priority vibration information, and the first priority vibration information and the second priority vibration information are used for indicating the terminal equipment to select a driving target vibration device to vibrate the first vibration object or vibrate the target vibration object according to the vibration priority of the first vibration object and the vibration priority of the target vibration object; the implementation manner of driving the target vibration device to vibrate according to the vibration indication information and the vibration description file in the target service scene may include: acquiring the vibration priority of the first vibration object from the control parameters of the first vibration object, and acquiring the vibration priority of the target vibration object from the control parameters of the target vibration object; if the vibration priority of the first vibration object is different from the vibration priority of the target vibration object, driving the target vibration device to vibrate according to the control parameter corresponding to the vibration object with higher vibration priority under the target service scene; if the vibration priority of the first vibration object is the same as that of the target vibration object, driving the target vibration device to vibrate according to the control parameter of the first vibration object or vibrate according to the control parameter of the target vibration object in the target service scene.
3) The vibration indication information includes independent vibration information, and the independent vibration information is used for indicating the terminal equipment to drive the target vibration device to vibrate the target vibration object, and then the implementation manner of driving the target vibration device to vibrate according to the vibration indication information and the vibration description file in the target service scene may include: and driving the target vibration device to vibrate according to the control parameters of the target vibration device under the target service scene.
It should be noted that, before executing step S803, the embodiment of the present application further supports positioning the target vibration device from the M vibration devices deployed in the terminal device. In specific implementation, M vibration device information of M vibration devices is acquired; and determining a target vibration device responsible for managing the vibration of the target vibration object according to the position information of the target vibration object and the M vibration device information.
In the embodiment of the application, after the target vibration object to be vibrated exists in the target service scene of the target application is identified, the vibration indication information can be generated by combining the working state of the target vibration device matched with the target vibration object, so that the target vibration device can be driven to vibrate according to the vibration indication information and the vibration description of the target vibration object. In the scheme, the terminal equipment determines how to drive the vibrating device to vibrate based on the vibration indication information sent by the target application, so that the vibrating mode is enriched, and meanwhile, the vibration generated in the target service scene is accurately executed, thereby realizing the effect of simulating the target service scene in the real physical environment by driving the vibrating device to vibrate through the terminal equipment, improving the integrity of the vibration experience of the target user, and improving the authenticity and flexibility of the vibration effect.
The foregoing details of the service processing method according to the embodiment of the present application are set forth in the foregoing description, and in order to better implement the foregoing aspects of the embodiment of the present application, correspondingly, the following provides an apparatus according to the embodiment of the present application.
Fig. 9 is a schematic structural diagram of a service processing apparatus according to an exemplary embodiment of the present application; the service processing means may be a computer program (comprising program code) running in the target application; the service processing means may be arranged to perform some or all of the steps of the method embodiment shown in fig. 2. Referring to fig. 9, the service processing apparatus includes the following units:
a processing unit 901, configured to identify a target service scenario in a target application;
an obtaining unit 902, configured to obtain a vibration description file of the target service scene if the target service scene includes a target vibration object that needs to vibrate, where the vibration description file of the target service scene includes a vibration parameter of the target vibration object in the target service scene, and the vibration parameter of the target vibration object includes a vibration mode of the target vibration object; the vibration mode of the target vibration object comprises a preemption mode or an superposition mode;
an obtaining unit 902, configured to obtain an operating state of a target vibration device in the terminal device, where the operating state matches with the target vibration object;
A processing unit 901, configured to generate vibration instruction information based on a vibration mode of the target vibration object and an operation state of the target vibration device;
the processing unit 901 is further configured to send the vibration indication information and the vibration description file to the terminal device, so that the terminal device drives the target vibration device to vibrate according to the vibration indication information and the vibration description file in the target service scene.
In one implementation, the processing unit 901 is further configured to:
configuring a vibration description file of a target vibration object according to scene requirements of a target service scene;
the vibration parameters of the target vibration object further comprise attribute parameters of the target vibration object and control parameters of the target vibration object; the attribute parameters include any of the following: position information, motion information, and vibration priority; the control parameters include at least one of: vibration start time, vibration duration, vibration end time, vibration frequency, vibration intensity.
In one implementation manner, the processing unit 901 is configured to, when acquiring a working state of a target vibration device in a terminal device, where the working state is adapted to a target vibration object, specifically is configured to:
acquiring M vibration device information of M vibration control devices reported by a terminal device, wherein the vibration device information of one vibration control device comprises a position range of the vibration control device responsible for vibration management and a working state of the vibration device;
And determining a target vibration device responsible for managing the vibration of the target vibration object according to the position information and the M vibration device information included in the vibration parameters of the target vibration object, and acquiring the working state of the target vibration device.
In one implementation, the vibration indication information includes fusion vibration information, and the processing unit 901 is configured to, when generating the vibration indication information based on a vibration mode of the target vibration object and an operating state of the target vibration device, specifically:
if the working state of the target vibration device is that the first vibration object is executing the vibration, the vibration mode of the target vibration object comprises a superposition mode, and the vibration mode of the first vibration object is acquired;
if the vibration mode of the first vibration object is the superposition mode, generating fusion vibration information, wherein the fusion vibration information is used for indicating the terminal equipment to drive the target vibration device to perform fusion vibration on the first vibration object and the target vibration object.
In one implementation, the vibration indication information includes first priority vibration information, and the processing unit 901 is configured to, when generating the vibration indication information based on a vibration mode of the target vibration object and an operation state of the target vibration device, specifically:
And if the working state of the target vibration device is that the first vibration object is executing the vibration, the vibration mode of the target vibration object comprises a superposition mode, the vibration mode of the first vibration object is a preemption mode, first priority vibration information is generated, and the first priority vibration information is used for indicating the terminal equipment to select to drive the target vibration device to vibrate the first vibration object or vibrate the target vibration object according to the vibration priority of the first vibration object and the vibration priority of the target vibration object.
In one implementation, the vibration indication information includes second priority vibration information, and the processing unit 901 is configured to, when generating the vibration indication information based on the vibration mode of the target vibration object and the operation state of the target vibration device, specifically:
and if the working state of the target vibration device is that the first vibration object is executing, and the vibration mode of the target vibration object comprises a preemption mode, generating second priority vibration information, wherein the second priority vibration information is used for indicating the terminal equipment to select to drive the target vibration device to vibrate the first vibration object or vibrate the target vibration object according to the vibration priority of the first vibration object and the vibration priority of the target vibration object.
In one implementation, the vibration indication information includes individual vibration information, and the processing unit 901 is specifically configured to, when generating the vibration indication information based on the vibration mode of the target vibration object and the operation state of the target vibration device:
and if the working state of the target vibration device is an idle state, generating independent vibration information, wherein the independent vibration information is used for indicating the terminal equipment to drive the target vibration device to vibrate the target vibration object.
In one implementation, the target application comprises a gaming application, and the target business scenario is any one of the gaming scenarios in the gaming application.
According to an embodiment of the present application, each unit in the service processing apparatus shown in fig. 9 may be separately or completely combined into one or several other units, or some unit(s) thereof may be further split into a plurality of units with smaller functions, which may achieve the same operation without affecting the implementation of the technical effects of the embodiment 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 service processing 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, a service processing apparatus as shown in fig. 9 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 on a general-purpose computing device such as a computer 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 implementing the service processing method of the embodiment of the present application. 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.
In the embodiment of the present application, the processing unit 901 is configured to identify a target service scenario, and when a target vibration object to be vibrated exists in the target service scenario, generate vibration indication information in combination with a working state of a target vibration device adapted to the target vibration object, so that the terminal device can drive the target vibration device to vibrate according to the vibration indication information and a vibration description of the target vibration object. In the scheme, the target application can send the vibration indication information to the terminal equipment, so that the terminal equipment determines how to drive the target vibration device to vibrate based on the vibration indication information, the vibration mode is enriched, and meanwhile, the vibration generated in the target service scene is accurately executed, so that the effect of simulating the target service scene in the real physical environment by driving the vibration device to vibrate through the terminal equipment is achieved, the integrity of the vibration experience of a target user is improved, and the reality and the flexibility of the vibration effect are improved.
Fig. 10 is a schematic structural view of a service processing apparatus according to an exemplary embodiment of the present application; the service processing means may be a computer program (comprising program code) running in the target application; the service processing means may be adapted to perform some or all of the steps of the method embodiment shown in fig. 5. Referring to fig. 10, the service processing apparatus includes the following units:
A receiving unit 1001, configured to receive a vibration description file and vibration indication information of a target service scenario, where the vibration description file and the vibration indication information of the target service scenario are sent when the target application identifies that a target vibration object that needs to vibrate is included in the target service scenario, the vibration description file includes a vibration parameter of the target vibration object, the vibration parameter of the target vibration object includes a vibration mode of the target vibration object, and the vibration mode includes a preemption mode or a superposition mode;
the vibration instruction information is generated based on a vibration mode of a target vibration object and an operation state of a target vibration device, the target vibration device being a vibration control device that matches the target vibration object;
and a processing unit 1002, configured to locate a target vibration device from the M vibration control devices, and drive the target vibration device to vibrate according to the vibration instruction information and the vibration description file in the target service scene.
In one implementation, the vibration parameters include attribute parameters and control parameters of the target vibration object; the attribute parameters include any of the following: position information, motion information, and vibration priority; the control parameters of the target vibration object include at least one of: vibration start time, vibration duration, vibration end time, vibration frequency, vibration intensity.
In one implementation, the attribute parameter includes location information of the target vibration object, and the processing unit 1002 is specifically configured to, when locating the target vibration device from the M vibration control devices:
obtaining M vibration device information of M vibration control devices, wherein one vibration device information comprises a position range of the vibration control device responsible for vibration management;
and determining a target vibration device responsible for managing the vibration of the target vibration object according to the position information of the target vibration object and the M vibration device information.
In one implementation manner, the vibration indication information includes fusion vibration information, where the fusion vibration information is used to instruct the terminal device to drive the target vibration device to perform fusion vibration on the first vibration object and the target vibration object, and the first vibration object is a vibration object corresponding to the vibration being performed by the target vibration device;
the processing unit 1002 is configured to, when driving the target vibration device to vibrate according to the vibration instruction information and the vibration description file in the service scenario, specifically:
acquiring control parameters of the first vibration object from vibration parameters of the first vibration object;
fusing the control parameters of the first vibration object and the control parameters of the target vibration object to obtain new control parameters;
And driving the target vibration device to vibrate based on the new control parameters under the target service scene.
In one implementation manner, the vibration indication information includes first priority vibration information or second priority vibration information, and the first priority vibration information and the second priority vibration information are used for indicating that the driving target vibration device vibrates the first vibration object or vibrates the target vibration object according to the vibration priority of the first vibration object and the vibration priority of the target vibration object;
the processing unit 1002 is configured to, when driving the target vibration device to vibrate according to the vibration indication information and the vibration description file in the target service scenario, specifically:
acquiring the vibration priority of the first vibration object from the control parameters of the first vibration object, and acquiring the vibration priority of the target vibration object from the control parameters of the target vibration object;
if the vibration priority of the first vibration object is different from the vibration priority of the target vibration object, driving the target vibration device to vibrate according to the control parameter corresponding to the vibration object with higher vibration priority under the target service scene;
if the vibration priority of the first vibration object is the same as that of the target vibration object, driving the target vibration device to vibrate according to the control parameter of the first vibration object or vibrate according to the control parameter of the target vibration object in the target service scene.
In one implementation manner, the vibration indication information includes separate vibration information, where the separate vibration information is used to instruct the terminal device to drive the target vibration device to vibrate the target vibration object, and the processing unit 1002 is specifically configured to, when driving the target vibration device to vibrate according to the vibration indication information and the vibration description file in the target service scene:
and driving the target vibration device to vibrate according to the control parameters of the target vibration device under the target service scene.
According to an embodiment of the present application, each unit in the service processing apparatus shown in fig. 10 may be separately or completely combined into one or several additional units, or some unit(s) thereof may be further split into a plurality of units with smaller functions, which may achieve the same operation without affecting the implementation of the technical effects of the embodiment 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 service processing 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, a service processing apparatus as shown in fig. 10 may be constructed by running a computer program (including program code) capable of executing the steps involved in the corresponding method as shown in fig. 5 on a general-purpose computing device such as a computer 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 implementing the service processing method of the embodiment of the present application. 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.
In the embodiment of the present application, the receiving unit 1001 may receive the vibration description file and the vibration indication information of the target service scene issued by the target application, and the processing unit 1002 may locate the target vibration device from the M vibration control devices, so as to drive the target vibration device to vibrate according to the vibration indication information and the vibration description file in the target service scene. In the scheme, the terminal equipment determines how to drive the vibrating device to vibrate based on the vibration indication information sent by the target application, so that the vibrating mode is enriched, and meanwhile, the vibration generated in the target service scene is accurately executed, thereby realizing the effect of simulating the target service scene in the real physical environment by driving the vibrating device to vibrate through the terminal equipment, improving the integrity of the vibration experience of the target user, and improving the authenticity and flexibility of the vibration effect.
Fig. 11 is a schematic structural diagram of a service processing device according to an exemplary embodiment of the present application. Referring to fig. 11, the service processing apparatus includes a processor 1101, a communication interface 1002, and a computer readable storage medium 1103. Wherein the processor 1101, the communication interface 1002, and the computer readable storage medium 1103 may be connected by a bus or other means. Wherein the communication interface 1002 is for receiving and transmitting data. The computer readable storage medium 1103 may be stored in a memory of the service processing device, the computer readable storage medium 1103 being for storing a computer program comprising program instructions, the processor 1101 being for executing the program instructions stored by the computer readable storage medium 1103. The processor 1101 (or CPU (Central Processing Unit, central processing unit)) is a computing core and a control core of the service processing device, which is adapted to implement one or more instructions, in particular to load and execute one or more instructions to implement a corresponding method flow or a corresponding function.
The embodiment of the application also provides a computer readable storage medium (Memory), which is a Memory device in the service processing device and is used for storing programs and data. It will be appreciated that the computer readable storage medium herein may include both a built-in storage medium in the service processing device and an extended storage medium supported by the service processing device. The computer readable storage medium provides a storage space that stores a processing system of the business processing device. Also stored in this memory space are one or more instructions, which may be one or more computer programs (including program code), adapted to be loaded and executed by the processor 1101. 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 service processing device may be the target application mentioned in the foregoing embodiment; the computer-readable storage medium having one or more instructions stored therein; loading and executing, by the processor 1101, one or more instructions stored in a computer-readable storage medium to implement the corresponding steps in the business processing method embodiments described above; in particular implementations, one or more instructions in the computer-readable storage medium are loaded by the processor 1101 and perform the steps of:
Identifying a target service scene in a target application;
if the target service scene comprises a target vibration object to be vibrated, a vibration description file of the target service scene is obtained, the vibration description file of the target service scene comprises vibration parameters of the target vibration object in the target service scene, and the vibration parameters of the target vibration object comprise vibration modes of the target vibration object; the vibration mode of the target vibration object comprises a preemption mode or an superposition mode;
acquiring the working state of a target vibration device matched with a target vibration object in terminal equipment;
generating vibration indication information based on a vibration mode of the target vibration object and an operation state of the target vibration device;
and sending the vibration indication information and the vibration description file to the terminal equipment so that the terminal equipment drives the target vibration device to vibrate according to the vibration indication information and the vibration description file under the target service scene.
In one implementation, one or more instructions in the computer-readable storage medium are loaded by the processor 1101 and further perform the steps of:
configuring a vibration description file of a target vibration object according to scene requirements of a target service scene;
the vibration parameters of the target vibration object further comprise attribute parameters of the target vibration object and control parameters of the target vibration object; the attribute parameters include any of the following: position information, motion information, and vibration priority; the control parameters include at least one of: vibration start time, vibration duration, vibration end time, vibration frequency, vibration intensity.
In one implementation, one or more instructions in the computer readable storage medium are loaded by the processor 1101 and, when executed, perform the following steps in obtaining an operating state of a target vibration device in the terminal device adapted to a target vibration object:
acquiring M vibration device information of M vibration control devices reported by a terminal device, wherein the vibration device information of one vibration control device comprises a position range of the vibration control device responsible for vibration management and a working state of the vibration device;
and determining a target vibration device responsible for managing the vibration of the target vibration object according to the position information and the M vibration device information included in the vibration parameters of the target vibration object, and acquiring the working state of the target vibration device.
In one implementation, the vibration indication information includes fused vibration information, and one or more instructions in the computer-readable storage medium are loaded by the processor 1101 and, when executed, perform the steps of:
if the working state of the target vibration device is that the first vibration object is executing the vibration, the vibration mode of the target vibration object comprises a superposition mode, and the vibration mode of the first vibration object is acquired;
If the vibration mode of the first vibration object is the superposition mode, generating fusion vibration information, wherein the fusion vibration information is used for indicating the terminal equipment to drive the target vibration device to perform fusion vibration on the first vibration object and the target vibration object.
In one implementation, the vibration indication information includes first priority vibration information, and one or more instructions in the computer readable storage medium are loaded by the processor 1101 and when executed to generate the vibration indication information based on the vibration mode of the target vibration object and the operational state of the target vibration device, specifically perform the steps of:
and if the working state of the target vibration device is that the first vibration object is executing the vibration, the vibration mode of the target vibration object comprises a superposition mode, the vibration mode of the first vibration object is a preemption mode, first priority vibration information is generated, and the first priority vibration information is used for indicating the terminal equipment to select to drive the target vibration device to vibrate the first vibration object or vibrate the target vibration object according to the vibration priority of the first vibration object and the vibration priority of the target vibration object.
In one implementation, the vibration indication information includes second priority vibration information, and one or more instructions in the computer readable storage medium are loaded by the processor 1101 and when executed to generate the vibration indication information based on the vibration mode of the target vibration object and the operational state of the target vibration device, specifically perform the steps of:
And if the working state of the target vibration device is that the first vibration object is executing, and the vibration mode of the target vibration object comprises a preemption mode, generating second priority vibration information, wherein the second priority vibration information is used for indicating the terminal equipment to select to drive the target vibration device to vibrate the first vibration object or vibrate the target vibration object according to the vibration priority of the first vibration object and the vibration priority of the target vibration object.
In one implementation, the vibration indication information comprises individual vibration information, and one or more instructions in the computer readable storage medium are loaded by the processor 1101 and when executed to generate the vibration indication information based on the vibration mode of the target vibration object and the operational state of the target vibration device, specifically perform the steps of:
and if the working state of the target vibration device is an idle state, generating independent vibration information, wherein the independent vibration information is used for indicating the terminal equipment to drive the target vibration device to vibrate the target vibration object.
In one implementation, the target application comprises a gaming application, and the target business scenario is any one of the gaming scenarios in the gaming application.
In another embodiment, the service processing device may be a terminal device mentioned in the foregoing embodiment; the computer-readable storage medium having one or more instructions stored therein; loading and executing, by the processor 1101, one or more instructions stored in a computer-readable storage medium to implement the corresponding steps in the business processing method embodiments described above; in particular implementations, one or more instructions in the computer-readable storage medium are loaded by the processor 1101 and perform the steps of:
Receiving a vibration description file and vibration indication information of a target service scene sent by a target application, wherein the vibration description file and the vibration indication information of the target service scene are sent when the target application identifies that a target vibration object to be vibrated is included in the target service scene, the vibration description file comprises vibration parameters of the target vibration object, the vibration parameters of the target vibration object comprise vibration modes of the target vibration object, and the vibration modes comprise a preemption mode or a superposition mode;
the vibration instruction information is generated based on a vibration mode of a target vibration object and an operation state of a target vibration device, the target vibration device being a vibration control device that matches the target vibration object;
and positioning the target vibration device from the M vibration control devices, and driving the target vibration device to vibrate according to the vibration indication information and the vibration description file under the target service scene.
In one implementation, the vibration parameters include attribute parameters and control parameters of the target vibration object; the attribute parameters include any of the following: position information, motion information, and vibration priority; the control parameters of the target vibration object include at least one of: vibration start time, vibration duration, vibration end time, vibration frequency, vibration intensity.
In one implementation, the attribute parameters include location information of the target vibration object, and one or more instructions in the computer-readable storage medium are loaded by the processor 1101 and, when executed, perform the steps of:
obtaining M vibration device information of M vibration control devices, wherein one vibration device information comprises a position range of the vibration control device responsible for vibration management;
and determining a target vibration device responsible for managing the vibration of the target vibration object according to the position information of the target vibration object and the M vibration device information.
In one implementation manner, the vibration indication information includes fusion vibration information, where the fusion vibration information is used to instruct the terminal device to drive the target vibration device to perform fusion vibration on the first vibration object and the target vibration object, and the first vibration object is a vibration object corresponding to the vibration being performed by the target vibration device;
one or more instructions in the computer-readable storage medium are loaded by the processor 1101 and, when executed, perform the steps of:
Acquiring control parameters of the first vibration object from vibration parameters of the first vibration object;
fusing the control parameters of the first vibration object and the control parameters of the target vibration object to obtain new control parameters;
and driving the target vibration device to vibrate based on the new control parameters under the target service scene.
In one implementation manner, the vibration indication information includes first priority vibration information or second priority vibration information, and the first priority vibration information and the second priority vibration information are used for indicating that the driving target vibration device vibrates the first vibration object or vibrates the target vibration object according to the vibration priority of the first vibration object and the vibration priority of the target vibration object;
one or more instructions in the computer-readable storage medium are loaded by the processor 1101 and, when executed, perform the steps of:
acquiring the vibration priority of the first vibration object from the control parameters of the first vibration object, and acquiring the vibration priority of the target vibration object from the control parameters of the target vibration object;
If the vibration priority of the first vibration object is different from the vibration priority of the target vibration object, driving the target vibration device to vibrate according to the control parameter corresponding to the vibration object with higher vibration priority under the target service scene;
if the vibration priority of the first vibration object is the same as that of the target vibration object, driving the target vibration device to vibrate according to the control parameter of the first vibration object or vibrate according to the control parameter of the target vibration object in the target service scene.
In one implementation, the vibration indication information includes separate vibration information, where the separate vibration information is used to instruct the terminal device to drive the target vibration device to vibrate the target vibration object, and one or more instructions in the computer readable storage medium are loaded by the processor 1101 and when executed to drive the target vibration device to vibrate according to the vibration indication information and the vibration description file in the target service scenario, specifically perform the following steps:
and driving the target vibration device to vibrate according to the control parameters of the target vibration device under the target service scene.
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 business processing device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the business processing device executes the business processing method.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable devices. The computer instructions may be stored in or transmitted across a computer-readable storage medium. The computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). Computer readable storage media can be any available media that can be accessed by a computer or data storage devices, such as servers, data centers, etc., that contain an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy Disk, a hard Disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (17)
1. A method for processing a service, comprising:
identifying a target service scene in a target application;
if the target service scene comprises a target vibration object to be vibrated, a vibration description file of the target service scene is obtained, the vibration description file of the target service scene comprises vibration parameters of the target vibration object, and the vibration parameters of the target vibration object comprise vibration modes of the target vibration object; the vibration mode of the target vibration object comprises a preemption mode or a superposition mode; the preemption mode is used for indicating that one vibration object is selected to vibrate according to the vibration priorities of different vibration objects;
acquiring the working state of a target vibration device matched with the target vibration object in the terminal equipment; the target vibration object is a vibration source which needs to generate a vibration effect in the target service scene; the process for acquiring the working state of the target vibration device matched with the target vibration object in the terminal equipment comprises the following steps: acquiring M vibration device information of M vibration devices reported by a terminal device, wherein the vibration device information of one vibration device comprises a position range of the vibration device responsible for vibration management and a working state of the vibration device; determining a target vibration device responsible for managing the vibration of the target vibration object according to the position information and the M vibration device information included in the vibration parameters of the target vibration object, and acquiring the working state of the target vibration device;
Generating vibration indication information based on a vibration mode of the target vibration object and an operation state of the target vibration device;
and sending the vibration indication information and the vibration description file to the terminal equipment so that the terminal equipment drives the target vibration device to vibrate according to the vibration indication information and the vibration description file under the target service scene.
2. The method of claim 1, wherein the method further comprises:
configuring a vibration description file of the target service scene according to the scene requirement of the target service scene;
wherein the vibration parameters of the target vibration object further comprise attribute parameters of the target vibration object and control parameters of the target vibration object; the attribute parameters include any one of the following: position information, motion information, and vibration priority; the control parameters include at least one of: vibration start time, vibration duration, vibration end time, vibration frequency, vibration intensity.
3. The method of claim 1, wherein the vibration indication information includes fused vibration information, the generating vibration indication information based on a vibration mode of the target vibration object and an operating state of the target vibration device, comprising:
If the working state of the target vibration device is that the first vibration object is executing the vibration, and the vibration mode of the target vibration object comprises a superposition mode, acquiring the vibration mode of the first vibration object;
and if the vibration mode of the first vibration object is the superposition mode, generating fusion vibration information, wherein the fusion vibration information is used for indicating the terminal equipment to drive the target vibration device to perform fusion vibration on the first vibration object and the target vibration object.
4. The method of claim 1, wherein the vibration indication information includes first priority vibration information, the generating vibration indication information based on a vibration mode of the target vibration object and an operation state of the target vibration device includes:
and if the working state of the target vibration device is that the first vibration object is executing, the vibration mode of the target vibration object comprises a superposition mode, the vibration mode of the first vibration object is a preemption mode, first priority vibration information is generated, and the first priority vibration information is used for indicating the terminal equipment to select and drive the target vibration device to vibrate the first vibration object or vibrate the target vibration object according to the vibration priority of the first vibration object and the vibration priority of the target vibration object.
5. The method of claim 1, wherein the vibration hint information includes second priority vibration information, the generating vibration indication information based on a vibration mode of the target vibration object and an operating state of the target vibration device comprising:
and if the working state of the target vibration device is that the first vibration object is executing, and the vibration mode of the target vibration object comprises a preemption mode, generating second priority vibration information, wherein the second priority vibration information is used for indicating the terminal equipment to select and drive the target vibration device to vibrate the first vibration object or vibrate the target vibration object according to the vibration priority of the first vibration object and the vibration priority of the target vibration object.
6. The method of claim 1, wherein the vibration indication information includes individual vibration information, the generating vibration indication information based on a vibration mode of the target vibration object and an operation state of the target vibration device, comprising:
and if the working state of the target vibration device is an idle state, generating independent vibration information, wherein the independent vibration information is used for indicating the terminal equipment to drive the target vibration device to vibrate the target vibration object.
7. The method of any of claims 1-6, wherein the target application comprises a gaming application, the target business scenario being any one of the gaming applications.
8. A method for processing a service, comprising:
receiving a vibration description file and vibration indication information of a target service scene sent by a target application, wherein the vibration description file and the vibration indication information of the target service scene are sent when the target application identifies that a target vibration object needing to be vibrated is included in the target service scene, the vibration description file comprises vibration parameters of the target vibration object, and the vibration parameters of the target vibration object comprise vibration modes and attribute parameters of the target vibration object; the attribute parameters comprise position information of the target vibration object; the vibration mode comprises a preemption mode or a superposition mode; the preemption mode is used for indicating that one vibration object is selected to vibrate according to the vibration priorities of different vibration objects;
the vibration indication information is generated based on a vibration mode of the target vibration object and an operating state of a target vibration device, the target vibration device being a vibration device that matches the target vibration object; the target vibration object is a vibration source which needs to generate a vibration effect in the target service scene;
Obtaining M vibration device information of M vibration devices, wherein one vibration device information comprises a position range of the vibration device responsible for vibration management; determining a target vibration device responsible for managing vibration of the target vibration object according to the position information of the target vibration object and the M vibration device information;
and driving the target vibration device to vibrate according to the vibration indication information and the vibration description file under the target service scene.
9. The method of claim 8, wherein the vibration parameters include control parameters of the target vibration object; the attribute parameters include any one of the following: motion information and vibration priority; the control parameters of the target vibration object include at least one of: vibration start time, vibration duration, vibration end time, vibration frequency, vibration intensity.
10. The method of claim 8, wherein the vibration indication information includes fusion vibration information for indicating a terminal device to drive the target vibration apparatus to fusion vibrate a first vibration object and the target vibration object, the first vibration object being a vibration object corresponding to a vibration being performed by the target vibration apparatus;
The driving the target vibration device to vibrate according to the vibration indication information and the vibration description file in the target service scene comprises the following steps:
acquiring control parameters of the first vibration object from the vibration parameters of the first vibration object;
fusing the control parameters of the first vibration object and the control parameters of the target vibration object to obtain new control parameters;
and driving the target vibration device to vibrate based on the new control parameters under the target service scene.
11. The method of claim 8, wherein the vibration indication information includes first priority vibration information or second priority vibration information, the first priority vibration information and the second priority vibration information being used to indicate that the terminal device selectively drives the target vibration device to vibrate the first vibration object or vibrate the target vibration object according to a vibration priority of the first vibration object and a vibration priority of the target vibration object; the first vibration object is a vibration object corresponding to a vibration being performed by the target vibration device;
The driving the target vibration device to vibrate according to the vibration indication information and the vibration description file in the target service scene comprises the following steps:
acquiring the vibration priority of the first vibration object from the control parameter of the first vibration object, and acquiring the vibration priority of the target vibration object from the control parameter of the target vibration object;
if the vibration priority of the first vibration object is different from the vibration priority of the target vibration object, driving the target vibration device to vibrate according to control parameters corresponding to the vibration object with higher vibration priority in the target service scene;
and driving the target vibration device to vibrate according to the control parameter of the first vibration object or vibrate according to the control parameter of the target vibration object under the target service scene if the vibration priority of the first vibration object is the same as the vibration priority of the target vibration object.
12. The method of claim 8, wherein the vibration indication information includes individual vibration information for indicating a terminal device to drive the target vibration device to vibrate the target vibration object, and the driving the target vibration device to vibrate according to the vibration indication information and the vibration description file in the target service scene includes:
And driving the target vibration device to vibrate according to the control parameters of the target vibration device under the target service scene.
13. A method for processing a service, comprising:
when a target vibration object needing to vibrate exists in a target service scene of a target application, acquiring a vibration description file of the target service scene; the vibration description file of the target service scene comprises vibration parameters of the target vibration object, the vibration parameters of the target vibration object comprise vibration modes of the target vibration object, and the vibration modes of the target vibration object comprise a preemption mode or a superposition mode; the preemption mode is used for indicating that one vibration object is selected to vibrate according to the vibration priorities of different vibration objects;
acquiring the working state of a target vibration device matched with the target vibration object, and generating vibration indication information based on the vibration mode of the target vibration object and the working state of the target vibration device; the target vibration object is a vibration source which needs to generate a vibration effect in the target service scene; the process of acquiring the working state of the target vibration device matched with the target vibration object comprises the following steps: acquiring M vibration device information of M vibration devices reported by a terminal device, wherein the vibration device information of one vibration device comprises a position range of the vibration device responsible for vibration management and a working state of the vibration device; determining a target vibration device responsible for managing the vibration of the target vibration object according to the position information and the M vibration device information included in the vibration parameters of the target vibration object, and acquiring the working state of the target vibration device;
And driving the target vibration device to vibrate according to the vibration indication information and the vibration description file under the target service scene.
14. A service processing apparatus, comprising:
the processing unit is used for identifying a target service scene in the target application;
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a vibration description file of the target service scene if the target service scene comprises a target vibration object to be vibrated, the vibration description file of the target service scene comprises vibration parameters of the target vibration object, and the vibration parameters of the target vibration object comprise vibration modes of the target vibration object; the vibration mode of the target vibration object comprises a preemption mode or a superposition mode; the preemption mode is used for indicating that one vibration object is selected to vibrate according to the vibration priorities of different vibration objects;
the acquisition unit is further used for acquiring the working state of a target vibration device matched with the target vibration object in the terminal equipment; the target vibration object is a vibration source which needs to generate a vibration effect in the target service scene; the process for acquiring the working state of the target vibration device matched with the target vibration object in the terminal equipment comprises the following steps: acquiring M vibration device information of M vibration devices reported by a terminal device, wherein the vibration device information of one vibration device comprises a position range of the vibration device responsible for vibration management and a working state of the vibration device; determining a target vibration device responsible for managing the vibration of the target vibration object according to the position information and the M vibration device information included in the vibration parameters of the target vibration object, and acquiring the working state of the target vibration device;
The processing unit is further used for generating vibration indication information based on the vibration mode of the target vibration object and the working state of the target vibration device;
the processing unit is further configured to send the vibration indication information and the vibration description file to the terminal device, so that the terminal device drives the target vibration device to vibrate according to the vibration indication information and the vibration description file in the target service scene.
15. A service processing apparatus, comprising:
the receiving unit is used for receiving a vibration description file and vibration indication information of a target service scene sent by a target application, wherein the vibration description file and the vibration indication information of the target service scene are sent when the target application identifies that a target vibration object needing to vibrate is included in the target service scene, the vibration description file comprises vibration parameters of the target vibration object, and the vibration parameters of the target vibration object comprise vibration modes and attribute parameters of the target vibration object; the attribute parameters comprise position information of the target vibration object; the vibration mode comprises a preemption mode or a superposition mode; the preemption mode is used for indicating that one vibration object is selected to vibrate according to the vibration priorities of different vibration objects;
The vibration indication information is generated based on a vibration mode of the target vibration object and an operating state of a target vibration device, the target vibration device being a vibration device that matches the target vibration object; the target vibration object is a vibration source which needs to generate a vibration effect in the target service scene;
the processing unit is used for acquiring M vibration device information of M vibration devices, wherein one vibration device information comprises a position range of one vibration device responsible for vibration management; determining a target vibration device responsible for managing vibration of the target vibration object according to the position information of the target vibration object and the M vibration device information;
the processing unit is further configured to drive the target vibration device to vibrate according to the vibration indication information and the vibration description file under the target service scene.
16. A service processing apparatus, comprising:
a processor adapted to execute a computer program;
a computer readable storage medium having a computer program stored therein, which when executed by the processor, implements the service processing method according to any of claims 1-7 or the service processing method according to any of claims 8-13.
17. 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 service processing method according to any of claims 1-7 or to implement the service processing method according to any of claims 8-13.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110776292.8A CN115591226B (en) | 2021-07-08 | 2021-07-08 | Service processing method, device, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110776292.8A CN115591226B (en) | 2021-07-08 | 2021-07-08 | Service processing method, device, equipment and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115591226A CN115591226A (en) | 2023-01-13 |
CN115591226B true CN115591226B (en) | 2023-09-22 |
Family
ID=84840341
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110776292.8A Active CN115591226B (en) | 2021-07-08 | 2021-07-08 | Service processing method, device, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115591226B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115907804B (en) * | 2023-03-03 | 2023-06-23 | 腾讯科技(深圳)有限公司 | Service processing method and device, computer equipment and storage medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102755744A (en) * | 2012-06-25 | 2012-10-31 | 惠州Tcl移动通信有限公司 | Method, system and mobile terminal for game control |
CN104935740A (en) * | 2015-06-05 | 2015-09-23 | 广东小天才科技有限公司 | Method for starting vibration motor of mobile terminal and mobile terminal |
CN108837504A (en) * | 2018-06-05 | 2018-11-20 | 网易(杭州)网络有限公司 | Information processing method, device, equipment and storage medium in race games |
JP2019017475A (en) * | 2017-07-12 | 2019-02-07 | 任天堂株式会社 | Game system, game program, game device and game processing method |
CN110215697A (en) * | 2019-06-28 | 2019-09-10 | 瑞声科技(新加坡)有限公司 | The method for oscillating and device of game paddle, game paddle |
CN110292771A (en) * | 2019-07-04 | 2019-10-01 | 网易(杭州)网络有限公司 | Haptic feedback control method and device, equipment, medium in game |
CN110850980A (en) * | 2019-11-07 | 2020-02-28 | 网易(杭州)网络有限公司 | Mobile terminal control method, mobile terminal and storage medium |
JP2020174938A (en) * | 2019-04-19 | 2020-10-29 | 任天堂株式会社 | Game program, game system, game apparatus and game controlling method |
CN112114658A (en) * | 2019-06-19 | 2020-12-22 | 微盟电子(昆山)有限公司 | Vibration feedback method and electronic device with vibration feedback |
CN112394817A (en) * | 2020-11-26 | 2021-02-23 | 瑞声新能源发展(常州)有限公司科教城分公司 | Method, apparatus, electronic device and storage medium for responding to vibration event |
-
2021
- 2021-07-08 CN CN202110776292.8A patent/CN115591226B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102755744A (en) * | 2012-06-25 | 2012-10-31 | 惠州Tcl移动通信有限公司 | Method, system and mobile terminal for game control |
CN104935740A (en) * | 2015-06-05 | 2015-09-23 | 广东小天才科技有限公司 | Method for starting vibration motor of mobile terminal and mobile terminal |
JP2019017475A (en) * | 2017-07-12 | 2019-02-07 | 任天堂株式会社 | Game system, game program, game device and game processing method |
CN108837504A (en) * | 2018-06-05 | 2018-11-20 | 网易(杭州)网络有限公司 | Information processing method, device, equipment and storage medium in race games |
JP2020174938A (en) * | 2019-04-19 | 2020-10-29 | 任天堂株式会社 | Game program, game system, game apparatus and game controlling method |
CN112114658A (en) * | 2019-06-19 | 2020-12-22 | 微盟电子(昆山)有限公司 | Vibration feedback method and electronic device with vibration feedback |
CN110215697A (en) * | 2019-06-28 | 2019-09-10 | 瑞声科技(新加坡)有限公司 | The method for oscillating and device of game paddle, game paddle |
CN110292771A (en) * | 2019-07-04 | 2019-10-01 | 网易(杭州)网络有限公司 | Haptic feedback control method and device, equipment, medium in game |
CN110850980A (en) * | 2019-11-07 | 2020-02-28 | 网易(杭州)网络有限公司 | Mobile terminal control method, mobile terminal and storage medium |
CN112394817A (en) * | 2020-11-26 | 2021-02-23 | 瑞声新能源发展(常州)有限公司科教城分公司 | Method, apparatus, electronic device and storage medium for responding to vibration event |
Also Published As
Publication number | Publication date |
---|---|
CN115591226A (en) | 2023-01-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110585699B (en) | Control method, device and equipment of cloud game and storage medium | |
US20180293771A1 (en) | Systems and methods for creating, sharing, and performing augmented reality | |
EP2779039A1 (en) | Computing system with content-based alert mechanism and method of operation thereof | |
US20130141325A1 (en) | Portable device pairing with a tracking system | |
CN114746158B (en) | Artificial Intelligence (AI) controlled camera view generator and AI broadcaster | |
KR20150110403A (en) | Automatic tuning of haptic effects | |
US20190171500A1 (en) | Application event distribution system | |
CN111490996B (en) | Network attack processing method and device, computer equipment and storage medium | |
US20100100820A1 (en) | User specific music in virtual worlds | |
US20170161011A1 (en) | Play control method and electronic client | |
CN115591226B (en) | Service processing method, device, equipment and medium | |
US20220300144A1 (en) | Method, system, and non-transitory computer readable record medium for providing chatroom in 3d form | |
CN113413615A (en) | Game invitation method, device, computer equipment and storage medium | |
CN114146426A (en) | Control method and device for game in secret room, computer equipment and storage medium | |
CN100437450C (en) | Device with game-dependent user intrface, method, game module and computer program product therefor | |
CN111260341B (en) | Traffic violation data auditing method, computer equipment and readable storage medium | |
WO2024039987A1 (en) | Adjusting haptic rendering based on contextual awareness | |
US20170168672A1 (en) | Method and electronic device for data updating | |
CN117008713A (en) | Augmented reality display method and device and computer readable storage medium | |
WO2022235527A1 (en) | Create and remaster computer simulation skyboxes | |
US8830167B2 (en) | Data processing apparatus and recording medium | |
CN110808985A (en) | Song on-demand method, device, terminal, server and storage medium | |
CN111077984A (en) | Man-machine interaction method and device, electronic equipment and computer storage medium | |
US20240325899A1 (en) | Systems and methods for executing feedback signatures on a second screen device to convey occurrences of events in connection with a video game | |
CN115671712B (en) | Vibration control method, device, equipment and storage medium |
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 | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 40079102 Country of ref document: HK |
|
GR01 | Patent grant | ||
GR01 | Patent grant |