Nothing Special   »   [go: up one dir, main page]

WO2021253246A1 - Information processing method and apparatus, device and computer storage medium - Google Patents

Information processing method and apparatus, device and computer storage medium Download PDF

Info

Publication number
WO2021253246A1
WO2021253246A1 PCT/CN2020/096419 CN2020096419W WO2021253246A1 WO 2021253246 A1 WO2021253246 A1 WO 2021253246A1 CN 2020096419 W CN2020096419 W CN 2020096419W WO 2021253246 A1 WO2021253246 A1 WO 2021253246A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource
information
cloud platform
refresh
related information
Prior art date
Application number
PCT/CN2020/096419
Other languages
French (fr)
Chinese (zh)
Inventor
茹昭
罗朝明
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to CN202080099935.3A priority Critical patent/CN115428417B/en
Priority to PCT/CN2020/096419 priority patent/WO2021253246A1/en
Publication of WO2021253246A1 publication Critical patent/WO2021253246A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Definitions

  • This application relates to the technical field of the Internet of Things, and in particular to an information processing method and device, equipment, and computer storage medium.
  • Cloud-cloud interconnection technology enables the interconnection of cloud platforms of different manufacturers, breaking the barriers between different manufacturers’ brands, and realizing cross-border Fusion.
  • one cloud platform (for example, the source cloud platform) can subscribe to the resources of the IoT device on another cloud platform (for example, the target cloud platform).
  • the related technology only specifies the subscription based on the change of resource attribute information; that is to say, the resource subscription of the related technology will only send the corresponding resource attribute information to the source when the device resource attribute information on the target cloud platform changes. cloud platform. In this way, the source cloud platform cannot know the working status of the device in time.
  • the embodiments of the present application provide an information processing method and device, equipment, and computer storage medium.
  • an embodiment of the present application provides an information processing method applied to a first cloud platform, and the method includes:
  • the first request information carries resource refresh instruction information;
  • the resource refresh instruction information is used to instruct the first cloud platform to refresh the resource-related information of the first resource in the first device;
  • an embodiment of the present application provides an information processing method applied to a second cloud platform, and the method includes:
  • the first request information carries resource refresh instruction information;
  • the resource refresh instruction information is used to instruct the first cloud platform to refresh the resource-related information of the first resource in the first device;
  • an embodiment of the present application provides an information processing method applied to a first device, and the method includes:
  • the observation request includes refresh cycle information
  • the resource attribute information of the first resource is sent to the first cloud platform.
  • an embodiment of the present application provides an information processing device applied to a first cloud platform, and the device includes:
  • the first receiving unit is configured to receive 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 request the first resource in the first device Refresh the resource-related information of;
  • the first obtaining unit is configured to obtain resource-related information of the first resource based on the resource refresh indication information
  • the first sending unit is further configured to send the resource-related information to the second cloud platform.
  • an embodiment of the present application provides an information processing device applied to a second cloud platform, and the device includes:
  • the second sending unit is configured to send the first request information; the first request information carries resource refresh indication information; the resource refresh indication information is used to indicate that the first cloud platform receives the first resource in the first device Refresh the resource-related information;
  • the second receiving unit is configured to receive resource-related information of the first resource that is sent based on the resource refresh instruction information.
  • an embodiment of the present application provides an information processing device, which is applied to a first device, and the device includes:
  • the third receiving unit is configured to receive an observation request; the observation request includes refresh cycle information;
  • 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 period information.
  • an embodiment of the present application provides a server, which is applied to a first cloud platform, and the server includes: a first transceiver, a first processor, and a first memory storing a computer program;
  • the first processor is configured to implement communication with another device through the first transceiver; wherein,
  • the first processor is further configured 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.
  • an embodiment of the present application provides a server, which is applied to a second cloud platform, and the server includes: a second transceiver, a second processor, and a second memory storing a computer program;
  • the second processor is configured to implement communication with another device through the second transceiver; wherein,
  • the second processor is further configured to perform the steps of the method described in the second aspect above when running the computer program stored in the second memory in conjunction with the second transceiver.
  • an embodiment of the present application provides a device, the device including: 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 through a third communication bus;
  • the third processor is configured to implement communication with another device through the third transceiver; wherein,
  • the third processor is further configured to perform the steps of the method described in the third aspect when running the computer program stored in the third memory in conjunction with the third transceiver.
  • a computer-readable storage medium has a computer program stored thereon, and the computer program is executed by a first processor to realize the steps of the method described in the first aspect; or; the computer program is The second processor executes the steps of the method described in the second aspect; or; the computer program is executed by the third processor the steps of the method described in the third aspect.
  • the first cloud platform receives first request information; the first request information carries resource refresh indication information; the resource refresh The instruction information is used to instruct the first cloud platform to refresh the first resource of the first device; obtain resource-related information of the first resource based on the resource refresh instruction information; send the resource-related information to the second cloud platform .
  • 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 learned in time to determine whether the first device is In working condition.
  • FIG. 1 is a schematic diagram of an exemplary Internet of Things cloud service network architecture provided by an embodiment of this application;
  • FIG. 2 is a schematic diagram 1 of the flow of an information processing method provided by an embodiment of this application;
  • FIG. 3 is a schematic diagram 2 of the flow of an information processing method provided by an embodiment of this application.
  • FIG. 4 is a third schematic flowchart of an information processing method provided by an embodiment of this application.
  • FIG. 5 is a fourth schematic flowchart of an information processing method provided by an embodiment of this application.
  • FIG. 6 is a schematic flow diagram five of an information processing method provided by an embodiment of this application.
  • FIG. 7 is a sixth flowchart of an information processing method provided by an embodiment of this application.
  • FIG. 8 is a seventh schematic flowchart of an information processing method provided by an embodiment of this application.
  • FIG. 9 is an eighth schematic flowchart of an information processing method provided by an embodiment of this application.
  • FIG. 10 is a schematic diagram 9 of the flow of an information processing method provided by an embodiment of this application.
  • FIG. 11 is a schematic diagram 1 of an information processing interaction flow provided by an embodiment of this application.
  • FIG. 12 is a second schematic diagram of an information processing interaction flow provided by an embodiment of this application.
  • FIG. 13 is a third schematic diagram of an information processing interaction flow provided by an embodiment of this application.
  • FIG. 14 is a fourth schematic diagram of an information processing interaction flow provided by an embodiment of this application.
  • 15 is a schematic diagram 1 of the structural composition of an information processing device provided by an embodiment of this application.
  • FIG. 16 is a second schematic diagram of the structural composition of an information processing device provided by an embodiment of this application.
  • FIG. 17 is a third schematic diagram of the structural composition of an information processing device provided by an embodiment of this application.
  • FIG. 18 is a schematic diagram 1 of a server hardware structure provided by an embodiment of the application.
  • FIG. 19 is a second schematic diagram of a server hardware structure provided by an embodiment of the application.
  • FIG. 20 is a schematic diagram of a hardware structure composition of a device provided by an embodiment of the application.
  • the device 122 is connected to the target cloud platform 12, and communicates through the D2C interface.
  • 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, and so on.
  • the source cloud platform 11 and the target cloud platform 12 are connected, and communicate through a Cloud to Cloud (C2C) interface specified by the Open Connectivity Foundation (OCF).
  • C2C Cloud to Cloud
  • OCF Open Connectivity Foundation
  • 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, and resource subscription.
  • the network architecture shown in FIG. 1 also includes a client 13, and the client 13 can be connected to the source cloud platform 11 through a network.
  • the client 13 refers to an application program 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 the source cloud platform 11 a resource acquisition instruction on the device 121, so that the source cloud platform 11 responds It should be instructed to access the resources of the device 121 under the target cloud platform 12 through the OCF C2C Application Programming Interface (API), and obtain the resource attribute information of the resource, and return the resource attribute information to the client through the client
  • the display interface of the terminal presents the resource attribute information.
  • HTTP HyperText Transfer Protocol
  • ⁇ deviceid ⁇ in Table 1 to Table 3 refers to the identification information of the request object
  • ⁇ resourcehref ⁇ refers to the URI of the resource of the request object
  • ⁇ subscriptionId ⁇ is the identifier used to identify the subscription event after the subscription is completed.
  • the source cloud platform 11 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 payload information (Payload) carried in the subscription request may include:
  • the eventsUrl field is used to indicate the information report address, and the value of the eventsUrl field is provided by the source cloud platform 11, and the value of the eventsUrl field is usually a uniform resource locator (Uniform Resource Locator, URL) address.
  • the eventTypes field indicates the event type, and resource_contentchanged refers to the resource attribute information change event, that is, when the resource attribute information changes, the resource attribute information is reported.
  • the signingSecret field characterizes the signature key information and is used for data integrity verification; specifically, the target cloud platform can use the signature key information to sign the data, and send the signed data to the source cloud platform, so that The source cloud platform (eventsUrl) can verify the data integrity of the received data.
  • the target cloud platform 12 will return the subscription identifier to the source cloud platform 11, which may specifically include the following information:
  • the source cloud platform 11 can obtain corresponding subscription information through the subscription identifier.
  • 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.
  • the Internet of Things protocol only provides subscriptions for changes in OCF device resource attribute content, that is, the sending of resource attribute information is triggered only when the resource attribute information of the device changes; the resource subscription method is single and not flexible enough. Moreover, using this resource subscription method, if the device resource attributes do 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 a normal working state.
  • an embodiment of the present application provides an Internet of Things information processing method, which can be applied to a first cloud platform, and the first cloud platform can be a server, an independent computing device, or a computing cluster.
  • This application implements this Not limited.
  • the Internet of Things information processing method may be applied to the Internet of Things cloud service architecture shown in FIG. 1, and the first cloud platform described in the embodiment of the present application may be the target cloud platform in the Internet of Things cloud service architecture shown in FIG. 12.
  • FIG. 2 is a schematic flowchart of a method for processing Internet of Things information provided by an embodiment of the present application. As shown in FIG. 2, the method includes step 210 to step 220. in,
  • Step 210 Receive the first request information; the resource refresh instruction information is used to instruct the first cloud platform to refresh the resource-related information of the first resource in the first device;
  • Step 220 Obtain resource-related information of the first resource based on the resource refresh instruction information
  • Step 230 Send resource-related information to the second cloud platform.
  • the first cloud platform may receive the first request information sent by the second cloud platform.
  • the first cloud platform is different from the second cloud platform.
  • the first cloud platform and the second cloud platform may be cloud platforms of different vendors, or different cloud platforms established by the same vendor.
  • first cloud platform may be connected to the second cloud platform through various types of connection methods, and communicate through the C2C interface.
  • the first cloud platform may be connected to the second cloud platform through a wired manner or through cellular communication.
  • the embodiments of the application here do not limit the connection mode between cloud platforms.
  • the first cloud platform may also receive the first request information sent by the second cloud platform forwarded by other cloud platforms.
  • the first request information may include a device identification and/or a resource identification.
  • the device identifier may be the identification information of the IoT device connected to the first cloud platform;
  • the resource identifier may be various types of resource identifiers of the IoT device connected to the first cloud platform. It should be understood that the device connected to the first cloud platform may be based on the D2C interface, communicate with the first cloud platform in accordance with the Internet of Things protocol, and receive instructions from the first cloud platform to perform corresponding processing.
  • resources mentioned in the embodiments of this application can refer to static attributes such as device model, software and hardware version, manufacturer, etc., and can also refer to operations that can be performed by the first device, events and parameters that can be reported, and can be read.
  • Dynamic attributes such as the status parameters, such as electricity consumption, water consumption, temperature, etc.
  • 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.
  • the device corresponding to the device identifier on the first cloud platform may be determined to be the first device, and all resources of the first device may be determined as the first resource.
  • the device on the first cloud platform that has a resource matching the resource identifier is the first device, and the device stored in the first device is the same as that of the source.
  • the corresponding resource is identified as the first resource.
  • the first request information when the first request information includes the device identifier and the 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 device stored in the first device corresponds to the resource identifier The resource is the first resource.
  • the first request information further includes resource refresh indication 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 first cloud platform parses the first request information.
  • the resource refresh instruction information is parsed, it obtains the resource-related information of the first resource according to the instructions of the first request information, and obtains The resource-related information of is sent to the second cloud platform.
  • the information processing method provided by the embodiments of the present application can obtain the 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 information of the first resource in the first device can be learned in time. Related information to determine whether the first device is in working state.
  • the resource refresh indication information can instruct the first cloud platform to refresh the resource-related information of the first resource in multiple ways. Two methods are described in detail below:
  • the resource refresh indication information may be an indication bit in the first request information. By setting a specific value on the indication bit, the first cloud platform is instructed to refresh the resource-related information of the first resource.
  • the value of the 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 expression manner of the indicator bit.
  • the resource refresh indication information may include event type information.
  • 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.
  • eventTypes ["resource_refresh”].
  • the resource refresh indication information may be event type information carried in the first request information.
  • the first cloud platform After receiving the first request information, the first cloud platform analyzes the first request information, and when it is resolved that the event type is a resource refresh event type, it determines to refresh the requested first resource according to a specific time period.
  • step 220 obtains the resource-related information of the first resource based on the resource refresh instruction information, which can also be implemented in the following manner:
  • Step 2201 Obtain refresh cycle information
  • Step 2202 Obtain resource-related information of the first resource according to the refresh period information and the resource refresh instruction information.
  • 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.
  • the first cloud platform obtains refresh cycle information and determines the resource refresh cycle; and in each refresh cycle, it obtains resource-related information once, and then sends the resource pre-relevant information obtained each time to the second cloud platform .
  • the refresh period information is preset, or the refresh period information is carried in the first request information.
  • the first cloud platform may use a pre-appointed time period or a default time period as the refresh period information to refresh the resource-related information of the first resource.
  • the first cloud platform may refresh the resource-related information of the first resource based on the refresh period information carried in the first request information.
  • the refresh period information when the refresh period information is carried in the first request information, the refresh period information may be represented by the period field and the field value of the period field, and the refresh period information is the field value corresponding to the period field.
  • 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 here is seconds (s). In this example, it can be determined that the refresh period is 2s.
  • the first cloud platform can obtain resource-related information of the first resource in each refresh cycle, and send the obtained resource-related information to the second cloud platform.
  • the second cloud platform can obtain the resource-related information of the first resource in a fixed time period. In this way, the flexibility of resource subscription is improved.
  • the resource-related information may only include 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.
  • the time information may be a time stamp. In this way, the second cloud platform can obtain the time information corresponding to each resource attribute information, can draw the 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 law through graphics to perform related calculations.
  • step 2202 according to the refresh cycle information and the resource refresh instruction information, there are many ways to obtain the resource-related information of the first resource, and three of them are described below:
  • step 2202 obtains the resource-related information of the first resource according to the refresh cycle information and the resource refresh instruction information.
  • the specific implementation methods include:
  • 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;
  • Step 420 Based on the indication of the resource refresh indication information, according to the refresh period 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.
  • 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 period 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 aforementioned refresh period information in the first observation request to instruct the first device to report the status of the first resource according to the refresh period information.
  • Resource attribute information
  • the first device reports the resource according to the refresh period information carried in the observation request.
  • the first cloud platform can receive the resource attribute information reported by the first device in each refresh period.
  • the observation request may be a device resource request based on the observation mechanism
  • the first cloud platform may set the value of the period option in the observation mechanism according to the refresh period information carried in the first request information, so that The first device may report the resource according to the value of the set periodic option.
  • 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 period.
  • the first cloud platform may directly use the received resource attribute information as resource-related information.
  • the first cloud platform may determine the time information for the first device to report the resource attribute information (that is, the time for acquiring the resource attribute information), and obtain the resource attribute information based on the resource attribute information and the time information for acquiring the resource attribute information. Resource-related information. In other words, the first cloud platform may send resource attribute information and the time when the resource attribute information is reported to the second cloud platform.
  • the first cloud platform can also determine whether an observation mechanism has been established with the first device. If an observation mechanism has not been established, it will send an observation request to the first cloud platform If an observation mechanism has been established, you can obtain resource-related information through method two.
  • step 2202 according to the refresh cycle information and the resource refresh instruction information, obtain the resource-related information of the first resource.
  • the specific implementation methods include:
  • Step 510 If an observation mechanism has been established between the first cloud platform and the first device, the resource attribute information of the first resource is obtained from the first storage space based on the instruction of the resource refresh indication information and according to the refresh period information.
  • the resource attribute information determines the resource-related information; the first storage space is used to store the resource attribute information received through the observation mechanism.
  • the observation mechanism characterizes that the first device sends the resource attribute information of the first resource to the first cloud platform when the attribute of the first resource changes.
  • the first cloud platform may determine whether an observation mechanism has been established with the first device, that is, determine whether the current first device will actively report its resource attribute information to the first cloud platform.
  • the first device can actively report its resource attribute information to the first cloud platform, and save the reported resource attribute information in the first storage space.
  • the first storage space may be the memory of the first device.
  • the first cloud platform can obtain the first device from the first storage space in each fixed refresh period according to the first request information.
  • the resource attribute information is
  • the first device based on the above observation mechanism only reports the resource attribute information to the first cloud platform when the resource attribute information of the first resource changes.
  • the first cloud platform can use the new resource attribute information to replace the previously stored resource attribute information in the first storage space, and the first cloud platform can also store it in the order of receiving time Multiple resource attribute information.
  • the first cloud platform can obtain the latest resource attribute information from the first storage space in each fixed refresh period. And based on the latest resource attribute information, get resource-related information.
  • the first cloud platform uses the latest resource attribute information acquired in the first storage space as resource-related information.
  • the first cloud platform may determine the time information for obtaining the latest resource attribute information from the first storage space each time, and obtain the latest resource attribute information from the first storage space based on the latest resource attribute information.
  • the time information of the information gets the resource-related information. That is, the first cloud platform may send resource attribute information to the second cloud platform, and the time when the resource attribute information is obtained from the first storage space.
  • obtaining resource-related information of the first resource includes:
  • Step 610 Based on the instruction of the resource refresh indication information, according to the refresh time period information, send a resource acquisition request to the first device; the resource acquisition request is used to acquire resource attribute information of the first resource:
  • 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.
  • the first cloud platform after receiving the first request information, 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 actively sends a resource acquisition request to the first device in each time period based on the first request information. And in each time period, the resource attribute information of the first resource returned by the first device is received.
  • the first cloud platform may directly use the received resource attribute information as resource-related information.
  • the first cloud platform may determine the time information for receiving the resource attribute information (that is, the time for acquiring the resource attribute information), and obtain resource-related information based on the resource attribute information and the time information for acquiring the resource attribute information .
  • the first cloud platform may send resource attribute information and the time when the resource attribute information is reported to the second cloud platform.
  • 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 obtaining the resource attribute information.
  • determining resource-related information based on resource attribute information includes:
  • the resource-related information is obtained.
  • the first cloud platform not only needs to obtain the resource attribute information, but also records the time information for obtaining the resource attribute information, and further, the resource attribute information and the time information for obtaining the resource attribute information at the same time Send to the second cloud platform.
  • the second cloud platform can learn the corresponding acquisition time of each resource attribute information, and can draw the corresponding relationship diagram of the equipment resource attribute change and time change according to the resource attribute information and acquisition time, and can interpret the change rule through the graph to execute the related calculate.
  • the information processing method provided in the embodiment of the present application further includes the following steps:
  • Step 240 Create a second storage space; the second storage space is used to store offline resource related information of the first resource;
  • Step 250 In the case that the first cloud platform is disconnected from the second cloud platform, based on the instruction of the resource refresh instruction information, according to the refresh cycle information, obtain offline resource related information of the multiple first resources, and connect the multiple offline resources.
  • the 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.
  • the first cloud platform when the first cloud platform is disconnected from the second cloud platform, and at this time, the second cloud platform does not indicate to the first cloud platform to delete the request to refresh the first resource.
  • the first cloud platform may In each refresh cycle when the connection is disconnected, the offline resource-related information of the first resource is obtained, and the obtained multiple offline resource-related information is stored in the second storage space, so that the first cloud platform and the second cloud After the platform re-establishes the connection, the offline resource-related information obtained within the disconnected time can be sent to the second cloud platform.
  • the offline resource related information includes the offline resource attribute information of the first resource and the time information for obtaining the offline resource attribute information; that is, the first cloud platform can record the time when the offline resource related information is obtained , And save the offline resource attribute information and the time when the offline resource attribute information is obtained together in the second storage space.
  • step 250 based on the time period, there may be three implementation manners for obtaining offline resource-related information of multiple first resources, and these three implementation manners are similar to the resource-related information acquisition of the first resource mentioned in the foregoing embodiment.
  • the first implementation may be: the first cloud platform obtains the resource attribute information reported by the first device in each refresh cycle, and uses the resource attribute information and the time when the resource attribute information is received as offline
  • the resource-related information is stored in the second storage space.
  • the second implementation may be: the first cloud platform obtains the latest resource attribute information stored in the first storage space in each refresh cycle, and obtains the resource attribute information from the first storage space. The time of the resource attribute information is stored in the second storage space as offline resource related information.
  • the third implementation manner may be that the first cloud platform sends resource request information to the first device and receives the response of the first device in each refresh period, and further, will receive the resource attribute information of the first resource, and The time when the resource attribute information is received is stored in the second storage space as offline resource related information.
  • step 250 storing multiple offline resource related information in the second storage space may include:
  • the first device may store the offline resource related information according to the time sequence of acquiring the offline resource attribute information.
  • step 240 can be performed before step 220, or can be performed simultaneously with step 220.
  • step 250 the following steps may be performed:
  • Step 260 Under the condition that the connection between the first cloud platform and the second cloud platform is re-established, obtain at least one piece of offline resource related information from the multiple offline resource related information stored in the second storage space, and send at least one piece of offline resource related information to the second cloud platform. One piece of offline resource related information until the multiple offline resource related information in the second storage space are all sent.
  • the first cloud platform sends multiple offline resource related information stored in the second storage space to the second cloud platform.
  • the first cloud platform can read multiple offline resource-related information stored in the second storage space one by one and send it to the second cloud platform.
  • the first cloud platform can also read more information from the second storage space each time. Information about offline resources is sent to the second cloud platform, which is not limited in the embodiment of the present application.
  • At least one piece of offline resource related information is sequentially obtained from the plurality of offline resource related information according to the time sequence of the plurality of offline resource related information in the second storage space.
  • the first device can read offline resource related information according to the time sequence of obtaining offline resource attribute information, and send the offline related information to the second cloud platform according to the time sequence of obtaining offline resource attribute information.
  • the first cloud platform when the connection between the first cloud platform and the second cloud platform is re-established, the first cloud platform sends offline resource-related information while also acquiring each time period according to the time period. Resource-related information within. At this time, the first cloud platform may send offline resource related information and currently acquired resource related information based on the following sending strategy.
  • the resource-related information of the first resource is obtained according to the refresh period information; if the second storage space also stores For offline resource related information, the resource related information is stored in the second storage space as offline resource related information; if the offline resource related information is not stored in the second storage space, the resource related information will be sent to the second cloud platform.
  • the first cloud platform when the first cloud platform sends offline resource-related information to the second cloud platform, the first cloud platform is still constantly acquiring resource-related information according to the refresh cycle. If the current offline resource-related information stored in the second storage space If not all information is sent out, the resource-related information currently obtained by the first cloud platform is used as offline resource-related information and stored in the second storage space; if there is no offline resource-related information in the current second storage space, the first cloud platform directly Send the acquired current resource-related information to the second cloud platform.
  • the embodiments of the present application also provide 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. limited.
  • the information processing method can be applied to the IoT cloud service architecture shown in FIG. 1, and the second cloud platform in the embodiment of the present application may be the source cloud platform 11 in the IoT cloud service architecture shown in FIG. 1.
  • FIG. 9 is a schematic flowchart of an information processing method provided by an embodiment of the present application. As shown in FIG. 9, the method includes step 910 and step 920. in,
  • Step 910 Send first request information; the first request information carries resource refresh instruction information; the resource refresh instruction information is used to instruct the first cloud platform to refresh the resource-related information of the first resource in the first device;
  • Step 920 Receive resource-related information of the first resource that is sent based on the resource refresh instruction information.
  • the second cloud platform may send the first request information to the first cloud platform.
  • the second cloud platform may receive an 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.
  • the first request information may include a device identification and/or a resource identification.
  • the device identifier may be the identification information of the IoT device connected to the first cloud platform;
  • the resource identifier may be various types of resource identifiers of the IoT device connected to the first cloud platform.
  • resources mentioned in the embodiments of this application can refer to static attributes such as device model, software and hardware version, manufacturer, etc., can also refer to operations that can be performed by the first device, events and parameters that can be reported, and can be read. Dynamic attributes such as the status parameters, such as electricity consumption, water consumption, temperature, etc.
  • the first request information further includes resource refresh indication 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 first cloud platform parses the first request information.
  • the resource refresh instruction information When the resource refresh instruction information is parsed, it obtains the resource-related information of the first resource according to the instructions of the first request information, and obtains The resource-related information of is sent to the second cloud platform.
  • the second cloud platform can obtain resource-related information of the first resource and perform corresponding processing.
  • the information processing method provided by the embodiments of the present application can obtain the 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 information of the first resource in the first device can be learned in time. Related information to determine whether the first device is in working state.
  • the resource refresh indication information includes event type information; where, when the event type information is a resource refresh event, it instructs the first cloud platform to refresh the first resource.
  • the first request information also carries refresh period information; the refresh period information is used to indicate the time period for refreshing the first resource.
  • the refresh period information is represented by the period field and the field value of the period field, and the refresh period information is the field value corresponding to the period field.
  • the resource-related information includes resource attribute information of the first resource, and time information for acquiring the resource attribute information.
  • the step 920 receiving resource-related information of the first resource includes:
  • the second platform can obtain resource attribute information in a fixed refresh cycle.
  • the first cloud platform can draw the corresponding relationship between resource attribute changes and time changes based on the received resource attribute information and the time information for obtaining the resource attribute information. Graphic interpretation of the law of change, so as to perform related calculations.
  • the embodiment of the present application also provides an information processing method, which can be applied to the first device.
  • the information processing method may be applied to the IoT cloud service architecture shown in FIG. 1, and the first device in the embodiment of the present application may be the device 121 or the device 122 in the IoT cloud service architecture shown in FIG. 1.
  • FIG. 10 is a schematic flowchart of an information processing method provided by an embodiment of the present application. As shown in FIG. 10, the method includes step 1010 and step 1020. in,
  • Step 1010 Receive an observation request; the observation request includes refresh cycle information;
  • Step 1020 Send the resource attribute information of the first resource to the first cloud platform according to the refresh period information.
  • the first device may receive the observation request sent by the first cloud platform.
  • the observation request carries the resource identifier of the first resource in the first device and refresh period information; to instruct the first device to report the resource attribute information of the first resource according to the refresh period information.
  • the first device after receiving the observation request, the first device reports the resource according to the refresh period information carried in the observation request. In other words, the first device sends its resource attribute information to the first cloud platform in each refresh period. In this way, the first cloud platform can receive the resource attribute information reported by the first device in each refresh period.
  • the observation request may be a device resource request based on the observation mechanism
  • the first cloud platform may set the value of the period option in the observation mechanism according to the refresh period information carried in the first request information, so that The first device can report the resource according to the set periodic option.
  • the first device 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 period.
  • the first device can report the resource attribute information to the first cloud platform within a fixed refresh period, which improves the timeliness and flexibility of resource reporting.
  • the information processing process may include the following steps:
  • Step 1a The source cloud platform 11 (that is, the second cloud platform above) sends the first request information to the target cloud platform 12 (that is, the first cloud platform above).
  • the first request information carries resource refresh indication information, the resource refresh indication information event type information, and the event type information is a resource refresh event, which may indicate that the event of the first request information is to perform the first resource of the first device.
  • Refresh event the first request information also carries refresh cycle information, which is used to set the time interval for refreshing the first resource.
  • the first request information also carries the device identifier of the requested device 121 (that is, the first device above) and the resource identifier of the first resource in the device 121; the carried device identifier and resource identifier are used to indicate the requested device resource.
  • the first request information may use the C2C API of device resource subscription, that is, POST:/api/v1/devices/ ⁇ deviceid ⁇ / ⁇ resourcehref ⁇ /subscriptions.
  • the difference between the first request information and the C2C API of the device resource subscription is that the corresponding field value of the resource type field (ie eventTypes field) in the payload carried in the first request information is "resource_refresh", and the first request information also A period field (that is, the periodic field) is added to set the time interval for device resource refresh.
  • the first request information can also carry the address of the requester, which can be the address of the source cloud platform or the address of the client 12 accessed on the source cloud platform.
  • the embodiments are not limited here.
  • the payload carried in the first request information may include:
  • Step 2a The target cloud platform 12 sends an observation request to the device 121 based on the first request information.
  • the target cloud platform 12 sends an observation request to the device 121 according to the device identifier of the device 121 and the first resource identifier carried in the first request information.
  • the observation request may carry refresh period information, and the refresh period information may be the same as the refresh period information carried in the first request information.
  • the observation request also carries the resource identifier of the first resource.
  • Step 3a The device 121 sets the refresh period of the first resource based on the refresh period information in the observation request.
  • 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.
  • Step 4a The device 121 sends the observation mechanism establishment success information to the target cloud platform 12.
  • Step 5a Based on the refresh period, the device 121 sends the resource attribute information of the first resource to the target cloud platform 12 in each refresh period.
  • the device 121 may actively send the resource attribute information of the first resource to the first cloud platform every 2s.
  • Step 6a The target cloud platform 12 receives the resource attribute information of the first resource sent by the device 121 in each refresh period, and sends the received resource attribute information to the source cloud platform 12.
  • the target cloud platform 12 can receive the resource attribute information reported by the device 121 at every interval of time, and immediately forward the received resource attribute information to the source cloud platform 12.
  • resource attribute information sent to the source cloud platform 12 may be sent to the address carried in the first request information, for example, "eventsUrl”: https://mynotificationuri.
  • each time the target cloud platform 12 receives the resource attribute information of the first resource it may record the time of receiving the resource attribute information, and obtain the 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.
  • steps 5 and 6 can be executed continuously until the target cloud platform receives the first request message for deletion.
  • the information processing process may include the following steps:
  • Step 1b The source cloud platform 11 (that is, the second cloud platform above) sends the first request information to the target cloud platform 12 (that is, the first cloud platform above).
  • the first request information may carry refresh instruction information, refresh period information, the device identifier of the device 121, and the resource identifier of the first resource in the device 121.
  • Step 2b The target cloud platform 12 creates a database corresponding to the first resource (that is, the second storage space mentioned above) according to the first request information.
  • the target cloud platform 12 determines that a corresponding database is created for the first resource of the device 121 for storing offline resource related information.
  • Step 3b The target cloud platform 12 sends an observation request to the device 121 based on the first request information.
  • Step 4b The device 121 sets the refresh period of the first resource based on the refresh period information in the observation request.
  • Step 5b The device 121 sends the observation mechanism establishment success information to the target cloud platform 12.
  • the subscription ID that is, subscriptionID
  • the subscription ID can be carried in the observation mechanism establishment success message.
  • Step 6b Based on the refresh period, the device 121 sends the resource attribute information of the first resource to the target cloud platform 12 in each refresh period.
  • Step 7b The target cloud platform 12 receives the resource attribute information of the first resource sent by the device 121 in each refresh period, and sends the received resource attribute information to the source cloud platform in each refresh period.
  • Step 8b The target cloud platform 12 detects that it is disconnected from the source cloud platform 11, and continues to receive multiple offline resource attribute information sent by the device 121 according to the refresh time period, and obtains the time information for receiving the attribute information of each offline resource, and will go offline
  • the resource attribute information and the time information for receiving the offline resource attribute information are stored in the database as offline resource related information.
  • the device 121 continues to report that it is offline to the target cloud platform 12 in the refresh cycle Resource attribute information.
  • 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 middle.
  • the target cloud platform 12 may store the offline resource attribute information and the corresponding report time in the database according to the reporting time sequence of the offline resource attribute information.
  • the refresh period is 2s.
  • the device 121 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 every 2s.
  • the target cloud platform 12 The resource attribute information sent by the device 121 is stored in the corresponding database in chronological order, and the time when the resource attribute information is reported is also stored.
  • 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 there are multiple offline resource related information in the database All sent.
  • the target cloud platform 12 may obtain offline resource related information from the database in accordance with the reporting time sequence of the offline resource attribute information, and send the obtained offline resource related information to the source cloud platform 11.
  • the target cloud platform 12 when the target cloud platform 12 sends the offline resource related information in the database to the source cloud platform 11, the device 121 is still reporting resource attribute information to the target cloud platform 12 according to the resource refresh cycle. If there is offline resource related information, 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 .
  • the information processing process may include the following steps:
  • Step 1c The source cloud platform 11 (ie, the second cloud platform above) sends the first request information to the target cloud platform 12 (ie, the first cloud platform above).
  • the first request information may carry refresh instruction information, refresh period information, the device identifier of the device 121, and the resource identifier of the first resource in the device 121.
  • Step 2c The target cloud platform 12 creates a database (that is, the second storage space mentioned above) according to the first request information.
  • the target cloud platform 12 determines that a corresponding database is created for the first resource of the device 121 for storing offline resource related information.
  • 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 period.
  • 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 the resource identifier of the first resource.
  • Step 4c The target cloud platform 12 receives the response of the device 121 to the resource acquisition request, and obtains resource attribute information.
  • the target cloud platform 12 will receive the resource attribute information returned by the device 121 after each resource acquisition request is sent.
  • Step 5c The target cloud platform 12 sends the resource attribute information received in each refresh cycle to the source cloud platform 11.
  • the target cloud platform 12 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 it to the device 121 in each refresh cycle.
  • Send a resource acquisition request that is, the device 121 will not actively report its resource attribute information to the target cloud platform 12, but 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 sends the acquired resource attribute information to the source cloud platform 11.
  • the refresh period is 2s, and the target cloud platform 12 sends a resource acquisition request to the device 121 every two seconds. At the same time, the device 121 responds to the resource acquisition request and returns 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.
  • the target cloud platform 12 may also determine the time information for receiving the resource attribute information, and obtain resource-related information based on the received resource attribute information and the time information for receiving the resource attribute information, and combine each resource-related information Sent to the source cloud platform 11.
  • the information processing process may include the following steps:
  • Step 1d The source cloud platform 11 (ie, the second cloud platform above) sends the first request information to the target cloud platform 12 (ie, the first cloud platform above).
  • the first request information may carry refresh instruction information, refresh period information, the device identifier of the device 121, and the resource identifier of the first resource in the device 121.
  • Step 2d The target cloud platform 12 creates a database (that is, the second storage space mentioned above) according to the first request information.
  • the target cloud platform 12 determines that a corresponding database is created for the first resource of the device 121 for storing offline resource related information.
  • Step 3d The target cloud platform 12 judges that an observation mechanism has been established with the device 121, and then in each refresh cycle, the resource attribute information of the first resource is obtained from the memory (that is, the first storage space above), and the obtained The resource attribute information of the first resource is sent to the source cloud platform 11.
  • the device 121 may actively send the resource attribute information to the target cloud platform 12 when the resource attribute information of its first resource changes based on the aforementioned observation mechanism.
  • the target cloud platform 12 may store the received resource attribute information in the memory of the target cloud platform 12.
  • the target cloud platform 12 After the target cloud platform 12 receives the first request information, it determines that the target cloud platform 12 has established an observation mechanism with the device 121, and there is no need to re-establish an observation mechanism with the device 121 to request the device 121 to actively report the 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 The resource attribute information is sent to the source cloud platform 11.
  • 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 every The resource attribute information obtained this time matches the resource attribute information on the current device 121.
  • the refresh period is 2s.
  • 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 .
  • the target cloud platform 12 may read the previously observed resource attribute information from the memory, and send the resource attribute information to the source cloud platform 11.
  • the resource attribute information of the first resource in the device 121 has not changed, that is, the memory of the target cloud platform 12 still stores the previously observed resource attribute information, so the target cloud platform 12 continues to read from the memory The resource attribute information observed before, and the resource attribute information is sent to the source cloud platform 11.
  • 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 The changed resource attribute information is stored in the memory. In this way, the target cloud platform obtains the changed resource attribute information (that is, the latest resource attribute information) from the memory after the interval of 2s expires, and sends the resource attribute information to Source cloud platform 11.
  • each time the target cloud platform 12 obtains the resource attribute information of the first resource from the memory it may record the time when the corresponding resource attribute information is obtained from the memory, and based on the obtained resource attribute information and the corresponding time, obtain Resource-related information; and send the obtained resource-related information to the source cloud platform 11.
  • the target cloud platform will send the resource attribute information of the connected device to the source cloud platform in a fixed period of time, regardless of whether the resource attribute of the device has changed.
  • the source cloud platform can obtain the resource attribute information of the device within a fixed period of time. In this way, the flexibility of resource subscription is improved, and at the same time, it can also prevent the resource attribute from not changing for a long time, making the source cloud platform unable to perceive the problem of whether the device on the target cloud platform is in a normal working state.
  • the source cloud platform can obtain resource attribute information in a fixed refresh cycle. In this way, the source cloud platform can draw the corresponding relationship between resource attribute changes and time changes based on the received resource attribute information and the time information for obtaining the resource attribute information. Interpret the law of change through graphics to perform related calculations.
  • an embodiment of the present application provides an information processing device, which can be applied to the first cloud platform described above.
  • the information processing device includes:
  • the first receiving unit 1501 is configured to receive first request information; the first request information carries resource refresh indication information; the resource refresh indication information is used to indicate that the first cloud platform is related to the resource of the first resource in the first device Information is refreshed;
  • the first obtaining unit 1502 is configured to obtain resource-related information of the first resource based on the resource refresh indication information
  • the first sending unit 1503 is further configured to send the resource-related information to the second cloud platform.
  • the first obtaining unit 1502 is specifically configured to obtain refresh cycle information; according to the refresh cycle information and the resource refresh instruction information, the resource-related information of the first resource is obtained.
  • the resource refresh indication information includes event type information; where the event type information is a resource refresh event, instructs the first cloud platform to refresh the first resource.
  • the refresh period information is preset, or the refresh period information is carried in the first request information.
  • the refresh period information is represented by the period field and the field value of the period field, and the refresh period information is the field value corresponding to the period field.
  • the first sending unit 1503 is configured to send an observation request to the first device based on the instruction of the resource refresh indication information; the observation request instructs the first device to send to the first cloud platform based on the refresh period information Resource attribute information of the first resource;
  • the first receiving unit 1501 is configured to receive the resource attribute information of the first resource sent by the first device according to the refresh cycle information, and determine the resource related information based on the resource attribute information.
  • the first obtaining unit 1502 is configured to, if an observation mechanism has been established between the first cloud platform and the first device, the observation mechanism indicates that the first device will report to the first device when the first resource attribute changes.
  • the cloud platform sends the resource attribute information of the first resource; based on the instruction of the resource refresh instruction information, the resource attribute information of the first resource is obtained from the first storage space according to the refresh cycle information, and the resource related information is determined based on the resource attribute information ;
  • the first storage space is used to store the resource attribute information received through the observation mechanism.
  • the first sending unit 1503 is configured to send a resource acquisition request to the first device based on the instruction of the resource refresh indication information and according to the refresh time period information; the resource acquisition request is used to obtain the first resource. Resource attribute information;
  • the first receiving unit 1501 is configured to 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.
  • the resource-related information of the first resource includes: resource attribute information of the first resource, and time information for obtaining the resource attribute information;
  • the information processing device further includes a first processing unit, and the first processing unit is configured to determine time information for acquiring resource attribute information; determine resource related information based on the resource attribute information and the time information for acquiring resource attribute information.
  • 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;
  • the first obtaining unit 1502 is configured to obtain offline resource-related information of a plurality of first resources based on the instruction of the resource refresh instruction information and according to the refresh period information when the first cloud platform is disconnected from the second cloud platform, And store 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 acquiring the offline resource attribute information.
  • the first processing unit is configured to sequentially store the multiple offline resource related information in the second storage space according to the time sequence of acquiring the multiple offline resource attribute information.
  • the first sending unit 1503 is configured to obtain information related to multiple offline resources stored in the second storage space when the connection between the first cloud platform and the second cloud platform is re-established At least one offline resource related information, and 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 is sent.
  • 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.
  • the first obtaining unit 1502 is configured to obtain the first cloud platform and the second cloud platform based on the instruction of the resource refresh indication information and according to the refresh cycle information when the connection between the first cloud platform and the second cloud platform is re-established.
  • Resource-related information of the resource
  • the first processing unit is configured to, if offline resource-related information is also stored in the second storage space, use the resource-related information as offline resource-related information and store it in the second storage space;
  • 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.
  • an embodiment of the present application provides an information processing device, which can be applied to the second cloud platform described above.
  • the information processing device includes:
  • the second sending unit 1601 is configured to send first request information; the first request information carries resource refresh instruction information; the resource refresh instruction information is used to instruct the first cloud platform to refresh the resource related information of the first resource in the first device ;
  • the second receiving unit 1602 is configured to receive the resource-related information of the first resource sent based on the resource refresh instruction information.
  • 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.
  • the first request information also carries refresh period information; the refresh period information is used to indicate a time period for refreshing the first resource.
  • the refresh period information is represented by a period field and a field value of the period field, and the refresh period information is a field value corresponding to the period field.
  • the resource-related information includes resource attribute information of the first resource, and time information for acquiring the resource attribute information.
  • the second receiving unit 1602 is configured to receive at least one resource-related information of the first resource
  • the information processing device further includes a second processing unit configured to establish the resource attribute information of the first resource based on the resource attribute information of the at least one first resource and the time information for acquiring the at least one resource attribute information Correspondence with time.
  • an embodiment of the present application provides an information processing device, which can be applied to the first device described above.
  • the information processing device includes:
  • the third receiving unit 1701 is configured to receive an observation request; the observation request includes refresh cycle information;
  • the third sending unit 1702 is configured to send the resource attribute information of the first resource to the first cloud platform according to the refresh period information.
  • FIG. 18 is a schematic diagram of the hardware composition structure of the server according to an embodiment of the present application.
  • the terminal also includes a communication bus 1804; various components in the terminal are coupled together through the communication bus 1804. It can be understood that the first transceiver 1801, the first processor 1802, and the first memory 1803 communicate through the communication bus 1804.
  • the first transceiver 1801 is configured to receive first request information; the first request information carries resource refresh indication information; the resource refresh indication information is used to indicate the first request information; The cloud platform refreshes the resource-related information of the first resource in the first device;
  • the first processor 1802 is configured to obtain resource-related information of the first resource based on the resource refresh indication information
  • the first transceiver 1801 is further configured to send the resource-related information to the second cloud platform.
  • the first processor 1802 is configured to obtain refresh cycle information; according to the refresh cycle information and the resource refresh instruction information, obtain resource-related information of the first resource.
  • the first transceiver 1801 is configured to send an observation request to the first device; the observation request instructs the first device to send an observation request to the first cloud based on the refresh cycle information.
  • the platform sends the resource attribute information of the first resource; based on the indication of the resource refresh instruction information, according to the refresh period information, receives the resource attribute information of the first resource sent by the first device;
  • the first processor 1802 is configured to determine the resource-related information based on the resource attribute information.
  • the first processor 1802 is configured to, if an observation mechanism has been established between the first cloud platform and the first device, the observation mechanism indicates that the first device is in the When the first resource attribute changes, the resource attribute information of the first resource is sent to the first cloud platform; then based on the instruction of the resource refresh instruction information, it is obtained from the first storage space in accordance with the refresh period information The resource attribute information of the first resource, and the resource-related information is determined based on the resource attribute information; the first storage space is used to store the resource attribute information received through the observation mechanism.
  • the first transceiver 1801 is configured to send a resource acquisition request to the first device based on the resource refresh indication information and in accordance with the refresh time period information; the resource acquisition The request is used to obtain the 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.
  • the first processor 1802 is configured to determine time information for acquiring resource attribute information
  • 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; In the case of disconnecting from the second cloud platform, based on the instruction of the resource refresh indication information, according to the refresh period information, obtain offline resource related information of a plurality of the first resources, and connect a plurality of offline resources
  • the 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 acquiring the offline resource attribute information.
  • the first processor 1802 is configured to sequentially store the plurality of offline resource related information in the second storage space according to the time sequence of acquiring the plurality of offline resource attribute information .
  • the first transceiver 1801 is configured to retrieve multiple data stored in the second storage space when the first cloud platform and the second cloud platform re-establish a connection. Obtain at least one offline resource related information from the offline resource related information, 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 complete.
  • the first processor 1802 is configured to obtain at least one piece of offline resource-related information from the plurality of offline resource-related information in a time sequence of the plurality of offline resource-related information in the second storage space .
  • the first processor 1802 is configured to, in a case where the first cloud platform and the second cloud platform re-establish a connection, based on the instruction of the resource refresh instruction information, in accordance with the instruction
  • the refresh period information is used to obtain resource-related information of the first resource; if offline resource-related information is also stored in the second storage space, the resource-related information is used as the offline resource-related information and stored in all Said in the second storage space;
  • 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.
  • FIG. 19 is a schematic diagram of the hardware composition structure of the server according to an embodiment of the present application.
  • the terminal also includes a communication bus 1904; various components in the terminal are coupled together through the communication bus 1904. It can be understood that the second transceiver 1901, the second processor 1902, and the second memory 1903 communicate through the communication bus 1904.
  • the second transceiver 1901 is configured to send first request information; the first request information carries resource refresh indication information; the resource refresh indication information is used to indicate the first cloud
  • the platform refreshes the resource-related information of the first resource in the first device; and receives the resource-related information of the first resource that is sent based on the resource refresh instruction information.
  • the second transceiver 1901 is configured to receive at least one resource-related information of the first resource
  • the second processor 1902 is configured to establish a correspondence between the resource attribute information of the first resource and time based on the resource attribute information of the at least one first resource and the time information for acquiring the at least one resource attribute information relation.
  • FIG. 20 is a schematic diagram of the hardware composition structure of the device of the embodiment of the application.
  • the terminal also includes a communication bus 2004; various components in the terminal are coupled together through the communication bus 2004. It can be understood that the third transceiver 2001, the third processor 2002, and the third memory 2003 communicate through the communication bus 2004.
  • the third transceiver 2001 is configured to receive an observation request; the observation request includes refresh cycle information; according to the refresh cycle information, the first resource is sent to the first cloud platform The resource attribute information.
  • the embodiment of the present application also provides a computer storage medium, which is specifically a computer-readable storage medium.
  • Computer instructions are stored thereon.
  • the computer storage medium is located in the terminal, when the computer instructions are executed by the processor, any step in the information processing method described in the embodiment of the present application is implemented.
  • the size of the sequence numbers of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not correspond to the embodiments of the present application.
  • the implementation process constitutes any limitation.
  • the disclosed system, device, and method can be implemented in other ways.
  • the device embodiments described above are merely illustrative, for example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or It can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of the present application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store program codes. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiments of the present application provide an information processing method, which is applied to a first cloud platform. Said method comprises: receiving first request information, wherein the first request information carries resource refresh instruction information, and the resource refresh instruction information is used for instructing a first cloud platform to refresh resource-related information of a first resource in a first device; acquiring the resource-related information of the first resource on the basis of the resource refresh instruction information; and sending the resource-related information to a second cloud platform. By instructing the first cloud platform to refresh the first resource of the first device, the resource-related information of the first resource is acquired, so that the related information of the first resource in the first device can be learned in a timely manner, so as to determine whether the first device is in a working state.

Description

信息处理方法及装置、设备、计算机存储介质Information processing method and device, equipment, computer storage medium 技术领域Technical field
本申请涉及物联网技术领域,尤其涉及一种信息处理方法及装置、设备、计算机存储介质。This application relates to the technical field of the Internet of Things, and in particular to an information processing method and device, equipment, and computer storage medium.
背景技术Background technique
随着越来越多的设备接入物联网,众多厂商的云平台从私有走向开放共享,云云互联技术能够使得不同厂商的云平台互联互通,打破了不同厂商品牌之间的隔阂,实现跨界融合。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-cloud interconnection technology enables the interconnection of cloud platforms of different manufacturers, breaking the barriers between different manufacturers’ brands, and realizing cross-border Fusion.
目前,一个云平台(例如源云平台)可以订阅另一云平台(例如目标云平台)上物联网设备的资源。然而,相关技术中仅规定了基于资源属性信息改变的订阅;也就是说,相关技术的资源订阅只有在目标云平台上设备资源属性信息发生改变时,才会将对应的资源属性信息发送至源云平台。这样,源云平台无法及时获知设备的工作状态。Currently, one cloud platform (for example, the source cloud platform) can subscribe to the resources of the IoT device on another cloud platform (for example, the target cloud platform). However, the related technology only specifies the subscription based on the change of resource attribute information; that is to say, the resource subscription of the related technology will only send the corresponding resource attribute information to the source when the device resource attribute information on the target cloud platform changes. cloud platform. In this way, the source cloud platform cannot know the working status of the device in time.
发明内容Summary of the invention
本申请实施例提供了一种信息处理方法及装置、设备、计算机存储介质。The embodiments of the present application provide an information processing method and device, equipment, and computer storage medium.
第一方面,本申请实施例提供一种信息处理方法,应用于第一云平台,所述方法包括:In the first aspect, an embodiment of the present application provides an information processing method applied to a first cloud platform, and the method includes:
接收第一请求信息;所述第一请求信息中携带有资源刷新指示信息;所述资源刷新指示信息用于指示所述第一云平台对第一设备中第一资源的资源相关信息进行刷新;Receiving first request information; the first request information carries resource refresh instruction information; the resource refresh instruction information is used to instruct the first cloud platform to refresh the resource-related information of the first resource in the first device;
基于所述资源刷新指示信息,获取所述第一资源的资源相关信息;Acquiring resource-related information of the first resource based on the resource refresh instruction information;
向第二云平台发送所述资源相关信息。Send the resource-related information to the second cloud platform.
第二方面,本申请实施例提供一种信息处理方法,应用于第二云平台,所述方法包括:In the second aspect, an embodiment of the present application provides an information processing method applied to a second cloud platform, and the method includes:
发送第一请求信息;所述第一请求信息携带有资源刷新指示信息;所述资源刷新指示信息用于指示所述第一云平台对第一设备中第一资源的资源相关信息进行刷新;Sending first request information; the first request information carries resource refresh instruction information; the resource refresh instruction information is used to instruct the first cloud platform to refresh the resource-related information of the first resource in the first device;
接收基于所述资源刷新指示信息发送的所述第一资源的资源相关信息。Receiving the resource-related information of the first resource sent based on the resource refresh instruction information.
第三方面,本申请实施例提供一种信息处理方法,应用于第一设备,所述方法包括:In a third aspect, an embodiment of the present application provides an information processing method applied to a first device, and the method includes:
接收观察请求;所述观察请求包括刷新周期信息;Receiving an observation request; the observation request includes refresh cycle information;
按照所述刷新周期信息,向所述第一云平台发送所述第一资源的资源属性信息。According to the refresh period information, the resource attribute information of the first resource is sent to the first cloud platform.
第四方面,本申请实施例提供一种信息处理装置,应用于第一云平台,所述装置包括:In a fourth aspect, an embodiment of the present application provides an information processing device applied to a first cloud platform, and the device includes:
第一接收单元,配置为接收第一请求信息;所述第一请求信息中携带有资源刷新指示信息;所述资源刷新指示信息用于指示所述第一云平台对第一设备中第一资源的资源相关信息进行刷新;The first receiving unit is configured to receive 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 request the first resource in the first device Refresh the resource-related information of;
第一获取单元,配置为基于所述资源刷新指示信息,获取所述第一资源的资源相关信息;The first obtaining unit is configured to obtain resource-related information of the first resource based on the resource refresh indication information;
第一发送单元,还配置为向第二云平台发送所述资源相关信息。The first sending unit is further configured to send the resource-related information to the second cloud platform.
第五方面,本申请实施例提供一种信息处理装置,应用于第二云平台,所述装置包括:In a fifth aspect, an embodiment of the present application provides an information processing device applied to a second cloud platform, and the device includes:
第二发送单元,配置为发送第一请求信息;所述第一请求信息携带有资源刷新指示信息;所述资源刷新指示信息用于指示所述第一云平台对第一设备中第一资源的资源相关信息进行刷新;The second sending unit is configured to send the first request information; the first request information carries resource refresh indication information; the resource refresh indication information is used to indicate that the first cloud platform receives the first resource in the first device Refresh the resource-related information;
第二接收单元,配置为接收基于所述资源刷新指示信息发送的所述第一资源的资源相关信息。The second receiving unit is configured to receive resource-related information of the first resource that is sent based on the resource refresh instruction information.
第六方面,本申请实施例提供一种信息处理装置,应用于第一设备,所述装置包括:In a sixth aspect, an embodiment of the present application provides an information processing device, which is applied to a first device, and the device includes:
第三接收单元,配置为接收观察请求;所述观察请求包括刷新周期信息;The third receiving unit is configured to receive an observation request; the observation request includes refresh cycle information;
第三发送单元,配置为按照所述刷新周期信息,向所述第一云平台发送所述第一资源的资源属性信息。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 period information.
第七方面,本申请实施例提供一种服务器,应用于第一云平台,所述服务器包括:第一收发器、第一处理器和存储有计算机程序的第一存储器;In a seventh aspect, an embodiment of the present application provides a server, which is applied to a first cloud platform, and the server includes: a first transceiver, a first processor, and a first memory storing a computer program;
所述第一收发器、所述第一处理器和所述第一存储器之间通过第一通信总线进行通信;Communicating between the first transceiver, the first processor, and the first memory through a first communication bus;
所述第一处理器,配置为通过所述第一收发器实现与另一设备的通信;其中,The first processor is configured to implement communication with another device through the first transceiver; wherein,
所述第一处理器,还用于结合所述第一收发器,运行所述第一存储器中存储的所述计算机程序时,执行上述第一方面所述方法的步骤。The first processor is further configured 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.
第八方面,本申请实施例提供一种服务器,应用于第二云平台,所述服务器包括:第二收发器、第二处理器和存储有计算机程序的第二存储器;In an eighth aspect, an embodiment of the present application provides a server, which is applied to a second cloud platform, and the server includes: a second transceiver, a second processor, and a second memory storing a computer program;
所述第二收发器、所述第二处理器和所述第二存储器之间通过第二通信总线进行通信;Communicating between the second transceiver, the second processor, and the second memory through a second communication bus;
所述第二处理器,配置为通过所述第二收发器实现与另一设备的通信;其中,The second processor is configured to implement communication with another device through the second transceiver; wherein,
所述第二处理器,还用于结合所述第二收发器,运行所述第二存储器中存储的所述计算机程序时,执行上述第二方面所述方法的步骤。The second processor is further configured to perform the steps of the method described in the second aspect above when running the computer program stored in the second memory in conjunction with the second transceiver.
第九方面,本申请实施例提供一种设备,所述设备包括:第三收发器、第三处理器和存储有计算机程序的第三存储器;In a ninth aspect, an embodiment of the present application provides a device, the device including: 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 through a third communication bus;
所述第三处理器,配置为通过所述第三收发器实现与另一设备的通信;其中,The third processor is configured to implement communication with another device through the third transceiver; wherein,
所述第三处理器,还用于结合所述第三收发器,运行所述第三存储器中存储的所述计算机程序时,执行上述第三方面所述方法的步骤。The third processor is further configured to perform the steps of the method described in the third aspect when running the computer program stored in the third memory in conjunction with the third transceiver.
第十方面,本申请实施例一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被第一处理器执行实现第一方面所述方法的步骤;或者;所述计算机程序被第二处理器执行第二方面所述方法的步骤;或者;所述计算机程序被第三处理器执行第三方面所述方法的步骤。In a tenth aspect, a computer-readable storage medium according to an embodiment of the present application has a computer program stored thereon, and the computer program is executed by a first processor to realize the steps of the method described in the first aspect; or; the computer program is The second processor executes the steps of the method described in the second aspect; or; the computer program is executed by the third processor the steps of the method described in the third aspect.
本申请实施例提供的物联网信息处理方法及装置、设备、计算机存储介质,其中,第一云平台接收第一请求信息;所述第一请求信息中携带有资源刷新指示信息;所述资源刷新指示信息用于指示所述第一云平台刷新第一设备的第一资源;基于所述资源刷新指示信息,获取所述第一资源的资源相关信息;向第二云平台发送所述资源相关信息。这样,可以通过指示第一云平台对第一设备的第一资源进行刷新,来获取第一资源的资源相关信息,这样可以及时了解第一设备中第一资源的相关信息,确定第一设备是否处于工作状态。In the Internet of Things information processing method, device, device, and computer storage medium provided by the embodiments of the present application, the first cloud platform receives first request information; the first request information carries resource refresh indication information; the resource refresh The instruction information is used to instruct the first cloud platform to refresh the first resource of the first device; obtain resource-related information of the first resource based on the resource refresh instruction information; send the resource-related information 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 learned in time to determine whether the first device is In working condition.
附图说明Description of the drawings
图1为本申请实施例提供的一种示例性的物联网云服务网络架构示意图;FIG. 1 is a schematic diagram of an exemplary Internet of Things cloud service network architecture provided by an embodiment of this application;
图2为本申请实施例提供的一种信息处理方法流程示意图一;FIG. 2 is a schematic diagram 1 of the flow of an information processing method provided by an embodiment of this application;
图3为本申请实施例提供的一种信息处理方法流程示意图二;FIG. 3 is a schematic diagram 2 of the flow of an information processing method provided by an embodiment of this application;
图4为本申请实施例提供的一种信息处理方法流程示意图三;FIG. 4 is a third schematic flowchart of an information processing method provided by an embodiment of this application;
图5为本申请实施例提供的一种信息处理方法流程示意图四;FIG. 5 is a fourth schematic flowchart of an information processing method provided by an embodiment of this application;
图6为本申请实施例提供的一种信息处理方法流程示意图五;FIG. 6 is a schematic flow diagram five of an information processing method provided by an embodiment of this application;
图7为本申请实施例提供的一种信息处理方法流程示意图六;FIG. 7 is a sixth flowchart of an information processing method provided by an embodiment of this application;
图8为本申请实施例提供的一种信息处理方法流程示意图七;FIG. 8 is a seventh schematic flowchart of an information processing method provided by an embodiment of this application;
图9为本申请实施例提供的一种信息处理方法流程示意图八;FIG. 9 is an eighth schematic flowchart of an information processing method provided by an embodiment of this application;
图10为本申请实施例提供的一种信息处理方法流程示意图九;10 is a schematic diagram 9 of the flow of an information processing method provided by an embodiment of this application;
图11为本申请实施例提供的一种信息处理交互流程示意图一;FIG. 11 is a schematic diagram 1 of an information processing interaction flow provided by an embodiment of this application;
图12为本申请实施例提供的一种信息处理交互流程示意图二;FIG. 12 is a second schematic diagram of an information processing interaction flow provided by an embodiment of this application;
图13为本申请实施例提供的一种信息处理交互流程示意图三;FIG. 13 is a third schematic diagram of an information processing interaction flow provided by an embodiment of this application;
图14为本申请实施例提供的一种信息处理交互流程示意图四;FIG. 14 is a fourth schematic diagram of an information processing interaction flow provided by an embodiment of this application;
图15为本申请实施例提供的一种信息处理装置结构组成示意图一;15 is a schematic diagram 1 of the structural composition of an information processing device provided by an embodiment of this application;
图16为本申请实施例提供的一种信息处理装置结构组成示意图二;FIG. 16 is a second schematic diagram of the structural composition of an information processing device provided by an embodiment of this application;
图17为本申请实施例提供的一种信息处理装置结构组成示意图三;FIG. 17 is a third schematic diagram of the structural composition of an information processing device provided by an embodiment of this application;
图18为本申请实施例提供的一种服务器硬件结构组成示意图一;18 is a schematic diagram 1 of a server hardware structure provided by an embodiment of the application;
图19为本申请实施例提供的一种服务器硬件结构组成示意图二;FIG. 19 is a second schematic diagram of a server hardware structure provided by an embodiment of the application;
图20为本申请实施例提供的一种设备硬件结构组成示意图。FIG. 20 is a schematic diagram of a hardware structure composition of a device provided by an embodiment of the application.
具体实施方式detailed description
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述,所附附图仅供参考说明之用,并非用来限定本发明实施例。In order to make the objectives, technical solutions, and advantages of the present application clearer, the embodiments of the present application will be further described in detail below in conjunction with the accompanying drawings. The accompanying drawings are for reference and explanation purposes only, and are not used to limit the embodiments of the present invention.
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。It should be noted that the terms "first" and "second" in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific sequence. 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 optionally includes unlisted steps or units, or optionally also includes Other steps or units inherent in these processes, methods, products or equipment.
参考图1所示的一种物联网云服务网络架构示意图,其中,设备111,以及设备112与源云平台11连接,并使用设备到云(Device to Cloud,D2C)接口通信;同样地,设备121,以及设备122与目标云平台12连接,通过D2C接口进行通信。这里,源云平台11和目标云平台12能够控制与其连接的设 备,如设备软硬件升级、设备功能控制、资源更新、资源订阅、资源查询等。Refer to the schematic diagram of an Internet of Things cloud service network architecture shown in FIG. 121, and the device 122 is connected to the target cloud platform 12, and communicates 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, and so on.
源云平台11和目标云平台12连接,并通过开放连接基金会(Open Connectivity Foundation,OCF)规定的云云互联(Cloud to Cloud,C2C)接口进行通信。这里,源云平台11和目标云平台12可以通过C2C接口对对方连接的设备进行资源管理,如资源查询,资源更新,资源订阅等。The source cloud platform 11 and the target cloud platform 12 are connected, and communicate through a 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, and resource subscription.
另外,图1所示的网络架构中还包括客户端13,客户端13与源云平台11可通过网络连接,这里,客户端13是指与源云平台11连接的应用程序。用户可以通过客户端13与源云平台11的连接,访问该网络架构中任意一个设备;例如,客户端13可以向源云平台11发送关于设备121的资源获取指令,这样,源云平台11响应该指令,并通过OCF C2C的应用程序接口(Application Programming Interface,API)访问目标云平台12下设备121的资源,并获取该资源的资源属性信息,将该资源属性信息返回给客户端,通过客户端的显示界面呈现该资源属性信息。In addition, the network architecture shown in FIG. 1 also includes a client 13, and the client 13 can be connected to the source cloud platform 11 through a network. Here, the client 13 refers to an application program 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 the source cloud platform 11 a resource acquisition instruction on the device 121, so that the source cloud platform 11 responds It should be instructed to access the resources of the device 121 under the target cloud platform 12 through the OCF C2C Application Programming Interface (API), and obtain the resource attribute information of the resource, and return the resource attribute information to the client through the client The display interface of the terminal presents the resource attribute information.
需要说明的是,在图1所示的物联网云服务网络架构中,云平台和云平台之间可以通过超文本传输协议(HyperText Transfer Protocol,HTTP)完成资源的请求和响应。It should be noted that in the Internet of Things cloud service network architecture shown in Figure 1, resource requests and responses can be completed between the cloud platform and the cloud platform through the HyperText Transfer Protocol (HTTP).
目前OCF C2C API支持的资源查询的接口如表1所示:Currently, the resource query interfaces supported by OCF C2C API are shown in Table 1:
表1:OCF C2C API资源查询接口Table 1: OCF C2C API resource query interface
Figure PCTCN2020096419-appb-000001
Figure PCTCN2020096419-appb-000001
目前OCF C2C API支持的资源更新接口如表2所示:Currently, the resource update interfaces supported by OCF C2C API are shown in Table 2:
表2:OCF C2C API资源更新接口Table 2: OCF C2C API resource update interface
Figure PCTCN2020096419-appb-000002
Figure PCTCN2020096419-appb-000002
目前OCF C2C API支持的资源订阅接口如表3所示:Currently, the resource subscription interfaces supported by OCF C2C API are shown in Table 3:
表3:OCF C2C API资源订阅接口Table 3: OCF C2C API resource subscription interface
Figure PCTCN2020096419-appb-000003
Figure PCTCN2020096419-appb-000003
Figure PCTCN2020096419-appb-000004
Figure PCTCN2020096419-appb-000004
需要说明的是,表1至表3中出现的{deviceid}是指请求对象标识信息,{resourcehref}是指请求对象的资源的URI,{subscriptionId}是订阅完成后用于标识订阅事件的标识。It should be noted that {deviceid} in Table 1 to Table 3 refers to the identification information of the request object, {resourcehref} refers to the URI of the resource of the request object, and {subscriptionId} is the identifier used to identify the subscription event after the subscription is completed.
例如,源云平台11需要订阅目标云平台12下设备121的资源时,源云平台11可以向目标云平台12发送订阅设备资源属性变化请求:POST:/api/v1/devices/{deviceid}/{resourcehref}/subscriptions,该订阅请求中所携带的负载信息(Payload)可以包括: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 payload information (Payload) carried in the subscription request may include:
{{
"eventsUrl":"https://mynotificationuri","eventsUrl":"https://mynotificationuri",
"eventTypes":["resource_contentchanged"],"eventTypes":["resource_contentchanged"],
"signingSecret":"DVDUEBe5nciVSXU85BPxrAjSsHenTzWY""signingSecret":"DVDUEBe5nciVSXU85BPxrAjSsHenTzWY"
}}
其中,eventsUrl字段用于指示信息上报地址,eventsUrl字段的取值是由源云平台11提供,通常eventsUrl字段的取值为统一资源定位符(Uniform Resource Locator,URL)地址。eventTypes字段表示事件类型,resource_contentchanged是指资源属性信息变化事件,即当资源属性信息变化时,将该资源属性信息进行上报。signingSecret字段表征签名密钥信息,用于数据的完整性校验;具体地,目标云平台可以使用该签名密钥信息对数据进行签名运算,并将签名运算后的数据发送给源云平台,使得源云平台(即eventsUrl)能够对接收到的数据实现数据完整性校验。Among them, the eventsUrl field is used to indicate the information report address, and the value of the eventsUrl field is provided by the source cloud platform 11, and the value of the eventsUrl field is usually a uniform resource locator (Uniform Resource Locator, URL) address. The eventTypes field indicates the event type, and resource_contentchanged refers to the resource attribute information change event, that is, when the resource attribute information changes, the resource attribute information is reported. The signingSecret field characterizes the signature key information and is used for data integrity verification; specifically, the target cloud platform can use the signature key information to sign the data, and send the signed data to the source cloud platform, so that The source cloud platform (eventsUrl) can verify the data integrity of the received data.
进一步地,在资源订阅成功后,目标云平台12会给源云平台11返回订阅标识,具体可以包括以下信息:Further, after the resource subscription is successful, the target cloud platform 12 will return the subscription identifier to the source cloud platform 11, which may specifically include the following information:
subscriptionId:subscriptionId:
{{
"subscriptionId":"1eeb465c-5e8d-4305-a366-bbf035fff671""subscriptionId":"1eeb465c-5e8d-4305-a366-bbf035fff671"
},},
这样,源云平台11可以通过订阅标识获取对应的订阅信息。In this way, the source cloud platform 11 can obtain corresponding subscription information through the subscription identifier.
进一步,资源订阅成功后,当目标云平台12连接的设备121资源属性内容改变时,目标云平台12会将设备121的资源属性信息发送至源云平台11提供的eventURL地址上。Further, 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.
目前,物联网协议中仅提供了针对OCF设备资源属性内容改变的订阅,即,只有设备的资源属性信息发生变化时,才会触发资源属性信息的发送;资源订阅方式单一,且不够灵活。并且,使用该资源订阅方式,若设备资源属性长时间不发生变化,会导致源云平台无法感知目标云平台上的设备是否处于正常工作状态的问题。Currently, the Internet of Things protocol only provides subscriptions for changes in OCF device resource attribute content, that is, the sending of resource attribute information is triggered only when the resource attribute information of the device changes; the resource subscription method is single and not flexible enough. Moreover, using this resource subscription method, if the device resource attributes do 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 a normal working state.
基于此,本申请实施例提供一种物联网信息处理方法,该方法可以应用于第一云平台,该第一云平台可以为服务器,独立的计算设备,可以为计算集群,本申请实施对此不作限定。这里,该物联网信息处理方法可以应用于图1所示的物联网云服务架构中,本申请实施例所述的第一云平台可以是图1所示物联网云服务架构中的目标云平台12。Based on this, an embodiment of the present application provides an Internet of Things information processing method, which can be applied to a first cloud platform, and the first cloud platform can be a server, an independent computing device, or a computing cluster. This application implements this Not limited. Here, the Internet of Things information processing method may be applied to the Internet of Things cloud service architecture shown in FIG. 1, and the first cloud platform described in the embodiment of the present application may be the target cloud platform in the Internet of Things cloud service architecture shown in FIG. 12.
图2是本申请实施例提供的物联网信息处理方法的示意性流程图。如图2所示,该方法包括步骤210至步骤220。其中,FIG. 2 is a schematic flowchart of a method for processing Internet of Things information provided by an embodiment of the present application. As shown in FIG. 2, the method includes step 210 to step 220. in,
步骤210、接收第一请求信息;资源刷新指示信息用于指示所述第一云平台对第一设备中第一资源的资源相关信息进行刷新;Step 210: Receive the first request information; the resource refresh instruction information is used to instruct the first cloud platform to refresh the resource-related information of the first resource in the first device;
步骤220、基于资源刷新指示信息,获取第一资源的资源相关信息;Step 220: Obtain resource-related information of the first resource based on the resource refresh instruction information;
步骤230、向第二云平台发送资源相关信息。Step 230: Send resource-related information to the second cloud platform.
在一些实施方式中,第一云平台可以接收第二云平台发送的第一请求信息。In some embodiments, the first cloud platform may receive the first request information sent by the second cloud platform.
这里,第一云平台和第二云平台不同。第一云平台和第二云平台可以是不同厂商的云平台,也可以是同一厂商建立的不同的云平台。Here, the first cloud platform is different from the second cloud platform. The first cloud platform and the second cloud platform may be cloud platforms of different vendors, or different cloud platforms established by the same vendor.
应理解,第一云平台可以通过各种类型的连接方式与第二云平台连接,并通过C2C接口进行通信,例如,第一云平台可以与第二云平台通过有线方式连接或者通过蜂窝通信连接。本申请实施例这里不对云平台之间的连接方式进行限定。It should be understood that the first cloud platform may 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 may be connected to the second cloud platform through a wired manner or through cellular communication. . The embodiments of the application here do not limit the connection mode between cloud platforms.
在一些实施方式中,第一云平台还可以接收其他云平台转发的该第二云平台发送的第一请求信息。In some embodiments, the first cloud platform may also receive the first request information sent by the second cloud platform forwarded by other cloud platforms.
在一些实施方式中,第一请求信息可以包括设备标识和/或资源标识。这里,设备标识可以是接入第一云平台中的物联网设备的标识信息;资源标识可以是接入第一云平台中物联网设备中各种类型的资源标识。应理解,接入第一云平台中的设备可以基于D2C接口,并按照物联网协议与第一云平台进行通信,接收第一云平台的指令进行相应的处理。In some embodiments, the first request information may include a device identification and/or a resource identification. Here, the device identifier may be the identification information of the IoT device connected to the first cloud platform; the resource identifier may be various types of resource identifiers of the IoT device connected to the first cloud platform. It should be understood that the device connected to the first cloud platform may be based on the D2C interface, communicate with the first cloud platform in accordance with the Internet of Things protocol, and receive instructions from the first cloud platform to perform corresponding processing.
需要说明的是,本申请实施例所提及的资源可以指设备的型号,软硬件版本、生产商等静态属性,还可以指第一设备可以执行的操作,可以上报的事件、参数,可以读取的状态参数等动态属性,例如用电量、用水量、温度等。It should be noted that the resources mentioned in the embodiments of this application can refer to static attributes such as device model, software and hardware version, manufacturer, etc., and can also refer to operations that can be performed by the first device, events and parameters that can be reported, and can be read. Dynamic attributes such as the status parameters, such as electricity consumption, water consumption, temperature, etc.
第一云平台可以解析该第一请求信息,根据第一请求信息中携带的设备标识和/或资源标识,来确定所请求的资源。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.
在一些实施方式中,第一请求信息中仅包括设备标识时,可以确定第一云平台上与该设备标识对应的设备为第一设备,并确定该第一设备的所有资源为第一资源。In some embodiments, when only the device identifier is included in the first request information, the device corresponding to the device identifier on the first cloud platform may be determined to be the first device, and all resources of the first device may be determined as the first resource.
在另一些实施方式中,第一请求信息中仅包括资源标识时,可以确定第一云平台上具有与该资源标识匹配的资源的设备为第一设备,且第一设备中存储的与该源标识对应的资源为第一资源。In other embodiments, when only the resource identifier is included in the first request information, it can be determined that the device on the first cloud platform that has a resource matching the resource identifier is the first device, and the device stored in the first device is the same as that of the source. The corresponding resource is identified as the first resource.
在又一些实施方式中,第一请求信息中包含设备标识和资源标识时,可以确定第一云平台上与该设备标识对应的设备为第一设备,第一设备中存储的与该资源标识对应的资源为第一资源。In still other embodiments, when the first request information includes the device identifier and the 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 device stored in the first device corresponds to the resource identifier The resource is the first resource.
在本申请提供的实施例中,第一请求信息还包括资源刷新指示信息,这里,资源刷新指示信息用于指示第一云平台对第一设备中第一资源的资源相关信息进行刷新。这样,第一云平台在接收到第一请求信息之后,对第一请求信息进行解析,当解析到资源刷新指示信息,根据第一请求信息的指示获取第一资源的资源相关信息,并将获取的资源相关信息发送给第二云平台。In the embodiment provided in this application, the first request information further includes resource refresh indication information. Here, 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. When the resource refresh instruction information is parsed, it obtains the resource-related information of the first resource according to the instructions of the first request information, and obtains The resource-related information of is sent to the second cloud platform.
本申请实施例提供的信息处理方法,可以通过指示第一云平台对第一设备的第一资源进行刷新,来获取第一资源的资源相关信息,这样可以及时了解第一设备中第一资源的相关信息,确定第一设备是否处于工作状态。The information processing method provided by the embodiments of the present application can obtain the 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 information of the first resource in the first device can be learned in time. Related information to determine whether the first device is in working state.
在本申请提供的实施例中,资源刷新指示信息可以通过多种方式来指示第一云平台对第一资源的资源相关信息进行刷新,下面详细介绍两种方式:In the embodiment provided in this application, the resource refresh indication information can instruct the first cloud platform to refresh the resource-related information of the first resource in multiple ways. Two methods are described in detail below:
1、资源刷新指示信息可以是第一请求信息中的一个指示位,通过对该指示位设置特定的值,来指示第一云平台对第一资源的资源相关信息进行刷新。1. The resource refresh indication information may be an indication bit in the first request information. By setting a specific value on the indication bit, the first cloud platform is instructed to refresh the resource-related information of the first resource.
在一可行的示例中,可以设置上述指示位的取值为1,来指示第一云平台对第一资源的资源相关信息进行刷新,本申请实施例不限制标识位的具体数值表示方式。In a feasible example, the value of the 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 expression manner of the indicator bit.
2、资源刷新指示信息可以包括事件类型信息,这里,通过设置事件类型信息为资源刷新事件,来指示第一云平台对第一资源的资源相关信息进行刷新。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.
在一可行的示例中,事件类型信息可以通过以下方式表示:"eventTypes":["resource_refresh"]。In a feasible example, the event type information can be expressed in the following way: "eventTypes":["resource_refresh"].
可以理解为,资源刷新指示信息可以是第一请求信息中携带的事件类型信息。第一云平台在接收到第一请求信息后,对第一请求信息进行解析,当解析到事件类型为资源刷新事件类型时,则确定按照特定时间周期对所请求的第一资源进行刷新。It can be understood that the resource refresh indication information may be event type information carried in the first request information. After receiving the first request information, the first cloud platform analyzes the first request information, and when it is resolved that the event type is a resource refresh event type, it determines to refresh the requested first resource according to a specific time period.
基于前述实施例,参考图3所示的信息处理方法流程示意图二,步骤220基于资源刷新指示信息,获取第一资源的资源相关信息,还可以通过以下方式来实现:Based on the foregoing embodiment, referring to the second flowchart of the information processing method shown in FIG. 3, step 220 obtains the resource-related information of the first resource based on the resource refresh instruction information, which can also be implemented in the following manner:
步骤2201、获取刷新周期信息;Step 2201: Obtain refresh cycle information;
步骤2202、按照刷新周期信息和资源刷新指示信息,获取第一资源的资源相关信息。Step 2202: Obtain resource-related information of the first resource according to the refresh period information and the resource refresh instruction information.
这里,第一云平台还可以基于特定的时间周期和资源刷新指示信息,对第一设备中的第一资源的资源相关信息进行刷新。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.
可以理解的是,第一云平台获取刷新周期信息,确定资源刷新的周期;并在每一个刷新周期内,获取一次资源相关信息,进而将每次获取的资源先关信息发送给第二云平台。It is understandable that the first cloud platform obtains refresh cycle information and determines the resource refresh cycle; and in each refresh cycle, it obtains resource-related information once, and then sends the resource pre-relevant information obtained each time to the second cloud platform .
在本申请提供的实施例中,刷新周期信息为预设的,或者,刷新周期信息为第一请求信息中携带的。In the embodiment provided in this application, the refresh period information is preset, or the refresh period information is carried in the first request information.
这里,第一请求信息中仅包括资源刷新指示信息时,第一云平台可以将事先约定的时间周期或者默认的时间周期作为刷新周期信息,对第一资源的资源相关信息进行刷新。Here, when the first request information only includes resource refresh instruction information, the first cloud platform may use a pre-appointed time period or a default time period as the refresh period information to refresh the resource-related information of the first resource.
第一请求信息中包括第一请求信息中资源刷新指示信息和刷新周期信息时,第一云平台可以基于第一请求信息中携带的刷新周期信息,对第一资源的资源相关信息进行刷新。When the first request information includes resource refresh indication information and refresh period information in the first request information, the first cloud platform may refresh the resource-related information of the first resource based on the refresh period information carried in the first request information.
在本申请提供的实施例中,第一请求信息中携带刷新周期信息时,刷新周期信息可以通过周期字段以及周期字段的字段值表示,刷新周期信息为周期字段所对应的字段值。In the embodiment provided in this application, when the refresh period information is carried in the first request information, the refresh period information may be represented by the period field and the field value of the period field, and the refresh period information is the field value corresponding to the period field.
示例性的,刷新周期信息可以是"periodic":2;这里,periodic是指周期字段,2为周期字段对应的字段值,这里刷新周期的单位为秒(s)。在该示例中,可以确定刷新周期为2s。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 here is seconds (s). In this example, it can be determined that the refresh period is 2s.
综上可知,第一云平台可以在每个刷新周期内,获取第一资源的资源相关信息,并将获取的资源相关信息发送给第二云平台。这样,无论第一设备中第一资源是否发生变化,第二云平台都可以在固定的时间周期内得到第一资源的资源相关信息。如此,提高了资源订阅的灵活性。In summary, the first cloud platform can obtain 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 in a fixed time period. In this way, the flexibility of resource subscription is improved.
在一些实施方式中,资源相关信息可以仅包括第一资源的资源属性信息,资源相关信息也可以包括第一资源的资源属性信息,以及第一云平台获取该资源属性信息的时间信息。这里,时间信息可以是时间戳。这样,第二云平台可以获取每个资源属性信息对应的时间信息,可根据实际情况绘制第一资源的资源属性变化和时间变化的对应关系图,可以通过图形解读变化规律,从而执行有关计算。In some embodiments, the resource-related information may only include 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 time stamp. In this way, the second cloud platform can obtain the time information corresponding to each resource attribute information, can draw the 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 law through graphics to perform related calculations.
基于前述实施例,步骤2202按照刷新周期信息和资源刷新指示信息,获取第一资源的资源相关信息的实现方式有多种,下面介绍其中的三种方式:Based on the foregoing embodiment, in step 2202, according to the refresh cycle information and the resource refresh instruction information, there are many ways to obtain the resource-related information of the first resource, and three of them are described below:
方式一、method one,
参考图4所示的流程示意图,步骤2202按照刷新周期信息和资源刷新指示信息,获取第一资源的资源相关信息具体实现方式包括:Referring to the flowchart shown in FIG. 4, step 2202 obtains the resource-related information of the first resource according to the refresh cycle information and the resource refresh instruction information. The specific implementation methods include:
步骤410、向第一设备发送观察请求;观察请求指示第一设备基于刷新周期信息,向第一云平台发送第一资源的资源属性信息;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;
步骤420、基于资源刷新指示信息的指示,按照所述刷新周期信息,接收第一设备发送的第一资源的资源属性信息,并基于资源属性信息,确定资源相关信息。Step 420: Based on the indication of the resource refresh indication information, according to the refresh period 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.
可以理解的是,第一云平台在接收到第一请求信息后,解析第一请求信息,可以确定第一请求信息是请求按照刷新周期信息刷新第一设备中的第一资源。这样,第一云平台根据第一请求信息,向第一设备发送观察(observe)请求,并在第一观察请求中携带上述刷新周期信息,以指示第一设备按照刷新周期信息上报第一资源的资源属性信息。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 period 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 aforementioned refresh period information in the first observation request to instruct the first device to report the status of the first resource according to the refresh period information. Resource attribute information.
进一步,第一设备在接收到观察请求后,根据观察请求中携带的刷新周期信息,进行资源的上报。这样,第一云平台可以在每个刷新周期内,接收到第一设备上报的资源属性信息。Further, after receiving the observation request, the first device reports the resource according to the refresh period 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 period.
在一些实施方式中,观察请求可以是基于观察机制的设备资源请求,第一云平台可以根据第一请求信息携带的刷新周期信息,设置观察机制中的时间周期(periodic)选项的取值,使第一设备可根据设置的periodic选项的取值进行资源的上报。第一设备接收到上述基于观察机制的设备资源请求之后,响应该请求,与第一云平台建立观察机制,在每个刷新周期内,将第一资源的属性信息上报给第一云平台。In some embodiments, the observation request may be a device resource request based on the observation mechanism, and the first cloud platform may set the value of the period option in the observation mechanism according to the refresh period information carried in the first request information, so that The first device may report the resource 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 period.
在一些实施方式中,第一云平台可以直接将接收到的资源属性信息作为资源相关信息。In some embodiments, the first cloud platform may directly use the received resource attribute information as resource-related information.
在另一些实施方式中,第一云平台可以确定第一设备上报资源属性信息的时间信息(即获取资源属性信息的时间),并基于该资源属性信息以及获取该资源属性信息的时间信息,得到资源相关信息。也就是说,第一云平台可以向第二云平台发送资源属性信息,以及资源属性信息上报的时间。In other embodiments, the first cloud platform may determine the time information for the first device to report the resource attribute information (that is, the time for acquiring the resource attribute information), and obtain the resource attribute information based on the resource attribute information and the time information for acquiring the resource attribute information. Resource-related information. In other words, the first cloud platform may send resource attribute information and the time when the resource attribute information is reported to the second cloud platform.
需要说明的是,第一云平台在向第一设备发送观察请求之前,还可以判断与第一设备之间是否已经建立了观察机制,若未建立观察机制,则向第一云平台发送观察请求,若已经建立了观察机制,则可以通过方式二获取资源相关信息。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 with the first device. If an observation mechanism has not been established, it will send an observation request to the first cloud platform If an observation mechanism has been established, you can obtain resource-related information through method two.
方式二、Method two,
参考图5所示的流程示意图,步骤2202、按照刷新周期信息和资源刷新指示信息,获取第一资源的资源相关信息具体实现方式包括:Referring to the flowchart shown in FIG. 5, step 2202, according to the refresh cycle information and the resource refresh instruction information, obtain the resource-related information of the first resource. The specific implementation methods include:
步骤510、若第一云平台与第一设备之间已建立观察机制,则基于资源刷新指示信息的指示,按照刷新周期信息,从第一存储空间中获取第一资源的资源属性信息,并基于资源属性信息,确定资源相关信息;第一存储空间用于存储通过观察机制接收到的资源属性信息。Step 510: If an observation mechanism has been established between the first cloud platform and the first device, the resource attribute information of the first resource is obtained from the first storage space based on the instruction of the resource refresh indication information and according to the refresh period information. The resource attribute information determines the resource-related information; the first storage space is used to store the resource attribute information received through the observation mechanism.
其中,观察机制表征第一设备在第一资源属性变化时,向第一云平台发送第一资源的资源属性信息。Wherein, the observation mechanism characterizes that the first device sends the resource attribute information of the first resource to the first cloud platform when the attribute of the first resource changes.
在本申请提供的实施例中,第一云平台可以判断与第一设备之间是否已经建立了观察机制,即判断当前第一设备是否会主动上报其资源属性信息给第一云平台。In the embodiment provided in this application, the first cloud platform may determine whether an observation mechanism has been established with the first device, that is, determine whether the current first device will actively report its resource attribute information to the first cloud platform.
若第一云平台和第一设备之间已建立观察机制,则认为第一设备能够主动向第一云平台上报其资源属性信息,并将上报的资源属性信息保存至第一存储空间。这里,第一存储空间可以是第一设备的内存。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 in the first storage space. Here, the first storage space may be the memory of the first device.
这样,在第一云平台和第一设备之间已建立观察机制的情况下,第一云平台可以根据第一请求信息,在每个固定的刷新周期内从第一存储空间中获取第一设备的资源属性信息。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 the first device from the first storage space in each fixed refresh period according to the first request information. The resource attribute information.
需要说明的是,本申请实施例中,基于上述观察机制的第一设备只有在第一资源的资源属性信息变化时,才将资源属性信息上报给第一云平台。本申请中,第一设备上报资源属性信息后,第一云平台可以使用新的资源属性信息替换之前第一存储空间中保存的资源属性信息,第一云平台也可以按照接收时间的先后顺序保存多个资源属性信息。It should be noted that, in this embodiment of the application, the first device based on the above observation mechanism only reports the resource attribute information to the first cloud platform when the resource attribute information of the first resource changes. In this application, after the first device reports the resource attribute information, the first cloud platform can use the new resource attribute information to replace the previously stored resource attribute information in the first storage space, and the first cloud platform can also store it in the order of receiving time Multiple resource attribute information.
基于此,第一云平台可以在每个固定的刷新周期内,从第一存储空间中获取最新的资源属性信息。并基于最新的资源属性信息,得到资源相关信息。Based on this, the first cloud platform can obtain the latest resource attribute information from the first storage space in each fixed refresh period. And based on the latest resource attribute information, get resource-related information.
在一些实施方式中,第一云平台将第一存储空间中获取的最新的资源属性信息作为资源相关信息。In some embodiments, the first cloud platform uses the latest resource attribute information acquired in the first storage space as resource-related information.
在另一些实施方式中,第一云平台可以确定每次从第一存储空间获取最新的资源属性信息的时间信息,并基于最新的资源属性信息,以及从第一存储空间获取该最新的资源属性信息的时间信息得到资源相关信息。也就是说,第一云平台可以向第二云平台发送资源属性信息,以及从第一存储空间获取该资源属性信息的时间。In other embodiments, the first cloud platform may determine the time information for obtaining the latest resource attribute information from the first storage space each time, and obtain the latest resource attribute information from the first storage space based on the latest resource attribute information. The time information of the information gets the resource-related information. That is, the first cloud platform may send resource attribute information to the second cloud platform, and the time when the resource attribute information is obtained from the first storage space.
方式三、Way three
参考图6所示的流程示意图,2202、按照刷新周期信息和资源刷新指示信息,获取第一资源的资源相关信息具体实现方式包括:Referring to the flowchart shown in FIG. 6, 2202, according to the refresh cycle information and the resource refresh instruction information, obtaining resource-related information of the first resource includes:
步骤610、基于资源刷新指示信息的指示,按照刷新时间周期信息,向第一设备发送资源获取请求;资源获取请求用于获取第一资源的资源属性信息:Step 610: Based on the instruction of the resource refresh indication information, according to the refresh time period information, send a resource acquisition request to the first device; the resource acquisition request is used to acquire resource attribute information of the first resource:
步骤620、接收第一设备发送的第一资源的资源属性信息,并基于资源属性信息,确定资源相关信息。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.
在本申请提供的实施例中,第一云平台在接收到第一请求信息后,解析第一请求信息,可以确定第一请求信息是请求按照刷新周期信息刷新第一设备中的第一资源。这样,第一云平台基于第一请求信息,在每个时间周期内,都主动向第一设备主动发送一次资源获取请求。并在每个时间周期内,接收第一设备返回的第一资源的资源属性信息。In the embodiment provided in this 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, the first cloud platform actively sends a resource acquisition request to the first device in each time period based on the first request information. And in each time period, the resource attribute information of the first resource returned by the first device is received.
在一些实施方式中,第一云平台可以直接将接收到的资源属性信息作为资源相关信息。In some embodiments, the first cloud platform may directly use the received resource attribute information as resource-related information.
在另一些实施方式中,第一云平台可以确定接收资源属性信息的时间信息(即获取资源属性信息的时间),并基于该资源属性信息以及获取该资源属性信息的时间信息,得到资源相关信息。也就是说,第一云平台可以向第二云平台发送资源属性信息,以及资源属性信息上报的时间。In other embodiments, the first cloud platform may determine the time information for receiving the resource attribute information (that is, the time for acquiring the resource attribute information), and obtain resource-related information based on the resource attribute information and the time information for acquiring the resource attribute information . In other words, the first cloud platform may send resource attribute information and the time when the resource attribute information is reported to the second cloud platform.
在一些实施方式中,本申请实施例所提及的资源相关信息可以包括第一资源的资源属性信息,以及获取该资源属性信息的时间信息。In some implementation manners, 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 obtaining the resource attribute information.
相应的,在步骤420、步骤510、以及步骤620中,基于资源属性信息,确定资源相关信息,包括:Correspondingly, in step 420, step 510, and step 620, determining resource-related information based on resource attribute information includes:
确定获取资源属性信息的时间信息;Determine the time information for obtaining resource attribute information;
基于资源属性信息和获取资源属性信息的时间信息,得到资源相关信息。Based on the resource attribute information and the time information for obtaining the resource attribute information, the resource-related information is obtained.
也就是说,第一云平台在每个时间周期内,不仅要获取资源属性信息,还要记录获取该资源属性信息的时间信息,进而,将资源属性信息和获取该资源属性信息的时间信息同时发送给第二云平台。这样,第二云平台可以获知每个资源属性信息对应的获取时间,可根据资源属性信息和获取时间,绘制设备资源属性变化和时间变化的对应关系图,可以通过图形解读变化规律,从而执行有关计算。That is to say, in each time period, the first cloud platform not only needs to obtain the resource attribute information, but also records the time information for obtaining the resource attribute information, and further, the resource attribute information and the time information for obtaining the resource attribute information at the same time Send to the second cloud platform. In this way, the second cloud platform can learn the corresponding acquisition time of each resource attribute information, and can draw the corresponding relationship diagram of the equipment resource attribute change and time change according to the resource attribute information and acquisition time, and can interpret the change rule through the graph to execute the related calculate.
基于前述实施例,参考图7所示的流程示意图,本申请实施例提供的信息处理方法还包括以下步骤:Based on the foregoing embodiment and referring to the flowchart shown in FIG. 7, the information processing method provided in the embodiment of the present application further includes the following steps:
步骤240、创建第二存储空间;第二存储空间用于存储第一资源的离线资源相关信息;Step 240: Create a second storage space; the second storage space is used to store offline resource related information of the first resource;
步骤250、在第一云平台与第二云平台断开连接的情况下,基于资源刷新指示信息的指示,按照刷新周期信息,获取多个第一资源的离线资源相关信息,并将多个离线资源相关信息存储至所述第二存储空间中;离线资源相关信息包括第一资源的离线资源属性信息,以及获取离线资源属性信息的时间信息。Step 250: In the case that the first cloud platform is disconnected from the second cloud platform, based on the instruction of the resource refresh instruction information, according to the refresh cycle information, obtain offline resource related information of the multiple first resources, and connect the multiple offline resources. The 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.
这里,当第一云平台与第二云平台断开连接后,且此时第二云平台未向第一云平台指示删除刷新第一资源的请求,在这种情况下,第一云平台可以在断开连接的每个刷新周期内,获取第一资源的离线资源相关信息,并将获取到的多个离线资源相关信息存储至第二存储空间中,以使得第一云平台和第二云平台重新建立连接后,可以将断开连接时间内获取到的离线资源相关信息发送给第二云平台。Here, when the first cloud platform is disconnected from the second cloud platform, and at this time, the second cloud platform does not indicate to the first cloud platform to delete the request to refresh the first resource. In this case, the first cloud platform may In each refresh cycle when the connection is disconnected, the offline resource-related information of the first resource is obtained, and the obtained multiple offline resource-related information is stored in the second storage space, so that the first cloud platform and the second cloud After the platform re-establishes the connection, the offline resource-related information obtained within the disconnected time can be sent to the second cloud platform.
在本申请提供的实施例中,离线资源相关信息包括第一资源的离线资源属性信息,以及获取离线资源属性信息的时间信息;也就是说,第一云平台可以记录获取离线资源相关信息的时间,并将离线资源属性信息以及获取该离线资源属性信息的时间一起保存在第二存储空间中。In the embodiment provided in this application, the offline resource related information includes the offline resource attribute information of the first resource and the time information for obtaining the offline resource attribute information; that is, the first cloud platform can record the time when the offline resource related information is obtained , And save the offline resource attribute information and the time when the offline resource attribute information is obtained together in the second storage space.
其中,步骤250中基于时间周期,获取多个第一资源的离线资源相关信息的实现方式可以包括三种,这三种实现方式与上述实施例提到的获取第一资源的资源相关信息类似。Among them, in step 250, based on the time period, there may be three implementation manners for obtaining offline resource-related information of multiple first resources, and these three implementation manners are similar to the resource-related information acquisition of the first resource mentioned in the foregoing embodiment.
也就是说,第一种实现方式可以是:第一云平台在每个刷新周期内,获取第一设备上报的资源属性 信息,并将该资源属性信息,以及接收该资源属性信息的时间作为离线资源相关信息存储在第二存储空间中。第二种实现方式可以是:第一云平台在每个刷新周期内,从第一存储空间中获取保存的最新的资源属性信息,并将该资源属性信息,以及从第一存储空间中获取该资源属性信息的时间作为离线资源相关信息存储在第二存储空间中。第三种实现方式可以是,第一云平台在每个刷新周期内,向第一设备发送资源请求信息,并接收第一设备的响应,进一步,将接收到第一资源的资源属性信息,以及接收该资源属性信息的时间作为离线资源相关信息存储在第二存储空间中。In other words, the first implementation may be: the first cloud platform obtains the resource attribute information reported by the first device in each refresh cycle, and uses the resource attribute information and the time when the resource attribute information is received as offline The resource-related information is stored in the second storage space. The second implementation may be: the first cloud platform obtains the latest resource attribute information stored in the first storage space in each refresh cycle, and obtains the resource attribute information from the first storage space. The time of the resource attribute information is stored in the second storage space as offline resource related information. The third implementation manner may be that the first cloud platform sends resource request information to the first device and receives the response of the first device in each refresh period, and further, will receive the resource attribute information of the first resource, and The time when the resource attribute information is received is stored in the second storage space as offline resource related information.
在一些实施方式中,步骤250将多个离线资源相关信息存储至第二存储空间中,可以包括:In some embodiments, step 250 storing multiple offline resource related information in the second storage space may include:
按照获取多个离线资源属性信息的时间顺序,依次将多个离线资源相关信息存储至第二存储空间中。According to the time sequence of acquiring the attribute information of the multiple offline resources, sequentially store the related information of the multiple offline resources in the second storage space.
也就是说,第一设备可按照获取离线资源属性信息的时间先后顺序,对离线资源相关信息进行存储。That is, the first device may store the offline resource related information according to the time sequence of acquiring the offline resource attribute information.
需要说明的是,步骤240可以在步骤220之前执行,也可以与步骤220同时执行。It should be noted that step 240 can be performed before step 220, or can be performed simultaneously with step 220.
基于前述实施例,参考图8所示的流程示意图,步骤250之后,还可以执行以下步骤:Based on the foregoing embodiment and referring to the flowchart shown in FIG. 8, after step 250, the following steps may be performed:
步骤260、在第一云平台第二云平台重新建立连接的情况下,从第二存储空间中存储的多个离线资源相关信息中获取至少一个离线资源相关信息,并向第二云平台发送至少一个离线资源相关信息,直至第二存储空间中的多个离线资源相关信息全部发送完毕。Step 260: Under the condition that the connection between the first cloud platform and the second cloud platform is re-established, obtain at least one piece of offline resource related information from the multiple offline resource related information stored in the second storage space, and send at least one piece of offline resource related information to the second cloud platform. One piece of offline resource related information until the multiple offline resource related information in the second storage space are all sent.
可以理解的是,当第一云平台和第二云平台重新建立连接后,第一云平台将第二存储空间存储的多个离线资源相关信息发送至第二云平台。这里,第一云平台可以将第二存储空间存储的多个离线资源相关信息,逐个读取出来并发送给第二云平台,第一云平台也可以每次从第二存储空间中读取多个离线资源相关信息并发送给第二云平台,本申请实施例这里不做限定。It is understandable that after the first cloud platform and the second cloud platform re-establish the connection, the first cloud platform sends multiple offline resource related information stored in the second storage space to the second cloud platform. Here, the first cloud platform can read multiple offline resource-related information stored in the second storage space one by one and send it to the second cloud platform. The first cloud platform can also read more information from the second storage space each time. Information about offline resources is sent to the second cloud platform, which is not limited in the embodiment of the present application.
在一些实施例中,按照第二存储空间中多个离线资源相关信息的时间顺序,依次从多个离线资源相关信息中获取至少一个离线资源相关信息。In some embodiments, at least one piece of offline resource related information is sequentially obtained from the plurality of offline resource related information according to the time sequence of the plurality of offline resource related information in the second storage space.
可以理解的是,第一设备可以按照获取离线资源属性信息的时间先后顺序,读取离线资源相关信息,并按照获取离线资源属性信息的时间先后顺序将离线相关信息发送给第二云平台。It is understandable that the first device can read offline resource related information according to the time sequence of obtaining offline resource attribute information, and send the offline related information to the second cloud platform according to the time sequence of obtaining offline resource attribute information.
在本申请提供的实施例中,在第一云平台和第二云平台重新建立连接的情况下,第一云平台在发送离线资源相关信息的同时,还在按照时间周期,获取每个时间周期内的资源相关信息。这时,第一云平台可以基于以下发送策略,来发送离线资源相关信息和当前获取到的资源相关信息。In the embodiment provided in this application, when the connection between the first cloud platform and the second cloud platform is re-established, the first cloud platform sends offline resource-related information while also acquiring each time period according to the time period. Resource-related information within. At this time, the first cloud platform may send offline resource related information and currently acquired resource related information based on the following sending strategy.
具体地,在第一云平台和第二云平台重新建立连接的情况下,基于刷新指示信息的指示,按照刷新周期信息,获取第一资源的资源相关信息;若第二存储空间中还存储有离线资源相关信息,则将资源相关信息作为离线资源相关信息,存储至第二存储空间中;若第二存储空间中未存储有离线资源相关信息,则将向第二云平台发送资源相关信息。Specifically, in the case where the connection between the first cloud platform and the second cloud platform is re-established, based on the instruction of the refresh instruction information, the resource-related information of the first resource is obtained according to the refresh period information; if the second storage space also stores For offline resource related information, the resource related information is stored in the second storage space as offline resource related information; if the offline resource related information is not stored in the second storage space, the resource related information will be sent to the second cloud platform.
也就是说,在第一云平台向第二云平台发送离线资源相关信息时,第一云平台还在不断地按照刷新周期获取资源相关信息,若当前第二存储空间中存储的离线资源相关信息没有全部发送出去,则将第一云平台当前获取的资源相关信息作为离线资源相关信息,存入第二存储空间中;若当前第二存储空间中没有离线资源相关信息,则第一云平台直接将获取到的当前的资源相关信息发送给第二云平台。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 constantly acquiring resource-related information according to the refresh cycle. If the current offline resource-related information stored in the second storage space If not all information is sent out, the resource-related information currently obtained by the first cloud platform is used as offline resource-related information and stored in the second storage space; if there is no offline resource-related information in the current second storage space, the first cloud platform directly Send the acquired current resource-related information to the second cloud platform.
如此,解决了离线资源相关信息和当前获取到的资源相关信息的发送冲突问题,使得离线资源相关信息和当前获取的资源相关信息有条不紊地发送。In this way, the problem of sending conflicts between the offline resource-related information and the currently acquired resource-related information is resolved, so that the offline resource-related information and the currently acquired resource-related information are sent in an orderly manner.
基于前述实施例,本申请实施例还提供一种信息处理方法,该方法可以应用于第二云平台,该第二云平台可以为独立的计算设备,可以为计算集群,本申请实施对此不作限定。这里,该信息处理方法可以应用于图1所示的物联网云服务架构中,本申请实施例的第二云平台可以是图1所示物联网云服务架构中的源云平台11。Based on the foregoing embodiments, the embodiments of the present application also provide 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. limited. Here, the information processing method can be applied to the IoT cloud service architecture shown in FIG. 1, and the second cloud platform in the embodiment of the present application may be the source cloud platform 11 in the IoT cloud service architecture shown in FIG. 1.
图9是本申请实施例提供的信息处理方法的示意性流程图。如图9所示,该方法包括步骤910和步骤920。其中,FIG. 9 is a schematic flowchart of an information processing method provided by an embodiment of the present application. As shown in FIG. 9, the method includes step 910 and step 920. in,
步骤910、发送第一请求信息;第一请求信息携带有资源刷新指示信息;资源刷新指示信息用于指示第一云平台对第一设备中第一资源的资源相关信息进行刷新;Step 910: Send first request information; the first request information carries resource refresh instruction information; the resource refresh instruction information is used to instruct the first cloud platform to refresh the resource-related information of the first resource in the first device;
步骤920、接收基于资源刷新指示信息发送的第一资源的资源相关信息。Step 920: Receive resource-related information of the first resource that is sent based on the resource refresh instruction information.
这里,第二云平台可以向第一云平台发送第一请求信息。Here, the second cloud platform may send the first request information to the first cloud platform.
在本申请提提供的实施例中,第二云平台可以接收客户端发送的指令,向第一云平台发送第一请求信息。第二云平台也可以根据实际需求,向第一云平台发送第一请求信息。In the embodiment provided in this application, the second cloud platform may receive an 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.
在一些实施方式中,第一请求信息可以包括设备标识和/或资源标识。这里,设备标识可以是接入第一云平台中的物联网设备的标识信息;资源标识可以是接入第一云平台中物联网设备中各种类型的资源标识。In some embodiments, the first request information may include a device identification and/or a resource identification. Here, the device identifier may be the identification information of the IoT device connected to the first cloud platform; the resource identifier may be various types of resource identifiers of the IoT device connected to the first cloud platform.
需要说明的是,本申请实施例所提及的资源可以指设备的型号,软硬件版本、生产商等静态属性, 还可以指第一设备可以执行的操作,可以上报的事件、参数,可以读取的状态参数等动态属性,例如用电量、用水量、温度等。It should be noted that the resources mentioned in the embodiments of this application can refer to static attributes such as device model, software and hardware version, manufacturer, etc., can also refer to operations that can be performed by the first device, events and parameters that can be reported, and can be read. Dynamic attributes such as the status parameters, such as electricity consumption, water consumption, temperature, etc.
在本申请提供的实施例中,第一请求信息还包括资源刷新指示信息,这里,资源刷新指示信息用于指示第一云平台对第一设备中第一资源的资源相关信息进行刷新。In the embodiment provided in this application, the first request information further includes resource refresh indication information. Here, 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. When the resource refresh instruction information is parsed, it obtains the resource-related information of the first resource according to the instructions of the first request information, and obtains The resource-related information of is sent to the second cloud platform. In this way, the second cloud platform can obtain resource-related information of the first resource and perform corresponding processing.
本申请实施例提供的信息处理方法,可以通过指示第一云平台对第一设备的第一资源进行刷新,来获取第一资源的资源相关信息,这样可以及时了解第一设备中第一资源的相关信息,确定第一设备是否处于工作状态。The information processing method provided by the embodiments of the present application can obtain the 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 information of the first resource in the first device can be learned in time. Related information to determine whether the first device is in working state.
在一些实施方式中,资源刷新指示信息包括事件类型信息;其中,事件类型信息为资源刷新事件时,指示第一云平台对第一资源进行刷新。In some embodiments, the resource refresh indication information includes event type information; where, when the event type information is a resource refresh event, it instructs the first cloud platform to refresh the first resource.
在一些实施方式中,第一请求信息还携带有刷新周期信息;刷新周期信息用于指示刷新第一资源的时间周期。In some embodiments, the first request information also carries refresh period information; the refresh period information is used to indicate the time period for refreshing the first resource.
在一些实施方式中,刷新周期信息通过周期字段以及周期字段的字段值表示,刷新周期信息为周期字段所对应的字段值。In some embodiments, the refresh period information is represented by the period field and the field value of the period field, and the refresh period information is the field value corresponding to the period field.
在一些实施方式中,资源相关信息包括第一资源的资源属性信息,以及获取资源属性信息的时间信息。In some embodiments, the resource-related information includes resource attribute information of the first resource, and time information for acquiring the resource attribute information.
在一些实施方式中,步骤920接收第一资源的资源相关信息,包括:In some embodiments, the step 920 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 for acquiring the at least one resource attribute information, a correspondence relationship between the resource attribute information of the first resource and the time is established.
第二平台可以在固定刷新周期得到资源属性信息,这样,第一云平台可根据接收到的资源属性信息和获取资源属性信息的时间信息,绘制资源属性变化和时间变化的对应关系图,可以通过图形解读变化规律,从而执行有关计算。The second platform can obtain resource attribute information in a fixed refresh cycle. In this way, the first cloud platform can draw the corresponding relationship between resource attribute changes and time changes based on the received resource attribute information and the time information for obtaining the resource attribute information. Graphic interpretation of the law of change, so as to perform related calculations.
基于前述实施例,本申请实施例还提供一种信息处理方法,该方法可以应用于第一设备。这里,该信息处理方法可以应用于图1所示的物联网云服务架构中,本申请实施例的第一设备可以是图1所示物联网云服务架构中的设备121或者设备122。Based on the foregoing embodiment, the embodiment of the present application also provides an information processing method, which can be applied to the first device. Here, the information processing method may be applied to the IoT cloud service architecture shown in FIG. 1, and the first device in the embodiment of the present application may be the device 121 or the device 122 in the IoT cloud service architecture shown in FIG. 1.
图10是本申请实施例提供的信息处理方法的示意性流程图。如图10所示,该方法包括步骤1010和步骤1020。其中,FIG. 10 is a schematic flowchart of an information processing method provided by an embodiment of the present application. As shown in FIG. 10, the method includes step 1010 and step 1020. in,
步骤1010、接收观察请求;观察请求包括刷新周期信息;Step 1010: Receive an observation request; the observation request includes refresh cycle information;
步骤1020、按照刷新周期信息,向第一云平台发送第一资源的资源属性信息。Step 1020: Send the resource attribute information of the first resource to the first cloud platform according to the refresh period information.
这里,第一设备可以接收第一云平台发送的观察请求。Here, the first device may receive the observation request sent by the first cloud platform.
其中,观察请求中携带有第一设备中第一资源的资源标识和刷新周期信息;以指示第一设备按照刷新周期信息上报第一资源的资源属性信息。Wherein, the observation request carries the resource identifier of the first resource in the first device and refresh period information; to instruct the first device to report the resource attribute information of the first resource according to the refresh period information.
在本申请提供的实施例中,第一设备在接收到观察请求后,根据观察请求中携带的刷新周期信息,进行资源的上报。也就是说,第一设备在每个刷新周期内,都向第一云平台发送其资源属性信息。这样,第一云平台可以在每个刷新周期内,接收到第一设备上报的资源属性信息。In the embodiment provided in this application, after receiving the observation request, the first device reports the resource according to the refresh period information carried in the observation request. In other words, the first device sends its resource attribute information to the first cloud platform in each refresh period. In this way, the first cloud platform can receive the resource attribute information reported by the first device in each refresh period.
在一些实施方式中,观察请求可以是基于观察机制的设备资源请求,第一云平台可以根据第一请求信息携带的刷新周期信息,设置观察机制中的时间周期(periodic)选项的取值,使得第一设备可根据设置的periodic选项进行资源的上报。第一设备接收到上述基于观察机制的设备资源请求之后,响应该请求,与第一云平台建立观察机制,在每个刷新周期内,将第一资源的属性信息上报给第一云平台。In some embodiments, the observation request may be a device resource request based on the observation mechanism, and the first cloud platform may set the value of the period option in the observation mechanism according to the refresh period information carried in the first request information, so that The first device can report the resource 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 period.
由此可见,不管第一设备中的资源属性信息是否发生变化,第一设备都可以在固定的刷新周期内给第一云平台上报资源属性信息,提高了资源上报的时效性,以及灵活性。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 period, which improves the timeliness and flexibility of resource reporting.
下面结合实际应用场景对本申请实施例提供的数据处理方法进行详细描述。The data processing method provided in the embodiments of the present application will be described in detail below in conjunction with actual application scenarios.
基于图1所示的应用场景,在一种示例中,参考图11所示的信息处理交互流程示意图一,信息处理过程可以包括以下步骤:Based on the application scenario shown in FIG. 1, in an example, referring to the first schematic diagram of the information processing interaction flow shown in FIG. 11, the information processing process may include the following steps:
步骤1a、源云平台11(即上文中的第二云平台)向目标云平台12(即上文中的第一云平台)发送第一请求信息。Step 1a: The source cloud platform 11 (that is, the second cloud platform above) sends the first request information to the target cloud platform 12 (that is, the first cloud platform above).
这里,第一请求信息中携带资源刷新指示信息,该资源刷新指示信息事件类型信息,且事件类型信息为资源刷新事件,可以表示该第一请求信息的事件为对第一设备的第一资源进行刷新的事件;第一请求信息中还携带有刷新周期信息,用于设置对第一资源刷新的时间间隔。Here, the first request information carries resource refresh indication information, the resource refresh indication information event type information, and the event type information is a resource refresh event, which may indicate that the event of the first request information is to perform the first resource of the first device. Refresh event; the first request information also carries refresh cycle information, which is used to set the time interval for refreshing the first resource.
第一请求信息中还携带所请求的设备121(即上文中的第一设备)的设备标识,以及设备121中第一资源的资源标识;通过携带的设备标识和资源标识,来指示请求的设备资源。The first request information also carries the device identifier of the requested device 121 (that is, the first device above) and the resource identifier of the first resource in the device 121; the carried device identifier and resource identifier are used to indicate the requested device resource.
在一些实现方式中,第一请求信息可以采用设备资源订阅的C2C API,即,POST:/api/v1/devices/{deviceid}/{resourcehref}/subscriptions。这里,第一请求信息与设备资源订阅的C2C API不同的是,第一请求信息携带的payload中资源类型字段(即eventTypes字段)对应的字段值为“resource_refresh”,并且,第一请求信息中还添加了周期字段(即periodic字段),用于设置设备资源刷新的时间间隔。In some implementations, the first request information may use the C2C API of device resource subscription, that is, POST:/api/v1/devices/{deviceid}/{resourcehref}/subscriptions. Here, the difference between the first request information and the C2C API of the device resource subscription is that the corresponding field value of the resource type field (ie eventTypes field) in the payload carried in the first request information is "resource_refresh", and the first request information also A period field (that is, the periodic field) is added to set the time interval for device resource refresh.
在本申请提供的实施例中,第一请求信息中还可以携带请求者的地址,该地址可以是源云平台的地址,也可以是源云平台上接入的客户端12的地址,本申请实施例这里不做限定。In the embodiment provided in this application, the first request information can also carry the address of the requester, which can be the address of the source cloud platform or the address of the client 12 accessed on the source cloud platform. The embodiments are not limited here.
示例性的,第一请求信息中携带的payload可以包括:Exemplarily, the payload carried in the first request information may include:
{{
"eventsUrl":"https://mynotificationuri","eventsUrl":"https://mynotificationuri",
"eventTypes":["resource_refresh"],"eventTypes":["resource_refresh"],
"signingSecret":"DVDUEBe5nciVSXU85BPxrAjSsHenTzWY","signingSecret":"DVDUEBe5nciVSXU85BPxrAjSsHenTzWY",
"periodic":2"periodic":2
}}
步骤2a、目标云平台12基于第一请求信息,向设备121发送观察请求。Step 2a: The target cloud platform 12 sends an observation request to the device 121 based on the first request information.
这里,目标云平台12根据第一请求信息中携带的设备121的设备标识和第一资源标识,向设备121发送观察请求。Here, the target cloud platform 12 sends an observation request to the device 121 according to the device identifier of the device 121 and the first resource identifier carried in the first request information.
其中,观察请求中可以携带有刷新周期信息,该刷新周期信息可以与第一请求信息中携带的刷新周期信息相同。另外,观察请求还携带有第一资源的资源标识。Wherein, the observation request may carry refresh period information, and the refresh period information may be the same as the refresh period information carried in the first request information. In addition, the observation request also carries the resource identifier of the first resource.
步骤3a、设备121基于观察请求中的刷新周期信息,设置第一资源的刷新周期。Step 3a: The device 121 sets the refresh period of the first resource based on the refresh period information in the observation request.
具体地,第一设备根据观察请求中的刷新周期信息设置第一资源的observe操作中的periodic选项,使得第一设备可根据设置的periodic间隔进行第一资源的上报。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.
步骤4a、设备121向目标云平台12发送观察机制建立成功信息。Step 4a: The device 121 sends the observation mechanism establishment success information to the target cloud platform 12.
步骤5a、设备121基于刷新周期,在每个刷新周期向目标云平台12发送第一资源的资源属性信息。Step 5a: Based on the refresh period, the device 121 sends the resource attribute information of the first resource to the target cloud platform 12 in each refresh period.
参考图11,当刷新周期为2s,设备121可以每间隔2s主动向第一云平台发送一次第一资源的资源属性信息。Referring to FIG. 11, when the refresh period is 2s, the device 121 may actively send the resource attribute information of the first resource to the first cloud platform every 2s.
步骤6a、目标云平台12接收每个刷新周期内,设备121发送的第一资源的资源属性信息,并向源云平台12发送收到的资源属性信息。Step 6a: The target cloud platform 12 receives the resource attribute information of the first resource sent by the device 121 in each refresh period, and sends the received resource attribute information to the source cloud platform 12.
参考图11,目标云平台12在每间隔一段时间,就可以接收到设备121上报的资源属性信息,并立即将接收到的资源属性信息转发给源云平台12。Referring to FIG. 11, the target cloud platform 12 can receive the resource attribute information reported by the device 121 at every interval of time, and immediately forward the received resource attribute information to the source cloud platform 12.
需要说明的是,向源云平台12发送资源属性信息,可以是向第一请求信息中携带的地址发送,例如"eventsUrl":https://mynotificationuri。It should be noted that the resource attribute information sent to the source cloud platform 12 may be sent to the address carried in the first request information, for example, "eventsUrl": https://mynotificationuri.
可选地,目标云平台12每次接收到第一资源的资源属性信息时,可以记录接收资源属性信息的时间,基于接收每个资源属性信息的时间和资源属性信息,得到资源相关信息;并将得到的资源相关信息发送给源云平台11。Optionally, each time the target cloud platform 12 receives the resource attribute information of the first resource, it may record the time of receiving the resource attribute information, and obtain the 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.
需要说明的是,目标云平台接收到第一请求信息后,按照第一指示信息,在每个刷新周期内,持续获取资源相关信息,只有在接收到删除第一请求信息后,才停止获取该资源先关信息。因此,步骤5和步骤6可以持续执行,直至目标云平台接收删除第一请求信息。It should be noted that after the target cloud platform receives the first request information, it continues to obtain resource-related information in each refresh cycle according to the first instruction information, and only stops obtaining the first request information after receiving the deletion of the first request information. Resources first check information. Therefore, steps 5 and 6 can be executed continuously until the target cloud platform receives the first request message for deletion.
基于图1所示的应用场景,在另一种示例中,参考图12所示的信息处理交互示意图二,信息处理过程可以包括以下步骤:Based on the application scenario shown in FIG. 1, in another example, referring to the second schematic diagram of information processing interaction shown in FIG. 12, the information processing process may include the following steps:
步骤1b、源云平台11(即上文中的第二云平台)向目标云平台12(即上文中的第一云平台)发送第一请求信息。Step 1b: The source cloud platform 11 (that is, the second cloud platform above) sends the first request information to the target cloud platform 12 (that is, the first cloud platform above).
这里,第一请求信息中可以携带刷新指示信息,刷新周期信息,设备121的设备标识,以及设备121中第一资源的资源标识。Here, the first request information may carry refresh instruction information, refresh period information, the device identifier of the device 121, and the resource identifier of the first resource in the device 121.
步骤2b、目标云平台12根据第一请求信息,创建第一资源对应的数据库(即上文中的第二存储空间)。Step 2b: The target cloud platform 12 creates a database corresponding to the first resource (that is, the second storage space mentioned above) according to the first request information.
这里,目标云平台12解析第一请求信息后,确定,为设备121的第一资源创建对应的数据库,用于存储离线资源相关信息。Here, after analyzing the first request information, the target cloud platform 12 determines that a corresponding database is created for the first resource of the device 121 for storing offline resource related information.
步骤3b、目标云平台12基于第一请求信息,向设备121发送观察请求。Step 3b: The target cloud platform 12 sends an observation request to the device 121 based on the first request information.
步骤4b、设备121基于观察请求中的刷新周期信息,设置第一资源的刷新周期。Step 4b: The device 121 sets the refresh period of the first resource based on the refresh period information in the observation request.
步骤5b、设备121向目标云平台12发送观察机制建立成功信息。Step 5b: The device 121 sends the observation mechanism establishment success information to the target cloud platform 12.
这里,观察机制建立成功消息中可以携带订阅标识,即subscriptionID。Here, the subscription ID, that is, subscriptionID, can be carried in the observation mechanism establishment success message.
步骤6b、设备121基于刷新周期,在每个刷新周期内向目标云平台12发送第一资源的资源属性信息。Step 6b: Based on the refresh period, the device 121 sends the resource attribute information of the first resource to the target cloud platform 12 in each refresh period.
步骤7b、目标云平台12接收每个刷新周期内,设备121发送的第一资源的资源属性信息,并在每个刷新周期内,向源云平台发送收到的资源属性信息。Step 7b: The target cloud platform 12 receives the resource attribute information of the first resource sent by the device 121 in each refresh period, and sends the received resource attribute information to the source cloud platform in each refresh period.
步骤8b、目标云平台12检测到与源云平台11断开连接,继续按照刷新时间周期接收设备121发送的多个离线资源属性信息,并获取接收每个离线资源属性信息的时间信息,将离线资源属性信息和接收该离线资源属性信息的时间信息作为离线资源相关信息存储至数据库中。Step 8b. The target cloud platform 12 detects that it is disconnected from the source cloud platform 11, and continues to receive multiple offline resource attribute information sent by the device 121 according to the refresh time period, and obtains the time information for receiving the attribute information of each offline resource, and will go offline The resource attribute information and the time information for receiving the offline resource attribute information are stored in the database as offline resource related information.
这里,当源云平台11与目标云平台12断开连接后,此时源云平台11并未删除目标云平台上第一请求信息,则设备121继续以刷新周期向目标云平台12上报其离线资源属性信息。Here, when the source cloud platform 11 is disconnected from the target cloud platform 12, and the source cloud platform 11 does not delete the first request information on the target cloud platform at this time, the device 121 continues to report that it is offline to the target cloud platform 12 in the refresh cycle Resource attribute information.
目标云平台12在接收每个刷新周期上报的离线资源属性信息的同时,还可以获取每个离线资源属性信息的上报时间,进一步将每个离线资源属性信息及其对应的上报时间,存储至数据库中。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 middle.
可选地,目标云平台12可以按照离线资源属性信息的上报时间顺序,将离线资源属性信息及其对应的上报时间,存储至数据库中。Optionally, the target cloud platform 12 may store the offline resource attribute information and the corresponding report time in the database according to the reporting time sequence of the offline resource attribute information.
示例性的,参考图12所示,刷新周期为2s,目标云平台12与源云平台11断开连接后,设备121依然每间隔2s主动向目标云平台12发送一次资源属性信息,目标云平台12按照时间顺序将设备121发送的资源属性信息存储至对应的数据库中,同时也将资源属性信息上报的时间进行存储。Exemplarily, referring to FIG. 12, the refresh period 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 every 2s. The target cloud platform 12 The resource attribute information sent by the device 121 is stored in the corresponding database in chronological order, and the time when the resource attribute information is reported is also stored.
步骤9b、目标云平台12检测到与源云平台11重新连接,从数据库获取至少一个离线资源相关信息,并向源云平台11发送至少一个离线资源相关信息,直至数据库中多个离线资源相关信息全部发送完毕。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 there are multiple offline resource related information in the database All sent.
可选地,目标云平台12可以按照离线资源属性信息的上报时间顺序,从数据库中获取离线资源相关信息,并将获取的离线资源相关信息发送至源云平台11。Optionally, the target cloud platform 12 may obtain offline resource related information from the database in accordance with the reporting time sequence of the offline resource attribute information, and send the obtained offline resource related information to the source cloud platform 11.
值得注意的是,参考图12所示,当目标云平台12向源云平台11发送数据库中离线资源相关信息时,设备121还在按照资源刷新周期上报资源属性信息给目标云平台12,若数据库中还有离线资源相关信息,则设备121上报的资源属性信息存入数据库中;若数据库中没有离线资源相关信息,则目标云平台12直接将设备121上报的资源属性信息发送给源云平台11。It is worth noting that, referring to FIG. 12, when the target cloud platform 12 sends the offline resource related information in the database to the source cloud platform 11, the device 121 is still reporting resource attribute information to the target cloud platform 12 according to the resource refresh cycle. If there is offline resource related information, 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 .
基于图1所示的应用场景,在又一种示例中,参考图13所示的信息处理交互示意图三,信息处理过程可以包括以下步骤:Based on the application scenario shown in FIG. 1, in another example, referring to the third schematic diagram of information processing interaction shown in FIG. 13, the information processing process may include the following steps:
步骤1c、源云平台11(即上文中的第二云平台)向目标云平台12(即上文中的第一云平台)发送第一请求信息。Step 1c: The source cloud platform 11 (ie, the second cloud platform above) sends the first request information to the target cloud platform 12 (ie, the first cloud platform above).
这里,第一请求信息中可以携带刷新指示信息,刷新周期信息,设备121的设备标识,以及设备121中第一资源的资源标识。Here, the first request information may carry refresh instruction information, refresh period information, the device identifier of the device 121, and the resource identifier of the first resource in the device 121.
步骤2c、目标云平台12根据第一请求信息,创建数据库(即上文中的第二存储空间)。Step 2c: The target cloud platform 12 creates a database (that is, the second storage space mentioned above) according to the first request information.
这里,目标云平台12解析第一请求信息后,确定,为设备121的第一资源创建对应的数据库,用于存储离线资源相关信息。Here, after analyzing the first request information, the target cloud platform 12 determines that a corresponding database is created for the first resource of the device 121 for storing offline resource related information.
步骤3c、目标云平台12基于第一请求信息,在每个刷新周期内,向设备121发送资源获取请求。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 period.
这里,目标云平台12在每个刷新周期内,都会主动向设备121发送一次资源获取请求。其中,资源获取请求中可以携带有第一资源的资源标识。Here, the target cloud platform 12 will actively send a resource acquisition request to the device 121 in each refresh cycle. Wherein, the resource acquisition request may carry the resource identifier of the first resource.
步骤4c、目标云平台12接收设备121针对资源获取请求的响应,得到资源属性信息。Step 4c: The target cloud platform 12 receives the response of the device 121 to the resource acquisition request, and obtains resource attribute information.
这里,目标云平台12会在每一次发送资源获取请求后,都会接收设备121返回的资源属性信息。Here, the target cloud platform 12 will receive the resource attribute information returned by the device 121 after each resource acquisition request is sent.
步骤5c、目标云平台12将每个刷新周期内接收到的资源属性信息,发送给源云平台11。Step 5c: The target cloud platform 12 sends the resource attribute information received in each refresh cycle to the source cloud platform 11.
在本申请提供的实施例中,源云平台11向目标云平台12发送第一请求信息后,目标云平台12不与设备121建立观察机制,而是直接在每个刷新周期内主动向设备121发送资源获取请求;也就是说,设备121不会主动向目标云平台12上报其资源属性信息,而是被动地响应资源获取请求,将第一资源的资源属性信息发送给目标云平台12,再由目标云平台12将获取到的资源属性信息发送给源云平台11。In the embodiment provided in this 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 it to the device 121 in each refresh cycle. Send a resource acquisition request; that is, the device 121 will not actively report its resource attribute information to the target cloud platform 12, but 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 sends the acquired resource attribute information to the source cloud platform 11.
示例性的,参考图13,刷新周期为2s,目标云平台12每间隔两秒向设备121发送一个资源获取请求,同时,设备121响应该资源获取请求,并将资源属性信息返回至目标云平台12。进一步,目标云平台12将接收到的资源属性信息发送至源云平台11。Exemplarily, referring to FIG. 13, the refresh period is 2s, and the target cloud platform 12 sends a resource acquisition request to the device 121 every two seconds. At the same time, the device 121 responds to the resource acquisition request and returns 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.
可选地,目标云平台12还可以确定接收资源属性信息的时间信息,基于接收到的资源属性信息,以及接收到该资源属性信息的时间信息,得到资源相关信息,并将每个资源相关信息发送给源云平台11。Optionally, the target cloud platform 12 may also determine the time information for receiving the resource attribute information, and obtain resource-related information based on the received resource attribute information and the time information for receiving the resource attribute information, and combine each resource-related information Sent to the source cloud platform 11.
基于图1所示的应用场景,在又一种示例中,参考图14所示的信息处理交互示意图三,信息处理 过程可以包括以下步骤:Based on the application scenario shown in Fig. 1, in another example, referring to the third schematic diagram of information processing interaction shown in Fig. 14, the information processing process may include the following steps:
步骤1d、源云平台11(即上文中的第二云平台)向目标云平台12(即上文中的第一云平台)发送第一请求信息。Step 1d: The source cloud platform 11 (ie, the second cloud platform above) sends the first request information to the target cloud platform 12 (ie, the first cloud platform above).
这里,第一请求信息中可以携带刷新指示信息,刷新周期信息,设备121的设备标识,以及设备121中第一资源的资源标识。Here, the first request information may carry refresh instruction information, refresh period information, the device identifier of the device 121, and the resource identifier of the first resource in the device 121.
步骤2d、目标云平台12根据第一请求信息,创建数据库(即上文中的第二存储空间)。Step 2d: The target cloud platform 12 creates a database (that is, the second storage space mentioned above) according to the first request information.
这里,目标云平台12解析第一请求信息后,确定,为设备121的第一资源创建对应的数据库,用于存储离线资源相关信息。Here, after analyzing the first request information, the target cloud platform 12 determines that a corresponding database is created for the first resource of the device 121 for storing offline resource related information.
步骤3d、目标云平台12判断已经与设备121建立观察机制,则在每个刷新周期内,从内存(即上文的第一存储空间)中获取第一资源的资源属性信息,并将获取的第一资源的资源属性信息发送给源云平台11。Step 3d. The target cloud platform 12 judges that an observation mechanism has been established with the device 121, and then in each refresh cycle, the resource attribute information of the first resource is obtained from the memory (that is, the first storage space above), and the obtained The resource attribute information of the first resource is sent to the source cloud platform 11.
实际应用中,设备121可以基于上述观察机制,在其第一资源的资源属性信息发生变化时,主动将资源属性信息发送给目标云平台12。并且,目标云平台12可以将接收到的资源属性信息保存目标云平台12的在内存中。In practical applications, the device 121 may actively send the resource attribute information to the target cloud platform 12 when the resource attribute information of its first resource changes based on the aforementioned observation mechanism. In addition, the target cloud platform 12 may store the received resource attribute information in the memory of the target cloud platform 12.
这样,当目标云平台12接收到第一请求信息后,判断目标云平台12已经与设备121建立观察机制,则不需要再去与设备121重新建立观察机制来请求设备121主动上报资源属性信息。目标云平台12可以基于第一请求信息,直接获取之前观察机制观察到的资源属性信息,也就是说,目标云平台12可以按照刷新周期,读取内存中第一资源的资源属性信息,并将资源属性信息发送给源云平台11。In this way, after the target cloud platform 12 receives the first request information, it determines that the target cloud platform 12 has established an observation mechanism with the device 121, and there is no need to re-establish an observation mechanism with the device 121 to request the device 121 to actively report the 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 The resource attribute information is sent to the source cloud platform 11.
需要说明的是,因为内存中第一资源的资源属性信息是不定时变化的,因此,目标云平台12在每个刷新周期内,读取内存中最新的第一资源的资源属性信息,保证每次获取到的资源属性信息与当前设备121上的资源属性信息匹配。It should be noted that, because the resource attribute information of the first resource in the memory changes from time to time, 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 every The resource attribute information obtained this time matches the resource attribute information on the current device 121.
示例性的,参考图14所示,刷新周期为2s,在目标云平台12判断已经与设备121建立观察机制的情况下,目标云平台12每间隔2s从内存中获取第一资源的资源属性信息。Exemplarily, referring to FIG. 14, the refresh period is 2s. In the case where 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 .
具体地,在第一个刷新周期,目标云平台12可以从内存中读取之前观察到的资源属性信息,并将该资源属性信息发送至源云平台11。在间隔2s后,设备121中第一资源的资源属性信息并未发生变化,即目标云平台12内存中仍然存储的是之前观察到的资源属性信息,这样目标云平台12继续从内存中读取之前观察到的资源属性信息,并将该资源属性信息发送至源云平台11。进一步,继续间隔2s,设备121中第一资源的资源属性信息在间隔2s的过程中发生了变化,设备121将发生了变化后的资源属性信息发送给目标云平台12,并且目标云平台将该变化后的资源属性信息保存至内存中,这样,目标云平台在间隔2s到期后,从内存中获取变化后的资源属性信息(即最新的资源属性信息),并将该资源属性信息发送至源云平台11。Specifically, in the first refresh cycle, the target cloud platform 12 may 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 memory of the target cloud platform 12 still stores the previously observed resource attribute information, so the target cloud platform 12 continues to read from the memory The resource attribute information observed before, and the resource attribute information is sent to the source cloud platform 11. Further, continuing the interval of 2s, 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 The changed resource attribute information is stored in the memory. In this way, the target cloud platform obtains the changed resource attribute information (that is, the latest resource attribute information) from the memory after the interval of 2s expires, and sends the resource attribute information to Source cloud platform 11.
可选地,目标云平台12每次从内存中获取第一资源的资源属性信息时,可以记录从内存中获取对应的资源属性信息的时间,基于获取到的资源属性信息和对应的时间,得到资源相关信息;并将得到的资源相关信息发送给源云平台11。Optionally, each time the target cloud platform 12 obtains the resource attribute information of the first resource from the memory, it may record the time when the corresponding resource attribute information is obtained from the memory, and based on the obtained resource attribute information and the corresponding time, obtain Resource-related information; and send the obtained resource-related information to the source cloud platform 11.
综上所述,源云平台向目标云平台发送第一请求信息后,目标云平台会在固定时间周期发送与其连接的设备的资源属性信息给源云平台,无论设备的资源属性是否发生变化,源云平台都能在固定时间内得到设备的资源属性信息。这样,提高资源订阅的灵活性,同时,还可以防止资源属性长时间不变化,使得源云平台无法感知目标云平台上设备是否处于正常工作状态的问题。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 connected device to the source cloud platform in a fixed period of time, regardless of whether the resource attribute of the device has changed. The source cloud platform can obtain the resource attribute information of the device within a fixed period of time. In this way, the flexibility of resource subscription is improved, and at the same time, it can also prevent the resource attribute from not changing for a long time, making the source cloud platform unable to perceive the problem of whether the device on the target cloud platform is in a normal working state.
另外,源云平台可以在固定刷新周期得到资源属性信息,这样,源云平台可根据接收到的资源属性信息和获取资源属性信息的时间信息,绘制资源属性变化和时间变化的对应关系图,可以通过图形解读变化规律,从而执行有关计算。In addition, the source cloud platform can obtain resource attribute information in a fixed refresh cycle. In this way, the source cloud platform can draw the corresponding relationship between resource attribute changes and time changes based on the received resource attribute information and the time information for obtaining the resource attribute information. Interpret the law of change through graphics to perform related calculations.
基于前述实施例,本申请实施例提供一种信息处理装置,该信息处理装置可以应用于上文所述的第一云平台中,如图15所示,信息处理装置包括:Based on the foregoing embodiment, an embodiment of the present application provides an information processing device, which can be applied to the first cloud platform described above. As shown in FIG. 15, the information processing device includes:
第一接收单元1501,配置为接收第一请求信息;第一请求信息中携带有资源刷新指示信息;所述资源刷新指示信息用于指示第一云平台对第一设备中第一资源的资源相关信息进行刷新;The first receiving unit 1501 is configured to receive first request information; the first request information carries resource refresh indication information; the resource refresh indication information is used to indicate that the first cloud platform is related to the resource of the first resource in the first device Information is refreshed;
第一获取单元1502,配置为基于所述资源刷新指示信息,获取所述第一资源的资源相关信息;The first obtaining unit 1502 is configured to obtain resource-related information of the first resource based on the resource refresh indication information;
第一发送单元1503,还配置为向第二云平台发送所述资源相关信息。The first sending unit 1503 is further configured to send the resource-related information to the second cloud platform.
在本申请提供的实施例中,所述第一获取单元1502,具体配置为获取刷新周期信息;按照所述刷新周期信息和所述资源刷新指示信息,获取所述第一资源的资源相关信息。In the embodiment provided in this application, the first obtaining unit 1502 is specifically configured to obtain refresh cycle information; according to the refresh cycle information and the resource refresh instruction information, the resource-related information of the first resource is obtained.
在本申请提供的实施例中,资源刷新指示信息包括事件类型信息;其中,事件类型信息为资源刷新事件时,指示第一云平台对第一资源进行刷新。In the embodiment provided in this application, the resource refresh indication information includes event type information; where the event type information is a resource refresh event, instructs the first cloud platform to refresh the first resource.
在本申请提供的实施例中,刷新周期信息为预设的,或者,刷新周期信息为第一请求信息中携带的。In the embodiment provided in this application, the refresh period information is preset, or the refresh period information is carried in the first request information.
在本申请提供的实施例中,第一请求信息中携带刷新周期信息时,刷新周期信息通过周期字段以及周期字段的字段值表示,刷新周期信息为所述周期字段所对应的字段值。In the embodiment provided in this application, when the first request information carries refresh period information, the refresh period information is represented by the period field and the field value of the period field, and the refresh period information is the field value corresponding to the period field.
在本申请提供的实施例中,第一发送单元1503,配置为基于资源刷新指示信息的指示,向第一设备发送观察请求;观察请求指示第一设备基于刷新周期信息,向第一云平台发送第一资源的资源属性信息;In the embodiment provided in this application, the first sending unit 1503 is configured to send an observation request to the first device based on the instruction of the resource refresh indication information; the observation request instructs the first device to send to the first cloud platform based on the refresh period information Resource attribute information of the first resource;
第一接收单元1501,配置为按照刷新周期信息,接收第一设备发送的第一资源的资源属性信息,并基于资源属性信息,确定资源相关信息。The first receiving unit 1501 is configured to receive the resource attribute information of the first resource sent by the first device according to the refresh cycle information, and determine the resource related information based on the resource attribute information.
在本申请提供的实施例中,第一获取单元1502,配置为若第一云平台与第一设备之间已建立观察机制,观察机制表征第一设备在第一资源属性变化时,向第一云平台发送第一资源的资源属性信息;则基于资源刷新指示信息的指示,按照刷新周期信息,从第一存储空间中获取第一资源的资源属性信息,并基于资源属性信息,确定资源相关信息;第一存储空间用于存储通过观察机制接收到的资源属性信息。In the embodiment provided in this application, the first obtaining unit 1502 is configured to, if an observation mechanism has been established between the first cloud platform and the first device, the observation mechanism indicates that the first device will report to the first device when the first resource attribute changes. The cloud platform sends the resource attribute information of the first resource; based on the instruction of the resource refresh instruction information, the resource attribute information of the first resource is obtained from the first storage space according to the refresh cycle information, and the resource related information is determined based on the resource attribute information ; The first storage space is used to store the resource attribute information received through the observation mechanism.
在本申请提供的实施例中,第一发送单元1503,配置为基于资源刷新指示信息的指示,按照刷新时间周期信息,向第一设备发送资源获取请求;资源获取请求用于获取第一资源的资源属性信息;In the embodiment provided in this application, the first sending unit 1503 is configured to send a resource acquisition request to the first device based on the instruction of the resource refresh indication information and according to the refresh time period information; the resource acquisition request is used to obtain the first resource. Resource attribute information;
第一接收单元1501,配置为接收第一设备发送的第一资源的资源属性信息,并基于资源属性信息,确定资源相关信息。The first receiving unit 1501 is configured to 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.
在本申请提供的实施例中,第一资源的资源相关信息包括:第一资源的资源属性信息,以及获取资源属性信息的时间信息;In the embodiment provided in this application, the resource-related information of the first resource includes: resource attribute information of the first resource, and time information for obtaining the resource attribute information;
信息处理装置还包括第一处理单元,第一处理单元,配置为确定获取资源属性信息的时间信息;基于资源属性信息和获取资源属性信息的时间信息,确定资源相关信息。The information processing device further includes a first processing unit, and the first processing unit is configured to determine time information for acquiring resource attribute information; determine resource related information based on the resource attribute information and the time information for acquiring resource attribute information.
在本申请提供的实施例中,第一处理单元,配置为创建第二存储空间;第二存储空间用于存储第一资源的离线资源相关信息;In the embodiment provided in this 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;
第一获取单元1502,配置为在第一云平台与第二云平台断开连接的情况下,基于资源刷新指示信息的指示,按照刷新周期信息,获取多个第一资源的离线资源相关信息,并将多个离线资源相关信息存储至第二存储空间中;The first obtaining unit 1502 is configured to obtain offline resource-related information of a plurality of first resources based on the instruction of the resource refresh instruction information and according to the refresh period information when the first cloud platform is disconnected from the second cloud platform, And store 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 acquiring the offline resource attribute information.
在本申请提供的实施例中,第一处理单元,配置为按照获取多个离线资源属性信息的时间顺序,依次将多个离线资源相关信息存储至所述第二存储空间中。In the embodiment provided in the present application, the first processing unit is configured to sequentially store the multiple offline resource related information in the second storage space according to the time sequence of acquiring the multiple offline resource attribute information.
在本申请提供的实施例中,第一发送单元1503,配置为在第一云平台和第二云平台重新建立连接的情况下,从第二存储空间中存储的多个离线资源相关信息中获取至少一个离线资源相关信息,并向第二云平台发送至少一个离线资源相关信息,直至第二存储空间中的多个离线资源相关信息全部发送完毕。In the embodiment provided in this application, the first sending unit 1503 is configured to obtain information related to multiple offline resources stored in the second storage space when the connection between the first cloud platform and the second cloud platform is re-established At least one offline resource related information, and 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 is sent.
在本申请提供的实施例中,第一发送单元1503,配置为按照第二存储空间中多个离线资源相关信息的时间顺序,从多个离线资源相关信息中获取至少一个离线资源相关信息。In the embodiment provided in this 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.
在本申请提供的实施例中,第一获取单元1502,配置为在第一云平台和第二云平台重新建立连接的情况下,基于资源刷新指示信息的指示,按照刷新周期信息,获取第一资源的资源相关信息;In the embodiment provided in the present application, the first obtaining unit 1502 is configured to obtain the first cloud platform and the second cloud platform based on the instruction of the resource refresh indication information and according to the refresh cycle information when the connection between the first cloud platform and the second cloud platform is re-established. Resource-related information of the resource;
第一处理单元,配置为若第二存储空间中还存储有离线资源相关信息,则将资源相关信息作为离线资源相关信息,存储至所述第二存储空间中;The first processing unit is configured to, if offline resource-related information is also stored in the second storage space, use the resource-related information as offline resource-related information and store it in the second storage space;
第一发送单元1503,配置为若第二存储空间中未存储有离线资源相关信息,则向第二云平台发送资源相关信息。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.
基于前述实施例,本申请实施例提供一种信息处理装置,该信息处理装置可以应用于上文所述的第二云平台中,如图16所示,信息处理装置包括:Based on the foregoing embodiment, an embodiment of the present application provides an information processing device, which can be applied to the second cloud platform described above. As shown in FIG. 16, the information processing device includes:
第二发送单元1601,配置为发送第一请求信息;第一请求信息携带有资源刷新指示信息;资源刷新指示信息用于指示第一云平台对第一设备中第一资源的资源相关信息进行刷新;The second sending unit 1601 is configured to send first request information; the first request information carries resource refresh instruction information; the resource refresh instruction information is used to instruct the first cloud platform to refresh the resource related information of the first resource in the first device ;
第二接收单元1602,配置为接收基于资源刷新指示信息发送的所述第一资源的资源相关信息。The second receiving unit 1602 is configured to receive the resource-related information of the first resource sent based on the resource refresh instruction information.
在本申请提供的实施例中,所述资源刷新指示信息包括事件类型信息;其中,所述事件类型信息为资源刷新事件时,指示所述第一云平台对所述第一资源进行刷新。In the embodiment provided in this 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.
在本申请提供的实施例中,所述第一请求信息还携带有刷新周期信息;所述刷新周期信息用于指示刷新所述第一资源的时间周期。In the embodiment provided in this application, the first request information also carries refresh period information; the refresh period information is used to indicate a time period for refreshing the first resource.
在本申请提供的实施例中,所述刷新周期信息通过周期字段以及所述周期字段的字段值表示,所述刷新周期信息为所述周期字段所对应的字段值。In the embodiment provided in this application, the refresh period information is represented by a period field and a field value of the period field, and the refresh period information is a field value corresponding to the period field.
在本申请提供的实施例中,所述资源相关信息包括第一资源的资源属性信息,以及获取所述资源属性信息的时间信息。In the embodiment provided in this application, the resource-related information includes resource attribute information of the first resource, and time information for acquiring the resource attribute information.
在本申请提供的实施例中,第二接收单元1602,配置为接收第一资源的至少一个资源相关信息;In the embodiment provided in this application, the second receiving unit 1602 is configured to receive at least one resource-related information of the first resource;
所述信息处理装置还包括第二处理单元,配置为基于所述至少一个第一资源的资源属性信息,和获取所述至少一个资源属性信息的时间信息,建立所述第一资源的资源属性信息与时间之间的对应关系。The information processing device further includes a second processing unit configured to establish the resource attribute information of the first resource based on the resource attribute information of the at least one first resource and the time information for acquiring the at least one resource attribute information Correspondence with time.
基于前述实施例,本申请实施例提供一种信息处理装置,该信息处理装置可以应用于上文所述的第一设备中,如图17所示,信息处理装置包括:Based on the foregoing embodiment, an embodiment of the present application provides an information processing device, which can be applied to the first device described above. As shown in FIG. 17, the information processing device includes:
第三接收单元1701,配置为接收观察请求;所述观察请求包括刷新周期信息;The third receiving unit 1701 is configured to receive an observation request; the observation request includes refresh cycle information;
第三发送单元1702,配置为按照刷新周期信息,向第一云平台发送第一资源的资源属性信息。The third sending unit 1702 is configured to send the resource attribute information of the first resource to the first cloud platform according to the refresh period information.
基于上述信息处理装置的硬件实现,本申请实施例还提供了一种服务器,图18为本申请实施例的服务器的硬件组成结构示意图,如图18所示,服务器第一收发器1801,第一处理器1802,以及存储有计算机程序的第一存储器1803。Based on the hardware implementation of the above-mentioned information processing device, an embodiment of the present application also provides a server. FIG. 18 is a schematic diagram of the hardware composition structure of the server according to an embodiment of the present application. A processor 1802, and a first memory 1803 storing computer programs.
进一步地,终端还包括通信总线1804;终端中的各个组件通过通信总线1804耦合在一起。可以理解的是,第一收发器1801、第一处理器1802和第一存储器1803之间通过通信总线1804进行通信。Further, the terminal also includes a communication bus 1804; various components in the terminal are coupled together through the communication bus 1804. It can be understood that the first transceiver 1801, the first processor 1802, and the first memory 1803 communicate through the communication bus 1804.
在本申请提供的实施例中,第一收发器1801,配置为接收第一请求信息;所述第一请求信息中携带有资源刷新指示信息;所述资源刷新指示信息用于指示所述第一云平台对第一设备中第一资源的资源相关信息进行刷新;In the embodiment provided in this application, the first transceiver 1801 is configured to receive first request information; the first request information carries resource refresh indication information; the resource refresh indication information is used to indicate the first request information; The cloud platform refreshes the resource-related information of the first resource in the first device;
第一处理器1802,配置为基于所述资源刷新指示信息,获取所述第一资源的资源相关信息;The first processor 1802 is configured to obtain resource-related information of the first resource based on the resource refresh indication information;
第一收发器1801,还配置为向第二云平台发送所述资源相关信息。The first transceiver 1801 is further configured to send the resource-related information to the second cloud platform.
在本申请提供的实施例中,第一处理器1802配置为获取刷新周期信息;按照所述刷新周期信息和所述资源刷新指示信息,获取所述第一资源的资源相关信息。In the embodiment provided in this application, the first processor 1802 is configured to obtain refresh cycle information; according to the refresh cycle information and the resource refresh instruction information, obtain resource-related information of the first resource.
在本申请提供的实施例中,第一收发器1801,配置为向所述第一设备发送观察请求;所述观察请求指示所述第一设备基于所述刷新周期信息,向所述第一云平台发送所述第一资源的资源属性信息;基于所述资源刷新指示信息的指示,按照所述刷新周期信息,接收所述第一设备发送的所述第一资源的资源属性信息;In the embodiment provided in this 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 an observation request to the first cloud based on the refresh cycle information. The platform sends the resource attribute information of the first resource; based on the indication of the resource refresh instruction information, according to the refresh period information, receives the resource attribute information of the first resource sent by the first device;
第一处理器1802,配置为基于所述资源属性信息,确定所述资源相关信息。The first processor 1802 is configured to determine the resource-related information based on the resource attribute information.
在本申请提供的实施例中,第一处理器1802,配置为若所述第一云平台与所述第一设备之间已建立观察机制,所述观察机制表征所述第一设备在所述第一资源属性变化时,向所述第一云平台发送所述第一资源的资源属性信息;则基于所述资源刷新指示信息的指示,按照所述刷新周期信息,从第一存储空间中获取所述第一资源的资源属性信息,并基于所述资源属性信息,确定所述资源相关信息;所述第一存储空间用于存储通过所述观察机制接收到的资源属性信息。In the embodiment provided in this application, the first processor 1802 is configured to, if an observation mechanism has been established between the first cloud platform and the first device, the observation mechanism indicates that the first device is in the When the first resource attribute changes, the resource attribute information of the first resource is sent to the first cloud platform; then based on the instruction of the resource refresh instruction information, it is obtained from the first storage space in accordance with the refresh period information The resource attribute information of the first resource, and the resource-related information is determined based on the resource attribute information; the first storage space is used to store the resource attribute information received through the observation mechanism.
在本申请提供的实施例中,第一收发器1801,配置为基于所述资源刷新指示信息的指示,按照所述刷新时间周期信息,向所述第一设备发送资源获取请求;所述资源获取请求用于获取所述第一资源的资源属性信息;接收所述第一设备发送的所述第一资源的资源属性信息,并基于所述资源属性信息,确定所述资源相关信息。In the embodiment provided in this application, the first transceiver 1801 is configured to send a resource acquisition request to the first device based on the resource refresh indication information and in accordance with the refresh time period information; the resource acquisition The request is used to obtain the 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.
在本申请提供的实施例中,第一处理器1802,配置为确定获取资源属性信息的时间信息;In the embodiment provided in this application, the first processor 1802 is configured to determine time information for acquiring resource attribute information;
基于所述资源属性信息和获取所述资源属性信息的时间信息,确定所述资源相关信息。Determine the resource-related information based on the resource attribute information and time information for acquiring the resource attribute information.
在本申请提供的实施例中,第一处理器1802,配置为创建第二存储空间;所述第二存储空间用于存储所述第一资源的离线资源相关信息;在所述第一云平台与所述第二云平台断开连接的情况下,基于所述资源刷新指示信息的指示,按照所述刷新周期信息,获取多个所述第一资源的离线资源相关信息,并将多个离线资源相关信息存储至所述第二存储空间中;所述离线资源相关信息包括所述第一资源的离线资源属性信息,以及获取所述离线资源属性信息的时间信息。In the embodiment provided in this 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; In the case of disconnecting from the second cloud platform, based on the instruction of the resource refresh indication information, according to the refresh period information, obtain offline resource related information of a plurality of the first resources, and connect a plurality of offline resources The 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 acquiring the offline resource attribute information.
在本申请提供的实施例中,第一处理器1802,配置为按照获取所述多个离线资源属性信息的时间顺序,依次将所述多个离线资源相关信息存储至所述第二存储空间中。In the embodiment provided in this application, the first processor 1802 is configured to sequentially store the plurality of offline resource related information in the second storage space according to the time sequence of acquiring the plurality of offline resource attribute information .
在本申请提供的实施例中,第一收发器1801,配置为在所述第一云平台和所述第二云平台重新建立连接的情况下,从所述第二存储空间中存储的多个离线资源相关信息中获取至少一个离线资源相关信息,并向所述第二云平台发送所述至少一个离线资源相关信息,直至所述第二存储空间中的所述多个离线资源相关信息全部发送完毕。In the embodiment provided in this application, the first transceiver 1801 is configured to retrieve multiple data stored in the second storage space when the first cloud platform and the second cloud platform re-establish a connection. Obtain at least one offline resource related information from the offline resource related information, 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 complete.
在本申请提供的实施例中,第一处理器1802,配置为按照第二存储空间中多个离线资源相关信息的时间顺序,从所述多个离线资源相关信息中获取至少一个离线资源相关信息。In the embodiment provided in the present application, the first processor 1802 is configured to obtain at least one piece of offline resource-related information from the plurality of offline resource-related information in a time sequence of the plurality of offline resource-related information in the second storage space .
在本申请提供的实施例中,第一处理器1802,配置为在所述第一云平台和所述第二云平台重新建立连接的情况下,基于所述资源刷新指示信息的指示,按照所述刷新周期信息,获取所述第一资源的资源相关信息;若所述第二存储空间中还存储有离线资源相关信息,则将所述资源相关信息作为所述离线资源相关信息,存储至所述第二存储空间中;In the embodiment provided in the present application, the first processor 1802 is configured to, in a case where the first cloud platform and the second cloud platform re-establish a connection, based on the instruction of the resource refresh instruction information, in accordance with the instruction The refresh period information is used to obtain resource-related information of the first resource; if offline resource-related information is also stored in the second storage space, the resource-related information is used as the offline resource-related information and stored in all Said in the second storage space;
第一收发器1801,配置为若所述第二存储空间中未存储有离线资源相关信息,则向第二云平台发送所述资源相关信息。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.
基于上述信息处理装置的硬件实现,本申请实施例还提供了一种服务器,图19为本申请实施例的服务器的硬件组成结构示意图,如图18所示,服务器第二收发器1901,第二处理器1902,以及存储有计算机程序的第二存储器1903。Based on the hardware implementation of the above-mentioned information processing device, an embodiment of the present application also provides a server. FIG. 19 is a schematic diagram of the hardware composition structure of the server according to an embodiment of the present application. A processor 1902, and a second memory 1903 storing computer programs.
进一步地,终端还包括通信总线1904;终端中的各个组件通过通信总线1904耦合在一起。可以理解的是,第二收发器1901、第二处理器1902和第二存储器1903之间通过通信总线1904进行通信。Further, the terminal also includes a communication bus 1904; various components in the terminal are coupled together through the communication bus 1904. It can be understood that the second transceiver 1901, the second processor 1902, and the second memory 1903 communicate through the communication bus 1904.
在本申请提供的实施例中,第二收发器1901,配置为发送第一请求信息;所述第一请求信息携带有资源刷新指示信息;所述资源刷新指示信息用于指示所述第一云平台对第一设备中第一资源的资源相关信息进行刷新;接收基于所述资源刷新指示信息发送的所述第一资源的资源相关信息。In the embodiment provided in this application, the second transceiver 1901 is configured to send first request information; the first request information carries resource refresh indication information; the resource refresh indication information is used to indicate the first cloud The platform refreshes the resource-related information of the first resource in the first device; and receives the resource-related information of the first resource that is sent based on the resource refresh instruction information.
在本申请提供的实施例中,第二收发器1901,配置为接收所述第一资源的至少一个资源相关信息;In the embodiment provided in this application, the second transceiver 1901 is configured to receive at least one resource-related information of the first resource;
第二处理器1902,配置为基于所述至少一个第一资源的资源属性信息,和获取所述至少一个资源属性信息的时间信息,建立所述第一资源的资源属性信息与时间之间的对应关系。The second processor 1902 is configured to establish a correspondence between the resource attribute information of the first resource and time based on the resource attribute information of the at least one first resource and the time information for acquiring the at least one resource attribute information relation.
基于上述信息处理装置的硬件实现,本申请实施例还提供了一种设备,图20为本申请实施例的设备的硬件组成结构示意图,如图20所示,服务器第三收发器2001,第三处理器2002,以及存储有计算机程序的第三存储器2003。Based on the hardware implementation of the foregoing information processing apparatus, an embodiment of the present application also provides a device. FIG. 20 is a schematic diagram of the hardware composition structure of the device of the embodiment of the application. As shown in FIG. A processor 2002, and a third memory 2003 storing computer programs.
进一步地,终端还包括通信总线2004;终端中的各个组件通过通信总线2004耦合在一起。可以理解的是,第三收发器2001、第三处理器2002和第三存储器2003之间通过通信总线2004进行通信。Further, the terminal also includes a communication bus 2004; various components in the terminal are coupled together through the communication bus 2004. It can be understood that the third transceiver 2001, the third processor 2002, and the third memory 2003 communicate through the communication bus 2004.
在本申请提供的实施例中,第三收发器2001,配置为接收观察请求;所述观察请求包括刷新周期信息;按照所述刷新周期信息,向所述第一云平台发送所述第一资源的资源属性信息。In the embodiment provided in this application, the third transceiver 2001 is configured to receive an observation request; the observation request includes refresh cycle information; according to the refresh cycle information, the first resource is sent to the first cloud platform The resource attribute information.
本申请实施例还提供了一种计算机存储介质,具体为计算机可读存储介质。其上存储有计算机指令,作为第一种实施方式,在计算机存储介质位于终端时,该计算机指令被处理器执行时实现本申请实施例上述信息处理方法中的任意步骤。The embodiment of the present application also provides a computer storage medium, which is specifically a computer-readable storage medium. Computer instructions are stored thereon. As a first implementation manner, when the computer storage medium is located in the terminal, when the computer instructions are executed by the processor, any step in the information processing method described in the embodiment of the present application is implemented.
应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that, in the various embodiments of the present application, the size of the sequence numbers of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not correspond to the embodiments of the present application. The implementation process constitutes any limitation.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。A person of ordinary skill in the art may be aware that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered as going beyond the scope of this application.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device, and method can be implemented in other ways. For example, the device embodiments described above are merely illustrative, for example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or It can be integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solution of the present application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store program codes. .
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific implementations of this application, but the protection scope of this application is not limited to this. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in this application. Should be covered within the scope of protection of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims (28)

  1. 一种信息处理方法,应用于第一云平台,所述方法包括:An information processing method applied to a first cloud platform, the method including:
    接收第一请求信息;所述第一请求信息中携带有资源刷新指示信息;所述资源刷新指示信息用于指示所述第一云平台对第一设备中第一资源的资源相关信息进行刷新;Receiving first request information; the first request information carries resource refresh instruction information; the resource refresh instruction information is used to instruct the first cloud platform to refresh the resource-related information of the first resource in the first device;
    基于所述资源刷新指示信息,获取所述第一资源的资源相关信息;Acquiring resource-related information of the first resource based on the resource refresh instruction information;
    向第二云平台发送所述资源相关信息。Send the resource-related information to the second cloud platform.
  2. 根据权利要求1所述的方法,其中,所述基于所述资源刷新指示信息,获取所述第一资源的资源相关信息,包括:The method according to claim 1, wherein the acquiring resource-related information of the first resource based on the resource refresh indication information comprises:
    获取刷新周期信息;Obtain refresh cycle information;
    按照所述刷新周期信息和所述资源刷新指示信息,获取所述第一资源的资源相关信息。Acquire the resource-related information of the first resource according to the refresh period information and the resource refresh instruction information.
  3. 根据权利要求1或2所述的方法,其中,所述资源刷新指示信息包括事件类型信息;其中,所述事件类型信息为资源刷新事件时,指示所述第一云平台对所述第一资源进行刷新。The method according to claim 1 or 2, 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 treat the first resource Refresh.
  4. 根据权利要求1-3任一项所述的方法,其中,所述刷新周期信息为预设的,或者,所述刷新周期信息为所述第一请求信息中携带的。The method according to any one of claims 1 to 3, wherein the refresh period information is preset, or the refresh period information is carried in the first request information.
  5. 根据权利要求1-4任一项所述的方法,其中,所述第一请求信息中携带所述刷新周期信息时,所述刷新周期信息通过周期字段以及所述周期字段的字段值表示,所述刷新周期信息为所述周期字段所对应的字段值。The method according to any one of claims 1-4, wherein when the first request information carries the refresh period information, the refresh period information is represented by a period field and a field value of the period field, so The refresh period information is a field value corresponding to the period field.
  6. 根据权利要求2所述的方法,其中,所述按照所述刷新周期信息和所述资源刷新指示信息,获取所述第一资源的资源相关信息,包括:The method according to claim 2, wherein the acquiring resource-related information of the first resource according to the refresh period information and the resource refresh instruction information comprises:
    向所述第一设备发送观察请求;所述观察请求指示所述第一设备基于所述刷新周期信息,向所述第一云平台发送所述第一资源的资源属性信息;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 indication of the resource refresh indication information, according to the refresh period information, the resource attribute information of the first resource sent by the first device is received, and the resource related information is determined based on the resource attribute information.
  7. 根据权利要求2所述的方法,其中,所述按照所述刷新周期信息和所述资源刷新指示信息,获取所述第一资源的资源相关信息,包括:The method according to claim 2, wherein the acquiring resource-related information of the first resource according to the refresh period information and the resource refresh instruction information comprises:
    若所述第一云平台与所述第一设备之间已建立观察机制,所述观察机制表征所述第一设备在所述第一资源属性变化时,向所述第一云平台发送所述第一资源的资源属性信息;If an observation mechanism has been established between the first cloud platform and the first device, the observation mechanism indicates that the first device sends the first cloud platform to the first cloud platform when the first resource attribute changes. Resource attribute information of the first resource;
    基于所述资源刷新指示信息的指示,按照所述刷新周期信息,从第一存储空间中获取所述第一资源的资源属性信息,并基于所述资源属性信息,确定所述资源相关信息;所述第一存储空间用于存储通过所述观察机制接收到的资源属性信息。Based on the indication of the resource refresh indication information, according to the refresh period information, the resource attribute information of the first resource is obtained from the first storage space, and the resource related information is determined based on the resource attribute information; The first storage space is used to store the resource attribute information received through the observation mechanism.
  8. 根据权利要求2所述的方法,其中,所述按照所述刷新周期信息和所述资源刷新指示信息,获取所述第一资源的资源相关信息,包括:The method according to claim 2, wherein the acquiring resource-related information of the first resource according to the refresh period information and the resource refresh instruction information comprises:
    基于所述资源刷新指示信息的指示,按照所述刷新时间周期信息,向所述第一设备发送资源获取请求;所述资源获取请求用于获取所述第一资源的资源属性信息;Based on the indication of the resource refresh indication information, according to the refresh time period information, sending a resource acquisition request to the first device; the resource acquisition request is used to acquire resource attribute information of the first resource;
    接收所述第一设备发送的所述第一资源的资源属性信息,并基于所述资源属性信息,确定所述资源相关信息。Receiving the resource attribute information of the first resource sent by the first device, and determining the resource related information based on the resource attribute information.
  9. 根据权利要求6-8任一项所述的方法,其中,所述第一资源的资源相关信息包括:第一资源的资源属性信息,以及获取所述资源属性信息的时间信息;8. The method according to any one of claims 6-8, wherein the resource-related information of the first resource comprises: resource attribute information of the first resource, and time information for obtaining the resource attribute information;
    基于所述资源属性信息,确定所述资源相关信息,包括:Based on the resource attribute information, determining the resource-related information includes:
    确定获取所述资源属性信息的时间信息;Determining time information for acquiring the resource attribute information;
    基于所述资源属性信息和获取所述资源属性信息的时间信息,确定所述资源相关信息。Determine the resource-related information based on the resource attribute information and time information for acquiring the resource attribute information.
  10. 根据权利要求6-9任一项所述方法,其中,所述方法还包括:The method according to any one of claims 6-9, 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;
    在所述第一云平台与所述第二云平台断开连接的情况下,基于所述资源刷新指示信息的指示,按照所述刷新周期信息,获取多个所述第一资源的离线资源相关信息,并将多个离线资源相关信息存储至所述第二存储空间中;In the case that the first cloud platform is disconnected from the second cloud platform, based on the instruction of the resource refresh indication information, according to the refresh cycle information, obtain offline resource-related information of a plurality of the first resources Information, and store 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 acquiring the offline resource attribute information.
  11. 根据权利要求10所述的方法,其中,所述将多个离线资源相关信息存储至所述第二存储空间中,包括:The method according to claim 10, wherein the storing a plurality of offline resource related information in the second storage space comprises:
    按照获取所述多个离线资源属性信息的时间顺序,依次将所述多个离线资源相关信息存储至所述第 二存储空间中。According to the time sequence of obtaining the attribute information of the multiple offline resources, sequentially store the related information of the multiple offline resources in the second storage space.
  12. 根据权利要求10或11所述的方法,其中,所述方法还包括:The method according to claim 10 or 11, wherein the method further comprises:
    在所述第一云平台和所述第二云平台重新建立连接的情况下,从所述第二存储空间中存储的多个离线资源相关信息中获取至少一个离线资源相关信息,并向所述第二云平台发送所述至少一个离线资源相关信息,直至所述第二存储空间中的所述多个离线资源相关信息全部发送完毕。In the case where the connection between the first cloud platform and the second cloud platform is re-established, at least one piece of offline resource-related information is obtained from multiple pieces of offline resource-related information stored in the second storage space, and the The second cloud platform sends the at least one offline resource-related information until the multiple offline resource-related information in the second storage space is all sent.
  13. 根据权利要求12所述的方法,其中,所述从所述第二存储空间中存储的多个离线资源相关信息中获取至少一个离线资源相关信息,包括:The method according to claim 12, wherein said obtaining at least one piece of offline resource related information from a plurality of offline resource related information stored in said second storage space comprises:
    按照第二存储空间中多个离线资源相关信息的时间顺序,从所述多个离线资源相关信息中获取至少一个离线资源相关信息。Acquire at least one piece of offline resource related information from the plurality of offline resource related information according to the time sequence of the plurality of offline resource related information in the second storage space.
  14. 根据权利要求10-13任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 10-13, wherein the method further comprises:
    在所述第一云平台和所述第二云平台重新建立连接的情况下,基于所述刷新指示信息的指示,按照所述刷新周期信息,获取所述第一资源的资源相关信息;In the case where the connection between the first cloud platform and the second cloud platform is re-established, based on the instruction of the refresh instruction information, according to the refresh period information, obtain the resource-related information of the first resource;
    若所述第二存储空间中存在存储的离线资源相关信息,则将所述资源相关信息作为所述离线资源相关信息,存储至所述第二存储空间中;If there is stored offline resource related information in the second storage space, use the resource related information as the offline resource related information and store it in the second storage space;
    若所述第二存储空间中不存在存储的离线资源相关信息,则向第二云平台发送所述资源相关信息。If there is no stored offline resource related information in the second storage space, sending the resource related information to the second cloud platform.
  15. 一种信息处理方法,应用于第二云平台,所述方法包括:An information processing method applied to a second cloud platform, the method including:
    发送第一请求信息;所述第一请求信息携带有资源刷新指示信息;所述资源刷新指示信息用于指示所述第一云平台对第一设备中第一资源的资源相关信息进行刷新;Sending first request information; the first request information carries resource refresh instruction information; the resource refresh instruction information is used to instruct the first cloud platform to refresh the resource-related information of the first resource in the first device;
    接收基于所述资源刷新指示信息发送的所述第一资源的资源相关信息。Receiving the resource-related information of the first resource sent based on the resource refresh instruction information.
  16. 根据权利要求15所述的方法,其中,所述资源刷新指示信息包括事件类型信息;其中,所述事件类型信息为资源刷新事件时,指示所述第一云平台对所述第一资源进行刷新。The method according to claim 15, wherein the resource refresh instruction 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 .
  17. 根据权利要求15或16所述的方法,其中,所述第一请求信息还携带有刷新周期信息;所述刷新周期信息用于指示刷新所述第一资源的时间周期。The method according to claim 15 or 16, wherein the first request information also carries refresh period information; the refresh period information is used to indicate a time period for refreshing the first resource.
  18. 根据权利要求17所述的方法,其中,所述刷新周期信息通过周期字段以及所述周期字段的字段值表示,所述刷新周期信息为所述周期字段所对应的字段值。The method according to claim 17, wherein the refresh period information is represented by a period field and a field value of the period field, and the refresh period information is a field value corresponding to the period field.
  19. 根据权利要求15-18所述的方法,其中,所述资源相关信息包括第一资源的资源属性信息,以及获取所述资源属性信息的时间信息。The method according to claims 15-18, wherein the resource-related information includes resource attribute information of the first resource, and time information for obtaining the resource attribute information.
  20. 根据权利要求19所述的方法,其中,所述接收所述第一资源的资源相关信息,包括:The method according to claim 19, wherein the receiving resource-related information of the first resource comprises:
    接收所述第一资源的至少一个资源相关信息;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 for acquiring the at least one resource attribute information, a correspondence relationship between the resource attribute information of the first resource and the time is established.
  21. 一种信息处理方法,应用于第一设备,所述方法包括:An information processing method applied to a first device, the method including:
    接收观察请求;所述观察请求包括刷新周期信息;Receiving an observation request; the observation request includes refresh cycle information;
    按照所述刷新周期信息,向所述第一云平台发送所述第一资源的资源属性信息。According to the refresh period information, the resource attribute information of the first resource is sent to the first cloud platform.
  22. 一种信息处理装置,应用于第一云平台,所述装置包括:An information processing device applied to a first cloud platform, the device comprising:
    第一接收单元,配置为接收第一请求信息;所述第一请求信息中携带有资源刷新指示信息;所述资源刷新指示信息用于指示所述第一云平台对第一设备中第一资源的资源相关信息进行刷新;The first receiving unit is configured to receive 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 request the first resource in the first device Refresh the resource-related information of;
    第一获取单元,配置为基于所述资源刷新指示信息,获取所述第一资源的资源相关信息;The first obtaining unit is configured to obtain resource-related information of the first resource based on the resource refresh indication information;
    第一发送单元,还配置为向第二云平台发送所述资源相关信息。The first sending unit is further configured to send the resource-related information to the second cloud platform.
  23. 一种信息处理装置,应用于第二云平台,所述装置包括:An information processing device applied to a second cloud platform, the device comprising:
    第二发送单元,配置为发送第一请求信息;所述第一请求信息携带有资源刷新指示信息;所述资源刷新指示信息用于指示所述第一云平台对第一设备中第一资源的资源相关信息进行刷新;The second sending unit is configured to send the first request information; the first request information carries resource refresh indication information; the resource refresh indication information is used to indicate that the first cloud platform receives the first resource in the first device Refresh the resource-related information;
    第二接收单元,配置为接收基于所述资源刷新指示信息发送的所述第一资源的资源相关信息。The second receiving unit is configured to receive resource-related information of the first resource that is sent based on the resource refresh instruction information.
  24. 一种信息处理装置,应用于第一设备,所述装置包括:An information processing device applied to a first device, the device comprising:
    第三接收单元,配置为接收观察请求;所述观察请求包括刷新周期信息;The third receiving unit is configured to receive an observation request; the observation request includes refresh cycle information;
    第三发送单元,配置为按照所述刷新周期信息,向所述第一云平台发送所述第一资源的资源属性信息。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 period information.
  25. 一种服务器,应用于第一云平台,所述服务器包括:第一收发器、第一处理器和存储有计算机程序的第一存储器;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;
    所述第一收发器、所述第一处理器和所述第一存储器之间通过第一通信总线进行通信;Communicating between the first transceiver, the first processor, and the first memory through a first communication bus;
    所述第一处理器,配置为通过所述第一收发器实现与另一设备的通信;其中,The first processor is configured to implement communication with another device through the first transceiver; wherein,
    所述第一处理器,还用于结合所述第一收发器,运行所述第一存储器中存储的所述计算机程序时, 执行权利要求1至14任一项所述方法的步骤。The first processor is further configured to perform the steps of the method according to any one of claims 1 to 14 when running the computer program stored in the first memory in combination with the first transceiver.
  26. 一种服务器,应用于第二云平台,所述服务器包括:第二收发器、第二处理器和存储有计算机程序的第二存储器;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;
    所述第二收发器、所述第二处理器和所述第二存储器之间通过第二通信总线进行通信;Communicating between the second transceiver, the second processor, and the second memory through a second communication bus;
    所述第二处理器,配置为通过所述第二收发器实现与另一设备的通信;其中,The second processor is configured to implement communication with another device through the second transceiver; wherein,
    所述第二处理器,还用于结合所述第二收发器,运行所述第二存储器中存储的所述计算机程序时,执行权利要求15至20任一项所述方法的步骤。The second processor is further configured to perform the steps of the method according to any one of claims 15 to 20 when running the computer program stored in the second memory in combination with the second transceiver.
  27. 一种设备,所述设备包括:第三收发器、第三处理器和存储有计算机程序的第三存储器;A device, the 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 through a third communication bus;
    所述第三处理器,配置为通过所述第三收发器实现与另一设备的通信;其中,The third processor is configured to implement communication with another device through the third transceiver; wherein,
    所述第三处理器,还用于结合所述第三收发器,运行所述第三存储器中存储的所述计算机程序时,执行权利要求21所述方法的步骤。The third processor is further configured to perform the steps of the method according to claim 21 when running the computer program stored in the third memory in conjunction with the third transceiver.
  28. 一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被第一处理器执行实现权利要求1至14任一项所述方法的步骤;或者;所述计算机程序被第二处理器执行权利要求15至20任一项所述方法的步骤;或者;所述计算机程序被第三处理器执行权利要求21所述方法的步骤。A computer-readable storage medium having a computer program stored thereon, and the computer program is executed by a first processor to implement the steps of any one of claims 1 to 14; or; the computer program is processed second The device executes the steps of the method according to any one of claims 15 to 20; or; the computer program is executed by a third processor to execute the steps of the method according to claim 21.
PCT/CN2020/096419 2020-06-16 2020-06-16 Information processing method and apparatus, device and computer storage medium WO2021253246A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202080099935.3A CN115428417B (en) 2020-06-16 Information processing method and device, equipment and computer storage medium
PCT/CN2020/096419 WO2021253246A1 (en) 2020-06-16 2020-06-16 Information processing method and apparatus, device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/096419 WO2021253246A1 (en) 2020-06-16 2020-06-16 Information processing method and apparatus, device and computer storage medium

Publications (1)

Publication Number Publication Date
WO2021253246A1 true WO2021253246A1 (en) 2021-12-23

Family

ID=79269072

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/096419 WO2021253246A1 (en) 2020-06-16 2020-06-16 Information processing method and apparatus, device and computer storage medium

Country Status (1)

Country Link
WO (1) WO2021253246A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102340759A (en) * 2010-07-19 2012-02-01 中国电信股份有限公司 Communication terminal state acquisition method and system
CN103957228A (en) * 2012-11-02 2014-07-30 洛克威尔自动控制技术股份有限公司 Cloud based drive monitoring solution
CN108600295A (en) * 2018-02-28 2018-09-28 青岛海尔科技有限公司 A kind of method, equipment and medium for realizing status information of equipment notice
US20180359201A1 (en) * 2017-06-09 2018-12-13 Equinix, Inc. Near real-time messaging service for data center infrastructure monitoring data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102340759A (en) * 2010-07-19 2012-02-01 中国电信股份有限公司 Communication terminal state acquisition method and system
CN103957228A (en) * 2012-11-02 2014-07-30 洛克威尔自动控制技术股份有限公司 Cloud based drive monitoring solution
US20180359201A1 (en) * 2017-06-09 2018-12-13 Equinix, Inc. Near real-time messaging service for data center infrastructure monitoring data
CN108600295A (en) * 2018-02-28 2018-09-28 青岛海尔科技有限公司 A kind of method, equipment and medium for realizing status information of equipment notice

Also Published As

Publication number Publication date
CN115428417A (en) 2022-12-02

Similar Documents

Publication Publication Date Title
US7996493B2 (en) Framework for managing client application data in offline and online environments
US11706315B2 (en) Server-side caching for web user interfaces
US20100100605A1 (en) Methods and apparatus for management of inter-widget interactions
TWI757317B (en) A method and system for pushing information, and a client and a server
JP2000033755A (en) Method for constituting network of peripheral apparatus
US10834559B2 (en) Information processing method for machine-to-machine/man (M2M) application, common services entity (CSE) and application entity (AE)
JP2004102381A (en) Information providing device, method and program
CN106326293A (en) Access method and device based on dynamic webpage
CN110035133B (en) Method and device for acquiring IP address of peer-to-peer device in android WiFi-Direct connection
US20230089609A1 (en) Method and apparatus for processing information, and device and computer storage medium
CN116226200A (en) BFF architecture-based service interface data caching method, device and equipment
WO2020224241A1 (en) Cloud communication method and apparatus, user equipment, and network device
CN107003981A (en) It is synchronous with the equipment locally matched to obtain data from remote server using point to point link
CN111586118A (en) Data processing method and device and computer equipment
WO2021253246A1 (en) Information processing method and apparatus, device and computer storage medium
CN111901395B (en) Multi-cluster switching method and device
CN115428417B (en) Information processing method and device, equipment and computer storage medium
US10659284B2 (en) SNMP request processing within distributed device architecture
CN115858972A (en) Page display method and device of application program, storage medium and computer equipment
TWI381314B (en) Middleware bridge system and method
US10951684B2 (en) Information processing system, information processing method, user terminal and storage medium
CN106980628A (en) A kind of method, device and relevant device for optimizing big data transmission
JPH10289171A (en) Inter-program linking system
KR100904362B1 (en) Calm capable of searching agent service through web, agent system using the same and operation method of agent system
CN109451047A (en) Data transferring method, device, equipment and the storage medium of monitoring warning system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20941333

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20941333

Country of ref document: EP

Kind code of ref document: A1