WO2021012234A1 - Procédé de génération de dispositif fantôme, dispositif et support d'informations - Google Patents

Procédé de génération de dispositif fantôme, dispositif et support d'informations Download PDF

Info

Publication number
WO2021012234A1
WO2021012234A1 PCT/CN2019/097579 CN2019097579W WO2021012234A1 WO 2021012234 A1 WO2021012234 A1 WO 2021012234A1 CN 2019097579 W CN2019097579 W CN 2019097579W WO 2021012234 A1 WO2021012234 A1 WO 2021012234A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource
server
server device
shadow
cloud server
Prior art date
Application number
PCT/CN2019/097579
Other languages
English (en)
Chinese (zh)
Inventor
张军
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to PCT/CN2019/097579 priority Critical patent/WO2021012234A1/fr
Priority to CN201980092716.XA priority patent/CN113454586A/zh
Publication of WO2021012234A1 publication Critical patent/WO2021012234A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines

Definitions

  • the present invention relates to the field of information processing technology, in particular to a method, device and storage medium for generating shadow devices.
  • a shadow device is generated for the Open Connectivity Foundation (OCF) server device, and the shadow device communicates with the OCF client device remotely to improve communication processing efficiency.
  • OCF Open Connectivity Foundation
  • the process of generating the shadow device in the related technology is complicated; and the user's participation is required to complete the generation of the shadow device, which affects the function of the shadow device.
  • embodiments of the present invention provide a shadow device generation method, device, and storage medium, which can simplify the process of generating shadow devices and improve the functions of shadow devices.
  • an embodiment of the present invention provides a method for generating a shadow device, which includes: a server device sends a shadow device creation request message to a cloud server, and the shadow device creation request message is used to request the cloud server to generate the service The shadow device of the end device; the server device receives a shadow device creation request response message.
  • an embodiment of the present invention provides a method for generating a shadow device, including: a cloud server receives a shadow device creation request message sent by a server device;
  • the cloud server generates the shadow device of the server device based on the shadow device creation request message.
  • an embodiment of the present invention provides a method for generating a shadow device, which includes: a server device sends a resource expression corresponding to a resource link to a cloud server, and the resource link is published by the server device to the cloud server;
  • the resource expression is used by the cloud server to generate the shadow device of the server device.
  • an embodiment of the present invention provides a method for generating a shadow device, including: a cloud server obtains a resource expression corresponding to a resource link, and the resource link is published by the server device to the cloud server;
  • the cloud server generates the shadow device of the server device based on the resource expression.
  • an embodiment of the present invention provides a server device, the server device includes:
  • the first sending unit is configured to send a shadow device creation request message to a cloud server, where the shadow device creation request message is used to request the cloud server to generate a shadow device of the server device;
  • the first receiving unit is configured to receive a shadow device creation request response message.
  • an embodiment of the present invention provides a cloud server, and the cloud server includes:
  • the second receiving unit is configured to receive a shadow device creation request message sent by the server device
  • the first processing unit is configured to generate a shadow device of the server device based on the shadow device creation request message.
  • an embodiment of the present invention provides a server device, and the server device includes:
  • a fifth sending unit configured to send a resource expression corresponding to a resource link to a cloud server, and the resource link is published by the server device to the cloud server;
  • the resource expression is used by the cloud server to generate the shadow device of the server device.
  • an embodiment of the present invention provides a cloud server, and the cloud server includes:
  • the sixth receiving unit is configured to obtain the resource expression corresponding to the resource link, and the resource link is published by the server device to the cloud server;
  • the second processing unit is configured to generate a shadow device of the server device based on the resource expression.
  • an embodiment of the present invention provides a server device, including a processor and a memory configured to store a computer program that can run on the processor, where the processor is configured to execute the above-mentioned computer program when the computer program is running.
  • the steps of the shadow device generation method executed by the server device including a processor and a memory configured to store a computer program that can run on the processor, where the processor is configured to execute the above-mentioned computer program when the computer program is running.
  • an embodiment of the present invention provides a cloud server, including a processor and a memory for storing a computer program that can run on the processor, wherein the processor is configured to execute the cloud The steps of the shadow device generation method executed by the server.
  • an embodiment of the present invention provides a storage medium storing an executable program, and when the executable program is executed by a processor, the method for generating a shadow device executed by the server device is implemented.
  • an embodiment of the present invention provides a storage medium storing an executable program, and when the executable program is executed by a processor, the method for generating a shadow device executed by the cloud server is implemented.
  • the shadow device generation method provided by the embodiment of the present invention includes: a server device sends a shadow device creation request message to a cloud server; the cloud server receives a shadow device creation request message sent by the server device, and based on the shadow device creation request message, Generate the shadow device of the server device.
  • the server device can directly interact with the cloud server to create the shadow device of the server device; since there is no need for a configurator to participate in the shadow device generation process of the server device, the process of generating the shadow device is simplified.
  • the user is not required to participate in selecting the resources to be copied, which avoids the problem that the generated shadow device cannot accurately serve the function of the server device due to human factors, and improves the function of the shadow device.
  • Figure 1 is a schematic diagram of the communication process between a client device and a server device according to the present invention
  • FIG. 2 is a schematic diagram of the process of creating a shadow device for the server device and the synchronization between the server device and the shadow device according to the present invention
  • FIG. 3 is a schematic diagram of an optional processing flow of a method for generating a shadow device applied to a server device according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of an optional processing flow of a method for generating a shadow device applied to a cloud server according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of a detailed processing flow of a method for generating a shadow device according to an embodiment of the present invention
  • FIG. 6 is a schematic diagram of a detailed processing flow of another method for generating a shadow device according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of another optional processing flow of a method for generating a shadow device applied to a server device according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of another optional processing flow of a method for generating a shadow device applied to a cloud server according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of a detailed processing flow of another method for generating a shadow device according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of the composition structure of a server device according to an embodiment of the present invention.
  • FIG. 11 is a schematic diagram of the composition structure of a cloud server according to an embodiment of the present invention.
  • FIG. 12 is a schematic diagram of the composition structure of another server device according to an embodiment of the present invention.
  • FIG. 13 is a schematic diagram of the composition structure of another cloud server according to an embodiment of the present invention.
  • FIG. 14 is a schematic diagram of the hardware composition structure of an electronic device according to an embodiment of the present invention.
  • the configurator provides a tool for the server equipment to access the configuration function of the cloud server.
  • the function of the configurator can be implemented by application software.
  • Endpoint which is the source or destination of the request message and the response message.
  • the server device is an OCF server.
  • the shadow device is a digital twin device generated by the server device. Other devices can directly communicate with the shadow device, thereby reducing the workload of message processing on the server device and improving the communication efficiency of the system.
  • Resource catalog supporting OCF equipment to publish resources and discover the logical functional entities of resources.
  • OCF is an emerging technology standards organization for the application layer of the Internet of Things.
  • OCF develops a Restful service framework for interconnection and intercommunication between Internet of Things devices; in the OCF Restful service framework, resources are used to express Internet of Things devices, functional services of OCF devices, and OCF devices The status and other information.
  • the entity that provides the resource is the OCF server device (hereinafter referred to as the server device), and the entity that accesses the resource is the OCF client (hereinafter referred to as the client device).
  • control terminal that obtains the indoor environment status data is the client device
  • the sensor device that monitors the indoor environment status data is the server device.
  • the business interaction between the client device and the server device is through the creation, reading, and updating of resources. It is realized by resource operation methods such as deletion or notification.
  • the communication process between the client device and the server device is shown in Figure 1:
  • the client device sends a resource update request for resources on the server device to the server device.
  • the server device performs a corresponding resource operation according to the update resource request, and sends an update resource response to the client device; wherein the update resource response carries a resource expression.
  • the form of the resource update request is:
  • the resource update request carries the Uniform Resource Identifier (URI) of the resource and the resource operation method; taking Figure 1 as an example, the server device has an environmental temperature resource, and the URI of the resource is "/environmentTemperature” ;
  • the resource operation method requested by the client device from the server device is the update method POST.
  • the description of the resource includes: the URI of the resource, the resource type, the resource interface, and the functional attributes of the resource, etc.
  • the information included in the description of the resource is described below:
  • the URI of the resource provides the address of the OCF server device resource.
  • the value of "href” is the URI of the specific resource.
  • the OCF client device accesses the OCF server device through the resource URI.
  • the resource; in Figure 1, the URI of the environmental temperature resource is "/environmentTemperature”.
  • the resource type represented by "rt” in the description of the resource, represents the type of resource.
  • the resource type “rt” is "oic.r.temperature”, which represents the temperature resource type.
  • the resource interface represented by "if” in the description of the resource, provides a response to the resource view and resource support.
  • the resource interface "if” is "oic.if.a”, which means the controller interface.
  • TargetTemperature represents the target temperature attribute of the temperature resource
  • currentTemperature represents the current temperature attribute of the temperature resource
  • temperatureRange represents the temperature range attribute of the temperature resource
  • OCF defines the resource discovery resource "/oic/res" that all OCF devices must support.
  • Resource discovery resources are used for OCF device and resource discovery; resource discovery resources provide device resource discovery functions, and the URI of resource discovery resources is fixed as " /oic/res”.
  • OCF defines resource links, namely resource Links;
  • OCF server devices can provide their own resources in the form of resource links, so that OCF client devices can discover the resources of OCF server devices.
  • the content of the resource link is as follows:
  • the content of the resource link includes:
  • Context URI which represents the URI of the owner resource that contains the resource link.
  • Target URI that is, the URI of the target resource referenced in the resource link.
  • eps The endpoint that can access the target resource.
  • each OCF server device needs to have an endpoint, and each OCF device must be associated with at least one endpoint for sending and receiving messages;
  • the client device can access the target resource of the server device through the endpoint.
  • the "eps" array is used in the resource link parameters to represent the endpoint of the target resource, and the specific endpoint is represented by "ep", that is, the target resource can be accessed through the address of the "ep" value in the "eps” parameter.
  • the client device can access the target resource "/myLightSwitch" through the message endpoint "coaps://[2001:db8:b::c2e5]:22222".
  • the client device communicates with the shadow device of the server device, which can improve the communication efficiency of the system.
  • OCF cloud server implements shadow service.
  • the shadow service of OCF cloud service creates a shadow device for each OCF server device.
  • the shadow device can directly respond to the request of the client device without obtaining the resource representation of the server device; in this way The client device does not need to communicate with the server device to obtain the resource representation of the server device, thereby reducing the workload of message processing on the server device and improving the communication efficiency of the system.
  • the configurator configures the server device: the configurator executes the shadow configuration process for the server device, sends a resource update request to the shadow configuration resource of the server device, and provides shadow service information for the server device to generate the shadow device; among them.
  • the shadow service information includes: the shadow service identifier, the URI of the shadow generation resource, and the instructions for generating the shadow device; among them, the shadow service identifier represents the identification information of the shadow service, and the URI of the shadow generation resource provides access to the shadow generation resource "oic.wk.shadow.
  • the URI of "gen” for example, the URI of the shadow generation resource is /oic/shadow/gen), and the instruction for generating a shadow device is used to indicate whether the original device generates a shadow device.
  • step 1 the server device obtains the shadow service information, which includes the URI of the shadow generation resource.
  • the server device sends a request for creating the shadow device to the cloud server for the URI of the shadow generation resource.
  • the request provides the original resource information that needs to be copied; after receiving the request from the server device, the cloud server generates a shadow device for the server device; where the shadow device includes the copied resource information corresponding to the original resource information.
  • the configurator configures the shadow device: the configurator executes the configuration process for the shadow device, and the shadow device obtains access control information.
  • the cloud server receives the resource update request: the cloud server receives the update request from the client device for the resources copied on the shadow device.
  • the shadow device and the server device synchronize resources: the server device and the shadow device establish a synchronization relationship through the shadow synchronization resource, and the server device and the shadow device synchronize information.
  • the shadow device sends synchronization information to the client device.
  • the configurator needs to interact with the server device and the cloud server multiple times, resulting in a complicated process of generating the shadow device.
  • the user needs to select the resources copied to the shadow device; if the resource selected by the user is inappropriate, for example, a secure resource is selected (secure resources refer to resources related to secure communication), or selected functions Resources (functional resources refer to resources related to device functions, such as air-conditioning temperature setting resources) are not comprehensive, selected functional resources will be synchronized through the shadow device, and unselected functional resources cannot be synchronized through the shadow device; this will cause generation
  • the shadow device cannot accurately replicate the function of the original device, which affects the function of the shadow device.
  • the present invention provides a method for generating shadow devices.
  • the method for generating shadow devices in the embodiments of this application can be applied to various communication systems, such as: Global System of Mobile communication (GSM) system, code Code Division Multiple Access (CDMA) system, Wideband Code Division Multiple Access (WCDMA) system, General Packet Radio Service (GPRS), Long Term Evolution (LTE) ) System, LTE Frequency Division Duplex (FDD) system, LTE Time Division Duplex (TDD), Universal Mobile Telecommunication System (UMTS), Worldwide Interoperability (Worldwide Interoperability) for Microwave Access, WiMAX) communication system or 5G system, etc.
  • GSM Global System of Mobile communication
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • GPRS General Packet Radio Service
  • LTE Long Term Evolution
  • TDD Time Division Duplex
  • UMTS Universal Mobile Telecommunication System
  • Worldwide Interoperability Worldwide Interoperability (Worldwide Interoperability
  • An optional processing flow of the method for generating a shadow device applied to a server device provided by the embodiment of the present invention, as shown in FIG. 3, includes the following steps:
  • Step S201 The server device sends a shadow device creation request message to the cloud server.
  • the shadow device creation request message is used to request the cloud server to generate the shadow device of the server device.
  • the shadow device creation request message includes: a shadow device creation request message for shadow generation resources.
  • the shadow device creation request message includes the server device identifier, and/or the original resource expression of the server device.
  • the shadow device creation request message may include the server device identifier and/or the original resource expression of the server device, as well as the shadow synchronization resources of the server device.
  • step S202 the server device receives a shadow device creation request response message.
  • the shadow device creation request response message is used to indicate that the shadow device is successfully created.
  • step S202 the method further includes:
  • Step S203 The server device sends a first resource synchronization request message to the cloud server.
  • the first resource synchronization request message is used to request the server device to perform resource synchronization with the shadow device; wherein, the first resource synchronization request message includes the server device identifier.
  • the target URI of the first resource synchronization request message to request resource synchronization is the URI of the original resource whose resource expression has changed.
  • Step S204 The server device receives the first resource synchronization request response message sent by the cloud server.
  • the first resource synchronization request response message is used to indicate that the resource synchronization is successful.
  • Step S205 The server device receives the second resource synchronization request message sent by the cloud server.
  • the second resource synchronization request message is used to request the server device to perform resource synchronization with the shadow device; wherein, the second resource synchronization request message includes the server device identifier.
  • the URI of the target resource for which the second resource synchronization request message requests resource synchronization is the URI of the original resource whose resource expression needs to be updated, and the URI of the target resource in the second resource synchronization request message does not include the server device identifier .
  • Step S206 The server device sends a second resource synchronization request response message to the cloud server;
  • the second resource synchronization request response message is used to indicate that the resource synchronization is successful.
  • steps S203 to S204 and steps S205 to S206 may be executed, or only steps S203 to S204 may be executed, or only steps S205 to S206 may be executed.
  • step S203 to step S206 may occur before step S205 to step S206, and step S203 to step S204 may also occur after step S205 to step S206.
  • An optional processing flow of the method for generating a shadow device applied to a cloud server provided by the embodiment of the present invention, as shown in FIG. 4, includes:
  • Step S301 The cloud server receives a shadow device creation request message sent by the server device.
  • the shadow device creation request message includes: a shadow device creation request message for shadow generation resources.
  • the shadow device creation request message includes the server device identifier, and/or the original resource expression of the server device.
  • the shadow device creation request message may include the server device identifier and/or the original resource expression of the server device, as well as the shadow synchronization resources of the server device.
  • the device identifier of the created shadow device is the same as the device identifier of the server device; and/or, the copy resource URI of the shadow device is the same as the original resource URI of the server device.
  • the resources of the shadow device include shadow synchronization resources.
  • Step S302 The cloud server generates the shadow device of the server device based on the shadow device creation request message.
  • step S302 the method further includes:
  • step S303 the cloud server sends a shadow device creation request response message to the server device.
  • the shadow device creation request response message is used to indicate that the shadow device is successfully created.
  • Step S304 The cloud server publishes the copy resource link of the shadow device to the resource discovery directory of the cloud server.
  • the cloud server publishes the copy resource link of the shadow device to the resource discovery directory of the cloud server, that is, the cloud server adds the copy resource link of the shadow device to the resource link of /oic/res of the cloud server.
  • the URI of the copy resource of the shadow device published in the resource discovery directory of the cloud server includes the server device identifier.
  • step S304 the method further includes:
  • Step S305 The cloud server receives the first synchronization resource request message sent by the server device;
  • the first resource synchronization request message is used to request the server device and the shadow device to perform resource synchronization.
  • the first resource synchronization request message includes the server device identifier.
  • the target URI of the first resource synchronization request message to request resource synchronization is the URI of the original resource whose resource expression has changed.
  • Step S306 The cloud server sends a first resource synchronization request response message to the server device.
  • the first resource synchronization request response message is used to indicate that the resource synchronization is successful.
  • Step S307 The cloud server sends a second resource synchronization request message to the server device.
  • the second resource synchronization request message is used to request the server device to perform resource synchronization with the shadow device; wherein, the second resource synchronization request message includes the server device identifier.
  • the URI of the target resource for which the second resource synchronization request message requests resource synchronization is the URI of the original resource whose resource expression needs to be updated, and the URI of the target resource in the second resource synchronization request message does not include the server device identifier .
  • Step S308 The cloud server receives the second resource synchronization request response message sent by the server device.
  • the second resource synchronization request response message is used to indicate that the resource synchronization is successful.
  • steps S305 to S306 and steps S307 to S308 may be executed, or only steps S305 to S306 may be executed, or only steps S307 to S308 may be executed.
  • step S305 to step S308 may occur before step S307 to step S308, and step S305 to step S306 may also occur after step S307 to step S308.
  • Step S309 the cloud server updates the resource expression of the shadow device on the cloud server.
  • the detailed processing flow of the shadow device generating method provided by the embodiment of the present invention, as shown in FIG. 5, includes the following steps:
  • Step S401 the OCF server device is connected to the OCF cloud server.
  • Step S402 The OCF server device sends a shadow device creation request to the OCF cloud server, requesting the OCF cloud server to generate a shadow device for the OCF server device.
  • the OCF server device sends a creation request to the shadow generation resource /oic/shadow/gen of the OCF cloud server, and the request message provides the OCF server device identification and the original resource expression of the OCF device.
  • the OCF server device is an air conditioner, and the device ID is dc70373c-1e8d-4fb3-962e-017eaa863989.
  • the air conditioner has the current temperature resource (the resource URI is /currentTemperature, the current temperature value is 25°C) and the target temperature resource ( The resource URI is /targetTemperature, and the target temperature value is 25°C) two functional resources.
  • the target resource URI of the request to generate a shadow device is /oic/shadow/gen, and the resource description provided in the request message is as follows:
  • “di” is the equipment identification of the air conditioner
  • “resources” is the resource expression of the current temperature resource and the target temperature resource of the air conditioner.
  • Step S403 The OCF cloud server generates a shadow device for the OCF server device.
  • the device identifier of the generated shadow device is the same as the device identifier of the original device, and the copy resource URI of the shadow device is the same as the shadow resource URI of the original device.
  • the original device is an air conditioner
  • the device identifier is dc70373c-1e8d-4fb3-962e-017eaa863989.
  • the air conditioner implements two functional resources: the current temperature resource (resource URI is /currentTemperature) and the target temperature resource (resource URI is /targetTemperature)
  • the device identifier of the shadow device generated by the OCF cloud server is also dc70373c-1e8d-4fb3-962e-017eaa863989
  • the shadow device also has a current temperature resource (resource URI is /currentTemperature) and a target temperature resource (resource URI is /targetTemperature).
  • the resource description of the generated shadow device is as follows:
  • di is the device identifier of the shadow device of the air conditioner
  • resources is the resource expression of the current temperature resource and the target temperature resource of the shadow device of the air conditioner.
  • step S404 the OCF cloud server sends a response for creating a shadow device to the OCF server device, indicating that the shadow device is successfully created.
  • Step S405 The OCF cloud server publishes the resource link of the shadow device to the resource catalog of the OCF cloud server.
  • the URI of the shadow resource published in the resource catalog plus the device identifier of the OCF device is optionally included in the URI of the shadow resource published in the resource catalog plus the device identifier of the OCF device.
  • the device identifier of the OCF device is dc70373c-1e8d-4fb3-962e-017eaa863989
  • the resource URI of the current temperature resource of the shadow device published to the resource catalog is /currentTemperature
  • the resource URI of the target temperature resource is /targetTemperature
  • the resource The current temperature resource URI of the shadow device published in the catalog is dc70373c-1e8d-4fb3-962e-017eaa863989/currentTemperature
  • the resource URI of the target temperature resource is dc70373c-1e8d-4fb3-962e-017eaa863989/targetTemperature.
  • step S406 the resource expression on the OCF server device changes, and resource synchronization needs to be performed.
  • the OCF server equipment is an air conditioner, which has the function of monitoring the current temperature, and realizes the /currentTemperature resource.
  • the monitored current temperature changes, and the temperature value of the /currentTemperature resource changes, and the current temperature value becomes 28°C. , Need to be synchronized to the shadow device.
  • Step S407 The OCF server device requests resource synchronization to the shadow device on the OCF cloud server, the target URI of the requested resource synchronization is the original resource URI that has changed, and the device identifier is the original device identifier.
  • the target resource URI of the shadow device requesting synchronization is /currentTemperature.
  • “di” is the equipment identification of the air conditioner
  • “resources” is the resource expression of the current temperature resource of the changed air conditioner.
  • Step S408 According to the received resource expression of the original resource, the shadow device of the OCF cloud server updates the resource expression of the corresponding shadow resource.
  • the current temperature value of the current temperature resource/currentTemperature of the shadow device is updated to 28°C.
  • Step S409 The shadow device on the OCF cloud server sends a resource synchronization response to the OCF server device.
  • steps S406 to S409 are the uplink resource synchronization process, that is, the process of resource synchronization between the OCF server device and the shadow device on the OCF cloud server.
  • Step S410 the OCF client device discovers the resource of the shadow device through the OCF cloud server.
  • the OCF client device found a shadow device, with the current temperature resource URI being dc70373c-1e8d-4fb3-962e-017eaa863989/currentTemperature, and the resource URI of the target temperature resource being dc70373c-1e8d-4fb3-962e-017eaa863989/targetTemperature.
  • Step S411-Step S412 the OCF client device obtains the resource expression of the shadow device, and the OCF cloud server returns the resource expression of the shadow device to the OCF client device.
  • the OCF client device obtains the resource representation of the target temperature resource dc70373c-1e8d-4fb3-962e-017eaa863989/targetTemperature of the shadow device, and obtains the target temperature as 25°C.
  • Step S413 the OCF client device requests to update the resource representation of the shadow device.
  • the OCF client device requests to update the resource representation of the target temperature resource dc70373c-1e8d-4fb3-962e-017eaa863989/targetTemperature of the shadow device, and the target temperature requested to update is 20°C.
  • Step S414 The shadow device of the OCF cloud server requests resource synchronization to the OCF server device, and the target resource URI of the requested resource synchronization is the original resource URI whose resource expression needs to be updated.
  • the shadow device of the OCF cloud server removes the device identifier in the target resource URI, and then sends a resource synchronization request to the OCF server device.
  • the shadow device of the OCF cloud server receives the OCF client request to update the target temperature resource dc70373c-1e8d-4fb3-962e-017eaa863989/targetTemperature, and the requested update target temperature value is 20°C, the shadow device will target The device identifier dc70373c-1e8d-4fb3-962e-017eaa863989 in the resource URI is removed, and the target resource URI to request synchronization from the original device is the target temperature resource/targetTemperature.
  • the resource description provided in the request message is as follows:
  • “di” is the equipment identification of the air conditioner
  • “resources” is the resource expression of the target temperature resource of the air conditioner that is requested to be updated.
  • Step S415 The OCF server device sends a resource synchronization response to the cloud server, indicating that the resource synchronization is successful.
  • Step S416 The shadow device of the OCF cloud server updates its own resource expression.
  • Step S417 The shadow device of the OCF cloud server sends the update result of the device resource expression to the OCF client device.
  • steps S410 to S417 are the downlink resource synchronization process, that is, the process of resource synchronization between the shadow device on the OCF cloud server and the OCF server device.
  • the detailed processing flow of another shadow device generating method provided by the embodiment of the present invention, as shown in FIG. 6, includes the following steps:
  • step S501 the OCF server device is connected to the OCF cloud server.
  • step S502 the OCF server device sends a shadow device creation request to the OCF cloud server, requesting the OCF cloud server to generate a shadow device for the OCF server device.
  • the OCF server device sends a creation request to the shadow generation resource /oic/shadow/gen of the OCF cloud server, and the request message provides the OCF device identifier and the original resource expression of the OCF device.
  • the shadow device creation request also provides the shadow synchronization resource of the original device.
  • the shadow synchronization resource is used to receive the shadow device to the original device.
  • the original equipment is an air conditioner
  • the equipment identifier is dc70373c-1e8d-4fb3-962e-017eaa863989.
  • the air conditioner has a current temperature resource (resource URI is /currentTemperature, current temperature value is 25°C) and a target temperature resource (resource URI is /targetTemperature, the target temperature value is 25°C) two functional resources.
  • the target resource URI of the request to generate a shadow device is /oic/shadow/gen, and the resource description provided in the request message is as follows:
  • “di” is the device identifier of the air conditioner
  • “ssr” is the shadow synchronization resource of the air conditioner, which is used to receive downlink resource synchronization messages (that is, the target resource URI for the shadow device of the air conditioner to send resource synchronization messages to the air conditioner)
  • “resources” is the air conditioner The resource representation of the current temperature resource and the target temperature resource.
  • the OCF cloud server generates a shadow device for the OCF server device.
  • the device identifier of the generated shadow device is the same as that of the original device, and the copy resource URI of the shadow device is the same as the shadow resource URI of the OCF server device.
  • the created shadow device also includes shadow synchronization resources.
  • the shadow synchronization resource of the shadow device is a target resource used to receive the resource synchronization message sent by the OCF server device to the shadow device.
  • the original device is an air conditioner
  • the device identifier is dc70373c-1e8d-4fb3-962e-017eaa863989.
  • the air conditioner implements two functional resources: the current temperature resource (resource URI is /currentTemperature) and the target temperature resource (resource URI is /targetTemperature)
  • the device identifier of the shadow device generated by the OCF cloud server is also dc70373c-1e8d-4fb3-962e-017eaa863989
  • the shadow device also has a current temperature resource (resource URI is /currentTemperature) and a target temperature resource (resource URI is /targetTemperature).
  • the resource description of the generated shadow device is as follows:
  • “di” is the device identifier of the shadow device of the air conditioner
  • “ssr” is the shadow synchronization resource of the shadow device of the air conditioner, used to receive uplink resource synchronization messages (that is, the target resource URI of the air conditioner sending resource synchronization messages to the shadow device of the air conditioner )
  • “resources” is the resource representation of the current temperature resource and target temperature resource of the shadow device of the air conditioner.
  • step S504 the OCF cloud server sends a response for creating a shadow device to the OCF server device, indicating that the shadow device is successfully created.
  • step S505 the OCF cloud server publishes the resource link of the shadow device to the resource catalog of the OCF cloud server.
  • the URI of the shadow resource published in the resource catalog plus the device identifier of the OCF server device is optionally, the URI of the shadow resource published in the resource catalog plus the device identifier of the OCF server device.
  • the device identifier of the OCF device is dc70373c-1e8d-4fb3-962e-017eaa863989
  • the resource URI of the current temperature resource of the shadow device published to the resource catalog is /currentTemperature
  • the resource URI of the target temperature resource is /targetTemperature
  • the resource The current temperature resource URI of the shadow device published in the catalog is dc70373c-1e8d-4fb3-962e-017eaa863989/currentTemperature
  • the resource URI of the target temperature resource is dc70373c-1e8d-4fb3-962e-017eaa863989/targetTemperature.
  • step S506 the resource expression on the OCF server device changes, and resource synchronization needs to be performed.
  • the OCF server equipment is an air conditioner, which has the function of monitoring the current temperature, and realizes the /currentTemperature resource.
  • the monitored current temperature changes, and the temperature value of the /currentTemperature resource changes, and the current temperature value becomes 28°C. , Need to be synchronized to the shadow device.
  • Step S507 The OCF server device requests resource synchronization with the shadow device on the OCF cloud server, the target URI of the requested resource synchronization is the shadow synchronization resource URI, and the device identifier is the original device identifier.
  • the target resource URI of the shadow device requesting synchronization is the shadow synchronization resource /oic/shadow/sync, which is provided in the request message See the resource description below:
  • “di” is the equipment identification of the air conditioner
  • “resources” is the resource expression of the current temperature resource of the changed air conditioner.
  • Step S508 According to the received resource expression of the original resource, the shadow device on the OCF cloud server updates the resource expression of the corresponding shadow resource.
  • the current temperature value of the current temperature resource/currentTemperature of the shadow device is updated to 28°C.
  • Step S509 The shadow device on the OCF cloud server sends a resource synchronization response to the OCF server device.
  • steps S506 to S509 are an uplink resource synchronization process, that is, a process in which the OCF server device performs resource synchronization with the shadow device on the OCF cloud server.
  • Step S510-Step S513 the OCF client device discovers and obtains the resource representation of the shadow device.
  • step S510 to step S513 in the embodiment of the present invention are the same as the foregoing step S410 to step S413, and will not be repeated here.
  • step S514 the shadow device on the OCF cloud server requests resource synchronization to the OCF server device, and the target resource URI of the requested resource synchronization is the shadow synchronization resource URI.
  • the shadow device on the OCF cloud server removes the device identifier in the target resource URI, and then sends a resource synchronization request to the OCF server device.
  • the shadow device on the OCF cloud server receives the target temperature resource dc70373c-1e8d-4fb3-962e-017eaa863989/targetTemperature that the OCF client device requests to update, and the target temperature value requested to update is 20°C, then the shadow device Remove the device identifier dc70373c-1e8d-4fb3-962e-017eaa863989 from the target resource URI.
  • the target resource URI for requesting synchronization from the original device is the shadow synchronization resource /oic/shadow/sync.
  • the resource expression provided in the request message is as follows:
  • “di” is the equipment identification of the air conditioner
  • “resources” is the resource expression of the target temperature resource of the air conditioner that is requested to be updated.
  • Step S515 The OCF server device sends a resource synchronization response to the OCF cloud server, indicating that the resource synchronization is successful.
  • step S5166 the shadow device on the OCF cloud server updates its own resource expression.
  • Step S517 The shadow device on the OCF cloud server sends the update result of the device resource expression to the OCF client device.
  • steps S510 to S517 are the downlink resource synchronization process, that is, the process of resource synchronization between the shadow device on the OCF cloud server and the OCF server device.
  • Another optional processing procedure of the method for generating a shadow device applied to a server device provided by the embodiment of the present invention, as shown in FIG. 7, includes the following steps:
  • Step S601 The server device sends a resource expression corresponding to the resource link to the cloud server.
  • the resource link is published by the server device to the cloud server, and the resource expression is used by the cloud server to generate a shadow device of the server device.
  • step S601 the method further includes:
  • Step S602 The server device receives the request message for obtaining the resource expression sent by the cloud server.
  • the request message for obtaining a resource expression includes: obtaining a resource expression corresponding to a resource link published by the server device to the cloud server; correspondingly, the server device sends a resource expression to the cloud server.
  • the resource representation corresponding to the resource link if the cloud server requests to obtain resource expressions corresponding to N resource links, it needs to send N request messages for obtaining resource expressions to the server device; the server device sends a request message to the cloud for each resource expression request message.
  • the server sends resource expressions corresponding to N times different resource links.
  • the request message for obtaining resource expressions includes: obtaining resource expressions corresponding to all resource links published by the server device to the cloud server.
  • the server device sends the resource expressions corresponding to all resource links of the cloud server to the cloud server.
  • the all resource links are published by the server device to the cloud server.
  • All resource links published by the server device to the cloud server may be all resources corresponding to the server device (such as functional resources of the server device and non-functional resources of the server device);
  • the resources related to the server device function such as the current temperature resource and the target temperature resource); it can also be the resource related to the server device function and the configuration resource of the server device (such as /oic/d resource) .
  • resources corresponding to all resource links published by the server device to the cloud server are subscribeable resources.
  • step S602 the method further includes:
  • Step S603 The server device receives the request message for subscribing to the original resource of the server device sent by the cloud server.
  • the request message for subscribing to the original resource of the server device is used to send the changed original resource expression to the cloud server when the original resource expression on the server device changes.
  • Step S604 The server device sends the changed original resource expression to the cloud server.
  • the resource expression on the server device changes. Because the cloud server subscribes to the resource of the server device, the server device needs to send the changed resource expression to the cloud server; the cloud server then updates the changed resource expression The status of the shadow device on the cloud server.
  • step S602 the method further includes:
  • Step S605 The server device receives a request message for updating the resource expression of the server device sent by the cloud server.
  • the URI of the target resource requested to be updated is the URI of the original resource that needs to update the resource expression.
  • the URI of the target resource does not include the server device identifier.
  • Step S606 The server device sends a request response message for updating the resource expression of the server device to the cloud server.
  • the request response message for updating the resource expression of the server device is used to indicate that the server device has successfully updated the resource.
  • step S603-step S604, and step S605-step S606 may be executed, or only step S603-step S604 may be executed, or only step S605-step S606 may be executed.
  • step S603 to step S606 may occur before step S605 to step S606, and step S603 to step S604 may also occur after step S605 to step S606.
  • Another optional processing flow of the method for generating a shadow device applied to a cloud server provided by the embodiment of the present invention, as shown in FIG. 8, includes the following steps:
  • Step S701 The cloud server obtains the resource expression corresponding to the resource link.
  • the resource link is published by the server device to the cloud server;
  • Step S702 the cloud server generates a shadow device of the server device based on the resource expression.
  • the device identifier of the shadow device is the same as the device identifier of the server device.
  • step S702 the method further includes:
  • Step S703 The cloud server sends a resource expression request message to the server device.
  • the request message for obtaining a resource expression includes: obtaining a resource expression corresponding to a resource link published by the server device to the cloud server; correspondingly, the server device sends a resource expression to the cloud server.
  • the resource representation corresponding to the resource link if the cloud server requests to obtain resource expressions corresponding to N resource links, it needs to send N request messages for obtaining resource expressions to the server device; the server device sends a request message to the cloud for each resource expression request message.
  • the server sends resource expressions corresponding to N times different resource links.
  • the request message for obtaining a resource expression includes: obtaining resource expressions corresponding to all resource links published by the server device to the cloud server.
  • the server device sends the resource expressions corresponding to all resource links of the cloud server to the cloud server.
  • the all resource links are published by the server device to the cloud server.
  • step S704 the cloud server sends a request message for subscribing to the original resource of the server device to the server device.
  • the request message for subscribing to the original resource of the server device is used to request the server device to send to the cloud server when the original resource expression on the server device changes The original resource representation that has changed.
  • step S705 when the cloud server receives the resource expression of the changed resource, the server updates the resource of the shadow device based on the resource expression of the changed resource.
  • Step S706 The cloud server sends a request message for updating the resource expression of the server device to the server device.
  • the URI of the target resource requested to be updated is the URI of the original resource that needs to update the resource expression.
  • the URI of the target resource does not include the server device identifier.
  • step S707 the cloud server receives a request response message for updating the resource expression of the server device.
  • the request response message for updating the resource expression of the server device is used to indicate that the server device has successfully updated the resource.
  • Step S708 the cloud server updates the resource of the shadow device based on the request response message for updating the resource expression of the server device.
  • steps S704 to S705, and steps S706 to S708 may be executed, or only steps S704 to S705 may be executed, or only steps S706 to S708 may be executed.
  • step S704 to step S705 may occur before step S706 to step S708, and step S704 to step S705 may also occur after step S706 to step S708.
  • the detailed processing flow of another shadow device generation method provided by the embodiment of the present invention includes the following steps:
  • step S801 the OCF server device is connected to the OCF cloud server.
  • Step S802-Step S804 the OCF server device publishes its own resource link to the OCF cloud server, and the OCF cloud server publishes the resource link of the shadow device to the resource catalog of the OCF cloud server.
  • the OCF server device is an air conditioner, and the device ID is dc70373c-1e8d-4fb3-962e-017eaa863989.
  • the air conditioner has a current temperature resource (the resource URI is /currentTemperature, and the current temperature value is 25°C) and a target temperature resource (resource The URI is /targetTemperature, and the target temperature value is 25°C) two functional resources.
  • the target resource URI of the requested publishing resource is /oic/rd, and the resource link provided in the request message is as follows:
  • “di” is the equipment identification of the air conditioner
  • “resources” is the resource link of the air conditioner, including the resource link of the current temperature resource and the target temperature resource.
  • the OCF cloud server can obtain the resource representation of the OCF server device in at least the following two ways:
  • Method a The OCF server device separately obtains resource expressions for each published resource; if the OCF server device publishes N resource links, the OCF cloud server needs to send N requests for obtaining resource expressions to the OCF server device.
  • the resource representation used to obtain each resource is not limited to:
  • step S805a-step S806a according to the resource link published by the OCF server device, the OCF cloud server sends a request for obtaining a resource expression to each published resource.
  • the OCF cloud server sends requests to obtain resource expressions for these two resources, thereby obtaining all the resources that have been published to OCF.
  • the resource representation of the resource of the cloud server is not limited to, current temperature resource/currentTemperature and target temperature resource/currentTemperature.
  • Method b Obtain the resource expressions of all the resources published by the OCF server device to the OCF cloud server by obtaining resource expressions in batches; in this case, the OCF cloud server only needs to send one resource expression acquisition to the OCF server device Upon request, it is possible to obtain the resource expressions of all resources published by the OCF server device to the OCF cloud server.
  • step S805b-step S806b the OCF cloud server sends a batch request for obtaining resource expressions to the OCF server device, and obtains the resource expressions of all resources published by the OCF server device to the OCF cloud server.
  • the OCF cloud server sends a request for obtaining resource expressions for the resource URI, thereby obtaining the resource expressions of all resources that have been published to the OCF cloud server.
  • Step S807 The OCF cloud server generates a shadow device for the OCF server device, and the generated copy resource URI of the shadow device is the same as the shadow resource URI of the original device of the OCF server device.
  • the device ID of the shadow device can be the same as or different from the device ID of the OCF server device (ie, the original device).
  • the original equipment is an air conditioner.
  • the air conditioner has two functional resources: the current temperature resource (resource URI is /currentTemperature) and the target temperature resource (resource URI is /targetTemperature).
  • the current temperature value is 25°C
  • the target temperature value is 25°C
  • the shadow device generated by the OCF cloud server also has current temperature resources (resource URI is /currentTemperature, current temperature value is 25°C) and target temperature resources (resource URI is /targetTemperature, target temperature value is 25°C)
  • the resource description of the generated shadow device is as follows:
  • “di” is the device ID of the shadow device of the air conditioner, which can be the same as or different from the device ID of the air conditioner itself
  • “resources” is the resource expression of the shadow device of the air conditioner, including the current temperature resource and target temperature of the shadow device Resource representation of resources.
  • Step S808 After the shadow device is generated, the OCF cloud server subscribes the resources of the corresponding original device to the OCF server device for the generated shadow device.
  • the OCF cloud server serves the OCF
  • the current temperature resource (resource URI: /currentTemperature) and the target temperature resource (resource URI: /targetTemperature) of the end device perform resource subscription to obtain resource change notifications of these two original resources.
  • step S809 the resource expression on the OCF server device changes. Since the OCF cloud server subscribes to the resource of the OCF server device, the OCF server device needs to send the changed resource expression to the OCF cloud server.
  • the OCF device is an air conditioner, which has the function of monitoring the current temperature. It realizes the /currentTemperature resource. The monitored current temperature changes, and the temperature value of the /currentTemperature resource changes, and the current temperature value becomes 28°C. Send the latest temperature value to the OCF cloud server.
  • step S810 the OCF server device sends a resource update notification synchronization to the OCF cloud server, and provides a resource expression of the changed resource.
  • the OCF device sends the latest resource expression of the current temperature resource to the OCF cloud server, requesting the resource expression provided in the message See below:
  • Step S811 The OCF cloud server copies the updated resource expression to the shadow device.
  • the current temperature resource of the shadow device on the OCF cloud server/current temperature value value of currentTemperature is updated to 28°C.
  • steps S809 to S811 are the uplink resource synchronization process, that is, the process of resource synchronization between the OCF server device and the shadow device on the OCF cloud server.
  • Step S812-Step S815 the OCF client device discovers and obtains the resource representation of the shadow device.
  • step S816 the OCF cloud server requests to update the resource expression of the OCF server device, and the target resource URI requested to update is the resource URI of the OCF server device that needs to update the resource expression.
  • the OCF cloud server removes the device identifier in the target resource URI, and then sends a resource update request to the OCF device.
  • the OCF cloud server sets the target resource The device identifier dc70373c-1e8d-4fb3-962e-017eaa863989 in the URI is removed, and the target resource URI of the original device requesting the update is the target temperature resource/targetTemperature.
  • the resource description provided in the request message is as follows:
  • Step S817 The OCF server device sends a resource update response to the OCF cloud server, indicating that the resource update is successful.
  • step S818 the OCF cloud server copies the updated resource expression to the shadow device.
  • the OCF cloud server updates the resource expression of the target temperature resource provided by the OCF server device in step S817, and the current temperature value of the target temperature resource/targetTemperature of the shadow device on the OCF cloud server is updated to 20°C.
  • the OCF cloud server since the OCF cloud server has subscribed to the resources of the OCF server device in step S808, the OCF cloud server can also wait for the resource change notification sent by the OCF server device to copy the updated resource expression To the shadow device.
  • steps S812 to S818 are the downlink resource synchronization process, that is, the process of resource synchronization between the shadow device of the OCF cloud server and the OCF server device.
  • Step S819 The shadow device of the OCF cloud server sends the update result of the device resource expression to the OCF client device.
  • step S820 the OCF server device sends a resource update notification to the OCF cloud server according to the resource subscription information, and provides an updated resource expression.
  • step S809-step S811, and step S812-step S818 may be executed, or only step S809-step S811 may be executed, or only step S812-step S818 may be executed.
  • step S809-step S811 may occur before step S812-step S818, and step S809-step S811 may also occur after step S812-step S818.
  • an embodiment of the present invention provides a server device.
  • the structure of the server device 900, as shown in FIG. 10, includes:
  • the first sending unit 901 is configured to send a shadow device creation request message to a cloud server, where the shadow device creation request message is used to request the cloud server to generate a shadow device of the server device;
  • the first receiving unit 902 is configured to receive a shadow device creation request response message.
  • the shadow device creation request message includes: a shadow device creation request message for shadow generation resources.
  • the shadow device creation request message includes at least one of the following: a server device identifier and an original resource expression of the server device.
  • the shadow device creation request message further includes: shadow synchronization resources of the server device.
  • the shadow device creation request response message is used to indicate that the shadow device is successfully created.
  • the first sending unit 901 is further configured to send a first resource synchronization request message to the cloud server;
  • the first resource synchronization request message is used to request the server device to perform resource synchronization with the shadow device, and the first resource synchronization request message includes the server device identifier.
  • the first receiving unit 902 is further configured to receive a first resource synchronization request response message sent by the cloud server, where the first resource synchronization request response message is used to indicate successful resource synchronization.
  • the URI of the target resource for resource synchronization is the URI of the original resource whose resource expression has changed.
  • the first receiving unit 902 is further configured to receive a second resource synchronization request message sent by the cloud server;
  • the second resource synchronization request message is used to request the server device to perform resource synchronization with the shadow device, and the second resource synchronization request message includes the server device identifier.
  • the first sending unit 901 is further configured to send a second resource synchronization request response message to the cloud server, where the second resource synchronization request response message is used to indicate successful resource synchronization.
  • the URI of the target resource for resource synchronization is the URI of the original resource whose resource expression needs to be updated.
  • the URI of the target resource of the resource synchronization is the URI of the shadow synchronization resource.
  • the URI of the target resource in the second resource synchronization request message does not include the server device identifier.
  • an embodiment of the present invention provides a cloud server.
  • the composition structure of the cloud server 1000 includes:
  • the second receiving unit 1001 is configured to receive a shadow device creation request message sent by the server device;
  • the first processing unit 1002 is configured to generate the shadow device of the server device based on the shadow device creation request message.
  • the shadow device creation request message includes: a shadow device creation request message for shadow generation resources.
  • the shadow device creation request message includes at least one of the following: a server device identifier and an original resource expression of the server device.
  • the shadow device creation request message further includes: shadow synchronization resources of the server device.
  • the device identifier of the shadow device is the same as the device identifier of the server device; and/or, the copy resource URI of the shadow device is the same as the original resource URI of the server device.
  • the resources of the shadow device include shadow synchronization resources.
  • the cloud server further includes:
  • the second sending unit 1003 is configured to send a shadow device creation request response message to the server device, where the shadow device creation request response message is used to indicate that the shadow device is successfully created.
  • the first processing unit 1002 is further configured to publish the copy resource link of the shadow device to the resource discovery directory of the cloud server.
  • the URI of the copy resource of the shadow device published in the resource discovery directory of the cloud server includes the server device identifier.
  • the second receiving unit 1001 is further configured to receive a first synchronization resource request message sent by the server device; the first resource synchronization request message is used to request the server device to communicate with each other The shadow device performs resource synchronization, and the first resource synchronization request message includes the server device identifier.
  • the cloud server further includes:
  • the third sending unit 1004 is configured to send a first resource synchronization request response message to the server device, where the first resource synchronization request response message is used to indicate successful resource synchronization.
  • the URI of the target resource for resource synchronization is the URI of the original resource whose resource expression has changed.
  • the cloud server further includes:
  • the fourth sending unit 1005 is configured to send a second resource synchronization request message to the server device;
  • the second resource synchronization request message is used to request the server device to perform resource synchronization with the shadow device, and the second resource synchronization request message includes the server device identifier.
  • the second receiving unit 1001 is further configured to receive a second resource synchronization request response message sent by the server device, where the second resource synchronization request response message is used to indicate successful resource synchronization.
  • the URI of the target resource for resource synchronization is the URI of the original resource whose resource expression needs to be updated.
  • the URI of the target resource of the resource synchronization is the URI of the shadow synchronization resource.
  • the first processing unit 1002 is further configured to update the resource expression of the shadow device on the cloud server.
  • the URI of the target resource in the second resource synchronization request message does not include the server device identifier.
  • an embodiment of the present invention provides another server device.
  • the structure of the server device 2000 as shown in FIG. 12, includes:
  • a fifth sending unit 2001 configured to send a resource expression corresponding to a resource link to a cloud server, and the resource link is published by the server device to the cloud server;
  • the resource expression is used by the cloud server to generate the shadow device of the server device.
  • the server device further includes:
  • the third receiving unit 2002 receives the request message for obtaining the resource expression sent by the cloud server.
  • the request message for obtaining a resource expression includes: obtaining a resource expression corresponding to a resource link published by the server device to the cloud server.
  • the fifth sending unit 2001 is configured to send a resource expression corresponding to a resource link to the cloud server.
  • the request message for obtaining resource expressions includes: obtaining resource expressions corresponding to all resource links published by the server device to the cloud server.
  • the fifth sending unit 2001 is configured to send resource expressions corresponding to all resource links to the cloud server, and the all resource links are published by the server device to the cloud server.
  • the server device further includes:
  • the fourth receiving unit 2003 is configured to receive a request message for subscribing to the original resource of the server device sent by the cloud server;
  • the request message for subscribing to the original resource of the server device is used to send the changed original resource expression to the cloud server when the original resource expression on the server device changes.
  • the server device further includes:
  • the fifth receiving unit 2004 is configured to receive a request message for updating the resource expression of the server device sent by the cloud server; in the request message for updating the resource expression of the server device, the URI of the target resource requested to be updated is that it needs to be updated The URI of the original resource represented by the resource.
  • the URI of the target resource does not include the server device identifier.
  • the fifth sending unit 2001 is further configured to send a request response message for updating the resource expression of the server device to the cloud server;
  • the request response message for updating the resource expression of the server device is used to indicate that the server device has successfully updated the resource.
  • an embodiment of the present invention provides another cloud server.
  • the composition structure of the cloud server 3000 as shown in FIG. 13, includes:
  • the sixth receiving unit 3001 is configured to obtain a resource expression corresponding to a resource link, and the resource link is published by the server device to the cloud server;
  • the second processing unit 3002 is configured to generate a shadow device of the server device based on the resource expression.
  • the cloud server further includes:
  • the sixth sending unit 3003 is configured to send a resource representation request message to the server device.
  • the sixth receiving unit 3001 is configured to obtain a resource expression corresponding to a resource link published by the server to the cloud server.
  • the sixth receiving unit 3001 is configured to receive a resource expression corresponding to a resource link sent by the server device.
  • the sixth receiving unit 3001 is configured to obtain resource expressions corresponding to all resource links published by the server device to the cloud server.
  • the sixth receiving unit 3001 is configured to receive resource expressions corresponding to all resource links sent by the server device, and the all resource links are published by the server device to the cloud server.
  • the method further includes:
  • the seventh sending unit 3004 is configured to send a request message for subscribing to the original resource of the server device to the server device;
  • the request message for subscribing to the original resource of the server device is used to request the server device to send the changed original resource expression to the cloud server when the original resource expression on the server device changes .
  • the second processing unit 3002 when the sixth receiving unit 3001 receives the resource expression of the resource that has changed, the second processing unit 3002 is configured to update the resource expression of the resource that has changed. Resources of the shadow device.
  • the cloud server further includes:
  • the eighth sending unit 3005 is configured to send a request message for updating the resource expression of the server device to the server device; in the request message for updating the resource expression of the server device, the uniform resource identifier of the target resource requested to be updated
  • the URI is the URI of the original resource that needs to update the resource expression.
  • the URI of the target resource does not include the server device identifier.
  • the sixth receiving unit 3001 is further configured to receive a request response message for updating the resource expression of the server device;
  • the request response message for updating the resource expression of the server device is used to indicate that the server device has successfully updated the resource.
  • the second processing unit 3002 is configured to update the resource of the shadow device based on the request response message for updating the resource expression of the server device.
  • the device identifier of the shadow device is the same as the device identifier of the server device.
  • the original device refers to the server device; in the embodiment of the present invention, the server device may be an OCF server device, the cloud server may be an OCF cloud server, and the client device may be OCF Client device.
  • the embodiment of the present invention also provides a server device, including a processor and a memory for storing a computer program that can run on the processor, wherein the processor is used to execute the server device when the computer program is running Perform the steps of the shadow device generation method.
  • the embodiment of the present invention also provides a cloud server, including a processor and a memory for storing a computer program that can run on the processor, wherein the processor is used to execute the above-mentioned cloud server when the computer program is running.
  • the steps of the shadow device generation method are described in detail below.
  • the electronic device 700 includes: at least one processor 701, a memory 702, and at least one network interface 704.
  • the various components in the electronic device 700 are coupled together through the bus system 705. It can be understood that the bus system 705 is used to implement connection and communication between these components.
  • the bus system 705 also includes a power bus, a control bus, and a status signal bus. However, for clarity of description, various buses are marked as the bus system 705 in FIG. 14.
  • the memory 702 may be a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memory.
  • the non-volatile memory may be ROM, Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), and electrically erasable Programmable read-only memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), magnetic random access memory (FRAM, ferromagnetic random access memory), flash memory (Flash Memory), magnetic surface memory, optical disk, or CD-ROM -ROM, Compact Disc Read-Only Memory); Magnetic surface memory can be disk storage or tape storage.
  • the volatile memory may be random access memory (RAM, Random Access Memory), which is used as an external cache.
  • RAM random access memory
  • SRAM static random access memory
  • SSRAM synchronous static random access memory
  • DRAM Dynamic Random Access Memory
  • SDRAM Synchronous Dynamic Random Access Memory
  • DDRSDRAM Double Data Rate Synchronous Dynamic Random Access Memory
  • ESDRAM enhanced -Type synchronous dynamic random access memory
  • SLDRAM SyncLink Dynamic Random Access Memory
  • direct memory bus random access memory DRRAM, Direct Rambus Random Access Memory
  • DRRAM Direct Rambus Random Access Memory
  • the memory 702 described in the embodiment of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.
  • the memory 702 in the embodiment of the present invention is used to store various types of data to support the operation of the electronic device 700. Examples of these data include: any computer program used to operate on the electronic device 700, such as the application program 7022.
  • the program for implementing the method of the embodiment of the present invention may be included in the application program 7022.
  • the method disclosed in the foregoing embodiment of the present invention may be applied to the processor 701 or implemented by the processor 701.
  • the processor 701 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 701 or instructions in the form of software.
  • the aforementioned processor 701 may be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the processor 701 may implement or execute various methods, steps, and logical block diagrams disclosed in the embodiments of the present invention.
  • the general-purpose processor may be a microprocessor or any conventional processor.
  • the steps of the method disclosed in the embodiments of the present invention can be directly embodied as being executed and completed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor.
  • the software module may be located in a storage medium, and the storage medium is located in the memory 702.
  • the processor 701 reads the information in the memory 702 and completes the steps of the foregoing method in combination with its hardware.
  • the electronic device 700 may be used by one or more application specific integrated circuits (ASIC, Application Specific Integrated Circuit), DSP, programmable logic device (PLD, Programmable Logic Device), and complex programmable logic device (CPLD). , Complex Programmable Logic Device), FPGA, general-purpose processor, controller, MCU, MPU, or other electronic components to implement the foregoing method.
  • ASIC Application Specific Integrated Circuit
  • DSP digital signal processor
  • PLD programmable logic device
  • CPLD complex programmable logic device
  • FPGA field-programmable Logic Device
  • controller MCU
  • MPU or other electronic components to implement the foregoing method.
  • the embodiment of the present application also provides a storage medium for storing computer programs.
  • the storage medium can be applied to the terminal device in the embodiment of the present application, and the computer program causes the computer to execute the corresponding process in each method of the embodiment of the present application.
  • the computer program causes the computer to execute the corresponding process in each method of the embodiment of the present application.
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

L'invention concerne un procédé de génération d'un dispositif fantôme, comprenant les étapes suivantes : un dispositif serveur envoie un message de demande de création de dispositif fantôme à un serveur en nuage, le message de demande de création de dispositif fantôme étant utilisé pour demander au serveur en nuage de générer un dispositif fantôme du dispositif serveur (S201) ; le dispositif serveur reçoit un message de réponse de demande de création de dispositif fantôme (S202). La présente invention concerne également un autre procédé de génération d'un dispositif fantôme, d'un dispositif et d'un support d'informations.
PCT/CN2019/097579 2019-07-24 2019-07-24 Procédé de génération de dispositif fantôme, dispositif et support d'informations WO2021012234A1 (fr)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2019/097579 WO2021012234A1 (fr) 2019-07-24 2019-07-24 Procédé de génération de dispositif fantôme, dispositif et support d'informations
CN201980092716.XA CN113454586A (zh) 2019-07-24 2019-07-24 一种影子设备的生成方法、设备及存储介质

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/097579 WO2021012234A1 (fr) 2019-07-24 2019-07-24 Procédé de génération de dispositif fantôme, dispositif et support d'informations

Publications (1)

Publication Number Publication Date
WO2021012234A1 true WO2021012234A1 (fr) 2021-01-28

Family

ID=74192483

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/097579 WO2021012234A1 (fr) 2019-07-24 2019-07-24 Procédé de génération de dispositif fantôme, dispositif et support d'informations

Country Status (2)

Country Link
CN (1) CN113454586A (fr)
WO (1) WO2021012234A1 (fr)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113037771A (zh) * 2021-03-29 2021-06-25 北京金山云网络技术有限公司 设备影子的控制方法及装置、存储介质、电子设备
CN114726806A (zh) * 2022-03-29 2022-07-08 驭势(上海)汽车科技有限公司 智能设备影子管理方法、系统、装置、设备和介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116264546A (zh) * 2021-12-15 2023-06-16 中国移动通信有限公司研究院 一种数字孪生网络构建方法及网元

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105634889A (zh) * 2016-01-29 2016-06-01 深圳市美贝壳科技有限公司 家庭云系统、方法及设备
CN107003836A (zh) * 2014-10-27 2017-08-01 艾拉物联公司 用于所连接的消费者设备的灵活设备模板
CN108696575A (zh) * 2017-04-10 2018-10-23 艾拉物联公司 物联网平台中设备的第三方应用控制
CN109074036A (zh) * 2016-04-21 2018-12-21 飞利浦照明控股有限公司 用于对物理环境的基于云的监测和控制的系统和方法
WO2019078489A1 (fr) * 2017-10-19 2019-04-25 에스케이텔레콤 주식회사 Procédé et dispositif serveur permettant de fournir un service de plateforme de l'internet des objets

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109446439B (zh) * 2018-09-30 2022-09-06 青岛海尔科技有限公司 一种资源目录的选择方法、装置、系统及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107003836A (zh) * 2014-10-27 2017-08-01 艾拉物联公司 用于所连接的消费者设备的灵活设备模板
CN105634889A (zh) * 2016-01-29 2016-06-01 深圳市美贝壳科技有限公司 家庭云系统、方法及设备
CN109074036A (zh) * 2016-04-21 2018-12-21 飞利浦照明控股有限公司 用于对物理环境的基于云的监测和控制的系统和方法
CN108696575A (zh) * 2017-04-10 2018-10-23 艾拉物联公司 物联网平台中设备的第三方应用控制
WO2019078489A1 (fr) * 2017-10-19 2019-04-25 에스케이텔레콤 주식회사 Procédé et dispositif serveur permettant de fournir un service de plateforme de l'internet des objets

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113037771A (zh) * 2021-03-29 2021-06-25 北京金山云网络技术有限公司 设备影子的控制方法及装置、存储介质、电子设备
CN113037771B (zh) * 2021-03-29 2022-11-08 北京金山云网络技术有限公司 设备影子的控制方法及装置、存储介质、电子设备
CN114726806A (zh) * 2022-03-29 2022-07-08 驭势(上海)汽车科技有限公司 智能设备影子管理方法、系统、装置、设备和介质

Also Published As

Publication number Publication date
CN113454586A (zh) 2021-09-28

Similar Documents

Publication Publication Date Title
WO2021012234A1 (fr) Procédé de génération de dispositif fantôme, dispositif et support d'informations
EP3468100B1 (fr) Procédé et appareil de gestion de tranche de réseau
AU2021277736A1 (en) Pdu type setting method, ue policy setting method, and related entity
WO2019042110A1 (fr) Procédé de publication d'abonnement, et serveur
WO2017035735A1 (fr) Procédé et appareil pour déployer des services de réseau
CN114145054A (zh) 用于支持流量导向通过服务功能链的系统和方法
CN106598789B (zh) 容器服务容灾的方法、装置、生产站点和灾备站点
EP3836639B1 (fr) Procédés et dispositifs de détermination de cycle de synchronisation
US10148739B2 (en) M2M data querying and invoking methods, querying and invoking devices, and system
WO2018024121A1 (fr) Procédé de gestion de fonction de réseau (nf) et dispositif de gestion nf
WO2019120073A1 (fr) Procédé, dispositif et système de transmission de données
WO2020042848A1 (fr) Procédé et appareil de gestion de tranches de réseau
EP2874376A1 (fr) Procédé et système de synchronisation d'informations entre des passerelles de mémorisation de nuage et passerelle de mémorisation de nuage
CN112654100B9 (zh) 一种信息处理方法和相关网络设备
EP3174318B1 (fr) Procédé pour réaliser une notification d'attribut de ressource, et entité de service commun
US20210051573A1 (en) Inclusion of a message proxy in a service based architecture
KR20200097336A (ko) 세션 확립을 위한 방법 및 장치
WO2015109950A1 (fr) Procédé et appareil de mise en œuvre d'un groupe de ressources de service
WO2021100577A1 (fr) Dispositif de gestion et procédé de synchronisation d'informations d'abonné
WO2019095951A1 (fr) Procédé et dispositif de communication
WO2021142849A1 (fr) Procédé et appareil pour configurer, découvrir et joindre un domaine de sécurité, et dispositif électronique
CN113454966B (zh) 一种影子设备的生成方法、设备及存储介质
WO2021072672A1 (fr) Procédé et appareil d'abonnement à une ressource
EP2908479B1 (fr) Rocédé, appareil et système destinés à mettre en oeuvre un traitement de tunnel
WO2020191639A1 (fr) Procédé de communication pour dispositif, dispositif et support de stockage

Legal Events

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

Ref document number: 19938571

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19938571

Country of ref document: EP

Kind code of ref document: A1