Data management method and related equipment
By implementing the data management method on the master device side of the intelligent system, the problem of inconsistent data management of slave devices is solved, data transmission is reduced, and system efficiency and real-time performance are improved.
Patent Information
- Application Number
- CN202010804477.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-11
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2040-08-11
AI Technical Summary
The existing technology lacks unified scheduling and management of slave device data in intelligent systems, resulting in repeated transmission of data between the master device and the slave device, affecting the operating efficiency and real-time performance of the system.
The data management method is implemented on the master device side. By obtaining the data creation request, creating data objects and managing the data in the slave device, the unified scheduling and encapsulation of the slave device data is realized, and the data transmission overhead is reduced.
It improves the operating efficiency and real-time performance of the intelligent module as a slave device in the intelligent system, reduces the repeated transmission of data between the master device and the slave device, and optimizes system performance.
Smart Images

Figure CN114077448B
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a data management method and related equipment. Background Art
[0002] With the rapid development of artificial intelligence technology, artificial intelligence has been widely applied to many industries, so the demand for various intelligent modules is also increasing. Intelligent modules generally exist as slave devices in various intelligent systems, but the existing technology lacks unified scheduling management of slave device data on the master device side. In some asynchronous processes, data is repeatedly transmitted between the master and slave devices, affecting the operating efficiency and real-time performance of the entire intelligent system. Summary of the invention
[0003] The embodiment of the present application discloses a data management method and related equipment, which uniformly manages the data of the slave device at the master device end, which is beneficial to improving the operating efficiency and real-time performance of the intelligent system using the intelligent module as the slave device.
[0004] A first aspect of an embodiment of the present application discloses a data management method, which is applied to a master device in an intelligent system. The method includes:
[0005] The master device acquires a data creation request, wherein the data creation request comes from the master device or from a slave device, and the slave device includes an intelligent module in the intelligent system;
[0006] The master device creates a data object according to the data creation request;
[0007] The master device manages the data in the slave device according to the data object.
[0008] A second aspect of an embodiment of the present application discloses a data management device, characterized in that it is applied to a main device in an intelligent system, and the device includes:
[0009] an acquisition unit, configured to acquire a data creation request, wherein the data creation request comes from the master device or from a slave device, and the slave device includes an intelligent module in the intelligent system;
[0010] A creating unit, used for creating a data object according to the data creation request;
[0011] A management unit is used to manage the data in the slave device according to the data object.
[0012] A third aspect of an embodiment of the present application discloses a main device applied to an intelligent system, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in the method described in any one of the first aspect of the embodiment of the present application.
[0013] A fourth aspect of an embodiment of the present application discloses a chip, characterized in that it includes: a processor for calling and running a computer program from a memory, so that a device equipped with the chip executes a method as described in any one of the first aspects of the embodiment of the present application.
[0014] A fifth aspect of an embodiment of the present application discloses a computer-readable storage medium, characterized in that it stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute a method as described in any one of the first aspects of the embodiments of the present application.
[0015] A sixth aspect of the embodiments of the present application discloses a computer program, which enables a computer to execute a method as described in any one of the first aspects of the embodiments of the present application.
[0016] It can be seen that in the embodiment of the present application, the master device obtains a data creation request from itself or from a slave device. After obtaining the data creation request, the master device can create a data object according to the data creation request. Since the management authority over the data in the slave device can be obtained through the data object, the master device can manage the data in the slave device according to the data object, thereby realizing unified management of the slave device data at the master device end, which is beneficial to improving the operating efficiency and real-time performance of the intelligent system that uses intelligent modules as slave devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0018] Figure 1 It is a structural diagram of an intelligent system provided in an embodiment of the present application;
[0019] Figure 2 It is a flowchart of a data management method provided in an embodiment of the present application;
[0020] Figure 3 It is a flowchart of another data management method provided in an embodiment of the present application;
[0021] Figure 4 It is a flowchart of a data object creation method provided in an embodiment of the present application;
[0022] Figure 5 It is a schematic diagram of a data management scenario provided by an embodiment of the present application;
[0023] Figure 6 It is a structural diagram of a data management device provided in an embodiment of the present application;
[0024] Figure 7 It is a structural diagram of a main device applied in an intelligent system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0026] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0027] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0028] See also Figure 1 , Figure 1 Schematic diagram of the structure of an intelligent system provided in the embodiment of the present application. Figure 1 As shown, the intelligent system mainly includes a master device, a slave device and a communication unit, the master device includes a control unit, and the slave device includes a response unit.
[0029] Among them, the control unit includes a data management module and a scheduling module; the data management module is used to encapsulate the acquired remote data and manage the data in a reference counting-based manner. When the reference count is 0, the remote memory space is automatically released, and the remote data includes the data of the slave device; the scheduling module is used to schedule the corresponding data management strategy according to the instructions of the data management module and generate corresponding action instructions, and the action instructions include data space application, data release, data copy, data recovery, etc.
[0030] Among them, the communication unit is used for communication between the master device and the slave device, and the communication unit includes a data encapsulation module, a transmission module and a data parsing module; the data encapsulation module is used to encapsulate the data to be transmitted according to a specific protocol; the transmission module is used to carry out the actual transmission of data, and the transmission module can be USB, SOCKET, etc.; the data parsing module is used to parse the received data and forward it to the control unit or the response unit, specifically, to parse the data from the master device and forward it to the response unit of the slave device, and to parse the data from the slave device and forward it to the control unit of the master device.
[0031] Wherein, the response unit is used to execute corresponding actions according to the action instructions issued by the control unit.
[0032] Based on the above description of each unit, the technical solution in the embodiment of the present application will be clearly and completely described below in combination with examples.
[0033] See also Figure 2 , Figure 2 Schematic diagram of a data management process provided by an embodiment of the present application. Figure 2 The method includes but is not limited to the following steps:
[0034] 201: The master device calls the control unit interface to initiate a service request;
[0035] 202: The control unit calls a corresponding strategy according to the service request and generates an action instruction;
[0036] 203: The control unit transmits the action instruction to the slave device through the communication unit of the master device, and the communication unit of the slave device parses the action instruction;
[0037] 204: The response unit executes an action according to the action instruction and returns an action result to the master device.
[0038] Specifically, when a slave device (smart module) needs to execute a business action in an intelligent system, the master device in the intelligent system initiates a business request requiring the slave device to execute the business action by calling the control unit interface in the master device; the control unit generates an action instruction for instructing the slave device to execute the business action based on the business request and the corresponding strategy, and sends the action instruction to the communication unit; the communication unit on the master device side is responsible for transmitting the action instruction to the slave device, and the communication unit on the slave device side is responsible for parsing the action instruction; thereby, the slave device learns the action to be executed based on the parsing result of the action instruction by the communication unit, and then the response unit of the slave device executes the action according to the action instruction and returns the action result to the master device.
[0039] exist Figure 2 In the described data management method, the master device obtains a service request and generates an action instruction based on the obtained service request, and transmits the service instruction to the slave device through a communication unit between the master device and the slave device, and the slave device executes the service action, thereby realizing unified scheduling management of the slave device by the master device.
[0040] See also Figure 3 , Figure 3 FIG. 1 is another flow chart of data management provided by an embodiment of the present application. Figure 3 The data management method is applied to a main device in an intelligent system, and the method includes but is not limited to the following steps.
[0041] Step 301: the master device obtains a data creation request, wherein the data creation request comes from the master device or from a slave device, and the slave device includes an intelligent module in the intelligent system;
[0042] Step 302: The master device creates a data object according to the data creation request;
[0043] Step 303: The master device manages the data in the slave device according to the data object.
[0044] Wherein, the master device creates a data object according to the data creation request, including: when receiving the data creation request, the data management module in the master device will encapsulate the data object from the slave device into a local data object, thereby obtaining the management right of the slave device data. Wherein, the data creation request can come from the master device or from the slave device, and the steps of creating the data object according to the data creation request are different according to the source of the data creation request. When the data creation request comes from the master device, the master device needs to establish a connection with the slave device first, then obtain the data object from the slave device, and then encapsulate the data object to obtain the local data object; when the data creation request comes from the slave device, the data creation request includes the data object, and the master device directly encapsulates the data object to obtain the local data object.
[0045] The step of creating a data object according to the data creation request is as follows: Figure 4 As shown, specifically including:
[0046] Step 3021: The master device determines whether the data creation request is initiated by the master device, if so, execute step 3022; if not, execute step 3025;
[0047] Step 3022: The master device executes the data creation strategy and sends a data creation instruction to the slave device;
[0048] Step 3023: the slave device executes the data creation instruction and returns a data object to the master device;
[0049] Step 3024: the master device executes the data copy instruction to transmit the data to the slave device;
[0050] Step 3025: The master device obtains a local data object according to the data and data object encapsulation.
[0051] When the data creation request comes from the master device, the master device first initiates a request to establish a connection with the slave device. After the master device and the slave device establish a connection, the slave device sends the data object to the master device. After receiving the data object, the master device encapsulates the data object into a local data object. The master device can obtain the management right of the slave device data based on the local data object; when the data creation request comes from the slave device, it means that the slave device has established a connection with the master device. The slave device sends the data creation request to the master device, and the data creation request includes the data object. When the master device receives the data creation request, it directly encapsulates the data object into a local data object, thereby obtaining the management right of the slave device data.
[0052] It can be seen that in this example, the master device obtains a data creation request from itself or from a slave device. After obtaining the data creation request, the master device can create a data object according to the data creation request. Since the management authority over the data in the slave device can be obtained through the data object, the master device can manage the data in the slave device according to the data object, thereby realizing unified management of the slave device data at the master device end, which is beneficial to improving the operating efficiency and real-time performance of the intelligent system that uses intelligent modules as slave devices.
[0053] In one possible example, the master device creates a data object according to the data creation request, including: the master device sends a data creation instruction to the slave device according to the data creation request, wherein the data creation instruction is used to apply for a corresponding data space in the slave device and instruct the slave device to create a first data object; the master device receives the first data object from the slave device; the master device sends first data to the slave device to store the first data in the data space; the master device obtains a second data object based on the first data object and the first data encapsulation.
[0054] Specifically, the data object creation implementation process when the data creation request comes from the master device is as follows: the master device calls the creation interface of the data management module to apply for the corresponding data space in the slave device, and then calls the copy interface of the data management module to transmit the first data to the slave device. The slave device returns the first data object to the master device, and the master device encapsulates the first data object from the slave device into the local data object to obtain the second data object.
[0055] It can be seen that in this example, when the master device actively initiates the need for unified management of the data of the slave device, the master device first applies for data space in the slave device to store the first data required for the execution of the business action; then the master device transmits the first data required for the execution of the business action to the slave device, and stores it in the data space, so that the first data becomes the data of the slave device; in addition, the slave device sends a first data object to the master device, and the master device encapsulates the first data object and the first data to obtain a second data object, so that the master device can manage the first data stored in the slave device according to the second data object, thereby realizing unified management of the slave device data on the master device side, which is beneficial to improving the operating efficiency and real-time performance of the intelligent system that uses intelligent modules as slave devices.
[0056] In one possible example, the master device manages the data in the slave device according to the data object, including: the master device sends a first action instruction to the slave device, the first action instruction includes the second data object, and the first action instruction is used to instruct the slave device to call the first data stored in the data space to perform a first action according to the second data object.
[0057] For example, the intelligent system requires the slave device to perform process A on a picture. The master device has previously transferred the picture to the slave device for storage and encapsulated the picture into a second data object. When the master device receives the service request from the slave device to perform process A on the picture, the master device sends a first action instruction to the slave device. The first action instruction includes the second data object. The first action instruction is used to instruct the slave device to call the picture stored in the slave device to perform process A according to the second data object.
[0058] It can be seen that in this example, the master device has stored the data required for executing the business action in the slave device, and has also encapsulated the data required for executing the business action to obtain a local data object (second data object). When the master device needs the slave device to execute the business action, it only needs to send a first action instruction to the slave device, and the first action instruction includes the second data object. The first action instruction instructs the slave device to call the data required for executing the business action according to the second data object to execute the business action, thereby the master device realizes unified scheduling and management of the data in the slave devices.
[0059] In one possible example, the method also includes: the master device sends a second action instruction to the slave device, the second action instruction includes the second data object, and the second action instruction is used to instruct the slave device to call the first data stored in the data space according to the second data object to perform a second action.
[0060] It can be understood that since the master device has obtained the right to use the first data stored in the slave device through the second data object, when the slave device needs to use the first data again to perform other business actions, there is no need to transmit the first data from the master device to the slave device again. As long as the action instruction of the other business action includes the second data object, the first data stored in the slave device can be reused, thereby reducing the data transmission overhead from the master device to the slave device.
[0061] For example, the master device transmits a picture to the slave device for the first action (process A), and then needs to perform a second action (process B) on the same picture. In this case, it only needs to create the data object DataA of the picture, that is, the data of the same picture can be used in two actions without transmitting the picture multiple times. Specifically, when the master device receives a service request from the slave device to perform process B on the picture, it sends a second action instruction to the slave device, and the second action instruction includes the data object DataA of the picture. The second action instruction is used to instruct the slave device to call the picture stored in the slave device according to the data object DataA to perform process B.
[0062] It can be seen that in this example, the master device has stored the first data in the slave device, and has also encapsulated the first data to obtain a local data object (second data object). Subsequently, as long as the slave device executes a business action that requires the first data, the master device does not need to transmit the first data to the slave device once for each business action. It only needs to transmit the second data object once through the business instruction corresponding to each business action. The slave device can then call the first data stored therein to execute the corresponding business action, thereby reducing the data transmission overhead from the master device to the slave device.
[0063] In a possible example, the data creation request includes a third data object, and the third data object is obtained by the slave device according to the second data encapsulation. The master device creates a data object according to the data creation request, including: the master device obtains a fourth data object according to the third data object encapsulation.
[0064] Specifically, the implementation process of the data creation request from the slave device is: for the second data originally existing in the slave device, the slave device encapsulates the second data to obtain a third data object. When the slave device initiates a data creation request to the master device, the slave device sends the third data object to the master device through the data creation request. After receiving the data creation request from the slave device, the master device directly encapsulates the third data object into a local object to obtain a fourth data object.
[0065] It can be seen that in this example, the slave device can also actively request the master device to perform unified scheduling and management on its second data. The slave device encapsulates the second data to obtain the third data object, and then sends the third data object to the master device. The master device can obtain the fourth data object after encapsulating the third data object. The master device can perform unified scheduling and management on the second data in the slave device based on the fourth data object, and instruct the slave device to perform an action on the second data by sending an action instruction including the fourth data object to the slave device.
[0066] In a possible example, before the master device obtains the fourth data object according to the third data object encapsulation, the method further includes: the master device sends a third action instruction to the slave device, and the third action instruction is used to instruct the slave device to perform a third action to obtain the second data.
[0067] Among them, in the data creation process initiated by the device, the second data is generally intermediate data generated in the business process and needs to be used in the subsequent process.
[0068] It can be seen that in this example, the master device can first send a third action instruction to the slave device, instructing the slave device to execute the third action to generate second data required for subsequent use, thereby facilitating the slave device to actively initiate a data creation request.
[0069] In one possible example, the master device manages the data in the slave device according to the data object, including: the master device obtains a fourth action instruction, and the fourth action instruction is used to instruct the master device to call the second data to perform a fourth action; the master device sends a fifth action instruction to the slave device, and the fifth action instruction is used to instruct the slave device to send the second data to the master device; the master device calls the second data to perform the fourth action according to the fourth data object.
[0070] Among them, after the master device obtains the fourth data object based on the encapsulation of the third data object, the master device will not copy the data on the slave device side to the master device at this time. Only when the master device actually uses the second data on the slave device side, will it perform the copying action and transfer the second data from the slave device to the master device; and after the second data is transferred to the master device, when the master device needs to use the second data again, there is no need to transfer the second data from the slave device to the master device again. Each time, the master device only needs to obtain the right to use the second data through the fourth data object, which can reduce the transmission overhead of data from the slave device to the master device.
[0071] For example, the processing result of process A on the slave device needs to be used in process B on the master device, and process A and process B are asynchronous processing processes. In this way, a data object DataA (the fourth data object) of the processing result of process A can be generated on the master device, and DataA can be used as a parameter when process B is scheduled on the master device, without the need to make multiple copies between the master and slave devices.
[0072] In a possible example, the master device manages the data in the slave device based on reference counting.
[0073] Among them, data use process: the reference count of the data object is increased by 1 when it is used, and after the use is over, the reference count is reduced by 1. Data destruction process: when the data object is no longer used, the data management module automatically executes the destruction strategy to release the data space from the device end.
[0074] For example, see also Figure 5 , Figure 5 Schematic diagram of a data management scenario provided by an embodiment of the present application. Figure 5 As shown, the master device schedules the slave device to first perform business A on the data Data, and then needs to perform business B. The entire business process is as follows:
[0075] (1) The master device initiates a data creation command, transfers the data Data to the slave device for storage, and constructs a local data object DataA. The master device obtains the management right of the data Data in the slave device. At this time, the reference count of the data Data is 1;
[0076] (2) The master device sends an action instruction TaskA to the slave device, and initiates service A through the action instruction TaskA. The slave device needs to use the data Data stored in the slave device to execute service A. The master device only needs to pass the data object DataA into the action instruction TaskA, just like operating the local data of the master device. After receiving the action instruction TaskA, the slave device will obtain the right to use the data Data, thereby completing the process of service A. At this time, the reference count of the data Data is 2;
[0077] (3) The master device subsequently sends an action instruction TaskB to the slave device, and initiates business B through the action instruction TaskB. The slave device also needs to use the data Data stored in the slave device to execute business B. The master device only needs to pass the data object DataA into the action instruction TaskB. After receiving the action instruction TaskB, the slave device will obtain the right to use the data Data, thereby completing the process of business B. At this time, the reference count of the data Data is 3;
[0078] (4) When the reference count of the data Data is 0, the data management module initiates a data release instruction to release the data space of the slave device and destroy the local data object DataA.
[0079] It can be seen that in this example, the master device manages the data in the slave device based on the reference count method. The usage of the data can be clearly determined according to the reference count value of the data, which is conducive to the unified scheduling management of the slave device data by the master device.
[0080] See also Figure 6 , Figure 6 Schematic diagram of a data management device provided in an embodiment of the present application. Figure 6As shown, the data management device is applied to a main device in an intelligent system, wherein each unit is described in detail as follows.
[0081] An acquisition unit 601 is used to acquire a data creation request, wherein the data creation request comes from the master device or from a slave device, and the slave device includes an intelligent module in the intelligent system;
[0082] A creation unit 602, configured to create a data object according to the data creation request;
[0083] The management unit 603 is used to manage the data in the slave device according to the data object.
[0084] In a possible example, the creation unit 602 is specifically used to: send a data creation instruction to the slave device according to the data creation request, wherein the data creation instruction is used to apply for a corresponding data space in the slave device and instruct the slave device to create a first data object; receive the first data object from the slave device; send first data to the slave device to store the first data in the data space; and obtain a second data object based on the first data object and the first data encapsulation.
[0085] In a possible example, the management unit 603 is specifically used to: send a first action instruction to the slave device, the first action instruction includes the second data object, and the first action instruction is used to instruct the slave device to call the first data stored in the data space according to the second data object to perform a first action.
[0086] In a possible example, the management unit 603 is also used to: send a second action instruction to the slave device, the second action instruction includes the second data object, and the second action instruction is used to instruct the slave device to call the first data stored in the data space according to the second data object to perform a second action.
[0087] In a possible example, the data creation request includes a third data object, the third data object is obtained by the slave device according to the second data encapsulation, and the creation unit 602 is specifically used to obtain a fourth data object according to the third data object encapsulation.
[0088] In a possible example, the management unit 603 is further used to: before obtaining the fourth data object by encapsulating the third data object, send a third action instruction to the slave device, wherein the third action instruction is used to instruct the slave device to perform a third action to obtain the second data.
[0089] In a possible example, the management unit 603 is specifically used to: obtain a fourth action instruction, wherein the fourth action instruction is used to instruct the master device to call the second data to perform a fourth action; send a fifth action instruction to the slave device, wherein the fifth action instruction is used to instruct the slave device to send the second data to the master device; and call the second data according to the fourth data object to perform the fourth action.
[0090] Of course, the data management device 600 provided in the embodiment of the present application includes but is not limited to the above-mentioned unit modules, for example: the data management device 600 may also include a storage unit 604. The storage unit 604 may be used to store the program code and data of the data management device 600.
[0091] It should be noted that the implementation of each unit may also refer to the corresponding description in the above method embodiment.
[0092] exist Figure 6 In the described data management device 600, a data creation request is obtained from the master device itself or from the slave device. After the data creation request is obtained, a data object can be created according to the data creation request. Since the management authority over the data in the slave device can be obtained through the data object, the data in the slave device can be managed according to the data object, thereby realizing unified management of the slave device data at the master device end, which is beneficial to improving the operating efficiency and real-time performance of the intelligent system that uses intelligent modules as slave devices.
[0093] See also Figure 7 , Figure 7 is a schematic diagram of the structure of a main device 710 applied to an intelligent system provided in an embodiment of the present application, such as Figure 7 As shown, the main device 710 applied in the intelligent system includes a communication interface 711, a processor 712, a memory 713 and at least one communication bus 714 for connecting the communication interface 711, the processor 712 and the memory 713.
[0094] The memory 713 includes, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM), or portable read only memory (CD-ROM), and the memory 713 is used for related instructions and data.
[0095] The communication interface 711 is used to receive and send data.
[0096] The processor 712 may be one or more central processing units (CPUs). When the processor 712 is a CPU, the CPU may be a single-core CPU or a multi-core CPU.
[0097] The processor 712 in the main device 710 applied in the intelligent system is used to read one or more program codes stored in the memory 713, and perform the following operations: obtain a data creation request, wherein the data creation request comes from the main device or from a slave device, and the slave device includes an intelligent module in the intelligent system; create a data object according to the data creation request; and manage the data in the slave device according to the data object.
[0098] It should be noted that the implementation of each operation may also refer to the corresponding description in the above method embodiment.
[0099] exist Figure 7 In the described master device 710 applied in the intelligent system, a data creation request is obtained from itself or from a slave device. After obtaining the data creation request, a data object can be created according to the data creation request. Since the management authority over the data in the slave device can be obtained through the data object, the data in the slave device can be managed according to the data object, thereby realizing unified management of the slave device data at the master device end, which is beneficial to improving the operating efficiency and real-time performance of the intelligent system using intelligent modules as slave devices.
[0100] An embodiment of the present application also provides a chip, which includes at least one processor, a memory and an interface circuit, wherein the memory, the transceiver and the at least one processor are interconnected through lines, and a computer program is stored in the at least one memory; when the computer program is executed by the processor, the method flow shown in the above method embodiment is implemented.
[0101] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the method flow shown in the above method embodiment is implemented.
[0102] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the method flow shown in the above method embodiment is implemented.
[0103] It should be understood that the processor mentioned in the embodiments of the present application may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0104] It should also be understood that the memory mentioned in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus random access memory (Direct Rambus RAM, DR RAM).
[0105] It should be noted that when the processor is a general-purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, the memory (storage module) is integrated in the processor.
[0106] It should be noted that the memory described herein is intended to include, but not be limited to, these and any other suitable types of memory.
[0107] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0108] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in this specification can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0109] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0110] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0111] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0112] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0113] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0114] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs.
[0115] The modules in the device of the embodiment of the present application can be merged, divided and deleted according to actual needs.
[0116] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A data management method, characterized in that: Applied to a master device in an intelligent system, the method comprises: The master device acquires a data creation request, wherein the data creation request comes from the master device or from a slave device, and the slave device includes an intelligent module in the intelligent system; The master device creates a data object according to the data creation request; The master device manages the data in the slave device according to the data object, including: The master device calls the data in the slave device to perform a corresponding action according to the data object based on the received action instruction; The master device sends a first action instruction containing a second data object to the slave device, and the first action instruction is used to instruct the slave device to call the first data in the slave device to perform a first action according to the second data object; the master device sends a second action instruction containing the second data object to the slave device, and the second action instruction is used to instruct the slave device to call the first data in the slave device to perform a second action according to the second data object.
2. The method according to claim 1, characterized in that The master device creates a data object according to the data creation request, including: The master device sends a data creation instruction to the slave device according to the data creation request, wherein the data creation instruction is used to apply for a corresponding data space in the slave device and instruct the slave device to create a first data object; The master device receives the first data object from the slave device; The master device sends the first data to the slave device to store the first data in the data space; The master device obtains the second data object according to the first data object and the first data encapsulation.
3. The method according to claim 1, characterized in that The data creation request includes a third data object, and the third data object is obtained by the slave device according to the second data encapsulation, and the master device creates the data object according to the data creation request, including: The master device encapsulates the third data object to obtain a fourth data object.
4. The method according to claim 3, characterized in that Before the master device obtains the fourth data object according to the third data object encapsulation, the method further includes: The master device sends a third action instruction to the slave device, where the third action instruction is used to instruct the slave device to perform a third action to obtain the second data.
5. The method according to claim 3 or 4, characterized in that: The master device manages the data in the slave device according to the data object, including: The master device obtains a fourth action instruction, where the fourth action instruction is used to instruct the master device to call the second data to perform a fourth action; The master device sends a fifth action instruction to the slave device, where the fifth action instruction is used to instruct the slave device to send the second data to the master device; The master device calls the second data to perform the fourth action according to the fourth data object.
6. A data management device, characterized in that: A main device applied to an intelligent system, the device comprising: an acquisition unit, configured to acquire a data creation request, wherein the data creation request comes from the master device or from a slave device, and the slave device includes an intelligent module in the intelligent system; A creating unit, used for creating a data object according to the data creation request; A management unit, used to manage the data in the slave device according to the data object, including: The master device calls the data in the slave device to perform a corresponding action according to the data object based on the received action instruction; The master device sends a first action instruction containing a second data object to the slave device, and the first action instruction is used to instruct the slave device to call the first data in the slave device to perform a first action according to the second data object; the master device sends a second action instruction containing the second data object to the slave device, and the second action instruction is used to instruct the slave device to call the first data in the slave device to perform a second action according to the second data object.
7. A main device used in an intelligent system, characterized in that: The method comprises a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for executing the steps in the method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: It stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute the method according to any one of claims 1 to 5.
