Information processing method, device, equipment, and computer storage medium
By receiving resource refresh indication information on the first cloud platform in the Internet of Things system and regularly updating the resource status, the problem of the cloud platform being unable to sense the working status of the device in a timely manner is solved, and the flexibility and reliability of resource subscriptions are improved.
Patent Information
- Application Number
- CN202080099935.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-16
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2040-06-16
AI Technical Summary
In the existing IoT technology, the cloud platform cannot know the working status of the device in time, because the resource subscription is only updated when the device resource attribute information changes. As a result, the source cloud platform cannot sense the status of the device on the target cloud platform when the device does not change for a long time. Whether the equipment is in normal working condition.
By receiving resource refresh instruction information on the first cloud platform, the resource-related information of the device is obtained, and this information is regularly sent to the second cloud platform to ensure that the resource status is updated within each fixed time period and improve the flexibility of resource subscription.
It enables timely understanding of the device status even when the device resource attributes remain unchanged, avoiding status awareness problems caused by long-term changes, and improving the flexibility and reliability of resource subscriptions.
Smart Images

Figure CN115428417B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of Internet of Things, and in particular to an information processing method and apparatus, equipment, and computer storage medium. Background Art
[0002] As more and more devices are connected to the Internet of Things, the cloud platforms of many manufacturers are moving from private to open and shared. Cloud-to-cloud interconnection technology enables cloud platforms of different manufacturers to interconnect with each other, breaking down the barriers between different manufacturers' brands and achieving cross-border integration.
[0003] Currently, a cloud platform (e.g., source cloud platform) can subscribe to the resources of IoT devices on another cloud platform (e.g., target cloud platform). However, the relevant technology only stipulates subscription based on changes in resource attribute information; that is, the resource subscription of the relevant technology will only send the corresponding resource attribute information to the source cloud platform when the device resource attribute information on the target cloud platform changes. In this way, the source cloud platform cannot know the working status of the device in time. Summary of the invention
[0004] The embodiments of the present application provide an information processing method and apparatus, a device, and a computer storage medium.
[0005] In a first aspect, an embodiment of the present application provides an information processing method, which is applied to a first cloud platform, and the method includes:
[0006] Receive a first request message; the first request message carries resource refresh indication information; the resource refresh indication information is used to instruct the first cloud platform to refresh resource-related information of the first resource in the first device;
[0007] Based on the resource refresh indication information, obtaining resource-related information of the first resource;
[0008] The resource-related information is sent to the second cloud platform.
[0009] In a second aspect, an embodiment of the present application provides an information processing method, which is applied to a second cloud platform, and the method includes:
[0010] Sending a first request message; the first request message carries resource refresh indication information; the resource refresh indication information is used to instruct the first cloud platform to refresh resource-related information of the first resource in the first device;
[0011] Receive resource-related information of the first resource sent based on the resource refresh indication information.
[0012] In a third aspect, an embodiment of the present application provides an information processing method, which is applied to a first device, and the method includes:
[0013] receiving an observation request; the observation request including refresh cycle information;
[0014] According to the refresh cycle information, resource attribute information of the first resource is sent to the first cloud platform.
[0015] In a fourth aspect, an embodiment of the present application provides an information processing device, applied to a first cloud platform, the device comprising:
[0016] A first receiving unit is configured to receive a first request message; the first request message carries resource refresh indication information; the resource refresh indication information is used to instruct the first cloud platform to refresh resource-related information of the first resource in the first device;
[0017] A first acquisition unit, configured to acquire resource-related information of the first resource based on the resource refresh indication information;
[0018] The first sending unit is further configured to send the resource-related information to the second cloud platform.
[0019] In a fifth aspect, an embodiment of the present application provides an information processing device, applied to a second cloud platform, the device comprising:
[0020] A second sending unit is configured to send a first request message; the first request message carries resource refresh indication information; the resource refresh indication information is used to instruct the first cloud platform to refresh resource-related information of the first resource in the first device;
[0021] The second receiving unit is configured to receive resource-related information of the first resource sent based on the resource refresh indication information.
[0022] In a sixth aspect, an embodiment of the present application provides an information processing apparatus, applied to a first device, the apparatus comprising:
[0023] A third receiving unit is configured to receive an observation request; the observation request includes refresh cycle information;
[0024] The third sending unit is configured to send the resource attribute information of the first resource to the first cloud platform according to the refresh cycle information.
[0025] In a seventh aspect, an embodiment of the present application provides a server, applied to a first cloud platform, the server comprising: a first transceiver, a first processor, and a first memory storing a computer program;
[0026] The first transceiver, the first processor and the first memory communicate with each other via a first communication bus;
[0027] The first processor is configured to communicate with another device through the first transceiver; wherein,
[0028] The first processor is also used to execute the steps of the method described in the first aspect when running the computer program stored in the first memory in conjunction with the first transceiver.
[0029] In an eighth aspect, an embodiment of the present application provides a server, applied to a second cloud platform, the server comprising: a second transceiver, a second processor, and a second memory storing a computer program;
[0030] The second transceiver, the second processor and the second memory communicate with each other via a second communication bus;
[0031] The second processor is configured to communicate with another device through the second transceiver; wherein,
[0032] The second processor is also used to execute the steps of the method described in the second aspect when running the computer program stored in the second memory in conjunction with the second transceiver.
[0033] In a ninth aspect, an embodiment of the present application provides a device, comprising: a third transceiver, a third processor, and a third memory storing a computer program;
[0034] The third transceiver, the third processor and the third memory communicate with each other via a third communication bus;
[0035] The third processor is configured to communicate with another device through the third transceiver; wherein,
[0036] The third processor is also used to execute the steps of the method described in the third aspect when running the computer program stored in the third memory in combination with the third transceiver.
[0037] In a tenth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is executed by a first processor to implement the steps of the method described in the first aspect; or; the computer program is executed by a second processor to implement the steps of the method described in the second aspect; or; the computer program is executed by a third processor to implement the steps of the method described in the third aspect.
[0038] The Internet of Things information processing method and apparatus, device, and computer storage medium provided by the embodiments of the present application, wherein the first cloud platform receives the first request information; the first request information carries resource refresh indication information; the resource refresh indication information is used to instruct the first cloud platform to refresh the first resource of the first device; based on the resource refresh indication information, the resource-related information of the first resource is obtained; and the resource-related information is sent to the second cloud platform. In this way, the resource-related information of the first resource can be obtained by instructing the first cloud platform to refresh the first resource of the first device, so that the relevant information of the first resource in the first device can be timely understood and whether the first device is in working state can be determined. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A schematic diagram of an exemplary Internet of Things cloud service network architecture provided for an embodiment of the present application;
[0040] Figure 2 A schematic diagram of an information processing method provided in an embodiment of the present application Figure 1 ;
[0041] Figure 3 A schematic diagram of an information processing method provided in an embodiment of the present application Figure 2 ;
[0042] Figure 4 A schematic diagram of an information processing method provided in an embodiment of the present application Figure 3 ;
[0043] Figure 5 A schematic diagram of an information processing method provided in an embodiment of the present application Figure 4 ;
[0044] Figure 6 A schematic diagram of an information processing method provided in an embodiment of the present application Figure 5 ;
[0045] Figure 7 A schematic diagram of an information processing method provided in an embodiment of the present application Figure 6 ;
[0046] Figure 8 A schematic diagram of an information processing method provided in an embodiment of the present application Figure 7 ;
[0047] Fig. 9 A schematic diagram of an information processing method provided in an embodiment of the present application Figure 8 ;
[0048] Fig.10 A schematic diagram of an information processing method provided in an embodiment of the present application Figure 9 ;
[0049] Fig.11 A schematic diagram of an information processing interaction process provided in an embodiment of the present application Figure 1 ;
[0050] Fig.12 A schematic diagram of an information processing interaction process provided in an embodiment of the present application Figure 2 ;
[0051] Fig.13 A schematic diagram of an information processing interaction process provided in an embodiment of the present application Figure 3 ;
[0052] Fig.14 A schematic diagram of an information processing interaction process provided in an embodiment of the present application Figure 4 ;
[0053] Fig.15 A schematic diagram of the structure of an information processing device provided in an embodiment of the present application Figure 1 ;
[0054] Fig.16 A schematic diagram of the structure of an information processing device provided in an embodiment of the present application Figure 2 ;
[0055] Fig.17 A schematic diagram of the structure of an information processing device provided in an embodiment of the present application Figure 3 ;
[0056] Fig.18 A schematic diagram of the server hardware structure provided in the embodiment of the present application Figure 1 ;
[0057] Fig.19 A schematic diagram of the server hardware structure provided in the embodiment of the present application Figure 2 ;
[0058] Fig. 20 A schematic diagram of the hardware structure of a device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0059] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present invention.
[0060] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish different objects rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
[0061] refer to Figure 1 A schematic diagram of an IoT cloud service network architecture is shown, in which device 111 and device 112 are connected to the source cloud platform 11 and communicate using the device to cloud (D2C) interface; similarly, device 121 and device 122 are connected to the target cloud platform 12 and communicate through the D2C interface. Here, the source cloud platform 11 and the target cloud platform 12 can control the devices connected to them, such as device software and hardware upgrades, device function control, resource updates, resource subscriptions, resource queries, etc.
[0062] The source cloud platform 11 and the target cloud platform 12 are connected and communicate through the Cloud to Cloud (C2C) interface specified by the Open Connectivity Foundation (OCF). Here, the source cloud platform 11 and the target cloud platform 12 can perform resource management on the devices connected to each other through the C2C interface, such as resource query, resource update, resource subscription, etc.
[0063] in addition, Figure 1 The network architecture shown also includes a client 13, and the client 13 and the source cloud platform 11 can be connected via a network. Here, the client 13 refers to an application connected to the source cloud platform 11. The user can access any device in the network architecture through the connection between the client 13 and the source cloud platform 11; for example, the client 13 can send a resource acquisition instruction about the device 121 to the source cloud platform 11, so that the source cloud platform 11 responds to the instruction and accesses the resources of the device 121 under the target cloud platform 12 through the OCF C2C application programming interface (Application Programming Interface, API), and obtains the resource attribute information of the resource, returns the resource attribute information to the client, and presents the resource attribute information through the client's display interface.
[0064] It should be noted that in Figure 1In the IoT cloud service network architecture shown, resource requests and responses can be completed between cloud platforms through the HyperText Transfer Protocol (HTTP).
[0065] The resource query interfaces currently supported by the OCF C2C API are shown in Table 1:
[0066] Table 1: OCF C2C API resource query interface
[0067]
[0068] The resource update interfaces currently supported by the OCF C2C API are shown in Table 2:
[0069] Table 2: OCF C2C API resource update interface
[0070]
[0071] The resource subscription interfaces currently supported by the OCF C2C API are shown in Table 3:
[0072] Table 3: OCF C2C API resource subscription interface
[0073]
[0074]
[0075] It should be noted that {deviceid} appearing in Tables 1 to 3 refers to the request object identification information, {resourcehref} refers to the URI of the resource of the request object, and {subscriptionId} is an identifier used to identify the subscription event after the subscription is completed.
[0076] For example, when the source cloud platform 11 needs to subscribe to the resources of the device 121 under the target cloud platform 12, the source cloud platform 11 can send a subscription device resource attribute change request to the target cloud platform 12: POST: / api / v1 / devices / {deviceid} / {resourcehref} / subscriptions. The load information (Payload) carried in the subscription request can include:
[0077] {
[0078] "eventsUrl":"https: / / mynotificationuri",
[0079] "eventTypes":["resource_contentchanged"],
[0080] "signingSecret":"DVDUEBe5nciVSXU85BPxrAjSsHenTzWY"
[0081] }
[0082] Among them, the eventsUrl field is used to indicate the information reporting address. The value of the eventsUrl field is provided by the source cloud platform 11. Usually, the value of the eventsUrl field is a Uniform Resource Locator (URL) address. The eventTypes field indicates the event type. resource_contentchanged refers to a resource attribute information change event, that is, when the resource attribute information changes, the resource attribute information is reported. The signingSecret field represents the signing key information, which is used for data integrity verification; specifically, the target cloud platform can use the signing key information to sign the data, and send the signed data to the source cloud platform, so that the source cloud platform (ie, eventsUrl) can perform data integrity verification on the received data.
[0083] Furthermore, after the resource subscription is successful, the target cloud platform 12 will return a subscription identifier to the source cloud platform 11, which may specifically include the following information:
[0084] subscriptionId:
[0085] {
[0086] "subscriptionId":"1eeb465c-5e8d-4305-a366-bbf035fff671"
[0087] },
[0088] In this way, the source cloud platform 11 can obtain the corresponding subscription information through the subscription identifier.
[0089] Furthermore, after the resource subscription is successful, when the resource attribute content of the device 121 connected to the target cloud platform 12 changes, the target cloud platform 12 will send the resource attribute information of the device 121 to the eventURL address provided by the source cloud platform 11.
[0090] Currently, the IoT protocol only provides subscriptions for changes in OCF device resource attribute content, that is, only when the device's resource attribute information changes will the resource attribute information be sent; the resource subscription method is single and not flexible enough. Moreover, if the device resource attribute does not change for a long time, the source cloud platform will not be able to perceive whether the device on the target cloud platform is in normal working condition.
[0091] Based on this, the embodiment of the present application provides an Internet of Things information processing method, which can be applied to a first cloud platform, which can be a server, an independent computing device, or a computing cluster, and the implementation of the present application does not limit this. Here, the Internet of Things information processing method can be applied to Figure 1 In the IoT cloud service architecture shown in FIG. 1 , the first cloud platform described in the embodiment of the present application may be Figure 1 The target cloud platform 12 in the IoT cloud service architecture is shown.
[0092] Figure 2 is a schematic flow chart of the Internet of Things information processing method provided by the embodiment of the present application. Figure 2 As shown, the method includes steps 210 to 220. Among them,
[0093] Step 210: Receive first request information; the resource refresh indication information is used to instruct the first cloud platform to refresh resource-related information of the first resource in the first device;
[0094] Step 220: Obtain resource-related information of the first resource based on the resource refresh indication information;
[0095] Step 230: Send resource-related information to the second cloud platform.
[0096] In some implementations, the first cloud platform may receive the first request information sent by the second cloud platform.
[0097] Here, the first cloud platform and the second cloud platform are different. The first cloud platform and the second cloud platform may be cloud platforms of different manufacturers, or different cloud platforms established by the same manufacturer.
[0098] It should be understood that the first cloud platform can be connected to the second cloud platform through various types of connection methods and communicate through the C2C interface. For example, the first cloud platform can be connected to the second cloud platform through a wired method or through a cellular communication. The embodiment of the present application does not limit the connection method between the cloud platforms.
[0099] In some implementations, the first cloud platform may also receive the first request information sent by the second cloud platform and forwarded by other cloud platforms.
[0100] In some embodiments, the first request information may include a device identifier and / or a resource identifier. Here, the device identifier may be the identifier information of an IoT device connected to the first cloud platform; the resource identifier may be various types of resource identifiers in the IoT device connected to the first cloud platform. It should be understood that the device connected to the first cloud platform may communicate with the first cloud platform based on the D2C interface and in accordance with the IoT protocol, and receive instructions from the first cloud platform for corresponding processing.
[0101] It should be noted that the resources mentioned in the embodiments of the present application may refer to static attributes such as the device model, software and hardware versions, and manufacturers, and may also refer to dynamic attributes such as operations that can be performed by the first device, events and parameters that can be reported, and status parameters that can be read, such as electricity consumption, water consumption, temperature, etc.
[0102] The first cloud platform may parse the first request information, and determine the requested resource according to the device identifier and / or resource identifier carried in the first request information.
[0103] In some implementations, when the first request information only includes a device identifier, it can be determined that the device corresponding to the device identifier on the first cloud platform is the first device, and all resources of the first device are determined to be first resources.
[0104] In other embodiments, when the first request information only includes a resource identifier, it can be determined that the device on the first cloud platform having a resource matching the resource identifier is the first device, and the resource corresponding to the source identifier stored in the first device is the first resource.
[0105] In some further implementations, when the first request information includes a device identifier and a resource identifier, it can be determined that the device corresponding to the device identifier on the first cloud platform is the first device, and the resource corresponding to the resource identifier stored in the first device is the first resource.
[0106] In the embodiment provided by the present application, the first request information also includes resource refresh indication information, where the resource refresh indication information is used to instruct the first cloud platform to refresh the resource-related information of the first resource in the first device. In this way, after receiving the first request information, the first cloud platform parses the first request information, and when the resource refresh indication information is parsed, the resource-related information of the first resource is obtained according to the instruction of the first request information, and the obtained resource-related information is sent to the second cloud platform.
[0107] The information processing method provided in the embodiment of the present application can obtain resource-related information of the first resource by instructing the first cloud platform to refresh the first resource of the first device, so that the relevant information of the first resource in the first device can be timely understood and whether the first device is in a working state can be determined.
[0108] In the embodiments provided in the present application, the resource refresh indication information may instruct the first cloud platform to refresh the resource-related information of the first resource in a variety of ways. Two ways are described in detail below:
[0109] 1. The resource refresh indication information may be an indication bit in the first request information. By setting a specific value for the indication bit, the first cloud platform is instructed to refresh the resource-related information of the first resource.
[0110] In a feasible example, the value of the above-mentioned indicator bit can be set to 1 to instruct the first cloud platform to refresh the resource-related information of the first resource. The embodiment of the present application does not limit the specific numerical representation of the identification bit.
[0111] 2. The resource refresh indication information may include event type information. Here, by setting the event type information as a resource refresh event, the first cloud platform is instructed to refresh the resource-related information of the first resource.
[0112] In a feasible example, the event type information may be represented by: "eventTypes":["resource_refresh"].
[0113] It can be understood that the resource refresh indication information can be the event type information carried in the first request information. After receiving the first request information, the first cloud platform parses the first request information, and when the event type is parsed as a resource refresh event type, it determines to refresh the requested first resource according to a specific time period.
[0114] Based on the above embodiments, reference Figure 3 The information processing method shown is shown in FIG. Figure 2 Step 220 obtains resource-related information of the first resource based on the resource refresh indication information, which can also be implemented in the following manner:
[0115] Step 2201, obtaining refresh cycle information;
[0116] Step 2202: Obtain resource-related information of the first resource according to the refresh cycle information and the resource refresh indication information.
[0117] Here, the first cloud platform may also refresh the resource-related information of the first resource in the first device based on a specific time period and resource refresh indication information.
[0118] It can be understood that the first cloud platform obtains refresh cycle information to determine the resource refresh cycle; and obtains resource-related information once in each refresh cycle, and then sends the resource-related information obtained each time to the second cloud platform.
[0119] In the embodiment provided in the present application, the refresh cycle information is preset, or the refresh cycle information is carried in the first request information.
[0120] Here, when the first request information only includes resource refresh indication information, the first cloud platform may use a pre-agreed time period or a default time period as refresh period information to refresh the resource-related information of the first resource.
[0121] When the first request information includes resource refresh indication information and refresh cycle information in the first request information, the first cloud platform may refresh resource-related information of the first resource based on the refresh cycle information carried in the first request information.
[0122] In the embodiment provided in the present application, when the first request information carries refresh cycle information, the refresh cycle information can be represented by a cycle field and a field value of the cycle field, and the refresh cycle information is the field value corresponding to the cycle field.
[0123] Exemplarily, the refresh period information may be "periodic":2; here, periodic refers to the period field, 2 is the field value corresponding to the period field, and the unit of the refresh period is seconds (s). In this example, it can be determined that the refresh period is 2s.
[0124] In summary, the first cloud platform can obtain the resource-related information of the first resource in each refresh cycle, and send the obtained resource-related information to the second cloud platform. In this way, regardless of whether the first resource in the first device changes, the second cloud platform can obtain the resource-related information of the first resource within a fixed time period. In this way, the flexibility of resource subscription is improved.
[0125] In some implementations, the resource-related information may include only the resource attribute information of the first resource, and the resource-related information may also include the resource attribute information of the first resource and the time information when the first cloud platform obtains the resource attribute information. Here, the time information may be a timestamp. In this way, the second cloud platform can obtain the time information corresponding to each resource attribute information, and can draw a corresponding relationship diagram between the resource attribute change and the time change of the first resource according to the actual situation, and can interpret the change rules through graphics, so as to perform relevant calculations.
[0126] Based on the above embodiment, there are multiple implementation methods for obtaining the resource-related information of the first resource according to the refresh cycle information and the resource refresh indication information in step 2202, three of which are described below:
[0127] Method 1:
[0128] refer to Figure 4In the flowchart shown in FIG. 2 , the specific implementation of step 2202 of acquiring resource-related information of the first resource according to the refresh cycle information and the resource refresh indication information includes:
[0129] Step 410: Send an observation request to the first device; the observation request instructs the first device to send resource attribute information of the first resource to the first cloud platform based on the refresh cycle information;
[0130] Step 420: Based on the indication of the resource refresh indication information and in accordance with the refresh cycle information, receive the resource attribute information of the first resource sent by the first device, and determine the resource-related information based on the resource attribute information.
[0131] It is understandable that after receiving the first request information, the first cloud platform parses the first request information and can determine that the first request information is a request to refresh the first resource in the first device according to the refresh cycle information. In this way, the first cloud platform sends an observe request to the first device according to the first request information, and carries the above refresh cycle information in the first observation request to instruct the first device to report the resource attribute information of the first resource according to the refresh cycle information.
[0132] Furthermore, after receiving the observation request, the first device reports the resource according to the refresh cycle information carried in the observation request. In this way, the first cloud platform can receive the resource attribute information reported by the first device in each refresh cycle.
[0133] In some implementations, the observation request may be a device resource request based on an observation mechanism, and the first cloud platform may set the value of the periodic option in the observation mechanism according to the refresh cycle information carried in the first request information, so that the first device can report resources according to the value of the set periodic option. After receiving the device resource request based on the observation mechanism, the first device responds to the request, establishes an observation mechanism with the first cloud platform, and reports the attribute information of the first resource to the first cloud platform in each refresh cycle.
[0134] In some implementations, the first cloud platform may directly use the received resource attribute information as resource-related information.
[0135] In other embodiments, the first cloud platform can determine the time information when the first device reports the resource attribute information (i.e., the time when the resource attribute information is obtained), and obtain the resource-related information based on the resource attribute information and the time information when the resource attribute information is obtained. In other words, the first cloud platform can send the resource attribute information and the time when the resource attribute information is reported to the second cloud platform.
[0136] It should be noted that before sending an observation request to the first device, the first cloud platform can also determine whether an observation mechanism has been established between the first device and the first device. If no observation mechanism has been established, an observation request is sent to the first cloud platform. If the observation mechanism has been established, resource-related information can be obtained through method two.
[0137] Method 2:
[0138] refer to Figure 5 In the flowchart shown in FIG. 22, the specific implementation method of step 2202, obtaining resource-related information of the first resource according to the refresh cycle information and the resource refresh indication information, includes:
[0139] Step 510: If an observation mechanism has been established between the first cloud platform and the first device, based on the indication of the resource refresh indication information and in accordance with the refresh cycle information, resource attribute information of the first resource is obtained from the first storage space, and based on the resource attribute information, resource-related information is determined; the first storage space is used to store the resource attribute information received through the observation mechanism.
[0140] The observation mechanism represents that the first device sends resource attribute information of the first resource to the first cloud platform when the attribute of the first resource changes.
[0141] In the embodiment provided in the present application, the first cloud platform can determine whether an observation mechanism has been established between the first cloud platform and the first device, that is, determine whether the current first device will actively report its resource attribute information to the first cloud platform.
[0142] If an observation mechanism has been established between the first cloud platform and the first device, it is considered that the first device can actively report its resource attribute information to the first cloud platform and save the reported resource attribute information to the first storage space. Here, the first storage space can be the memory of the first device.
[0143] In this way, when an observation mechanism has been established between the first cloud platform and the first device, the first cloud platform can obtain resource attribute information of the first device from the first storage space within each fixed refresh cycle according to the first request information.
[0144] It should be noted that in the embodiment of the present application, the first device based on the above observation mechanism reports the resource attribute information to the first cloud platform only when the resource attribute information of the first resource changes. In the present application, after the first device reports the resource attribute information, the first cloud platform can use the new resource attribute information to replace the resource attribute information previously stored in the first storage space, and the first cloud platform can also save multiple resource attribute information in the order of reception time.
[0145] Based on this, the first cloud platform can obtain the latest resource attribute information from the first storage space in each fixed refresh cycle, and obtain resource-related information based on the latest resource attribute information.
[0146] In some implementations, the first cloud platform uses the latest resource attribute information obtained in the first storage space as resource-related information.
[0147] In other embodiments, the first cloud platform may determine the time information of obtaining the latest resource attribute information from the first storage space each time, and obtain the resource-related information based on the latest resource attribute information and the time information of obtaining the latest resource attribute information from the first storage space. In other words, the first cloud platform may send the resource attribute information and the time of obtaining the resource attribute information from the first storage space to the second cloud platform.
[0148] Method 3:
[0149] refer to Figure 6 In the flowchart shown in FIG. 2202, the specific implementation method of obtaining resource-related information of the first resource according to the refresh cycle information and the resource refresh indication information includes:
[0150] Step 610: Based on the indication of the resource refresh indication information and according to the refresh time period information, a resource acquisition request is sent to the first device; the resource acquisition request is used to obtain resource attribute information of the first resource:
[0151] Step 620: Receive resource attribute information of the first resource sent by the first device, and determine resource-related information based on the resource attribute information.
[0152] In the embodiment provided by the present application, after receiving the first request information, the first cloud platform parses the first request information and can determine that the first request information is a request to refresh the first resource in the first device according to the refresh cycle information. In this way, based on the first request information, the first cloud platform actively sends a resource acquisition request to the first device once in each time period. And in each time period, the resource attribute information of the first resource returned by the first device is received.
[0153] In some implementations, the first cloud platform may directly use the received resource attribute information as resource-related information.
[0154] In other embodiments, the first cloud platform may determine the time information of receiving the resource attribute information (i.e., the time of obtaining the resource attribute information), and obtain the resource-related information based on the resource attribute information and the time information of obtaining the resource attribute information. In other words, the first cloud platform may send the resource attribute information and the time when the resource attribute information was reported to the second cloud platform.
[0155] In some implementations, the resource-related information mentioned in the embodiments of the present application may include resource attribute information of the first resource and time information for acquiring the resource attribute information.
[0156] Accordingly, in step 420, step 510, and step 620, resource-related information is determined based on the resource attribute information, including:
[0157] Determine time information for obtaining resource attribute information;
[0158] Based on the resource attribute information and the time information of acquiring the resource attribute information, the resource related information is obtained.
[0159] That is to say, in each time period, the first cloud platform not only needs to obtain resource attribute information, but also needs to record the time information of obtaining the resource attribute information, and then send the resource attribute information and the time information of obtaining the resource attribute information to the second cloud platform at the same time. In this way, the second cloud platform can know the acquisition time corresponding to each resource attribute information, and can draw a corresponding relationship diagram between the device resource attribute change and the time change based on the resource attribute information and the acquisition time, and can interpret the change rules through graphics, so as to perform relevant calculations.
[0160] Based on the above embodiments, reference Figure 7 As shown in the flowchart, the information processing method provided in the embodiment of the present application further includes the following steps:
[0161] Step 240: Create a second storage space; the second storage space is used to store offline resource related information of the first resource;
[0162] Step 250: When the first cloud platform is disconnected from the second cloud platform, based on the resource refresh indication information and in accordance with the refresh cycle information, obtain offline resource-related information of multiple first resources, and store the multiple offline resource-related information in the second storage space; the offline resource-related information includes offline resource attribute information of the first resource, and time information for obtaining the offline resource attribute information.
[0163] Here, when the first cloud platform is disconnected from the second cloud platform, and the second cloud platform has not instructed the first cloud platform to delete the request to refresh the first resource, in this case, the first cloud platform can obtain offline resource-related information of the first resource during each refresh cycle of the disconnection, and store the obtained multiple offline resource-related information in the second storage space, so that after the first cloud platform and the second cloud platform re-establish the connection, the offline resource-related information obtained during the disconnection time can be sent to the second cloud platform.
[0164] In the embodiment provided in the present application, offline resource-related information includes offline resource attribute information of the first resource, and time information for obtaining the offline resource attribute information; that is, the first cloud platform can record the time for obtaining the offline resource-related information, and save the offline resource attribute information and the time for obtaining the offline resource attribute information together in the second storage space.
[0165] There are three implementation methods for obtaining offline resource-related information of multiple first resources based on a time period in step 250. These three implementation methods are similar to obtaining resource-related information of the first resources mentioned in the above embodiment.
[0166] That is to say, a first implementation method may be: the first cloud platform obtains the resource attribute information reported by the first device in each refresh cycle, and stores the resource attribute information and the time of receiving the resource attribute information as offline resource-related information in the second storage space. A second implementation method may be: the first cloud platform obtains the latest saved resource attribute information from the first storage space in each refresh cycle, and stores the resource attribute information and the time of obtaining the resource attribute information from the first storage space as offline resource-related information in the second storage space. A third implementation method may be: the first cloud platform sends resource request information to the first device in each refresh cycle, and receives a response from the first device, and further stores the received resource attribute information of the first resource and the time of receiving the resource attribute information as offline resource-related information in the second storage space.
[0167] In some implementations, step 250 of storing the multiple offline resource related information in the second storage space may include:
[0168] According to the time sequence of acquiring the multiple offline resource attribute information, the multiple offline resource related information is stored in the second storage space in sequence.
[0169] That is to say, the first device may store the offline resource related information in the order in which the offline resource attribute information is acquired.
[0170] It should be noted that step 240 may be performed before step 220 or simultaneously with step 220 .
[0171] Based on the above embodiments, reference Figure 8 In the flowchart shown in FIG. 2 , after step 250, the following steps may also be performed:
[0172] Step 260: When the connection between the first cloud platform and the second cloud platform is reestablished, obtain at least one offline resource-related information from the multiple offline resource-related information stored in the second storage space, and send at least one offline resource-related information to the second cloud platform until all the multiple offline resource-related information in the second storage space are sent.
[0173] It is understandable that when the first cloud platform and the second cloud platform re-establish the connection, the first cloud platform sends the multiple offline resource related information stored in the second storage space to the second cloud platform. Here, the first cloud platform can read out the multiple offline resource related information stored in the second storage space one by one and send them to the second cloud platform, and the first cloud platform can also read multiple offline resource related information from the second storage space each time and send them to the second cloud platform, which is not limited in the embodiments of the present application.
[0174] In some embodiments, at least one offline resource related information is acquired from the multiple offline resource related information in sequence according to the time sequence of the multiple offline resource related information in the second storage space.
[0175] It is understandable that the first device can read the offline resource related information in the time sequence of obtaining the offline resource attribute information, and send the offline related information to the second cloud platform in the time sequence of obtaining the offline resource attribute information.
[0176] In the embodiment provided by the present application, when the first cloud platform and the second cloud platform re-establish a connection, the first cloud platform sends offline resource-related information while also acquiring resource-related information within each time period according to the time period. At this time, the first cloud platform can send offline resource-related information and currently acquired resource-related information based on the following sending strategy.
[0177] Specifically, when the first cloud platform and the second cloud platform re-establish a connection, based on the instructions of the refresh indication information and in accordance with the refresh cycle information, resource-related information of the first resource is obtained; if offline resource-related information is also stored in the second storage space, the resource-related information is stored in the second storage space as offline resource-related information; if offline resource-related information is not stored in the second storage space, the resource-related information will be sent to the second cloud platform.
[0178] That is to say, when the first cloud platform sends offline resource-related information to the second cloud platform, the first cloud platform is still continuously acquiring resource-related information according to the refresh cycle. If the offline resource-related information stored in the current second storage space has not been fully sent out, the resource-related information currently acquired by the first cloud platform is stored in the second storage space as offline resource-related information; if there is no offline resource-related information in the current second storage space, the first cloud platform directly sends the acquired current resource-related information to the second cloud platform.
[0179] In this way, the conflict problem between the sending of offline resource-related information and the currently acquired resource-related information is solved, so that the offline resource-related information and the currently acquired resource-related information are sent in an orderly manner.
[0180] Based on the above embodiments, the present application also provides an information processing method, which can be applied to a second cloud platform. The second cloud platform can be an independent computing device or a computing cluster, which is not limited in the present application. Figure 1 In the IoT cloud service architecture shown in FIG. 1 , the second cloud platform of the embodiment of the present application may be Figure 1 The source cloud platform 11 in the IoT cloud service architecture is shown.
[0181] Fig. 9 is a schematic flow chart of the information processing method provided in the embodiment of the present application. Fig. 9 As shown, the method includes step 910 and step 920. Among them,
[0182] Step 910: Send a first request message; the first request message carries resource refresh indication information; the resource refresh indication information is used to instruct the first cloud platform to refresh resource-related information of the first resource in the first device;
[0183] Step 920: Receive resource-related information of the first resource sent based on the resource refresh indication information.
[0184] Here, the second cloud platform may send the first request information to the first cloud platform.
[0185] In the embodiment provided in the present application, the second cloud platform may receive the instruction sent by the client and send the first request information to the first cloud platform. The second cloud platform may also send the first request information to the first cloud platform according to actual needs.
[0186] In some implementations, the first request information may include a device identifier and / or a resource identifier. Here, the device identifier may be the identifier information of an IoT device connected to the first cloud platform; the resource identifier may be various types of resource identifiers in the IoT device connected to the first cloud platform.
[0187] It should be noted that the resources mentioned in the embodiments of the present application may refer to static attributes such as the device model, software and hardware versions, and manufacturers, and may also refer to dynamic attributes such as operations that can be performed by the first device, events and parameters that can be reported, and status parameters that can be read, such as electricity consumption, water consumption, temperature, etc.
[0188] In the embodiment provided in the present application, the first request information also includes resource refresh indication information, where the resource refresh indication information is used to instruct the first cloud platform to refresh resource-related information of the first resource in the first device.
[0189] In this way, after receiving the first request information, the first cloud platform parses the first request information, and when parsing the resource refresh indication information, obtains the resource-related information of the first resource according to the indication of the first request information, and sends the obtained resource-related information to the second cloud platform. In this way, the second cloud platform can obtain the resource-related information of the first resource and perform corresponding processing.
[0190] The information processing method provided in the embodiment of the present application can obtain resource-related information of the first resource by instructing the first cloud platform to refresh the first resource of the first device, so that the relevant information of the first resource in the first device can be timely understood and whether the first device is in a working state can be determined.
[0191] In some implementations, the resource refresh indication information includes event type information; wherein, when the event type information is a resource refresh event, it instructs the first cloud platform to refresh the first resource.
[0192] In some implementations, the first request information further carries refresh cycle information; the refresh cycle information is used to indicate a time period for refreshing the first resource.
[0193] In some implementations, the refresh cycle information is represented by a cycle field and a field value of the cycle field, and the refresh cycle information is a field value corresponding to the cycle field.
[0194] In some implementations, the resource-related information includes resource attribute information of the first resource and time information for acquiring the resource attribute information.
[0195] In some implementations, step 920 of receiving resource-related information of the first resource includes:
[0196] receiving at least one resource-related information of a first resource;
[0197] Based on the resource attribute information of at least one first resource and the time information of acquiring the at least one resource attribute information, a corresponding relationship between the resource attribute information of the first resource and the time is established.
[0198] The second platform can obtain resource attribute information at a fixed refresh cycle. In this way, the first cloud platform can draw a corresponding relationship diagram between resource attribute changes and time changes based on the received resource attribute information and the time information of obtaining the resource attribute information. The first cloud platform can interpret the change rules through graphics and perform relevant calculations.
[0199] Based on the above embodiments, the present application also provides an information processing method, which can be applied to a first device. Here, the information processing method can be applied to Figure 1 In the IoT cloud service architecture shown in FIG. 1 , the first device in the embodiment of the present application may be Figure 1 Device 121 or device 122 in the IoT cloud service architecture shown.
[0200] Fig.10 is a schematic flow chart of the information processing method provided in the embodiment of the present application. Fig.10 As shown, the method includes step 1010 and step 1020. Among them,
[0201] Step 1010: receiving an observation request; the observation request includes refresh cycle information;
[0202] Step 1020: Send resource attribute information of the first resource to the first cloud platform according to the refresh cycle information.
[0203] Here, the first device may receive an observation request sent by the first cloud platform.
[0204] The observation request carries the resource identifier and refresh cycle information of the first resource in the first device, so as to instruct the first device to report the resource attribute information of the first resource according to the refresh cycle information.
[0205] In the embodiment provided by the present application, after receiving the observation request, the first device reports the resource according to the refresh cycle information carried in the observation request. That is, the first device sends its resource attribute information to the first cloud platform in each refresh cycle. In this way, the first cloud platform can receive the resource attribute information reported by the first device in each refresh cycle.
[0206] In some implementations, the observation request may be a device resource request based on an observation mechanism, and the first cloud platform may set the value of the time period (periodic) option in the observation mechanism according to the refresh cycle information carried in the first request information, so that the first device can report resources according to the set periodic option. After receiving the device resource request based on the observation mechanism, the first device responds to the request, establishes an observation mechanism with the first cloud platform, and reports the attribute information of the first resource to the first cloud platform in each refresh cycle.
[0207] It can be seen that regardless of whether the resource attribute information in the first device changes, the first device can report the resource attribute information to the first cloud platform within a fixed refresh cycle, thereby improving the timeliness and flexibility of resource reporting.
[0208] The data processing method provided in the embodiment of the present application is described in detail below in conjunction with actual application scenarios.
[0209] based on Figure 1 In the application scenario shown in FIG. 1 , in one example, reference is made to Fig.11 The information processing interaction process shown is shown Figure 1 , the information processing process may include the following steps:
[0210] Step 1a: The source cloud platform 11 (ie, the second cloud platform mentioned above) sends a first request message to the target cloud platform 12 (ie, the first cloud platform mentioned above).
[0211] Here, the first request information carries resource refresh indication information, and the resource refresh indication information event type information, and the event type information is a resource refresh event, which can indicate that the event of the first request information is an event for refreshing the first resource of the first device; the first request information also carries refresh cycle information, which is used to set the time interval for refreshing the first resource.
[0212] The first request information also carries the device identifier of the requested device 121 (ie, the first device mentioned above) and the resource identifier of the first resource in the device 121; the requested device resource is indicated by the carried device identifier and resource identifier.
[0213] In some implementations, the first request information may use a C2C API for device resource subscription, i.e., POST: / api / v1 / devices / {deviceid} / {resourcehref} / subscriptions. Here, the first request information is different from the C2C API for device resource subscription in that the field value corresponding to the resource type field (i.e., eventTypes field) in the payload carried by the first request information is "resource_refresh", and a periodic field (i.e., periodic field) is also added to the first request information to set the time interval for device resource refresh.
[0214] In the embodiment provided in the present application, the first request information may also carry the address of the requester, which may be the address of the source cloud platform or the address of the client 12 connected to the source cloud platform, which is not limited in the embodiment of the present application.
[0215] Exemplarily, the payload carried in the first request information may include:
[0216] {
[0217] "eventsUrl":"https: / / mynotificationuri",
[0218] "eventTypes":["resource_refresh"],
[0219] "signingSecret":"DVDUEBe5nciVSXU85BPxrAjSsHenTzWY",
[0220] "periodic":2
[0221] }
[0222] Step 2a: The target cloud platform 12 sends an observation request to the device 121 based on the first request information.
[0223] Here, the target cloud platform 12 sends an observation request to the device 121 according to the device identifier and the first resource identifier of the device 121 carried in the first request information.
[0224] The observation request may carry refresh cycle information, and the refresh cycle information may be the same as the refresh cycle information carried in the first request information. In addition, the observation request may also carry a resource identifier of the first resource.
[0225] Step 3a: The device 121 sets a refresh period of the first resource based on the refresh period information in the observation request.
[0226] Specifically, the first device sets the periodic option in the observe operation of the first resource according to the refresh period information in the observation request, so that the first device can report the first resource according to the set periodic interval.
[0227] Step 4a: The device 121 sends a successful observation mechanism establishment message to the target cloud platform 12.
[0228] Step 5a: Based on the refresh cycle, the device 121 sends the resource attribute information of the first resource to the target cloud platform 12 in each refresh cycle.
[0229] refer to Fig.11 , when the refresh period is 2s, the device 121 can actively send the resource attribute information of the first resource to the first cloud platform once every 2s.
[0230] Step 6a: The target cloud platform 12 receives the resource attribute information of the first resource sent by the device 121 in each refresh cycle, and sends the received resource attribute information to the source cloud platform 11.
[0231] refer to Fig.11 , the target cloud platform 12 can receive the resource attribute information reported by the device 121 at regular intervals, and immediately forward the received resource attribute information to the source cloud platform 11.
[0232] It should be noted that the resource attribute information may be sent to the source cloud platform 11 to the address carried in the first request information, such as "eventsUrl": https: / / mynotificationuri.
[0233] Optionally, each time the target cloud platform 12 receives resource attribute information of the first resource, it can record the time of receiving the resource attribute information, obtain resource-related information based on the time of receiving each resource attribute information and the resource attribute information; and send the obtained resource-related information to the source cloud platform 11.
[0234] It should be noted that after receiving the first request information, the target cloud platform continues to obtain resource-related information in each refresh cycle according to the first instruction information, and stops obtaining the resource-related information only after receiving the first request information for deletion. Therefore, steps 5 and 6 can be continuously executed until the target cloud platform receives the first request information for deletion.
[0235] based on Figure 1 In another example, refer to the application scenario shown in Fig.12 The information processing interaction shown Figure 2 , the information processing process may include the following steps:
[0236] Step 1b: The source cloud platform 11 (ie, the second cloud platform mentioned above) sends a first request message to the target cloud platform 12 (ie, the first cloud platform mentioned above).
[0237] Here, the first request information may carry refresh indication information, refresh cycle information, a device identifier of the device 121 , and a resource identifier of the first resource in the device 121 .
[0238] Step 2b: The target cloud platform 12 creates a database corresponding to the first resource (ie, the second storage space mentioned above) according to the first request information.
[0239] Here, after parsing the first request information, the target cloud platform 12 determines to create a corresponding database for the first resource of the device 121 for storing offline resource related information.
[0240] Step 3b: The target cloud platform 12 sends an observation request to the device 121 based on the first request information.
[0241] Step 4b: The device 121 sets a refresh period of the first resource based on the refresh period information in the observation request.
[0242] Step 5b: The device 121 sends a successful observation mechanism establishment message to the target cloud platform 12.
[0243] Here, the observation mechanism establishment success message may carry a subscription identifier, that is, subscriptionID.
[0244] Step 6b: Based on the refresh cycle, the device 121 sends the resource attribute information of the first resource to the target cloud platform 12 in each refresh cycle.
[0245] Step 7b: The target cloud platform 12 receives the resource attribute information of the first resource sent by the device 121 in each refresh cycle, and sends the received resource attribute information to the source cloud platform in each refresh cycle.
[0246] Step 8b, the target cloud platform 12 detects that it is disconnected from the source cloud platform 11, continues to receive multiple offline resource attribute information sent by the device 121 according to the refresh time period, and obtains the time information of receiving each offline resource attribute information, and stores the offline resource attribute information and the time information of receiving the offline resource attribute information as offline resource related information in the database.
[0247] Here, when the source cloud platform 11 is disconnected from the target cloud platform 12, the source cloud platform 11 does not delete the first request information on the target cloud platform, and the device 121 continues to report its offline resource attribute information to the target cloud platform 12 in a refresh cycle.
[0248] While receiving the offline resource attribute information reported in each refresh cycle, the target cloud platform 12 can also obtain the reporting time of each offline resource attribute information, and further store each offline resource attribute information and its corresponding reporting time in the database.
[0249] Optionally, the target cloud platform 12 may store the offline resource attribute information and its corresponding reporting time in a database according to the reporting time sequence of the offline resource attribute information.
[0250] Exemplary, reference Fig.12As shown, the refresh cycle is 2s. After the target cloud platform 12 is disconnected from the source cloud platform 11, the device 121 still actively sends resource attribute information to the target cloud platform 12 once every 2s. The target cloud platform 12 stores the resource attribute information sent by the device 121 in the corresponding database in chronological order, and also stores the time when the resource attribute information is reported.
[0251] Step 9b, the target cloud platform 12 detects the reconnection with the source cloud platform 11, obtains at least one offline resource related information from the database, and sends at least one offline resource related information to the source cloud platform 11 until all the offline resource related information in the database is sent.
[0252] Optionally, the target cloud platform 12 may obtain offline resource related information from the database according to the reporting time sequence of the offline resource attribute information, and send the obtained offline resource related information to the source cloud platform 11 .
[0253] It is worth noting that reference Fig.12 As shown, when the target cloud platform 12 sends offline resource related information in the database to the source cloud platform 11, the device 121 also reports resource attribute information to the target cloud platform 12 according to the resource refresh cycle. If there is offline resource related information in the database, the resource attribute information reported by the device 121 is stored in the database; if there is no offline resource related information in the database, the target cloud platform 12 directly sends the resource attribute information reported by the device 121 to the source cloud platform 11.
[0254] based on Figure 1 In another example, referring to the application scenario shown in Fig.13 The information processing interaction shown Figure 3 , the information processing process may include the following steps:
[0255] Step 1c: The source cloud platform 11 (ie, the second cloud platform mentioned above) sends a first request message to the target cloud platform 12 (ie, the first cloud platform mentioned above).
[0256] Here, the first request information may carry refresh indication information, refresh cycle information, a device identifier of the device 121 , and a resource identifier of the first resource in the device 121 .
[0257] Step 2c: The target cloud platform 12 creates a database (ie, the second storage space mentioned above) according to the first request information.
[0258] Here, after parsing the first request information, the target cloud platform 12 determines to create a corresponding database for the first resource of the device 121 for storing offline resource related information.
[0259] Step 3c: Based on the first request information, the target cloud platform 12 sends a resource acquisition request to the device 121 in each refresh cycle.
[0260] Here, the target cloud platform 12 will actively send a resource acquisition request to the device 121 in each refresh cycle. The resource acquisition request may carry a resource identifier of the first resource.
[0261] Step 4c: The target cloud platform 12 receives the response of the device 121 to the resource acquisition request and obtains resource attribute information.
[0262] Here, the target cloud platform 12 will receive resource attribute information returned by the device 121 each time after sending a resource acquisition request.
[0263] Step 5c: The target cloud platform 12 sends the resource attribute information received in each refresh cycle to the source cloud platform 11.
[0264] In the embodiment provided in the present application, after the source cloud platform 11 sends the first request information to the target cloud platform 12, the target cloud platform 12 does not establish an observation mechanism with the device 121, but directly actively sends a resource acquisition request to the device 121 within each refresh cycle; that is, the device 121 will not actively report its resource attribute information to the target cloud platform 12, but will passively respond to the resource acquisition request and send the resource attribute information of the first resource to the target cloud platform 12, and then the target cloud platform 12 will send the acquired resource attribute information to the source cloud platform 11.
[0265] Exemplary, reference Fig.13 , the refresh cycle is 2s, the target cloud platform 12 sends a resource acquisition request to the device 121 every two seconds, and the device 121 responds to the resource acquisition request and returns the resource attribute information to the target cloud platform 12. Further, the target cloud platform 12 sends the received resource attribute information to the source cloud platform 11.
[0266] Optionally, the target cloud platform 12 may also determine the time information of receiving the resource attribute information, obtain resource-related information based on the received resource attribute information and the time information of receiving the resource attribute information, and send each resource-related information to the source cloud platform 11 .
[0267] based on Figure 1 In another example, referring to the application scenario shown in Fig.14 The information processing interaction shown Figure 3 , the information processing process may include the following steps:
[0268] Step 1d: The source cloud platform 11 (ie, the second cloud platform mentioned above) sends a first request message to the target cloud platform 12 (ie, the first cloud platform mentioned above).
[0269] Here, the first request information may carry refresh indication information, refresh cycle information, a device identifier of the device 121 , and a resource identifier of the first resource in the device 121 .
[0270] Step 2d: The target cloud platform 12 creates a database (ie, the second storage space mentioned above) according to the first request information.
[0271] Here, after parsing the first request information, the target cloud platform 12 determines to create a corresponding database for the first resource of the device 121 for storing offline resource related information.
[0272] Step 3d, the target cloud platform 12 determines that an observation mechanism has been established with the device 121, then in each refresh cycle, the resource attribute information of the first resource is obtained from the memory (i.e., the first storage space mentioned above), and the obtained resource attribute information of the first resource is sent to the source cloud platform 11.
[0273] In actual applications, based on the above observation mechanism, the device 121 can actively send the resource attribute information to the target cloud platform 12 when the resource attribute information of its first resource changes. In addition, the target cloud platform 12 can save the received resource attribute information in the memory of the target cloud platform 12.
[0274] In this way, when the target cloud platform 12 receives the first request information, it is determined that the target cloud platform 12 has established an observation mechanism with the device 121, and there is no need to re-establish the observation mechanism with the device 121 to request the device 121 to actively report resource attribute information. The target cloud platform 12 can directly obtain the resource attribute information observed by the previous observation mechanism based on the first request information, that is, the target cloud platform 12 can read the resource attribute information of the first resource in the memory according to the refresh cycle, and send the resource attribute information to the source cloud platform 11.
[0275] It should be noted that because the resource attribute information of the first resource in the memory changes irregularly, the target cloud platform 12 reads the latest resource attribute information of the first resource in the memory during each refresh cycle to ensure that the resource attribute information obtained each time matches the resource attribute information on the current device 121.
[0276] Exemplary, reference Fig.14 As shown, the refresh cycle is 2s. When the target cloud platform 12 determines that an observation mechanism has been established with the device 121, the target cloud platform 12 obtains the resource attribute information of the first resource from the memory every 2s.
[0277] Specifically, in the first refresh cycle, the target cloud platform 12 can read the previously observed resource attribute information from the memory and send the resource attribute information to the source cloud platform 11. After an interval of 2s, the resource attribute information of the first resource in the device 121 has not changed, that is, the previously observed resource attribute information is still stored in the memory of the target cloud platform 12, so the target cloud platform 12 continues to read the previously observed resource attribute information from the memory and sends the resource attribute information to the source cloud platform 11. Further, the interval continues for 2s, and the resource attribute information of the first resource in the device 121 changes during the interval of 2s. The device 121 sends the changed resource attribute information to the target cloud platform 12, and the target cloud platform saves the changed resource attribute information to the memory. In this way, after the interval of 2s expires, the target cloud platform obtains the changed resource attribute information (that is, the latest resource attribute information) from the memory and sends the resource attribute information to the source cloud platform 11.
[0278] Optionally, each time the target cloud platform 12 obtains resource attribute information of the first resource from the memory, it can record the time when the corresponding resource attribute information is obtained from the memory, and obtain resource-related information based on the obtained resource attribute information and the corresponding time; and send the obtained resource-related information to the source cloud platform 11.
[0279] In summary, after the source cloud platform sends the first request information to the target cloud platform, the target cloud platform will send the resource attribute information of the device connected to it to the source cloud platform at a fixed time period. Regardless of whether the resource attribute of the device changes, the source cloud platform can obtain the resource attribute information of the device within a fixed time. In this way, the flexibility of resource subscription is improved, and at the same time, it can also prevent the problem that the resource attribute does not change for a long time, making the source cloud platform unable to perceive whether the device on the target cloud platform is in a normal working state.
[0280] In addition, the source cloud platform can obtain resource attribute information at a fixed refresh cycle. In this way, the source cloud platform can draw a corresponding relationship diagram between resource attribute changes and time changes based on the received resource attribute information and the time information of obtaining the resource attribute information. The change rules can be interpreted through graphics to perform relevant calculations.
[0281] Based on the above embodiments, the present application provides an information processing device, which can be applied to the first cloud platform described above. Fig.15 As shown, the information processing device includes:
[0282] The first receiving unit 1501 is configured to receive a first request message; the first request message carries resource refresh indication information; the resource refresh indication information is used to instruct the first cloud platform to refresh resource-related information of the first resource in the first device;
[0283] A first acquisition unit 1502 is configured to acquire resource-related information of the first resource based on the resource refresh indication information;
[0284] The first sending unit 1503 is further configured to send the resource-related information to the second cloud platform.
[0285] In the embodiment provided in the present application, the first acquisition unit 1502 is specifically configured to acquire refresh cycle information; and acquire resource-related information of the first resource according to the refresh cycle information and the resource refresh indication information.
[0286] In the embodiment provided in the present application, the resource refresh indication information includes event type information; wherein, when the event type information is a resource refresh event, it instructs the first cloud platform to refresh the first resource.
[0287] In the embodiment provided in the present application, the refresh cycle information is preset, or the refresh cycle information is carried in the first request information.
[0288] In the embodiment provided in the present application, when the first request information carries refresh cycle information, the refresh cycle information is represented by a cycle field and a field value of the cycle field, and the refresh cycle information is a field value corresponding to the cycle field.
[0289] In the embodiment provided in the present application, the first sending unit 1503 is configured to send an observation request to the first device based on the indication of the resource refresh indication information; the observation request indicates that the first device sends the resource attribute information of the first resource to the first cloud platform based on the refresh cycle information;
[0290] The first receiving unit 1501 is configured to receive resource attribute information of a first resource sent by a first device according to the refresh cycle information, and determine resource-related information based on the resource attribute information.
[0291] In the embodiment provided in the present application, the first acquisition unit 1502 is configured to, if an observation mechanism has been established between the first cloud platform and the first device, and the observation mechanism indicates that the first device sends resource attribute information of the first resource to the first cloud platform when the attribute of the first resource changes; then based on the indication of the resource refresh indication information, according to the refresh cycle information, obtain the resource attribute information of the first resource from the first storage space, and determine the resource-related information based on the resource attribute information; the first storage space is used to store the resource attribute information received through the observation mechanism.
[0292] In the embodiment provided in the present application, the first sending unit 1503 is configured to send a resource acquisition request to the first device based on the indication of the resource refresh indication information and according to the refresh time period information; the resource acquisition request is used to obtain resource attribute information of the first resource;
[0293] The first receiving unit 1501 is configured to receive resource attribute information of a first resource sent by a first device, and determine resource-related information based on the resource attribute information.
[0294] In the embodiment provided in the present application, the resource-related information of the first resource includes: resource attribute information of the first resource, and time information of acquiring the resource attribute information;
[0295] The information processing device also includes a first processing unit, which is configured to determine time information for acquiring resource attribute information; and determine resource-related information based on the resource attribute information and the time information for acquiring the resource attribute information.
[0296] In the embodiment provided in the present application, the first processing unit is configured to create a second storage space; the second storage space is used to store offline resource related information of the first resource;
[0297] The first acquisition unit 1502 is configured to acquire offline resource related information of a plurality of first resources according to the refresh cycle information based on the indication of the resource refresh indication information when the first cloud platform is disconnected from the second cloud platform, and store the plurality of offline resource related information in the second storage space;
[0298] The offline resource related information includes offline resource attribute information of the first resource and time information for acquiring the offline resource attribute information.
[0299] In the embodiment provided in the present application, the first processing unit is configured to store the multiple offline resource related information into the second storage space in sequence according to the time sequence of acquiring the multiple offline resource attribute information.
[0300] In the embodiment provided in the present application, the first sending unit 1503 is configured to obtain at least one offline resource-related information from the multiple offline resource-related information stored in the second storage space when the first cloud platform and the second cloud platform re-establish a connection, and send at least one offline resource-related information to the second cloud platform until all the multiple offline resource-related information in the second storage space are sent.
[0301] In the embodiment provided in the present application, the first sending unit 1503 is configured to obtain at least one offline resource related information from the multiple offline resource related information according to the time sequence of the multiple offline resource related information in the second storage space.
[0302] In the embodiment provided in the present application, the first acquisition unit 1502 is configured to acquire resource-related information of the first resource according to the refresh cycle information based on the indication of the resource refresh indication information when the first cloud platform and the second cloud platform re-establish a connection;
[0303] The first processing unit is configured to store the resource-related information as offline resource-related information in the second storage space if the second storage space further stores offline resource-related information;
[0304] The first sending unit 1503 is configured to send the resource-related information to the second cloud platform if the offline resource-related information is not stored in the second storage space.
[0305] Based on the above embodiments, the present application provides an information processing device, which can be applied to the second cloud platform described above. Fig.16 As shown, the information processing device includes:
[0306] The second sending unit 1601 is configured to send a first request message; the first request message carries resource refresh indication information; the resource refresh indication information is used to instruct the first cloud platform to refresh resource-related information of the first resource in the first device;
[0307] The second receiving unit 1602 is configured to receive resource-related information of the first resource sent based on resource refresh indication information.
[0308] In an embodiment provided in the present application, the resource refresh indication information includes event type information; wherein, when the event type information is a resource refresh event, it instructs the first cloud platform to refresh the first resource.
[0309] In the embodiment provided in the present application, the first request information also carries refresh cycle information; the refresh cycle information is used to indicate the time period for refreshing the first resource.
[0310] In the embodiment provided in the present application, the refresh cycle information is represented by a cycle field and a field value of the cycle field, and the refresh cycle information is the field value corresponding to the cycle field.
[0311] In the embodiment provided in the present application, the resource-related information includes resource attribute information of the first resource and time information for acquiring the resource attribute information.
[0312] In the embodiment provided in the present application, the second receiving unit 1602 is configured to receive at least one resource-related information of the first resource;
[0313] The information processing device also includes a second processing unit configured to establish a corresponding relationship between the resource attribute information of the at least one first resource and time based on the resource attribute information of the at least one first resource and time information for acquiring the at least one resource attribute information.
[0314] Based on the above embodiments, the present application provides an information processing device, which can be applied to the first device described above. Fig.17 As shown, the information processing device includes:
[0315] The third receiving unit 1701 is configured to receive an observation request; the observation request includes refresh cycle information;
[0316] The third sending unit 1702 is configured to send resource attribute information of the first resource to the first cloud platform according to the refresh cycle information.
[0317] Based on the hardware implementation of the above information processing device, the embodiment of the present application further provides a server, Fig.18 The hardware structure diagram of the server of the embodiment of the present application is as follows: Fig.18 As shown, the server comprises a first transceiver 1801, a first processor 1802, and a first memory 1803 storing a computer program.
[0318] Furthermore, the terminal further includes a communication bus 1804; various components in the terminal are coupled together via the communication bus 1804. It can be understood that the first transceiver 1801, the first processor 1802 and the first memory 1803 communicate with each other via the communication bus 1804.
[0319] In the embodiment provided in the present application, the first transceiver 1801 is configured to receive a first request message; the first request message carries resource refresh indication information; the resource refresh indication information is used to instruct the first cloud platform to refresh resource-related information of the first resource in the first device;
[0320] The first processor 1802 is configured to obtain resource-related information of the first resource based on the resource refresh indication information;
[0321] The first transceiver 1801 is further configured to send the resource-related information to the second cloud platform.
[0322] In the embodiment provided in the present application, the first processor 1802 is configured to obtain refresh cycle information; and obtain resource-related information of the first resource according to the refresh cycle information and the resource refresh indication information.
[0323] In the embodiment provided by the present application, the first transceiver 1801 is configured to send an observation request to the first device; the observation request instructs the first device to send resource attribute information of the first resource to the first cloud platform based on the refresh cycle information; based on the instruction of the resource refresh indication information, the resource attribute information of the first resource sent by the first device is received according to the refresh cycle information;
[0324] The first processor 1802 is configured to determine the resource-related information based on the resource attribute information.
[0325] In the embodiment provided in the present application, the first processor 1802 is configured to, if an observation mechanism has been established between the first cloud platform and the first device, and the observation mechanism indicates that the first device sends resource attribute information of the first resource to the first cloud platform when the attribute of the first resource changes; then based on the indication of the resource refresh indication information, obtain the resource attribute information of the first resource from the first storage space according to the refresh cycle information, and determine the resource-related information based on the resource attribute information; the first storage space is used to store the resource attribute information received through the observation mechanism.
[0326] In the embodiment provided in the present application, the first transceiver 1801 is configured to send a resource acquisition request to the first device based on the indication of the resource refresh indication information and in accordance with the refresh time period information; the resource acquisition request is used to obtain resource attribute information of the first resource; receive the resource attribute information of the first resource sent by the first device, and determine the resource-related information based on the resource attribute information.
[0327] In the embodiment provided in the present application, the first processor 1802 is configured to determine time information for acquiring resource attribute information;
[0328] The resource-related information is determined based on the resource attribute information and the time information of acquiring the resource attribute information.
[0329] In the embodiment provided in the present application, the first processor 1802 is configured to create a second storage space; the second storage space is used to store offline resource-related information of the first resource; when the first cloud platform is disconnected from the second cloud platform, based on the indication of the resource refresh indication information, according to the refresh cycle information, multiple offline resource-related information of the first resources is obtained, and multiple offline resource-related information is stored in the second storage space; the offline resource-related information includes offline resource attribute information of the first resource, and time information for obtaining the offline resource attribute information.
[0330] In the embodiment provided in the present application, the first processor 1802 is configured to store the multiple offline resource related information into the second storage space in sequence according to the time sequence of acquiring the multiple offline resource attribute information.
[0331] In the embodiment provided in the present application, the first transceiver 1801 is configured to obtain at least one offline resource-related information from the multiple offline resource-related information stored in the second storage space when the first cloud platform and the second cloud platform re-establish a connection, and send the at least one offline resource-related information to the second cloud platform until all the multiple offline resource-related information in the second storage space are sent.
[0332] In the embodiment provided in the present application, the first processor 1802 is configured to obtain at least one offline resource related information from the multiple offline resource related information according to the time sequence of the multiple offline resource related information in the second storage space.
[0333] In the embodiment provided by the present application, the first processor 1802 is configured to, when the first cloud platform and the second cloud platform are reconnected, obtain resource-related information of the first resource according to the refresh cycle information based on the indication of the resource refresh indication information; if offline resource-related information is also stored in the second storage space, store the resource-related information as the offline resource-related information in the second storage space;
[0334] The first transceiver 1801 is configured to send the resource-related information to the second cloud platform if the offline resource-related information is not stored in the second storage space.
[0335] Based on the hardware implementation of the above information processing device, the embodiment of the present application further provides a server, Fig.19 The hardware structure diagram of the server of the embodiment of the present application is as follows: Fig.18 As shown, the server comprises a second transceiver 1901, a second processor 1902, and a second memory 1903 storing a computer program.
[0336] Furthermore, the terminal further includes a communication bus 1904; various components in the terminal are coupled together via the communication bus 1904. It can be understood that the second transceiver 1901, the second processor 1902 and the second memory 1903 communicate with each other via the communication bus 1904.
[0337] In the embodiment provided in the present application, the second transceiver 1901 is configured to send a first request message; the first request message carries resource refresh indication information; the resource refresh indication information is used to instruct the first cloud platform to refresh resource-related information of the first resource in the first device; and receive resource-related information of the first resource sent based on the resource refresh indication information.
[0338] In the embodiment provided in the present application, the second transceiver 1901 is configured to receive at least one resource-related information of the first resource;
[0339] The second processor 1902 is configured to establish a correspondence between the resource attribute information of the at least one first resource and time based on the resource attribute information of the at least one first resource and the time information of acquiring the at least one resource attribute information.
[0340] Based on the hardware implementation of the above information processing device, the embodiment of the present application further provides a device, Fig. 20 Schematic diagram of the hardware structure of the device in the embodiment of the present application. Fig. 20 As shown, the server includes a third transceiver 2001, a third processor 2002, and a third memory 2003 storing a computer program.
[0341] Furthermore, the terminal further includes a communication bus 2004; various components in the terminal are coupled together via the communication bus 2004. It can be understood that the third transceiver 2001, the third processor 2002 and the third memory 2003 communicate with each other via the communication bus 2004.
[0342] In the embodiment provided in the present application, the third transceiver 2001 is configured to receive an observation request; the observation request includes refresh cycle information; and send resource attribute information of the first resource to the first cloud platform according to the refresh cycle information.
[0343] The present application also provides a computer storage medium, specifically a computer-readable storage medium, on which computer instructions are stored. As a first implementation, when the computer storage medium is located in a terminal, the computer instructions are executed by a processor to implement any step of the above-mentioned information processing method in the present application.
[0344] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0345] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0346] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0347] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0348] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0349] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0350] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. An information processing method, applied to a first cloud platform, comprising: receiving first request information; The first request information carries resource refresh indication information and refresh cycle information; The resource refresh indication information is used to instruct the first cloud platform to refresh resource-related information of the first resource in the first device; Sending an observation request to the first device; the observation request instructs the first device to send resource attribute information of the first resource to the first cloud platform based on the refresh cycle information; Based on the instruction of the resource refresh indication information and according to the refresh period information, receiving the resource attribute information of the first resource sent by the first device; Determine the resource-related information based on the resource attribute information; The resource-related information is sent to the second cloud platform.
2. The method according to claim 1, wherein: The resource refresh indication information includes event type information; wherein, when the event type information is a resource refresh event, it instructs the first cloud platform to refresh the first resource.
3. The method according to claim 1 or 2, wherein: The refresh cycle information is represented by a cycle field and a field value of the cycle field, and the refresh cycle information is a field value corresponding to the cycle field.
4. The method according to any one of claims 1 to 3, wherein: The resource-related information of the first resource includes: resource attribute information of the first resource, and time information of obtaining the resource attribute information; Determining the resource-related information based on the resource attribute information includes: Determine time information for acquiring the resource attribute information; The resource-related information is determined based on the resource attribute information and the time information of acquiring the resource attribute information.
5. The method according to any one of claims 1 to 4, wherein: The method further comprises: Creating a second storage space; the second storage space is used to store offline resource related information of the first resource; When the first cloud platform is disconnected from the second cloud platform, based on the instruction of the resource refresh instruction information and in accordance with the refresh cycle information, obtaining offline resource related information of a plurality of the first resources, and storing the plurality of offline resource related information in the second storage space; The offline resource related information includes offline resource attribute information of the first resource and time information of acquiring the offline resource attribute information.
6. The method according to claim 5, wherein: The storing the multiple offline resource related information into the second storage space includes: According to the time sequence of acquiring the multiple offline resource attribute information, the multiple offline resource related information is stored in the second storage space in sequence.
7. The method according to claim 5 or 6, wherein: The method further comprises: When the first cloud platform and the second cloud platform re-establish a connection, at least one offline resource-related information is obtained from the multiple offline resource-related information stored in the second storage space, and the at least one offline resource-related information is sent to the second cloud platform until all the multiple offline resource-related information in the second storage space are sent.
8. The method according to claim 7, wherein: The acquiring at least one offline resource related information from the plurality of offline resource related information stored in the second storage space includes: According to the time sequence of the multiple offline resource related information in the second storage space, at least one offline resource related information is acquired from the multiple offline resource related information.
9. The method according to any one of claims 5 to 8, wherein: The method further comprises: When the first cloud platform and the second cloud platform are reconnected, obtaining resource-related information of the first resource based on the refresh indication information and in accordance with the refresh cycle information; If there is offline resource related information stored in the second storage space, storing the resource related information as the offline resource related information in the second storage space; If the offline resource-related information does not exist in the second storage space, the resource-related information is sent to the second cloud platform.
10. An information processing method, applied to a second cloud platform, the method comprising: Sending a first request message; The first request information carries resource refresh indication information and refresh cycle information; The resource refresh indication information is used to instruct the first cloud platform to refresh the resource-related information of the first resource in the first device, and the refresh cycle information is used to indicate the time period for refreshing the first resource; Receive resource-related information of the first resource sent based on the resource refresh indication information; the resource-related information of the first resource is determined based on attribute information of the first resource, and the attribute information of the first resource is the indication of the first cloud platform based on the resource refresh indication information and received according to the refresh cycle information.
11. The method according to claim 10, wherein: The resource refresh indication information includes event type information; wherein, when the event type information is a resource refresh event, it instructs the first cloud platform to refresh the first resource.
12. The method according to claim 10, wherein: The refresh cycle information is represented by a cycle field and a field value of the cycle field, and the refresh cycle information is a field value corresponding to the cycle field.
13. The method according to any one of claims 10 to 12, wherein: The resource-related information includes resource attribute information of the first resource and time information for acquiring the resource attribute information.
14. The method according to claim 13, wherein: The receiving resource-related information of the first resource includes: receiving at least one resource-related information of the first resource; Based on the resource attribute information of the at least one first resource and the time information of acquiring the at least one resource attribute information, a corresponding relationship between the resource attribute information of the first resource and time is established.
15. An information processing method, applied to a first device, the method comprising: Receiving an observation request sent by the first cloud platform; The observation request includes refresh period information; The refresh cycle information is carried by the first request information sent by the second cloud platform and received by the first cloud platform; the first request information also includes resource refresh indication information, and the resource refresh indication information is used to instruct the first cloud platform to refresh the resource-related information of the first resource in the first device; According to the refresh cycle information, resource attribute information of the first resource is sent to the first cloud platform; the attribute information of the first resource is used to determine resource-related information, and the resource-related information is used to send to the second cloud platform.
16. An information processing device, applied to a first cloud platform, comprising: A first receiving unit, configured to receive first request information; The first request information carries resource refresh indication information and refresh cycle information; The resource refresh indication information is used to instruct the first cloud platform to refresh resource-related information of the first resource in the first device; A first acquisition unit is configured to send an observation request to the first device; the observation request instructs the first device to send resource attribute information of the first resource to the first cloud platform based on the refresh cycle information; The first acquisition unit is further configured to receive resource attribute information of the first resource sent by the first device according to the refresh cycle information based on the indication of the resource refresh indication information; and determine the resource-related information based on the resource attribute information; The first sending unit is further configured to send the resource-related information to the second cloud platform.
17. An information processing device, applied to a second cloud platform, comprising: A second sending unit, configured to send first request information; The first request information carries resource refresh indication information and refresh cycle information; The resource refresh indication information is used to instruct the first cloud platform to refresh the resource-related information of the first resource in the first device; the refresh cycle information is used to indicate the time period for refreshing the first resource; The second receiving unit is configured to receive resource-related information of the first resource sent based on the resource refresh indication information; the resource-related information of the first resource is determined based on the attribute information of the first resource, and the attribute information of the first resource is received by the first cloud platform according to the refresh cycle information based on the indication of the resource refresh indication information.
18. An information processing apparatus, applied to a first device, the apparatus comprising: A third receiving unit, configured to receive an observation request sent by the first cloud platform; The observation request includes refresh period information; The refresh cycle information is carried by the first request information sent by the second cloud platform and received by the first cloud platform; the first request information also includes resource refresh indication information, and the resource refresh indication information is used to instruct the first cloud platform to refresh the resource-related information of the first resource in the first device; The third sending unit is configured to send resource attribute information of the first resource to the first cloud platform according to the refresh cycle information; the attribute information of the first resource is used to determine resource-related information, and the resource-related information is used to send to the second cloud platform.
19. A server, applied to a first cloud platform, comprising: A first transceiver, a first processor and a first memory storing a computer program; The first transceiver, the first processor and the first memory communicate with each other via a first communication bus; The first processor is configured to communicate with another device through the first transceiver; wherein, The first processor is further configured to execute the steps of the method according to any one of claims 1 to 9 when running the computer program stored in the first memory in conjunction with the first transceiver.
20. A server, applied to a second cloud platform, comprising: a second transceiver, a second processor, and a second memory storing a computer program; The second transceiver, the second processor and the second memory communicate with each other via a second communication bus; The second processor is configured to communicate with another device through the second transceiver; wherein, The second processor is further configured to execute the steps of the method according to any one of claims 10 to 14 when running the computer program stored in the second memory in conjunction with the second transceiver.
21. A device, comprising: a third transceiver, a third processor, and a third memory storing a computer program; The third transceiver, the third processor and the third memory communicate with each other via a third communication bus; The third processor is configured to communicate with another device through the third transceiver; wherein, The third processor is further configured to execute the steps of the method of claim 15 when running the computer program stored in the third memory in conjunction with the third transceiver.
22. A computer-readable storage medium having a computer program stored thereon, wherein the computer program is executed by a first processor to implement the steps of the method described in any one of claims 1 to 9; or; the computer program is executed by a second processor to implement the steps of the method described in any one of claims 10 to 14; or; the computer program is executed by a third processor to implement the steps of the method described in claim 15.
