Cloud platform docking debugging method, device, electronic equipment and storage medium
Providing pre-built public IoT device resources through the cloud platform solves the problems of fragmentation and inconvenience faced by partner developers in docking and debugging, improves debugging efficiency and resource utilization, and simplifies the debugging process.
Patent Information
- Application Number
- CN202110919998.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-11
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-08-11
AI Technical Summary
In the existing technology, partner developers face problems of fragmentation and inconvenience when debugging and debugging with cloud platforms, resulting in low debugging efficiency and inability to effectively connect application services.
Provide pre-built public IoT device resources through the cloud platform. Based on the application information of the application to be debugged, the target device is determined from multiple candidate devices and assigned to developers, controlling its docking and debugging with the development end side, simplifying device deployment and The process of building a public network environment.
This enables partner developers to perform normal debugging without separately deploying equipment and building a public network environment, which improves problem-solving efficiency and resource utilization and simplifies the debugging process.
Smart Images

Figure CN113612850B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of testing technology, and in particular to a cloud platform docking and debugging method, device, electronic device and storage medium. Background Art
[0002] For manufacturers that provide equipment and middle-office services, building a cloud platform, opening up the access capabilities of the cloud platform, attracting partners to quickly complete docking and debugging, and rapidly developing an ecosystem that is advantageous to them have become the key to the long-term development of the enterprise. The convenience of docking and debugging with partners directly affects whether the enterprise can quickly build a field ecosystem in a short period of time. The common docking and debugging solution is that partners obtain docking equipment from special channels, build a public network environment, and add the docking equipment to the cloud account system specified by the enterprise before debugging. However, this will cause problems such as inconvenient debugging and low problem solving efficiency, and it is impossible to effectively dock and debug application services. Summary of the invention
[0003] The embodiments of the present invention provide a cloud platform docking and debugging method, device, electronic device and storage medium to solve the problem of dispersed partner developers and inconvenient debugging, thereby improving the efficiency of problem solving.
[0004] In a first aspect, an embodiment of the present invention provides a cloud platform docking debugging method, the method comprising:
[0005] According to the debugging application information of the application to be debugged, a target IoT device is determined from multiple candidate IoT devices provided by the cloud platform and allocated to the application to be debugged;
[0006] Control the target IoT device assigned to the application to be debugged to connect and debug the application to be debugged on the development side;
[0007] The candidate IoT devices include IoT devices that are pre-built and accessed through a cloud platform and provide debugging services to the outside world as public resources.
[0008] In a second aspect, an embodiment of the present invention further provides a cloud platform docking and debugging device, the device comprising:
[0009] A device determination module is used to determine a target IoT device from multiple candidate IoT devices provided by the cloud platform according to the debugging application information of the application to be debugged and assign it to the application to be debugged;
[0010] A control allocation module, used to control the target IoT device allocated to the application to be debugged to connect and debug the application to be debugged on the development end;
[0011] The candidate IoT devices include IoT devices that are pre-built and accessed through a cloud platform and provide debugging services to the outside world as public resources.
[0012] In a third aspect, an embodiment of the present invention further provides an electronic device, including:
[0013] one or more processors;
[0014] A storage device for storing one or more programs;
[0015] The one or more programs are executed by the one or more processors, so that the one or more processors implement the cloud platform docking and debugging method as described in any embodiment of the present invention.
[0016] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, a cloud platform docking and debugging method as described in any embodiment of the present invention is implemented.
[0017] The embodiment of the present invention discloses a method, device, electronic device and storage medium for docking and debugging a cloud platform. According to the debugging application information of the application to be debugged, a target IoT device is determined from multiple candidate IoT devices provided by the cloud platform and assigned to the application to be debugged; the target IoT device assigned to the application to be debugged is controlled to dock and debug with the application to be debugged on the development side; wherein the candidate IoT devices include IoT devices that are pre-built and accessed through the cloud platform and provide debugging services to the outside as public resources. The embodiment of the present invention pre-builds a unified public docking environment resource. When debugging, developers do not need to separately allocate and transport equipment, build a public network environment, etc. Normal debugging can be achieved by directly using the public resources provided by the cloud platform, which solves the problem of dispersed partner developers and inconvenient debugging, and improves the efficiency of problem solving.
[0018] The above invention content is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Other features, objects and advantages of the present invention will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings. The drawings are only for the purpose of illustrating preferred embodiments and are not to be considered as limiting the present invention. Also, the same reference symbols are used throughout the drawings to represent the same parts. In the drawings:
[0020] Figure 1This is a flow chart of a cloud platform docking and debugging method provided in Embodiment 1 of the present invention;
[0021] Figure 2 It is a schematic diagram of the deployment of a networking mode of a wide area network environment device provided in an embodiment of the present invention;
[0022] Figure 3 This is a flow chart of a cloud platform docking and debugging method provided by Embodiment 2 of the present invention;
[0023] Figure 4 is a structural block diagram of a device resource classification provided in an embodiment of the present invention;
[0024] Figure 5 This is a flow chart of a cloud platform docking and debugging method provided by Embodiment 3 of the present invention;
[0025] Figure 6 It is a flow chart of a platform customized standard library test provided in an embodiment of the present invention;
[0026] Figure 7 is a flow chart of a user-defined data test provided in an embodiment of the present invention;
[0027] Figure 8 This is a structural block diagram of a cloud platform docking and debugging device provided by Embodiment 4 of the present invention;
[0028] Fig. 9 It is a structural schematic diagram of an electronic device provided in Embodiment 5 of the present invention. DETAILED DESCRIPTION
[0029] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only the parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0030] Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the operations (or steps) as sequential processes, many of the operations (or steps) therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of the operations can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.
[0031] Embodiment 1
[0032] Figure 1This is a flow chart of a cloud platform docking debugging method provided by the first embodiment of the present invention. The embodiment of the present invention is applicable to the case of cloud platform docking debugging. The cloud platform docking debugging method can be executed by a cloud platform docking debugging device, which can be implemented in software and / or hardware and can be integrated on any electronic device with network communication function. Figure 1 As shown, the cloud platform docking debugging method provided in the embodiment of the present invention may specifically include the following steps:
[0033] S110: According to the debugging application information of the application to be debugged, a target IoT device is determined from a plurality of candidate IoT devices provided by the cloud platform and allocated to the application to be debugged.
[0034] Debugging can refer to the necessary procedures to ensure the normal operation of the equipment provided, for example, it can be necessary to debug the prototype before purchasing the equipment to ensure the normal operation of the equipment. Optionally, the application to be debugged includes but is not limited to software-as-a-service (SaaS) applications such as APP, client, and applets developed for groups in specific fields.
[0035] Candidate IoT devices may refer to IoT devices that are pre-built through the cloud platform, connected and provide debugging services as public resources. For example, it may refer to IoT monitoring devices that are connected to the cloud service platform through a router in a local area network, and a public device resource is provided by the cloud service platform to add the IoT monitoring devices to the account. For example, candidate IoT devices include but are not limited to IoT monitoring devices such as ordinary network camera IPC, license plate recognition network camera IPC, network hard disk recorder NVR and access control devices (wherein the access control devices are equipped with cameras).
[0036] After the user registers an account on the IoT cloud service platform, multiple IoT monitoring devices are connected to the cloud service platform through a router in a local area network, and the IoT monitoring devices are added to the account. After logging in to the cloud service platform account through the client application, the IoT monitoring devices under their account can be viewed and business operations can be performed.
[0037] S120: Control the target IoT device assigned to the application to be debugged to connect and debug the application to be debugged on the development end.
[0038] Among them, candidate IoT devices include IoT devices that are pre-built and accessed through the cloud platform and provide debugging services to the outside world as public resources.
[0039] See also Figure 2, describes a networking mode for devices in a wide area network environment. Optionally, the SaaS application developed by the partner interacts with the cloud platform through the wide area network by calling the API interface, and interacts with the IoT devices under the account through the cloud platform account. The cloud platform, as a central server, parses the API request message of the SaaS application and sends the instruction to the IoT device to implement business operations.
[0040] Partner developers can build their own debugging environment. For example, a partner develops an APP, obtains IoT devices, and then connects the IoT devices to the WAN cloud platform through Router 2, so that these IoT devices can be accessed. When there are many partners, the loan and allocation of IoT devices not only takes a long time, but also has low resource utilization. In order to solve the problem of debugging convenience for partners, the method provided in this application is that the cloud platform provider builds a set of public resource environments and connects them to the WAN cloud platform for partners to use for debugging and docking. Figure 2 As described in the dashed box in Figure 1, partner developers debug using resources provided by cloud platform enterprises.
[0041] The embodiment of the present invention discloses a cloud platform docking and debugging method, which determines the target IoT device from multiple candidate IoT devices provided by the cloud platform and assigns it to the application to be debugged according to the debugging application information of the application to be debugged; and controls the docking and debugging of the target IoT device assigned to the application to be debugged with the application to be debugged on the development side. This embodiment pre-builds a unified public docking environment resource, so that when debugging, the developer does not need to separately allocate and transport equipment, build a public network environment, etc., and can directly use the public resources provided by the cloud platform to achieve normal debugging, which solves the problem of scattered partner developers and inconvenient debugging, and improves the efficiency of problem solving.
[0042] Embodiment 2
[0043] Figure 3 This is a flow chart of a cloud platform docking debugging method provided in the second embodiment of the present application. The embodiment of the present invention further optimizes the above embodiment on the basis of the above embodiment, and the embodiment of the present invention can be combined with various optional solutions in one or more of the above embodiments. Figure 3 As shown, the method for cloud platform docking and debugging provided in an embodiment of the present invention may include the following steps:
[0044] S210: Generate a temporary debugging account for the application to be debugged according to the debugging application information of the application to be debugged.
[0045] The cloud platform binds public resource environment equipment to a resource management account. After obtaining the debugging application information of the partner developer, the system automatically generates a temporary debugging account (for example, valid for 48 hours). The debugging application information includes but is not limited to the business debugging content, business debugging sequence, business debugging validity period, and the equipment model to be purchased for business debugging.
[0046] S220: Select a target IoT device from a plurality of candidate IoT devices provided by the cloud platform according to the debugging application information of the application to be debugged.
[0047] Among them, candidate IoT devices include IoT devices that are pre-built and accessed through the cloud platform and provide debugging services to the outside world as public resources.
[0048] In an optional solution of this embodiment, selecting a target IoT device from a plurality of candidate IoT devices provided by the cloud platform according to the debugging application information of the application to be debugged may include the following operations:
[0049] According to the service debugging content included in the debugging application information, select and allocate a candidate IoT device that matches the service debugging content as the target IoT device from at least two preset device resource pools. Or,
[0050] According to the service debugging content and service debugging sequence included in the debugging application information, different candidate IoT devices are selected from at least two preset device resource pools in turn for combination as target IoT devices, and it is ensured that the combined target IoT device group matches the service debugging content. Optionally, when there are fully matching resources to be debugged, according to the service debugging content included in the debugging application information, select and allocate the same candidate IoT device that matches the service debugging content from at least two preset device resource pools as the target IoT device. Each candidate IoT device has its own preset device resource pool, and some preset device resource pools in different preset device resource pools are configured with the same candidate IoT device.
[0051] Optionally, at least two preset device resource pools include an information acquisition resource pool, a short-term operation resource pool, and a special operation resource pool, wherein candidate IoT devices in the information acquisition resource pool are allowed to be shared with different debugging accounts at the same time, and candidate IoT devices in the short-term operation resource pool or the special operation resource pool are only allowed to share one debugging account at the same time.
[0052] Optionally, when matching is performed through debugging content but debugging matching is unsuccessful, different candidate IoT devices are selected from at least two preset device resource pools in turn according to the service debugging content and service debugging sequence included in the debugging application information to be combined as target IoT devices, and the combined target IoT device group is ensured to match the service debugging content. The different types of preset device resource pools are obtained by dividing the resources of each candidate IoT device according to the service debugging category and the operability and impact of the device.
[0053] See also Figure 4 , the cloud platform will provide external functional debugging content, which will be classified according to the operability and impact on the device. The debugging categories include but are not limited to information acquisition, short-term operation, and special operation. According to the classification of the business, a variety of different categories can be divided. This application lists three methods to explain: information acquisition operations, including but not limited to live and playback viewing, etc. The related signaling delivery only obtains information from the device and does not affect other operations; short-term operations, including but not limited to pan-tilt operations, etc., will have an immediate and short-term impact on the device; special operations, including but not limited to the issuance of license plate lists and face databases, etc., have a longer-term impact on the changes in the device's internal data and parameters.
[0054] In order to improve resource utilization and reduce mutual interference between developers, this application provides a resource allocation model and allocation strategy, which divides device resources into three resource pools according to the debugging category and device capabilities: information acquisition resource pool, short-term operation resource pool, and special operation resource pool.
[0055] According to the debugging content in the information applied by the developer, the minimum resource combination method is adopted to select devices from the resource pool for sharing. The general principle of the resource allocation model is: provide a single resource that fully matches the debugging content and consumes the least device resources; when the system does not have a single resource, the system provides it in combination from the resource library through the debugging sequence.
[0056] Devices in the information acquisition resource pool can be shared with different debugging accounts at the same time, and devices that are only in the information acquisition resource pool are given priority. For example, when both developer A and developer B have real-time function debugging needs, device 1 can be shared with the debugging accounts of developers A and B at the same time.
[0057] For devices in short-term operation resource pools or special operation resource pools, only one debugging account can use them at the same time.
[0058] Resource allocation management and scheduling are carried out according to the order of user applications and the order of debugging content.
[0059] S230: Share the target IoT device to the temporary debugging account of the application to be debugged, and distribute the temporary debugging account of the shared target IoT device to the application to be debugged on the development end.
[0060] According to the order of user application and debugging content, resource allocation management and scheduling are performed. For example, see Figure 4 , assuming that the developer's debugging content is in the following modules, taking live, PTZ and face comparison operations as examples; corresponding to the information acquisition category, short-term operation category and special operation category content respectively.
[0061] When the developer is only debugging live video, the information will be obtained from devices that only support information acquisition capabilities, with device 1 as the priority, followed by other devices. When the developer is debugging live video and PTZ, devices that support both live video and PTZ are selected from the short-term operation category, with device 2 or device 3 as the priority, followed by device 4. When the developer is debugging live video and face comparison operations, devices that support both live video and face comparison are selected from the special operation category, with device 5 as the priority.
[0062] When the system does not have a single resource, combined with the debugging sequence, randomly selects deployable devices from each resource pool, allocates a trial period, and presents it to the user. The user debugs within the specified time, and the device is automatically recycled when it expires. The user can also apply for a trial again according to needs.
[0063] When developers debug live video, PTZ, and face comparison, device 4 is preferred. If device 4 is already occupied and the system does not have a single device resource that can support both, the device resources are obtained from the three resource pools according to the device usage and a certain debugging cycle is allocated. The resources are automatically shared and unshared within the allocated cycle.
[0064] For example, assuming that the developer debugs in the order of live video, PTZ, and face comparison, device 1, device 3, and device 5 are selected from the resource pool, where device 3 and device 5 are assigned trial time periods respectively, shared before the start of the corresponding time period, and unshared to reclaim resources at the end of the time period.
[0065] When there are no available resources in the system to meet the debugging requirements within a certain period of time, a system reminder is issued to the operation and maintenance personnel to add corresponding equipment resources.
[0066] S240: Control the target IoT device assigned to the application to be debugged to connect and debug the application to be debugged on the development end.
[0067] The embodiment of the present invention discloses a cloud platform docking debugging method, which generates a temporary debugging account of the application to be debugged according to the debugging application information of the application to be debugged; selects a target Internet of Things device from multiple candidate Internet of Things devices provided by the cloud platform according to the debugging application information of the application to be debugged; shares the target Internet of Things device with the temporary debugging account of the application to be debugged, and distributes the temporary debugging account of the shared target Internet of Things device to the application to be debugged on the development side, and controls the docking debugging of the target Internet of Things device assigned to the application to be debugged and the application to be debugged on the development side. This embodiment uses a resource allocation model to reasonably allocate resources according to the actual business of the user, improves the utilization rate of debugging resources, avoids user conflicts, and improves user experience.
[0068] Embodiment 3
[0069] Figure 5 This is a flow chart of a cloud platform docking debugging method provided in the third embodiment of the present application. The embodiment of the present invention further optimizes the above embodiment on the basis of the above embodiment, and the embodiment of the present invention can be combined with various optional solutions in one or more of the above embodiments. Figure 5 As shown, the method for cloud platform docking and debugging provided in an embodiment of the present invention may include the following steps:
[0070] S310: According to the debugging application information of the application to be debugged, a target IoT device is determined from a plurality of candidate IoT devices provided by the cloud platform and allocated to the application to be debugged.
[0071] S320: In response to a debugging request corresponding to the application to be debugged, generate candidate debugging items of the application to be debugged and display them on a console on the development end side.
[0072] Optionally, generating candidate debugging items of the application to be debugged includes: obtaining candidate debugging data selected and imported through the development end console; or obtaining candidate debugging data from a standard test database of different business types pre-built on the cloud platform;
[0073] According to the service debugging content carried in the debugging request, candidate debugging data matching the service debugging content is selected to generate a candidate debugging item.
[0074] The candidate debugging data includes, but is not limited to, standard test data of different business types pre-built by the cloud platform and user-defined test data imported into the cloud platform through the console of the development end.
[0075] S330: According to a target debugging item selected from the candidate debugging items of the application to be debugged, debugging data matching the target debugging item is read from the candidate debugging data and sent to the target IoT device for docking debugging.
[0076] Developers have different levels of understanding of the video surveillance field or have limited conditions, and fail to construct comprehensive and effective data and conditions for debugging, resulting in low quality of partner SaaS applications. Some quality problems may even be exposed in actual use, affecting user experience and business promotion. For example, for the message reporting function of license plate recognition, actual testing often requires deploying cameras in actual road scenes, or shooting cameras at pre-recorded road scene videos. On the one hand, developers may not have the corresponding conditions; on the other hand, different scene contents may not cover all test items, causing partners' SaaS applications to miss key exception processing, exposing quality problems in actual use.
[0077] At the same time, in the use scenarios of IoT devices, a large number of business triggers rely on strict conditions. For example, if developers access the license plate recognition function, they need to rely on the appearance of vehicle data in the camera to obtain reported messages from the cloud platform. Although the conditions can be constructed by pointing the camera at the recorded video, a PC needs to be configured in the environment for a long time, which increases resource consumption. After the access control device is configured with a face library, the corresponding person needs to appear in the access control shooting scene to realize the business normally. All these have brought many inconveniences to the environment debugging.
[0078] To this end, this embodiment provides a method for customizing testing, which can reduce the difficulty of building an environment and improve the quality of partner applications by improving a unified testing environment and data.
[0079] In an optional example, a test template database of different business types is built in the cloud platform. The data types include but are not limited to pictures, videos, and messages. When the developer tests the corresponding function, the cloud platform selects the corresponding business data from the test template database and sends it to the device assigned to the developer's test account. After the device receives the data sent by the cloud platform, the device business layer parses the data and reports it.
[0080] In addition to the business processing module, the cloud platform system can also include a console presented to developers and a database for storing test templates. The console can present account information, debugging content and other information to developers in the form of a web page or other client. The specific process is as follows Figure 6 As shown:
[0081] A1: The developer sends a debugging request through the console, which contains the debugging service content.
[0082] A2: After receiving the debugging request, the cloud platform business module selects the test template data of the corresponding business according to the content of the debugging business, and presents all debugging items in the console. For example, assuming that the business that the developer is debugging is license plate recognition, and the test template data contains 20 debugging contents, then the detailed 20 debugging items will be presented on the console;
[0083] A3: The developer operates on the console and sends the specified debugging items;
[0084] A4: After receiving the debugging items sent by the developer, the cloud platform reads the corresponding data from the test template database and sends it to the device specified in the developer's debugging account;
[0085] A5: After the device obtains the data sent by the cloud platform, the device's business processing module identifies the data, analyzes it through the built-in algorithm, and reports the identification results to the cloud platform;
[0086] A6: After receiving the recognition result reported by the device, the cloud platform pushes the message to the developer's APP.
[0087] In this method, the test template data can be pre-defined and continuously updated, and the application scenarios considered can be richer and the test more comprehensive. Compared with the device obtaining data through the lens, the cloud platform sends data, which is just another data source. The processing logic of the device's business processing module has not changed, and it will not increase too much additional development costs.
[0088] In networking, the developer's APP is delivered directly to the cloud platform and is not directly connected to the device. During debugging, more attention is often paid to the path between the APP and the cloud platform. In actual use, the device is also a key link in the complete networking. During the entire debugging process, the device still recognizes the data and reports it. The debugging path is closer to the actual application path, rather than the cloud platform simulating data reporting for simulation debugging.
[0089] The method provided in this embodiment solves the problem of low debugging quality caused by simple user debugging and incomplete test condition construction by constructing standardized debugging template data.
[0090] In addition, considering that different partners have different environments, there will always be unforeseen problems during the docking process. The company's docking maintenance personnel often need to devote more energy to deal with these unknown problems and cannot solve the problems quickly. There will be differences in the environment actually built by each developer. For example, there will often be problems such as poor network performance, insufficient bandwidth, and high network packet loss rate; there may even be unknown problems caused by version mismatches, incorrect parameter modifications, etc. during the construction process. To this end, this embodiment provides user-defined data testing, and the cloud platform obtains user-defined test data selected and imported through the development console as candidate debugging data.
[0091] In another optional example, for the recognition function of access control equipment and facial equipment, it is often necessary to first send the face library to the device. After the device obtains the image in the actual scene, it compares and analyzes it through the built-in algorithm and reports the result. After the user sends the face image of specific person A to the device, the image data containing specific person A collected by other means can be sent to the camera through the cloud platform, without actually relying on the camera to shoot specific person A to trigger the service. The specific process is as follows Figure 7 As shown:
[0092] B1: The developer selects debugging content through the console and imports debugging data;
[0093] B2: After receiving the debugging request, the cloud platform business module generates debugging items and presents the debugging items on the console;
[0094] B3: The cloud platform sends the debugging data to the device specified in the developer's debugging account;
[0095] B4: After the device obtains the data sent by the cloud platform, the device's business processing module identifies the data and reports the identification results to the cloud platform after analyzing it through the built-in algorithm;
[0096] B5: After receiving the recognition result reported by the device, the cloud platform pushes the message to the developer APP.
[0097] In this method, developers can test the functional items that rely on the base library, such as face recognition, etc. It supports sending data containing a specific element as the base library, and can import the complete data containing the element and the background scene for functional testing.
[0098] The embodiment of the present invention provides a method for docking and debugging a cloud platform. According to the debugging application information of the application to be debugged, a target IoT device is determined from multiple candidate IoT devices provided by the cloud platform and assigned to the application to be debugged; in response to the debugging request corresponding to the application to be debugged, candidate debugging items of the application to be debugged are generated and displayed on the console of the development end; according to the target debugging item selected from the candidate debugging items of the application to be debugged, debugging data matching the target debugging item is read from the candidate debugging data and sent to the target IoT device for docking and debugging. By constructing standardized debugging template data, the problem of low debugging docking quality caused by simple user debugging and incomplete test condition construction is solved; supporting customized data import solves the problem that some scenes cannot be debugged, and improves the convenience of debugging and the user's recognition of the product.
[0099] Embodiment 4
[0100] Figure 8 4 is a schematic diagram of a cloud platform docking and debugging device provided in the fourth embodiment of the present invention, the device includes: a device determination module 410 and a control allocation module 420. Among them:
[0101] The device determination module 410 is used to determine the target IoT device from multiple candidate IoT devices provided by the cloud platform according to the debugging application information of the application to be debugged and assign it to the application to be debugged;
[0102] A control allocation module 420 is used to control the target IoT device allocated to the application to be debugged to connect and debug the application to be debugged on the development end;
[0103] The candidate IoT devices include IoT devices that are pre-built and accessed through a cloud platform and provide debugging services to the outside world as public resources.
[0104] Optionally, the device determination module includes:
[0105] Generate a temporary debugging account for the application to be debugged based on the debugging application information of the application to be debugged;
[0106] According to the debugging application information of the application to be debugged, a target IoT device is selected from multiple candidate IoT devices provided by the cloud platform;
[0107] The target IoT device is shared to the temporary debugging account of the application to be debugged, and the temporary debugging account of the shared target IoT device is distributed to the application to be debugged on the development side.
[0108] Optionally, the debugging application information includes business debugging content, business debugging sequence, business debugging validity period and equipment model to be purchased for business debugging.
[0109] Optionally, the device determination module further includes:
[0110] According to the service debugging content included in the debugging application information, select and allocate a candidate IoT device that matches the service debugging content as the target IoT device from at least two preset device resource pools; or,
[0111] According to the service debugging content and service debugging order included in the debugging application information, different candidate IoT devices are selected in turn from at least two preset device resource pools to be combined as target IoT devices, and it is ensured that the combined target IoT device group matches the service debugging content;
[0112] The different types of preset device resource pools are obtained by dividing each candidate IoT device resource according to the service debugging category and the operability and impact degree of the device.
[0113] Optionally, the device determination module also includes: each candidate IoT device has a preset device resource pool to which it belongs, and some preset device resource pools in different preset device resource pools are configured with the same candidate IoT device.
[0114] Optionally, the at least two preset device resource pools include an information acquisition resource pool, a short-term operation resource pool, and a special operation resource pool, wherein candidate IoT devices in the information acquisition resource pool are allowed to be shared with different debugging accounts at the same time, and candidate IoT devices in the short-term operation resource pool or the special operation resource pool are only allowed to share one debugging account at the same time.
[0115] Optional, control distribution module, including:
[0116] In response to a debugging request corresponding to the application to be debugged, generating candidate debugging items of the application to be debugged and displaying them on a console on the development end side;
[0117] According to a target debugging item selected from candidate debugging items of the application to be debugged, debugging data matching the target debugging item is read from the candidate debugging data and sent to the target IoT device for docking debugging;
[0118] The candidate debugging data includes standard test data of different business types pre-built by the cloud platform and user-defined test data imported into the cloud platform through the console of the development end.
[0119] Optionally, the control distribution module also includes:
[0120] Obtain candidate debugging data selected and imported through the development console; or obtain candidate debugging data from the standard test database of different business types pre-built on the cloud platform;
[0121] According to the service debugging content carried in the debugging request, candidate debugging data matching the service debugging content is selected to generate a candidate debugging item.
[0122] The cloud platform docking and debugging device provided in the embodiment of the present invention can execute the cloud platform docking and debugging method provided in any embodiment of the present invention mentioned above, and has the corresponding functions and beneficial effects of executing the cloud platform docking and debugging method. For detailed process, please refer to the relevant operations of the cloud platform docking and debugging method in the aforementioned embodiment.
[0123] Embodiment 5
[0124] Fig. 9 Schematic diagram of the structure of an electronic device provided in Embodiment 5 of the present application. The present application embodiment provides an electronic device, in which the device for docking and debugging a cloud platform provided in the present application embodiment can be integrated. Fig. 9 As shown, this embodiment provides an electronic device 500, which includes: one or more processors 520; a storage device 510, which is used to store one or more programs. When the one or more programs are executed by the one or more processors 520, the one or more processors 520 implement the cloud platform docking debugging method provided in the embodiment of the present application. The method includes:
[0125] According to the debugging application information of the application to be debugged, a target IoT device is determined from multiple candidate IoT devices provided by the cloud platform and allocated to the application to be debugged;
[0126] Control the target IoT device assigned to the application to be debugged to connect and debug the application to be debugged on the development side;
[0127] The candidate IoT devices include IoT devices that are pre-built and accessed through a cloud platform and provide debugging services to the outside world as public resources.
[0128] Of course, those skilled in the art can understand that the processor 520 also implements the technical solution of the cloud platform docking and debugging method provided in any embodiment of the present application.
[0129] Fig. 9 The electronic device 500 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0130] like Fig. 9 As shown, the electronic device 500 includes a processor 520, a storage device 510, an input device 530, and an output device 540; the number of the processor 520 in the electronic device can be one or more. Fig. 9 A processor 520 is taken as an example; the processor 520, the storage device 510, the input device 530 and the output device 540 in the electronic device can be connected via a bus or other means. Fig. 9 The connection via bus 550 is taken as an example.
[0131] The storage device 510, as a computer-readable storage medium, can be used to store software programs, computer executable programs and module units, such as program instructions corresponding to the cloud platform docking and debugging method in the embodiment of the present application.
[0132] The storage device 510 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the storage device 510 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the storage device 510 may further include a memory remotely arranged relative to the processor 520, and these remote memories may be connected via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0133] The input device 530 may be used to receive input numbers, character information or voice information, and generate key signal input related to user settings and function control of the electronic device. The output device 540 may include electronic devices such as a display screen and a speaker.
[0134] The electronic device provided in the embodiment of the present application can achieve the technical effect of solving the problem of dispersion of partner developers and inconvenient debugging, and improving the efficiency of problem solving.
[0135] Embodiment 6
[0136] An embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method for performing a cloud platform docking debugging method includes:
[0137] According to the debugging application information of the application to be debugged, a target IoT device is determined from multiple candidate IoT devices provided by the cloud platform and allocated to the application to be debugged;
[0138] Control the target IoT device assigned to the application to be debugged to connect and debug the application to be debugged on the development side;
[0139] The candidate IoT devices include IoT devices that are pre-built and accessed through a cloud platform and provide debugging services to the outside world as public resources.
[0140] The computer storage medium of the embodiment of the present invention may adopt any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable CD-ROM, an optical storage device, a magnetic storage device, or any suitable combination of the above. The computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device.
[0141] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to: electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0142] The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, radio frequency (RF), etc., or any suitable combination of the above.
[0143] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0144] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0145] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A cloud platform docking and debugging method, characterized in that: Applied to a cloud platform, the method includes: According to the debugging application information of the application to be debugged, a target IoT device is determined from multiple candidate IoT devices provided by the cloud platform and allocated to the application to be debugged; Control the target IoT device assigned to the application to be debugged to connect and debug the application to be debugged on the development side; The candidate IoT devices include IoT devices that are pre-built and accessed through the cloud platform and provide debugging services to the outside world as public resources; Among them, according to the debugging application information of the application to be debugged, the target IoT device is selected from multiple candidate IoT devices provided by the cloud platform, including: When a single device resource that supports at least two service debugging contents is provided in the system, a candidate IoT device that matches the service debugging content is selected and allocated from at least two preset device resource pools as a target IoT device based on the service debugging content included in the debugging application information; the at least two preset device resource pools include an information acquisition resource pool, a short-term operation resource pool, and a special operation resource pool, wherein the candidate IoT devices in the information acquisition resource pool are allowed to be shared with different debugging accounts at the same time, and the candidate IoT devices in the short-term operation resource pool or the special operation resource pool are only allowed to share one debugging account at the same time; When the system does not have a single device resource that supports at least two business debugging contents at the same time, different candidate IoT devices are selected in turn from at least two preset device resource pools for combination as target IoT devices according to the business debugging contents and business debugging sequence included in the debugging application information, and it is ensured that the combined target IoT device group matches the business debugging contents; wherein different types of preset device resource pools are obtained by dividing each candidate IoT device resource according to the business debugging category and the operability and impact of the device.
2. The method according to claim 1, characterized in that According to the debugging application information of the application to be debugged, the target IoT device is determined from multiple candidate IoT devices provided by the cloud platform and allocated to the application to be debugged, including: Generate a temporary debugging account for the application to be debugged based on the debugging application information of the application to be debugged; According to the debugging application information of the application to be debugged, a target IoT device is selected from multiple candidate IoT devices provided by the cloud platform; The target IoT device is shared to the temporary debugging account of the application to be debugged, and the temporary debugging account of the shared target IoT device is distributed to the application to be debugged on the development side.
3. The method according to claim 1, characterized in that Each candidate IoT device has its own preset device resource pool, and some preset device resource pools in different preset device resource pools are configured with the same candidate IoT device.
4. The method according to claim 1, characterized in that: Control the target IoT device assigned to the application to be debugged and the application to be debugged on the development side to connect and debug, including: In response to a debugging request corresponding to the application to be debugged, generating candidate debugging items of the application to be debugged and displaying them on a console on the development end side; According to a target debugging item selected from candidate debugging items of the application to be debugged, debugging data matching the target debugging item is read from the candidate debugging data and sent to the target IoT device for docking debugging; The candidate debugging data includes standard test data of different business types pre-built by the cloud platform and user-defined test data imported into the cloud platform through the console of the development end.
5. The method according to claim 4, characterized in that Generate candidate debugging items for the application to be debugged, including: Obtain candidate debugging data selected and imported through the development console; or obtain candidate debugging data from the standard test database of different business types pre-built on the cloud platform; According to the service debugging content carried in the debugging request, candidate debugging data matching the service debugging content is selected to generate a candidate debugging item.
6. A cloud platform docking and debugging device, characterized in that: Applied to a cloud platform, the device comprises: A device determination module is used to determine a target IoT device from multiple candidate IoT devices provided by the cloud platform according to the debugging application information of the application to be debugged and assign it to the application to be debugged; A control allocation module, used to control the target IoT device allocated to the application to be debugged to connect and debug the application to be debugged on the development end; The candidate IoT devices include IoT devices that are pre-built and accessed through the cloud platform and provide debugging services to the outside world as public resources; Wherein, the device determination module is specifically used for: When a single device resource that supports at least two service debugging contents is provided in the system, a candidate IoT device that matches the service debugging content is selected and allocated from at least two preset device resource pools as a target IoT device based on the service debugging content included in the debugging application information; the at least two preset device resource pools include an information acquisition resource pool, a short-term operation resource pool, and a special operation resource pool, wherein the candidate IoT devices in the information acquisition resource pool are allowed to be shared with different debugging accounts at the same time, and the candidate IoT devices in the short-term operation resource pool or the special operation resource pool are only allowed to share one debugging account at the same time; When the system does not have a single device resource that supports at least two business debugging contents at the same time, different candidate IoT devices are selected in turn from at least two preset device resource pools for combination as target IoT devices according to the business debugging contents and business debugging sequence included in the debugging application information, and it is ensured that the combined target IoT device group matches the business debugging contents; wherein different types of preset device resource pools are obtained by dividing each candidate IoT device resource according to the business debugging category and the operability and impact of the device.
7. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the cloud platform docking and debugging method described in any one of claims 1-5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the cloud platform docking and debugging method described in any one of claims 1 to 5 is implemented.
