Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, 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 one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, partial terms or terminology appearing in describing embodiments of the present application are applicable to the following explanation:
artificial intelligence (Artificial Intelligence, AI) is a new technical science to study, develop theories, methods, techniques and application systems for simulating, extending and expanding human intelligence. As a branch of computer science, artificial intelligence refers to the intelligence exhibited by artificially manufactured machines, i.e., humanoid intelligent techniques implemented by means of ordinary computer programs.
Metadata, which may also be referred to as intermediate data, relay data, refers to information about the organization of data, data fields and their relationships, and in short, is a data describing data, mainly information describing data attributes, used to support functions such as indicating storage locations, history data, resource searching, file recording, etc.
Example 1
Before describing further details of embodiments of the present application, one suitable data processing system that may be used to implement the principles of the present application will be described with reference to FIG. 1.
FIG. 1 is a schematic diagram of a data processing system according to an embodiment of the present application, the depicted architecture is merely one example of a suitable environment and is not intended to suggest any limitation as to the scope of use or functionality of the present application. Nor should the data processing system be construed as having any dependency or requirement relating to any one or combination of components illustrated in figure 1.
The system embodiment provided in the embodiment 1 of the present application may be widely applied to the internet, for example, in the technical field of artificial intelligence. As a result, the existing collaboration has the following drawbacks: a large amount of network bandwidth and data storage area is required, as well as high artificial intelligence AI analysis costs. In addition, through the hammer refining of the AI technology on the cloud service end, the AI is gradually miniaturized and chipped, the function of artificial intelligence can be integrated at the terminal equipment at present, the intelligent equipment is obtained, face recognition, character recognition, voice recognition, NLP (Natural Language Processing ) and the like can be carried out on the intelligent equipment, all data are not required to be transmitted to the cloud service end, the network bandwidth and the data storage area can be effectively reduced by adopting a new cooperation mode, and the analysis cost of the artificial intelligence AI can be effectively reduced.
However, in the above prior art, there is a problem of how to manage a plurality of terminal devices and implement data interaction processing between the terminal devices and the data server, and no effective solution has been proposed yet.
In order to solve the above problems, according to the embodiments of the present application, an embodiment of a data processing system is provided, which can achieve the purpose of directly performing data interaction processing between a terminal device and a data server, thereby realizing the technical effects of effectively reducing network bandwidth and a data storage area, and reducing the artificial intelligence AI analysis cost, and further solving the technical problem that in the prior art, the data interaction processing cannot be directly performed between the terminal device and the data server.
It should be noted that the data processing system embodiments provided in the embodiments of the present application may be, but not limited to, applied to new retail, video monitoring, etc. scenarios, so as to achieve the purpose of greatly reducing network cost.
As shown in fig. 1, the data processing system includes: terminal device 101, management server 103, data server 105, wherein:
a management server 103, connected to the terminal device 101, configured to send a space allocation request to a data server in response to a data processing request initiated by the terminal device, receive a storage space address returned by the data server, and send the storage space address to the terminal device, so that the terminal device sends the data to be processed to the data server, and store the data in a storage space; the data server 105 is connected to the management server 103, and is configured to allocate the storage space for the data to be processed based on the space allocation request, and return the storage space address to the management server.
As an alternative embodiment, the terminal device 101 is configured to send a data processing request, where the data processing request is used to request processing of data to be processed; the terminal device 101 may be any artificial intelligence AI device, for example, an AI camera device, an AI smart phone, an AI wearable device, etc.
The AI device may have an artificial intelligence AI processing capability, for example, an artificial intelligence AI chip may be integrated in the AI device, so that functions such as face recognition, text recognition, speech recognition, and NLP may be realized, and all data (e.g., audio data, image data, and video data) may not be uploaded to a data server for processing, but the data may be processed locally in the AI device.
In an alternative embodiment, the management server 103 may be a management server for data collaboration between a management terminal device and a data server, where the management server has, but is not limited to, a terminal device registration function and a storage space allocation function of the data server, and may also manage a plurality of terminal devices, and implement data interaction between the terminal device and the data server.
In another alternative embodiment, the data server refers to a cloud server side that can directly perform data interaction with the terminal device, for example, any kind of cloud data server may be used, and the data server may be, but is not limited to, capable of understanding AI processing capability information and metadata format information of the terminal device.
It should be noted that, the management server and the data server are implemented by using different software modules, and may be deployed by using different servers, so that the respective performances and isolation of the management server and the data server may be better ensured, and the management server and the data server may be deployed on the same server.
In an alternative embodiment, the terminal device may register in advance on the management server, and after the registration is completed, the terminal device may perform data collaboration with the data server.
As an alternative embodiment, if data collaboration between the terminal device and the data server is required, a connection between the terminal device and the data server needs to be established, and the terminal device initiates a data processing request to the management server, where the data processing request carries a device ID of the terminal device, data feature information (such as AI processing capability information and metadata format information), and the like. The management server responds to the data processing request and sends a space allocation request to the data server, the data server allocates a storage space for data to be stored, the address of the storage space is returned to the management server, and the management server returns the address of the storage space to the terminal equipment; and the terminal equipment uploads the data to be processed to the data server according to the received address of the storage space and stores the data to the corresponding storage space.
In an optional embodiment, the data server responds to a space allocation request sent by the management server, and allocates a storage space for the terminal device in the data collaboration, and when the storage space is allocated, the data server may select one of the existing storage spaces or newly create a storage space.
In the above optional embodiment, the space allocation request carries a cloud account number of a management server accessing a data server, an association relationship between a device ID of a terminal device and the cloud account number is stored in the management server, and the management server determines the cloud account number according to the device ID in the data processing request, and uses the cloud account number to request allocation of a storage space to the data server.
The terminal device 101, the management server 103, and the data server 105 may be connected by communication through access to a Wireless Local Area Network (WLAN), the internet, bluetooth, RFID, zigbee, NFC, etc., so as to facilitate data interaction and data processing.
It should be still noted that, at the control level, the management server may, but is not limited to, implement registration of terminal devices, and may manage millions of devices; the ability to allocate data access channels to the terminal device on the data server is achieved through the management server. In the data layer, the management server can also realize a terminal equipment direct transmission data server, wherein metadata and data share a transmission channel, and the efficiency of data interaction between the terminal equipment and the data server can be effectively improved.
As another optional embodiment, the management server may apply the cloud account for the storage space accessed by the terminal device to a data server, and may also send data feature information (for example, AI processing capability information and metadata format information) of the terminal device to the data server, so that after the terminal device sends the data to be processed to the data server, the data server verifies the data to be processed according to the data feature information.
In an optional embodiment, after returning the address information of the storage space to the terminal device, the management server may further acquire cloud service access statistics from the data server, where the cloud service access statistics is used to record an address information interaction process between the terminal device and the storage space.
In an alternative embodiment, before the terminal device sends the data processing request to the management server, the terminal device may further send a registration request to the management server, where the registration request includes: a terminal equipment identifier; after the management server receives the registration request, the management server allocates a data server for the terminal device, stores the association relationship between the terminal device identifier and the data server identifier, and can determine the data server corresponding to the terminal device according to the stored association relationship before the management server subsequently sends a space allocation request to the data server.
In another alternative embodiment, before the terminal device sends the data processing request to the management server, the terminal device may further send a registration request to the management server, where the registration request includes: a terminal device identifier and a data server identifier; after the management server receives the registration request, the management server does not need to allocate a data server to the terminal equipment, directly stores the association relationship between the terminal equipment identifier and the data server identifier, and can determine the data server corresponding to the terminal equipment according to the stored association relationship before the management server subsequently sends a space allocation request to the data server.
In another optional embodiment, after the terminal device sends the data to be processed to the data server and stores the data in the storage space, the management server is further configured to receive feedback information sent by the data server, where the feedback information includes: whether the process information was successfully stored and stored.
FIG. 2 is a schematic diagram of an alternative data processing system, as shown in FIG. 2, according to an embodiment of the present application, including: terminal device 101, management server 103, data server 105, policy control module 1051, first storage area 1053, and second storage area 1055.
In an alternative embodiment, the data to be processed includes user data and metadata associated with the user data, and the data server 105 includes: a policy control module 1051, a first storage region 1053, a second storage region 1055, wherein:
the policy control module 1051 is configured to store data characteristic information that can be used to verify validity of user data and metadata of the user data (i.e., metadata of data to be processed); the first storage area 1053 is used for storing the user data; the second storage area 1055 is used to store the above metadata.
It should be noted that, the policy refers to format definitions of user data and metadata, and policy control refers to detecting whether the user data and metadata uploaded by the terminal device meet the corresponding format definitions or not by the data server, if a field that is not matched with the user data and metadata appears, an error is indicated, so that whether the data uploaded by the terminal device is in error or not and whether the data is attacked by malicious software or not can be detected.
As an optional embodiment, the data server receives a data processing request from the terminal device, where the data processing request includes: memory space address, AI processing capability, user data to be written, and metadata; the data server verifies whether the storage space address, AI processing capability and format information of the metadata in the data processing request are consistent with the corresponding storage space address, AI processing capability and format information of the metadata when the storage space is allocated, if so, the data server stores the user data, otherwise, the data server refuses to store the user data, and after the data server successfully stores the user data, feedback messages are respectively sent to the terminal equipment and the management server.
In the above-mentioned alternative embodiment, the data server extracts the user data and the above-mentioned metadata from the above-mentioned data processing request separately, adopt the above-mentioned data characteristic information to verify the legitimacy of the above-mentioned user data, and store the above-mentioned user data to the above-mentioned first storage area in case that the above-mentioned user data passes the verification; and verifying the validity of the metadata by using the data characteristic information, and storing the metadata into the second storage area when the metadata passes the verification.
In an alternative embodiment, taking the terminal device as an AI camera device as an example, the AI camera device may take a picture of a face in a video, where the picture is user data, and meanwhile, may analyze the picture through an intelligent camera of the AI camera device to obtain face information in the picture, for example, location information of the face in the picture, age information, gender information, and the like corresponding to the face, where the face information is metadata. The AI-capturing apparatus may then transmit the above-described user data (face picture) and metadata (face information in the picture) directly to the data server.
According to an alternative embodiment, metadata format information of the AI imaging apparatus may be predefined, and the metadata format information may be, for example, information defined in JSON format or XML format, which is used to represent AI processing capability of the AI imaging apparatus and a data field format processed under the AI processing capability. For example, metadata format information of the AI image capturing apparatus may be defined as follows:
In the metadata format information, the Data field has a Data type of Object and is used for storing a picture content description (such as a photo of a party of a college); the data type of the AIType field is String, which is used for indicating the AI processing capability (such as face recognition) provided by the AI device; the AIMeta field defines a format of a data field processed under the AI processing capability, where a data type of the Age field is Int, which is used to represent an Age (for example, 22 years old) corresponding to the identified face, and a data type of the Confidence field is flow, which is used to represent a Confidence (for example, 98.8%) of the Age identification result.
The metadata format information defined above may be used as data characteristic information of the AI-capturing apparatus. When the AI image pickup apparatus transmits a data processing request to the management server, the data processing request carries the above-described data feature information together. The management server sends the data characteristic information to the data server, so that when the AI image pickup device uploads user data and metadata to the data server, the data server verifies whether the data uploaded by the AI image pickup device are legal or not according to the data characteristic information, and if the format of the metadata uploaded by the AI device is consistent with the data characteristic information, the uploaded user data and metadata are considered to be legal; otherwise, the uploaded user data and metadata are considered illegal.
Optionally, the first storage area and the second storage area are OSS cloud storage spaces of an operation support system applied by the data server in an upward cloud mode. In another alternative embodiment, the data server stores the user data in a first storage area, and the data server stores the metadata in a second storage area, that is, the data server stores the user data and the metadata in different or the same OSS cloud storage spaces, respectively.
In the embodiment of the application, the management server can manage a plurality of terminal devices according to the AI processing capacity and metadata of the terminal devices, and can realize resource docking with the data server by using a registration mechanism, so that millions of terminal devices can be managed.
In addition, according to the alternative embodiment provided by the application, through the direct transmission protocol between the terminal equipment and the data server, the terminal equipment can control the data transmission process, for example, metadata information is carried during transmission, so that the utilization rate of network bandwidth can be effectively improved, and on the data server, the search management of data and metadata of a plurality of terminal equipment can be realized, so that the application of the network bandwidth to new retail, video monitoring and other scenes can be realized, and the network cost is greatly reduced.
Example 2
In accordance with the embodiments of the present application, there is provided an embodiment of a data processing method, it being noted that the steps shown in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order other than that shown or described herein.
The method embodiments provided by the embodiments of the present application may be performed in a mobile terminal, a computer terminal, or similar computing device. Fig. 3 shows a block diagram of a hardware architecture of a computer terminal (or mobile device) for implementing a data processing method. As shown in fig. 3, the computer terminal 10 (or mobile device 10) may include one or more processors 102 (shown as 102a, 102b, … …,102 n) which may include, but are not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA, amemory 104 for storing data, and a transmission module 106 for communication functions. In addition, the method may further include: a display, an input/output interface (I/O interface), a Universal Serial Bus (USB) port (which may be included as one of the ports of the I/O interface), a network interface, a power supply, and/or a camera. It will be appreciated by those of ordinary skill in the art that the configuration shown in fig. 3 is merely illustrative and is not intended to limit the configuration of the electronic device described above. For example, the computer terminal 10 may also include more or fewer components than shown in FIG. 3, or have a different configuration than shown in FIG. 3.
It should be noted that the one or more processors 102 and/or other data processing circuits described above may be referred to generally herein as "data processing circuits. The data processing circuit may be embodied in whole or in part in software, hardware, firmware, or any other combination. Furthermore, the data processing circuitry may be a single stand-alone processing module, or incorporated, in whole or in part, into any of the other elements in the computer terminal 10 (or mobile device). As referred to in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of the path of the variable resistor termination to interface).
Thememory 104 may be used to store software programs and modules of application software, such as program instructions/data storage devices corresponding to the data processing methods in the embodiments of the present application, and the processor 102 executes the software programs and modules stored in thememory 104, thereby executing various functional applications and data processing, that is, implementing the data processing methods of the application programs.Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, thememory 104 may further include memory located remotely from the processor 102, which may be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 106 is arranged to receive or transmit data via a network. The specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module for communicating with the internet wirelessly.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the computer terminal 10 (or mobile device).
In the above-described operating environment, the present application provides a data processing method as shown in fig. 4. It should be noted that, in the embodiment of the data processing method provided in the embodiment of the present application, the application scenario and the technical scenario may be, but not limited to, the same as those described in the foregoing embodiment 1, for example, may be, but not limited to, applied to a new retail scenario, a video monitoring scenario, etc., so as to achieve the purpose of greatly reducing the network cost.
Fig. 4 is a flowchart of a data processing method according to an embodiment of the present application, and as shown in fig. 4, the method further includes the following method steps:
step S102, a data processing request from a terminal device is received, wherein the data processing request is used for requesting to process data to be processed.
Specifically, the execution bodies of step S102 to step S108 in the embodiment of the present application may be, but not limited to, management servers, for example, any of the optional or preferred management servers in the above embodiment 1.
As an alternative embodiment, the terminal device may be any artificial intelligence AI device, for example, an AI camera device, an AI smart phone, an AI wearable device, or the like.
The terminal device has an artificial intelligence AI processing capability, for example, an artificial intelligence AI chip may be integrated in the terminal device, so that functions such as face recognition, word recognition, voice recognition, and NLP may be realized, and all data (e.g., audio data, image data, and video data) may not be uploaded to a data server for processing, but the data may be processed locally in the terminal device.
In an alternative embodiment, the management server may be a management server for managing data collaboration between the terminal device and the data server, where the management server has, but is not limited to, a terminal device registration function and a storage space allocation function of the data server, and may also manage a plurality of terminal devices, and implement data collaboration between the terminal device and the data server.
Step S104, responding to the data processing request, sending a space allocation request to a data server so that the data server allocates storage space for the data to be processed based on the space allocation request.
In another alternative embodiment, the data server refers to a cloud server side that can directly perform data interaction with the terminal device, for example, any kind of cloud data server may be used, and the data server may be, but is not limited to, capable of understanding AI processing capability information and metadata format information of the terminal device.
It should be noted that, the management server and the data server are implemented by using different software modules, and may be deployed by using different servers, so that the respective performances and isolation of the management server and the data server may be better ensured, and the management server and the data server may be deployed on the same server.
Step S106, receiving the storage space address returned by the data server.
And step S108, the storage space address is sent to the terminal equipment, so that the terminal equipment sends the data to be processed to the data server and stores the data in the storage space.
In an alternative embodiment, the terminal device may register in advance on the management server, and after the registration is completed, the terminal device may perform data collaboration with the data server.
As an alternative embodiment, if data collaboration between the terminal device and the data server is required, a connection between the terminal device and the data server needs to be established, and the terminal device initiates a data processing request to the management server, where the data processing request carries a device ID of the terminal device, data feature information (such as AI processing capability information and metadata format information, etc.), and so on. The management server responds to the data processing request and sends a space allocation request to the data server, the data server allocates a storage space for data to be stored, the address of the storage space is returned to the management server, and the management server returns the address of the storage space to the terminal equipment; and the terminal equipment uploads the data to be processed to the data server according to the received address of the storage space and stores the data to the corresponding storage space.
In an optional embodiment, the data server responds to a space allocation request sent by the management server, and allocates a storage space for the terminal device in the data collaboration, and when the storage space is allocated, the data server may select one of the existing storage spaces or newly create a storage space.
In the above optional embodiment, the space allocation request carries a cloud account number of a management server accessing a data server, an association relationship between a device ID of a terminal device and the cloud account number is stored in the management server, and the management server determines the cloud account number according to the device ID in the data processing request, and uses the cloud account number to request allocation of a storage space to the data server.
The terminal device, the management server, and the data server may be connected by communication through access to a Wireless Local Area Network (WLAN), the internet, bluetooth, RFID, zigbee, NFC, etc., so as to facilitate data interaction and data processing.
It should be still noted that, at the control level, the management server may, but is not limited to, implement registration of terminal devices, and may manage millions of devices; the ability to allocate data access channels to the terminal device on the data server is achieved through the management server. In the data layer, the management server can also realize a terminal equipment direct transmission data server, wherein metadata and data share a transmission channel, and the efficiency of data interaction between the terminal equipment and the data server can be effectively improved.
Based on the schemes defined in the above steps S102 to S106, it can be known that a data processing request from the terminal device is received by the management server, where the data processing request is used to request for processing the data to be processed; transmitting a space allocation request to a data server in response to the data processing request, so that the data server allocates a storage space for the data to be processed based on the space allocation request; receiving a storage space address returned by the data server; and sending the storage space address to the terminal equipment so that the terminal equipment sends the data to be processed to the data server and stores the data in the storage space.
According to the scheme provided by the embodiment of the application, the purpose of directly carrying out data interaction processing between the terminal equipment and the data server can be achieved, so that the technical effects of effectively reducing network bandwidth and a data storage area and reducing the artificial intelligence AI analysis cost are achieved, and the technical problem that the data interaction processing cannot be directly carried out between the terminal equipment and the data server in the prior art is solved.
In an alternative embodiment, the data processing request includes: data characteristic information; the method also comprises the following method steps:
Step S202, the data characteristic information is sent to the data server in response to the data processing request, so that after the terminal equipment sends the data to be processed to the data server, the data server verifies the data to be processed according to the data characteristic information.
Optionally, the above data characteristic information may be, but is not limited to,: AI processing capability information and metadata format information of the terminal device, and the like.
In the above optional embodiment, the management server may further, but is not limited to, send the data characteristic information of the terminal device to the data server while applying for the storage space accessed by the terminal device to the data server by using the cloud account.
In an alternative embodiment, the process of verifying the data to be processed by the data server according to the data feature information may, but is not limited to, verify the validity of the data to be processed, for example, the data server may verify the validity of the data to be processed by using the data feature information, and store the data to be processed in the storage space if the validity of the data to be processed passes the verification.
As an optional embodiment, after the terminal device sends the data to be processed to the data server and stores the data in the storage space, the management server may further receive feedback information sent by the data server, where the feedback information includes: whether the process information was successfully stored and stored. That is, after receiving the data to be processed, the data server returns feedback information to the management server, so as to feed back whether the data to be processed of the terminal device is successfully stored to the management server in real time, and a storage process of storing the data to be processed.
In an alternative embodiment, fig. 5 is a flowchart of an alternative data processing method according to an embodiment of the present application, as shown in fig. 5, before receiving the data processing request from the terminal device, further including:
step S302, receiving a registration request from the terminal device, where the registration request includes: a terminal equipment identifier;
step S304, responding to the registration request and distributing the data server for the terminal equipment;
step S306, storing the association relationship between the terminal equipment identifier and the data server identifier.
It should be noted that, by registering and activating the terminal device in the management server, the management server may manage the terminal device, for example, allocate a storage space of the data server to the terminal device, so as to implement data collaboration between the terminal device and the data server.
Based on the optional embodiments provided in the steps S302 to S306, the terminal device may register on the management server by sending a registration request to the management server, and the management server may respond to the received registration request, for example, may return the following response information: confirming that the registration request is received, and registering and activating the terminal equipment.
And, since the registration request sent by the terminal device includes the terminal device identifier, after the management server receives the registration request, the management server allocates a data server to the terminal device, stores the association relationship between the terminal device identifier and the data server identifier, and can determine the data server corresponding to the terminal device according to the stored association relationship before the management server subsequently sends the space allocation request to the data server.
In another alternative embodiment, fig. 6 is a flowchart of an alternative data processing method according to an embodiment of the present application, as shown in fig. 6, further including, before receiving the data processing request from the terminal device:
step S402, receiving a registration request from the terminal device, where the registration request includes: a terminal device identifier and a data server identifier;
step S404, storing the association relation between the terminal equipment identification and the data server identification.
Unlike the optional embodiments provided in the steps S302 to S306, in the optional embodiments provided in the steps S402 to S404, the registration request sent by the terminal device may further include a terminal device identifier and a data server identifier, after the management server receives the registration request, the management server does not need to allocate the data server to the terminal device, directly stores the association relationship between the terminal device identifier and the data server identifier, and may determine the data server corresponding to the terminal device according to the stored association relationship before the management server subsequently sends the space allocation request to the data server.
As an alternative embodiment, fig. 7 is an interactive flowchart of an alternative data processing method according to an embodiment of the present application, as shown in fig. 7, and the method further includes the following method steps:
in step S501, the terminal device sends a registration request to the management server.
In the step S501, the terminal device may be any artificial intelligence AI device, for example, an AI camera device, an AI smart phone, an AI wearable device, or the like.
In an alternative embodiment, the management server is a management end for managing cooperation between the terminal device and the data server, for example, may be a management server, where the management server has, but is not limited to, a device registration function and a storage space allocation function of the data server, and may manage a plurality of terminal devices, and implement data cooperation between the terminal device and the data server.
In step S502, the management server returns response information to the terminal device.
As an alternative embodiment, the terminal device may register on the management server by sending a registration request, and the management server may respond to the received registration request information, for example, may return response information, confirm that the registration request information is received, and register and activate the terminal device.
The terminal device may be registered and activated in the management server, and the management server may manage the terminal device, for example, allocate a storage space of the data server to the terminal device.
In step S503, the terminal device sends a data processing request to the management server, where the data processing request is used to request processing of the data to be processed.
In step S504, the management server sends a space allocation request to the data server in response to the data processing request, so that the data server allocates a storage space for the data to be processed based on the space allocation request.
In step S505, the management server receives the storage space address returned by the data server.
In step S506, the management server transmits the storage space address to the terminal device.
In step S507, the terminal device sends the data to be processed to the data server, and stores the data in the storage space.
As an optional embodiment, the management server responds to the data processing request and sends a space allocation request to the data server, the data server allocates a storage space for the data to be stored, returns the address of the storage space to the management server, and the management server returns the address of the storage space to the terminal device.
As an alternative embodiment, the data processing request includes: data characteristic information; the management server may also, but not limited to, send the data characteristic information to the data server in response to the data processing request, so that the data server verifies the data to be processed according to the data characteristic information after the terminal device sends the data to be processed to the data server.
In step S508, the management server receives the feedback information sent by the data server.
In the step S508, the feedback information includes: whether the process information was successfully stored and stored.
It should be noted that, the optional embodiments provided in the steps S501 to S508 mainly but not limited to the control layer, and the management server may but not limited to implement registration of the intelligent device to manage millions of devices; the management server provided by the embodiment of the application can realize the technical effect of distributing the data access channels on the data server for the intelligent equipment.
As another alternative embodiment, fig. 8 is an interactive flowchart of an alternative data processing method according to an embodiment of the present application, as shown in fig. 8, and the method further includes the following method steps:
In step S601, the data server receives a data processing request from the terminal device.
Optionally, in the step S601, the data server may receive the data processing request, for example, a data storage request, via a storage space allocated for the terminal device; the data to be processed comprises user data and metadata associated with the user data, and the data processing request at least carries the user data to be stored and the metadata associated with the user data.
In an optional embodiment, after receiving the storage space address returned by the management server, the intelligent device may further perform intelligent analysis on the user data to extract the metadata; and packaging the user data and the metadata, encapsulating the user data and the metadata in the data processing request, and sending the data processing request to a data server.
Optionally, the above-mentioned packaging process may be, but not limited to, a data interaction format Protocol Buffer technology.
As an alternative embodiment, the terminal device may send the data processing request, and the data server may receive the data processing request.
In step S602, the data server verifies the validity of the data processing request.
In step S602 described above, since the management server has already allocated the storage space of the data server for the corresponding terminal device, in the case where the terminal device accesses the data server, the data server can verify the validity of the data processing request of the terminal device, for example, by verifying whether the data processing request is made through the corresponding storage space.
It should be noted that, the legal data processing request may carry user information, and the validity of the data processing request of the terminal device may be determined by verifying the user information carried in the data processing request; in addition, the validity of the data processing request of the terminal device can be determined by verifying the signature carried in the data processing request.
Step S603, the data server extracts user data and metadata from the data processing request respectively under the condition that the verification is passed;
step S604, the data server adopts the data characteristic information to verify the validity of the user data and the metadata;
in step S605, in the case that the user data passes the authentication, the data server stores the user data to the first storage area.
Based on the optional embodiment, the data server may verify the validity of the user data using the data characteristic information after extracting the user data, and store the user data in the first storage area if the user data is verified.
In step S606, the data server returns the user data writing success information to the terminal device.
In step S607, in the case where the metadata passes the verification, the data server stores the metadata to the second storage area.
Based on the optional embodiment, the data server may verify validity of the metadata using the data characteristic information after extracting the metadata, and store the metadata to the second storage area if the metadata is verified.
In an alternative embodiment, taking the terminal device as an AI camera device as an example, the AI camera device may take a picture of a face in a video, where the picture is user data, and meanwhile, may analyze the picture through an intelligent camera of the AI camera device to obtain face information in the picture, for example, location information of the face in the picture, age information, gender information, and the like corresponding to the face, where the face information is metadata. The terminal device may then transmit the user data (face picture) and metadata (face information in the picture) directly to the data server.
Optionally, the first storage area and the second storage area are OSS cloud storage spaces of an operation support system applied by the data server in an upward cloud mode. In another alternative embodiment, the data server stores the user data in a first storage area, and the data server stores the metadata in a second storage area, that is, the data server stores the user data and the metadata in different or the same OSS cloud storage spaces, respectively.
In step S608, the data server returns the metadata writing success information to the terminal apparatus.
In step S609, the data server returns the data processing request success information to the terminal device.
Based on the above alternative embodiment, after the user data and the metadata are both authenticated, and the data server returns the user data and the metadata writing success information to the terminal device, the data server returns the data processing request success information to the terminal device.
In step S610, the management server acquires cloud service access statistics information from the data server.
In the step S610, the cloud service access statistics is used to record an information interaction process between the terminal device and the storage space.
As an optional embodiment, in a process of data interaction between the data server and the terminal device, an information interaction process between the terminal device and the storage space may be recorded, so as to obtain the cloud service access statistical information, and the cloud service access statistical information is stored locally in the data server.
After the management server returns the address information of the storage space to the terminal equipment, cloud service access statistical information can be acquired from the data server, so that management of millions of devices is facilitated, the capacity of distributing data access channels on the data server for the intelligent device is realized, and the efficiency of data interaction between the intelligent device and the data server is improved.
It should be noted that, in the alternative embodiments provided in the steps S601 to S610, mainly but not exclusively, the data layer is related to the management server may also implement a direct transmission data server of the intelligent device, where the metadata and the data share a transmission channel, so that the efficiency of data interaction between the intelligent device and the data server may be effectively improved.
It should be noted that, the preferred implementation manner of this embodiment may be referred to the related description in embodiment 1, and will not be repeated here.
Example 3
In accordance with embodiments of the present application, there is also provided another embodiment of a data processing method, it being noted that the steps shown in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order other than that shown or described herein.
In the same or similar operating environment as embodiment 2 described above, the present application provides a data processing method as shown in fig. 9. Fig. 9 is a flowchart of another data processing method according to an embodiment of the present application, as shown in fig. 9, the method further includes the following method steps:
in step S902, a data processing request is sent to a management server, so that the management server requests to allocate a storage space to the data server, where the data processing request is used to request to process data to be processed, and the storage space is used to store the data to be processed.
Specifically, the execution bodies of step S902 to step S906 in the embodiment of the present application may be, but not limited to, terminal devices, for example, any of the optional or preferred terminal devices in the above embodiment 1.
As an alternative embodiment, the terminal device may be any artificial intelligence AI device, for example, an AI camera device, an AI smart phone, an AI wearable device, or the like.
In an alternative embodiment, the management server may be a management server for managing data collaboration between the terminal device and the data server, where the management server has, but is not limited to, a terminal device registration function and a storage space allocation function of the data server, and may also manage a plurality of terminal devices, and implement data collaboration between the terminal device and the data server.
In another alternative embodiment, the data server refers to a cloud server side that can directly perform data interaction with the terminal device, for example, any kind of cloud data server may be used, and the data server may be, but is not limited to, capable of understanding AI processing capability information and metadata format information of the terminal device.
It should be noted that, the management server and the data server are implemented by using different software modules, and may be deployed by using different servers, so that the respective performances and isolation of the management server and the data server may be better ensured, and the management server and the data server may be deployed on the same server.
As an alternative embodiment, the terminal device may register in advance on the management server, and after the registration is completed, the terminal device may perform data collaboration with the data server.
Step S904, receiving the storage space address returned by the data server and forwarded by the management server.
Step S906, transmitting the data to be processed to the data server, and storing the data in the storage space.
An alternative embodiment, after the terminal device initiates a data processing request to the management server, the data processing request carries a device ID of the terminal device, data feature information (such as AI processing capability information, metadata format information, etc.), and the like; the management server responds to the data processing request and sends a space allocation request to the data server, the data server allocates a storage space for data to be stored, the address of the storage space is returned to the management server, and the management server returns the address of the storage space to the terminal equipment; and the terminal equipment uploads the data to be processed to the data server according to the received address of the storage space and stores the data to the corresponding storage space.
In an optional embodiment, the data server responds to a space allocation request sent by the management server, and allocates a storage space for the terminal device in the data collaboration, and when the storage space is allocated, the data server may select one of the existing storage spaces or newly create a storage space.
In the above optional embodiment, the space allocation request carries a cloud account number of a management server accessing a data server, an association relationship between a device ID of a terminal device and the cloud account number is stored in the management server, and the management server determines the cloud account number according to the device ID in the data processing request, and uses the cloud account number to request allocation of a storage space to the data server.
The terminal device, the management server, and the data server may be connected by communication through access to a Wireless Local Area Network (WLAN), the internet, bluetooth, RFID, zigbee, NFC, etc., so as to facilitate data interaction and data processing.
It should be still noted that, at the control level, the management server may, but is not limited to, implement registration of terminal devices, and may manage millions of devices; the ability to allocate data access channels to the terminal device on the data server is achieved through the management server. In the data layer, the management server can also realize a terminal equipment direct transmission data server, wherein metadata and data share a transmission channel, and the efficiency of data interaction between the terminal equipment and the data server can be effectively improved.
Based on the scheme defined in the above steps S902 to S906, it may be known that a data processing request is sent to a management server by a terminal device, so that the management server requests to allocate a storage space to the data server, where the data processing request is used to request to process data to be processed, and the storage space is used to store the data to be processed; receiving a storage space address returned by the data server and forwarded by the management server; and sending the data to be processed to the data server and storing the data in the storage space.
According to the scheme provided by the embodiment of the application, the purpose of directly carrying out data interaction processing between the terminal equipment and the data server can be achieved, so that the technical effects of effectively reducing network bandwidth and a data storage area and reducing the artificial intelligence AI analysis cost are achieved, and the technical problem that the data interaction processing cannot be directly carried out between the terminal equipment and the data server in the prior art is solved.
In an alternative embodiment, the data processing request includes: and the data characteristic information is used for verifying the data to be processed according to the data characteristic information by the data server after the data to be processed is sent to the data server.
Optionally, the above data characteristic information may be, but is not limited to,: AI processing capability information and metadata format information of the terminal device, and the like.
In the above optional embodiment, the management server may further, but is not limited to, send the data characteristic information of the terminal device to the data server while applying for the storage space accessed by the terminal device to the data server by using the cloud account.
In an alternative embodiment, the process of verifying the data to be processed by the data server according to the data feature information may, but is not limited to, verify the validity of the data to be processed, for example, the data server may verify the validity of the data to be processed by using the data feature information, and store the data to be processed in the storage space if the validity of the data to be processed passes the verification.
As an alternative embodiment, before sending the data processing request to the management server, the method further includes:
step S1000, sending a registration request to the management server, so that the management server allocates the data server to the terminal device, where the registration request includes: and (5) identifying the terminal equipment.
It should be noted that, by registering and activating the terminal device in the management server, the management server may manage the terminal device, for example, allocate a storage space of the data server to the terminal device, so as to implement data collaboration between the terminal device and the data server.
In the above alternative embodiment, the terminal device may register on the management server by sending a registration request to the management server, and the management server may respond to the received registration request, for example, may return the following response information: confirming that the registration request is received, and registering and activating the terminal equipment.
And, since the registration request sent by the terminal device includes the terminal device identifier, after the management server receives the registration request, the management server allocates a data server to the terminal device, stores the association relationship between the terminal device identifier and the data server identifier, and can determine the data server corresponding to the terminal device according to the stored association relationship before the management server subsequently sends the space allocation request to the data server.
As another alternative embodiment, before sending the data processing request to the management server, the method further includes:
Step S1002, a registration request is sent to the management server, so that the management server obtains a terminal device identifier and a data server identifier from the registration request, and stores an association relationship between the terminal device identifier and the data server identifier.
Step S1004, receiving a data processing request from a management server, where the data processing request at least carries a cloud identifier, and the cloud identifier corresponds to a device identifier of an artificial intelligent terminal device.
Unlike the optional embodiment provided in the above step S1000, in the optional embodiment provided in the above step S1002 to step S1004, the registration request sent by the terminal device may further include a terminal device identifier and a data server identifier, after the management server receives the registration request, the management server does not need to allocate a data server to the terminal device, directly stores an association relationship between the terminal device identifier and the data server identifier, and may determine, according to the stored association relationship, a data server corresponding to the terminal device before the management server subsequently sends a space allocation request to the data server.
It should be noted that, at the control level, the management server may, but is not limited to, implement registration of terminal devices, and manage millions of devices; the ability to allocate data access channels to the terminal device on the data server is achieved through the management server.
It should be still noted that, at the data layer, the management server may also implement a terminal device direct transmission data server, where metadata and data share a transmission channel, so that efficiency of data interaction between the terminal device and the data server may be effectively improved.
In an optional embodiment, after receiving the storage space address sent by the management server, the method further includes:
step S1102, a data processing request is sent to the data server.
In an alternative embodiment, the data processing request carries at least user data to be processed and metadata associated with the user data.
In another alternative embodiment, the terminal device may send the data processing request, and the data server may receive the data processing request.
Step S1104, receiving the access response message returned by the data server.
As an alternative embodiment, the access response message is used to indicate that both the user data and the metadata have been successfully stored in the data server.
In an alternative embodiment, the data server receives a data processing request from the terminal device, where the data processing request includes: memory space address, AI processing capability, user data to be written, and metadata; the data server verifies whether the storage space address, AI processing capability and format information of the metadata in the data processing request are consistent with the corresponding storage space address, AI processing capability and format information of the metadata when the storage space is allocated, if so, the data server stores the user data, otherwise, the data server refuses to store the user data, and after the data server successfully stores the user data, feedback messages are respectively sent to the terminal equipment and the management server.
In the above-mentioned alternative embodiment, the data server extracts the user data and the above-mentioned metadata from the above-mentioned data processing request separately, adopt the above-mentioned data characteristic information to verify the legitimacy of the above-mentioned user data, and store the above-mentioned user data to the above-mentioned first storage area in case that the above-mentioned user data passes the verification; and verifying the validity of the metadata by using the data characteristic information, and storing the metadata into the second storage area when the metadata passes the verification.
Optionally, the policy refers to format definitions of user data and metadata, and the policy control refers to whether the user data and the metadata uploaded by the terminal device need to be detected by the data server and conform to the corresponding format definitions, and if a mismatch field occurs, an error is indicated, so that whether the data uploaded by the terminal device is in error or not and whether the data is attacked by malicious software or not can be detected.
In an alternative embodiment, taking the terminal device as an AI camera device as an example, the AI camera device may take a picture of a face in a video, where the picture is user data, and meanwhile, may analyze the picture through an intelligent camera of the AI camera device to obtain face information in the picture, for example, location information of the face in the picture, age information, gender information, and the like corresponding to the face, where the face information is metadata. The terminal device may then transmit the user data (face picture) and metadata (face information in the picture) directly to the data server.
Optionally, the first storage area and the second storage area are OSS cloud storage spaces of an operation support system applied by the data server in an upward cloud mode. In another alternative embodiment, the data server stores the user data in a first storage area, and the data server stores the metadata in a second storage area, that is, the data server stores the user data and the metadata in different or the same OSS cloud storage spaces, respectively.
In an alternative embodiment, before sending the data processing request to the data server, the method further includes:
step S1202, intelligent analysis is carried out on the user data, and the metadata is extracted;
step S1204, packaging the user data and the metadata, and encapsulating the user data and the metadata in the data processing request.
In an optional embodiment, after receiving the address information of the storage space returned by the management server, before sending the data processing request to the data server, the terminal device may further perform intelligent analysis on the user data to extract the metadata; and packaging the user data and the metadata, encapsulating the user data and the metadata in the data processing request, and sending the data processing request to a data server.
Optionally, the above-mentioned packaging process may be, but not limited to, a data interaction format Protocol Buffer technology.
The "data processing request" in embodiment 3 may be the same as or different from the "data processing request" in embodiment 2 described above. The terms "first," "second," and the like in the embodiments and the drawings herein are used for distinguishing similar objects and are not intended to be limiting in any way.
It should be still noted that, the preferred implementation manner of this embodiment may be referred to the related descriptions in embodiments 1 and 2, and will not be repeated here.
Example 4
In accordance with embodiments of the present application, there is also provided yet another embodiment of a data processing method, it being noted that the steps shown in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order other than that shown or described herein.
In the same or similar operating environment as embodiment 2 described above, the present application provides a data processing method as shown in fig. 10. Fig. 10 is a flowchart of yet another data processing method according to an embodiment of the present application, as shown in fig. 10, the method further includes the following method steps:
in step S1302, a space allocation request from a management server is received.
Specifically, the execution subjects of step S1302 to step S1308 may be, but not limited to, data servers, for example, any of the optional or preferred data servers of the above-described embodiment 1.
In the above optional embodiment, the space allocation request carries a cloud account number of a management server accessing a data server, an association relationship between a device ID of a terminal device and the cloud account number is stored in the management server, and the management server determines the cloud account number according to the device ID in the data processing request, and uses the cloud account number to request allocation of a storage space to the data server.
In step S1304, in response to the space allocation request, a storage space is allocated for the data to be processed of the terminal device.
As an alternative embodiment, the terminal device may be any artificial intelligence AI device, for example, an AI camera device, an AI smart phone, an AI wearable device, or the like.
The terminal device has an artificial intelligence AI processing capability, for example, an artificial intelligence AI chip may be integrated in the terminal device, so that functions such as face recognition, word recognition, voice recognition, and NLP may be realized, and all data (e.g., audio data, image data, and video data) may not be uploaded to a data server for processing, but the data may be processed locally in the terminal device.
In an alternative embodiment, the management server may be a management server for managing data collaboration between the terminal device and the data server, where the management server has, but is not limited to, a terminal device registration function and a storage space allocation function of the data server, and may also manage a plurality of terminal devices, and implement data collaboration between the terminal device and the data server.
Step S1306 of returning a storage space address to the management server so that the management server transmits the storage space address to the terminal device.
Step S1308, receiving the data to be processed sent by the terminal device, and storing the data to be processed in the storage space.
In another alternative embodiment, the data server refers to a cloud server side that can directly perform data interaction with the terminal device, for example, any kind of cloud data server may be used, and the data server may be, but is not limited to, capable of understanding AI processing capability information and metadata format information of the terminal device.
It should be noted that, the management server and the data server are implemented by using different software modules, and may be deployed by using different servers, so that the respective performances and isolation of the management server and the data server may be better ensured, and the management server and the data server may be deployed on the same server.
In an alternative embodiment, the terminal device may register in advance on the management server, and after the registration is completed, the terminal device may perform data collaboration with the data server.
As an optional embodiment, if data collaboration between the terminal device and the data server needs to be implemented, connection between the terminal device and the data server needs to be established, and the terminal device initiates a data processing request to the management server, where the data processing request carries a device ID, data feature information, and the like of the terminal device, where the data feature information may include AI processing capability information, metadata format information, and the like.
The management server responds to the data processing request and sends a space allocation request to the data server, the data server allocates a storage space for data to be stored, the address of the storage space is returned to the management server, and the management server returns the address of the storage space to the terminal equipment; and the terminal equipment uploads the data to be processed to the data server according to the received address of the storage space and stores the data to the corresponding storage space.
The terminal device, the management server, and the data server may be connected by communication through access to a Wireless Local Area Network (WLAN), the internet, bluetooth, RFID, zigbee, NFC, etc., so as to facilitate data interaction and data processing.
It should be still noted that, at the control level, the management server may, but is not limited to, implement registration of terminal devices, and may manage millions of devices; the ability to allocate data access channels to the terminal device on the data server is achieved through the management server. In the data layer, the management server can also realize a terminal equipment direct transmission data server, wherein metadata and data share a transmission channel, and the efficiency of data interaction between the terminal equipment and the data server can be effectively improved.
As can be known based on the scheme defined in the above steps S1302 to S1308, the space allocation request from the management server is received through the data server; responding to the space allocation request, and allocating storage space for the data to be processed of the terminal equipment; returning a storage space address to the management server so that the management server transmits the storage space address to the terminal device; and receiving the data to be processed sent by the terminal equipment, and storing the data to be processed into the storage space.
According to the scheme provided by the embodiment of the application, the purpose of directly carrying out data interaction processing between the terminal equipment and the data server can be achieved, so that the technical effects of effectively reducing network bandwidth and a data storage area and reducing the artificial intelligence AI analysis cost are achieved, and the technical problem that the data interaction processing cannot be directly carried out between the terminal equipment and the data server in the prior art is solved.
In an alternative embodiment, the method further comprises the following method steps:
step S1402, receiving the data feature information sent by the management server;
step S1404, verifying the data to be processed according to the data characteristic information.
Optionally, the above data characteristic information may be, but is not limited to,: AI processing capability information and metadata format information of the terminal device, and the like.
In the above optional embodiment, the management server may further, but is not limited to, send the data characteristic information of the terminal device to the data server while applying for the storage space accessed by the terminal device to the data server by using the cloud account.
In an optional embodiment, the data to be processed includes user data and metadata associated with the user data, and the step of verifying the data to be processed according to the data feature information may be implemented by the following method steps: judging whether the format of the metadata is consistent with the data characteristic information; if the data to be processed passes the verification, the data to be processed is stored in the storage space; if not, the verification fails, and the data to be processed is refused to be stored.
In an alternative embodiment, the process of verifying the data to be processed by the data server according to the data feature information may, but is not limited to, verifying validity of the data to be processed, for example, the data server may determine that verification is passed by determining whether the format of the metadata is consistent with the data feature information, and if yes, store the data to be processed in the storage space.
In an optional embodiment, after receiving the data to be processed sent by the terminal device and storing the data to be processed in the storage space, the method further includes:
step S1502, feedback information is returned to the management server, where the feedback information includes: whether the process information was successfully stored and stored.
In the step S1502, the data server returns feedback information to the management server after receiving the data to be processed, so as to feed back, in real time, whether the data to be processed of the terminal device is successfully stored to the management server, and a storing process of the data to be processed is stored.
The "data processing request" in embodiment 4 may be the same as or different from the "data processing request" in embodiments 2 and 3 described above. The terms "first," "second," and the like in the embodiments and the drawings herein are used for distinguishing similar objects and are not intended to be limiting in any way.
It should be still noted that, the preferred implementation manner of this embodiment may be referred to the related descriptions in embodiments 1, 2 and 3, and will not be repeated here.
Example 5
There is further provided, according to an embodiment of the present application, an embodiment of a data processing apparatus for implementing the above data processing method, and fig. 11 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application, as shown in fig. 11, including: a first receiving module 110, a first responding module 112, a second receiving module 114, and a first transmitting module 116, wherein:
a first receiving module 110, configured to receive a data processing request from a terminal device, where the data processing request is used to request processing of data to be processed; a first response module 112, configured to send a space allocation request to a data server in response to the data processing request, so that the data server allocates a storage space for the data to be processed based on the space allocation request; a second receiving module 114, configured to receive a storage space address returned by the data server; and a first sending module 116, configured to send the storage space address to the terminal device, so that the terminal device sends the data to be processed to the data server, and stores the data in the storage space.
Here, the first receiving module 110, the first responding module 112, the second receiving module 114, and the first transmitting module 116 correspond to steps S102 to S108 in embodiment 2, and the four modules are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to those disclosed in embodiment 2. It should be noted that the above-described module may be operated as a part of the apparatus in the computer terminal 10 provided in the embodiment.
It should be still noted that, the preferred implementation manner of this embodiment may be referred to the related description in embodiment 2, and will not be repeated here.
Example 6
There is further provided, according to an embodiment of the present application, another embodiment of a data processing apparatus for implementing the above data processing method, and fig. 12 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application, as shown in fig. 12, including: a second transmitting module 120, a third receiving module 122, and a third transmitting module 124, wherein:
a second sending module 120, configured to send a data processing request to a management server, so that the management server requests allocation of a storage space to the data server, where the data processing request is used to request processing of data to be processed, and the storage space is used to store the data to be processed; a third receiving module 122, configured to receive a storage space address returned by the data server and forwarded by the management server; and a third sending module 124, configured to send the data to be processed to the data server, and store the data in the storage space.
Here, the second transmitting module 120, the third receiving module 122, and the third transmitting module 124 correspond to steps S902 to S906 in embodiment 3, and the three modules are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to those disclosed in embodiment 3. It should be noted that the above-described module may be operated as a part of the apparatus in the computer terminal 10 provided in the embodiment.
It should be still noted that, the preferred implementation manner of this embodiment may be referred to the related description in embodiment 3, and will not be repeated here.
Example 7
There is further provided, according to an embodiment of the present application, an embodiment of a data processing apparatus for implementing the above-mentioned data processing method, and fig. 13 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application, as shown in fig. 13, including: a fourth receiving module 130, a second responding module 132, a returning module 134, and a fifth receiving module 136, wherein:
a fourth receiving module 130, configured to receive a space allocation request from the management server; a second response module 132, configured to allocate a storage space for data to be processed of the terminal device in response to the space allocation request; a return module 134, configured to return a storage space address to the management server, so that the management server sends the storage space address to the terminal device; and a fifth receiving module 136, configured to receive the data to be processed sent by the terminal device, and store the data to be processed in the storage space.
Here, it should be noted that the fourth receiving module 130, the second responding module 132, the returning module 134 and the fifth receiving module 136 correspond to steps S1302 to S1308 in embodiment 4, and the four modules are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to those disclosed in embodiment 4. It should be noted that the above-described module may be operated as a part of the apparatus in the computer terminal 10 provided in the embodiment.
It should be still noted that, the preferred implementation manner of this embodiment may be referred to the related description in embodiment 4, and will not be repeated here.
Example 8
Embodiments of the present application may provide a computer terminal, which may be any one of a group of computer terminals. Alternatively, in the present embodiment, the above-described computer terminal may be replaced with a terminal device such as a mobile terminal.
Alternatively, in this embodiment, the above-mentioned computer terminal may be located in at least one network device among a plurality of network devices of the computer network.
The method embodiments provided by the embodiments of the present application may be performed in a mobile terminal, a computer terminal, or similar computing device. As shown in fig. 3, the computer terminal 10 (or mobile device 10) may include one or more processors 102 (shown as 102a, 102b, … …,102 n) which may include, but are not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA, amemory 104 for storing data, and a transmission module 106 for communication functions.
The processor 102 may call the information stored in the memory and the application program through the transmission device to perform the following steps: receiving a data processing request from a terminal device, wherein the data processing request is used for requesting to process data to be processed; transmitting a space allocation request to a data server in response to the data processing request, so that the data server allocates a storage space for the data to be processed based on the space allocation request; receiving a storage space address returned by the data server; and sending the storage space address to the terminal equipment so that the terminal equipment sends the data to be processed to the data server and stores the data in the storage space.
Thememory 104 may be used to store software programs and modules of application software, such as program instructions/data storage devices corresponding to the data processing methods in the embodiments of the present application, and the processor 102 executes the software programs and modules stored in thememory 104, thereby performing various functional applications and data processing, that is, implementing the data processing methods described above.Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, thememory 104 may further include memory located remotely from the processor 102, which may be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 106 is arranged to receive or transmit data via a network. The specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module for communicating with the internet wirelessly.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the computer terminal 10.
It should be noted herein that in some alternative embodiments, the computer terminal 10 illustrated in fig. 8 described above may include hardware elements (including circuitry), software elements (including computer code stored on a computer-readable medium), or a combination of both hardware and software elements. It should be noted that fig. 8 is only one example of a specific example, and is intended to illustrate the types of components that may be present in the computer terminal 10 described above.
In this embodiment, the computer terminal may execute the program code of the following steps in the data processing method of the application program: receiving a data processing request from a terminal device, wherein the data processing request is used for requesting to process data to be processed; transmitting a space allocation request to a data server in response to the data processing request, so that the data server allocates a storage space for the data to be processed based on the space allocation request; receiving a storage space address returned by the data server; and sending the storage space address to the terminal equipment so that the terminal equipment sends the data to be processed to the data server and stores the data in the storage space.
Optionally, the above processor may further execute program code for: receiving a data processing request from a terminal device, wherein the data processing request is used for requesting to process data to be processed; transmitting a space allocation request to a data server in response to the data processing request, so that the data server allocates a storage space for the data to be processed based on the space allocation request; receiving a storage space address returned by the data server; and sending the storage space address to the terminal equipment so that the terminal equipment sends the data to be processed to the data server and stores the data in the storage space.
Optionally, the above processor may further execute program code for: and transmitting the data characteristic information to the data server in response to the data processing request, so that the data server verifies the data to be processed according to the data characteristic information after the terminal equipment transmits the data to be processed to the data server.
Optionally, the above processor may further execute program code for: receiving feedback information sent by the data server, wherein the feedback information comprises: whether the process information was successfully stored and stored.
Optionally, the above processor may further execute program code for: receiving a registration request from the terminal device, wherein the registration request includes: a terminal equipment identifier; responding to the registration request, and distributing the data server for the terminal equipment; and storing the association relation between the terminal equipment identifier and the data server identifier.
Optionally, the above processor may further execute program code for: receiving a registration request from the terminal device, wherein the registration request includes: a terminal device identifier and a data server identifier; and storing the association relation between the terminal equipment identifier and the data server identifier.
Optionally, the above processor may further execute program code for: and determining the data server according to the association relation.
Optionally, the above processor may further execute program code for: sending a data processing request to a management server so that the management server requests to allocate a storage space to the data server, wherein the data processing request is used for requesting to process data to be processed, and the storage space is used for storing the data to be processed; receiving a storage space address returned by the data server and forwarded by the management server; and sending the data to be processed to the data server and storing the data in the storage space.
Optionally, the above processor may further execute program code for: and sending a registration request to the management server so that the management server distributes the data server to the terminal device, wherein the registration request comprises: and (5) identifying the terminal equipment.
Optionally, the above processor may further execute program code for: and sending a registration request to the management server so that the management server acquires the terminal equipment identifier and the data server identifier from the registration request and stores the association relationship between the terminal equipment identifier and the data server identifier.
Optionally, the above processor may further execute program code for: receiving a space allocation request from a management server; responding to the space allocation request, and allocating storage space for the data to be processed of the terminal equipment; returning a storage space address to the management server so that the management server transmits the storage space address to the terminal device; and receiving the data to be processed sent by the terminal equipment, and storing the data to be processed into the storage space.
Optionally, the above processor may further execute program code for: receiving the data characteristic information sent by the management server; and verifying the data to be processed according to the data characteristic information.
Optionally, the above processor may further execute program code for: and returning feedback information to the management server, wherein the feedback information comprises: whether the process information was successfully stored and stored.
By adopting the embodiment of the application, a scheme for data processing is provided. Receiving a data processing request from an artificial intelligent AI device, wherein the data processing request at least carries a device identifier of the AI device; determining a cloud end identifier according to the equipment identifier, and applying for a storage space accessed by the AI equipment to a data server by adopting the cloud end identifier; the address information of the storage space is returned to the AI equipment, so that the aim of realizing data interaction between the intelligent equipment and the data server is fulfilled, and the technical problem that the data interaction processing cannot be directly realized between the terminal equipment and the data server in the prior art is solved.
It will be appreciated by those skilled in the art that the structure shown in fig. 3 is only illustrative, and the computer terminal may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a palm-phone computer, a mobile internet device (Mobile Internet Devices, MID), a PAD, etc. Fig. 3 is not limited to the structure of the electronic device. For example, the computer terminal 10 may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 3, or have a different configuration than shown in FIG. 3.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program for instructing a terminal device to execute in association with hardware, the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
Example 9
Embodiments of the present application also provide embodiments of a storage medium. Alternatively, in this embodiment, the storage medium may be used to store program codes executed by the data processing method provided in the above embodiment.
Alternatively, in this embodiment, the storage medium may be located in any one of the computer terminals in the computer terminal group in the computer network, or in any one of the mobile terminals in the mobile terminal group.
Alternatively, in the present embodiment, the storage medium is configured to store program code for performing the steps of: receiving a data processing request from a terminal device, wherein the data processing request is used for requesting to process data to be processed; transmitting a space allocation request to a data server in response to the data processing request, so that the data server allocates a storage space for the data to be processed based on the space allocation request; receiving a storage space address returned by the data server; and sending the storage space address to the terminal equipment so that the terminal equipment sends the data to be processed to the data server and stores the data in the storage space.
Alternatively, in the present embodiment, the storage medium is configured to store program code for performing the steps of: and transmitting the data characteristic information to the data server in response to the data processing request, so that the data server verifies the data to be processed according to the data characteristic information after the terminal equipment transmits the data to be processed to the data server.
Alternatively, in the present embodiment, the storage medium is configured to store program code for performing the steps of: receiving feedback information sent by the data server, wherein the feedback information comprises: whether the process information was successfully stored and stored.
Alternatively, in the present embodiment, the storage medium is configured to store program code for performing the steps of: receiving a registration request from the terminal device, wherein the registration request includes: a terminal equipment identifier; responding to the registration request, and distributing the data server for the terminal equipment; and storing the association relation between the terminal equipment identifier and the data server identifier.
Alternatively, in the present embodiment, the storage medium is configured to store program code for performing the steps of: receiving a registration request from the terminal device, wherein the registration request includes: a terminal device identifier and a data server identifier; and storing the association relation between the terminal equipment identifier and the data server identifier.
Alternatively, in the present embodiment, the storage medium is configured to store program code for performing the steps of: and determining the data server according to the association relation.
Alternatively, in the present embodiment, the storage medium is configured to store program code for performing the steps of: sending a data processing request to a management server so that the management server requests to allocate a storage space to the data server, wherein the data processing request is used for requesting to process data to be processed, and the storage space is used for storing the data to be processed; receiving a storage space address returned by the data server and forwarded by the management server; and sending the data to be processed to the data server and storing the data in the storage space.
Alternatively, in the present embodiment, the storage medium is configured to store program code for performing the steps of: and sending a registration request to the management server so that the management server distributes the data server to the terminal device, wherein the registration request comprises: and (5) identifying the terminal equipment.
Alternatively, in the present embodiment, the storage medium is configured to store program code for performing the steps of: and sending a registration request to the management server so that the management server acquires the terminal equipment identifier and the data server identifier from the registration request and stores the association relationship between the terminal equipment identifier and the data server identifier.
Alternatively, in the present embodiment, the storage medium is configured to store program code for performing the steps of: receiving a space allocation request from a management server; responding to the space allocation request, and allocating storage space for the data to be processed of the terminal equipment; returning a storage space address to the management server so that the management server transmits the storage space address to the terminal device; and receiving the data to be processed sent by the terminal equipment, and storing the data to be processed into the storage space.
Alternatively, in the present embodiment, the storage medium is configured to store program code for performing the steps of: receiving the data characteristic information sent by the management server; and verifying the data to be processed according to the data characteristic information.
Alternatively, in the present embodiment, the storage medium is configured to store program code for performing the steps of: and returning feedback information to the management server, wherein the feedback information comprises: whether the process information was successfully stored and stored.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be 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 through some interfaces, units or modules, or may be in electrical or other forms.
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 each embodiment 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 integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application and are intended to be comprehended within the scope of the present application.