A data processing method and device, and a driving generation method and device
By introducing a driver between the privacy computing platform and the algorithm components, and using standard and custom drivers to adapt to different components, the problem of time-consuming adaptation between algorithm components and the platform is solved, achieving stable connectivity and time savings.
Patent Information
- Application Number
- CN202210091582.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-26
- Publication Date
- 2026-02-24
- Estimated Expiration
- 2042-01-26
AI Technical Summary
In existing technologies, adapting algorithm components to privacy computing platforms requires a significant amount of time and resources, leading to component instability.
By introducing a driver between the privacy computing platform and the algorithm components, the connection between the two is achieved. Standard drivers and custom drivers are used to adapt components with different levels of complexity, reducing the time required for modification and adjustment.
Stable connectivity between the algorithm components and the privacy computing platform was achieved, avoiding component instability issues and saving a significant amount of adjustment and modification time.
Smart Images

Figure CN114491632B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of privacy computing, and more specifically, to a data processing method and apparatus, and a driver generation method and apparatus. Background Technology
[0002] Privacy computing refers to a set of technologies that enable data analysis and computation while protecting the data itself from being disclosed to the outside world.
[0003] In privacy-preserving computing scenarios, privacy-preserving computing platforms typically need to invoke numerous algorithm components to complete various calculations, and most of these algorithm components are provided by their developers. For these developers, to ensure the proper functioning of their algorithm components, they need to adapt them for different privacy-preserving computing platforms (in terms of platform-to-platform communication, data format, and data usage).
[0004] These modifications can lead to instability in the algorithm components, requiring extensive adjustments and testing to ensure compatibility between the algorithm components and the privacy computing platform. Therefore, in existing technologies, ensuring compatibility between the algorithm components and the privacy computing platform consumes a significant amount of time. Summary of the Invention
[0005] The purpose of this application is to provide a data processing method and apparatus, and a driver generation method and apparatus, to solve the technical problem in the prior art that a lot of time is required to ensure the compatibility between algorithm components and privacy computing platforms.
[0006] In a first aspect, embodiments of this application provide a data processing method applied to a driver, comprising: receiving data to be processed and information of a component to be invoked sent by a privacy computing platform; wherein the information of the component to be invoked includes address information of an algorithm component and information of an algorithm to be invoked; sending the data to be processed to the corresponding algorithm component according to the address information, so that the algorithm component processes the data to be processed according to the information of the algorithm to be invoked; receiving processed data returned by the algorithm component, and sending the processed data to the privacy computing platform. In the above solution, the privacy computing platform can provide driver management functions, realizing the connection between the algorithm component and the privacy computing platform by adding a driver between the privacy computing platform and the algorithm component. Since the connection between the algorithm component and the privacy computing platform is realized through the driver, there is no need to modify the algorithm component, thus avoiding instability of the algorithm component and saving a lot of adjustment time.
[0007] In an optional embodiment of this application, the method further includes: receiving basic component information periodically sent by the algorithm component; and sending the basic component information to the privacy computing platform. In the above scheme, the algorithm component can periodically inform the privacy computing platform of its information through a driver, thereby ensuring that the privacy computing platform can promptly call the appropriate algorithm component for data processing when needed.
[0008] In an optional embodiment of this application, the driver includes a standard driver and a custom driver. In the above scheme, based on the compatibility between the algorithm component and the privacy computing platform, the driver can be divided into two categories: a standard driver and a custom driver. The standard driver is used to establish connectivity between the privacy computing platform and algorithm components with high compatibility, while the custom driver is used to establish connectivity between the privacy computing platform and algorithm components with lower compatibility. Since a suitable driver can be selected to establish connectivity with the privacy computing platform for different algorithm components, a significant amount of time can be saved.
[0009] In an optional embodiment of this application, applied to the custom driver, before receiving the data to be processed and the component information to be invoked sent by the privacy computing platform, the method further includes: receiving an installation request sent by the privacy computing platform; installing according to the installation request and returning installation confirmation information to the privacy computing platform; receiving component address information sent by the privacy computing platform to connect with the algorithm component according to the component address information. In the above scheme, since the custom driver can be generated according to the actual situation of the algorithm component, the generated custom driver needs to be installed so that the installed driver can realize the connection between the algorithm component and the privacy computing platform. Since there is no need to modify the algorithm component, it will not cause instability of the algorithm component and saves a lot of adjustment time.
[0010] Secondly, embodiments of this application provide a driver generation method for generating a driver in the data processing method described in the first aspect. The method includes: obtaining standard documentation and a software development kit (SDK) corresponding to the driver; wherein the SSD includes predefined interfaces for connecting to the privacy computing platform; and generating the driver based on the SSD and the standard documentation. In the above solution, a corresponding driver can be generated according to the actual situation of the algorithm components, so that the generated driver can realize the connection between the algorithm components and the privacy computing platform. Since there is no need to modify the algorithm components, it avoids instability of the algorithm components and saves a lot of adjustment time.
[0011] Thirdly, embodiments of this application provide a data processing apparatus applied to a driver, comprising: a first receiving module, configured to receive data to be processed and information of a component to be invoked sent by a privacy computing platform; wherein the information of the component to be invoked includes address information of an algorithm component and information of an algorithm to be invoked; a first sending module, configured to send the data to be processed to the corresponding algorithm component according to the address information, so that the algorithm component processes the data to be processed according to the information of the algorithm to be invoked; and a second receiving module, configured to receive processed data returned by the algorithm component and send the processed data to the privacy computing platform. In the above solution, the privacy computing platform can provide driver management functionality, achieving connectivity between the algorithm component and the privacy computing platform by adding a driver between the privacy computing platform and the algorithm component. Since the connectivity between the algorithm component and the privacy computing platform is achieved through the driver, no further modification of the algorithm component is required, thus avoiding instability of the algorithm component and saving a significant amount of adjustment time.
[0012] In an optional embodiment of this application, the data processing device further includes: a third receiving module, configured to receive basic component information periodically sent by the algorithm component; and a second sending module, configured to send the basic component information to the privacy computing platform. In the above scheme, the algorithm component can periodically inform the privacy computing platform of its information through a driver, thereby ensuring that the privacy computing platform can promptly call the appropriate algorithm component for data processing when needed.
[0013] In an optional embodiment of this application, the driver includes a standard driver and a custom driver. In the above scheme, based on the compatibility between the algorithm component and the privacy computing platform, the driver can be divided into two categories: a standard driver and a custom driver. The standard driver is used to establish connectivity between the privacy computing platform and algorithm components with high compatibility, while the custom driver is used to establish connectivity between the privacy computing platform and algorithm components with lower compatibility. Since a suitable driver can be selected to establish connectivity with the privacy computing platform for different algorithm components, a significant amount of time can be saved.
[0014] In an optional embodiment of this application, the data processing device, applied to the custom driver, further includes: a fourth receiving module for receiving an installation request sent by the privacy computing platform; a third sending module for installing according to the installation request and returning installation confirmation information to the privacy computing platform; and a fifth receiving module for receiving component address information sent by the privacy computing platform, so as to connect with the algorithm component according to the component address information. In the above scheme, since the custom driver can be generated according to the actual situation of the algorithm component, the generated custom driver needs to be installed so that the installed driver can realize the connection between the algorithm component and the privacy computing platform. Since there is no need to modify the algorithm component, it will not cause instability of the algorithm component and saves a lot of adjustment time.
[0015] Fourthly, embodiments of this application provide a driver generation apparatus for generating a driver as described in the data processing method of the first aspect. The driver generation apparatus includes: an acquisition module for acquiring a standard document and a software development kit (SDK) corresponding to the driver; wherein the SSD includes a predefined interface for connecting to the privacy computing platform; and a generation module for generating the driver based on the SSD and the standard document. In the above solution, a corresponding driver can be generated according to the actual situation of the algorithm components, so that the generated driver can achieve communication between the algorithm components and the privacy computing platform. Since there is no need to modify the algorithm components, it avoids instability of the algorithm components and saves a significant amount of adjustment time.
[0016] Fifthly, embodiments of this application provide a computer program product, including computer program instructions, which, when read and executed by a processor, perform the method described in the first aspect.
[0017] In a sixth aspect, embodiments of this application provide an electronic device, including: a processor, a memory, and a bus; the processor and the memory communicate with each other via the bus; the memory stores computer program instructions executable by the processor, and the processor can execute the method described in the first aspect by calling the computer program instructions.
[0018] In a seventh aspect, embodiments of this application provide a computer-readable storage medium that stores computer program instructions, which, when executed by a computer, cause the computer to perform the method described in the first aspect.
[0019] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, embodiments of this application are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0020] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 A flowchart illustrating a data processing method provided in an embodiment of this application;
[0022] Figure 2 A flowchart of a driver generation method provided in an embodiment of this application;
[0023] Figure 3 A structural block diagram of a data processing apparatus provided in an embodiment of this application;
[0024] Figure 4 A structural block diagram of a driving generation device provided in an embodiment of this application;
[0025] Figure 5 This is a structural block diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0026] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.
[0027] This application provides a data processing system that may include a privacy computing platform, a driver, and an algorithm component, wherein the driver is connected to both the privacy computing platform and the algorithm component.
[0028] It is understood that before deploying the first algorithm component, the data processing system provided in this application embodiment may only include a privacy computing platform; as the algorithm components are gradually integrated, the data processing system provided in this application embodiment may also include at least one driver and at least one algorithm component.
[0029] It should be noted that in a data processing system, one driver can be connected to multiple algorithm components, and one algorithm component can also be connected to multiple drivers. This application does not impose specific limitations on this, and those skilled in the art can make appropriate adjustments according to the actual situation.
[0030] The privacy computing platform is used to aggregate the data to be processed and call the corresponding algorithm components to perform corresponding algorithm processing on the data. The driver is used to connect the privacy computing platform and the algorithm components. In other words, the privacy computing platform can interact with the algorithm components through the driver (e.g., calling the algorithm components). The algorithm components are used to perform corresponding algorithm processing on the data to be processed and return the processed results to the privacy computing platform.
[0031] In the embodiments of this application, the driver may include both standard drivers and custom drivers.
[0032] Standard drivers refer to pre-deployed drivers that do not need to be changed based on changes in algorithm components. Therefore, algorithm components that are highly compatible with privacy computing platforms can connect to the privacy computing platform through pre-deployed standard drivers.
[0033] As one implementation method, in the standard-driven model, the privacy computing platform can integrate standard driver services through the driver management service, allowing algorithm components to access the privacy computing platform using the service interfaces defined by the standard drivers. Since standard drivers can provide various communication methods and data formats, the integration difficulty for algorithm components can be reduced.
[0034] For example, when an algorithm component developer wants to integrate its algorithm component into a privacy computing platform via a standard driver, it can directly develop an adapted algorithm component based on the standard driver's standard documentation.
[0035] A custom driver is a driver that needs to be changed according to changes in the algorithm components. Therefore, for algorithm components with low compatibility with the privacy computing platform, a suitable custom driver can be generated and installed, and then the custom driver can be used to connect with the privacy computing platform.
[0036] As one implementation method, in the custom driver mode, there is no need to modify the algorithm components. Only the corresponding custom driver needs to be developed according to the driver implementation specification, and then the developed custom driver is installed in the driver management service module. In this way, there is no need to worry about the underlying logic implementation and communication; only the data interface and data format need to be implemented to complete the registration, running, and uninstallation of the algorithm components.
[0037] For example, when an algorithm component developer wants to integrate the algorithm component into a privacy computing platform through a custom driver, they can generate a suitable custom driver based on the driver implementation specifications and the software development kit (SDK) that includes predefined interfaces.
[0038] It should be noted that, in the above description, algorithm components with high compatibility with the privacy computing platform refer to those whose parameters (e.g., communication standards) are consistent with the corresponding parameters of the standard driver; while algorithm components with low compatibility with the privacy computing platform refer to those whose parameters are inconsistent with the corresponding parameters of the standard driver.
[0039] As one implementation method, the standard driver can provide corresponding standard documentation, which may include information such as the address of data exchange, data request, data response, and communication standards provided by the privacy computing platform (e.g., using Hypertext Transfer Protocol (HTTP), using sockets, local calls, etc.).
[0040] Understandably, if an algorithm component is implemented according to the aforementioned standard documentation, it can directly connect to the privacy computing platform via a standard driver. Since neither modification to the algorithm component nor the generation of additional drivers is required, it can be quickly integrated. However, if an algorithm is not implemented according to the aforementioned standard documentation, a custom driver can be developed to connect the algorithm component to the privacy computing platform. While no modification to the algorithm component is required, and although an additional driver needs to be generated, the driver generation process is very fast, allowing the algorithm component to still quickly connect to the privacy computing platform.
[0041] Therefore, based on the compatibility between algorithm components and privacy computing platforms, drivers can be divided into two categories: standard drivers and custom drivers. Since appropriate drivers can be selected to achieve connectivity between different algorithm components and the privacy computing platform, significant time can be saved.
[0042] Furthermore, the embodiments of this application do not specifically limit the specific implementation of the data processing system. For example, the data processing system may be deployed in one or more electronic devices; or, the data processing system may be deployed in a server, etc.
[0043] Based on the above data processing system, embodiments of this application also provide a data processing method applied to a driver and a driver generation method. The data processing method and the driver generation method will be described below in turn.
[0044] Please refer to Figure 1 , Figure 1 A flowchart of a data processing method provided in this application embodiment, which can be applied to a driver, and specifically may include the following:
[0045] Step S101: Receive the data to be processed and the information of the components to be invoked sent by the privacy computing platform.
[0046] Step S102: Send the data to be processed to the corresponding algorithm component according to the address information, so that the algorithm component can process the data to be processed according to the algorithm information to be called.
[0047] Step S103: Receive the processed data returned by the algorithm component and send the processed data to the privacy computing platform.
[0048] Specifically, when data needs to be processed, the privacy computing platform can call the corresponding algorithm components through the driver to perform the processing.
[0049] The privacy-preserving computing platform can send both the data to be processed and the information of the component to be invoked to the driver. The driver then forwards this data to the algorithm component. Upon receiving this data, the algorithm component processes the data and sends it back to the driver, which then forwards the processed data to the algorithm component. This achieves the goal of the privacy-preserving computing platform calling the algorithm component to process the data.
[0050] In step S101 above, the data to be processed refers to the data that needs to be processed; the information of the component to be called includes the address information of the algorithm component and the information of the algorithm to be called.
[0051] The address information of the algorithm component may include its Internet Protocol (IP) address, interface address, etc., which allows for accurate location of the corresponding algorithm component. The algorithm to be invoked information refers to the specific algorithm among at least one of the algorithms included in the algorithm component, used to process the data to be processed. This algorithm to be invoked information allows for the appropriate algorithm to be called to process the data.
[0052] In the above solution, the privacy-preserving computing platform can provide driver management functionality. By adding a driver between the privacy-preserving computing platform and the algorithm components, connectivity between the algorithm components and the privacy-preserving computing platform is achieved. Since the connectivity between the algorithm components and the privacy-preserving computing platform is achieved through the driver, no further modification of the algorithm components is required. Therefore, it avoids instability of the algorithm components and saves a significant amount of adjustment time.
[0053] Furthermore, based on the above embodiments, the data processing method provided in this application may also include the following:
[0054] Step 1) Receive basic component information periodically sent by the algorithm component.
[0055] Step 2) Send the basic information of the components to the privacy computing platform.
[0056] Specifically, the algorithm component can periodically send its basic component information to the driver, and then the driver forwards the information to the privacy computing platform. After receiving the information, the privacy computing platform can more reasonably call the appropriate algorithm component when there is data to be processed.
[0057] In one implementation, the algorithm component can proactively and periodically send basic component information. In another implementation, the privacy computing platform can send data requests to the algorithm component via a driver, and the algorithm component, upon receiving the request, sends its basic component information. Specifically, in this second implementation, the privacy computing platform can send a request to the algorithm component only once via the driver, and then the algorithm component periodically sends its basic component information; alternatively, the privacy computing platform can also periodically send requests to the algorithm component via the driver, and the algorithm component returns its basic component information upon receiving the request.
[0058] The basic information of the components provided in this application embodiment may include basic information of the algorithm component (e.g., the specific algorithm included in the algorithm component, the IP address of the algorithm component, etc.), status information of the algorithm component (e.g., the algorithm component is idle, the algorithm component is processing data, etc.). This application embodiment does not make specific limitations on this, and those skilled in the art can make appropriate adjustments according to the actual situation.
[0059] In the above scheme, the algorithm component can periodically inform the privacy computing platform of its information through the driver, thereby ensuring that the privacy computing platform can call the appropriate algorithm component for data processing in a timely manner when needed.
[0060] Furthermore, when the data processing method provided in this application embodiment is specifically applied to a custom driver, before step S101 above, the data processing method may further include the following:
[0061] Step 1), receive the installation request sent by the privacy computing platform.
[0062] Step 2) Perform the installation according to the installation request and return the installation confirmation information to the privacy computing platform.
[0063] Step 3) Receive component address information sent by the privacy computing platform to connect with the algorithm component based on the component address information.
[0064] Specifically, for custom drivers, when using them to connect algorithm components with the privacy computing platform, the custom driver needs to be installed first.
[0065] The privacy-preserving computing platform sends an installation request to the custom driver. Upon receiving the request, the custom driver can then proceed with the installation. Once installed, the custom driver sends a confirmation message back to the privacy-preserving computing platform, informing them that the installation is complete.
[0066] After receiving the installation confirmation information, the privacy computing platform can send the component address information of the algorithm component corresponding to the custom driver to the custom driver. The custom driver can then interact with the algorithm component based on the aforementioned component address information.
[0067] As one approach, the code of a custom driver can be reviewed before installation to avoid security issues. As another approach, after installation, the custom driver can be authenticated, authorized, and reviewed to further improve security and the reliability of its calls.
[0068] In the above scheme, since the custom driver can be generated based on the actual situation of the algorithm components, it needs to be installed to enable the connection between the algorithm components and the privacy computing platform. Because no further modification to the algorithm components is required, this avoids instability and saves significant adjustment time.
[0069] Please refer to Figure 2 , Figure 2 This is a flowchart illustrating a driver generation method provided in an embodiment of this application. This driver generation method is used to generate the driver for the data processing method described in the above embodiments. The driver generation method may include the following:
[0070] Step S201: Obtain the standard documentation and the software development kit corresponding to the driver.
[0071] Step S202: Driver generation based on software development kit and standard documentation.
[0072] Specifically, for an algorithm component developer, when they want to integrate the algorithm component into a privacy computing platform through a custom driver, they can generate a suitable custom driver based on the driver implementation specifications and software development kits recorded in the standard documentation.
[0073] The software development kit may include predefined interfaces for connecting to a privacy computing platform.
[0074] In the above solution, corresponding drivers can be generated based on the actual situation of the algorithm components, enabling the communication between the algorithm components and the privacy computing platform. Since no further modification to the algorithm components is required, instability is avoided, and significant adjustment time is saved.
[0075] Please refer to Figure 3 , Figure 3 This application provides a structural block diagram of a data processing device 300, which is applied to a driver and may include: a first receiving module 301, configured to receive data to be processed and information of a component to be invoked sent by a privacy computing platform; wherein the information of the component to be invoked includes address information of an algorithm component and information of an algorithm to be invoked; a first sending module 302, configured to send the data to be processed to the corresponding algorithm component according to the address information, so that the algorithm component processes the data to be processed according to the information of the algorithm to be invoked; and a second receiving module 303, configured to receive the processed data returned by the algorithm component and send the processed data to the privacy computing platform.
[0076] In this embodiment, the privacy computing platform can provide driver management functionality. By adding a driver between the privacy computing platform and the algorithm component, connectivity between the algorithm component and the privacy computing platform is achieved. Since connectivity between the algorithm component and the privacy computing platform is achieved through the driver, no further modification of the algorithm component is required. Therefore, it avoids instability of the algorithm component and saves a significant amount of adjustment time.
[0077] Furthermore, the data processing device 300 also includes: a third receiving module for receiving basic component information periodically sent by the algorithm component; and a second sending module for sending the basic component information to the privacy computing platform.
[0078] In this embodiment, the algorithm component can periodically inform the privacy computing platform of its information through the driver, thereby ensuring that the privacy computing platform can call the appropriate algorithm component for data processing in a timely manner when needed.
[0079] Furthermore, the drivers include both standard drivers and custom drivers.
[0080] In this embodiment, based on the compatibility between the algorithm components and the privacy computing platform, the drivers can be divided into two categories: standard drivers and custom drivers. Standard drivers are used to establish connectivity between the privacy computing platform and algorithm components with high compatibility, while custom drivers are used to establish connectivity between the privacy computing platform and algorithm components with lower compatibility. Since appropriate drivers can be selected to achieve connectivity with the privacy computing platform for different algorithm components, significant time can be saved.
[0081] Furthermore, the data processing device 300 applied to the custom driver may also include: a fourth receiving module for receiving an installation request sent by the privacy computing platform; a third sending module for performing installation according to the installation request and returning installation confirmation information to the privacy computing platform; and a fifth receiving module for receiving component address information sent by the privacy computing platform, so as to connect with the algorithm component according to the component address information.
[0082] In this embodiment, since the custom driver can be generated based on the actual situation of the algorithm components, it needs to be installed to enable the connection between the algorithm components and the privacy computing platform. Because no further modification to the algorithm components is required, this avoids instability and saves significant adjustment time.
[0083] Please refer to Figure 4 , Figure 4 This is a structural block diagram of a driver generation device provided in an embodiment of this application. The driver generation device 400 can be used to generate the driver in the data processing method described in the above embodiment. The driver generation device 400 may include: an acquisition module 401, used to acquire a standard document and a software development kit corresponding to the driver; wherein the software development kit includes a predefined interface connected to the privacy computing platform; and a generation module 402, used to generate the driver based on the software development kit and the standard document.
[0084] In this embodiment, a corresponding driver can be generated based on the actual situation of the algorithm component, enabling the generated driver to connect the algorithm component with the privacy computing platform. Since no further modification to the algorithm component is required, it avoids instability and saves significant adjustment time.
[0085] Please refer to Figure 5 , Figure 5 This application provides a structural block diagram of an electronic device 500, which includes at least one processor 501, at least one communication interface 502, at least one memory 503, and at least one communication bus 504. The communication bus 504 enables direct communication between these components, the communication interface 502 facilitates signaling or data communication with other node devices, and the memory 503 stores machine-readable instructions executable by the processor 501. When the electronic device 500 is running, the processor 501 communicates with the memory 503 via the communication bus 504. When the machine-readable instructions are invoked by the processor 501, the aforementioned data processing method or driver generation method is executed.
[0086] For example, the processor 501 in this embodiment of the application can read a computer program from the memory 503 via the communication bus 504 and execute the computer program to implement the following method: Step S101: Receive the data to be processed and the information of the component to be called sent by the privacy computing platform. Step S102: Send the data to be processed to the corresponding algorithm component according to the address information, so that the algorithm component processes the data to be processed according to the algorithm information to be called. Step S103: Receive the processed data returned by the algorithm component and send the processed data to the privacy computing platform. Alternatively, the following method can also be implemented: Step S201: Obtain the standard document and the software development kit corresponding to the driver. Step S202: Generate the driver based on the software development kit and the standard document.
[0087] The processor 501 comprises one or more, and can be an integrated circuit chip with signal processing capabilities. The processor 501 can be a general-purpose processor, including a Central Processing Unit (CPU), a Microcontroller Unit (MCU), a Network Processor (NP), or other conventional processors; it can also be a special-purpose processor, including a Neural-network Processing Unit (NPU), a Graphics Processing Unit (GPU), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. Furthermore, when there are multiple processors 501, some can be general-purpose processors, and others can be special-purpose processors.
[0088] The memory 503 includes one or more, which may be, but is not limited to, random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), etc.
[0089] Understandable. Figure 5 The structure shown is for illustrative purposes only; the electronic device 500 may also include components that are more advanced than those shown. Figure 5 The more or fewer components shown, or having the same Figure 5 The different configurations shown. Figure 5 The components shown can be implemented using hardware, software, or a combination thereof. In the embodiments of this application, electronic device 500 can be, but is not limited to, physical devices such as desktop computers, laptops, smartphones, smart wearable devices, and in-vehicle devices, or virtual devices such as virtual machines. Furthermore, electronic device 500 is not necessarily a single device; it can be a combination of multiple devices, such as a server cluster, etc.
[0090] This application also provides a computer program product, including a computer program stored on a computer-readable storage medium. The computer program includes computer program instructions. When the computer program instructions are executed by a computer, the computer can perform the steps of the data processing method or driver generation method described in the above embodiments, such as: receiving data to be processed and information of a component to be invoked sent by a privacy computing platform; wherein, the information of the component to be invoked includes address information of an algorithm component and information of an algorithm to be invoked; sending the data to be processed to the corresponding algorithm component according to the address information, so that the algorithm component processes the data to be processed according to the information of the algorithm to be invoked; receiving the processed data returned by the algorithm component, and sending the processed data to the privacy computing platform.
[0091] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some communication interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.
[0092] Furthermore, the units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0093] Furthermore, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0094] It should be noted that if the function is implemented as a software module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0095] In this document, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, without necessarily requiring or implying any such actual relationship or order between these entities or operations.
[0096] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A data processing method, characterized in that, Applied to drivers, including: Receive data to be processed and information on components to be invoked from a privacy computing platform; wherein, the information on components to be invoked includes the address information of the algorithm component and the information on the algorithm to be invoked; The data to be processed is sent to the corresponding algorithm component according to the address information, so that the algorithm component processes the data to be processed according to the algorithm to be invoked information; Receive the processed data returned by the algorithm component and send the processed data to the privacy computing platform; The driver includes a standard driver and a custom driver. The custom driver is generated according to the driver implementation specification and a software development kit (SDK) including predefined interfaces. The standard driver is used to enable communication between the privacy computing platform and highly adaptable algorithm components, while the custom driver is used to enable communication between the privacy computing platform and less adaptable algorithm components. The standard driver provides standard documentation, which includes data exchange addresses, data requests, data responses, and the communication standards and socket usage provided by the privacy computing platform. The custom driver is generated according to the driver implementation specification and a SSD including predefined interfaces.
2. The data processing method according to claim 1, characterized in that, The method further includes: Receive basic component information periodically sent by the algorithm component; The basic information of the components is sent to the privacy computing platform.
3. The data processing method according to claim 1, characterized in that, Applied to the custom driver, before receiving the data to be processed and the information of the components to be invoked sent by the privacy computing platform, the method further includes: Receive the installation request sent by the privacy computing platform; The installation is performed according to the installation request, and installation confirmation information is returned to the privacy computing platform. Receive component address information sent by the privacy computing platform, and connect to the algorithm component according to the component address information.
4. A method for driving generation, characterized in that, Used to generate a driver for the data processing method as described in any one of claims 1-3, the method comprising: Obtain standard documentation and a software development kit (SDK) corresponding to the driver; wherein the SSD includes predefined interfaces for connecting to the privacy computing platform; The driver is generated based on the software development kit and the standard documentation.
5. A data processing apparatus, characterized in that, Applied to drivers, including: The first receiving module is used to receive data to be processed and information of components to be invoked sent by the privacy computing platform; wherein, the information of components to be invoked includes the address information of the algorithm component and the information of the algorithm to be invoked; The first sending module is used to send the data to be processed to the corresponding algorithm component according to the address information, so that the algorithm component processes the data to be processed according to the algorithm to be called information; The second receiving module is used to receive the processed data returned by the algorithm component and send the processed data to the privacy computing platform; The driver includes a standard driver and a custom driver. The custom driver is generated according to the driver implementation specification and a software development kit (SDK) including predefined interfaces. The standard driver is used to enable communication between the privacy computing platform and highly adaptable algorithm components, while the custom driver is used to enable communication between the privacy computing platform and less adaptable algorithm components. The standard driver provides standard documentation, which includes data exchange addresses, data requests, data responses, and the communication standards and socket usage provided by the privacy computing platform. The custom driver is generated according to the driver implementation specification and a SSD including predefined interfaces.
6. A driving generation device, characterized in that, The apparatus for generating a driver in the data processing method as described in any one of claims 1-3 includes: An acquisition module is used to acquire standard documents and a software development kit (SDK) corresponding to the driver; wherein the SSD includes a predefined interface for connecting to the privacy computing platform; A generation module is used to generate the driver based on the software development kit and the standard documentation.
7. A computer program product, characterized in that, It includes computer program instructions, which, when read and executed by a processor, perform the method as described in any one of claims 1-4.
8. An electronic device, characterized in that, include: Processor, memory, and bus; The processor and the memory communicate with each other via the bus; The memory stores computer program instructions that can be executed by the processor, and the processor can execute the method as described in any one of claims 1-4 by invoking the computer program instructions.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions that, when executed by a computer, cause the computer to perform the method as described in any one of claims 1-4.
Citation Information
Patent Citations
Data communication method and data communication device
CN101763329A
Method, device and system for testing USB key and medium
CN110457170A