Computing power resource providing method and device, electronic equipment and storage medium

By utilizing the UPnP protocol within a local area network to share computing resources, the problem of insufficient computing resources on terminal devices is solved, costs and latency are reduced, application experience is improved, and data security is ensured.

CN121125707APending Publication Date: 2025-12-12CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411946358.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-27
Publication Date
2025-12-12

AI Technical Summary

Technical Problem

In existing technologies, insufficient computing power resources of terminal devices lead to high costs for sharing computing power resources and long business processing latency. In particular, network bandwidth consumption is severe in end-to-cloud collaborative solutions, which affects the performance of latency-sensitive services within the local area network.

Method used

The UPnP protocol is used to achieve computing power resource sharing within the local area network. The UPnP protocol device pulls the computing power service installation package from the algorithm store node, installs the computing power service program, and uses local computing power resources to process data. Data is transmitted within the local area network, avoiding transmission between the end and the cloud.

Benefits of technology

It reduced network bandwidth costs, decreased business processing latency, improved application experience, and physically ensured data security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121125707A_ABST
    Figure CN121125707A_ABST
Patent Text Reader

Abstract

The invention provides a computing power resource providing method and device, electronic equipment and a storage medium, and belongs to the technical field of communication, and the method comprises the steps that first UPnP protocol equipment pulls a corresponding computing power service installation package from an algorithm mall node after receiving a first control message sent by a UPnP protocol control point, using the computing power service installation package to complete the installation of the computing power service program; after a second control message sent by the UPnP protocol control point is received, pulling data to be processed from the UPnP protocol control point through the UPnP protocol; after a third control message sent by the UPnP protocol control point is received, configuring the to-be-processed data as input data of a computing power service program, and configuring a data return mode; and the computing power service program is operated, and after a data processing result is obtained, the data processing result is sent to the UPnP protocol control point in a data return mode. According to the scheme, the network broadband cost can be reduced, and the application network time delay is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and in particular to a method, apparatus, electronic device, and storage medium for providing computing resources. Background Technology

[0002] With the rapid development of global artificial intelligence technology, an increasing number of AI applications are emerging, leading to a surge in demand for computing resources. For example, cameras require computing power to support intelligent recognition, various devices need computing power to implement AI voice assistant functions, and as large AI models are increasingly used in various applications, new AI businesses are placing a growing demand on computing resources. However, some terminals, such as cameras and voice remote controls, have very limited computing power, and some older audio devices also lack sufficient resources. Using only the terminal's own computing power is insufficient to provide adequate computing power for AI businesses. Therefore, how to provide computing power support for these terminals has become a key concern for the industry.

[0003] Currently, the most common solution in the industry to address the problem of insufficient computing power resources on terminals is edge-cloud collaboration. Figure 1 This is a schematic diagram of an existing mid-range cloud collaborative computing power sharing solution, such as... Figure 1 As shown, data generated by the terminal (such as adapters, voice, and images) is uploaded to the cloud. After processing in the cloud, the results are sent to the user to support AI and other computing-intensive services. However, this method requires a large amount of AI data to be uploaded from the terminal to the cloud, which consumes a significant amount of network bandwidth and results in high costs for sharing computing resources. Furthermore, the long network transmission distance between the terminal and the cloud, after processing, increases processing latency and affects the application performance of some latency-sensitive services within the local area network.

[0004] Therefore, how to reduce the cost of sharing computing resources and reduce business processing latency has become an urgent technical problem to be solved. Summary of the Invention

[0005] This invention provides a method, apparatus, electronic device, and storage medium for providing computing resources, in order to solve the shortcomings of existing technologies such as high cost of sharing computing resources and long business processing latency.

[0006] This invention provides a method for providing computing power resources, comprising the following steps: After receiving the first control message sent by the UPnP protocol control point, the first UPnP protocol device pulls the corresponding computing power service installation package from the algorithm marketplace node and uses the computing power service installation package to complete the installation of the computing power service program. The first UPnP protocol device is a device that provides computing power resources, the UPnP protocol control point is a business terminal device that requires computing power resources, the first UPnP protocol device and the UPnP protocol control point are located in the same local area network, the algorithm marketplace node is a node in the algorithm marketplace, the algorithm marketplace is a system used to provide computing power service installation packages corresponding to various computing power service models, and the first control message is used to indicate the request information for obtaining and installing the computing power service program; After receiving the second control message sent by the UPnP protocol control point, the first UPnP protocol device retrieves the data to be processed from the UPnP protocol control point via the UPnP protocol. The second control message is a request message used to instruct the first UPnP protocol device to obtain the data to be processed. After receiving the third control message sent by the UPnP protocol control point, the data to be processed is configured as the input data of the computing power service program, and the data return method is configured based on the third control message. The third control message is a request message used to instruct the first UPnP protocol device to perform data processing. The computing power service program is run using the computing power resources of the local machine. After obtaining the data processing results, the data processing results are sent to the UPnP protocol control point using the data return method.

[0007] According to a computing power resource provision method provided by the present invention, after running the computing power service program using the local computing power resources and obtaining the data processing result, the method further includes: The first UPnP protocol device periodically reports the resource consumption, time, and computing power service status of running the computing power service program to the computing power management platform, so that the computing power management platform can perform billing based on the resource consumption, time, and computing power service status.

[0008] According to a method for providing computing resources provided by the present invention, the UPnP protocol includes the following service types: The provision of computing resources refers to the service of providing computing resources, which are hardware devices used to perform computing tasks. The term "computing power service provider" refers to a service used to provide computing power services, which is a computing power service model used to implement computing power business functions.

[0009] According to a method for providing computing resources provided by the present invention, the computing resources provide a service type and the service description file of the computing services provide a service type includes the following first parameters: instance name, computing resource requirement size, maximum service tolerance latency, data type to be processed by the computing service, and speed required for data processing; wherein, the first parameter is a parameter received by the second UPnP protocol device from the UPnP protocol control point.

[0010] According to a method for providing computing power resources provided by the present invention, the service description file of the computing power resources providing service type and the computing power service providing service type includes the following second parameters: computing power host URL, algorithm marketplace URL, and algorithm model name; wherein, the second parameter is a parameter returned by the second UPnP protocol device to the UPnP protocol control point, the computing power host URL is the URL of the UPnP protocol device that provides computing power resources to the UPnP protocol control point, and the algorithm marketplace URL is the URL that provides the computing power service installation package to the UPnP protocol control point.

[0011] According to a computing resource provision method provided by the present invention, the first UPnP protocol device and the algorithm marketplace node are determined based on the following method: The UPnP protocol control point sends a first HTTP request message to the second UPnP protocol device. The first HTTP request message includes first information and second information. The first information is detailed information about the service type provided by the computing power service, and the second information is detailed information about the service type provided by the computing power resource. The second UPnP protocol device sends a second HTTP request to the computing power management platform, the second HTTP request containing the first information and the second information; The computing power management platform sends a third HTTP request to the algorithm marketplace, and the third HTTP request includes the first information. The algorithm marketplace returns third information to the computing power management platform, and the third information is the response information corresponding to the first information. The computing power management platform returns the third and fourth information to the second UPnP protocol device, wherein the fourth information is the response information corresponding to the second information; The second UPnP protocol device returns the third information and the fourth information to the UPnP protocol control point; The UPnP protocol control point determines the algorithm marketplace node and the first UPnP protocol device based on the third and fourth information.

[0012] The present invention also provides a computing power resource providing device, comprising the following modules: The service acquisition module is used to: after receiving a first control message sent by the UPnP protocol control point, retrieve the corresponding computing power service installation package from the algorithm marketplace node, and use the computing power service installation package to complete the installation of the computing power service program. The first UPnP protocol device is a device that provides computing power resources, the UPnP protocol control point is a business terminal device that requires computing power resources, the first UPnP protocol device and the UPnP protocol control point are located in the same local area network, the algorithm marketplace node is a node in the algorithm marketplace, and the algorithm marketplace is a system used to provide computing power service installation packages corresponding to various computing power service models. The first control message is used to indicate the request information for acquiring and installing the computing power service program. The data acquisition module is used to: after receiving a second control message sent by the UPnP protocol control point, retrieve data to be processed from the UPnP protocol control point via the UPnP protocol. The second control message is a request message used to instruct the first UPnP protocol device to retrieve the data to be processed. The data configuration module is used to: after receiving a third control message sent by the UPnP protocol control point, configure the data to be processed as the input data of the computing power service program, and configure the data return method based on the third control message, wherein the third control message is a request message used to instruct the first UPnP protocol device to perform data processing; The data sending module is used to: run the computing power service program using the local computing power resources, obtain the data processing results, and then send the data processing results to the UPnP protocol control point using the data return method.

[0013] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the computing resource provision method as described above.

[0014] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the computing resource provision method as described above.

[0015] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the computing resource provision method as described above.

[0016] The present invention provides a method, apparatus, electronic device, and storage medium for providing computing power resources. After receiving a first control message from a UPnP protocol control point, a first UPnP protocol device retrieves a corresponding computing power service installation package from an algorithm marketplace node and uses the installation package to install the computing power service program. The first UPnP protocol device is a device that provides computing power resources, and the UPnP protocol control point is a business terminal device that requires computing power resources. The first UPnP protocol device and the UPnP protocol control point are located in the same local area network. The algorithm marketplace node is a node in an algorithm marketplace, which is a system for providing computing power service installation packages corresponding to various computing power service models. The first control message is used to indicate a request to obtain and install the computing power service program. The system retrieves data to be processed from the UPnP protocol control point after receiving a second control message. The second control message is a request message instructing the first UPnP protocol device to obtain the data to be processed. After receiving a third control message from the UPnP protocol control point, the system configures the data to be processed as input data for the computing power service program and configures a data return method based on the third control message. The third control message is a request message instructing the first UPnP protocol device to perform data processing. The system runs the computing power service program using its own computing power resources, obtains the data processing result, and then sends the data processing result to the UPnP protocol control point using the data return method. This solution uses the UPnP standard protocol to provide computing power-related services to business terminals within the same local area network (LAN) via UPnP protocol devices. Access to computing power resources and services is convenient; even hardware devices lacking computing power resources can quickly implement computing power-based services based on the standard protocol, through devices providing computing power resources and an algorithm marketplace. The UPnP protocol devices providing computing power resources and the UPnP protocol control points requiring computing power resources are located within the same LAN. This ensures that when sharing computing power resources, the data to be processed is transmitted within the LAN, rather than between the end-to-cloud, significantly reducing network bandwidth costs, lowering application network latency, and improving application experience. Furthermore, the data to be processed is stored only within the LAN, physically guaranteeing data security. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0018] Figure 1This is a schematic diagram of an existing mid-range cloud collaborative computing power sharing solution; Figure 2 This is one of the flowcharts illustrating the computing power resource provision method provided by the present invention; Figure 3 This is the second flowchart illustrating the computing power resource provision method provided by the present invention; Figure 4 This is a schematic diagram of the architecture of the computing power resources and service provision system provided by the present invention; Figure 5 This is an exemplary diagram illustrating the XML definition of the service request action and some parameters provided by the present invention; Figure 6 This is a flowchart illustrating the description phase of the UPnP protocol extended computing resources and services provision provided by this invention. Figure 7 This is a schematic diagram of the computing power resource providing device provided by the present invention.

[0019] Figure 8 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation

[0020] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0021] It should be noted that in the description of the embodiments of the present invention, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element. The terms "upper," "lower," etc., indicating orientation or positional relationships based on the orientation or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the present invention. Unless otherwise expressly specified and limited, the terms "installed," "connected," and "linked" should be interpreted broadly, for example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two elements. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.

[0022] The terms "first," "second," etc., used in this invention are used to distinguish similar objects, not to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class, without limiting the number of objects; for example, a first object can be one or more. Furthermore, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0023] The following is combined Figures 2-8 This invention describes the computing power resource provision method, apparatus, electronic device, and storage medium provided in embodiments of the present invention.

[0024] Figure 2 This is one of the flowcharts illustrating the computing power resource provision method provided by the present invention; Figure 3 This is the second flowchart illustrating the computing power resource provision method provided by the present invention; like Figure 2 and Figure 3 As shown, the method includes the following: S210, after receiving the first control message sent by the UPnP protocol control point, the first UPnP protocol device pulls the corresponding computing power service installation package from the algorithm marketplace node and uses the computing power service installation package to complete the installation of the computing power service program. S220: After receiving the second control message sent by the UPnP protocol control point, the system retrieves the data to be processed from the UPnP protocol control point via the UPnP protocol. S230, after receiving the third control message sent by the UPnP protocol control point, configure the data to be processed as the input data of the computing power service program, and configure the data return method based on the third control message; S240: Using the computing resources of the local machine to run the computing service program, after obtaining the data processing result, the data processing result is sent to the UPnP protocol control point using the data return method.

[0025] In S210, the first UPnP protocol device is a device that provides computing power resources, the UPnP protocol control point is a business terminal device that requires computing power resources, the first UPnP protocol device and the UPnP protocol control point are located in the same local area network, the algorithm marketplace node is a node in the algorithm marketplace, the algorithm marketplace is a system used to provide computing power service installation packages corresponding to various computing power service models, and the first control message is used to indicate the request information for the acquisition and installation of computing power service programs.

[0026] Figure 4 This is a schematic diagram of the architecture of the computing power resources and service provision system provided by the present invention, such as... Figure 4 As shown, the computing power resource and service provision system includes business terminals, computing power hosts, computing power management platform, algorithm marketplace, and computing power resource pool: Business terminals are terminal devices such as cameras and speakers that require computing resources. Due to insufficient computing resources in their own hardware, they need to send the generated data to devices with computing resources for processing. A computing power host is a device with abundant computing resources (storage, CPU, GPU, NPU, etc.). Its surplus computing resources can be provided to other business terminals. It is a node that provides computing resources within a local area network. The computing power management platform is a platform that manages all computing power host devices and connects to the algorithm marketplace. The algorithm marketplace is a system that provides AI and computing power service models. It can provide various computing power service models to business terminals, such as license plate recognition, pet recognition, and text extraction based on video and images. The computing power resource pool includes the edge computing power resource pool and the central computing power resource pool. It is a computing power resource pool managed by the computing power management platform, which provides computing power resources for computing power services at different network levels (edge ​​and center) to meet different computing power resource needs.

[0027] It should be noted that, Figure 4 A schematic diagram of an example computing power resource and service provision system architecture is shown. For descriptive purposes, the system architecture depicted is merely an example of a suitable environment and is not intended to limit the scope or functionality of the invention. Nor should it be construed as limiting the invention to any specific type of system. Figure 1 Any component shown or a combination thereof has any dependencies or requirements.

[0028] The execution subject of the computing power resource provision method provided in this embodiment of the invention, the first UPnP protocol device, is the computing power host, which can be a server or computer device, such as a desktop computer or a laptop computer.

[0029] In this embodiment of the invention, UPnP (Universal Plug and Play) is a network protocol that simplifies the interconnection of devices in a network, enabling seamless collaboration between devices of different brands and types. The UPnP protocol control point is a component in the network responsible for discovering, controlling, and monitoring other UPnP protocol devices. It can send control commands to UPnP protocol devices via SOAP (Simple Object Access Protocol), and the UPnP protocol devices execute corresponding operations and return results. UPnP protocol devices are physical or virtual devices that provide specific services in the network; in this case, they are physical or virtual devices that provide computing resources.

[0030] In S210, the first control message is a request message used to instruct the acquisition and installation of the computing power service program. Based on the first control message sent by the UPnP protocol control point, the first UPnP protocol device pulls the corresponding computing power service installation package from the algorithm marketplace node and installs it. Specifically: like Figure 3 As shown, solid lines represent request messages, and dashed lines represent response messages. After the UPnP protocol control point synchronizes the required computing power service installation package to the first UPnP protocol device based on the SOAP protocol, the first UPnP protocol device requests to pull the computing power service installation package from the UPnP protocol control point. After receiving the response confirmation message from the UPnP protocol control point, the first UPnP protocol device obtains the computing power service installation package from the algorithm store. After receiving the control message sent by the UPnP protocol control point to install the computing power service installation package, the first UPnP protocol device installs the computing power service installation package, completing the installation of the corresponding computing power service program.

[0031] In S220, the second control message is a request message used to instruct the first UPnP protocol device to obtain data to be processed. This data needs to be processed by the computing power host. The first UPnP protocol device retrieves the data to be processed from the UPnP protocol control point based on the second control message sent by the UPnP protocol control point. Specifically: like Figure 3 As shown, after the UPnP protocol control point instructs the first UPnP protocol device to obtain the data to be processed based on the SOAP protocol, the first UPnP protocol device requests the UPnP protocol control point to pull the data to be processed and obtains the data to be processed returned by the UPnP protocol control point, such as the synchronous video stream of the camera control node and the synchronous audio stream of the speaker control node.

[0032] In S230, the third control message is a request message used to instruct the first UPnP protocol device to perform data processing. After receiving the third control message sent by the UPnP protocol control point, the first UPnP protocol device configures the input data of the computing power service program to be synchronous pending data and configures the data return method (i.e., the processing result notification method).

[0033] In S240, the first UPnP protocol device uses its local computing resources to run a computing service program, process data, and report the data processing results according to the configuration method, thus completing the provision of computing resources and services for the UPnP protocol control point business.

[0034] The computing power resource provision method provided in this embodiment of the invention involves a first UPnP protocol device receiving a first control message from a UPnP protocol control point, then retrieving a corresponding computing power service installation package from an algorithm marketplace node, and using the installation package to install a computing power service program. The first UPnP protocol device is a device providing computing power resources, the UPnP protocol control point is a business terminal device requiring computing power resources, the first UPnP protocol device and the UPnP protocol control point are located in the same local area network, and the algorithm marketplace node is a node in an algorithm marketplace, which is a system for providing computing power service installation packages corresponding to various computing power service models. The first control message is used to indicate the request information for obtaining and installing the computing power service program. Upon receiving the second control message from the UPnP protocol control point, the device retrieves the data to be processed from the UPnP protocol control point via the UPnP protocol. The second control message is a request message instructing the first UPnP protocol device to obtain the data to be processed. Upon receiving the third control message from the UPnP protocol control point, the device configures the data to be processed as the input data for the computing power service program and configures the data return method based on the third control message. The third control message is a request message instructing the first UPnP protocol device to perform data processing. The device runs the computing power service program using its own computing power resources, obtains the data processing result, and then sends the data processing result to the UPnP protocol control point using the data return method. This solution uses the UPnP standard protocol to provide computing power-related services to business terminals within the same local area network (LAN) via UPnP protocol devices. Access to computing power resources and services is convenient; even hardware devices lacking computing power resources can quickly implement computing power-based services based on the standard protocol, through devices providing computing power resources and an algorithm marketplace. The UPnP protocol devices providing computing power resources and the UPnP protocol control points requiring computing power resources are located within the same LAN. This ensures that when sharing computing power resources, the data to be processed is transmitted within the LAN, rather than between the end-to-cloud, significantly reducing network bandwidth costs, lowering application network latency, and improving application experience. Furthermore, the data to be processed is stored only within the LAN, physically guaranteeing data security.

[0035] In an optional embodiment, after running the computing service program using the local computing resources and obtaining the data processing results, the method further includes: The first UPnP protocol device periodically reports the resource consumption, time, and computing power service status of running the computing power service program to the computing power management platform, so that the computing power management platform can perform billing based on the resource consumption, time, and computing power service status.

[0036] like Figure 3As shown, the computing power service program running on the first UPnP protocol device periodically reports the resource consumption, running time, and computing power service status to the computing power management platform, thereby billing the services that provide computing power resources and services.

[0037] The computing power resource provision method provided in this embodiment of the invention periodically reports the operation status of the computing power service program, enabling the computing power management platform to bill based on the operation status of the computing power service program and generate a computing power resource provision service bill.

[0038] Based on any of the above embodiments, the UPnP protocol includes the following service types: The provision of computing resources refers to the service of providing computing resources, which are hardware devices used to perform computing tasks. The term "computing power service provider" refers to a service used to provide computing power services, which is a computing power service model used to implement computing power business functions.

[0039] Specifically, the SSDP protocol is one of the core protocols constituting the UPnP protocol. The SSDP protocol uses unicast and multicast messages to achieve automatic discovery and announcement between devices and services. Under the SSDP protocol framework, the service type is usually identified by a field called "USN" (Unique Service Name). The USN field contains basic information about the device and the service type, helping the discovery requester identify the specific service provided by the responder.

[0040] In this embodiment of the invention, based on the UPnP protocol, the following two service types are extended within the SSDP (Simple Service Discovery Protocol) framework: "Computing resource provision": This refers to the service of providing computing resources (CPU / GPU / NPU, etc.). UPnP protocol devices (computing host) provide computing resource services, and UPnP protocol control points obtain this service. "Computing Power Service Provider": This indicates the provision of computing power services, such as facial recognition, license plate recognition, and voice interaction computing power service model programs. After obtaining the computing power service installation package, the corresponding computing power business functions can be implemented. The specific extended UPnP service type definitions are shown in Table 1 below.

[0041] Table 1 UPnP Service Type Definition Table

[0042] It should be noted that the embodiments of the present invention extend the new service types related to computing power resources and service provision, including two types of services: "computing power resource provision" and "computing power service provision". However, it is not limited to the two types of computing power service related above. It may also include other extended services related to computing power services. The extended services define corresponding control action list interfaces and related parameters, and can be extended in combination with business needs.

[0043] The computing resource provision method provided in this embodiment of the invention is based on the UPnP protocol and extends the "computing resource provision" service type and the "computing service provision" service type within the SSDP protocol framework, providing a basis for providing computing resources and services using the UPnP protocol.

[0044] In an optional embodiment, the service description file for the service type provided by the computing power resources and the service type provided by the computing power services includes the following first parameters: instance name, computing power resource requirement, maximum service tolerance latency, data type to be processed by the computing power service, and the speed required to process the data; wherein, the first parameter is a parameter received by the second UPnP protocol device from the UPnP protocol control point.

[0045] Specifically, in the UPnP framework, each service provided has a detailed description. The detailed description is defined in the standard XML format. The XML file is called the service description file. The description file describes in detail the interface provided by the service and related parameters.

[0046] In this embodiment of the invention, for the newly extended "computing power resource provision" and "computing power service provision" services, the service description files corresponding to the extended services describe the corresponding control interfaces and related parameters. Subsequently, the UPnP protocol control point and the UPnP protocol device interact through the UPnP framework based on the action list and parameters. The related parameters include the following first parameter (parameters sent from the UPnP protocol control point to the second UPnP protocol device): The instance name ensures that each service instance has a unique identifier in the network, enabling accurate identification and control of specific instances; The size of computing power resource requirements, that is, the size of computing power required to process business, is measured in GOPS (GigaOperations Per Second). Maximum tolerable latency for the business: For businesses with latency requirements, fill in the latency requirement, which is the maximum latency that can be tolerated, in ms (milliseconds). The computing power service needs to process data types, such as optional video, voice, pictures, and text data. The speed required to process data is expressed as the amount of video / image data that needs to be processed per second, measured in gigabytes (G).

[0047] It is understandable that the second UPnP protocol device can be any computing host device within the local area network. The UPnP protocol control point requests computing resources from the computing power management platform through the second UPnP protocol device, and also requests computing services from the algorithm marketplace through the second UPnP protocol device. After receiving a response with detailed information on computing services and resources, the first UPnP protocol device is identified, and its computing resources are used for data processing. Here, the second UPnP protocol device can be the same device as the first UPnP protocol device, or it can be a different device.

[0048] The computing resource provision method provided in this embodiment of the invention extends the relevant parameters in the service description files corresponding to the "computing resource provision" and "computing service provision" services, providing a basic communication standard for UPnP protocol control points to obtain computing resources and services.

[0049] In an optional embodiment, the service description file for the computing power resources providing the service type and the computing power service providing the service type includes the following second parameters: computing power host URL, algorithm marketplace URL, and algorithm model name; wherein, the second parameter is a parameter returned by the second UPnP protocol device to the UPnP protocol control point, the computing power host URL is the URL of the UPnP protocol device that provides computing power resources to the UPnP protocol control point, and the algorithm marketplace URL is the URL of the computing power service installation package provided to the UPnP protocol control point.

[0050] In this embodiment of the invention, the second parameter is a parameter returned by the second UPnP protocol device to the UPnP protocol control point, specifically including: The computing power host URL is the host URL that the second UPnP protocol device replies to, which provides computing power resources. It is the host URL of the first UPnP protocol device. The UPnP protocol control point uses this URL when it uses computing power resources. The algorithm marketplace URL is the URL that the second UPnP protocol device replies with, providing computing power services. The subsequent UPnP protocol control point obtains the computing power service installation package from this URL for use. The algorithm model name is the name of the computing power service provided by the algorithm marketplace.

[0051] The computing resource provision method provided in this embodiment of the invention extends the relevant parameters in the service description files corresponding to the "computing resource provision" and "computing service provision" services, providing a basic communication standard for UPnP protocol control points to obtain computing resources and services.

[0052] Figure 5 This is an exemplary diagram illustrating the XML definition of service request actions and some parameters provided by the present invention, such as... Figure 5 As shown, subsequent interactions between the UPnP protocol control point and the UPnP protocol device are based on an action list and parameters through the UPnP framework. An example of the XML definition for the "Service Request" action and some parameters according to the UPnP framework is shown below. Figure 5 As shown, DataType is the data type that the computing power service needs to process, DataSize is the amount of data that the computing power service needs to process per second, and CPHostUrl is the URL of the computing power resource provider node, i.e., the computing power host URL. Other parameters are defined similarly.

[0053] In an optional embodiment, the first UPnP protocol device and the algorithm marketplace node are determined based on the following method: The UPnP protocol control point sends a first HTTP request message to the second UPnP protocol device. The first HTTP request message includes first information and second information. The first information is detailed information about the service type provided by the computing power service, and the second information is detailed information about the service type provided by the computing power resource. The second UPnP protocol device sends a second HTTP request to the computing power management platform, the second HTTP request containing the first information and the second information; The computing power management platform sends a third HTTP request to the algorithm marketplace, and the third HTTP request includes the first information. The algorithm marketplace returns third information to the computing power management platform, and the third information is the response information corresponding to the first information. The computing power management platform returns the third and fourth information to the second UPnP protocol device, wherein the fourth information is the response information corresponding to the second information; The second UPnP protocol device returns the third information and the fourth information to the UPnP protocol control point; The UPnP protocol control point determines the algorithm marketplace node and the first UPnP protocol device based on the third and fourth information.

[0054] In this embodiment of the invention, both the computing power host and the service terminal enable the UPnP protocol. The computing power host acts as the first UPnP protocol device, and the service terminal acts as the UPnP protocol control point. Based on the UPnP standard process, during the protocol discovery phase, the computing power host and the service terminal discover the new extended services "computing power resource provision" and "computing power service provision." During the UPnP protocol description phase, they obtain the description files corresponding to the new extended services "computing power resource provision" and "computing power service provision." Specifically: Figure 6 This is a flowchart illustrating the description phase of the UPnP protocol extended computing resources and services provision provided by this invention. Figure 6 As shown, the UPnP protocol control point initiates an HTTP request to the corresponding service provision control URL (the second UPnP protocol device) according to the interface parameter definition of the "computing resource provision" request in the description file of the computing power service, fills in the detailed information of the request for "computing resource provision" and "computing service provision", and carries the relevant information of the request, such as the first parameter mentioned above. After receiving the detailed service request information from the UPnP protocol control point, the second UPnP protocol device works with the computing power management platform to select appropriate computing power resources, provide nodes and detailed information, and algorithm marketplace nodes and detailed information, and reply to the second UPnP protocol device (computing power host). The second UPnP protocol device then returns to the UPnP protocol control point. The UPnP protocol control point decides whether to use the corresponding service based on its own business needs. If the corresponding service is used, the algorithm marketplace node is determined to be the node that will subsequently obtain computing power services, and the computing power resource provider node is the first UPnP protocol device that will subsequently obtain computing power resources.

[0055] The computing resource provision method provided in this embodiment of the invention, based on an extended service description file, enables the acquisition of detailed information on computing resources and computing services using the UPnP protocol, providing a basis for providing computing resources and services using the UPnP protocol.

[0056] In summary, the computing resource provision method provided by this invention, based on the UPnP protocol, extends the SSDP protocol framework to include two service types: "computing resource provision" and "computing service provision." For the newly extended "computing resource provision" and "computing service provision" services, innovative service description files are created to describe the corresponding control interfaces and related parameters. Business nodes, such as cameras and home speakers, adopt the newly extended service types. For interfaces, the existing single atomic interfaces of the UPnP SOAP control protocol are combined with the interfaces defined in the newly extended "computing service" description file, and recombined into interface action sequences according to business needs. This provides a unified standard interface for obtaining computing resources and computing services to all different business terminals within the local area network, enabling the acquisition of operations and controls corresponding to "computing service provision" and "algorithm marketplace service." In other words, the computing resource and server provision platform provides computing resources and services to all business terminals within the local area network where all computing hosts reside. The business terminal automatically discovers the computing power host within the local area network through the UPnP standard protocol, and initiates a request for computing power resources or services to the computing power host. The computing power host and the computing power management platform work together to select the best computing power resource provider and algorithm marketplace address. The computing power host replies to the business terminal through the UPnP standard protocol interface. The business terminal completes the download and installation of the algorithm module software through the UPnP standard protocol interface, configures the algorithm model's calculation data acquisition method, runs the algorithm model, and configures the algorithm model's result output method, thus completing the business terminal's acquisition of computing power resources and services.

[0057] The computing power resource provision method provided by this invention expands the UPnP-based standard interface for providing computing power resources and services, enabling the sharing of computing power resources and the provision of computing power services among different services and devices. Simultaneously, by using atomic combinations of UPnP control interfaces to form control sequences, it preserves the flexibility of the service provider and decouples the service provider from the resource and service providers. This solves the problem of low computing power resource sharing rates caused by siloed isolation between services in existing end-to-cloud collaborative solutions. Through the UPnP standard interface, the computing power host can provide computing power-related services to all service terminals within the same local area network. Furthermore, with this solution, data is not transmitted between the end-to-cloud, saving network bandwidth costs, reducing application network latency, improving application experience, and providing a computing power resource and algorithm marketplace. Even service providers without computing power hardware or computing power service software can quickly implement computing power-based services through the standard interface.

[0058] The computing power resource providing device provided in the embodiments of the present invention is described below. The computing power resource providing device described below and the computing power resource providing method described above can be referred to in correspondence.

[0059] Figure 7This is a schematic diagram of the computing power resource providing device provided by the present invention, as shown below. Figure 7 As shown, the computing power resource providing device may include, but is not limited to: The service acquisition module 710 is used to: after receiving a first control message sent by the UPnP protocol control point, pull the corresponding computing power service installation package from the algorithm marketplace node, and use the computing power service installation package to complete the installation of the computing power service program. The first UPnP protocol device is a device that provides computing power resources, the UPnP protocol control point is a business terminal device that needs computing power resources, the first UPnP protocol device and the UPnP protocol control point are located in the same local area network, the algorithm marketplace node is a node in the algorithm marketplace, and the algorithm marketplace is a system used to provide computing power service installation packages corresponding to various computing power service models. The first control message is used to indicate the request information for acquiring and installing the computing power service program. The data acquisition module 720 is used to: after receiving a second control message sent by the UPnP protocol control point, retrieve data to be processed from the UPnP protocol control point via the UPnP protocol, wherein the second control message is a request message used to instruct the first UPnP protocol device to retrieve the data to be processed; The data configuration module 730 is used to: after receiving a third control message sent by the UPnP protocol control point, configure the data to be processed as the input data of the computing power service program, and configure the data return method based on the third control message, wherein the third control message is a request message used to instruct the first UPnP protocol device to perform data processing; The data sending module 740 is used to: run the computing power service program using the computing power resources of the local machine, and after obtaining the data processing result, send the data processing result to the UPnP protocol control point using the data return method.

[0060] It should be noted that the computing power resource providing device provided in this embodiment of the invention can execute the computing power resource providing method described in any of the above embodiments during specific operation, and this embodiment will not elaborate on this.

[0061] Figure 8 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 8As shown, the electronic device may include: a processor 810, a communications interface 820, a memory 830, and a communication bus 840, wherein the processor 810, the communications interface 820, and the memory 830 communicate with each other through the communication bus 840. The processor 810 can call logical instructions in the memory 830 to execute a computing power resource provision method, which includes: after receiving a first control message sent by a UPnP protocol control point, a first UPnP protocol device pulls a corresponding computing power service installation package from an algorithm marketplace node, and uses the computing power service installation package to complete the installation of the computing power service program. The first UPnP protocol device is a device that provides computing power resources, the UPnP protocol control point is a business terminal device that requires computing power resources, the first UPnP protocol device and the UPnP protocol control point are located in the same local area network, the algorithm marketplace node is a node in an algorithm marketplace, and the algorithm marketplace is a system for providing computing power service installation packages corresponding to various computing power service models. The first control message is used to indicate the request information for obtaining and installing the computing power service program. After receiving the second control message sent by the UPnP protocol control point, the first UPnP protocol device retrieves the data to be processed from the UPnP protocol control point via the UPnP protocol. The second control message is a request message used to instruct the first UPnP protocol device to obtain the data to be processed. After receiving the third control message sent by the UPnP protocol control point, the data to be processed is configured as the input data of the computing power service program, and the data return method is configured based on the third control message. The third control message is a request message used to instruct the first UPnP protocol device to perform data processing. The computing power service program is run using the computing power resources of the local machine. After obtaining the data processing results, the data processing results are sent to the UPnP protocol control point using the data return method.

[0062] Furthermore, the logical instructions in the aforementioned memory 830 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a 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, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. 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.

[0063] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the computing power resource provision method provided by the above methods. The method includes: after receiving a first control message sent by a UPnP protocol control point, a first UPnP protocol device pulls a corresponding computing power service installation package from an algorithm marketplace node and uses the computing power service installation package to complete the installation of a computing power service program. The first UPnP protocol device is a device that provides computing power resources, the UPnP protocol control point is a business terminal device that requires computing power resources, the first UPnP protocol device and the UPnP protocol control point are located in the same local area network, the algorithm marketplace node is a node in an algorithm marketplace, and the algorithm marketplace is a system for providing computing power service installation packages corresponding to various computing power service models. The first control message is used to indicate the request information for obtaining and installing the computing power service program. After receiving the second control message sent by the UPnP protocol control point, the first UPnP protocol device retrieves the data to be processed from the UPnP protocol control point via the UPnP protocol. The second control message is a request message used to instruct the first UPnP protocol device to obtain the data to be processed. After receiving the third control message sent by the UPnP protocol control point, the data to be processed is configured as the input data of the computing power service program, and the data return method is configured based on the third control message. The third control message is a request message used to instruct the first UPnP protocol device to perform data processing. The computing power service program is run using the computing power resources of the local machine. After obtaining the data processing results, the data processing results are sent to the UPnP protocol control point using the data return method.

[0064] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program implements a method for providing computing power resources as described above. The method includes: after receiving a first control message sent by a UPnP protocol control point, a first UPnP protocol device pulls a corresponding computing power service installation package from an algorithm marketplace node and uses the computing power service installation package to complete the installation of a computing power service program. The first UPnP protocol device is a device that provides computing power resources, the UPnP protocol control point is a business terminal device that requires computing power resources, the first UPnP protocol device and the UPnP protocol control point are located in the same local area network, the algorithm marketplace node is a node in an algorithm marketplace, and the algorithm marketplace is a system for providing computing power service installation packages corresponding to various computing power service models. The first control message is used to indicate the request information for obtaining and installing the computing power service program. After receiving the second control message sent by the UPnP protocol control point, the first UPnP protocol device retrieves the data to be processed from the UPnP protocol control point via the UPnP protocol. The second control message is a request message used to instruct the first UPnP protocol device to obtain the data to be processed. After receiving the third control message sent by the UPnP protocol control point, the data to be processed is configured as the input data of the computing power service program, and the data return method is configured based on the third control message. The third control message is a request message used to instruct the first UPnP protocol device to perform data processing. The computing power service program is run using the computing power resources of the local machine. After obtaining the data processing results, the data processing results are sent to the UPnP protocol control point using the data return method.

[0065] The device embodiments described above are merely illustrative. 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 modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0066] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0067] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for providing computing power resources, characterized in that, include: After receiving the first control message sent by the UPnP protocol control point, the first UPnP protocol device pulls the corresponding computing power service installation package from the algorithm marketplace node and uses the computing power service installation package to complete the installation of the computing power service program. The first UPnP protocol device is a device that provides computing power resources, the UPnP protocol control point is a business terminal device that requires computing power resources, the first UPnP protocol device and the UPnP protocol control point are located in the same local area network, the algorithm marketplace node is a node in the algorithm marketplace, the algorithm marketplace is a system used to provide computing power service installation packages corresponding to various computing power service models, and the first control message is used to indicate the request information for obtaining and installing the computing power service program; After receiving the second control message sent by the UPnP protocol control point, the first UPnP protocol device retrieves the data to be processed from the UPnP protocol control point via the UPnP protocol. The second control message is a request message used to instruct the first UPnP protocol device to obtain the data to be processed. After receiving the third control message sent by the UPnP protocol control point, the data to be processed is configured as the input data of the computing power service program, and the data return method is configured based on the third control message. The third control message is a request message used to instruct the first UPnP protocol device to perform data processing. The computing power service program is run using the computing power resources of the local machine. After obtaining the data processing results, the data processing results are sent to the UPnP protocol control point based on the data return method.

2. The method for providing computing resources according to claim 1, characterized in that, After running the computing service program using the local computing resources and obtaining the data processing results, the process further includes: The first UPnP protocol device periodically reports the resource consumption, time, and computing power service status of running the computing power service program to the computing power management platform, so that the computing power management platform can perform billing based on the resource consumption, time, and computing power service status.

3. The method for providing computing resources according to claim 1 or 2, characterized in that, The UPnP protocol includes the following service types: The provision of computing resources refers to the service of providing computing resources, which are hardware devices used to perform computing tasks. The term "computing power service provider" refers to a service used to provide computing power services, which is a computing power service model used to implement computing power business functions.

4. The method for providing computing resources according to claim 3, characterized in that, The service description file for the service type provided by the computing power resources and the service type provided by the computing power services includes the following first parameters: instance name, computing power resource requirement, maximum service tolerance latency, data type to be processed by the computing power service, and the speed required to process the data; wherein, the first parameter is a parameter received by the second UPnP protocol device from the UPnP protocol control point.

5. The method for providing computing resources according to claim 4, characterized in that, The service description file for the service type provided by the computing power resources and the service type provided by the computing power services includes the following second parameters: computing power host URL, algorithm marketplace URL, and algorithm model name; wherein, the second parameter is the parameter returned by the second UPnP protocol device to the UPnP protocol control point, the computing power host URL is the URL of the UPnP protocol device that provides computing power resources to the UPnP protocol control point, and the algorithm marketplace URL is the URL that provides the computing power service installation package to the UPnP protocol control point.

6. The method for providing computing resources according to claim 5, characterized in that, The first UPnP protocol device and the algorithm marketplace node are determined based on the following method: The UPnP protocol control point pulls the corresponding computing power service installation package from the algorithm marketplace node and sends a first HTTP request to the second UPnP protocol device. The first HTTP request includes first information and second information. The first information is detailed information about the service type provided by the computing power service, and the second information is detailed information about the service type provided by the computing power resource. The second UPnP protocol device sends a second HTTP request to the computing power management platform, the second HTTP request containing the first information and the second information; The computing power management platform sends a third HTTP request to the algorithm marketplace, and the third HTTP request includes the first information. The algorithm marketplace returns third information to the computing power management platform, and the third information is the response information corresponding to the first information. The computing power management platform returns the third and fourth information to the second UPnP protocol device, wherein the fourth information is the response information corresponding to the second information; The second UPnP protocol device returns the third information and the fourth information to the UPnP protocol control point; The UPnP protocol control point determines the algorithm marketplace node and the first UPnP protocol device based on the third and fourth information.

7. A computing power resource providing device, characterized in that, include: The service acquisition module is used to: after receiving a first control message sent by the UPnP protocol control point, retrieve the corresponding computing power service installation package from the algorithm marketplace node, and use the computing power service installation package to complete the installation of the computing power service program. The first UPnP protocol device is a device that provides computing power resources, the UPnP protocol control point is a business terminal device that requires computing power resources, the first UPnP protocol device and the UPnP protocol control point are located in the same local area network, the algorithm marketplace node is a node in the algorithm marketplace, and the algorithm marketplace is a system used to provide computing power service installation packages corresponding to various computing power service models. The first control message is used to indicate the request information for acquiring and installing the computing power service program. The data acquisition module is used to: after receiving a second control message sent by the UPnP protocol control point, retrieve data to be processed from the UPnP protocol control point via the UPnP protocol. The second control message is a request message used to instruct the first UPnP protocol device to retrieve the data to be processed. The data configuration module is used to: after receiving a third control message sent by the UPnP protocol control point, configure the data to be processed as the input data of the computing power service program, and configure the data return method based on the third control message, wherein the third control message is a request message used to instruct the first UPnP protocol device to perform data processing; The data sending module is used to: run the computing power service program using the local computing power resources, obtain the data processing results, and then send the data processing results to the UPnP protocol control point using the data return method.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the computing resource provision method as described in any one of claims 1 to 6.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the computing resource provision method as described in any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the computing resource provision method as described in any one of claims 1 to 6.