IP Library Granted Patent US 11,496,564
Granted Patent B2
US 11,496,564 · App. 17/075,437 · Granted Nov 8, 2022

Device state synchronization method and common capability component

Inventor: Jiaxin Yin (Nanjing, CN)
Assignee: Huawei Cloud Computing Technologies Co., Ltd.
H04L67/1095G06F9/448G06F9/5011
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,496,564
App. No.
17/075,437
Granted
Nov 8, 2022
Kind
B2
Abstract

This application discloses a device state synchronization method. The method performed by a common capability component, the method includes: receiving a first representation state instance resource creation request sent by an application, where the first representation state instance resource creation request includes a device state attribute; creating a first representation state instance resource based on the first representation state instance resource creation request and a created second representation state instance resource; sending a device state update request to a device, where the device state update request includes the device state attribute; receiving an actual state instance resource creation request sent by the device; creating an actual state instance resource based on the actual state instance resource creation request; and sending to the application, information indicating that an actual state resource is successfully created.

Claims (55)

1. A device state synchronization method, comprising:

receiving, by a common capability component, a first representation state instance resource creation request sent by an application, wherein the first representation state instance resource creation request comprises a device state attribute;

creating, by the common capability component, a first representation state instance resource based on the first representation state instance resource creation request and a created second representation state instance resource;

sending, by the common capability component, a device state update request to a device, wherein the device state update request comprises the device state attribute;

receiving, by the common capability component, an actual state instance resource creation request sent by the device;

creating, by the common capability component, an actual state instance resource based on the actual state instance resource creation request; and

sending, by the common capability component to the application, information indicating that an actual state resource was successfully created,

wherein the first representation state instance resource and the second representation state instance resource are child resources of a representation state resource;

the representation state resource comprises an update mode and a time mode;

the update mode comprises a sequence state or a latest state; and

the time mode comprises a moment mode, a duration mode, or a mixed mode, wherein the mixed mode is the moment mode plus the duration mode, and

the first representation state instance resource creation request comprises an identifier of the representation state resource, and at least one of a first state moment and first state duration, and

wherein the representation state resource comprises a connection status attribute, and the connection status attribute indicates a time period [t 1 , t 2 ] in which the common capability component is connected to the device;

the update mode of the representation state resource is the sequence state, and the time mode is the moment mode;

the first representation state instance resource creation request comprises the first state moment; and

the creating, by the common capability component, the first representation state instance resource based on the first representation state instance resource creation request and a created second representation state instance resource comprises:

when it is determined that the common capability component determines that the first state moment falls within the time period [t 1 , t 2 ] and is different from a second state moment of the created second representation state instance resource, creating, by the common capability component, the first representation state instance resource.

2. The method according to claim 1 , wherein the creating, by the common capability component, the first representation state instance resource based on the first representation state instance resource creation request and a created second representation state instance resource comprises: creating, by the common capability component, the first representation state instance resource based on the second representation state instance resource and the at least one attribute of the first state moment and the first state duration.

3. A common capability component, comprising:

a transceiver, configured to communicate with an apparatus other than the common capability component;

a memory, configured to store a computer executable instruction; and

one or more processors, connected to the memory and the transceiver through a bus, wherein when the computer executable instruction stored in the memory is executed by the processors, cause the common capability component to be configured to

receive a first representation state instance resource creation request sent by an application, wherein the first representation state instance resource creation request comprises a device state attribute;

create a first representation state instance resource based on the first representation state instance resource creation request and a created second representation state instance resource;

send a device state update request to a device, wherein the device state update request comprises the device state attribute;

receive an actual state instance resource creation request sent by the device;

create an actual state instance resource based on the actual state instance resource creation request; and

send to the application, information indicating that an actual state resource was successfully created, wherein the first representation state instance resource and the second representation state instance resource are child resources of a representation state resource;

the representation state resource comprises an update mode and a time mode;

the update mode comprises a sequence state or a latest state; and

the time mode comprises a moment mode, a duration mode, or a mixed mode, wherein the mixed mode is the moment mode plus the duration mode, and

wherein the representation state resource comprises a connection status attribute, and the connection status attribute indicates a time period [t 1 , t 2 ] in which the common capability component is connected to the device;

the update mode of the representation state resource is the sequence state, and the time mode is the moment mode;

the first representation state instance resource creation request comprises the first state moment; and

the create the first representation state instance resource based on the first representation state instance resource creation request and a created second representation state instance resource comprises:

when it is determined that the common capability component determines that the first state moment falls within the time period [t 1 , t 2 ] and is different from a second state moment of the created second representation state instance resource, create the first representation state instance resource.

4. The common capability component according to claim 3 , wherein the first representation state instance resource creation request comprises an identifier of the representation state resource, and at least one attribute of a first state moment and first state duration.

5. The common capability component according to claim 3 , wherein the create the first representation state instance resource based on the first representation state instance resource creation request and a created second representation state instance resource comprises: create the first representation state instance resource based on the second representation state instance resource and the at least one attribute of the first state moment and the first state duration.

6. A computer-readable storage medium that comprises an instruction, wherein when the instruction is run on a computer, the computer is enabled to perform the method comprising:

receiving, by a common capability component, a first representation state instance resource creation request sent by an application, wherein the first representation state instance resource creation request comprises a device state attribute;

creating, by the common capability component, a first representation state instance resource based on the first representation state instance resource creation request and a created second representation state instance resource;

sending, by the common capability component, a device state update request to a device, wherein the device state update request comprises the device state attribute;

receiving, by the common capability component, an actual state instance resource creation request sent by the device;

creating, by the common capability component, an actual state instance resource based on the actual state instance resource creation request; and

sending, by the common capability component to the application, information indicating that an actual state resource was successfully created,

wherein the first representation state instance resource and the second representation state instance resource are child resources of a representation state resource;

the representation state resource comprises an update mode and a time mode;

the update mode comprises a sequence state or a latest state; and

the time mode comprises a moment mode, a duration mode, or a mixed mode, wherein the mixed mode is the moment mode plus the duration mode, and

the first representation state instance resource creation request comprises an identifier of the representation state resource, and at least one of a first state moment and first state duration, and

wherein the representation state resource comprises a connection status attribute, and the connection status attribute indicates a time period [t 1 , t 2 ] in which the common capability component is connected to the device;

the update mode of the representation state resource is the sequence state, and the time mode is the moment mode;

the first representation state instance resource creation request comprises the first state moment; and

the creating, by the common capability component, the first representation state instance resource based on the first representation state instance resource creation request and a created second representation state instance resource comprises:

when it is determined that the common capability component determines that the first state moment falls within the time period [t 1 , t 2 ] and is different from a second state moment of the created second representation state instance resource, creating, by the common capability component, the first representation state instance resource.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 1, 2022
From: HUAWEI TECHNOLOGIES CO., LTD.
To: HUAWEI CLOUD COMPUTING TECHNOLOGIES CO., LTD.
Reel/Frame 059267/0088 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 22, 2020
From: YIN, JIAXIN
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 054732/0439 →