CN115380256A - Equipment state monitoring method, device, equipment and storage medium - Google Patents

Equipment state monitoring method, device, equipment and storage medium Download PDF

Info

Publication number
CN115380256A
CN115380256A CN202080099658.6A CN202080099658A CN115380256A CN 115380256 A CN115380256 A CN 115380256A CN 202080099658 A CN202080099658 A CN 202080099658A CN 115380256 A CN115380256 A CN 115380256A
Authority
CN
China
Prior art keywords
target user
information
resource
belonging
subscription
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202080099658.6A
Other languages
Chinese (zh)
Inventor
吕小强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN115380256A publication Critical patent/CN115380256A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Telephonic Communication Services (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the application provides a method, a device, equipment and a storage medium for monitoring equipment states. The method comprises the following steps: the user terminal sends a subscription request to the cloud server, and the cloud server can monitor the equipment and/or equipment state belonging to the target user according to the received subscription request and send notification information to the user terminal corresponding to the target user when the equipment and/or equipment state belonging to the user changes, so that the user terminal can timely and accurately obtain the change information of the equipment and/or equipment state needing to be controlled, the accuracy of the obtained state information of the Internet of things equipment is improved, and the equipment control precision is further improved.

Description

Equipment state monitoring method, device, equipment and storage medium Technical Field
The embodiment of the application relates to the technical field of internet of things, in particular to a method, a device, equipment and a storage medium for monitoring equipment states.
Background
With the development of network and computer technologies, the technology of internet of things is rapidly applied, and more devices can be connected to the network to monitor and control the devices. In the development process of the internet of things, the types of the internet of things equipment are more and more, and the key is how to realize the unified remote control of the internet of things equipment in the network.
In the prior art, all the internet of things equipment in the network can be registered to the cloud platform, and the states of the equipment are uniformly managed by the cloud platform, that is, after the internet of things equipment is registered to the cloud platform, the discoverable resources of the internet of things equipment can be published to a resource catalog of the cloud platform, so that a user can discover the internet of things equipment which needs to be controlled by the user on the cloud platform through the user terminal, and control the target internet of things equipment according to the acquired equipment states.
However, resources used for managing device states such as device registration and/or device online and offline on the cloud platform are not readable for other devices, which may cause that the state information of the internet of things device acquired by the user terminal from the cloud platform is not accurate, and the problem of inaccurate device control exists.
Disclosure of Invention
The embodiment of the application provides a device state monitoring method, device, equipment and storage medium, and is used for solving the problem that in the prior art, equipment control is inaccurate because state information of Internet of things equipment acquired by user terminal equipment from a cloud platform may be inaccurate.
In a first aspect, an embodiment of the present application provides an apparatus status monitoring method, including:
sending a subscription request to a cloud server, wherein the subscription request is used for indicating the cloud server to feed back change information to a user terminal corresponding to a target user when monitoring that equipment belonging to the target user and/or equipment state are changed;
receiving a notification message from the cloud server, the notification message including: change information of devices and/or device states belonging to the target user.
In a second aspect, an embodiment of the present application provides an apparatus status monitoring method, including:
receiving a subscription request sent by a user terminal, wherein the subscription request comprises: the identifier of the user terminal and/or the identifier of a target user corresponding to the user terminal;
monitoring equipment and/or equipment states belonging to the target user according to the subscription request;
when the device and/or the device state belonging to the target user is changed, sending a notification message to the user terminal, wherein the notification message comprises: change information of devices and/or device states belonging to the target user.
In a third aspect, an embodiment of the present application provides an apparatus for monitoring a device state, including: a transmitting module and a receiving module;
the sending module is used for sending a subscription request to a cloud server, wherein the subscription request is used for indicating the cloud server to feed back change information to a user terminal corresponding to a target user when monitoring that equipment belonging to the target user and/or equipment state change;
the receiving module is configured to receive a notification message from the cloud server, where the notification message includes: change information of devices and/or device states belonging to the target user.
In a fourth aspect, an embodiment of the present application provides an apparatus for monitoring a device status, including: the device comprises a receiving module, a processing module and a sending module;
the receiving module is configured to receive a subscription request sent by a user terminal, where the subscription request includes: the identifier of the user terminal and/or the identifier of a target user corresponding to the user terminal;
the processing module is used for monitoring equipment and/or equipment states belonging to the target user according to the subscription request;
the sending module is configured to send a notification message to the user terminal when the device and/or the device state belonging to the target user is changed, where the notification message includes: change information of devices and/or device states belonging to the target user.
In a fifth aspect, an embodiment of the present application provides a user terminal, including:
a processor, a memory, a transceiver, and an interface to communicate with a cloud server;
the memory stores computer-executable instructions;
the processor executing the computer executable instructions stored by the memory causes the processor to perform the method according to the first aspect described above.
Alternatively, the processor may be a chip.
In a sixth aspect, an embodiment of the present application provides a cloud server, including:
a processor, a memory, a transceiver, and an interface for communicating with a user terminal;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored by the memory, causing the processor to perform the method of the second aspect as described above.
Alternatively, the processor may be a chip.
In a seventh aspect, this application may provide a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, the method of the first aspect is implemented.
In an eighth aspect, embodiments of the present application may provide a computer-readable storage medium having stored therein computer-executable instructions for implementing the method of the second aspect when the computer-executable instructions are executed by a processor.
In a ninth aspect, embodiments of the present application provide a program, which when executed by a processor, is configured to perform the method according to the first aspect.
In a tenth aspect, embodiments of the present application provide a program, which when executed by a processor, is configured to perform the method according to the second aspect.
In an eleventh aspect, the present application provides a computer program product, which includes program instructions for implementing the method according to the first aspect.
In a twelfth aspect, embodiments of the present application provide a computer program product, which includes program instructions for implementing the method according to the second aspect.
In a thirteenth aspect, an embodiment of the present application provides a chip, including: a processing module capable of performing the method of the first aspect is interfaced with the communication.
Further, the chip further comprises a storage module (e.g., a memory) for storing instructions, the processing module is for executing the instructions stored by the storage module, and the execution of the instructions stored in the storage module causes the processing module to execute the method according to the first aspect.
In a fourteenth aspect, an embodiment of the present application provides a chip, including: a processing module capable of performing the method of the second aspect is interfaced with the communication.
Further, the chip further comprises a storage module (e.g., a memory) for storing instructions, the processing module is for executing the instructions stored by the storage module, and the execution of the instructions stored in the storage module causes the processing module to execute the method according to the second aspect.
According to the equipment state monitoring method, the device, the equipment and the storage medium, the user terminal sends the subscription request to the cloud server, the cloud server can monitor the equipment and/or equipment state belonging to the target user according to the received subscription request, and sends the notification information to the user terminal corresponding to the target user when the equipment and/or equipment state belonging to the user changes, so that the user terminal can timely and accurately obtain the change information of the equipment and/or equipment state needing to be controlled, the accuracy of the obtained state information of the Internet of things equipment is improved, and the precision of equipment control is further improved.
Drawings
Fig. 1 is a schematic structural diagram of an apparatus monitoring system to which an apparatus state monitoring method provided in the embodiment of the present application is applied;
FIG. 2 is a schematic diagram illustrating interaction between a client and a server in the prior art subscription technology;
fig. 3 is an interaction diagram of a first embodiment of an apparatus status monitoring method provided in the present application;
fig. 4 is an interaction diagram of a second embodiment of an apparatus status monitoring method provided in the present application;
fig. 5 is an interaction diagram of a third embodiment of a device status monitoring method provided in the present application;
fig. 6 is an interaction diagram of a fourth embodiment of the device status monitoring method provided in the present application;
fig. 7 is an interaction diagram of a fifth embodiment of the device status monitoring method provided in the present application;
fig. 8 is an interaction diagram of a sixth embodiment of an apparatus state monitoring method provided in the present application;
fig. 9 is an interaction diagram of a seventh embodiment of an apparatus state monitoring method provided in the present application;
fig. 10 is a schematic structural diagram of a first apparatus state monitoring device according to an embodiment of the present disclosure;
fig. 11 is a schematic structural diagram of a second apparatus state monitoring device according to an embodiment of the present disclosure;
fig. 12 is a block diagram of a user terminal for implementing a device status monitoring method provided in the present application;
fig. 13 is a block diagram of a cloud server for implementing the device status monitoring method provided in the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and in the claims, and in the drawings, of the embodiments of the application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in other sequences than described or illustrated herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Fig. 1 is a schematic structural diagram of an apparatus monitoring system to which the apparatus state monitoring method provided in the embodiment of the present application is applied. As shown in fig. 1, the system may include: the system comprises a user terminal 11, a cloud platform 12 and at least one internet of things device 13. The user terminal 11 and the at least one internet of things device 13 may be registered on the cloud platform 12, and the cloud server 120 is deployed on the cloud platform, so that the user terminal 11 and the cloud server 120, the cloud server 120 and the at least one internet of things device 13 can all communicate with each other, and the cloud server 120 can perform unified management on all devices connected to the network.
Optionally, in an embodiment of the application, the at least one internet of things device 13 belongs to the same user, and the user explains and explains that the user controls the internet of things device through the user terminal 11. It is understood that the internet of things devices registered to the cloud server 120 may belong to different users, which may be determined according to actual needs, and are not limited herein.
For example, when the at least one internet of things device 13 belongs to a user corresponding to the user terminal 11, if the user terminal 11 and the at least one internet of things device 13 are in the same local area network, the user terminal 11 and the at least one internet of things device 13 can also communicate with each other, and if the user terminal 11 and the at least one internet of things device 13 are in different local area networks, at this time, the user terminal 11 may communicate with the at least one internet of things device 13 through the cloud server 120 on the cloud platform 12.
Optionally, in practical applications, currently commonly used internet of things devices may be generally registered on the cloud platform 12, and after the internet of things devices are registered on the cloud platform 12, the internet of things devices may publish their discoverable resources to a resource directory (/ oic/rd directory) of the cloud platform 12, and are stored and managed uniformly by the cloud server 120. In this way, the application of the user terminal 11 may discover the device and some attributes of the device under the target user by looking at the resource information saved by the cloud server 120. For example, the resources published by the internet of things device to the resource directory may include/res resources,/d resources, and other functional resources of the internet of things device.
The/res resource comprises a link (link) of a discoverable resource issued by the internet of things equipment and a link of a/d resource; the/d resource is a device attribute resource of the internet of things device, for example: information such as the name of the internet of things equipment and the Identification (ID) of the internet of things equipment; other functional resources refer to specific capability information of the internet of things device, such as temperature resources, switch resources, and the like. It can be understood that the internet of things device needs to be discovered after registering on the cloud platform, and then it can publish the resources allowed to be accessed into the/oic/rd resource directory of the cloud platform.
For example, in the embodiment of the application, as shown in fig. 1, if the user terminal 11 belongs to a user 10, and the at least one internet of things device 13 belonging to the user 10 publishes its discoverable resource to the resource directory of the cloud platform 12 after registering to the cloud platform 12, the user 10 may discover a device to be controlled through the cloud platform 12 by using the user terminal 11, and obtain device states such as resource information of the at least one internet of things device 13, a registration/logout state on the cloud platform 12, a vertical line state (connected to the cloud server 120 or disconnected from the cloud server 120), and finally, may perform remote control on the device to be controlled according to the obtained resource information and the device state.
In practical applications, the user terminal 11 may be a terminal device such as a smart phone or a tablet computer. The Internet of things equipment can be equipment such as an intelligent television, an intelligent refrigerator, an intelligent washing machine and an intelligent air conditioner. The embodiment of the application does not limit the specific representation forms of the user terminal 11 and the internet of things device, and the specific representation forms can be determined according to actual conditions.
At least one Application (APP) is installed on the user terminal 11, wherein the APP has an application for managing the internet of things device, and the user can communicate with the cloud server 120 and the internet of things device through the APP installed on the user terminal 11.
In practical applications, there are one unreadable account resource (/ account resource) and one unreadable session resource (/ session resource) on the cloud platform 12, which are maintained by the cloud server 120.
The/account resource is mainly used for managing the registration of the equipment, and the corresponding relation between equipment identification (equipment ID) and User identification (User ID) is maintained in the/account resource; when a device logs off the cloud platform 12, the cloud server 120 deletes the identifier of the device and the corresponding relationship between the user identifiers from the account directory.
The session resource is mainly used for managing the up-down state of the equipment, namely the equipment of the Internet of things and the cloud server are in a connected state or an unconnected state; therefore, a relation table of the device ID and the login state is maintained in the/session resource; when a certain device is in a connected state with the cloud server, the cloud server sets a login state corresponding to the device ID to true (true), and when a certain device is not in a connected state with the cloud server, the cloud server sets a login state corresponding to the device ID to false (false).
In summary, in the prior art, a user terminal can remotely control an internet of things device registered to a cloud platform through the cloud platform, but the control of the internet of things device requires that all internet of things devices under a user of the user terminal are acquired from account resources on the cloud platform, and resources such as device states of the internet of things devices are acquired from session resources, and the account resources and the session resources on the cloud platform are unreadable for other devices, which may cause that the state information acquired by the user terminal from the cloud platform to the internet of things device is inaccurate, thereby causing the problem of inaccurate device control.
In view of the above problems, an embodiment of the present application provides an apparatus state monitoring method, where a subscription request is sent to a cloud server through a user terminal, and the cloud server may monitor an apparatus and/or an apparatus state belonging to a target user according to the received subscription request, and send notification information to a user terminal corresponding to the target user when the apparatus and/or the apparatus state belonging to the target user changes, so that the user terminal can timely obtain change information of an apparatus and/or an apparatus state to be controlled, accuracy of obtained state information of an internet of things apparatus is improved, and accuracy of apparatus control is further improved.
The overall concept of the technical scheme of the application is as follows: based on the development of the existing subscription (or push) technology, the idea of the subscription technology can be applied to the internet of things system, that is, the user terminal can send a subscription request to the cloud server through a specific Uniform Resource Identifier (URI), so that the subscription of information of the internet of things equipment and the cloud server is completed, and the change of equipment and/or equipment state under a certain user is found in time by monitoring specific resources, thereby laying a foundation for accurately controlling the internet of things equipment subsequently.
Optionally, in an embodiment of the present application, the subscription content corresponding to the subscription request may include device registration information, device logout information, device online and offline information, and resource change information. The cloud server can complete sensing of information such as equipment registration and equipment logout through monitoring/accounting resources, sensing of online and offline of the equipment can be completed through monitoring/session resources, and sensing of resource change information of the target equipment can be completed through resource subscription of the target equipment resources.
Before the technical solution of the present application is introduced, the development of the subscription technology will be described first.
With the development of internet technology, the application of internet of things and smart home gradually enters into the life of people. The inventor finds that the user can subscribe a favorite news topic (such as sports, stars and the like) to a news provider through the APP of the user terminal, and when the subscribed news topic has news update, the corresponding news message is pushed to the APP of the user terminal so that the user can read the news message in time.
Furthermore, with the development of subscription (or push) technology, the news subscription (or push) technology can be applied not only to information transmission between devices and cloud platform communication (D2C), but also to application service processing in terminal devices and information transmission between devices and devices (D2D). For example, the mobile phone subscribes to the temperature of a home thermometer, and when the temperature of the thermometer is greater than or equal to a set temperature (e.g., 26 degrees celsius), an air conditioner is turned on, and the like.
Fig. 2 is a schematic diagram illustrating interaction between a client and a server in the prior art subscription. The client may be an application installed on the user terminal, and the server may be a service function of the server. Referring to fig. 2, the interaction steps between the existing client and the server are as follows:
s201, the client sends a subscription request to the server.
Wherein the type of the subscription request is retrieval (Retrieve), and monitoring (observer) is used to refer to the subscription request as a subscription message. Illustratively, the subscription request may include the following parameters:
fr: a message initiator (from), specifically an identifier of a device where a Client (Client) is located;
to: the message receiver is used for receiving the resource identifier subscribed by the Client;
ri: a Request identifier (Request identifier) for completing the binding of the Request and the response;
op: the Operation type (Operation) is generally one of the cut, the cut is a rest Operation type, and the cut respectively and correspondingly creates Create, updates Update, retrieves, and deletes;
obs: and (4) subscribing identification.
S202, the server side authenticates the received subscription request and establishes a monitoring mechanism after authentication;
s203, the server feeds back a subscription response to the client;
in this embodiment, the subscription response is a response message to the subscription request, and is intended to respond to the subscription request of the Client, that is, inform the Client of: the server has received the subscription request and starts monitoring.
S204, the server monitors that the resource information corresponding to the subscription request changes, and determines resource change information;
s205, the server side sends the resource change information to the client side.
It can be understood that the subscription request in S201, the subscription response in S203, and Ri carried by the resource change information in S205 are consistent.
As can be seen from the above analysis, according to the above S201 to S205, one message subscription/notification cycle is completed. And if the subscription of the resource information needs to be cancelled, the client sends a subscription cancellation request to the server, which is specifically embodied that the Obs parameter in the subscription cancellation request is set as a subscription cancellation identifier.
In conjunction with the above description of the device status monitoring system and the content related to knowledge, the following detailed description of the technical solution of the present application is made through specific embodiments. It should be noted that the technical solutions of the present application may include some or all of the following contents, and the following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 3 is an interaction diagram of a first embodiment of an apparatus state monitoring method provided in the present application. This fig. 3 is explained in terms of information interaction between the user terminal of the user and the cloud server. Referring to fig. 3, the method may include the steps of:
s301, the user terminal sends a subscription request to the cloud server.
The subscription request is used for instructing the cloud server to feed back change information to the user terminal corresponding to the target user when monitoring that the equipment and/or the equipment state belonging to the target user are changed.
Optionally, the subscription request includes: and the identifier of the user terminal and/or the identifier of the target user corresponding to the user terminal. That is, the subscription request may include an identifier of the user terminal, or the subscription request includes an identifier of a target user corresponding to the user terminal, or the subscription request includes an identifier of the user terminal and an identifier of a target user corresponding to the user terminal. The content specifically included in the subscription request may be set according to an actual scene, and is not described herein again.
Optionally, in a possible design of the present application, a Uniform Resource Identifier (URI) of the subscription request is used to indicate subscription content corresponding to the subscription request. In another possible design of the present application, the uniform resource identifier of the subscription request is used to indicate a subscription object and subscription content corresponding to the subscription request. That is, in the embodiment of the present application, the user terminal may represent the subscription content or the subscription object and the subscription content corresponding to the subscription request through the URI of the subscription request.
It can be understood that, if the URI of the subscription request is only used to represent the subscription content corresponding to the subscription request, the subscription object corresponding to the subscription request may be understood as all devices of the target user corresponding to the user terminal; if the URI of the subscription request is used to represent the subscription object and the subscription content corresponding to the subscription request, the subscription object corresponding to the subscription request is only the specific device or the specific device set under the target user corresponding to the user terminal.
That is, in the embodiment of the present application, the subscription object corresponding to the subscription request is any one of the following:
all devices belonging to the target user, one device set belonging to the target user, one device belonging to the target user.
In addition, in the embodiment of the present application, the subscription content corresponding to the subscription request may be any one of the following:
the device registration information, the device logout information, the device on-line information, the device off-line information and the device resource change information.
That is, the user terminal may determine the content to be subscribed according to the requirement, and send a subscription request to the cloud server, so that the cloud server may perform a corresponding operation according to the received subscription request.
It is understood that, in practical applications, the subscription of the device registration information and the device deregistration information is usually specific to the target user corresponding to the user terminal, that is, the subscription request of the device registration information and/or the device deregistration information corresponds to all devices under the target user. The subscription of the device online information, the device offline information, and the device resource change information may be specific to all devices and some devices under the target user corresponding to the user terminal, and therefore, the user terminal may represent the corresponding subscription object and/or subscription content through the URL of the subscription request based on the indication of the user. Correspondingly, according to different subscription contents and/or subscription objects corresponding to the subscription request, the specific expression of the subscription request may be any one of the following forms:
1. the subscription request is a subscription request of the device registration information, and the URI of the subscription request is/devices/registration, at this time, the subscription request represents the registration information prompt of all devices subscribed to the target user;
2. the subscription request is a subscription request of equipment logout information, and the URI of the subscription request is/services/authentication, at the moment, the subscription request represents to subscribe logout information reminders of all equipment belonging to a user;
3. the subscription request is a subscription request of the online information of the equipment;
at this time, as an example, if the URI of the subscription request is/devices/Online, the subscription request indicates to subscribe to the Online information reminder of all devices belonging to the target user;
as another example, if the URI of the subscription request is/devices/{ device id }/Online, the subscription request indicates to subscribe to the Online information alert of a specific device belonging to the target user, and the identifier of the specific device is a device id;
4. the subscription request is a subscription request of the offline information of the equipment;
at this time, as an example, if the URI of the subscription request is/devices/Offline, the subscription request indicates to subscribe to Offline information reminders of all devices belonging to the target user;
as another example, if the URI of the subscription request is/devices/{ deviceID }/Offline, the subscription request indicates to subscribe to the Offline information reminder of a specific device belonging to the target user, and the identifier of the specific device is the deviceID;
5. the subscription request is a subscription request for changing the equipment resource information;
at this time, as an example, if the URI of the subscription request is/devices/properties, the subscription request indicates a resource change information reminder for subscribing to published resources of all devices of the target user, that is, the subscription request is directed to resource information changes of all devices belonging to the target user, which are stored by the cloud platform.
As another example, the URI of the subscription request is/devices/{ deviceID }/propertychange, in which case the subscription request indicates a subscription to the resource information change of a specific device of the target user. It should be noted that, in this example, if the cloud server wants to know the resource information change of the specific device in time, the cloud server needs to send a subscription request of the resource information change to the specific device, so that the specific device can be pushed to the cloud server in time when the resource information change occurs, and then pushed to the user terminal.
Optionally, in the embodiments of the present application, specific expressions regarding the subscription request may be determined according to actual requirements, and will be described in the following embodiments, which are not described herein again.
S302, the cloud server monitors equipment and/or equipment states belonging to the target user according to the received subscription request.
In the embodiment of the application, after the user terminal sends the subscription request to the cloud server, the cloud server can receive the subscription request, and determine the target user sending the subscription request, the subscription content corresponding to the subscription request, or the subscription content and the subscription object by analyzing the URI of the subscription request. Therefore, the cloud server may monitor the device and/or the device state belonging to the target user according to the subscription content or the subscription content and the subscription object corresponding to the subscription request.
Optionally, the monitoring of the device belonging to the target user mainly refers to monitoring of device registration and/or device logout information of the target user, and the monitoring of the device state belonging to the target user mainly refers to monitoring of at least one of device online information, device offline information, and device resource change information of the target user.
For specific implementation of this step, reference may be made to the descriptions in the following embodiments, which are not described herein again.
And S303, the cloud server generates notification information when determining that the equipment and/or the equipment state belonging to the target user are changed.
Wherein the notification message includes: change information of devices and/or device states belonging to the target user.
In the embodiment of the application, the cloud server starts to monitor the device and/or device state of the target user in real time after receiving the subscription request sent by the user device, and generates the notification message when determining that the device and/or device state belonging to the target user is changed.
Optionally, determining that the device belonging to the target user is changed means that it is monitored that a device is newly registered to the target user or a device is logged off (also referred to as deregistered) from the target user; determining that the device state belonging to the target user changes refers to monitoring that the device under the target user changes from an online state to an offline state, or the device under the target user changes from the offline state to the online state, or the device resource information under the target user changes.
It is understood that the embodiment of the present application is not limited to the specific embodiment of the device and/or the device state change belonging to the target user, and may be determined according to actual situations.
S304, the cloud server sends a notification message to the user terminal.
Optionally, when determining that the device and/or the device state belonging to the target user is changed, the cloud server sends the generated notification message to the user terminal, so that the target user can timely and accurately obtain the device information or the device state information to be controlled by the target user.
It can be understood that, in the embodiment of the present application, after the cloud server receives the subscription request and starts to monitor the device and/or the device state under the target user, it may feed back a subscription response to the user terminal to indicate the response of the cloud server to the received subscription request. The specific content of the response may be determined according to the subscription content corresponding to the subscription request, and is not described herein again.
According to the device state monitoring method provided by the embodiment of the application, the user terminal sends the subscription request to the cloud server, the cloud server can monitor the device and/or device state belonging to the target user according to the received subscription request, and sends the notification information to the user terminal corresponding to the target user when the device and/or device state belonging to the user changes, so that the user terminal can timely and accurately obtain the change information of the device and/or device state needing to be controlled, the accuracy of the obtained state information of the equipment of the Internet of things is improved, and the precision of device control is further improved.
Further, in the embodiment of the application, after the user terminal acquires the device and/or the change information of the device state information, the user terminal can remotely control the device to be controlled according to the state information of the device to be controlled.
The embodiment of the application does not limit the specific implementation of the remote control, which can be implemented according to the actual situation, and is not described herein again.
Exemplarily, on the basis of the above embodiments, fig. 4 is an interaction schematic diagram of a second embodiment of the device status monitoring method provided by the present application. Referring to fig. 4, if a user terminal wants to obtain device information of a target user from a cloud platform, the user terminal needs to be registered on the cloud platform first. That is, before S301 (the user terminal sends the subscription request to the cloud server), the method may further include the following steps:
s401, determining that the user terminal corresponding to the target user is registered in the cloud platform.
In the embodiment of the application, in an equipment state monitoring system (an internet of things system), generally, only after all equipment needs to be registered on a cloud platform, a conventional operation can be performed through a cloud server on the cloud platform, and therefore, before a user terminal sends a subscription request to the cloud server, the user terminal needs to be registered on the cloud platform first; moreover, only after the device is registered to the cloud platform, the state of the device is changed, such as the device is on-line or off-line. However, it is worth mentioning that the online and offline of a device has no necessary relationship with the registration and the logoff of the device.
Further, in an embodiment of the application, if the subscription request includes an identifier of the user terminal and an identifier of a target user corresponding to the user terminal, or the subscription request includes an identifier of a target user corresponding to the user terminal, the cloud server may directly obtain the identifier of the target user according to the received subscription request, but if the subscription request includes the identifier of the user terminal but does not include the identifier of the target user corresponding to the user terminal, before the step S302 (the cloud server monitors the device and/or the device state belonging to the target user according to the received subscription request), the method may further include the following steps:
s402, the cloud server determines the identification of the target user corresponding to the user terminal according to the identification of the user terminal.
In the embodiment of the application, since the cloud server monitors the device under the target user on the premise that the cloud server already knows the identifier of the target user, if the subscription request sent by the user terminal does not carry the identifier of the target user, the cloud server may first determine the identifier of the user terminal sending the subscription request, and then determine the identifier of the target user by combining the correspondence between the identifier of the user terminal and the identifier of the target user, which is stored in the cloud platform.
It can be understood that, when the user terminal is registered in the cloud platform, the cloud server determines that the user terminal is stored in the cloud platform.
According to the equipment state monitoring method provided by the embodiment of the application, before the user terminal sends the subscription request to the cloud server, the fact that the user terminal corresponding to the target user is registered in the cloud platform is determined, and the premise is that the equipment and/or equipment state under the target user is monitored subsequently; when the subscription request comprises the identification of the user terminal but does not comprise the identification cloud server of the target user corresponding to the user terminal, the identification of the target user corresponding to the user terminal is determined according to the identification of the user terminal, so that the cloud server can be ensured to determine the target user to be monitored and equipment under the target user in time, and a foundation is laid for realizing the scheme.
Optionally, as can be seen from the foregoing analysis, in each embodiment of the present application, the subscription content corresponding to the subscription request is any one of the following: the device registration information, the device logout information, the device on-line information, the device off-line information and the device resource change information.
Optionally, a specific implementation of the foregoing S302 (the cloud server monitors the device and/or the device state belonging to the target user according to the received subscription request) is described below according to a difference of subscription contents corresponding to the subscription request.
For example, if the subscription content corresponding to the subscription request is device registration information or device deregistration information, the above S302 may be described by the embodiment shown in fig. 5, the embodiment shown in fig. 6, or the embodiment shown in fig. 7.
If the subscription content corresponding to the subscription request is device online information or device offline information, the above S302 may be described by the embodiment shown in fig. 8. If the subscription content corresponding to the subscription request is the device resource change information, the above S302 may be described by using the embodiment shown in fig. 9.
Exemplarily, fig. 5 is an interaction schematic diagram of a third embodiment of the device status monitoring method provided by the present application. In this embodiment, when the subscription content corresponding to the subscription request is device registration information or device logout information, as shown in fig. 5, the above S302 may be implemented by the following steps:
s501, monitoring account resources on the cloud platform according to the identification of the user terminal and/or the identification of the target user, and obtaining an account resource monitoring result.
In the embodiment of the application, since registration and/or deregistration of the device is managed by account resources (/ account resources) inside the cloud platform, after receiving a subscription request from the user terminal, the cloud server firstly determines a subscribed target user and then monitors the account resources on the cloud platform, that is, monitors device information change of the target user in the account resources, and obtains an account resource monitoring result corresponding to the target user.
S502, according to the account resource monitoring result, whether the equipment information of the target user in the account resource is changed or not is determined.
Optionally, the cloud server determines, based on the obtained account resource monitoring result, whether the device information belonging to the target user is changed, that is, determines whether a new device is added to the account resource or a device is deleted, so as to determine whether device change information needs to be pushed to the user terminal.
Accordingly, in an embodiment of the present application, the step S303 may be implemented by:
s503, when the device information belonging to the target user in the account resource is changed, generating a notification message for indicating the device change information belonging to the target user.
In the embodiment of the application, if the cloud server determines that the device information belonging to the target user in the account resources is changed, for example, a new device is added to the account resources or one or some device resources are deleted from the account resources, a notification message is generated, and the device change information belonging to the target user is indicated through the notification message.
According to the device state monitoring method provided by the embodiment of the application, the cloud server monitors the account resources on the cloud platform according to the identification of the user terminal and/or the identification of the target user to obtain the account resource monitoring result, further determines whether the device information belonging to the target user in the account resources is changed, and finally generates the notification message when the device information belonging to the target user in the account resources is changed, wherein the notification message is used for indicating the device change information belonging to the target user. In the scheme, the cloud server can determine and generate the notification message in time by monitoring the account resource when the equipment information belonging to the target user is changed, so that a foundation is laid for the timely pushing of subsequent messages.
Optionally, on the basis of the embodiment shown in fig. 5, fig. 6 is an interaction schematic diagram of a fourth embodiment of the device status monitoring method provided by the present application. Referring to fig. 6, when the subscription content corresponding to the subscription request is the device registration information, step S503 may be specifically implemented by the following steps:
s601, when a first device belonging to a target user is newly added in the account resource, generating a notification message, wherein the notification message is used for indicating that the first device belonging to the target user is successfully registered on the cloud platform.
In the embodiment of the application, when the user terminal subscribes to the device registration information, therefore, when the cloud server monitors (senses) that the first device belonging to the target user is newly added to the account resource, it indicates that the target user has a new device registered on the cloud platform, and thus a notification message is generated. In this embodiment, the specific meaning of the notification message is to indicate that the first device belonging to the target user is successfully registered on the cloud platform.
It may be understood that the first device in this embodiment does not indicate a sequence, and is only used to indicate a device that is newly registered on the cloud platform and belongs to the target user.
Optionally, when the cloud server determines that the first device is newly added to the target user, before that, an interaction process should be executed between the first device and the cloud platform, so that it is ensured that the first device is successfully registered on the cloud platform. In this embodiment, as shown in fig. 6, before the foregoing S501, the method further includes:
s600a, the cloud server receives a registration request sent by the first device.
Wherein the registration request includes: the identification of the first device, the identification of a target user to which the first device belongs and access token information.
In the embodiment of the application, for the device in the internet of things system, if the first device needs to be registered on the cloud platform, the user may control the first device to send a registration request to the cloud server, that is, the first device actively sends a modification request to the cloud server of the cloud platform to modify/account resources in the cloud platform, and accordingly, the cloud server may receive the registration request.
Optionally, in order to enable the cloud server to distinguish the registered device from the user to which the device belongs, the registration request sent by the first device needs to carry an identifier of the first device, an identifier of a target user to which the first device belongs, and access token information (accesstken). The access token information is used for verifying the first device and is used as a necessary parameter for modifying whether execution can be performed, and the cloud server responds to the access token information only when the registration request sent by the first device carries the access token information and the identity verification of the first device passes.
S600b, according to the access token information, adding a corresponding relation between the identification of the first device and the identification of the target user to which the first device belongs in the account resources.
In the embodiment of the application, when the cloud server determines that the registration request of the first device is legal according to the access token information, the cloud server may add information such as the ID of the target user, the ID of the first device, and the access token information to the/account resource, so as to add the correspondence between the identifier of the first device and the identifier of the target user to which the first device belongs to the account resource. Therefore, the cloud server can accurately and timely determine the registration of the new device by monitoring the account resources.
And S600c, feeding back a registration completion response to the first equipment.
When the cloud server determines that the first device is successfully registered to the cloud platform, a response message such as a registration completion response may be fed back to the first device to notify a result of the registration of the first device.
Further, in the embodiment of the present application, after the first device determines that it is successfully registered to the cloud platform, it may publish the resource that it allows to be discovered onto the cloud platform at a selected time, where the published resource may be a device attribute resource of the first device, etc./d resource. Optionally, when the published resource is successfully published to the cloud platform, the cloud server may further feed back a publication completion notification to the first device.
According to the device state monitoring method provided by the embodiment of the application, when the first device is successfully registered to the cloud platform, the cloud server can determine that the first device belonging to the target user is newly added to the account resources by monitoring the account resources, and generate the notification message to indicate that the first device belonging to the target user is successfully registered to the cloud platform. In the scheme, when monitoring that the device registration information of the target user changes, the cloud server can feed back the device registration information to the user terminal in time, so that the target user can obtain accurate device registration information, and the subsequent device control precision is improved.
Optionally, on the basis of the embodiment shown in fig. 5, fig. 7 is an interaction schematic diagram of a fifth embodiment of the device status monitoring method provided by the present application. Referring to fig. 7, when the subscription content corresponding to the subscription request is the device logout information, S503 may specifically be implemented by the following steps:
and S701, when the second equipment belonging to the target user is deleted from the account resource, generating a notification message, wherein the notification message is used for indicating that the second equipment belonging to the target user logs out from the cloud platform.
In the embodiment of the application, when the user terminal subscribes to the device logout information, therefore, when the cloud server monitors (senses) that the second device belonging to the target user is deleted from the account resource, it indicates that the second device of the target user is logged out from the cloud platform, so that a notification message is generated. In this embodiment, the specific meaning of the notification message is to indicate that the second device belonging to the target user has logged off the cloud platform.
It may be understood that, the second device in this embodiment also does not indicate a sequence, and is only used to indicate a device that belongs to a target user and is logged out from the cloud platform.
Optionally, when the cloud server determines that the target user has less second equipment, before that, an interaction procedure should be executed between the second equipment and the cloud platform, so as to ensure that the second equipment has logged off from the cloud platform. In this embodiment, as shown in fig. 7, before the foregoing S501, the method further includes:
s700a, the cloud server receives a logout request sent by the second device, where the logout request includes: the identification of the second device and the identification of the target user to which the second device belongs.
In the embodiment of the application, for a device that is registered on the cloud platform, if the second device needs to log off from the cloud platform, the user may control the second device to send a log-off request to the cloud server to request that the related resource information of the second device be deleted from the cloud platform, and correspondingly, the cloud server may receive the log-off request.
Optionally, in order to ensure that the cloud server logs out the correct device, the logout request sent by the second device carries the identifier of the second device and the identifier of the target user to which the second device belongs, so that the cloud server responds to the logout request according to the identifier of the second device and the identifier of the target user in the logout request.
S700b, according to the logout request, deleting the corresponding relation between the identifier of the second device and the identifier of the target user from the account resources of the cloud platform.
In the embodiment of the application, when the device is registered to the cloud platform, the cloud server adds the corresponding relationship between the identifier of the registered device and the identifier of the target user to which the registered device belongs to the account resource, so that when the second device needs to be logged off from the cloud platform, the corresponding relationship between the identifier of the second device and the identifier of the target user can be deleted from the account resource of the cloud platform, and thus the account resource on the cloud platform is changed. Therefore, the cloud server can accurately and timely sense the logout of the equipment by monitoring the account resources.
And S700c, feeding back a logout completion response to the second equipment.
When the cloud server determines that the second device has logged off from the cloud platform, a response message such as a logout completion response may be fed back to the second device to notify a result of the logout of the second device.
According to the device state monitoring method provided by the embodiment of the application, when the second device logs out from the cloud platform, the cloud server can determine that the second device belonging to the target user is deleted from the account resources by monitoring the account resources, and generates the notification message to indicate that the second device belonging to the target user has logged out from the cloud platform. In the scheme, when monitoring that the device logout information of the target user changes, the cloud server can feed back the device logout information to the user terminal in time, so that the target user can obtain accurate device information, and the control precision of subsequent devices is improved.
Fig. 8 is an interaction diagram of a sixth embodiment of the device status monitoring method provided by the present application. In this embodiment, when the subscription content corresponding to the subscription request is device online information or device offline information, as shown in fig. 8, the step S302 may be implemented by:
s801, according to the identification of the user terminal and/or the identification of the target user, session resources used for maintaining the equipment connection attribute information on the cloud platform are monitored, and a session resource monitoring result is obtained.
In the embodiment of the application, because connection attribute information (e.g., online and offline) of a device is managed by session resources (/ session resources) inside a cloud platform, and a relationship table between a device ID and a login state is maintained on the session resources, after receiving a subscription request from a user terminal, a cloud server first determines a subscribed target user and then monitors session resources on the cloud platform, that is, monitors a change in the login state of the device under the target user in the session resources, and obtains a session resource monitoring result corresponding to the target user.
Specifically, the cloud platform maintains the connection relationship between the cloud server and each device through/session resources; maintaining information such as DeviceID \ UserID \ Access token \ Login and the like in/session resources, wherein logic = true represents that the equipment is in an online state, and logic = false represents that the equipment is offline; and when the cloud server receives the subscription request of the equipment online information or the equipment offline information, starting to monitor/session resources to obtain a session resource monitoring result.
S802, according to the session resource monitoring result, whether the equipment connection information belonging to the target user changes is determined.
Optionally, the cloud server determines, based on the obtained session resource monitoring result, whether the device connection information belonging to the target user is changed, that is, determines whether there is a device that is changed from offline to online or from online to offline in all devices belonging to the target user, so as to determine whether device state change information needs to be pushed to the user terminal.
Accordingly, in an embodiment of the present application, the step S303 may be implemented by:
s803, when the device connection information belonging to the target user changes, a notification message is generated, the notification message indicating the device status change information belonging to the target user.
In an embodiment of the application, when the cloud server determines that there is a device that is changed from offline to online or from online to offline in all devices belonging to the target user, a notification message is generated to indicate device state change information belonging to the target user by using the notification message.
For example, in an embodiment of the present application, when the subscription content corresponding to the subscription request is the device on-line information, S803 may be implemented by the following steps:
s803a1, when there is a device whose value of the login attribute information changes from false to true in the device connection information belonging to the target user, determining the identities of all devices whose value of the login attribute information changes.
S803a2, generating a notification message according to the identifiers of all the devices whose values of the login attribute information have been changed, where the notification message is used to indicate that the device is changed from an offline state to an online state with respect to the cloud server.
Illustratively, after a certain device or devices belonging to the target user are online, they are represented on the corresponding logic attribute (= true); therefore, the value of the login attribute information of the device is changed from false to true, that is, the device is considered to be changed from an offline state to an online state relative to the cloud server, and then a notification message is generated and sent to the user terminal so as to notify the user terminal of the device online information of the target user.
For example, in another embodiment of the present application, when the subscription content corresponding to the subscription request is the device offline information, S803 may be implemented by the following steps:
s803b1, when the device which is changed from true to false in the login attribute information exists in the device connection information belonging to the target user, determining the identifiers of all devices of which the login attribute information values are changed;
and S803b2, generating a notification message according to the identifiers of all the devices of which the values of the login attribute information are changed, wherein the notification message is used for indicating that the devices are changed from the online state to the offline state relative to the cloud server.
Exemplarily, after a certain device or certain devices belonging to the target user are offline, the device or certain devices belonging to the target user are represented on the corresponding login attribute (= false); therefore, the value of the login attribute information of the device is changed from true to false, that is, the device is considered to be changed from the online state to the offline state relative to the cloud server, and a notification message is generated and sent to the user terminal, so as to notify the user terminal of the device offline information of the target user.
It should be noted that, in the embodiment of the present application, the device online information or the device offline information subscribed by the user terminal may be specific to all devices under the target user, or may be specific to a certain specific device under the target user, and implementation schemes of the two are similar, and are not described herein again.
According to the equipment state monitoring method provided by the embodiment of the application, conversation resources used for maintaining equipment connection attribute information on a cloud platform are monitored according to the identification of a user terminal and/or the identification of a target user, a conversation resource monitoring result is obtained, whether equipment connection information belonging to the target user changes or not is determined according to the conversation resource monitoring result, and when the equipment connection information belonging to the target user changes, a notification message is generated to indicate equipment state change information belonging to the target user. In the scheme, the cloud server can determine and generate the notification message in time by monitoring the session resource when the equipment state information belonging to the target user is changed, so that a foundation is laid for the timely pushing of the subsequent message.
Fig. 9 is an interaction schematic diagram of a seventh embodiment of the device status monitoring method provided by the present application. In this embodiment, when the subscription content corresponding to the subscription request is the device resource change information, as shown in fig. 9, the step S302 may be implemented by:
s901, determining resource release information of all devices under the target user on the cloud platform according to the identification of the user terminal and/or the identification of the target user.
In the embodiment of the application, after the device is registered to the cloud platform, the device may publish the resource on the cloud platform or may not publish the resource on the cloud platform, so that when the cloud server receives the subscription request of the device resource change information, it is first determined which devices under the target user publish the resource on the cloud platform and which devices do not publish the resource on the cloud platform, and then different resource change monitoring processes are executed for the devices with different determination results.
S902, for the device which has released the resource on the cloud platform under the target user, monitoring the released resource of the device.
In the embodiment of the application, if the devices under the target user publish the resources on the cloud platform, the resource change of the published resources of the devices on the cloud platform is subscribed, and correspondingly, whether the resources change is generated or not is judged by monitoring the published resources of the devices.
S903, when the target user is the equipment which does not release the resources on the cloud platform, monitoring the subscribeable resources of the equipment.
In the embodiment of the application, if the devices under the target user do not publish resources on the cloud platform, the devices subscribe to the resources, that is, a subscription request is sent to the devices through the cloud server to subscribe to the resource change of the devices, and whether the devices feed back the resource change information is monitored.
Optionally, in an embodiment of the present application, the S903 may be implemented by:
a1, sending a resource change subscription request to the device, where the resource change subscription request is used to request to feed back resource change information to the cloud server when the subscribeable resource of the device changes.
And A2, receiving the resource change information sent by the equipment to obtain the resource change information of the subscribeable resource of the equipment.
Optionally, if the cloud server wants to timely know the resource change condition of the device that does not publish resources on the cloud platform under the target user, the cloud server may send a resource change subscription request to the device, so that when the subscrible resources of the device are changed, the device may send resource change information to the cloud server, and thus the cloud server may obtain the resource change information of the subscrible resources of the device according to the received resource change information, thereby timely discovering the resource change condition of the device.
Accordingly, in an embodiment of the present application, the step S303 may be implemented by:
s904, when the published resource changes and/or the resource which can be subscribed by at least one device changes, the device identification which has changed resource and the resource change information corresponding to the device identification are determined.
For example, on the basis of the above S902 or S903, if the cloud server determines that the published resource has changed by monitoring the published resource on the cloud platform, it determines the device identifier corresponding to the published resource and the resource change information corresponding to the device identifier. If the cloud server subscribes the change information prompt of the subscribeable resource of the device, the resource change information of the subscribeable resource of the device can be determined by receiving the resource change information fed back by the device, and then the device identifier corresponding to the subscribeable resource and the resource change information corresponding to the subscribeable resource are determined.
S905, generating a notification message according to the equipment identifier with the resource change and the resource change information corresponding to the equipment identifier.
In the embodiment of the application, when the cloud server determines, through the above steps S902 to S904, the device identifier with the resource change and the resource change information corresponding to the device identifier, the cloud server may include the device identifier with the resource change and the resource change information corresponding to the device identifier in one message, so as to obtain the notification message.
It should be noted that, in the embodiment of the present application, the subscription of the device resource change information may be directed to all devices of the target user, or may be directed to a specific device of the target user, and implementation schemes of the two devices are similar, and are not described herein again.
According to the equipment state monitoring method provided by the embodiment of the application, the resource publishing information of all equipment under a target user on the cloud platform is determined according to the identification of the user terminal and/or the identification of the target user, the published resources of the equipment are monitored for the equipment which has published the resources under the target user on the cloud platform, the subscribeable resources of the equipment are monitored for the equipment which has not published the resources under the target user on the cloud platform, and then the equipment identification with the resource change and the resource change information corresponding to the equipment identification are determined when the resources published and/or the subscribeable resources of at least one equipment change, and further a notification message is generated. In the technical scheme, the user terminal subscribes the resource change information of the equipment, so that the cloud server can feed back the resource change information of the equipment to the user terminal when monitoring that the resource information of the equipment changes, and the user terminal can timely know the resource change of each equipment, thereby laying a foundation for subsequently improving the control precision of the equipment.
In the above, a specific implementation of the device status monitoring method mentioned in the embodiment of the present application is introduced, and the following is an embodiment of an apparatus of the present application, which may be used to implement the embodiment of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Fig. 10 is a schematic structural diagram of a first device status monitoring apparatus provided in the present application. The device can be integrated in a user terminal or realized by the user terminal. As shown in fig. 10, the apparatus may include: a transmitting module 1001 and a receiving module 1002.
The sending module 1001 is configured to send a subscription request to a cloud server, where the subscription request is used to instruct the cloud server to feed back change information to a user terminal corresponding to a target user when monitoring that a device belonging to the target user and/or a device state change;
the receiving module 1002 is configured to receive a notification message from the cloud server, where the notification message includes: change information of devices and/or device states belonging to the target user.
Optionally, the subscription content corresponding to the subscription request is any one of the following:
the device registration information, the device logout information, the device online information, the device offline information and the device resource change information.
As an example, the uniform resource identifier of the subscription request is used to represent subscription content corresponding to the subscription request.
As another example, the uniform resource identifier of the subscription request is used to indicate a subscription object and subscription content corresponding to the subscription request.
Optionally, the subscription object corresponding to the subscription request is any one of the following objects:
all devices belonging to the target user, one device set belonging to the target user, one device belonging to the target user.
In one possible design of the present application, the apparatus further includes: and a processing module 1003.
The processing module 1003 is configured to determine that the user terminal corresponding to the target user is registered in the cloud platform before the sending module 1001 sends the subscription request to the cloud server.
The apparatus provided in this embodiment is configured to execute the technical solutions of the user terminal in the embodiments shown in fig. 3 to fig. 9, and the implementation principles and technical effects are similar, which are not described herein again.
Fig. 11 is a schematic structural diagram of a second device status monitoring apparatus according to an embodiment of the present disclosure. The device can be integrated in a cloud server and can also be realized by the cloud server. As shown in fig. 11, the apparatus may include: a receiving module 1101, a processing module 1102 and a sending module 1103.
The receiving module 1101 is configured to receive a subscription request sent by a user terminal, where the subscription request includes: the identifier of the user terminal and/or the identifier of a target user corresponding to the user terminal;
a processing module 1102, configured to monitor, according to the subscription request, a device and/or a device state belonging to the target user;
a sending module 1103, configured to send a notification message to the ue when the device and/or the device state belonging to the target user is changed, where the notification message includes: change information of devices and/or device states belonging to the target user.
Optionally, the subscription content corresponding to the subscription request is any one of the following:
the device registration information, the device logout information, the device online information, the device offline information and the device resource change information.
As an example, the uniform resource identifier of the subscription request is used to represent subscription content corresponding to the subscription request.
As another example, the uniform resource identifier of the subscription request is used to indicate a subscription object and subscription content corresponding to the subscription request.
Optionally, the subscription object corresponding to the subscription request is any one of the following objects:
all devices belonging to the target user, one device set belonging to the target user, one device belonging to the target user.
In a possible design of the present application, when the subscription request includes the identifier of the user terminal but does not include the identifier of the target user corresponding to the user terminal, the processing module 1102 is further configured to determine the identifier of the target user corresponding to the user terminal according to the identifier of the user terminal.
In another possible design of the present application, the subscription content corresponding to the subscription request is device registration information or device deregistration information;
in this possible design, the processing module 1102 is specifically configured to:
monitoring account resources on a cloud platform according to the identification of the user terminal and/or the identification of the target user to obtain an account resource monitoring result;
determining whether the equipment information belonging to the target user in the account resources is changed or not according to the account resource monitoring result;
and when the device information belonging to the target user in the account resource is changed, generating the notification message, wherein the notification message is used for indicating the device change information belonging to the target user.
As an example, when the subscription content corresponding to the subscription request is device registration information, the processing module 1102 is configured to generate the notification message when device information belonging to the target user in the account resource is changed, specifically:
the processing module 1102 is specifically configured to generate the notification message when a first device belonging to the target user is newly added to the account resource, where the notification message is used to indicate that the first device belonging to the target user is successfully registered on the cloud platform.
In this example, the receiving module 1101 is further configured to receive a registration request sent by the first device before the processing module 1102 monitors an account resource on the cloud platform according to the identifier of the user terminal and/or the identifier of the target user to obtain a monitoring result, where the registration request includes: the identification of the first equipment, the identification of a target user to which the first equipment belongs and access token information;
correspondingly, the processing module 1102 is further configured to add, according to the access token information, a corresponding relationship between the identifier of the first device and the identifier of the target user to which the first device belongs to the account resource;
the sending module 1103 is further configured to feed back a registration completion response to the first device.
As another example, when the subscription content corresponding to the subscription request is device logout information, the processing module 1102 is configured to generate the notification message when device information belonging to the target user in the account resource is changed, specifically:
the processing module 1102 is specifically configured to generate the notification message when the second device belonging to the target user is deleted from the account resource, where the notification message is used to indicate that the second device belonging to the target user has logged off from the cloud platform.
In this example, the receiving module 1101 is further configured to receive, before the processing module 1102 monitors an account resource on the cloud platform according to the identifier of the user terminal and/or the identifier of the target user to obtain a monitoring result, a logout request sent by the second device, where the logout request includes: the identifier of the second device and the identifier of a target user to which the second device belongs;
correspondingly, the processing module 1102 is further configured to delete, according to the logout request, a corresponding relationship between the identifier of the second device and the identifier of the target user from the account resource of the cloud platform;
the sending module 1103 is further configured to feed back a logout completion response to the second device.
In another possible design of the present application, the subscription content corresponding to the subscription request is device online information or device offline information;
correspondingly, the processing module 1102 is specifically configured to:
monitoring session resources used for maintaining equipment connection attribute information on the cloud platform according to the identification of the user terminal and/or the identification of the target user to obtain session resource monitoring results;
determining whether the equipment connection information belonging to the target user changes according to the session resource monitoring result;
and when the equipment connection information belonging to the target user changes, generating the notification message, wherein the notification message is used for indicating the equipment state change information belonging to the target user.
As an example, when the subscription content corresponding to the subscription request is device on-line information, the processing module 1102 is configured to generate the notification message when device connection information belonging to the target user changes, specifically:
the processing module 1102 is specifically configured to, when there is a device whose value of the login attribute information is changed from false to true in the device connection information belonging to the target user, determine identifiers of all devices whose values of the login attribute information are changed, and generate the notification message according to the identifiers of all devices whose values of the login attribute information are changed, where the notification message is used to indicate that the device is changed from an offline state to an online state with respect to the cloud server.
As another example, when the subscription content corresponding to the subscription request is device offline information, the processing module 1102 is configured to generate the notification message when device connection information belonging to the target user changes, specifically:
the processing module 1102 is specifically configured to, when there is a device whose value of the login attribute information changes from true to false in the device connection information belonging to the target user, determine identifiers of all devices whose values of the login attribute information change, and generate the notification message according to the identifiers of all devices whose values of the login attribute information change, where the notification message is used to indicate that the device changes from an online state to an offline state with respect to the cloud server.
In another possible design of the present application, the subscription content corresponding to the subscription request is device resource change information;
correspondingly, the processing module 1102 is specifically configured to:
determining resource release information of all equipment under the target user on the cloud platform according to the identification of the user terminal and/or the identification of the target user;
for the device which has released the resources on the cloud platform under the target user, monitoring the released resources of the device;
monitoring a resource which can be subscribed of the device when the device of the target user does not publish the resource on the cloud platform;
when the published resource changes and/or the subscribeable resource of the at least one device changes, determining a device identifier of which the resource changes and resource change information corresponding to the device identifier;
and generating the notification message according to the equipment identifier with the resource change and the resource change information corresponding to the equipment identifier.
In this possible design, the processing module 1102 is configured to, for a device that does not publish resources on the cloud platform under the target user, monitor a resource that can be subscribed to the device, specifically:
a processing module 1102, configured to send a resource change subscription request to the device through a sending module 1103, where the resource change subscription request is used to request that resource change information is fed back to the cloud server when a resource that can be subscribed to the device changes, and receive the resource change information sent by the device through a receiving module 1101, so as to obtain the resource change information of the resource that can be subscribed to the device.
The apparatus provided in this embodiment is configured to execute the technical solutions of the cloud server in the embodiments shown in fig. 3 to fig. 9, and the implementation principles and technical effects are similar, which are not described herein again.
It should be noted that the division of the modules of the above apparatus is only a logical division, and the actual implementation may be wholly or partially integrated into one physical entity, or may be physically separated. And these modules can all be implemented in the form of software invoked by a processing element; or can be implemented in the form of hardware; and part of the modules can be realized in the form of calling software by the processing element, and part of the modules can be realized in the form of hardware. For example, the processing module may be a separate processing element, or may be integrated into a chip of the apparatus, or may be stored in a memory of the apparatus in the form of program code, and a processing element of the apparatus calls and executes the functions of the above determination module. The other modules are implemented similarly. In addition, all or part of the modules can be integrated together or can be independently realized. The processing element described herein may be an integrated circuit having signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.
For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when some of the above modules are implemented in the form of a processing element scheduler code, the processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor that can call program code. As another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), among others.
Fig. 12 is a block diagram of a user terminal for implementing the device status monitoring method provided in the present application. As shown in fig. 12, the user terminal may include: a processor 1201, a memory 1202, a transceiver 1203, and an interface 1204 for communicating with other devices. In this embodiment, the other device may be a cloud server or an internet of things device.
Wherein memory 1202 stores computer-executable instructions;
the processor 1201 executes the computer execution instructions stored in the memory 1202, so that the processor 1201 executes the technical solution of the user terminal side in any of the foregoing method embodiments.
Fig. 13 is a block diagram of a cloud server for implementing a device status monitoring method provided in the present application. As shown in fig. 13, the cloud server may include: a processor 1301, a memory 1302, a transceiver 1303, and an interface 1304 to communicate with other devices. In this embodiment, the other device may be a user terminal or an internet of things device.
Wherein the memory 1302 stores computer-executable instructions;
the processor 1301 executes the computer execution instructions stored in the memory 1302, so that the processor 1301 executes the technical solution of the cloud server side in any of the method embodiments.
The present application further provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, the computer-readable storage medium is configured to implement a technical solution at a user terminal side in any of the foregoing method embodiments.
The application also provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, the computer-readable storage medium is used for implementing the technical solution on the cloud server side in any one of the foregoing method embodiments.
The embodiment of the present application further provides a program, and when the program is executed by a processor, the program is configured to execute the technical solution at the user terminal side in the foregoing method embodiment.
The embodiment of the present application further provides a program, and when the program is executed by a processor, the program is configured to execute the technical solution on the cloud server side in the foregoing method embodiment.
The embodiment of the present application further provides a computer program product, which includes program instructions, where the program instructions are used to implement the technical solution at the user terminal side in the foregoing method embodiment.
The embodiment of the present application further provides a computer program product, which includes program instructions, where the program instructions are used to implement the technical scheme of the cloud server side in the foregoing method embodiment.
An embodiment of the present application further provides a chip, including: a processing module and a communication interface, wherein the processing module can execute the technical scheme of the user terminal in the method embodiment.
Further, the chip further includes a storage module (e.g., a memory), where the storage module is configured to store instructions, and the processing module is configured to execute the instructions stored in the storage module, and the execution of the instructions stored in the storage module causes the processing module to execute the technical solution on the user terminal side.
An embodiment of the present application further provides a chip, including: the processing module and the communication interface can execute the technical scheme of the cloud server side in the method embodiment.
Further, the chip further includes a storage module (e.g., a memory), where the storage module is configured to store instructions, and the processing module is configured to execute the instructions stored by the storage module, and the execution of the instructions stored in the storage module causes the processing module to execute the technical solution on the cloud server side.
In the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship; in the formula, the character "/" indicates that the preceding and following related objects are in a relationship of "division". "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or multiple.
It is to be understood that the various numerical references referred to in the embodiments of the present application are merely for descriptive convenience and are not intended to limit the scope of the embodiments of the present application. In the embodiment of the present application, the sequence numbers of the above-mentioned processes do not mean the sequence of execution, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiment of the present application.

Claims (48)

  1. An apparatus condition monitoring method, comprising:
    sending a subscription request to a cloud server, wherein the subscription request is used for indicating the cloud server to feed back change information to a user terminal corresponding to a target user when monitoring that equipment belonging to the target user and/or equipment state are changed;
    receiving a notification message from the cloud server, the notification message including: change information of devices and/or device states belonging to the target user.
  2. The method according to claim 1, wherein the subscription content corresponding to the subscription request is any one of:
    the device registration information, the device logout information, the device on-line information, the device off-line information and the device resource change information.
  3. The method according to claim 1 or 2, wherein the uniform resource identifier of the subscription request is used to represent subscription content corresponding to the subscription request.
  4. The method according to claim 1 or 2, wherein the uniform resource identifier of the subscription request is used to represent a subscription object and subscription content corresponding to the subscription request.
  5. The method according to any one of claims 1 to 4, wherein the subscription object corresponding to the subscription request is any one of:
    all devices belonging to the target user, one device set belonging to the target user, one device belonging to the target user.
  6. The method of any of claims 1-5, wherein prior to said sending a subscription request to a cloud server, the method further comprises:
    and determining that the user terminal corresponding to the target user is registered in the cloud platform.
  7. An apparatus condition monitoring method, comprising:
    receiving a subscription request sent by a user terminal, wherein the subscription request comprises: the identifier of the user terminal and/or the identifier of a target user corresponding to the user terminal;
    monitoring equipment and/or equipment states belonging to the target user according to the subscription request;
    when the device and/or the device state belonging to the target user is changed, sending a notification message to the user terminal, wherein the notification message comprises: change information of devices and/or device states belonging to the target user.
  8. The method according to claim 7, wherein the subscription content corresponding to the subscription request is any one of:
    the device registration information, the device logout information, the device on-line information, the device off-line information and the device resource change information.
  9. The method according to claim 7 or 8, wherein the uniform resource identifier of the subscription request is used to represent subscription content corresponding to the subscription request.
  10. The method according to claim 7 or 8, wherein the uniform resource identifier of the subscription request is used to represent a subscription object and subscription content corresponding to the subscription request.
  11. The method according to any one of claims 7 to 10, wherein the subscription object corresponding to the subscription request is any one of:
    all devices belonging to the target user, one device set belonging to the target user, one device belonging to the target user.
  12. The method according to any of claims 7-11, wherein when the subscription request includes the identity of the user terminal but does not include the identity of the target user corresponding to the user terminal, the method further comprises:
    and determining the identification of the target user corresponding to the user terminal according to the identification of the user terminal.
  13. The method according to any one of claims 7 to 12, wherein when the subscription content corresponding to the subscription request is device registration information or device deregistration information, said monitoring the device and/or the device status belonging to the target user according to the subscription request comprises:
    monitoring account resources on a cloud platform according to the identification of the user terminal and/or the identification of the target user to obtain an account resource monitoring result;
    determining whether the equipment information belonging to the target user in the account resources is changed or not according to the account resource monitoring result;
    and when the device information belonging to the target user in the account resource is changed, generating the notification message, wherein the notification message is used for indicating the device change information belonging to the target user.
  14. The method according to claim 13, wherein when the subscription content corresponding to the subscription request is device registration information, and when device information belonging to the target user in the account resource is changed, generating the notification message includes:
    when a first device belonging to the target user is newly added in the account resource, generating the notification message, wherein the notification message is used for indicating that the first device belonging to the target user is successfully registered on a cloud platform.
  15. The method according to claim 14, wherein before the monitoring account resources on the cloud platform according to the identifier of the user terminal and/or the identifier of the target user, and obtaining a monitoring result, the method further comprises:
    receiving a registration request sent by the first device, where the registration request includes: the identification of the first equipment, the identification of a target user to which the first equipment belongs and access token information;
    according to the access token information, adding a corresponding relation between the identifier of the first equipment and the identifier of a target user to which the first equipment belongs in the account resource;
    and feeding back a registration completion response to the first equipment.
  16. The method of claim 13, wherein when the subscription content corresponding to the subscription request is device logout information, and when device information belonging to the target user in the account resource is changed, generating the notification message comprises:
    when the second device belonging to the target user is deleted from the account resource, generating the notification message, wherein the notification message is used for indicating that the second device belonging to the target user logs out from the cloud platform.
  17. The method according to claim 16, wherein before the monitoring account resources on the cloud platform according to the identifier of the user terminal and/or the identifier of the target user, and obtaining a monitoring result, the method further comprises:
    receiving a logout request sent by the second device, wherein the logout request comprises: the identifier of the second device and the identifier of a target user to which the second device belongs;
    according to the logout request, deleting the corresponding relation between the identifier of the second device and the identifier of the target user from the account resource of the cloud platform;
    and feeding back a logout completion response to the second equipment.
  18. The method according to any one of claims 7 to 12, wherein when the subscription content corresponding to the subscription request is device online information or device offline information, the monitoring, according to the subscription request, a device and/or a device state belonging to the target user includes:
    monitoring session resources used for maintaining equipment connection attribute information on the cloud platform according to the identification of the user terminal and/or the identification of the target user to obtain a session resource monitoring result;
    determining whether the equipment connection information belonging to the target user changes according to the session resource monitoring result;
    and when the device connection information belonging to the target user changes, generating the notification message, wherein the notification message is used for indicating the device state change information belonging to the target user.
  19. The method according to claim 18, wherein when the subscription content corresponding to the subscription request is device on-line information, and when device connection information belonging to the target user changes, generating the notification message comprises:
    when equipment with the value of the login attribute information changed from false to true exists in the equipment connection information belonging to the target user, determining the identifiers of all equipment with the value of the login attribute information changed;
    and generating the notification message according to the identifiers of all the devices of which the values of the login attribute information are changed, wherein the notification message is used for indicating that the devices are changed from an offline state to an online state relative to the cloud server.
  20. The method according to claim 18, wherein when the subscription content corresponding to the subscription request is device offline information, and when device connection information belonging to the target user changes, generating the notification message includes:
    when equipment of which the value of the login attribute information is changed from true to false exists in the equipment connection information belonging to the target user, determining the identifiers of all equipment of which the value of the login attribute information is changed;
    and generating the notification message according to the identifiers of all the devices of which the values of the login attribute information are changed, wherein the notification message is used for indicating that the devices are changed from the online state to the offline state relative to the cloud server.
  21. The method according to any one of claims 7 to 12, wherein when the subscription content corresponding to the subscription request is device resource change information, the monitoring a device and/or a device state belonging to the target user according to the subscription request includes:
    determining resource release information of all equipment under the target user on the cloud platform according to the identification of the user terminal and/or the identification of the target user;
    for the device which has released the resource on the cloud platform under the target user, monitoring the released resource of the device;
    monitoring a resource which can be subscribed of the device when the device of the target user does not publish the resource on the cloud platform;
    when the published resource changes and/or the subscribeable resource of the at least one device changes, determining a device identifier of which the resource changes and resource change information corresponding to the device identifier;
    and generating the notification message according to the equipment identifier with the resource change and the resource change information corresponding to the equipment identifier.
  22. The method of claim 21, wherein monitoring the subscribeable resource of the device when the device under the target user does not publish the resource on the cloud platform comprises:
    sending a resource change subscription request to the device, where the resource change subscription request is used to request to feed back resource change information to the cloud server when the subscrible resource of the device changes;
    and obtaining resource change information of the subscribeable resource of the equipment by receiving the resource change information sent by the equipment.
  23. An apparatus condition monitoring device, comprising: a transmitting module and a receiving module;
    the sending module is used for sending a subscription request to a cloud server, wherein the subscription request is used for indicating the cloud server to feed back change information to a user terminal corresponding to a target user when monitoring that the equipment belonging to the target user and/or the equipment state are changed;
    the receiving module is configured to receive a notification message from the cloud server, where the notification message includes: change information of devices and/or device states belonging to the target user.
  24. The apparatus of claim 23, wherein the subscription content corresponding to the subscription request is any one of:
    the device registration information, the device logout information, the device online information, the device offline information and the device resource change information.
  25. The apparatus according to claim 23 or 24, wherein a uniform resource identifier of the subscription request is used to indicate subscription content corresponding to the subscription request.
  26. The apparatus according to claim 23 or 24, wherein the uniform resource identifier of the subscription request is used to represent a subscription object and subscription content corresponding to the subscription request.
  27. The apparatus according to any one of claims 23 to 26, wherein the subscription object corresponding to the subscription request is any one of:
    all devices belonging to the target user, one device set belonging to the target user, one device belonging to the target user.
  28. The apparatus of any one of claims 23-27, further comprising: a processing module;
    the processing module is configured to determine that the user terminal corresponding to the target user is registered in the cloud platform before the sending module sends the subscription request to the cloud server.
  29. An apparatus condition monitoring device, comprising: the device comprises a receiving module, a processing module and a sending module;
    the receiving module is configured to receive a subscription request sent by a user terminal, where the subscription request includes: the identifier of the user terminal and/or the identifier of a target user corresponding to the user terminal;
    the processing module is used for monitoring the equipment and/or the equipment state belonging to the target user according to the subscription request;
    the sending module is configured to send a notification message to the user terminal when the device and/or the device state belonging to the target user is changed, where the notification message includes: change information of devices and/or device states belonging to the target user.
  30. The apparatus of claim 29, wherein the subscription request corresponds to subscription content that is any one of:
    the device registration information, the device logout information, the device online information, the device offline information and the device resource change information.
  31. The apparatus according to claim 29 or 30, wherein the uniform resource identifier of the subscription request is used to indicate the subscription content corresponding to the subscription request.
  32. The apparatus according to claim 29 or 30, wherein the uniform resource identifier of the subscription request is used to represent a subscription object and subscription content corresponding to the subscription request.
  33. The apparatus according to any one of claims 29 to 32, wherein the subscription object corresponding to the subscription request is any one of:
    all devices belonging to the target user, one device set belonging to the target user, one device belonging to the target user.
  34. The apparatus of any one of claims 29 to 33, wherein when the subscription request includes the identity of the user terminal but does not include the identity of the target user corresponding to the user terminal, the processing module is further configured to determine the identity of the target user corresponding to the user terminal according to the identity of the user terminal.
  35. The apparatus according to any one of claims 29-34, wherein the subscription request corresponds to subscription content that is device registration information or device deregistration information;
    the processing module is specifically configured to:
    monitoring account resources on a cloud platform according to the identification of the user terminal and/or the identification of the target user to obtain an account resource monitoring result;
    determining whether the equipment information belonging to the target user in the account resources is changed or not according to the account resource monitoring result;
    and when the device information belonging to the target user in the account resource is changed, generating the notification message, wherein the notification message is used for indicating the device change information belonging to the target user.
  36. The apparatus according to claim 35, wherein when the subscription content corresponding to the subscription request is device registration information, the processing module is configured to generate the notification message when device information belonging to the target user in the account resource is changed, specifically:
    the processing module is specifically configured to generate the notification message when a first device that belongs to the target user is newly added to the account resource, where the notification message is used to indicate that the first device that belongs to the target user is successfully registered on a cloud platform.
  37. The apparatus according to claim 36, wherein the receiving module is further configured to receive a registration request sent by the first device before the processing module monitors account resources on the cloud platform according to the identifier of the user terminal and/or the identifier of the target user and obtains a monitoring result, where the registration request includes: the identification of the first equipment, the identification of a target user to which the first equipment belongs and access token information;
    the processing module is further configured to add, according to the access token information, a correspondence between the identifier of the first device and an identifier of a target user to which the first device belongs to the account resource;
    the sending module is further configured to feed back a registration completion response to the first device.
  38. The apparatus according to claim 35, wherein when the subscription content corresponding to the subscription request is device logout information, the processing module is configured to generate the notification message when device information belonging to the target user in the account resource is changed, specifically:
    the processing module is specifically configured to generate the notification message when the second device belonging to the target user is deleted from the account resource, where the notification message is used to indicate that the second device belonging to the target user has logged off from the cloud platform.
  39. The apparatus according to claim 38, wherein the receiving module is further configured to receive, before the processing module monitors account resources on the cloud platform according to the identifier of the user terminal and/or the identifier of the target user to obtain a monitoring result, a logout request sent by the second device, where the logout request includes: the identifier of the second device and the identifier of a target user to which the second device belongs;
    the processing module is further configured to delete, according to the logout request, a correspondence between the identifier of the second device and the identifier of the target user from the account resource of the cloud platform;
    the sending module is further configured to feed back a logout completion response to the second device.
  40. The apparatus according to any one of claims 29 to 34, wherein the subscription content corresponding to the subscription request is device online information or device offline information;
    the processing module is specifically configured to:
    monitoring session resources used for maintaining equipment connection attribute information on the cloud platform according to the identification of the user terminal and/or the identification of the target user to obtain session resource monitoring results;
    determining whether the equipment connection information belonging to the target user changes according to the session resource monitoring result;
    and when the device connection information belonging to the target user changes, generating the notification message, wherein the notification message is used for indicating the device state change information belonging to the target user.
  41. The apparatus according to claim 40, wherein when the subscription content corresponding to the subscription request is device on-line information, the processing module is configured to generate the notification message when device connection information belonging to the target user changes, specifically:
    the processing module is specifically configured to, when there is a device whose value of the login attribute information changes from false to true in the device connection information belonging to the target user, determine identifiers of all devices whose values of the login attribute information change, and generate the notification message according to the identifiers of all devices whose values of the login attribute information change, where the notification message is used to indicate that the device changes from an offline state to an online state with respect to the cloud server.
  42. The apparatus according to claim 40, wherein when the subscription content corresponding to the subscription request is device offline information, the processing module is configured to generate the notification message when device connection information belonging to the target user changes, specifically:
    the processing module is specifically configured to, when there is a device whose value of the login attribute information changes from true to false in the device connection information belonging to the target user, determine identifiers of all devices whose values of the login attribute information change, and generate the notification message according to the identifiers of all devices whose values of the login attribute information change, where the notification message is used to indicate that the device changes from an online state to an offline state with respect to the cloud server.
  43. The apparatus according to any one of claims 29-34, wherein the subscription content corresponding to the subscription request is device resource change information;
    the processing module is specifically configured to:
    determining resource release information of all equipment under the target user on the cloud platform according to the identification of the user terminal and/or the identification of the target user;
    for the device which has released the resources on the cloud platform under the target user, monitoring the released resources of the device;
    monitoring a resource which can be subscribed of the device when the device of the target user does not publish the resource on the cloud platform;
    when the published resource changes and/or the subscribeable resource of the at least one device changes, determining a device identifier of which the resource changes and resource change information corresponding to the device identifier;
    and generating the notification message according to the equipment identifier with the resource change and the resource change information corresponding to the equipment identifier.
  44. The apparatus according to claim 43, wherein the processing module is configured to, for a device that does not publish resources on the cloud platform under the target user, monitor a resource that can be subscribed to the device, specifically:
    the processing module is configured to send a resource change subscription request to the device through the sending module, where the resource change subscription request is used to request that resource change information is fed back to the cloud server when a resource that can be subscribed to the device changes, and receive the resource change information sent by the device through the receiving module, so as to obtain the resource change information of the resource that can be subscribed to the device.
  45. A user terminal, comprising:
    a processor, a memory, a transceiver, and an interface to communicate with a cloud server;
    the memory stores computer instructions;
    the processor executes the computer instructions stored by the memory, causing the processor to perform the method of any of claims 1-6.
  46. A cloud server, comprising:
    a processor, a memory, a transceiver, and an interface to communicate with other devices;
    the memory stores computer instructions;
    the processor executing the computer instructions stored by the memory causes the processor to perform the method of any of claims 7-22.
  47. A computer-readable storage medium having stored thereon computer instructions for implementing the method of any one of claims 1-6 when executed by a processor.
  48. A computer-readable storage medium having stored thereon computer instructions for implementing the method of any one of claims 7-22 when executed by a processor.
CN202080099658.6A 2020-05-18 2020-05-18 Equipment state monitoring method, device, equipment and storage medium Pending CN115380256A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/090874 WO2021232197A1 (en) 2020-05-18 2020-05-18 Method and apparatus for monitoring device state, device, and storage medium

Publications (1)

Publication Number Publication Date
CN115380256A true CN115380256A (en) 2022-11-22

Family

ID=78708985

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202080099658.6A Pending CN115380256A (en) 2020-05-18 2020-05-18 Equipment state monitoring method, device, equipment and storage medium

Country Status (2)

Country Link
CN (1) CN115380256A (en)
WO (1) WO2021232197A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114301962A (en) * 2021-11-26 2022-04-08 杭州中恒电气股份有限公司 Charging pile communication method and system based on Internet of things cloud platform
CN114416389B (en) * 2021-12-01 2023-03-03 荣耀终端有限公司 Activity identification method and related equipment
WO2023141834A1 (en) * 2022-01-26 2023-08-03 Oppo广东移动通信有限公司 Model performance monitoring method and apparatus, and device and medium
CN114520827B (en) * 2022-02-16 2024-05-10 广东美房智高机器人有限公司 Message receiving method, pushing method, system and medium
CN114924806B (en) * 2022-04-07 2024-03-26 南京慧尔视软件科技有限公司 Dynamic synchronization method, device, equipment and medium for configuration information
WO2024040390A1 (en) * 2022-08-22 2024-02-29 Oppo广东移动通信有限公司 Method and apparatus for device logout

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8635373B1 (en) * 2012-09-22 2014-01-21 Nest Labs, Inc. Subscription-Notification mechanisms for synchronization of distributed states
CN106169967A (en) * 2016-07-14 2016-11-30 美的集团股份有限公司 A kind of subscription client, household electrical appliance and control method thereof
CN108600295A (en) * 2018-02-28 2018-09-28 青岛海尔科技有限公司 A kind of method, equipment and medium for realizing status information of equipment notice
CN110716439A (en) * 2019-10-21 2020-01-21 合肥美的电冰箱有限公司 Household appliance state synchronization method, household appliance and medium

Also Published As

Publication number Publication date
WO2021232197A1 (en) 2021-11-25

Similar Documents

Publication Publication Date Title
CN115380256A (en) Equipment state monitoring method, device, equipment and storage medium
EP3057281B1 (en) M2m application remote registration method, device, system and storage medium
CN109089168B (en) Video sharing method, device and system and storage medium
US9407492B2 (en) System and method for enabling control of mobile device functional components
US8738688B2 (en) System and method for enabling control of mobile device functional components
US10015684B2 (en) Method and apparatus for managing specific resource in wireless communication system
CN112188444A (en) Method and device for subscribing service
KR20180082555A (en) Cross-resource subscription to the M2M service layer
KR20230016034A (en) Automated service enrollment in a machine-to-machine communications network
US20220141311A1 (en) Resource subscription method, device and server, and computer storage medium
KR101705279B1 (en) Server and method for providing device management service and device to be provided the service
US10834559B2 (en) Information processing method for machine-to-machine/man (M2M) application, common services entity (CSE) and application entity (AE)
US9876858B2 (en) System, device and method for configuring a connection in a machine to machine environment
KR20110053819A (en) Method and apparatus for providing pair play service
JPWO2010044471A1 (en) Service providing system and service providing method
EP3831038B1 (en) Automated relationship management of service layer entities in a communications network
US9374710B2 (en) Mediation server, control method therefor, communication device, control method therefor, communication system, and computer program
CN107950005B (en) Service element host selection
CN103563298A (en) Method and system for managing contact information in universal plug and play home network environment
KR102423812B1 (en) Enabling stable decentralized M2M/IoT services
KR20220146557A (en) Network Monitoring at the Service Enabler Architecture Layer (SEAL)
JP2016220075A (en) Call history share server, call history sharing method and call history sharing program
CN111937013B (en) Electronic device management
US10659938B2 (en) Registration method and communication method for application dedicated node (ADN), and nodes
US20220124008A1 (en) Automated Service Layer Message Flow Management In A Communications Network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination