Data processing method and data processing device

By converting the first data into a specific data format in Unreal Engine and realizing task distribution, the problems of large computing volume and low data processing efficiency caused by the large number of APIs are solved, and the execution efficiency is significantly improved.

CN119960926APending Publication Date: 2025-05-09BEIJING INSTITUTE FOR GENERAL ARTIFICIAL INTELLIGENCE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311491584.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-09
Publication Date
2025-05-09

AI Technical Summary

Technical Problem

In Unreal Engine, when task distribution, due to the large number of APIs, the calculation volume is large, which affects the corresponding rate and data processing effect.

Method used

By converting the first data into a specific data format, different fields in the data format correspond to different execution bodies, and the next execution body is determined based on the identification of the previous field, thereby realizing task distribution.

Benefits of technology

It significantly improves execution efficiency, thereby improving data processing efficiency, and is suitable for facing a large number of API processing scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119960926A_ABST
    Figure CN119960926A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method and a data processing device, and belongs to the field of UE. The data processing method comprises the steps that a server side analyzes received first data into a first data format, and the first data format comprises a plurality of first fields arranged in sequence; the first object receives the first data and forwards the first data to the second object; under the condition that the object identifier contained in the second target field is not the method identifier, determining the second object as a new first object, and updating the second object corresponding to the new first object; and under the condition that the object identifier contained in the second target field is the method identifier, the object corresponding to the method identifier updates the attribute data based on the first data. The data processing method is suitable for a large number of API processing scenes, the execution efficiency is remarkably improved, and therefore the data processing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the UE field, and in particular, relates to a data processing method and a data processing device. Background Art

[0002] In the Unreal Engine (UE) field, when distributing tasks, in related technologies, the API mainly sends instructions to the server, and the server's execution unit has complete control over the entire task, that is, all controls must be controlled by the same execution unit. When there are a large number of APIs, it will lead to a large amount of calculation, thereby affecting the corresponding rate and data processing effect. Summary of the invention

[0003] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application proposes a data processing method and a data processing device, which are suitable for a large number of API processing scenarios, significantly improve the execution efficiency, and thus improve the data processing efficiency.

[0004] In a first aspect, the present application provides a data processing method, the method comprising:

[0005] The server parses the received first data into a first data format, wherein the first data format includes a plurality of first fields arranged in sequence; object identifiers included in some of the plurality of first fields arranged in sequence are: an object identifier, a component identifier, and a method identifier;

[0006] The first object receives the first data and forwards the first data to the second object; the first object is an object or a distributor corresponding to the object identifier contained in the first target field of the plurality of sequentially arranged first fields; the second object is an object corresponding to the object identifier contained in the second target field of the plurality of sequentially arranged first fields, and the second target field is arranged after the first target field and adjacent to the first target field;

[0007] In a case where the object identifier included in the second target field is not the method identifier, determining the second object as a new first object, and updating a second object corresponding to the new first object;

[0008] In a case where the object identifier included in the second target field is the method identifier, the object corresponding to the method identifier updates attribute data based on the first data.

[0009] According to the data processing method of the present application, by converting the first data into a first data format, different fields in the first data format correspond to different execution entities, and the next execution entity is determined based on the identifier included in the previous field, thereby realizing task distribution. This method is suitable for a large number of API processing scenarios, significantly improves the execution efficiency, and thus improves the data processing efficiency.

[0010] According to an embodiment of the present application, the first object self-maintains a second object set, and the second object set includes at least one second object and an object identifier corresponding to each second object.

[0011] According to an embodiment of the present application, the first object receives the first data, and forwards the first data to the second object, including:

[0012] The first object determines the second target field from the plurality of sequentially arranged first fields;

[0013] The first object extracts the object identifier contained in the second target field from the second target field;

[0014] The first object determines, based on the object identifier included in the second target field, a second object corresponding to the object identifier included in the second target field from the second object set maintained by the first object;

[0015] The first object sends the first data to the second object.

[0016] According to an embodiment of the present application, when the object identifier included in the second target field is the method identifier, the object corresponding to the method identifier updates attribute data based on the first data, including:

[0017] The method identifies a corresponding object to parse the custom parameters in the first data, and updates the attribute data based on the parsed result.

[0018] According to an embodiment of the present application, before the server parses the received first data into the first data format, the method further includes:

[0019] The client splits the target function into the object identifier, the component identifier, the method identifier and the custom parameter;

[0020] Encapsulate the object identifier, the component identifier, the method identifier, and the custom parameter based on the first data format to obtain the first data;

[0021] The first data is sent to the server.

[0022] According to one embodiment of the present application, it also includes:

[0023] The server determines a second data format, where the second data format includes a plurality of second fields arranged in sequence:

[0024] In the case of attribute data change, the first target object corresponding to the server side fills the changed attribute data into the target second field of the plurality of sequentially arranged second fields; the first target object is an object in the plurality of second objects corresponding to the plurality of sequentially arranged second fields;

[0025] The second target object among the plurality of second objects corresponding to the plurality of second fields arranged in sequence fills other data into other fields among the plurality of second fields arranged in sequence except the target second field, to obtain target data;

[0026] The second target object sends the target data to the client.

[0027] According to one embodiment of the present application, the plurality of sequentially arranged second fields include: a second field corresponding to the object identification, a second field corresponding to the component identification, a second field corresponding to the global time code, and a second field corresponding to the data list.

[0028] According to one embodiment of the present application, the first target object is the object corresponding to the object identifier, the target second field is the second field corresponding to the data list, the second target object is the object corresponding to the component identifier, and the other fields include at least one of the second field corresponding to the object identifier, the second field corresponding to the component identifier, and the second field corresponding to the global time code.

[0029] According to an embodiment of the present application, the method further includes: the second target object refreshes the attribute data corresponding to the second target object based on the target duration, and determines whether the attribute data has changed.

[0030] In a second aspect, the present application provides a data processing device, the device comprising:

[0031] A first processing module is used to enable the server to parse the received first data into a first data format, wherein the first data format includes a plurality of first fields arranged in sequence; object identifiers included in some of the plurality of first fields arranged in sequence are: an object identifier, a component identifier, and a method identifier;

[0032] A second processing module is used to enable a first object to receive the first data and forward the first data to a second object; the first object is an object or a distributor corresponding to an object identifier included in a first target field in the plurality of sequentially arranged first fields; the second object is an object corresponding to an object identifier included in a second target field in the plurality of sequentially arranged first fields, and the second target field is arranged after the first target field and adjacent to the first target field;

[0033] a third processing module, configured to, when the object identifier included in the second target field is not the method identifier, determine the second object as a new first object, and update a second object corresponding to the new first object;

[0034] The fourth processing module is used for, when the object identifier contained in the second target field is the method identifier, causing the object corresponding to the method identifier to update attribute data based on the first data.

[0035] According to the data processing device of the present application, by converting the first data into the first data format, different fields in the first data format correspond to different execution entities, and the next execution entity is determined based on the identifier included in the previous field, thereby realizing task distribution. It is suitable for a large number of API processing scenarios, significantly improves the execution efficiency, and thus improves the data processing efficiency.

[0036] In a third aspect, the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the data processing method as described in the first aspect above is implemented.

[0037] In a fourth aspect, the present application provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the data processing method as described in the first aspect above.

[0038] In a fifth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the data processing method as described in the first aspect above.

[0039] The above one or more technical solutions in the embodiments of the present application have at least one of the following technical effects:

[0040] By converting the first data into the first data format, different fields in the first data format correspond to different execution entities, and the next execution entity is determined based on the identifier included in the previous field, thereby realizing task distribution. This is suitable for a large number of API processing scenarios, significantly improves execution efficiency, and thus improves data processing efficiency.

[0041] Furthermore, by defining a second data format, and having the first target object fill in the changed attribute data into the corresponding field in the second data format, and having the second target object fill in the contents of other fields to generate and send the target data, different execution entities perform different tasks to improve execution efficiency, thereby improving data processing efficiency.

[0042] Furthermore, by periodically refreshing its own attribute data through the second target object, and actively determining whether its own attribute data has changed, a message is pushed when it is determined that the attribute data has changed, the attribute information can be updated in time, and the real-time and accuracy of the information can be improved.

[0043] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0045] Figure 1 It is a flowchart of a data processing method provided in an embodiment of the present application;

[0046] Figure 2 is a structural schematic diagram of a data processing device provided in an embodiment of the present application;

[0047] Figure 3 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0049] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0050] The data processing method, data processing device, electronic device and readable storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0051] The data processing method may be applied to a terminal, and may be specifically executed by hardware or software in the terminal.

[0052] The data processing method provided in the embodiments of the present application may be executed by an electronic device or a functional module or functional entity in the electronic device that can implement the data processing method. The electronic devices mentioned in the embodiments of the present application include but are not limited to mobile phones, tablet computers, computers, cameras, and wearable devices. The data processing method provided in the embodiments of the present application is described below using an electronic device as an example of an execution subject.

[0053] like Figure 1 As shown, the data processing method includes: step 110, step 120, step 130 and step 140.

[0054] Step 110: The server parses the received first data into a first data format, where the first data format includes a plurality of first fields arranged in sequence; object identifiers included in some of the plurality of first fields arranged in sequence are: an object identifier, a component identifier, and a method identifier;

[0055] In this step, the first data may be data sent from the client to the server.

[0056] The server side includes multiple nodes, among which the distributor is the top-level node. Under the distributor, there are one or more nodes corresponding to each node, which serve as different execution entities. The multiple nodes can be in a tree structure, and different nodes are used to execute corresponding functions.

[0057] It can be understood that the data processing method can be applied to any UE scenario.

[0058] The first data is data corresponding to the function to be implemented by the API.

[0059] Taking the virtual environment simulation control of objects and characters in the UE scenario as an example, the client API provides virtual environment simulation control data (ie, first data) based on objects and characters, thereby controlling the server to complete corresponding control functions.

[0060] In some embodiments, the first data may include: data corresponding to an object / role, data corresponding to a component, data corresponding to a method, and data corresponding to a parameter.

[0061] During the actual execution process, the client can split the functions to be implemented by the API into: data corresponding to the object / role, data corresponding to the component, data corresponding to the method, and custom parameters corresponding to the method, and encapsulate the multiple data obtained by the split according to the first data format to obtain the encapsulated first data.

[0062] Table 1 illustrates a first data format, wherein the first data format includes a plurality of first fields arranged in sequence, and some of the plurality of first fields arranged in sequence respectively correspond to object identifiers.

[0063] Table 1

[0064] Data Label 1 2 3 4 Data content Object / Character ID Component ID Method ID Method custom parameters

[0065] In some embodiments, the object identification may include: object identification, component identification, and method identification.

[0066] In this embodiment, the first fields corresponding to the object identification, component identification and method identification are arranged in sequence, as shown in Table 1.

[0067] The identifier is the identity identifier of the object, which can be expressed as an ID or other forms, and this application does not limit it.

[0068] It should be noted that, in the data structure shown in Table 1, the execution subject corresponding to the previous field is the upper-layer execution subject of the execution subject corresponding to the latter field.

[0069] In some embodiments, the execution order of the execution entities corresponding to the server is from front to back: distributor, object object, component object and method object.

[0070] The first field corresponding to the object identifier is used to fill in the data corresponding to the object / role, the first field corresponding to the component identifier is used to fill in the data corresponding to the component, and the first field corresponding to the method identifier is used to fill in the data corresponding to the method.

[0071] In some embodiments, the first field may also include a field corresponding to a custom parameter, and the field corresponding to the custom parameter is used to fill in the custom parameter corresponding to the method.

[0072] In some embodiments, the first object maintains a second object set by itself, and the second object set includes at least one second object and an object identifier corresponding to each second object.

[0073] In this embodiment, the first object may be any object among the object object, component object and method object shown in Table 1.

[0074] For the same first object, there is at least one corresponding second object.

[0075] For example, the same object may correspond to at least one component object; the same component object may correspond to at least one method object; each method object may include at least one method function, and each method function may correspond to custom parameters.

[0076] In the actual execution process, for any first object, it maintains a second object set by itself, and the second object set may include all the second objects corresponding to it and the object identifiers corresponding to each second object.

[0077] The second object set may be in the form of a table.

[0078] Taking a door as an example, the door object has its own position and information such as door opening and closing, among which its own position information and door opening and closing information can be independently used as a component object.

[0079] Each component object may include at least one implementation method (ie, method object). Taking the component object "open and close door" as an example, the component object may include multiple method objects such as opening door, closing door, and opening and closing angle.

[0080] In the present application, after the server receives the first data sent by the client API, it can parse the first data into a first data format, thereby obtaining the following included in the first data: object / role ID, component ID, method ID and custom parameters corresponding to the method ID.

[0081] Step 120, the first object receives the first data, and forwards the first data to the second object; the first object is an object or a distributor corresponding to the object identifier contained in the first target field in the plurality of sequentially arranged first fields; the second object is an object corresponding to the object identifier contained in the second target field in the plurality of sequentially arranged first fields, and the second target field is arranged after the first target field and adjacent to the first target field;

[0082] In this step, the first target field may be any field among the plurality of sequentially arranged first fields.

[0083] The first object is an object corresponding to the object identifier included in the first target field or may be a distributor.

[0084] The second target field is a field arranged after the first target field and adjacent to the first target field; when the first object is a distributor, the second target field is an object corresponding to the first object identifier in a plurality of sequentially arranged first fields.

[0085] The second object is the object corresponding to the object identifier contained in the second target field; when the first object is a distributor, the second object is an object object.

[0086] For example, when the first object is a server, the second target field may be a field corresponding to the object ID, and the second object is the object object.

[0087] For another example, when the first target field is a field corresponding to an object ID, the second target field may be a field corresponding to a component ID; the first object is an object object, and the second object is a component object.

[0088] In this step, the execution subject on the server side can be divided into multiple types based on the first data format, with the distributor as the top-level execution subject, followed by the object object. After receiving the first data, the previous execution subject determines the next execution subject corresponding to the previous execution subject and forwards the first data to the next execution subject.

[0089] For example, the server side (ie, the distributor) maintains an object / role table, which includes one or more identifiers corresponding to objects / roles and objects corresponding to the identifiers, such as object / role IDs and object objects corresponding to each object / role ID.

[0090] Taking the first object as a distributor as an example, after the server obtains the first data in the first data format, the server's distributor (i.e., the first object) determines the object / role ID from the object / role ID, component ID, method ID, and the custom parameters corresponding to the method ID, and based on the object / role ID, queries the object / role object (i.e., the second object) corresponding to the object / role ID from the object / role table, and then sends the first data to the second object corresponding to the object / role ID.

[0091] Step 130: when the object identifier included in the second target field is not a method identifier, determine the second object as a new first object, and update the second object corresponding to the new first object;

[0092] In this step, the method identifier is the identifier corresponding to the last execution subject in the first data format.

[0093] When the object identifier contained in the second target field is not a method identifier, it is considered that there is a next execution subject, and the current second object is determined as the first object corresponding to the next round, and the second object corresponding to the new first object is updated.

[0094] For example, continuing to take the first object as the distributor, after the server side obtains the first data in the first data format, the distributor of the server (i.e., the first object) determines the next execution subject, i.e., determines the object / role object (i.e., the second object) corresponding to the object / role ID, and then sends the first data to the second object corresponding to the object / role ID;

[0095] Determine whether the second object is a method object;

[0096] In the case where it is determined that the object / role object is not a method object, the current second object (i.e., the object / role object) is determined as a new first object, and the next execution subject corresponding to the new first object (i.e., the object / role object) is obtained, and the next execution subject component object is determined as a new second object, i.e., the component object corresponding to the object / role determination component ID, and the first data is forwarded to the component object corresponding to the component ID;

[0097] And so on, until the second object is a method identifier.

[0098] The specific implementation of step 130 is described below.

[0099] In some embodiments, step 130 may include:

[0100] The first object determines a second target field from a plurality of sequentially arranged first fields;

[0101] The first object extracts the object identifier contained in the second target field from the second target field;

[0102] The first object determines, based on the object identifier included in the second target field, from a set of second objects maintained by the first object, a second object corresponding to the object identifier included in the second target field;

[0103] The first object sends first data to the second object.

[0104] In this embodiment, the first object maintains a second object set, and the second object set includes one or more second objects.

[0105] For example, the object object maintains a component table, which includes one or more components and an ID corresponding to each component.

[0106] Continuing with the above embodiment as an example, after the server obtains the first data in the first data format, the distributor of the server (i.e., the first object) determines the object / role ID from the first data, and queries the object / role object (i.e., the second object) corresponding to the object / role ID from the object / role table maintained by the distributor based on the object / role ID, and then sends the first data to the second object corresponding to the object / role ID;

[0107] Updating the first object to an object object;

[0108] The object object queries the component object corresponding to the component ID from the component table maintained by the object object based on the component ID in the first data, and forwards the first data to the component object corresponding to the component ID;

[0109] Updating the first object to a component object;

[0110] The component object searches the method table maintained by it for the method object corresponding to the method ID based on the method ID in the first data, and forwards the first data to the method object corresponding to the method ID; at this time, the field where the identifier corresponding to the method object is located is updated to the second target field;

[0111] When the object identifier contained in the second target field is a method identifier, the process goes to step 140 .

[0112] Step 140: When the object identifier included in the second target field is a method identifier, the object corresponding to the method identifier updates attribute data based on the first data.

[0113] In this step, the method identifier is the identifier corresponding to the last execution subject in the first data format.

[0114] When the object identifier contained in the second target field is a method identifier, the current execution subject is considered to be the last execution subject.

[0115] Continuing to take the data format corresponding to Table 1 as an example, when the component object queries the method object corresponding to the method ID from the method table it maintains based on the method ID in the first data, and forwards the first data to the method object corresponding to the method ID, the field where the identifier corresponding to the method object is located is updated to the second target field;

[0116] If it is determined that the object identifier included in the second target field is a method identifier, a method object is determined based on the method identifier, and the method object updates the attribute data based on the first data.

[0117] The specific implementation of step 140 is described below.

[0118] In some embodiments, step 140 may include: the method identifier corresponding to the object parses the custom parameters in the first data, and updates the attribute data based on the parsed result.

[0119] In this embodiment, the custom parameters are parameters included in the first data.

[0120] The object corresponding to the method identifier can be a method function.

[0121] During the actual execution process, when the component object queries the method object corresponding to the method ID from the method table it maintains based on the method ID in the first data, it forwards the first data to the method object (i.e., method function) corresponding to the method ID. The method function parses the custom parameters in the first data and performs corresponding calculation tasks to update the attribute data.

[0122] In the present application, by converting the first data into a first data format, different fields in the first data format correspond to different execution entities, and the next execution entity is determined based on the identifier included in the previous field, thereby realizing task distribution. There is no need for the same execution entity to execute multiple tasks, which significantly improves the execution efficiency and thus improves the data processing efficiency.

[0123] According to the data processing method provided in the embodiment of the present application, by converting the first data into a first data format, different fields in the first data format correspond to different execution entities, and the next execution entity is determined based on the identifier included in the previous field, thereby realizing task distribution. This method is suitable for a large number of API processing scenarios, significantly improves the execution efficiency, and thus improves the data processing efficiency.

[0124] In some embodiments, before step 110, the method may further include:

[0125] The client splits the target function into object identification, component identification, method identification and custom parameters;

[0126] Encapsulate the object identifier, the component identifier, the method identifier, and the custom parameter based on the first data format to obtain first data;

[0127] The first data is sent to the server.

[0128] In this embodiment, the target function is the function to be implemented by the API.

[0129] The first data is data packaged based on a first data format.

[0130] During the actual execution process, the message encapsulation logic of the client API can be: split the function to be implemented by the API (i.e., the target function) into objects / roles, components, methods, and custom parameters corresponding to the methods, and encapsulate the above information according to the first data format of Table 1 to obtain the first data.

[0131] Then the client sends the first data to the server.

[0132] After receiving the first data sent by the client API, the server performs the following operations in sequence:

[0133] (1) Parse the received first data into the data format of Table 1, thereby obtaining the object ID, component ID, method ID, method custom parameters, etc.

[0134] (2) The server side maintains an object / role table. The distributor queries the object / role object corresponding to the object ID from the object / role table based on the object / role ID obtained by parsing, and forwards the message to the object / role object; then the object object is updated to the first object, and the component object corresponding to the component field located after the field corresponding to the object object is updated to the second object.

[0135] (3) The object / role object itself maintains a component table, queries the component object corresponding to the component ID from the component table according to the component ID in the first data, forwards the message to the component object, and then updates the component object to the first object, and updates the method object corresponding to the method field located after the field corresponding to the component object to the second object.

[0136] (4) The component object maintains a method table, queries the method function corresponding to the method ID in the method table according to the method ID in the first data, and forwards the first data to the method function.

[0137] (5) If the method function is determined to be the last execution subject, the method function parses the custom parameters in the first data and executes the corresponding calculation task to update the attribute data.

[0138] According to the data processing method provided in the embodiment of the present application, the functions to be implemented by the API are split into object identification, component identification, method identification and custom parameters by the client, and the above information is encapsulated based on the first data format to obtain the first data, and then the first data is sent to the server, so that the server can determine different execution subjects based on the received first data, so as to determine the next execution subject based on the identification included in the previous field, thereby realizing task distribution. It is suitable for a large number of API processing scenarios, significantly improves the execution efficiency, and thus improves the data processing efficiency.

[0139] In some embodiments, the method may further include:

[0140] The server determines a second data format, where the second data format includes a plurality of second fields arranged in sequence:

[0141] In the case of attribute data change, the first target object corresponding to the server side fills the changed attribute data into the target second field of the plurality of sequentially arranged second fields; the first target object is an object in the plurality of second objects corresponding to the plurality of sequentially arranged second fields;

[0142] The second target object among the plurality of second objects corresponding to the plurality of second fields arranged in sequence fills other data into other fields among the plurality of second fields arranged in sequence except the target second field, to obtain target data;

[0143] The second target object sends the target data to the client.

[0144] In this embodiment, the second data format may include a plurality of second fields arranged in sequence, as shown in Table 2.

[0145] Table 2

[0146] Data Label 1 2 3 4 Data content Object / Character ID Component ID Global time code Custom attribute data list

[0147] In some embodiments, the plurality of sequentially arranged second fields may include: a second field corresponding to an object identification, a second field corresponding to a component identification, a second field corresponding to a global time code, and a second field corresponding to a data list.

[0148] In this embodiment, the data list is a custom attribute data list, which is used to fill in the changed attribute data.

[0149] The first target object is an object used to fill in the changed attribute data.

[0150] The second target object is an object used to fill in other data except the changed attribute data.

[0151] It should be noted that the first target object is different from the second target object.

[0152] The target data is data encapsulated based on the second data format and is used to be pushed from the server to the client.

[0153] In some embodiments, the first target object is the object corresponding to the object identification, the target second field is the second field corresponding to the data list, the second target object is the object corresponding to the component identification, and other fields include at least one of the second field corresponding to the object identification, the second field corresponding to the component identification, and the second field corresponding to the global time code.

[0154] In this embodiment, when the attribute data changes, the component object fills the changed attribute data into the custom attribute data list field in Table 2; the component object fills in the object / role ID data field in Table 2; the component object fills in the global time code data field in Table 2 to obtain the target data; the component object sends the target data to the client through the message channel maintained by itself.

[0155] According to the data processing method provided in the embodiment of the present application, by defining a second data format, and having the first target object fill in the changed attribute data into the corresponding field in the second data format, and having the second target object fill in the contents of other fields to generate and send the target data, different execution entities perform different tasks to improve execution efficiency, thereby improving data processing efficiency.

[0156] In some embodiments, the method may further include:

[0157] The second target object refreshes the attribute data corresponding to the second target object based on the target duration, and determines whether the attribute data has changed.

[0158] For example, taking the component object "open and close the door" as an example, when the door is pushed open, due to inertia, it is detected that the opening angle of the door changes automatically, such as 45° in the 1st second, 90° in the 2nd second, and remains unchanged after the 3rd second. That is, it is determined that the attribute data corresponding to the component object has changed in the 1st and 2nd seconds, and the changed attribute data needs to be sent to the client at this time; and the attribute data remains unchanged after the 3rd second, and there is no need to send the attribute data.

[0159] According to the data processing method provided in the embodiment of the present application, the second target object periodically refreshes its own attribute data and actively determines whether its own attribute data has changed, so as to push messages when it is determined that the attribute data has changed, thereby being able to update the attribute information in a timely manner and improving the real-time and accuracy of the information.

[0160] The data processing method provided in the embodiment of the present application can be executed by a data processing device. In the embodiment of the present application, the data processing device provided in the embodiment of the present application is described by taking the data processing method executed by the data processing device as an example.

[0161] An embodiment of the present application also provides a data processing device.

[0162] like Figure 2 As shown, the data processing device includes: a first processing module 210 , a second processing module 220 , a third processing module 230 and a fourth processing module 240 .

[0163] The first processing module 210 is used to enable the server to parse the received first data into a first data format, where the first data format includes a plurality of first fields arranged in sequence; object identifiers included in some of the plurality of first fields arranged in sequence are: an object identifier, a component identifier, and a method identifier;

[0164] The second processing module 220 is used to enable the first object to receive the first data and forward the first data to the second object; the first object is an object corresponding to the object identifier contained in the first target field of the plurality of sequentially arranged first fields; the second object is an object corresponding to the object identifier contained in the second target field of the plurality of sequentially arranged first fields, and the second target field is arranged after the first target field and adjacent to the first target field;

[0165] The third processing module 230 is used to determine the second object as a new first object and update the second object corresponding to the new first object when the object identifier contained in the second target field is not a method identifier;

[0166] The fourth processing module 240 is configured to update attribute data of the object corresponding to the method identifier based on the first data when the object identifier included in the second target field is a method identifier.

[0167] According to the data processing device provided in the embodiment of the present application, by converting the first data into the first data format, different fields in the first data format correspond to different execution subjects, and the next execution subject is determined based on the identifier included in the previous field, thereby realizing task distribution. It is suitable for a large number of API processing scenarios, significantly improves the execution efficiency, and thus improves the data processing efficiency.

[0168] In some embodiments, the second processing module 220 may also be used to:

[0169] causing the first object to determine a second target field from a plurality of sequentially arranged first fields;

[0170] causing the first object to extract, from the second target field, an object identifier contained in the second target field;

[0171] The first object determines, based on the object identifier included in the second target field, a second object corresponding to the object identifier included in the second target field from a set of second objects maintained by the first object;

[0172] The first object is caused to send first data to the second object.

[0173] In some embodiments, the fourth processing module 240 may also be used to: enable the object corresponding to the method identifier to parse the custom parameters in the first data, and update the attribute data based on the parsed result.

[0174] In some embodiments, the apparatus may further include: a fifth processing module, configured to:

[0175] Before the server parses the received first data into the first data format, the client is enabled to split the target function into an object identifier, a component identifier, a method identifier, and a custom parameter;

[0176] Encapsulate the object identifier, the component identifier, the method identifier, and the custom parameter based on the first data format to obtain first data;

[0177] The first data is sent to the server.

[0178] In some embodiments, the apparatus may further include: a sixth processing module, configured to:

[0179] The server determines a second data format, where the second data format includes a plurality of second fields arranged in sequence:

[0180] In the case of attribute data change, the first target object corresponding to the server side fills the changed attribute data into the target second field of the plurality of sequentially arranged second fields; the first target object is an object in the plurality of second objects corresponding to the plurality of sequentially arranged second fields;

[0181] Make the second target object among the plurality of second objects corresponding to the plurality of second fields arranged in sequence fill other data into other fields among the plurality of second fields arranged in sequence except the target second field, to obtain target data;

[0182] The second target object sends target data to the client.

[0183] In some embodiments, the device may further include: a seventh processing module, configured to: enable the second target object to refresh the attribute data corresponding to the second target object based on the target duration, and determine whether the attribute data has changed

[0184] The data processing device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0185] The data processing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an IOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0186] The data processing device provided in the embodiment of the present application can realize Figure 1 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0187] In some embodiments, Figure 3 As shown, an embodiment of the present application also provides an electronic device 300, including a processor 301, a memory 302, and a computer program stored in the memory 302 and executable on the processor 301. When the program is executed by the processor 301, each process of the above-mentioned data processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0188] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0189] An embodiment of the present application also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned data processing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0190] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0191] An embodiment of the present application also provides a computer program product, including a computer program, which implements the above-mentioned data processing method when executed by a processor.

[0192] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0193] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned data processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0194] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0195] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0196] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0197] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

[0198] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0199] Although the embodiments of the present application have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present application, and that the scope of the present application is defined by the claims and their equivalents.

Claims

1. A data processing method, characterized in that: include: The server parses the received first data into a first data format, where the first data format includes a plurality of first fields arranged in sequence; The object identifiers contained in some of the first fields of the plurality of sequentially arranged fields are: an object identifier, a component identifier, and a method identifier; The first object receives the first data and forwards the first data to the second object; the first object is an object or a distributor corresponding to the object identifier contained in the first target field of the plurality of sequentially arranged first fields; the second object is an object corresponding to the object identifier contained in the second target field of the plurality of sequentially arranged first fields, and the second target field is arranged after the first target field and adjacent to the first target field; In a case where the object identifier included in the second target field is not the method identifier, determining the second object as a new first object, and updating a second object corresponding to the new first object; In a case where the object identifier included in the second target field is the method identifier, the object corresponding to the method identifier updates attribute data based on the first data.

2. The data processing method according to claim 1, characterized in that: The first object maintains a second object set by itself, and the second object set includes at least one second object and an object identifier corresponding to each second object.

3. The data processing method according to claim 2, characterized in that: The first object receives the first data and forwards the first data to the second object, including: The first object determines the second target field from the plurality of sequentially arranged first fields; The first object extracts the object identifier contained in the second target field from the second target field; The first object determines, based on the object identifier included in the second target field, a second object corresponding to the object identifier included in the second target field from the second object set maintained by the first object; The first object sends the first data to the second object.

4. The data processing method according to any one of claims 1 to 3, characterized in that: In a case where the object identifier included in the second target field is the method identifier, the object corresponding to the method identifier updates attribute data based on the first data, including: The method identifies a corresponding object to parse the custom parameters in the first data, and updates the attribute data based on the parsed result.

5. The data processing method according to any one of claims 1 to 3, characterized in that: Before the server parses the received first data into the first data format, the method further includes: The client splits the target function into the object identifier, the component identifier, the method identifier and the custom parameter; Encapsulate the object identifier, the component identifier, the method identifier, and the custom parameter based on the first data format to obtain the first data; The first data is sent to the server.

6. The data processing method according to any one of claims 1 to 3, characterized in that: Also includes: The server determines a second data format, where the second data format includes a plurality of second fields arranged in sequence: In the case of attribute data change, the first target object corresponding to the server side fills the changed attribute data into the target second field of the plurality of sequentially arranged second fields; the first target object is an object in the plurality of second objects corresponding to the plurality of sequentially arranged second fields; The second target object among the plurality of second objects corresponding to the plurality of second fields arranged in sequence fills other data into other fields among the plurality of second fields arranged in sequence except the target second field, to obtain target data; The second target object sends the target data to the client.

7. The data processing method according to claim 6, characterized in that: The plurality of sequentially arranged second fields include: a second field corresponding to the object identification, a second field corresponding to the component identification, a second field corresponding to the global time code, and a second field corresponding to the data list.

8. The data processing method according to claim 7, characterized in that: The first target object is the object corresponding to the object identifier, the target second field is the second field corresponding to the data list, the second target object is the object corresponding to the component identifier, and the other fields include at least one of the second field corresponding to the object identifier, the second field corresponding to the component identifier, and the second field corresponding to the global time code.

9. The data processing method according to claim 6, characterized in that: Also includes: The second target object refreshes the attribute data corresponding to the second target object based on the target duration, and determines whether the attribute data has changed.

10. A data processing device, characterized in that: include: A first processing module, configured to enable the server to parse the received first data into a first data format, wherein the first data format includes a plurality of first fields arranged in sequence; The object identifiers contained in some of the first fields of the plurality of sequentially arranged fields are: an object identifier, a component identifier, and a method identifier; A second processing module is used to enable a first object to receive the first data and forward the first data to a second object; the first object is an object or a distributor corresponding to an object identifier included in a first target field in the plurality of sequentially arranged first fields; the second object is an object corresponding to an object identifier included in a second target field in the plurality of sequentially arranged first fields, and the second target field is arranged after the first target field and adjacent to the first target field; a third processing module, configured to, when the object identifier included in the second target field is not the method identifier, determine the second object as a new first object, and update a second object corresponding to the new first object; The fourth processing module is used for, when the object identifier contained in the second target field is the method identifier, causing the object corresponding to the method identifier to update attribute data based on the first data.

11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the data processing method according to any one of claims 1 to 9 is implemented.

12. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the data processing method according to any one of claims 1 to 9 is implemented.

13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the data processing method according to any one of claims 1 to 9 is implemented.