CN114077448B - Data management method and related equipment - Google Patents
Data management method and related equipment Download PDFInfo
- Publication number
- CN114077448B CN114077448B CN202010804477.0A CN202010804477A CN114077448B CN 114077448 B CN114077448 B CN 114077448B CN 202010804477 A CN202010804477 A CN 202010804477A CN 114077448 B CN114077448 B CN 114077448B
- Authority
- CN
- China
- Prior art keywords
- data
- slave device
- master device
- data object
- action
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4411—Configuring for operating with peripheral devices; Loading of device drivers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/382—Information transfer, e.g. on bus using universal interface adapter
- G06F13/387—Information transfer, e.g. on bus using universal interface adapter for adaptation of different data processing systems to different peripheral devices, e.g. protocol converters for incompatible systems, open system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/45—Structures or tools for the administration of authentication
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0042—Universal serial bus [USB]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the application provides a data management method and related equipment, wherein the method is applied to a main equipment in an intelligent system, and comprises the following steps: the master device obtains a data creation request, wherein the data creation request is from the master device or from a slave device, and the slave device comprises an intelligent module in the intelligent system; the master device creates a data object according to the data creation request; and the master device manages the data in the slave device according to the data object. By adopting the embodiment of the application, the data of the slave equipment end is uniformly managed at the master equipment end, which is beneficial to improving the operation efficiency and instantaneity of an intelligent system adopting the intelligent module as the slave equipment.
Description
Technical Field
The application relates to the technical field of artificial intelligence, in particular to a data management method and related equipment.
Background
With the rapid development of artificial intelligence technology, artificial intelligence has been applied to many industries on a large scale, and thus, the demand for various intelligent modules is increasing. The intelligent module generally exists as a slave device in various intelligent systems, but the prior art lacks unified scheduling management on data of the slave device at a master device end, and in some asynchronous processes, the data is repeatedly transmitted between the master device and the slave device for a plurality of times, so that the operation efficiency and instantaneity of the whole intelligent system are affected.
Disclosure of Invention
The embodiment of the application discloses a data management method and related equipment, which are used for uniformly managing data of a slave device at a master device end, so that the operation efficiency and instantaneity of an intelligent system adopting an intelligent module as the slave device are improved.
The first aspect of the embodiment of the application discloses a data management method, which is applied to a main device in an intelligent system, and comprises the following steps:
The master device obtains a data creation request, wherein the data creation request is from the master device or from a slave device, and the slave device comprises an intelligent module in the intelligent system;
The master device creates a data object according to the data creation request;
and the master device manages the data in the slave device according to the data object.
A second aspect of the embodiment of the present application discloses a data management apparatus, which is applied to a master device in an intelligent system, and the apparatus includes:
An obtaining unit, configured to obtain a data creation request, where the data creation request is from the master device or from a slave device, and the slave device includes an intelligent module in the intelligent system;
a creation unit for creating a data object according to the data creation request;
And the management unit is used for managing the data in the slave equipment according to the data object.
A third aspect of the embodiments of the present application discloses a host device for use in an intelligent system, comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps of the method according to any of the first aspect of the embodiments of the present application.
A fourth aspect of the present application discloses a chip, which is characterized by comprising: a processor for calling and running a computer program from a memory, causing a device on which the chip is mounted to perform the method according to any of the first aspect of the embodiments of the application.
A fifth aspect of the embodiments 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 causes a computer to execute the method according to any one of the first aspect of the embodiments of the present application.
A sixth aspect of the embodiments of the present application discloses a computer program, which causes a computer to perform the method according to any one of the first aspect of the embodiments of the present application.
It can be seen that, in the embodiment of the present application, the master device obtains a data creation request from itself or from the slave device, and after obtaining the data creation request, the master device may create a data object according to the data creation request, and because the data object may obtain a management right for data in the slave device, the master device may manage the data in the slave device according to the data object, thereby implementing unified management for the data in the slave device at the master device end, which is beneficial to improving the operation efficiency and instantaneity of the intelligent system using the intelligent module as the slave device.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments or the description of the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an intelligent system according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a data management method according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating another data management method according to an embodiment of the present application;
FIG. 4 is a flowchart of a method for creating a data object according to an embodiment of the present application;
FIG. 5 is a schematic view of a scenario of data management according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a data management device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a master device applied to an intelligent system according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms first, second and the like in the description and in the claims and in the above-described figures are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an intelligent system according to an embodiment of the application. As shown in fig. 1, the intelligent system mainly comprises a master device, a slave device and a communication unit, wherein the master device comprises a control unit, and the slave device responds to the unit.
The control unit comprises a data management module and a scheduling module; the data management module is used for packaging the acquired remote data, managing the data in a reference count-based mode, and automatically releasing the memory space of the remote when the reference count is 0, wherein the remote data comprises the data of the slave equipment; the scheduling module is used for scheduling the corresponding data management strategy according to the instruction of the data management module and generating corresponding action instructions, wherein the action instructions comprise data space application, data release, data copying, data recovery and the like.
The communication unit is used for communicating between the master equipment and the slave equipment and comprises a data encapsulation module, a transmission module and a data analysis module; the data packaging module is used for packaging the data to be transmitted according to a specific protocol; the transmission module is used for carrying out actual transmission bearing of data, and can be USB, SOCKET and the like; the data analysis module is used for analyzing the received data and forwarding the data to the control unit or the response unit, specifically, the data from the master device is analyzed and forwarded to the response unit of the slave device, and the data from the slave device is analyzed and forwarded to the control unit of the master device.
The response unit is used for executing corresponding actions according to the action instructions sent by the control unit.
Based on the above description of the respective units, the technical solutions in the embodiments of the present application will be clearly and completely described in connection with examples.
Referring to fig. 2, fig. 2 is a flow chart of data management according to an embodiment of the application. As depicted in fig. 2, the method includes, but is not limited to, the steps of:
201: the main equipment calls a control unit interface to initiate a service request;
202: the control unit calls a corresponding strategy according to the service request to generate an action instruction;
203: the control unit transmits the action instruction to the slave device through the communication unit of the master device end, and the communication unit of the slave device end analyzes the action instruction;
204: and the response unit executes the action according to the action instruction and returns an action result to the main equipment.
Specifically, when a slave device (intelligent module) is required to execute a service action in the intelligent system, a master device in the intelligent system initiates a service request for the slave device to execute the service action by calling a control unit interface in the master device; the control unit generates an action instruction for instructing the slave device to execute the service action according to the service request and the corresponding strategy, and sends the action instruction to the communication unit; the communication unit of the master equipment end is responsible for transmitting the action instruction to the slave equipment, and the communication unit of the slave equipment end is responsible for analyzing the action instruction; the slave device acquires the action to be executed according to the analysis result of the action instruction by the communication unit, and further the response unit of the slave device executes the action according to the action instruction and returns the action result to the master device.
In the data management method described in fig. 2, a master device acquires a service request, generates an action instruction according to the acquired service request, and transmits the service instruction to a 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 master device to the slave device.
Referring to fig. 3, fig. 3 is a flowchart illustrating another data management method according to an embodiment of the application. As illustrated in fig. 3, the data management method is applied to a master device in an intelligent system, and includes, but is not limited to, the following steps.
Step 301: the master device obtains a data creation request, wherein the data creation request is from the master device or from a slave device, and the slave device comprises an intelligent module in the intelligent system;
step 302: the master device creates a data object according to the data creation request;
step 303: and the master device manages the data in the slave device according to the data object.
Wherein the master device creating a data object according to the data creation request includes: the data management module in the master device, upon receiving the data creation request, encapsulates the data object from the slave device into a local data object, thereby obtaining management rights for the data of the slave device. The data creation request may be from a master device or a slave device, and the step of creating the data object according to the data creation request is different according to the source of the data creation request. When the data creation request is from the main equipment, the main equipment needs to establish connection with the auxiliary equipment, then acquire a data object from the equipment, and further encapsulate the data object to obtain a local data object; when the data creation request comes from the slave device, the data object is included in the data creation request, and the master device directly encapsulates the data object to obtain a local data object.
The step of creating the data object according to the data creation request is shown in fig. 4, and specifically includes:
Step 3021: the master device determines whether the data creation request is initiated by the master device, if so, step 3022 is executed; if not, go to step 3025;
step 3022: the master device executes a data creation strategy and sends a data creation instruction to the slave device;
step 3023: the slave device executes the data creation instruction and returns a data object to the master device;
Step 3024: the master device executes a data copy instruction and transmits data to the slave device;
Step 3025: and the master device obtains a local data object according to the data and the data object encapsulation.
When the data creation request is from the master device, the master device initiates a connection establishment request to the slave device, after the master device and the slave device establish connection, the slave device sends the data object to the master device, the master device encapsulates the data object into a local data object after receiving the data object, and the master device can obtain the management right of the data of the slave device according to the local data object; when the data creation request comes from the slave device, that is, the slave device and the master device have established a connection, the slave device sends the data creation request to the master device, the data creation request includes the data object, and the master device directly encapsulates the data object into a local data object when receiving the data creation request, so as to obtain the management right of the data of the slave device.
In this example, the master device obtains the data creation request from itself or from the slave device, and after obtaining the data creation request, the master device can create a data object according to the data creation request, and because the management authority for 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 for the data of the slave device at the master device side, and being beneficial to improving the operation efficiency and instantaneity of the intelligent system adopting the intelligent module as the slave device.
In one possible example, the master device creates a data object from 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 for applying for a corresponding data space in the slave device and instructing the slave device to create a first data object; the master device receiving 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; and the master device obtains a second data object according to the first data object and the first data package.
Specifically, the data object creation implementation procedure when the data creation request comes from the master device is: the master device calls a creation interface of the data management module to apply for a corresponding data space in the slave device, then calls a copy interface of the data management module to transmit first data to the slave device, the slave device returns a first data object to the master device, and the master device encapsulates the first data object from the slave device into a local data object to obtain a second data object.
In this example, when the master device actively initiates that unified management is required to be performed on data of the slave device, the master device first applies for a data space in the slave device, and is used for storing first data required for executing a service action; then the master device transmits first data required by the execution of the business action to the slave device and stores the first data in the data space, so that the first data also becomes data of the slave device; in addition, the slave device sends the first data object to the master device, and the master device encapsulates the first data object and the first data to obtain the second data object, so that the master device can manage the first data stored in the slave device according to the second data object, unified management of the data of the slave device at the master device end is realized, and the operation efficiency and instantaneity of an intelligent system adopting the intelligent module as the slave device are improved.
In one possible example, the master device manages data in the slave device according to the data object, including: the master device sends a first action instruction to the slave device, wherein the first action instruction comprises the second data object, and the first action instruction is used for instructing the slave device to execute a first action according to the first data stored in the data space and called by the second data object.
For example, the intelligent system requires the slave device to perform a process on a picture, the master device has previously transmitted the picture to the slave device for storage, and encapsulates the picture into a second data object, and upon receiving a service request from the slave device for a process on the picture, the master device sends a first action instruction to the slave device, the first action instruction including the second data object, the first action instruction being for instructing the slave device to invoke the picture stored in the slave device to perform the a process according to the second data object.
In this example, after the master device has stored the data required for executing the service action in the slave device and encapsulates the data required for executing the service action to obtain the local data object (the second data object), when the slave device is required to execute the service action, the master device only needs to send a first action instruction to the slave device, where the first action instruction includes the second data object, and instructs the slave device to execute the service action according to the data required for invoking the service action by the first action instruction, so that the master device performs unified scheduling management on the data in the slave device.
In one possible example, the method further comprises: the master device sends a second action instruction to the slave device, wherein the second action instruction comprises the second data object, and the second action instruction is used for instructing the slave device to execute a second action according to the first data stored in the data space and called by the second data object.
It can be understood that, since the master device has acquired the usage rights of the first data stored in the slave device through the second data object, when the slave device needs to reuse the first data to perform other service actions, the first data stored in the slave device can be reused without transmitting the first data from the master device to the slave device again, and only the second data object is included in the action instructions of the other service actions, thereby reducing the transmission overhead of the data from the master device to the slave device.
For example, if the master device transmits a picture to the slave device to perform a first action (a process), and then needs to perform a second action (B process) on the same picture, only the data object DataA of the picture needs to be created, so that the data of the same picture can be used in 2 actions without transmitting the picture multiple times. Specifically, when receiving a service request of the slave device for B-process processing of the picture, the master device sends a second action instruction to the slave device, where the second action instruction includes a data object DataA of the picture, and the second action instruction is used to instruct the slave device to invoke, according to the data object DataA, the picture stored in the slave device to perform B-process processing.
It can be seen that, in this example, after the master device has stored the first data in the slave device and also encapsulated the first data to obtain the local data object (the second data object), if the slave device executes the service action that needs to use the first data, the master device does not need one service action to transmit the first data to the slave device, only needs to transmit the second data object once through the service instruction corresponding to each service action, and the slave device can call the stored first data to execute the corresponding service action, thereby reducing the transmission overhead of the data from the master device to the slave device.
In one possible example, the data creation request includes a third data object, the third data object being obtained by the slave device from the second data package, the master device creating a data object from the data creation request, comprising: and the master device encapsulates the third data object to obtain a fourth data object.
Specifically, the data creation request from the slave device is implemented as: and for the second data originally existing in the slave device, the slave device encapsulates the second data to obtain a third data object, and 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, and the master device directly encapsulates the third data object into a local object after receiving the data creation request from the slave device to obtain a fourth data object.
In this example, the slave device may also actively request the master device to perform unified scheduling management on its own second data, encapsulate the slave device according to the second data to obtain a third data object, and then send the third data object to the master device, where the master device encapsulates the third data object to obtain a fourth data object, and the master device may perform unified scheduling management on the second data in the slave device according to 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.
In one possible example, before the master device encapsulates the third data object to obtain a fourth data object, the method further includes: the master device sends a third action instruction to the slave device, wherein the third action instruction is used for instructing the slave device to execute a third action so as to obtain the second data.
In the process of creating data initiated by the slave device, the second data is generally intermediate data generated in the service process, and the second data needs to be used in the subsequent process.
It can be seen that, in this example, the master device may first send a third action instruction to the slave device, instructing the slave device to perform the third action to generate the second data that needs to be used subsequently, so as to facilitate the slave device to actively initiate the data creation request.
In one possible example, the master device manages data in the slave device according to the data object, including: the master device obtains a fourth action instruction, wherein the fourth action instruction is used for indicating the master device to call the second data to execute a fourth action; the master device sends a fifth action instruction to the slave device, wherein the fifth action instruction is used for indicating the slave device to send the second data to the master device; and the master device calls the second data to execute the fourth action according to the fourth data object.
After the master device obtains a fourth data object according to the third data object, the master device does not copy the data of the slave device end to the master device at the moment, and only when the second data of the slave device end is actually used by the master device, the copy action is executed, and the second data of the slave device is transmitted to the master device; and after the second data is transmitted to the master device, when the master device needs to reuse the second data, the second data does not need to be transmitted from the slave device to the master device again, and the master device can obtain the use authority of the second data only through the fourth data object each time, so that the transmission cost of the data from the slave device to the master device can be reduced.
For example, the processing result of the slave-side a process needs to be used in the master-side B process, and the a process and the B process are asynchronous processing processes, so that the data object DataA (fourth data object) of the processing result of the a process can be generated at the master-side, so that DataA is used as a parameter in the master-side scheduling B process, without making multiple copies between the master and the slave.
In one possible example, the master device manages data in the slave device based on a reference count.
Wherein, the data use process: the reference count is incremented by 1 when the data object is used, and is decremented by 1 after the use is completed. The data destruction process comprises the following steps: when the data object is not used any more, the data management module automatically executes a destroying strategy to release the data space of the slave equipment.
For example, referring to fig. 5, fig. 5 is a schematic view of a scenario of data management according to an embodiment of the present application. As shown in fig. 5, the slave device is scheduled on the master device to make service a on Data, and then needs to make service B, and the whole service flow is as follows:
(1) The master device initiates a Data creation instruction, transfers the Data to the slave device for storage, constructs a local Data object DataA, obtains the management right of the Data in the slave device at the master device end, and at the moment, the reference count of the Data is 1;
(2) The master device sends an action instruction TaskA to the slave device, the slave device initiates a service A through the action instruction TaskA, the slave device executes the service A and needs to use the Data stored in the slave device, the master device only needs to transmit the Data object DataA into the action instruction TaskA, just like operating the local Data of the master device, the slave device receives the action instruction TaskA and then obtains the use right of the Data, so that the flow of the service A is completed, and the reference count of the Data is 2;
(3) The master device subsequently sends an action instruction TaskB to the slave device, initiates a service B through the action instruction TaskB, the slave device also needs to use the Data stored in the slave device to execute the service B, the master device only needs to transmit the Data object DataA into the action instruction TaskB, and the slave device receives the action instruction TaskB and then obtains the use right of the Data, so that the flow of the service B is completed, and the reference count of the Data is 3;
(4) When the Data reference count is 0, the Data management module initiates a Data release instruction, releasing the Data space of the slave device while destroying the local Data object DataA.
In this example, the master device manages the data in the slave device based on the reference count, and the usage situation of the data can be clearly determined according to the reference count of the data, which is beneficial to unified scheduling management of the master device on the data of the slave device.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a data management device according to an embodiment of the application. As shown in fig. 6, the data management apparatus is applied to a master device in an intelligent system, wherein the detailed description of each unit is as follows.
An obtaining unit 601, configured to obtain a data creation request, where the data creation request is from the master device or from a slave device, and the slave device includes an intelligent module in the intelligent system;
A creating unit 602, configured to create a data object according to the data creation request;
and the management unit 603 is configured to manage data in the slave device according to the data object.
In one possible example, the creation unit 602 is specifically configured to: transmitting a data creation instruction to the slave device according to the data creation request, wherein the data creation instruction is used for applying for a corresponding data space in the slave device and instructing the slave device to create a first data object; receiving the first data object from the slave device; transmitting first data to the slave device to store the first data in the data space; and obtaining a second data object according to the first data object and the first data package.
In one possible example, the management unit 603 is specifically configured to: and sending a first action instruction to the slave device, wherein the first action instruction comprises the second data object, and the first action instruction is used for instructing the slave device to execute a first action according to the first data stored in the data space called by the second data object.
In one possible example, the management unit 603 is further configured to: and sending a second action instruction to the slave device, wherein the second action instruction comprises the second data object, and the second action instruction is used for instructing the slave device to execute a second action according to the first data stored in the data space called by the second data object.
In one possible example, the data creation request includes a third data object, the third data object being obtained by the slave device according to a second data package, the creation unit 602 being specifically configured to: and encapsulating according to the third data object to obtain a fourth data object.
In one possible example, the management unit 603 is further configured to: and before a fourth data object is obtained according to the third data object encapsulation, sending a third action instruction to the slave device, wherein the third action instruction is used for instructing the slave device to execute a third action so as to obtain the second data.
In one possible example, the management unit 603 is specifically configured to: acquiring a fourth action instruction, wherein the fourth action instruction is used for indicating the main equipment to call the second data to execute a fourth action; transmitting a fifth action instruction to the slave device, wherein the fifth action instruction is used for instructing the slave device to transmit the second data to the master device; and calling the second data to execute the fourth action according to the fourth data object.
Of course, the data management apparatus 600 provided in the embodiment of the present application includes, but is not limited to, the above unit modules, for example: the data management apparatus 600 may further include a storage unit 604. The storage unit 604 may be used for storing program codes and data of the data management apparatus 600.
It should be noted that, the implementation of each unit may also correspondingly refer to the corresponding description in the above method embodiment.
In the data management apparatus 600 depicted in fig. 6, a data creation request from a master device itself or from a slave device is acquired, and after the data creation request is acquired, a data object can be created according to the data creation request, and since management rights for data in the slave device can be obtained through the data object, data in the slave device can be managed according to the data object, thereby implementing unified management for data in the slave device at the master device side, which is beneficial to improving the operation efficiency and instantaneity of an intelligent system using an intelligent module as the slave device.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a master device 710 applied to an intelligent system according to an embodiment of the present application, as shown in fig. 7, the master device 710 applied to 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.
The memory 713 includes, but is not limited to, a random access memory (random access memory, RAM), a read-only memory (ROM), an erasable programmable read-only memory (erasable programmable read only memory, EPROM), or a portable read-only memory (compact disc read-only memory, CD-ROM), the memory 713 for associated instructions and data.
The communication interface 711 is used to receive and transmit data.
The processor 712 may be one or more central processing units (central processing unit, CPU), which may be a single-core CPU or a multi-core CPU in the case where the processor 712 is a CPU.
The processor 712 in the host device 710, which is used in the intelligent system, is configured to read one or more program codes stored in the memory 713, and perform the following operations: obtaining a data creation request, wherein the data creation request is from the master device or from a slave device, and the slave device comprises an intelligent module in the intelligent system; creating a data object according to the data creation request; and managing the data in the slave device according to the data object.
It should be noted that, implementation of each operation may also correspond to the corresponding description in the above method embodiment.
In the master device 710 applied to the intelligent system described in fig. 7, a data creation request from itself or from a slave device is acquired, and a data object can be created according to the data creation request after the data creation request is acquired, since management authority for 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, so that unified management of the data of the slave device at the master device end is realized, and the operation efficiency and instantaneity of an intelligent system adopting the intelligent module as the slave device are improved.
The embodiment of the application also provides a chip, which comprises at least one processor, a memory and an interface circuit, wherein the memory, the transceiver and the at least one processor are interconnected through a line, 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 method embodiment is implemented.
The embodiment of the application also provides a computer readable storage medium, wherein a computer program is stored in the computer readable storage medium, and when the computer program runs on a computer, the method flow shown in the embodiment of the method is realized.
The embodiments of the present application also provide a computer program product, which when run on a computer, implements the method flows shown in the method embodiments described above.
It should be appreciated that the Processor referred to in the embodiments of the present application may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), off-the-shelf programmable gate array (Field Programmable GATE ARRAY, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It should also be understood that the memory referred to in embodiments of the present application may be volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM) which acts as external cache memory. By way of example, and not limitation, many forms of RAM are available, such as static random access memory (STATIC RAM, SRAM), dynamic random access memory (DYNAMIC RAM, DRAM), synchronous Dynamic Random Access Memory (SDRAM), double data rate Synchronous dynamic random access memory (Double DATA RATE SDRAM, DDR SDRAM), enhanced Synchronous dynamic random access memory (ENHANCED SDRAM, ESDRAM), synchronous link dynamic random access memory (SYNCHLINK DRAM, SLDRAM), and Direct memory bus RAM (DR RAM).
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 components, the memory (storage module) is integrated into the processor.
It should be noted that the memory described in this specification is intended to comprise, without being limited to, these and any other suitable types of memory.
It should be understood that, in various embodiments of the present application, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present application.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of 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.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The modules in the device of the embodiment of the application can be combined, divided and deleted according to actual needs.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the application.
Claims (8)
1. A method of data management, for use with a host device in an intelligent system, the method comprising:
The master device obtains a data creation request, wherein the data creation request is from the master device or from a slave device, and the slave device comprises 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, and the method comprises the following steps:
the master device calls the data in the slave device to execute corresponding actions according to the data objects based on the received action instructions;
The master device sends a first action instruction containing a second data object to the slave device, wherein the first action instruction is used for instructing the slave device to execute a first action according to first data in the slave device called by the second data object; the master device sends a second action instruction containing the second data object to the slave device, wherein the second action instruction is used for instructing the slave device to execute a second action according to the first data in the slave device called by the second data object.
2. The method of claim 1, wherein the master device creates a data object from the data creation request, comprising:
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 for applying for a corresponding data space in the slave device and instructing the slave device to create a first data object;
The master device receiving the first data object from the slave device;
The master device sending the first data to the slave device to store the first data in the data space;
and the master device obtains the second data object according to the first data object and the first data package.
3. The method of claim 1, wherein the data creation request includes a third data object, the third data object being encapsulated by the slave device from the second data, the master device creating the data object from the data creation request, comprising:
And the master device encapsulates the third data object to obtain a fourth data object.
4. A method according to claim 3, wherein before the master device encapsulates a fourth data object from the third data object, the method further comprises:
The master device sends a third action instruction to the slave device, wherein the third action instruction is used for instructing the slave device to execute a third action so as to obtain the second data.
5. A method according to claim 3 or 4, wherein the master device managing data in the slave device according to the data object, comprising:
The master device obtains a fourth action instruction, wherein the fourth action instruction is used for indicating the master device to call the second data to execute a fourth action;
the master device sends a fifth action instruction to the slave device, wherein the fifth action instruction is used for indicating the slave device to send the second data to the master device;
And the master device calls the second data to execute the fourth action according to the fourth data object.
6. A data management apparatus for use with a host device in an intelligent system, the apparatus comprising:
An obtaining unit, configured to obtain a data creation request, where the data creation request is from the master device or from a slave device, and the slave device includes an intelligent module in the intelligent system;
a creation unit for creating a data object according to the data creation request;
a management unit, configured to manage data in the slave device according to the data object, including:
the master device calls the data in the slave device to execute corresponding actions according to the data objects based on the received action instructions;
The master device sends a first action instruction containing a second data object to the slave device, wherein the first action instruction is used for instructing the slave device to execute a first action according to first data in the slave device called by the second data object; the master device sends a second action instruction containing the second data object to the slave device, wherein the second action instruction is used for instructing the slave device to execute a second action according to the first data in the slave device called by the second data object.
7. A host device for use in an intelligent system, comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-5.
8. A computer-readable storage medium, characterized in that it stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method according to any one of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010804477.0A CN114077448B (en) | 2020-08-11 | 2020-08-11 | Data management method and related equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010804477.0A CN114077448B (en) | 2020-08-11 | 2020-08-11 | Data management method and related equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114077448A CN114077448A (en) | 2022-02-22 |
CN114077448B true CN114077448B (en) | 2024-09-27 |
Family
ID=80280158
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010804477.0A Active CN114077448B (en) | 2020-08-11 | 2020-08-11 | Data management method and related equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114077448B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103186405A (en) * | 2013-02-25 | 2013-07-03 | 北京网御星云信息技术有限公司 | Method and device for implementing unified control of equipment |
Family Cites Families (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8769033B2 (en) * | 2006-03-03 | 2014-07-01 | Microsoft Corporation | Identifying changes to media-device contents |
CN102279730B (en) * | 2010-06-10 | 2014-02-05 | 阿里巴巴集团控股有限公司 | Parallel data processing method, device and system |
TWI536174B (en) * | 2014-12-17 | 2016-06-01 | 緯創資通股份有限公司 | Method and system of sharing data and server apparatus thereof |
CN107222326B (en) * | 2016-03-22 | 2021-02-02 | 斑马智行网络(香港)有限公司 | Access method, configuration method and apparatus for inter-device service |
CN106452895A (en) * | 2016-11-01 | 2017-02-22 | 东软集团股份有限公司 | Service communication method for master equipment and slave equipment and relevant equipment |
CN106993066B (en) * | 2017-02-28 | 2020-01-21 | 华为技术有限公司 | Method, device and system for transmitting data |
CN117615380A (en) * | 2017-05-22 | 2024-02-27 | 奇跃公司 | Pairing with companion device |
CN109525625B (en) * | 2017-09-20 | 2020-12-22 | 华为技术有限公司 | A kind of information subscription method and device |
CN109948809A (en) * | 2017-12-18 | 2019-06-28 | 航天信息股份有限公司 | A kind of data processing method, device, equipment and medium |
CN110309100B (en) * | 2018-03-22 | 2023-05-23 | 腾讯科技(深圳)有限公司 | Snapshot object generation method and device |
WO2020001099A1 (en) * | 2018-06-25 | 2020-01-02 | Oppo广东移动通信有限公司 | Method for configuring terminal device by means of network device, and terminal device and network device |
CN109164985B (en) * | 2018-08-27 | 2020-07-07 | 华为技术有限公司 | Method for copying data, master device and slave device |
CN110321380A (en) * | 2019-07-09 | 2019-10-11 | 北京外研讯飞教育科技有限公司 | A kind of method for interchanging data, apparatus and system |
-
2020
- 2020-08-11 CN CN202010804477.0A patent/CN114077448B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103186405A (en) * | 2013-02-25 | 2013-07-03 | 北京网御星云信息技术有限公司 | Method and device for implementing unified control of equipment |
Also Published As
Publication number | Publication date |
---|---|
CN114077448A (en) | 2022-02-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11140137B2 (en) | Method and industrial computing apparatus for performing a secure communication | |
CN110381093B (en) | Method and device for converting data protocol, system for transmitting data and electronic equipment | |
CN110287040B (en) | Implementation system for remotely calling service framework | |
CN112822193B (en) | Application communication method, device, equipment and storage medium | |
CN108881111A (en) | A kind of method and device for realizing multi-tenant system | |
CN112688952B (en) | Message processing method, device, radio remote unit and medium | |
CN107040613B (en) | Message transmission method and system | |
CN102986151B (en) | Surveillance and data transmission device and method | |
CN114077448B (en) | Data management method and related equipment | |
CN111460464B (en) | Data encryption and decryption method and device, electronic equipment and computer storage medium | |
CN111796906A (en) | Container management method, device, equipment and storage medium | |
CN113138862A (en) | Message processing method, server, device, system and storage medium | |
CN113641518B (en) | Service calling method, device and storage medium | |
WO2018133828A1 (en) | Data processing method and device utilized in client terminal | |
CN109995782A (en) | A kind of information processing method, equipment, system and computer storage medium | |
CN112039749B (en) | Node js-based Internet of things equipment management method, system and storage medium | |
CN113918245A (en) | A data calling method, apparatus, device and computer-readable storage medium | |
CN115499140B (en) | A data transmission method and related equipment | |
US20130298257A1 (en) | Device for right managing web data, recording medium for performing method for right managing web data on computer, and device and method for providing right management information | |
CN112165529A (en) | Method, device, equipment and medium for low-cost cross-network data exchange | |
CN102255872A (en) | Method and device for accessing non-remote object | |
CN115129329A (en) | Method and device for deploying service and computer-readable storage medium | |
US11969894B2 (en) | Apparatus for automated communication between robot and artificial intelligence service and method using the same | |
CN114760312B (en) | Distributed task coordination method, device, equipment and medium | |
CN103986605A (en) | Network management server, processing server, network management system and corresponding method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |