Internet of things communication method, device, equipment, computer storage medium and chip

By using cloud platforms and clients to send recovery requests to resource devices in the Internet of Things system, the problem of state recovery after power failure or failure of resource devices is solved, and the reliability and automation of the system are improved.

CN115699707BActive Publication Date: 2024-11-15GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202080102066.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-21
Publication Date
2024-11-15
Estimated Expiration
2040-08-21

AI Technical Summary

Technical Problem

When resource equipment in the Internet of Things system fails or fails, it is difficult to quickly restore to its previous normal working state, affecting the reliability of the system.

Method used

Receive status information sent by resource devices through the cloud platform, and the client or cloud platform sends a recovery request to the resource device, instructing it to restore to a specific state, realizing automatic recovery of the state.

Benefits of technology

It improves the reliability of the Internet of Things communication system, ensures that resource equipment can quickly return to normal working state after power failure or failure, and reduces the complexity and delay of user operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115699707B_ABST
    Figure CN115699707B_ABST
Patent Text Reader

Abstract

The embodiments of the present application disclose an Internet of Things communication method, apparatus, device, computer storage medium, chip and computer program product, the method comprising: a client receives first resource information sent by a resource device through a cloud platform; the first resource information includes or indicates first resource status information of a specific resource in the resource device; when the first resource status information changes to second resource status information, the client sends a recovery request to the resource device through the cloud platform; the recovery request instructs the resource device to restore the state to a state corresponding to the first resource status information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to but are not limited to the field of the Internet of Things, and in particular, to an Internet of Things communication method, device, equipment, computer storage medium and chip. Background Art

[0002] The Internet of Things (IOT) is an important part of the new generation of information technology.

[0003] Power outages or failures of resource devices in the Internet of Things often occur. In order to ensure the normal operation of the Internet of Things system, the resource devices in the Internet of Things need to be restored to normal working status as soon as possible. Summary of the invention

[0004] Embodiments of the present application provide an Internet of Things communication method, apparatus, device, computer storage medium, and chip.

[0005] In a first aspect, an Internet of Things communication method is provided, comprising:

[0006] The client receives first resource information sent by the resource device through the cloud platform; the first resource information includes or indicates first resource status information of a specific resource in the resource device;

[0007] When the first resource status information changes to the second resource status information, the client sends a recovery request to the resource device through the cloud platform; the recovery request instructs the resource device to restore the status to the status corresponding to the first resource status information.

[0008] In a second aspect, an Internet of Things communication method is provided, comprising:

[0009] The resource device sends first resource information to the client through the cloud platform; the first resource information includes or indicates first resource status information of a specific resource in the resource device;

[0010] When the first resource state information changes to the second resource state information, the resource device receives a recovery request sent by the client through the cloud platform;

[0011] The resource device restores a state to a state corresponding to the first resource state information.

[0012] In a third aspect, an Internet of Things communication method is provided, comprising:

[0013] The cloud platform receives first resource information sent by the resource device, and sends the first resource information to the client; the first resource information includes or indicates first resource status information of a specific resource in the resource device;

[0014] When the first resource status information changes to the second resource status information, the cloud platform receives the recovery request sent by the client and sends the recovery request to the resource device; the recovery request instructs the resource device to restore the state to the state corresponding to the first resource status information.

[0015] In a fourth aspect, an Internet of Things communication device is provided, comprising:

[0016] A receiving unit, configured for receiving, by a client through a cloud platform, first resource information sent by a resource device; the first resource information includes or indicates first resource status information of a specific resource in the resource device;

[0017] A sending unit, used for, when the first resource status information changes to the second resource status information, the client sends a recovery request to the resource device through the cloud platform; the recovery request instructs the resource device to restore the state to the state corresponding to the first resource status information.

[0018] In a fifth aspect, an Internet of Things communication device is provided, comprising:

[0019] A sending unit, configured for the resource device to send first resource information to the client via the cloud platform; the first resource information includes or indicates first resource status information of a specific resource in the resource device;

[0020] a receiving unit, configured to receive, by the resource device, a recovery request sent by the client through the cloud platform when the first resource state information changes to the second resource state information;

[0021] A recovery unit is used for the resource device to recover the state to the state corresponding to the first resource state information.

[0022] In a sixth aspect, an Internet of Things communication device is provided, comprising:

[0023] A first transceiver unit is used for the cloud platform to receive first resource information sent by the resource device and send the first resource information to the client; the first resource information includes or indicates first resource status information of a specific resource in the resource device;

[0024] The second transceiver unit is used to, when the first resource status information changes to the second resource status information, the cloud platform receives the recovery request sent by the client and sends the recovery request to the resource device; the recovery request instructs the resource device to restore the state to the state corresponding to the first resource status information.

[0025] In a seventh aspect, an Internet of Things communication device is provided, comprising: a memory and a processor,

[0026] The memory stores a computer program executable on the processor.

[0027] When the processor executes the program, the steps in any of the above methods are implemented.

[0028] In an eighth aspect, a computer storage medium is provided, wherein the computer storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in any of the above methods.

[0029] In a ninth aspect, a chip is provided, comprising: a processor, configured to call and run a computer program from a memory, so that a device equipped with the chip executes the steps in any of the above methods.

[0030] In a tenth aspect, a computer program product is provided, wherein the computer program product comprises a computer storage medium, wherein the computer storage medium stores computer program code, wherein the computer program code comprises instructions executable by at least one processor, and wherein the steps in any of the above methods are implemented when the instructions are executed by the at least one processor.

[0031] In an embodiment of the present application, when the first resource status information of a resource device changes to the second resource status information, the client can restore the status of the resource device to a status corresponding to the first resource status information by sending a recovery request to the resource device. Thus, when the status of the resource changes due to power failure or failure of the resource device, the resource device can restore the status to the previous normal working state, thereby improving the reliability of IoT communication. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 A schematic diagram of an Internet of Things system provided in an embodiment of the present application;

[0033] Figure 2 A schematic diagram of the implementation flow of a method for a resource device to report resource status to a client provided in the related technology;

[0034] Figure 3 A schematic diagram of a flow chart of an Internet of Things communication method provided in an embodiment of the present application;

[0035] Figure 4 A flowchart of another Internet of Things communication method provided in an embodiment of the present application;

[0036] Figure 5 A flowchart of another Internet of Things communication method provided in an embodiment of the present application;

[0037] Figure 6A flowchart of another Internet of Things communication method provided in an embodiment of the present application;

[0038] Figure 7 A schematic diagram of a flow chart of an Internet of Things communication method provided by another embodiment of the present application;

[0039] Figure 8 A schematic diagram of a flow chart of an Internet of Things communication method provided by another embodiment of the present application;

[0040] Fig. 9 A flowchart of an Internet of Things communication method provided in yet another embodiment of the present application;

[0041] Fig.10 A schematic diagram of a flow chart of another Internet of Things communication method provided by another embodiment of the present application;

[0042] Fig.11 A flowchart of another Internet of Things communication method provided by another embodiment of the present application;

[0043] Fig.12 A schematic diagram of the structure of an Internet of Things communication device provided in an embodiment of the present application;

[0044] Fig.13 A schematic diagram of the structure of another IoT communication device provided in an embodiment of the present application

[0045] Fig.14 A schematic diagram of the composition structure of another Internet of Things communication device provided in an embodiment of the present application;

[0046] Fig.15 A schematic diagram of a hardware entity of an Internet of Things communication device provided in an embodiment of the present application;

[0047] Fig.16 It is a schematic diagram of the structure of a chip provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] The technical solution of the present application will be described in detail below through embodiments and in conjunction with the accompanying drawings. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.

[0049] It should be noted that in the examples of the present application, "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0050] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.

[0051] Figure 1A schematic diagram of an Internet of Things system provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the Internet of Things system 10 includes resource devices (Device) 11 to 15, a cloud platform (Cloud) 16 and a client (Client) 17. Among them:

[0052] Resource devices 11 to 15 may be resource status reporting nodes in the Internet of Things. The resource status reporting node may include a resource status determination module and a communication module, wherein the resource status determination module may be used to determine the current running status information of the resource device, and the communication module is used for communication of the resource device. For example, the communication module may upload the current running status information determined by the resource status determination module to the cloud platform 16 or to the client 17. Figure 1 In the embodiment of the home appliance field shown, resource devices 11 to 15 can be any one or a combination of electric lights, air conditioners, smart speakers, kettles, rice cookers, refrigerators, and televisions. In embodiments of other fields of the present application, resource devices can also be any one or a combination of other smart home appliances, mobile phones, computers, smart watches, measurement equipment in factories, sensing equipment in cars, augmented reality (AR) devices, or virtual reality (VR) devices. The embodiment of the present application does not limit the resource devices, as long as the resource devices can work in different states.

[0053] Cloud platform can be replaced by cloud or cloud device. Cloud platform can be a physical device or a virtual device.

[0054] The client 17 may be a device with display and control functions, for example, a display screen may be used to implement the display function, which may be used to display relevant information of the resource device to the user; a single-chip microcomputer or processor may be used to implement the control function, which may be used to control the operating status of the resource device.

[0055] The client 17 in the embodiment of the present application can be a physical device or a virtual device. When the client 17 is a physical device, the client 17 can be a terminal device, an access terminal device, a user unit, a user station, a mobile station, a mobile station, a remote station, a remote terminal device, a mobile device, a user terminal device (User Equipment, UE), a wireless communication device, a user agent or a user device. The terminal device can be a server, a mobile phone, a tablet computer, a laptop computer, a PDA, a personal digital assistant, a portable media player, a smart speaker, a navigation device, a display device, a wearable device such as a smart bracelet, a virtual reality device, an augmented reality device, a pedometer, a digital TV or a desktop computer, etc.

[0056] In some embodiments, the resource device may be connected to the client through the cloud platform, for example, Figure 1 In the corresponding embodiment, the resource devices 11 and 15 can be connected to the client 17 through the cloud platform 16, and the client 17 can exchange information with the resource devices 11 and 15 through the cloud platform 16. In other embodiments, the resource device can be directly connected to the client 17, for example, Figure 1 In the corresponding embodiment, the resource devices 12 and 13 are directly connected to the client 17, so that the client 17 can directly exchange information with the resource device 12 or 13. The client 17 exchanges information with any of the above resource devices, which may include: the client 17 can manage and / or control the resource devices 11 to 15, such as resource device software and hardware upgrades, resource device function and / or operation status and / or resource status control, resource subscription and resource query, etc.

[0057] Resource devices can also be connected to each other. For example, resource device 11 can be connected to resource devices 14 and 15 respectively. Messages or data between client 17 and resource device 14 or 15 can be forwarded via resource device 11. Resource device 11 can also perform certain processing on the forwarded messages or data, such as data preprocessing / filtering, communication protocol or message format conversion, etc.

[0058] Between two resource devices, and / or between a resource device and a client, and / or between a resource device and a cloud platform, and / or between a client and a cloud platform, a communication module can be used for communication connection. It should be noted that the embodiment of the present application does not limit the connection mode or communication protocol between any two of the above. For example, a wired connection can be used between any two of the above, or a Hypertext Transfer Protocol (HTTP) is used for data or message transmission, or a Constrained Application Protocol (CoAP) is used for data or message transmission, or a cellular-based narrowband Internet of Things (NB-IoT) wireless connection technology is used, and a message queue telemetry transmission (MQTT) protocol is used for data or message transmission. In an embodiment of the present application, CoAP can be used for data or message transmission between any two of the above. In other embodiments, data or message transmission can be performed by other protocols between any two of the above.

[0059] It should be noted that in the Internet of Things technology, the client 17 manages resource devices in the form of resources. The "resource" here is an abstract concept, which can refer to resource devices in physical form, static attributes such as the model, hardware and software version or manufacturer of the resource devices, and dynamic attributes such as the operations that the resource devices can perform, the events that can be reported, parameters or status parameters that can be read.

[0060] Figure 2 A schematic diagram of the implementation flow of a method for a resource device to report resource status to a client provided in the related technology, such as Figure 2 As shown, the method includes:

[0061] S201. Establish a connection from Device A to Cloud A.

[0062] In some implementations, the connection between Device A and Cloud A may be a long connection. Device A in the embodiment of the present application may be the resource device mentioned above, and Cloud A may be the cloud platform mentioned above.

[0063] S203: Client A sends a request to Cloud A to obtain device information on Cloud A.

[0064] In some embodiments, the connection between Client A and Cloud A may be a short connection or a long connection. Client A in the embodiments of the present application may be the client described above. In some embodiments, data transmission is performed between Client A and Cloud A or between Device A and Cloud A after a secure connection is established. For example, a secure connection may be established using HTTP protocol, CoAP protocol, or MQTT protocol, so that a secure channel may be established between Client A and Cloud A or between Device A and Cloud A, and data or information may be securely transmitted between Device A and Cloud A.

[0065] The device information may include information of all devices on Cloud A, or include information of devices associated with Client A. The device information may include device information of at least one device.

[0066] S205 , Cloud A sends the device information on Cloud A to Client A.

[0067] The device information on Cloud A may include device information of Device A. In some embodiments, the device information on Cloud A may include device information of at least one of Device B, Device C, Device D, and the like.

[0068] Device A may include at least one resource, and one resource may include at least one resource information.

[0069] For example, when Device A is a light, the light may include at least one resource, for example, the light may include at least one of a resource for controlling the brightness of the light, a resource for controlling the color of the light, a resource for controlling the color temperature of the light, a resource for controlling the flashing frequency of the light, etc.

[0070] For another example, when Device A is a washing machine, the washing machine may include at least one resource. For example, the washing machine may include at least one of a resource for controlling a washing mode, a resource for controlling a water level, a resource for controlling a washing time, a resource for controlling a rinsing intensity, and the like.

[0071] For another example, when Device A is a television, the television may include at least one resource, for example, the television may include at least one of a resource for controlling the television playback channel, a resource for controlling the playback volume, a resource for adjusting the display mode, and the like.

[0072] It should be understood that Device A may also be exemplified by other devices, such as an air conditioner, a speaker, or a kettle, and the embodiment of the present application does not limit the implementation scenario of Device A.

[0073] For example, Cloud A sends device information of at least one device on Cloud A, such as a lamp, a washing machine, a television, an air conditioner, a speaker, or a kettle, to Client A.

[0074] The device information may include not only at least one resource included in the device or an identifier of at least one resource, but also at least one information of device type, device identifier, device appearance, device location, etc.

[0075] S207 . Client A sends a subscription request to Cloud A. The subscription request is used to request to subscribe to the resource information of Device A on Cloud A.

[0076] In some embodiments, Client A may request to subscribe to resource information of a device, or may request to subscribe to resource information of at least two devices, and the resource information of one device or at least two devices includes resource information of Device A. In some embodiments, Client A may request to subscribe to resource information of a resource of a device, or may subscribe to resource information of at least two resources of a device.

[0077] S209 , Cloud A sends a subscription request to Device A, where the subscription request is used to request to subscribe to the resource information of Device A on Cloud A.

[0078] S211. Device A sends a subscription success message and current resource information to Cloud A.

[0079] In some embodiments, the subscription success message and the current resource information may be sent in one signaling. In other embodiments, the subscription success message and the current resource information may be sent in two signalings, for example, the subscription success message may be sent before the current resource information, or the current resource information may be sent before the subscription success message.

[0080] S213. Cloud A forwards the subscription success message and current resource information to Client A.

[0081] S215: The resource status of Device A changes.

[0082] Taking the resource device as a washing machine as an example, the resource state change is, for example, at least one of a change in the working mode of the washing machine, a change in the water level information of the washing machine, and a change in the rinsing intensity of the washing machine.

[0083] S215 . Device A sends the changed resource information to Cloud A.

[0084] S217 , Cloud A sends the changed resource information to Client A.

[0085] The related technology only provides a situation of how Device A reports resource status to Client A, and does not consider a situation of how Device A operates after power failure and restart.

[0086] Taking an implementation scenario as an example, when a washing machine is washing clothes in normal washing mode, if the washing machine is powered on and off (for example, it is powered on and off due to a restart, or a power outage caused by a power outage, or a power outage caused by a user's misoperation, etc.), the washing machine may be in an off state, a standby state, or running in a default state. In this way, the washing machine cannot continue to run in the state before the power is off and on after the power is off and on.

[0087] Taking another implementation scenario as an example, when the washing machine is washing clothes in normal mode, if the user switches to quick wash mode and then wants to switch back to normal mode, the user needs to perform complex operations to restore to normal mode, which causes inconvenience for the user's operation.

[0088] For another example, when the air conditioner detects that the ambient temperature meets the set temperature, it will enter the power saving mode or standby mode. However, in many scenarios, the user hopes that the air conditioner will always work in a fixed state and does not want the air conditioner to suddenly enter other states. However, this user demand will only make the user constantly use the air conditioner remote control to remotely operate the air conditioner, causing inconvenience for the user.

[0089] Figure 3 A flow chart of an Internet of Things communication method provided in an embodiment of the present application is as follows: Figure 3 As shown, the method includes:

[0090] S301. A client receives first resource information sent by a resource device through a cloud platform; the first resource information includes or indicates first resource status information of a specific resource in the resource device.

[0091] It should be noted that the client described in the embodiments of the present application may be Figure 1 The client 17 in or the Client A in other embodiments, the resource device described in the embodiment of the present application can be Figure 1 Any one of the resource devices 11 to 15 in or Device A in other embodiments. The cloud platform described in the embodiment of the present application can be Figure 1 The cloud platform 16 in or Cloud A in other embodiments.

[0092] In some embodiments, the resource device may send resource information to the client via the cloud platform at a fixed period. In other embodiments, the resource device may send resource information to the client via the cloud platform at a variable period. For example, between 6:00-24:00, the resource device may use a shorter period to send resource information, and between 0:00-6:00, the resource device may use a longer period to send resource information. For another example, when the resource device determines that there is a user in the home, the resource information may be sent in a shorter period. When the resource device determines that there is no user in the home, the resource information may be sent in a longer period. Among them, the first resource information may be the current resource information sent by the resource device to the client via the cloud platform.

[0093] Each resource information (which can be Figure 2 The resource information in the corresponding embodiments, including the first resource information, the second resource information or the third resource information described in the embodiments of the present application, may include or indicate the resource status information of a specific resource, or may include or indicate the resource status information of a specific resource and the resource attribute information of a specific resource. The resource status information of a specific resource may be the current state value of the specific resource, which usually changes with the change of the state of the specific resource. The resource attribute information in each resource information sent by the resource device to the client through the cloud platform may include at least one of the following: whether the resource information / resource status information is recoverable, the type of resource information / resource status information, whether the resource information / resource status information is modifiable, the identifier of the specific resource corresponding to the resource information / resource status information, etc.

[0094] For example, the first resource information may include not only the first resource state information, but also the resource attribute information of the specific resource. In the embodiment of the present application, each resource information sent by the resource device to the client through the cloud platform, such as the first resource information or the second resource information and the third resource information described below, may include the resource attribute information of the specific resource, or part of the resource information may include the resource attribute information of the specific resource.

[0095] The first resource information (or the second resource information or the third resource information described below) in the embodiment of the present application can be represented by state, and state can represent the current state of a specific resource. For example, state can include: resource state 1: XXX; resource state 2: XXX; resource state 3: XXX; resource attribute 1: XXX; resource attribute 2: XXX.

[0096] The first resource status information may be at least one resource status information, and each resource status information in the at least one resource status information may be a resource status value. For example, taking the resource device as a washing machine and the specific resource as the working mode of the washing machine as an example, the first resource status information may be at least one of the following information: the operating mode identifier of the washing machine, the running time of the washing machine, the water level information of the washing machine, the washing intensity of the washing machine, etc.

[0097] The specific resource may be one resource or at least two resources in the resource device. The resource attribute information of the specific resource may include one or at least two attribute information, and at least part of the one or at least two attribute information may be fixed attribute information, or may be attribute information that changes with time and / or scene changes, or may be attribute information that changes through the resource device receiving the attribute adjustment operation input by the user. For example, when the resource attribute information is information A (or described as indicate: A) under the indicate attribute, information A indicates that the resource state information is recoverable. In some embodiments, the resource attribute information may always be information A. In other embodiments, the resource attribute information may be modified to information B when the resource device receives certain instructions, and information B indicates that the resource state information is not recoverable. In some other embodiments, when the resource device determines that the number of times the resource information is restored within a period of time is greater than a threshold, it can be determined that the recovery fails, and the resource attribute information can be modified to B.

[0098] S303: When the first resource status information changes to the second resource status information, the client sends a recovery request to the resource device through the cloud platform; the recovery request instructs the resource device to restore the status to the status corresponding to the first resource status information.

[0099] In the embodiment of the present application, the second resource status information is different from the first resource status information.

[0100] In some embodiments, the client may determine that the first resource status information changes to the second resource status information. In order to ensure the effectiveness of the recovery process, the client may determine that the first resource status information changes to other resource status information and then changes to the second resource status information before sending a recovery request. For example, in order to avoid the influence of a child's false trigger on the laundry process, the client may send a recovery request to the resource device only when it is determined that the first resource status information has changed at least twice within a set time period.

[0101] The change of the first resource status information to the second resource status information may be caused by the change of at least one of all resource status information in the first resource status information.

[0102] In some implementations, the client determines that the first resource state information changes to the second resource state information by enabling the client to obtain the second resource state information having a determined state value, thereby determining that the first resource state information changes to the second resource state information. In this manner, the client can receive the second resource state information sent by the resource device via the cloud platform, thereby determining that the first resource state information changes to the second resource state information.

[0103] In other implementations, the client determines that the first resource state information changes to the second resource state information, which may be because the client cannot obtain the second resource information with a determined state value, and only knows that the first resource state information changes, but does not know what kind of changes have occurred in the first resource state information. In this way, the client can receive information sent by the resource device through the cloud platform to indicate that the first resource state information has changed, or the cloud platform can determine whether the first resource state information has changed, and the client can receive information sent by the cloud platform to indicate whether the first resource state information has changed.

[0104] In some embodiments, the recovery request may include the first resource information, or the recovery request may include the first resource status information. In this case, after the state of the resource device changes, the resource device may not store the first resource information or the first resource status information before the change. In other embodiments, the recovery request may include neither the first resource information nor the first resource status information. The recovery request is only a request for indicating state recovery. In this case, the resource device may store the first resource information or the first resource status information before the change, and restore the state after the state changes. Whether the first resource information is included in the recovery request may be pre-set, or may be flexibly determined according to different attributes of the resource device.

[0105] When the resource device receives a recovery request through the cloud platform, the resource device can respond to the recovery request and modify the current resource status information of the resource device to the first resource status information, or modify the current resource information to the first resource information, so that the state of the resource device can be restored to a state corresponding to the first resource status information. For example, when the first resource status information of the resource device changes to the second resource status information, the resource device can modify the second resource status information to the first resource status information. When the resource device restores the resource status information to the first resource status information, the resource device can operate in a state corresponding to the first resource status information.

[0106] Taking the washing machine as an example, after the washing machine has been running in normal mode for 20 minutes, if the operating mode changes to quick wash mode, standby mode or shutdown mode, after the washing machine receives a recovery request, it can re-enter the normal washing mode based on the recovery request and continue washing for the next 20 minutes.

[0107] In an embodiment of the present application, when the first resource status information of a resource device changes to the second resource status information, the client can restore the status of the resource device to a status corresponding to the first resource status information by sending a recovery request to the resource device. Thus, when the status of the resource changes due to power failure or failure of the resource device, the resource device can restore the status to the previous normal working state, thereby improving the reliability of IoT communication.

[0108] Figure 4 A flow chart of another IoT communication method provided in an embodiment of the present application is shown as follows: Figure 4 As shown, the method includes:

[0109] S401, the resource device sends first resource information to the client through the cloud platform; the client receives the first resource information sent by the resource device through the cloud platform; the first resource information includes or indicates first resource status information of a specific resource in the resource device.

[0110] On the cloud platform side, the cloud platform receives the first resource information sent by the resource device and sends the first resource information to the client.

[0111] S403: The client determines that the first resource status information changes to the second resource status information.

[0112] The state corresponding to the first resource state information is the state of the specific resource before the resource device is powered off, and the state corresponding to the second resource state information is the state of the specific resource after the resource device is powered on.

[0113] After S403, the client may also determine that the resource state of the specific resource can be restored, and then execute S405. In some embodiments, the first resource information also includes or indicates resource attribute information of the specific resource, and the resource attribute information is used to indicate that the resource state of the specific resource can be restored; the client may determine that the resource state of the specific resource can be restored based on the resource attribute information.

[0114] S405. The client sends a recovery request to the resource device through the cloud platform; the resource device receives the recovery request sent by the client through the cloud platform.

[0115] On the cloud platform side, the cloud platform receives the recovery request sent by the client and sends the recovery request to the resource device.

[0116] S407: The resource device restores its state to a state corresponding to the first resource state information.

[0117] The resource device may respond to the restoration request and restore the state to a state corresponding to the first resource state information.

[0118] In the embodiment of the present application, when an abnormality occurs in a resource device, the resource status of the resource in the resource device can be reset, thereby improving the reliability of IoT communication. In addition, the client and resource device communicate through the cloud platform, and since the cloud platform can access a large number of clients and resource devices, the IoT system has the advantages of strong system scalability and a wide range of applications.

[0119] Figure 5 A flow chart of another IoT communication method provided in an embodiment of the present application is as follows: Figure 5 As shown, the method includes:

[0120] S501. The resource device sends first resource information to the cloud platform; the cloud platform receives the first resource information sent by the resource device.

[0121] In an embodiment of the present application, the first resource information not only includes or indicates the first resource status information of a specific resource in the resource device, but may also include or indicate resource attribute information of the specific resource, where the resource attribute information is used to indicate that the resource status of the specific resource can be restored.

[0122] In some embodiments, after receiving the first resource information, the cloud platform may determine that the resource state of the specific resource can be restored based on the resource attribute information of the first resource information.

[0123] In some embodiments, the cloud platform may modify the third resource information stored in the cloud platform to the first resource information; the third resource information is received by the cloud platform before the first resource information.

[0124] S503: The cloud platform sends first resource information to the client; the client receives the first resource information sent by the cloud platform.

[0125] In some embodiments, the protocol based on which the cloud platform and resource devices communicate may be the same as the protocol based on which the cloud platform and the client communicate, for example, both protocols are HTTP protocol, CoAP protocol or MQTT protocol. In other embodiments, the protocol based on which the cloud platform and resource devices communicate may be different from the protocol based on which the cloud platform and the client communicate, for example, the former may be HTTP protocol and the latter may be CoAP protocol, and the embodiments of the present application do not limit this.

[0126] After the client receives the first resource information, the status corresponding to the first resource status information may be displayed.

[0127] In some embodiments, the client or cloud platform can determine the read-write attribute and / or recoverable attribute of the resource based on the resource attribute information indicating whether the resource status is recoverable reported by the resource device. For example, the working mode resource of a washing machine has an indicate attribute (read-only attribute) and a working mode attribute (read-write attribute); the indicate attribute indicates whether the working mode resource status is recoverable; when the device reports its resource, the client determines whether the attribute status under the resource is recoverable based on the indicate attribute value.

[0128] S505: The first resource status information in the resource device changes to the second resource status information.

[0129] In the operation scenario of the resource device, the resource device often powers off and powers on. In one embodiment, after the resource device is powered on, the state of the resource device does not return to the state before the power failure, but enters the initial state set by the resource device. For example, when the resource device is a computer, if multiple programs are opened on the computer, after the power is cut off and powered on, the computer will not enter the pre-set desktop, and will not restore the multiple programs opened before the power failure. In another embodiment, after the resource device is powered on, the state of the resource device can automatically enter the state before the power failure. One implementation of the power off and power on in the embodiment of the present application may be shutdown and restart.

[0130] The operating state of the resource device corresponding to the second resource state information may be a shutdown state, a standby state, or an operating state, etc., which is not limited in the embodiment of the present application.

[0131] In some embodiments, after the resource device is powered off, the cloud platform can detect that the connection between the cloud platform and the resource device is disconnected, and the cloud platform determines that the resource device is offline. Then the cloud platform can send a message to the client that the resource device is offline. After receiving the message that the resource device is offline, the client can display that the resource device is offline. In some embodiments, the client can also set the controls related to the resource device to non-triggerable controls, so that the user cannot control the resource device accordingly by triggering the client. In some embodiments, the client can also display the content related to the resource device in the form of a grayscale image so that the user can clearly know that the resource device is offline.

[0132] In some embodiments, the client can determine that the first resource state changes to a clear second resource state. In this way, the resource device sends the first resource information and the second resource information (or the first resource state information and the second resource state information) to the client through the cloud platform. In other embodiments, the client cannot determine that the first resource state changes to a clear second resource state. The client can only determine that the first resource state has changed and changed to a state different from the first resource state. In this way, the resource device can send the first resource information (or the first resource state information) to the client through the cloud platform without sending the second resource information (the second resource state information).

[0133] The following describes the process flow of powering off and on under one implementation method: after the resource device sends the first resource information to the client through the cloud platform, the resource device restarts. During the process of the resource device restarting, the cloud platform cannot receive the information sent by the resource device (for example, the cloud platform cannot receive the heartbeat packet sent by the resource device), and cannot determine what happened to the resource device. The cloud platform can only determine that the resource device is offline, and then the cloud platform sends the information that the resource device is offline to the client, and the client displays that the resource device is offline. After the resource device is powered on, the connection between the resource device and the cloud platform is restored. The resource device can send a notification of the resource device being online to the cloud platform, and / or send a restart reason to the cloud platform, such as a power-off restart or a reset restart. When the cloud platform sends the online notification to the client, the client can display the information that the resource device is online. When the cloud platform sends the restart reason to the client, the client can display the restart reason.

[0134] S507: The resource device sends second resource information to the cloud platform; the cloud platform receives the second resource information sent by the resource device.

[0135] The second resource status information is used by the cloud platform to send a notification message to the client when it is determined that the first resource status information and the second resource status information are different. The second resource information includes or indicates: the second resource status information of a specific resource in the resource device, or the second resource information includes or indicates: the second resource status information of a specific resource in the resource device and the resource attribute information of the specific resource; the resource attribute information is used to indicate that the resource status of the specific resource can be restored. The second resource status information can be used by the cloud platform to send a notification message to the client when it is determined that the first resource status information and the second resource status information are different.

[0136] In some implementations, the resource device may send a notification of the resource device being online to the cloud platform, and the notification of the resource device being online is used to notify the resource device to be online. The second resource information, the notification of the resource device being online, and the restart reason may be sent in one signaling, or may be sent in at least two signalings.

[0137] In the embodiment of the present application, the first resource status information and / or the second resource status information may be a readable and writable attribute, and the resource attribute information may be a read-only attribute.

[0138] In the embodiment of the present application, the first resource status information and the second resource status information are different, which can be replaced by the first resource information and the second resource information are different.

[0139] S509: The cloud platform determines that the first resource status information and the second resource status information are different.

[0140] S511. The cloud platform sends a notification message to the client; the client receives the notification message sent by the cloud platform.

[0141] The notification message indicates that the first resource status information changes to the second resource status information, or the notification message indicates that the resource status of the resource device needs to be restored, or the notification message includes or indicates the first resource information.

[0142] In some embodiments, the cloud platform may also send an online notification to the client.

[0143] In some embodiments, the cloud platform may modify the first resource state information stored in the cloud platform to the second resource state information when it is determined that the first resource state information and the second resource state information are different. In other embodiments, the cloud platform may modify the first resource information stored in the cloud platform to the second resource information when it is determined that the first resource information and the second resource information are different.

[0144] S513: The client determines, based on the notification message, that the first resource state information changes to the second resource state information.

[0145] In some embodiments, the client can display the resource device online based on the online notification sent by the cloud platform. In some embodiments, the client can reset the resource device related controls to triggerable controls, so that the user can control the resource device accordingly by triggering the client. In some embodiments, the client can also display the content related to the resource device in the form of color images, so that the user can clearly know that the resource device is online.

[0146] S515: The client determines, based on the resource attribute information, that the resource status of the specific resource can be restored.

[0147] The client may determine that the resource state of the specific resource can be restored based on the resource attribute information in the third resource information, or based on the resource attribute information in the first resource information, or based on the resource attribute information in the second resource information.

[0148] S517. The client obtains a first trigger instruction; the first trigger instruction is used to instruct to restore the resource status of the resource device.

[0149] The client obtains the first trigger instruction obtained by the user triggering the client. In some implementations, the client may display a control for whether to restore the resource status, and when the user selects yes, the client may obtain the first trigger instruction.

[0150] S519: The client sends a recovery request to the cloud platform, and the cloud platform receives the recovery request sent by the client.

[0151] In an embodiment of the present application, the prerequisite for the client to send a recovery request to the cloud platform is that the first resource status information changes to the second resource status information, the client determines that the resource status of the specific resource can be restored, and receives the first trigger instruction.

[0152] S521. The cloud platform sends a recovery request to the resource device, and the resource device receives the recovery request sent by the cloud platform.

[0153] S523: The resource device restores its state to a state corresponding to the first resource state information.

[0154] The resource device may respond to the restoration request and restore the state to a state corresponding to the first resource state information.

[0155] In some embodiments, the resource device may respond to the recovery request and restore the state corresponding to the second resource state information to the state corresponding to the first resource state information.

[0156] In some embodiments, a list of corresponding relationships between resource identifiers and whether resources can be restored may be stored in the client or cloud platform, so that the client or cloud platform can determine whether resources can be restored based on the list. In other embodiments, the client or cloud platform can directly determine whether the resource can be restored based on the latest received status information. In this case, there may be no list of corresponding relationships between resource identifiers and whether resources can be restored.

[0157] In the embodiment of the present application, the cloud platform determines whether the first resource status information and the second resource status information are the same, so that the cloud platform can inform the client of the result of whether they are the same, thereby eliminating the need for the client to calculate whether the first resource information and the second resource information are the same, thereby reducing the client's consumption. In addition, based on the first trigger instruction obtained by the user triggering the client to send a recovery request, the resource device can restore the resource status only when the user confirms the recovery, thereby enabling the recovery of the resource status to be performed according to user needs, thereby improving the controllability of resource recovery.

[0158] Figure 6 A flow chart of another IoT communication method provided in an embodiment of the present application is as follows: Figure 6 As shown, the method includes:

[0159] S601. The client obtains a second trigger instruction. The second trigger instruction is used to instruct the client to automatically send a recovery request to the resource device through the cloud platform when the first resource status information changes to the second resource status information.

[0160] In some embodiments, the client may display a control indicating whether to set the resource device's status to automatically recover. When the user selects yes, a second operation instruction is obtained, indicating that the client may automatically send a recovery request to the resource device through the cloud platform to automatically recover the resource device's status. For example, in the case of setting the resource device's resource status to automatically recover after power failure and power-on, upon receiving the corresponding operation from the user, the client may set the resource device's resource status to automatically recover after power failure and power-on, so that after the resource device is powered off and powered on, a recovery request is automatically sent to the client through the cloud platform.

[0161] S603: The resource device sends first resource information to the cloud platform; the cloud platform receives the first resource information sent by the resource device.

[0162] S605: The cloud platform sends first resource information to the client; the client receives the first resource information sent by the cloud platform.

[0163] S607: The first resource status information in the resource device changes to the second resource status information.

[0164] The first resource information includes first resource status information, and the second resource information includes second resource status information.

[0165] S609: The resource device sends second resource information to the cloud platform; the cloud platform receives the second resource information sent by the resource device.

[0166] The second resource status information is used by the client to send a recovery request to the resource device when the client determines that the first resource status information and the second resource status information are different.

[0167] S611. The cloud platform determines that the first resource status information and the second resource status information are different.

[0168] S613. The cloud platform sends a notification message to the client; the client receives the notification message sent by the cloud platform.

[0169] S615: The client determines, based on the notification message, that the first resource state information changes to the second resource state information.

[0170] S617: The client determines, based on the resource attribute information, that the resource status of the specific resource can be restored.

[0171] S619: The client sends a recovery request to the cloud platform, and the cloud platform receives the recovery request sent by the client.

[0172] S621. The cloud platform sends a recovery request to the resource device, and the resource device receives the recovery request sent by the cloud platform.

[0173] S623: The resource device responds to the recovery request and restores the state to a state corresponding to the first resource state information.

[0174] In the embodiment of the present application, the cloud platform determines whether the first resource status information and the second resource status information are the same, so that the cloud platform can inform the client of the result of whether they are the same, thereby eliminating the need for the client to calculate whether the first resource information and the second resource information are the same, thereby reducing the client's consumption. In addition, before the resource device is powered on and off, the specific resources of the resource device are set on the client in advance to be automatically restored after power off and on, so that after the resource device is powered on and off, the client can automatically send a recovery request to the resource device, and the recovery process does not require user intervention, thereby improving the degree of automation of the Internet of Things system.

[0175] Figure 7 A flow chart of an Internet of Things communication method provided by another embodiment of the present application is as follows: Figure 7 As shown, the method includes:

[0176] S701. The resource device sends first resource information to the cloud platform; the cloud platform receives the first resource information sent by the resource device.

[0177] S703: The cloud platform sends first resource information to the client; the client receives the first resource information sent by the cloud platform.

[0178] S705: The first resource status information in the resource device changes to the second resource status information.

[0179] S707. The resource device sends second resource information to the cloud platform; the cloud platform receives the second resource information sent by the resource device.

[0180] In the embodiment of the present application, the second resource status information is used by the client to send a recovery request to the resource device when it is determined that the first resource status information and the second resource status information are different.

[0181] S709: The cloud platform sends the second resource information to the client; the client receives the second resource information sent by the cloud platform.

[0182] In some implementations, when the resource device is directly connected to the client, the client directly receives the second resource information sent by the resource device.

[0183] S711. The client determines that the second resource status information is different from the first resource status information, and determines that the first resource status information is changed to the second resource status information.

[0184] S713: The client determines, based on the resource attribute information, that the resource status of the specific resource can be restored.

[0185] S715. The client obtains a first trigger instruction; the first trigger instruction is used to instruct to restore the resource status of the resource device.

[0186] S717. The client sends a recovery request to the cloud platform, and the cloud platform receives the recovery request sent by the client.

[0187] S719. The cloud platform sends a recovery request to the resource device, and the resource device receives the recovery request sent by the cloud platform.

[0188] S721. The resource device responds to the recovery request and recovers the state to the state corresponding to the first resource state information.

[0189] In the embodiment of the present application, since the cloud platform usually needs to connect a large number of clients and a large number of resource devices, by determining whether the first resource status information and the second resource status information are the same through the client, the resource occupancy rate of the cloud platform can be greatly reduced, thereby reducing the layout cost of the cloud platform, and since the cloud platform directly sends the received second resource information to the client, the data does not need to be calculated by the cloud platform, thereby also reducing the delay of information transmission. In addition, based on the first trigger instruction obtained by the user triggering the client to send a recovery request, the resource device can restore the resource status only when the user confirms the recovery, and then the resource status can be restored according to user needs, thereby improving the controllability of resource recovery.

[0190] Figure 8 A flow chart of an Internet of Things communication method provided by another embodiment of the present application is as follows: Figure 8 As shown, the method includes:

[0191] S801. The client obtains a second trigger instruction. The second trigger instruction is used to instruct the client to automatically send a recovery request to the resource device through the cloud platform when the first resource status information changes to the second resource status information.

[0192] S803. The resource device sends first resource information to the cloud platform; the cloud platform receives the first resource information sent by the resource device.

[0193] S805. The cloud platform sends first resource information to the client; the client receives the first resource information sent by the cloud platform.

[0194] S807: The first resource status information in the resource device changes to the second resource status information.

[0195] S809. The resource device sends second resource information to the cloud platform; the cloud platform receives the second resource information sent by the resource device.

[0196] S811. The cloud platform sends second resource information to the client; the client receives the second resource information sent by the cloud platform.

[0197] S813: The client determines that the second resource status information is different from the first resource status information, and determines that the first resource status information is changed to the second resource status information.

[0198] S815: The client determines, based on the resource attribute information, that the resource status of the specific resource can be restored.

[0199] S817. The client sends a recovery request to the cloud platform, and the cloud platform receives the recovery request sent by the client.

[0200] S819. The cloud platform sends a recovery request to the resource device, and the resource device receives the recovery request sent by the cloud platform.

[0201] S821. The resource device responds to the recovery request and recovers the state to the state corresponding to the first resource state information.

[0202] In the embodiment of the present application, since the cloud platform usually needs to connect a large number of clients and a large number of resource devices, by determining whether the first resource status information and the second resource status information are the same through the client, the resource occupancy rate of the cloud platform can be greatly reduced, thereby reducing the layout cost of the cloud platform, and since the cloud platform directly sends the received second resource information to the client, the data does not need to be calculated by the cloud platform, thereby also reducing the delay in information transmission. In addition, before the resource device is powered on and off, the specific resources of the resource device are set in advance on the client to be automatically restored after power off and on, so after the resource device is powered on and off, the client can automatically send a recovery request to the resource device, and the recovery process does not require user intervention, thereby improving the automation level of the Internet of Things system.

[0203] Fig. 9 A flow chart of an Internet of Things communication method provided in yet another embodiment of the present application is as follows: Fig. 9 As shown, the method includes:

[0204] S901. Establish a connection from Device A to Cloud A.

[0205] S903: Client A sends a request to Cloud A to obtain device information on Cloud A.

[0206] In some embodiments, before using the method of the embodiments of the present application, a secure connection can be established between Device A and Cloud A, and / or between Cloud A and Client A through HTTP protocol, CoAP protocol, or MQTT protocol.

[0207] Cloud A may have at least one piece of device information, and the at least one piece of device information may include device information of Device A. The device information of Device A may include resource status information of each of at least one resource on Device A.

[0208] S905 . Cloud A sends the device information on Cloud A to Client A.

[0209] The device information on Cloud A includes the device information of Device A.

[0210] S907 . Client A sends a request to Cloud A to subscribe to the resource information of Device A on Cloud A.

[0211] S909 . Cloud A sends a request to Device A to subscribe to Device A's resource information.

[0212] S911. Device A determines that there is an attribute in the subscribed device resource indicating that the resource status information can be restored after the device is restarted.

[0213] Device A may obtain current resource information of a specific resource, where the current resource information includes current resource state information and resource attribute information, and when the resource attribute information in the current resource information indicates that the resource state information can be restored, it is determined that the current resource information or the current resource state information can be restored.

[0214] S913. Device A sends a subscription success message to Cloud A, and current resource information of the subscribed device resources.

[0215] In some embodiments, the subscription success information and the current resource information of the subscribed device resources can be sent in two separate signalings. For example, in some embodiments, Device A can first send the subscription success information to Cloud A, and then send the current resource information of the subscribed device resources. Or, for another example, Device A can first send the current resource information to Cloud A, and then send the subscription success information. In other embodiments, the subscription success information and the current resource information of the subscribed device resources can be sent in one signaling.

[0216] S915. Cloud A determines that the resource status information can be restored and stores the current resource information.

[0217] S917. Cloud A sends a subscription success message to Client A, and current resource information of the subscribed device resources.

[0218] S919: Client A determines that the resource status information can be restored.

[0219] S921. The device resource status in Device A changes.

[0220] S923. Device A sends the latest resource information of the subscribed device resources to Cloud A.

[0221] The latest resource information includes the latest resource status information and resource attribute information.

[0222] S925. Cloud A updates the current resource information before as the latest resource information. For example, the latest resource information is stored, and the latest resource information overwrites the previous current resource information.

[0223] For example, Cloud A may store the previous current resource information in a register or other storage space. After Cloud A receives the latest resource information, it may perform a reset operation on the stored current resource information and write the latest resource information into the register or other storage space.

[0224] S927. Cloud A sends the latest resource information of the subscribed device resources to Client A.

[0225] S929, Device A is powered off or shut down due to a fault.

[0226] S931. The connection between Device A and Cloud A is disconnected.

[0227] In some embodiments, the connection between Device A and Cloud A may be a long connection, and Device A may periodically send heartbeat packets to Cloud A. When Cloud A determines that no heartbeat packets sent by Device A are received within a preset time period, it determines that the connection from Device A to Cloud A is disconnected.

[0228] S933. Cloud A sends information that the device is offline to Client A.

[0229] S935. Client A displays the status of the device being offline and the subscribed device resources.

[0230] The status of the subscribed device resource displayed in this step is the status corresponding to the latest resource status information of the subscribed device resource.

[0231] S937, Device A is powered on or restarted after being shut down due to a fault.

[0232] S939, Device A reconnects to Cloud A.

[0233] After Device A is powered on, it can send a connection request to Cloud A, thereby reestablishing the connection between Device A and Cloud A.

[0234] S941. Device A sends information about the device going online to Cloud A and reports the resource information after the device goes online.

[0235] The device online information and the resource information after the device is online may be in one signaling, or may be in two separate signalings. The embodiment of the present application does not limit the order of the device online information and the resource information after the device is online.

[0236] After S941, steps S943-S947, S961 may be executed, or steps S949-S961 may be executed.

[0237] S943. Cloud A determines that the resource status information or resource information content before the device goes offline is the same as that after the device goes online.

[0238] S945. Cloud A sends information about the device going online to Client A.

[0239] S947, Client A shows that the device is online.

[0240] S949. Cloud A determines that the resource status information or resource information content before the device goes offline is different from that after the device goes online.

[0241] S951. Cloud A sends information about the online device to Client A, and the resource information before the subscribed device resources go offline (i.e., the latest resource information).

[0242] S953: Client A displays that the device is online and determines that the resource status can be restored, and obtains a first trigger instruction through user operation.

[0243] S955. Client A sends a request to Cloud A to restore resource status.

[0244] The request for restoring the resource status may include the pre-offline resource information or the resource status information.

[0245] S957. Cloud A sends a request to Device A to restore the resource status.

[0246] S959, Device A's resource status is updated to the status before power outage or failure.

[0247] S961. The resource status reporting process continues.

[0248] Through the method in the embodiment of the present application, not only the consumption of Client A is reduced, but also the controllability of resource recovery is improved.

[0249] Fig.10 A flow chart of another IoT communication method provided by another embodiment of the present application is as follows: Fig.10 As shown, the method includes:

[0250] in, Fig.10 The corresponding embodiment is compared with Fig. 9 The differences between the corresponding embodiments are:

[0251] After S919, step S1001 may be performed: Client A sets the subscribed resources to be automatically updated after the device is powered off or restarted due to a fault.

[0252] In some implementations, Client A may display an option of whether to automatically restore resource status after a device is powered off or restarted due to a failure. If the user selects yes, Client A may execute the setting of S1001.

[0253] Fig.10 The corresponding embodiment may not execute the step of obtaining the first trigger instruction through user operation in S953.

[0254] Through the method in the embodiment of the present application, the consumption of Client A can be reduced and the automation level of the Internet of Things system can be improved.

[0255] Fig.11 A flow chart of another IoT communication method provided in another embodiment of the present application is as follows: Fig.11 As shown, the method includes:

[0256] in, Fig.11 The corresponding embodiment is compared with Fig. 9 The differences between the corresponding embodiments are:

[0257] After S919, S1101 may be further executed: Client A stores current resource information of the subscribed device resources.

[0258] After S927, S1103 may be further executed: Client A stores the latest resource information of the subscribed device resources.

[0259] Steps S943 to S953 may be replaced by the following steps S1105 to S1111. In the embodiment of the present application, after S1105, steps S1107 and S961 may be performed, or steps S1109, S1111, S955 to S961 may be performed.

[0260] S1105. Cloud A sends the device online information to Client A and reports the resource information after the device is online.

[0261] S1107. Client A displays that the device is online, and determines that the resource status information or resource information content before the device is offline and after the device is online is the same.

[0262] S1109. Client A displays that the device is online, and determines that the resource status information or resource information content before the device is offline and after the device is online is different.

[0263] The resource status content before going offline may be the latest resource information of the subscribed device resources.

[0264] S1111. Client A determines that the resource status can be restored, and obtains a first trigger instruction through user operation.

[0265] Through the method in the embodiments of the present application, the resource occupancy rate of Cloud A can be reduced, the delay of information transmission can be reduced, and the controllability of resource recovery can be improved.

[0266] The present application embodiment can also provide a communication method for the Internet of Things. Compared with the embodiment of the method Fig.11 The difference between the corresponding embodiments is that after S919, a step may be further executed: the client sets the subscribed resources to be automatically updated after the device is powered off or restarted due to a fault, and the step of obtaining the first trigger instruction through user operation in S1111 is not executed.

[0267] Through the method in the embodiment of the present application, the resource occupancy rate of Cloud A can be reduced, the delay of information transmission can be reduced, and the automation level of the Internet of Things system can be improved.

[0268] Based on the foregoing embodiments, the embodiments of the present application provide an Internet of Things communication device 1200 / 1300 / 1400, which includes the various units included and the various modules included in the units, which can be implemented by a processor in a terminal device; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.

[0269] Fig.12 A schematic diagram of the structure of an Internet of Things communication device provided in an embodiment of the present application is shown in FIG. Fig.12 As shown, the Internet of Things communication device 1200 includes:

[0270] Receiving unit 1201, used for the client to receive first resource information sent by the resource device through the cloud platform; the first resource information includes or indicates first resource status information of a specific resource in the resource device;

[0271] The sending unit 1202 is used to send a recovery request to the resource device through the cloud platform when the first resource status information changes to the second resource status information; the recovery request instructs the resource device to restore the status to the status corresponding to the first resource status information.

[0272] In some embodiments, the state corresponding to the first resource state information is the state of the specific resource before the resource device is powered off, and the state corresponding to the second resource state information is the state of the specific resource after the resource device is powered on.

[0273] In some embodiments, the IoT communication device 1200 further includes: a determination unit 1203, configured for the client to determine that the first resource state information changes to the second resource state information, and the client determines that the resource state of the specific resource can be restored;

[0274] The sending unit 1202 is also used for the client to send a recovery request to the resource device through the cloud platform.

[0275] In some embodiments, the first resource information further includes or indicates resource attribute information of a specific resource, and the resource attribute information is used to indicate that the resource state of the specific resource can be restored;

[0276] The determination unit 1203 is further configured to determine, by the client, whether the resource state of a specific resource can be restored based on the resource attribute information.

[0277] In some embodiments, the Internet of Things communication device 1200 further includes: an acquisition unit 1204, which is used by the client to acquire a first trigger instruction; the first trigger instruction is used to instruct to restore the resource status of the resource device.

[0278] In some embodiments, the acquisition unit 1204 is also used by the client to obtain a second trigger instruction; the second trigger instruction is used to instruct the client to automatically send a recovery request to the resource device through the cloud platform when the first resource status information changes to the second resource status information.

[0279] In some embodiments, the receiving unit 1201 is further used for the client to receive a notification message sent by the cloud platform; the notification message indicates that the first resource state information changes to the second resource state information, or the notification message indicates that the resource state of the resource device needs to be restored, or the notification message includes or indicates the first resource information;

[0280] The determining unit 1203 is further configured to determine, by the client, based on the notification message, that the first resource status information changes to the second resource status information.

[0281] In some embodiments, the receiving unit 1201 is further used for the client to receive second resource information sent by the resource device through the cloud platform; the second resource information includes or indicates: second resource state information of a specific resource in the resource device, or the second resource information includes or indicates: second resource state information of a specific resource in the resource device and resource attribute information of the specific resource; the resource attribute information is used to indicate that the resource state of the specific resource can be restored;

[0282] In some embodiments, the determination unit 1203 is further used for the client to determine that the second resource status information is different from the first resource status information, and to determine that the first resource status information changes to the second resource status information.

[0283] Fig.13 A schematic diagram of the structure of another IoT communication device provided in an embodiment of the present application is shown in FIG. Fig.13 As shown, the Internet of Things communication device 1300 includes:

[0284] A sending unit 1301 is used for the resource device to send first resource information to the client through the cloud platform; the first resource information includes or indicates first resource status information of a specific resource in the resource device;

[0285] The receiving unit 1302 is configured to receive, by the resource device, a recovery request sent by the client via the cloud platform when the first resource state information changes to the second resource state information;

[0286] The restoring unit 1303 is used for the resource device to restore the state to the state corresponding to the first resource state information.

[0287] In some embodiments, the restoring unit 1303 is further configured to restore the resource device to a state corresponding to the second resource state information to a state corresponding to the first resource state information;

[0288] The state corresponding to the first resource state information is the state of the specific resource before the resource device is powered off, and the state corresponding to the second resource state information is the state of the specific resource after the resource device is powered on.

[0289] In some embodiments, the first resource information also includes or indicates resource attribute information of a specific resource, where the resource attribute information is used to indicate that the resource state of the specific resource can be restored.

[0290] In some embodiments, the sending unit 1301 is further used for the resource device to send second resource information to the cloud platform; the second resource information includes or indicates: second resource state information of a specific resource in the resource device, or the second resource information includes or indicates: second resource state information of a specific resource in the resource device and resource attribute information of the specific resource; the resource attribute information is used to indicate that the resource state of the specific resource can be restored;

[0291] Among them, the second resource status information is used by the cloud platform to send a notification message to the client when it is determined that the first resource status information and the second resource status information are different; the notification message indicates that the first resource status information changes to the second resource status information, or the notification message indicates that the resource status of the resource device needs to be restored, or the notification message includes or indicates the first resource information.

[0292] In some embodiments, the sending unit 1301 is further used for the resource device to send second resource information to the client through the cloud platform; the second resource information includes or indicates: second resource state information of a specific resource in the resource device, or the second resource information includes or indicates: second resource state information of a specific resource in the resource device and resource attribute information of the specific resource; the resource attribute information is used to indicate that the resource state of the specific resource can be restored;

[0293] The second resource status information is used by the client to send a recovery request to the resource device when the client determines that the first resource status information and the second resource status information are different.

[0294] Fig.14 A schematic diagram of the structure of another IoT communication device provided in an embodiment of the present application is shown in FIG. Fig.14 As shown, the Internet of Things communication device 1400 includes:

[0295] The first transceiver unit 1401 is used for the cloud platform to receive first resource information sent by the resource device and send the first resource information to the client; the first resource information includes or indicates first resource status information of a specific resource in the resource device;

[0296] The second transceiver unit 1402 is used for the cloud platform to receive a recovery request sent by the client and send a recovery request to the resource device when the first resource status information changes to the second resource status information; the recovery request instructs the resource device to restore the state to the state corresponding to the first resource status information.

[0297] In some embodiments, the state corresponding to the first resource state information is the state of the specific resource before the resource device is powered off, and the state corresponding to the second resource state information is the state of the specific resource after the resource device is powered on.

[0298] In some embodiments, the first resource information also includes or indicates resource attribute information of a specific resource, where the resource attribute information is used to indicate that the resource state of the specific resource can be restored.

[0299] In some embodiments, the IoT communication device 1400 further includes: a determination unit 1403, configured for the cloud platform to determine, based on the resource attribute information, that the resource state of a specific resource can be restored;

[0300] The state updating unit 1404 is used for the cloud platform to modify the third resource information stored in the cloud platform to the first resource information; the third resource information is received by the cloud platform before the first resource information.

[0301] In some embodiments, the first transceiver unit 1401 is also used for the cloud platform to receive second resource information sent by the resource device; the second resource information includes or indicates: the second resource status information of a specific resource in the resource device, or the second resource information includes or indicates: the second resource status information of a specific resource in the resource device and the resource attribute information of the specific resource; the resource attribute information is used to indicate that the resource status of the specific resource can be restored; it is used for the cloud platform to determine that the first resource status information and the second resource status information are different, and send a notification message to the client; the notification message indicates that the first resource status information changes to the second resource status information, or the notification message indicates that the resource status of the resource device needs to be restored, or the notification message includes or indicates the first resource information.

[0302] In some embodiments, the first transceiver unit 1401 is further used for the cloud platform to receive second resource information sent by the resource device, and send the second resource information to the client; the second resource information includes or indicates: second resource state information of a specific resource in the resource device, or the second resource information includes or indicates: second resource state information of a specific resource in the resource device and resource attribute information of the specific resource; the resource attribute information is used to indicate that the resource state of the specific resource can be restored;

[0303] The second resource status information is used by the client to send a recovery request to the resource device when the client determines that the first resource status information and the second resource status information are different.

[0304] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0305] It should be noted that in the embodiments of the present application, if the above-mentioned method for transmitting messages in the Internet of Things is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can be essentially or partly reflected in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including a number of instructions to enable the client / cloud platform / resource device to execute all or part of the methods of each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.

[0306] Fig.15A hardware entity diagram of an Internet of Things communication device provided for an embodiment of the present application, as shown in 15, the Internet of Things communication device 1500 includes: a processor 1501 and a memory 1502, wherein the memory 1502 stores a computer program that can be executed on the processor 1501, and when the processor 1501 executes the program, the steps in the method executed by the client / cloud platform / resource device in any of the above embodiments are implemented.

[0307] In the embodiment of the present application, the IoT communication device 1500 may be the above-mentioned client / cloud platform / resource device.

[0308] In the embodiments of the present application, Figure 12 to Figure 14 In the example, any two units can be connected by a circuit. Fig.15 In the embodiment, the processor 1501 and the memory 1502 may be connected via a circuit.

[0309] An embodiment of the present application provides a computer storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the steps of the method executed by the client in the above method.

[0310] An embodiment of the present application provides a computer storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the steps of the method executed by the cloud platform in the above method.

[0311] An embodiment of the present application provides a computer storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the steps of the method executed by the resource device in the above method.

[0312] Fig.16 It is a schematic diagram of the structure of a chip provided in an embodiment of the present application. Fig.16 The chip 1600 shown includes a processor 1601 and a memory 1602. The processor 1601 is used to call and run a computer program from the memory 1602, so that the client / cloud platform / resource device installed with the chip 1600 executes the steps of the method executed by the client / cloud platform / resource device in the embodiment of the present application.

[0313] The memory 1602 may be a separate device independent of the processor 1601 , or may be integrated into the processor 1601 .

[0314] In some implementations, the chip 1600 may further include an input interface 1603. The processor 1601 may control the input interface 1603 to communicate with other devices or chips, and specifically, may obtain information or data sent by other devices or chips.

[0315] In some implementations, the chip 1600 may further include an output interface 1604. The processor 1601 may control the output interface 1604 to communicate with other devices or chips, and specifically, may output information or data to other devices or chips.

[0316] In some embodiments, the chip 1600 can be applied to the client / cloud platform / resource device in the embodiments of the present application, and the chip can implement the corresponding processes implemented by the client / cloud platform / resource device in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.

[0317] It should be understood that the chip 1600 mentioned in the embodiment of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0318] An embodiment of the present application provides a computer program product, which includes a computer storage medium, the computer storage medium stores computer program code, and the computer program code includes instructions that can be executed by at least one processor. When the instructions are executed by at least one processor, the steps of the method executed by the client / cloud platform / resource device in the above method are implemented.

[0319] In some embodiments, the computer program product can be applied to the client / cloud platform / resource device in the embodiments of the present application, and the computer program instructions enable the computer to execute the corresponding processes implemented by the client / cloud platform / resource device in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.

[0320] It should be understood that the processor of the embodiment of the present application may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by the hardware integrated logic circuit or software instructions in the processor. The above processor can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or the hardware and software modules in the decoding processor are combined and performed. The software module can be located in a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, and other mature storage media in the art. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0321] It is understood that the memory or other storage space in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus random access memory (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0322] It should be understood that the above-mentioned memory or other storage space is exemplary but not restrictive. For example, the memory in the embodiments of the present application may also be static random access memory (static RAM, SRAM), dynamic random access memory (dynamic RAM, DRAM), synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (synch link DRAM, SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DR RAM), etc. That is to say, the memory in the embodiments of the present application is intended to include but not limited to these and any other suitable types of memory.

[0323] It should be noted here that the description of the above computer storage medium, computer program, chip and computer program product embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0324] It should be understood that the "one embodiment" or "one embodiment" or "an embodiment of the present application" or "the aforementioned embodiment" or "some embodiments" or "some implementation methods" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "one embodiment" or "one embodiment" or "an embodiment of the present application" or "the aforementioned embodiment" or "some embodiments" or "some implementation methods" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number 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 constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.

[0325] Unless otherwise specified, when the client / cloud platform / resource device executes any step in the embodiments of the present application, the processor of the client / cloud platform / resource device may execute the step. Unless otherwise specified, the embodiments of the present application do not limit the order in which the client / cloud platform / resource device executes the following steps. In addition, the methods used to process data in different embodiments may be the same method or different methods. It should also be noted that any step in the embodiments of the present application can be independently executed by the client / cloud platform / resource device, that is, when the client / cloud platform / resource device executes any step in the following embodiments, it may not rely on the execution of other steps.

[0326] It is also worth noting that although the present application provides many steps in each embodiment, in the process of actual application or actual execution, the client / cloud platform / resource device can select some steps to execute from the multiple steps of each provided embodiment, without having to execute every step, as long as the method corresponding to the executed steps is a complete solution.

[0327] In the several embodiments provided in the present application, it should be understood that the disclosed client / cloud platform / resource device and method can be implemented in other ways. The client / cloud platform / resource device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the resource devices or units can be electrical, mechanical or other forms.

[0328] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0329] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0330] The features disclosed in the several method or client / cloud platform / resource device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or client / cloud platform / resource device embodiments.

[0331] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: mobile storage resource devices, read-only memories (ROM), disks or optical disks, and other media that can store program codes.

[0332] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable the client / cloud platform / resource device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage resource devices, ROM, disks or optical disks.

[0333] In the embodiments of the present application, the descriptions of the same steps and the same contents in different embodiments can refer to each other. In the embodiments of the present application, the term "and" does not affect the order of the steps. For example, the client / cloud platform / resource device executes A and executes B, which may be the case that the client / cloud platform / resource device executes A first and then executes B, or the client / cloud platform / resource device executes B first and then executes A, or the client / cloud platform / resource device executes A and executes B at the same time.

[0334] It should be understood that in the present application, A included in a message means that A is present in the message. A indicated in a message means that the message includes the identifier of A, so that A can be obtained based on the identifier of A. It should be understood that when different resource devices execute the same steps, the execution method can be the same.

[0335] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0336] Industrial Applicability

[0337] The embodiments of the present application provide an Internet of Things communication method, apparatus, device, computer storage medium, chip and computer program product. By using the Internet of Things communication method in the present application, when the state of a resource changes due to power failure or failure of a resource device, the resource device can restore the state to a previous normal working state, thereby improving the reliability of Internet of Things communication.

Claims

1. An Internet of Things communication method, the method being applied to an Internet of Things system consisting of a client, a cloud platform and resource devices, comprising: The client receives first resource information sent by the resource device through the cloud platform; the first resource information includes or indicates first resource status information of a specific resource in the resource device; the first resource information also includes or indicates resource attribute information of the specific resource, and the resource attribute information is used to indicate that the resource and status of the specific resource can be restored; When the first resource status information changes to the second resource status information, the client sends a recovery request to the resource device through the cloud platform; the recovery request instructs the resource device to restore the status to the status corresponding to the first resource status information.

2. The method according to claim 1, wherein: The state corresponding to the first resource state information is the state of the specific resource before the resource device is powered off, and the state corresponding to the second resource state information is the state of the specific resource after the resource device is powered on.

3. The method according to claim 1 or 2, wherein: When the first resource state information changes to the second resource state information, the client sends a recovery request to the resource device through the cloud platform, including: When the first resource status information changes to the second resource status information and the client determines that the resource status of the specific resource can be restored, the client sends the restoration request to the resource device through the cloud platform.

4. The method according to claim 3, wherein: The client determines that the resource state of the specific resource can be restored, including: The client determines, based on the resource attribute information, that the resource state of the specific resource can be restored.

5. The method according to claim 1 or 2, wherein: Before the client sends a recovery request to the resource device through the cloud platform, the method further includes: The client obtains a first trigger instruction; the first trigger instruction is used to instruct to restore the resource status of the resource device.

6. The method according to claim 1 or 2, wherein: Before the client receives the first resource information sent by the resource device through the cloud platform, the method further includes: The client obtains a second trigger instruction; the second trigger instruction is used to instruct the client to determine that when the first resource status information changes to the second resource status information, the recovery request is automatically sent to the resource device through the cloud platform.

7. The method according to claim 1 or 2, wherein: The client determines that the first resource state information changes to the second resource state information, including: The client receives a notification message sent by the cloud platform; the notification message indicates that the first resource status information changes to the second resource status information, or the notification message indicates that the resource status of the resource device needs to be restored, or the notification message includes or indicates the first resource information; The client determines, based on the notification message, that the first resource state information changes to the second resource state information.

8. The method according to claim 1 or 2, wherein: The client determines that the first resource state information changes to the second resource state information, including: The client receives second resource information sent by the resource device through the cloud platform; the second resource information includes or indicates: second resource status information of a specific resource in the resource device, or the second resource information includes or indicates: second resource status information of a specific resource in the resource device and resource attribute information of the specific resource; the resource attribute information is used to indicate that the resource status of the specific resource can be restored; The client determines that the second resource status information is different from the first resource status information, and determines that the first resource status information changes to the second resource status information.

9. An Internet of Things communication method, the method being applied to an Internet of Things system consisting of a client, a cloud platform and resource devices, comprising: The resource device sends first resource information to the client through the cloud platform; the first resource information includes or indicates first resource state information of a specific resource in the resource device; the first resource information also includes or indicates resource attribute information of the specific resource, and the resource attribute information is used to indicate that the resource state of the specific resource can be restored; When the first resource state information changes to the second resource state information, the resource device receives a recovery request sent by the client through the cloud platform; The resource device restores a state to a state corresponding to the first resource state information.

10. The method according to claim 9, wherein: The resource device restores the state to a state corresponding to the first resource state information, including: The resource device restores the state corresponding to the second resource state information to the state corresponding to the first resource state information; The state corresponding to the first resource state information is the state of the specific resource before the resource device is powered off, and the state corresponding to the second resource state information is the state of the specific resource after the resource device is powered on.

11. The method according to claim 9 or 10, before the resource device receives the recovery request sent by the client through the cloud platform, the method further comprises: The resource device sends second resource information to the cloud platform; The second resource information includes or indicates: second resource state information of a specific resource in the resource device, or the second resource information includes or indicates: second resource state information of a specific resource in the resource device and resource attribute information of the specific resource; the resource attribute information is used to indicate that the resource state of the specific resource can be restored; Among them, the second resource status information is used by the cloud platform to send a notification message to the client when it is determined that the first resource status information and the second resource status information are different; the notification message indicates that the first resource status information changes to the second resource status information, or the notification message indicates that the resource status of the resource device needs to be restored, or the notification message includes or indicates the first resource information.

12. The method according to claim 9 or 10, before the resource device receives the recovery request sent by the client through the cloud platform, the method further comprises: The resource device sends second resource information to the client through the cloud platform; The second resource information includes or indicates: second resource state information of a specific resource in the resource device, or the second resource information includes or indicates: second resource state information of a specific resource in the resource device and resource attribute information of the specific resource; the resource attribute information is used to indicate that the resource state of the specific resource can be restored; The second resource status information is used by the client to send a recovery request to the resource device when the client determines that the first resource status information and the second resource status information are different.

13. An Internet of Things communication method, the method being applied to an Internet of Things system consisting of a client, a cloud platform and resource devices, comprising: The cloud platform receives the first resource information sent by the resource device, and sends the first resource information to the client; The first resource information includes or indicates first resource state information of a specific resource in the resource device; the first resource information also includes or indicates resource attribute information of the specific resource, the resource attribute information is used to indicate that the resource,state of the specific resource can be restored; When the first resource status information changes to the second resource status information, the cloud platform receives the recovery request sent by the client and sends the recovery request to the resource device; the recovery request instructs the resource device to restore the state to the state corresponding to the first resource status information.

14. The method according to claim 13, wherein: The state corresponding to the first resource state information is the state of the specific resource before the resource device is powered off, and the state corresponding to the second resource state information is the state of the specific resource after the resource device is powered on.

15. The method according to claim 13, wherein: After the cloud platform receives the first resource information sent by the resource device, the method further includes: The cloud platform determines, based on the resource attribute information, that the resource state of the specific resource can be restored; The cloud platform modifies the third resource information stored in the cloud platform into the first resource information; the third resource information is received by the cloud platform before the first resource information.

16. The method according to any one of claims 13 to 15, wherein: Before the cloud platform receives the recovery request sent by the client, the method further includes: The cloud platform receives second resource information sent by the resource device; the second resource information includes or indicates: second resource status information of a specific resource in the resource device, or the second resource information includes or indicates: second resource status information of a specific resource in the resource device and resource attribute information of the specific resource; the resource attribute information is used to indicate that the resource status of the specific resource can be restored; The cloud platform determines that the first resource status information and the second resource status information are different, and sends a notification message to the client; the notification message indicates that the first resource status information changes to the second resource status information, or the notification message indicates that the resource status of the resource device needs to be restored, or the notification message includes or indicates the first resource information.

17. The method according to any one of claims 13 to 15, wherein: Before the cloud platform receives the recovery request sent by the client, the method further includes: The cloud platform receives the second resource information sent by the resource device, and sends the second resource information to the client; the second resource information includes or indicates: the second resource state information of the specific resource in the resource device, or the second resource information includes or indicates: the second resource state information of the specific resource in the resource device and the resource attribute information of the specific resource; the resource attribute information is used to indicate that the resource state of the specific resource can be restored; The second resource status information is used by the client to send a recovery request to the resource device when the client determines that the first resource status information and the second resource status information are different.

18. An Internet of Things communication device, the device being applied to an Internet of Things system consisting of a client, a cloud platform and resource equipment, comprising: A receiving unit, configured for the client to receive first resource information sent by the resource device through the cloud platform; the first resource information includes or indicates first resource status information of a specific resource in the resource device; the first resource information also includes or indicates resource attribute information of the specific resource, the resource attribute information is used to indicate that the resource and status of the specific resource can be restored; A sending unit, used for, when the first resource status information changes to the second resource status information, the client sends a recovery request to the resource device through the cloud platform; the recovery request instructs the resource device to restore the state to the state corresponding to the first resource status information.

19. An Internet of Things communication device, the device being applied to an Internet of Things system consisting of a client, a cloud platform and resource equipment, comprising: A sending unit, configured for the resource device to send first resource information to the client via the cloud platform; the first resource information includes or indicates first resource status information of a specific resource in the resource device; the first resource information also includes or indicates resource attribute information of the specific resource, the resource attribute information is used to indicate that the resource and status of the specific resource can be restored; a receiving unit, configured to receive, by the resource device, a recovery request sent by the client through the cloud platform when the first resource state information changes to the second resource state information; A recovery unit is used for the resource device to recover the state to the state corresponding to the first resource state information.

20. An Internet of Things communication device, the device being applied to an Internet of Things system consisting of a client, a cloud platform and resource equipment, comprising: A first transceiver unit, configured for the cloud platform to receive first resource information sent by the resource device, and send the first resource information to the client; The first resource information includes or indicates first resource state information of a specific resource in the resource device; the first resource information also includes or indicates resource attribute information of the specific resource, the resource attribute information is used to indicate that the resource,state of the specific resource can be restored; The second transceiver unit is used to, when the first resource status information changes to the second resource status information, the cloud platform receives the recovery request sent by the client and sends the recovery request to the resource device; the recovery request instructs the resource device to restore the state to the state corresponding to the first resource status information.

21. An Internet of Things communication device, comprising: Memory and processor, The memory stores a computer program executable on the processor. When the processor executes the program, the steps in the method described in any one of claims 1 to 8 are implemented, or when the processor executes the program, the steps in the method described in any one of claims 9 to 12 are implemented, or when the processor executes the program, the steps in the method described in any one of claims 13 to 17 are implemented.

22. A computer storage medium storing one or more programs, wherein the one or more programs can be executed by one or more processors to implement the steps in the method described in any one of claims 1 to 8; or, the one or more programs can be executed by one or more processors to implement the steps in the method described in any one of claims 9 to 12; or, the one or more programs can be executed by one or more processors to implement the steps in the method described in any one of claims 13 to 17.

23. A chip, comprising: A processor, for calling and running a computer program from a memory so that a device equipped with the chip performs the steps in the method as claimed in any one of claims 1 to 8; or, for calling and running a computer program from a memory so that a device equipped with the chip performs the steps in the method as claimed in any one of claims 9 to 12; or, for calling and running a computer program from a memory so that a device equipped with the chip performs the steps in the method as claimed in any one of claims 13 to 17.