WO2018010366A1 - 信息同步方法及装置 - Google Patents

信息同步方法及装置 Download PDF

Info

Publication number
WO2018010366A1
WO2018010366A1 PCT/CN2016/108411 CN2016108411W WO2018010366A1 WO 2018010366 A1 WO2018010366 A1 WO 2018010366A1 CN 2016108411 W CN2016108411 W CN 2016108411W WO 2018010366 A1 WO2018010366 A1 WO 2018010366A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
resource
context
request message
context information
Prior art date
Application number
PCT/CN2016/108411
Other languages
English (en)
French (fr)
Inventor
杨坤
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to EP16908689.9A priority Critical patent/EP3487147A4/en
Priority to US16/316,438 priority patent/US20190312929A1/en
Publication of WO2018010366A1 publication Critical patent/WO2018010366A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]

Definitions

  • the present invention relates to the field of communications, and in particular to an information synchronization method and apparatus.
  • the AllJoyn Gateway Agent allows users to seamlessly experience the AllJoyn service when they leave the near-end network.
  • the user sets up a remotely accessible service list in the near-end network, including the device, the application (Application, referred to as App), and the interface. After that, the user accesses the AllJoyn service remotely through the Cloud Service (CS).
  • CS Cloud Service
  • the control App on the terminal (for example, Mobile Device (MD)) enables the user to set a remote profile in the near-end network, and can also control the device and receive notifications after leaving the near-end network, as in In the near-end network.
  • MD Mobile Device
  • the third-party protocol that GA connects to its CS is specified by the service provider.
  • the components that implement remote access in GA include:
  • the gateway manages the App, and controls the App to manage the remote configuration file and expose the remote configuration file to the connector App;
  • the Control App discovers the Gateway Management App in an advertisement-based manner, and the Gateway Management App and the Connector App communicate with each other via the same AllJoyn router preset on the GA.
  • the terminal When the terminal remotely controls the device in the near-end network via the Internet, it needs to be implemented by the CS. At this time, the CS needs to acquire the context information of the terminal to process the service request of the terminal; and when the terminal returns to the near-end network, the user no longer If you want to connect to the Internet, you need to directly control the devices in the near-end network through GA. In this case, the GA needs to obtain the context information of the terminal to process. MD's business request.
  • the terminal accesses the AllJoyn service remotely, only the CS acquires the context information of the terminal, and the GA does not have the context information of the terminal. Therefore, after the terminal returns to the near-end network, the GA needs to pass through the intermediate network.
  • the terminal obtains the terminal context information from the cloud server CS or the terminal. In the process of obtaining, a large amount of signaling overhead is generated, and the load of the network is increased.
  • the embodiment of the invention provides an information synchronization method and device, which solves at least the problem of generating a large amount of signaling overhead in the process of obtaining the terminal context information by the gateway agent GA in the related art.
  • an information synchronization method comprising: receiving a first request message sent by a terminal for requesting creation of context information of the terminal, wherein the first request message includes a first context parameter of the context information of the terminal; creating context information of the terminal according to the first context parameter; and according to the identifier obtained from the first context parameter for identifying that the terminal needs to be created a gateway proxy identifier of the gateway agent of the context information, sending a second request message to the gateway proxy identified by the gateway proxy, wherein the second request message is used to request the gateway proxy to create the context information of the terminal.
  • the creating the context information of the terminal according to the first context parameter includes: creating a sub-resource in the original resource of the terminal according to the first context parameter, and setting, according to the first context parameter, An attribute value of the sub-resource; the identifier that is obtained from the first context parameter to identify the gateway proxy identifier of the gateway proxy that needs to create context information of the terminal, and the identifier to the gateway proxy And sending, by the gateway proxy, the second request message, to: identifying, by the gateway proxy identifier of the gateway proxy that is used to identify context information that needs to be created by using the first context parameter, to the gateway proxy
  • the gateway proxy sends a request message for creating an advertisement resource corresponding to the sub-resource, where the request message for creating an advertisement resource corresponding to the sub-resource is used to request the gateway proxy to create an advertisement resource corresponding to the sub-resource.
  • setting an attribute of the advertisement resource according to the request message The value is the attribute value of the child resource.
  • the method further includes: receiving, by the terminal, a third request message for requesting to update context information of the terminal, where the third request message includes a context for updating the terminal a second context parameter of the information; updating locally stored context information of the terminal according to the second context parameter; and transmitting a fourth request message to the gateway proxy according to the second context parameter, wherein the fourth The request message is used to request to update context information of the terminal stored by the gateway proxy.
  • updating the locally stored context information of the terminal according to the second context parameter; and sending the fourth request message to the gateway proxy according to the second context parameter including: updating according to the second context parameter An attribute value of the sub-resource in the original resource of the terminal, and sending a fifth request message to the gateway proxy according to the second context parameter, where the fifth request message is used to request the gateway proxy to update the sub-resource The attribute value of the corresponding notification resource.
  • an information synchronization method comprising: receiving a second request message sent by a cloud server for requesting creation of the context information of the terminal, wherein the second request message A third context parameter is included; the context information of the terminal is created according to the third context parameter.
  • the creating the context information of the terminal according to the third context parameter includes: creating, according to the third context parameter, an advertisement resource corresponding to the child resource in the original resource of the terminal, according to the foregoing
  • the three context parameters set the attribute value of the advertisement resource to the context information of the terminal, where the context information of the terminal is an attribute value of the child resource in the original resource of the terminal in the cloud server.
  • the method further includes: receiving, by the cloud server, a fourth request message for requesting to update context information of the terminal, where the fourth request message includes a fourth context parameter;
  • the context parameter updates the context information of the terminal stored locally.
  • updating the locally stored upper and lower terminals according to the fourth context parameter includes: updating an attribute value of the advertisement resource corresponding to the sub resource according to the fourth context parameter.
  • the method further includes: detecting the terminal access; processing the service of the terminal according to the context information of the terminal stored locally.
  • processing the service of the terminal according to the context information of the terminal that is stored locally and processing the service of the terminal according to an attribute value of the advertisement resource corresponding to the sub-resource.
  • an information synchronization apparatus including: a first receiving module, configured to receive a first request message sent by a terminal for requesting to create context information of the terminal, where The first request message includes a first context parameter for creating context information of the terminal; a first creating module, configured to create context information of the terminal according to the first context parameter; and a sending module, configured to a gateway proxy identifier of the gateway proxy that is used to identify the context information that needs to be created in the first context parameter, and sends a second request message to the gateway proxy that is identified by the gateway proxy, where the The second request message is used to request the gateway agent to create the context information of the terminal.
  • the first creating module is further configured to: create a sub-resource in the original resource of the terminal according to the first context parameter, and set an attribute value of the sub-resource according to the first context parameter;
  • the sending module is further configured to identify, according to the gateway proxy identifier of the gateway proxy that is used to identify context information that needs to be created from the first context parameter, to the gateway proxy.
  • the gateway agent sends a request message for creating an advertisement resource corresponding to the child resource, where the request message for creating the advertisement resource corresponding to the child resource is used to request the gateway agent to create an advertisement resource corresponding to the child resource, and according to The request message sets an attribute value of the advertisement resource to an attribute value of the child resource.
  • the device further includes: a second receiving module, configured to receive a third request message sent by the terminal for requesting to update context information of the terminal, where the third request message is included in the third request message a second context parameter for updating context information of the terminal; first And an update module configured to update the locally stored context information of the terminal according to the second context parameter; and send a fourth request message to the gateway proxy according to the second context parameter, wherein the fourth request message Used to request to update context information of the terminal stored by the gateway proxy.
  • a second receiving module configured to receive a third request message sent by the terminal for requesting to update context information of the terminal, where the third request message is included in the third request message a second context parameter for updating context information of the terminal
  • first And an update module configured to update the locally stored context information of the terminal according to the second context parameter
  • the first update module is further configured to update an attribute value of the sub-resource in the original resource of the terminal according to the second context parameter, and proxy to the gateway according to the second context parameter. And sending a fifth request message, where the fifth request message is used to request the gateway agent to update the attribute value of the advertisement resource corresponding to the sub-resource.
  • an information synchronization apparatus including: a third receiving module, configured to receive a second request message sent by a cloud server for requesting to create the context information of the terminal, where The second request message includes a third context parameter, and the second creation module is configured to create the context information of the terminal according to the third context parameter.
  • the second creating module is further configured to create an advertising resource corresponding to the sub-resource in the original resource of the terminal according to the third context parameter, and set the advertising resource according to the third context parameter.
  • the attribute value is context information of the terminal, where the context information of the terminal is an attribute value of the sub-resource in the original resource of the terminal in the cloud server.
  • the device further includes: a fourth receiving module, configured to receive a fourth request message sent by the cloud server for requesting to update context information of the terminal, where the fourth request message includes a fourth context
  • a second update module configured to update the locally stored context information of the terminal according to the fourth context parameter.
  • the second update module is further configured to update an attribute value of the advertisement resource corresponding to the sub resource according to the fourth context parameter.
  • the device further includes: a detecting module, configured to detect the terminal access; and a processing module, configured to process the service of the terminal according to the locally stored context information of the terminal.
  • a detecting module configured to detect the terminal access
  • a processing module configured to process the service of the terminal according to the locally stored context information of the terminal.
  • the processing module is further configured to: according to the notification resource corresponding to the sub resource The attribute value is used to process the service of the terminal.
  • a storage medium is also provided.
  • the storage medium is configured to store program code for performing the following steps: receiving a first request message sent by a terminal for requesting creation of context information of the terminal, wherein the first request message includes means for creating the terminal a first context parameter of the context information; the context information of the terminal is created according to the first context parameter; and the context information used to identify the need to create the terminal is obtained according to the first context parameter
  • the gateway proxy identifier of the gateway proxy sends a second request message to the gateway proxy identified by the gateway proxy, wherein the second request message is used to request the gateway proxy to create the context information of the terminal.
  • the storage medium is further configured to store program code for performing the following steps: creating context information of the terminal according to the first context parameter comprises: original resource at the terminal according to the first context parameter Creating a child resource, and setting an attribute value of the child resource according to the first context parameter; according to the gateway agent obtained from the first context parameter for identifying context information that needs to create the terminal And the sending, by the gateway proxy, the second request message to the gateway proxy that is sent by the gateway proxy, including: according to the identifier obtained from the first context parameter, used to identify context information that needs to be created
  • the gateway proxy identifier of the gateway proxy sends a request message for creating an advertisement resource corresponding to the sub-resource to the gateway proxy that is identified by the gateway proxy, where the request message for the advertisement resource corresponding to the sub-resource is created. And configured to request the gateway proxy to create an advertisement resource corresponding to the sub-resource, and set according to the request message Said advertisement resource attribute value of the attribute value of the sub resource.
  • the storage medium is further configured to store program code for performing the following steps: the method further comprises: receiving a third request message sent by the terminal for requesting to update context information of the terminal, where The third request message includes a second context parameter for updating context information of the terminal; updating locally stored context information of the terminal according to the second context parameter; and The gateway agent sends a fourth request message, where the fourth request message is used to request to update context information of the terminal stored by the gateway proxy.
  • the storage medium is further configured to store program code for performing: updating context information of the terminal stored locally according to the second context parameter; and proxying the gateway according to the second context parameter
  • the sending the fourth request message includes: updating an attribute value of the sub-resource in the original resource of the terminal according to the second context parameter, and sending a fifth request message to the gateway proxy according to the second context parameter, where The fifth request message is used to request the gateway agent to update the attribute value of the advertisement resource corresponding to the sub-resource.
  • an information synchronization method comprising: receiving a second request message sent by a cloud server for requesting creation of the context information of the terminal, wherein the second request message A third context parameter is included; the context information of the terminal is created according to the third context parameter.
  • the storage medium is further configured to store program code for performing the following steps: creating the context information of the terminal according to the third context parameter comprises: creating the terminal according to the third context parameter An advertised resource corresponding to a sub-resource in the original resource, and setting, according to the third context parameter, that the attribute value of the advertised resource is context information of the terminal, where the context information of the terminal is the terminal of the cloud server The attribute value of the child resource in the original resource.
  • the storage medium is further configured to store program code for: receiving a fourth request message sent by the cloud server for requesting update of context information of the terminal, wherein the fourth request message includes a four context parameter; updating the locally stored context information of the terminal according to the fourth context parameter.
  • the storage medium is further configured to store program code for performing the following steps: updating the locally stored context information of the terminal according to the fourth context parameter comprises: updating the child according to the fourth context parameter The attribute value of the notification resource corresponding to the resource.
  • the storage medium is further configured to store program code for performing the following steps: detecting the terminal access; processing the service of the terminal according to the locally stored context information of the terminal.
  • the storage medium is further configured to store program code for performing the following steps: The locally stored information of the terminal is processed, and the service of the terminal is processed, and the service of the terminal is processed according to an attribute value of the advertisement resource corresponding to the sub-resource.
  • the first request message sent by the terminal for requesting to create context information of the terminal where the first request message includes a first context parameter for creating context information of the terminal, according to the first context parameter, Creating a context information of the terminal; sending a second request message to the gateway proxy identified by the gateway proxy according to the gateway proxy identifier of the gateway proxy used to identify the context information that needs to be created from the first context parameter, where the second request is sent
  • the message is used to request the gateway agent to create context information for the terminal.
  • the context information of the terminal is synchronized to the gateway proxy, and the gateway proxy GA is not required to obtain the terminal context information from the cloud server CS or the terminal through the intermediate network element. Therefore, the related technology can be solved.
  • a large amount of signaling overhead is generated, and the signaling overhead is saved.
  • FIG. 1 is a block diagram showing the hardware structure of a network element of an information synchronization method according to an embodiment of the present invention
  • FIG. 2 is a flowchart 1 of an information synchronization method according to an embodiment of the present invention.
  • FIG. 3 is a second flowchart of an information synchronization method according to an embodiment of the present invention.
  • FIG. 5 is a preferred flowchart of an information synchronization method according to an embodiment of the present invention.
  • FIG. 6 is a structural block diagram 1 of an information synchronization apparatus according to an embodiment of the present invention.
  • FIG. 7 is a block diagram 1 of a preferred structure of an information synchronizing apparatus according to an embodiment of the present invention.
  • FIG. 8 is a structural block diagram 2 of an information synchronization apparatus according to an embodiment of the present invention.
  • FIG. 9 is a block diagram 2 of a preferred structure of an information synchronizing apparatus according to an embodiment of the present invention.
  • Figure 10 is a block diagram 3 showing a preferred structure of an information synchronizing apparatus according to an embodiment of the present invention.
  • FIG. 1 is a hardware structural block diagram of a network element of an information synchronization method according to an embodiment of the present invention.
  • network element 10 may include one or more (only one shown) processor 102 (processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA)
  • processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA)
  • a memory 104 for storing data
  • a transmission device 106 for communication functions.
  • FIG. 1 is merely illustrative and does not limit the structure of the above electronic device.
  • network element 10 may also include more or fewer components than those shown in FIG. 1, or have a different configuration than that shown in FIG.
  • the memory 104 can be used to store software programs and modules of application software, such as program instructions/modules corresponding to the information synchronization method in the embodiment of the present invention, and the processor 102 executes various programs by running software programs and modules stored in the memory 104. Functional application and data processing, that is, the above method is implemented.
  • Memory 104 may include high speed random access memory, and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • memory 104 may further include memory remotely located relative to processor 102, which may be connected to network element 10 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • Transmission device 106 is for receiving or transmitting data via a network.
  • the above specific network example may include a wireless network provided by a communication provider of the network element 10.
  • the transmission The device 106 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet.
  • the transmission device 106 can be a Radio Frequency (RF) module for communicating with the Internet wirelessly.
  • NIC Network Interface Controller
  • RF Radio Frequency
  • FIG. 2 is a flowchart 1 of an information synchronization method according to an embodiment of the present invention. As shown in FIG. 2, the flow includes the following steps:
  • Step S202 the first request message sent by the terminal for requesting to create context information of the terminal, where the first request message includes a first context parameter for creating context information of the terminal;
  • Step S204 Create context information of the terminal according to the first context parameter.
  • Step S206 Send a second request message to the gateway proxy identified by the gateway proxy according to the gateway proxy identifier of the gateway proxy used to identify the context information that needs to be created from the first context parameter, where the second request message is used. Request the gateway agent to create context information for the terminal.
  • the context information of the terminal is synchronized to the gateway proxy, and the gateway proxy GA is not required to obtain the terminal context information from the cloud server CS or the terminal through the intermediate network element.
  • the gateway proxy GA in the process of obtaining the terminal context information by the gateway proxy GA, a large amount of signaling overhead is generated, and the signaling overhead is saved.
  • the creating the context information of the terminal according to the first context parameter includes: creating a sub-resource in the original resource of the terminal according to the first context parameter, and setting an attribute value of the sub-resource according to the first context parameter.
  • the sub-resource ⁇ Contex> of the original resource of the terminal is created according to the first context parameter
  • the attribute value in the sub-resource ⁇ Contex> includes the context information of the terminal according to the first context parameter.
  • the second request message includes: sending, according to a gateway proxy identifier of the gateway proxy that is used to identify the context information that needs to be created from the first context parameter, a request message for creating an advertisement resource corresponding to the sub-resource to the gateway proxy identified by the gateway proxy.
  • the request message for creating the advertised resource corresponding to the sub-resource is used to request the gateway proxy to create the advertised resource corresponding to the sub-resource, and set the attribute value of the advertised resource to the attribute value of the sub-resource according to the request message.
  • the notification resource request can be sent to the gateway proxy GA, so that the gateway proxy can create an advertisement resource corresponding to the sub-resource ⁇ Contex> according to the request message, and set the advertisement resource ⁇ Contex> according to the request message.
  • the attribute value includes the context information of the terminal.
  • the terminal receiving, by the terminal, a third request message for requesting to update context information of the terminal, where the third request message includes a second context parameter for updating context information of the terminal; and updating the local according to the second context parameter Storing the context information of the terminal; and transmitting the fourth request message to the gateway proxy according to the second context parameter, wherein the fourth request message is used to request to update the context information of the terminal stored by the gateway proxy.
  • the context information of the terminal is updated in real time, and it is ensured that the latest service request of the terminal is processed according to the synchronized terminal context information.
  • updating the context information of the locally stored terminal according to the second context parameter; and sending the fourth request message to the gateway proxy according to the second context parameter including: updating the attribute value of the sub-resource in the original resource of the terminal according to the second context parameter And sending a fifth request message to the gateway proxy according to the second context parameter, where the fifth request message is used to request the gateway proxy to update the attribute value of the advertisement resource corresponding to the sub-resource.
  • the request message includes a second context parameter
  • the sub-resource of the original resource is updated according to the second context parameter.
  • the attribute value of ⁇ Context> is the updated terminal context information, and according to the gateway proxy identifier (for example, may be set in the advertisement parameter, sent by the terminal together with the second context parameter), sending the request to update the context information of the terminal stored by the gateway proxy.
  • the fourth request message requests the gateway agent to update the attribute value of the advertisement resource ⁇ Context> corresponding to the sub-resource to the updated terminal context information.
  • FIG. 3 is based on the present invention.
  • Step S302 receiving a second request message sent by the cloud server for requesting to create context information of the terminal, where the second request message includes a third context parameter;
  • Step S304 creating context information of the terminal according to the third context parameter.
  • the context information of the terminal is synchronized to the gateway proxy, and the gateway proxy GA is not required to obtain the terminal context information from the cloud server CS or the terminal through the intermediate network element. Therefore, the gateway proxy GA acquisition in the related art can be solved. In the process of terminal context information, a large amount of signaling overhead is generated, which saves signaling overhead.
  • the creating the context information of the terminal according to the third context parameter includes: creating an advertisement resource corresponding to the child resource in the original resource of the terminal according to the third context parameter, and setting the attribute value of the advertisement resource to the terminal according to the third context parameter.
  • the context information where the context information of the terminal is an attribute value of the sub-resource in the original resource of the terminal in the cloud server.
  • the gateway agent may create an advertisement resource corresponding to the sub-resource ⁇ Contex> according to the third context parameter included in the request message, and set the attribute value of the advertisement resource ⁇ Contex> according to the third context parameter.
  • the context information of the terminal includes: creating an advertisement resource corresponding to the child resource in the original resource of the terminal according to the third context parameter, and setting the attribute value of the advertisement resource to the terminal according to the third context parameter.
  • the context information of the terminal is updated in real time, and it is ensured that the latest service request of the terminal is processed according to the synchronized terminal context information.
  • updating the context information of the locally stored terminal according to the fourth context parameter includes: updating, according to the fourth context parameter, an attribute value of the advertisement resource corresponding to the sub resource.
  • the gateway agent updates the attribute value of the sub-resource corresponding advertisement resource ⁇ Context> according to the fourth context parameter to the updated terminal context information.
  • the terminal access is detected; and the service of the terminal is processed according to the context information of the locally stored terminal.
  • the gateway agent The GA does not need to synchronize the context information from the cloud server CS or the terminal through the intermediate network element, and directly obtains the local information from the GA, thereby saving signaling overhead and improving the user experience.
  • processing the service of the terminal according to the context information of the locally stored terminal and processing the service of the terminal according to the attribute value of the advertisement resource corresponding to the sub-resource.
  • the attribute value of the notification resource ⁇ Context> is locally retrieved to obtain the context information of the terminal.
  • the creation of the terminal context information by using the sub-resources related to the creation of the terminal context information is taken as an example, and the mobile device requests the cloud server (ie, the terminal) to create its context information-related sub-category for the resource created by the cloud server (ie, the terminal).
  • FIG. 4 is a schematic diagram of a local/remote access of an AllJoyn service according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of a method for synchronizing information according to an embodiment of the present invention. Referring to FIG. 4, the method is as shown in FIG.
  • Step S502 The control App in the mobile device MD sends a create resource request message (the same as the above-mentioned first request message for creating the context information of the terminal) to the cloud server CS, where the request message includes the first context parameter and the notification parameter, specifically for:
  • Resource type Create a sub-resource of type ⁇ Context>
  • Step S504 After receiving the request message for controlling the App in the mobile device MD, the cloud server CS searches for the resource “Rsc-CA” according to the original resource address, and creates a resource “Rsc-CA”.
  • User context information including information such as the network environment in which the user is located and the physical state of the user;
  • Terminal context information including information such as communication, calculation, service presentation, etc. of the terminal itself;
  • Network context information including network description, general resources of the network, and context information of the stream.
  • Step S506 The cloud server CS determines whether the identifier of the gateway proxy GA in the advertisement parameter exists in the "advertised to" attribute of the resource "Rsc-CA”, and if so, sends an update notification resource request to the gateway proxy GA to request the gateway proxy GA.
  • An advertised sub-resource ⁇ Context> corresponding to the sub-resource ⁇ Context> is created in the advertised resource Rsc-CA_Annc corresponding to the original resource "Rsc-CA" in the GA, and the request message is used to request the gateway proxy to create the terminal.
  • the second request message of the context information includes a third context parameter, specifically:
  • Step S508 After receiving the request message of the cloud server CS, the gateway proxy GA searches for the advertisement resource "Rsc-CA_Annc" according to the address, and creates a notification sub-resource ⁇ Context> for the advertisement resource "Rsc-CA_Annc", and the attribute value and the original resource.
  • the sub-resource ⁇ Context> of "Rsc-CA” is the same;
  • Step S510 The gateway agent GA sends an update notification resource response to the cloud server CS, where the response message includes a URI of the notification sub-resource ⁇ Context> of the advertisement resource "Rsc-CA_Annc".
  • Step S512 After receiving the response message of the gateway proxy GA, the cloud server CS updates the attribute “advertised attribute” of the resource “Rsc-CA”, and sends a create resource response to the control App, where the response message includes the original resource “Rsc-CA”.
  • Step S514 When the context information of the mobile device MD changes, the mobile device MD controls the App to send an update resource request (the same as the above-mentioned context information for requesting to update the terminal).
  • the third request message is sent to the cloud server CS, where the request message includes the second context parameter and the notification parameter, specifically:
  • Step S516 After receiving the request message for controlling the App, the cloud server CS updates the attribute value of the sub-resource ⁇ Context> of the original resource “Rsc-CA” according to the second context parameter to the updated terminal context information.
  • Step S518 The cloud server CS sends an update advertisement resource request to the gateway proxy GA according to the advertisement parameter, and requests to update the attribute of the sub-resource ⁇ Context> of the advertisement resource "Rsc-CA_Annc", and the request message (same as the above request for updating the gateway proxy storage)
  • the fourth request message of the context information of the terminal includes a fourth context parameter, specifically:
  • Step S520 After receiving the request message of the cloud server CS, the gateway agent GA updates the attribute value of the advertised sub-resource ⁇ Context> of the advertised resource "Rsc-CA_Annc" according to the fourth context parameter to the updated terminal context information.
  • Step S522 The gateway agent GA sends an update notification sub-resource response to the cloud server CS, and the response message includes a URI of the notification sub-resource ⁇ Context> of the advertisement resource "Rsc-CA_Annc".
  • Step S524 After receiving the response message of the gateway proxy GA, the cloud server CS sends an update sub-resource response to the control App, where the response message includes the URI of the sub-resource ⁇ Context> of the original resource “Rsc-CA”.
  • Step S526 The mobile device MD enters the near-end network.
  • Step S528 When the gateway agent GA needs to acquire the context information of the mobile device MD, the attribute of the sub-resource ⁇ Context> of the advertisement resource "Rsc-CA_Annc" is locally retrieved.
  • step S506a may also be adopted.
  • S508a and S510a steps S506a, S508a and S510a will be described below.
  • step S506a the cloud server CS determines whether there is an identifier of the gateway proxy GA in the advertisement parameter in the "advertised to" attribute of the resource "Rsc-CA”, and if not, sends a request to create an advertisement resource to the gateway proxy GA, requesting to create a child resource.
  • the Query resource of ⁇ Context>, the request message (the same as the above-mentioned second request message for requesting the gateway agent to create the context information of the terminal) contains the context parameter.
  • Step S508a after receiving the request message of the cloud server CS, the gateway proxy GA creates an advertisement resource "Rsc-SC_Annc" for the cloud server CS, and creates a notification sub-resource ⁇ Context> for the advertisement resource "Rsc-SC_Annc", and its attribute value and The child resource ⁇ Context> of the original resource "Rsc-CA" is the same.
  • step S510a the gateway agent GA sends an update notification resource response to the cloud server CS, and the response message includes a URI of the notification sub-resource ⁇ Context> of the advertisement resource "Rsc-SC_Annc”.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic).
  • the disc, the disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods of various embodiments of the present invention.
  • module may implement a combination of software and/or hardware of a predetermined function.
  • apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 6 is a structural block diagram 1 of an information synchronizing apparatus according to an embodiment of the present invention, as shown in FIG.
  • the device includes:
  • the first receiving module 62 is configured to receive, by the terminal, a first request message for requesting to create context information of the terminal, where the first request message includes a first context parameter for creating context information of the terminal;
  • the first creating module 64 is configured to create context information of the terminal according to the first context parameter
  • the sending module 66 is connected to the first creating module 64, and configured to send the first to the gateway proxy identified by the gateway proxy according to the gateway proxy identifier of the gateway proxy used to identify the context information that needs to be created from the first context parameter.
  • the first creating module 64 is further configured to: create a sub-resource in the original resource of the terminal according to the first context parameter, and set an attribute value of the sub-resource according to the first context parameter;
  • the sending module 66 is further configured to a gateway proxy identifier of the gateway proxy that is used to identify the context information that needs to be created in the first context parameter, and sends a request message for creating the advertisement resource corresponding to the sub-resource to the gateway proxy identified by the gateway proxy, where the sub-resource corresponding to the sub-resource is created
  • the request message of the advertised resource is used to request the gateway agent to create an advertised resource corresponding to the sub-resource, and set the attribute value of the advertised resource to the attribute value of the sub-resource according to the request message.
  • FIG. 7 is a block diagram of a preferred structure of an information synchronizing apparatus according to an embodiment of the present invention. As shown in FIG. 7, the apparatus includes, in addition to all the modules shown in FIG. 6, a second receiving module 72 and a first updating module. 74, the following description.
  • the second receiving module 72 is configured to receive a third request message that is sent by the terminal for requesting to update context information of the terminal, where the third request message includes a second context parameter for updating context information of the terminal;
  • the first update module 74 is connected to the second receiving module 72, configured to update context information of the locally stored terminal according to the second context parameter, and send a fourth request message to the gateway proxy according to the second context parameter, where the fourth The request message is used to request to update the context information of the terminal stored by the gateway proxy.
  • the first update module 74 is further configured to: update an attribute value of the sub-resource in the original resource according to the second context parameter, and send a fifth request message to the gateway proxy according to the second context parameter, where the fifth request message is used.
  • the request gateway agent updates the attribute value of the advertisement resource corresponding to the child resource.
  • FIG. 8 is a structural block diagram 2 of an information synchronizing apparatus according to an embodiment of the present invention. As shown in FIG. 8, the apparatus includes:
  • the third receiving module 82 is configured to receive a second request message sent by the cloud server for requesting to create context information of the terminal, where the second request message includes a third context parameter;
  • the second creating module 84 is connected to the third receiving module 82, and is configured to create context information of the terminal according to the third context parameter.
  • the second creating module 84 is further configured to: create, according to the third context parameter, the advertising resource corresponding to the sub-resource in the original resource of the terminal, and set the attribute value of the advertising resource to the context information of the terminal according to the third context parameter, where
  • the context information of the terminal is an attribute value of the sub-resource in the original resource of the terminal in the cloud server.
  • FIG. 9 is a second block diagram of a preferred structure of an information synchronizing apparatus according to an embodiment of the present invention. As shown in FIG. 9, the apparatus includes:
  • the fourth receiving module 92 is configured to receive a fourth request message sent by the cloud server for requesting to update the context information of the terminal, where the fourth request message includes a fourth context parameter;
  • the second update module 94 is connected to the fourth receiving module 92, and is configured to update the context information of the locally stored terminal according to the fourth context parameter.
  • the second update module 94 is further configured to update an attribute value of the advertisement resource corresponding to the sub resource according to the fourth context parameter.
  • FIG. 10 is a block diagram 3 of a preferred structure of an information synchronizing apparatus according to an embodiment of the present invention. As shown in FIG. 10, the apparatus includes:
  • the detecting module 102 is configured to detect terminal access
  • the processing module 104 is connected to the foregoing detecting module 102 and configured to be based on the end of the local storage.
  • the context information of the terminal processes the service of the terminal.
  • the processing module 104 is further configured to process the service of the terminal according to the attribute value of the advertisement resource corresponding to the sub resource.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are in any combination.
  • the forms are located in different processors.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • the first request message sent by the terminal for requesting to create context information of the terminal where the first request message includes a first context parameter for creating context information of the terminal;
  • the storage medium is further configured to store program code for performing the following steps: creating the context information of the terminal according to the first context parameter comprises:
  • the gateway proxy identified by the gateway proxy to send a request message for creating the advertisement resource corresponding to the sub-resource, where
  • the request message of the advertisement resource corresponding to the child resource is used to request the gateway agent to create the advertisement resource corresponding to the child resource, and set according to the request message.
  • Set the attribute value of the notification resource to the attribute value of the child resource.
  • the storage medium is further arranged to store program code for performing the following steps:
  • the third request message sent by the terminal for requesting to update the context information of the terminal where the third request message includes a second context parameter for updating context information of the terminal.
  • the storage medium is further configured to store program code for: updating context information of the locally stored terminal according to the second context parameter; and transmitting the fourth request message to the gateway proxy according to the second context parameter comprises:
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • the storage medium is further configured to store program code for performing the following steps: creating the context information of the terminal according to the third context parameter comprises:
  • the advertised resource corresponding to the sub-resource in the original resource of the terminal is created according to the third context parameter, and the attribute value of the advertised resource is set as the context information of the terminal according to the third context parameter, where the context information of the terminal is the terminal of the cloud server.
  • the attribute value of the child resource in the original resource is set as the context information of the terminal according to the third context parameter, where the context information of the terminal is the terminal of the cloud server.
  • the storage medium is further arranged to store program code for performing the following steps:
  • the storage medium is further configured to store program code for performing the following steps: updating the context information of the locally stored terminal according to the fourth context parameter comprises:
  • the storage medium is further arranged to store program code for performing the following steps:
  • S2 Process the service of the terminal according to the context information of the locally stored terminal.
  • the storage medium is further configured to store program code for performing the following steps: processing the service of the terminal according to the context information of the locally stored terminal;
  • S1 Process the service of the terminal according to the attribute value of the advertisement resource corresponding to the sub-resource.
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a mobile hard disk e.g., a hard disk
  • magnetic memory e.g., a hard disk
  • the processor executes, according to the stored program code in the storage medium, the first request message sent by the terminal for requesting to create context information of the terminal, where the first request message includes Creating a first context parameter of the context information of the terminal; creating context information of the terminal according to the first context parameter; and determining, according to the gateway proxy identifier of the gateway proxy used to identify the context information that needs to be created from the first context parameter,
  • the gateway agent identified by the gateway agent sends a second request message, where the second request message is used to request the gateway agent to create context information of the terminal.
  • the processor performs, according to the stored program code in the storage medium, the creating the context information of the terminal according to the first context parameter, including: creating the sub-resource in the original resource of the terminal according to the first context parameter. And setting an attribute value of the sub-resource according to the first context parameter; sending, according to the gateway proxy identifier of the gateway proxy for identifying the context information that needs to be created from the first context parameter, to the gateway proxy identified by the gateway proxy.
  • the request message includes: sending, according to a gateway proxy identifier of the gateway proxy that is used to identify the context information that needs to be created from the first context parameter, a request message for creating an advertisement resource corresponding to the sub-resource to the gateway proxy identified by the gateway proxy, The request message for creating the advertised resource corresponding to the sub-resource is used to request the gateway proxy to create the advertised resource corresponding to the sub-resource, and set the attribute value of the advertised resource to the attribute value of the sub-resource according to the request message.
  • the processor executes, according to the stored program code in the storage medium, the third request message sent by the terminal for requesting to update the context information of the terminal, where the third request message is included in the third request message.
  • a second context parameter for updating context information of the terminal; updating context information of the locally stored terminal according to the second context parameter; and transmitting a fourth request message to the gateway proxy according to the second context parameter, wherein the fourth request message is used for the request Update the context information of the terminal stored by the gateway agent.
  • the processor is configured to: update the context information of the locally stored terminal according to the second context parameter according to the stored program code in the storage medium; and send the fourth request to the gateway proxy according to the second context parameter.
  • the message includes: updating an attribute value of the sub-resource in the original resource according to the second context parameter, and sending a fifth request message to the gateway proxy according to the second context parameter, where the fifth request message is used to request the gateway agent to update the notification corresponding to the sub-resource The attribute value of the resource.
  • the processor is configured to: receive, according to the stored program code in the storage medium, a second request message sent by the cloud server for requesting to create context information of the terminal, where the second request message includes Three context parameters; create context information of the terminal according to the third context parameter.
  • the processor performs, according to the stored program code in the storage medium, the context information of the terminal is created according to the third context parameter, and the sub-resource corresponding to the original resource in the terminal is created according to the third context parameter.
  • the advertised resource is set according to the third context parameter, and the attribute value of the advertised resource is the context information of the terminal, where the context information of the terminal is the attribute value of the sub-resource in the original resource of the terminal in the cloud server.
  • the processor executes according to the stored program code in the storage medium.
  • Line receiving a fourth request message sent by the cloud server for requesting update of the context information of the terminal, where the fourth request message includes a fourth context parameter; and updating the context information of the locally stored terminal according to the fourth context parameter.
  • the processor performs, according to the stored program code in the storage medium, updating the context information of the locally stored terminal according to the fourth context parameter, and: updating the notification corresponding to the sub resource according to the fourth context parameter.
  • the attribute value of the resource is not limited to the stored program code in the storage medium.
  • the processor performs, according to the stored program code in the storage medium, detecting the terminal access, and processing the service of the terminal according to the context information of the locally stored terminal.
  • the processor performs, according to the stored program code in the storage medium, processing the service of the terminal according to the context information of the locally stored terminal, and including: the attribute value of the advertisement resource corresponding to the sub resource.
  • the processing of the terminal's business is not limited to the stored program code in the storage medium.
  • modules or steps of the embodiments of the present invention can be implemented by a general computing device, which can be concentrated on a single computing device or distributed in multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from The steps shown or described are performed sequentially, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated into a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
  • the context information of the terminal is created, the context information of the terminal is simultaneously synchronized to the gateway proxy, and the gateway proxy GA is not required to pass the intermediate network element from the cloud server CS or the terminal.
  • the terminal context information is obtained. Therefore, the problem that a large amount of signaling overhead is generated in the process of obtaining the terminal context information by the gateway proxy GA in the related art can be solved, and the signaling overhead is saved.

Abstract

本发明提供了一种信息同步方法及装置,该方法包括:接收终端发送的用于请求创建终端的上下文信息的第一请求消息,其中,第一请求消息包括用于创建终端的上下文信息的第一上下文参数;根据第一上下文参数,创建终端的上下文信息;根据从第一上下文参数中获取的用于标识需要创建终端的上下文信息的网关代理的网关代理标识,向网关代理标识的网关代理发送第二请求消息,其中,第二请求消息用于请求网关代理创建终端的上下文信息。通过本发明,可以解决相关技术中网关代理GA获取终端上下文信息的过程中,产生大量信令开销的问题,达到节省信令开销的效果。

Description

信息同步方法及装置 技术领域
本发明涉及通信领域,具体而言,涉及一种信息同步方法及装置。
背景技术
在AllJoyn系统中,用户能在近端网络(例如,家庭网络)中使用其AllJoyn设备享受AllJoyn服务。而AllJoyn网关代理(Gateway Agent,简称为GA)使用户能在离开近端网络时无缝体验AllJoyn服务。为此,用户在近端网络中设置可远程访问的服务列表,包括设备、应用(Application,简称为App)、接口,之后,用户通过云服务器(Cloud Service,简称为CS)远程访问AllJoyn服务。
终端(例如,移动设备(Mobile Device,简称为MD))上的控制App使用户能够在近端网络之中设置远程配置文件,并且在离开近端网络后同样能够控制设备、接收通知,如同在近端网络之中。
GA与其CS连接的第三方协议由服务供应商指定。而GA中实现远程访问的组件包括:
网关管理App,实现控制App管理远程配置文件并曝露远程配置文件给连接器App;
连接器App,提供AllJoyn设备与CS的连接,同时提供AllJoyn和第三方协议间的协议转换;
控制App以基于通告的方式发现网关管理App,而网关管理App和连接器App经GA上预设的同一AllJoyn路由器进行相互通信。
当终端经由互联网远程控制近端网络中的设备时,需要通过CS来实现,此时,CS需要获取终端的上下文信息来处理终端的业务请求;而当终端回到近端网络后,用户不再希望连接互联网,需要直接通过GA来本地控制近端网络中的设备,此时,GA需要获取终端的上下文信息来处理 MD的业务请求。
但是,在相关技术中,由于终端远程访问AllJoyn服务时,仅CS获取了终端的上下文信息,GA中并没有终端的上下文信息,因此,当终端回到近端网络后,GA需要再通过中间网元从云服务器CS或者终端中获取终端上下文信息,在获取的过程中,会产生大量的信令开销,增加网络的负荷。
发明内容
本发明实施例提供了一种信息同步方法及装置,以至少解决相关技术中网关代理GA获取终端上下文信息的过程中,产生大量信令开销的问题。
根据本发明的一个实施例,提供了一种信息同步方法,包括:接收终端发送的用于请求创建所述终端的上下文信息的第一请求消息,其中,所述第一请求消息包括用于创建所述终端的上下文信息的第一上下文参数;根据所述第一上下文参数,创建所述终端的上下文信息;根据从所述第一上下文参数中获取的用于标识需要创建所述终端的所述上下文信息的网关代理的网关代理标识,向所述网关代理标识的网关代理发送第二请求消息,其中,所述第二请求消息用于请求所述网关代理创建所述终端的所述上下文信息。
可选地,根据所述第一上下文参数,创建所述终端的上下文信息包括:根据所述第一上下文参数在所述终端的原始资源中创建子资源,并根据所述第一上下文参数设置所述子资源的属性值;根据从所述第一上下文参数中获取的用于标识需要创建所述终端的上下文信息的所述网关代理的所述网关代理标识,向所述网关代理标识的所述网关代理发送第二请求消息,包括:根据从所述第一上下文参数中获取的用于标识需要创建所述终端的上下文信息的所述网关代理的所述网关代理标识,向所述网关代理标识的所述网关代理发送创建所述子资源对应的通告资源的请求消息,其中,所述创建所述子资源对应的通告资源的请求消息用于请求所述网关代理创建子资源对应的通告资源,并根据所述请求消息设置所述通告资源的属性 值为所述子资源的属性值。
可选地,所述方法还包括:接收所述终端发送的用于请求更新所述终端的上下文信息的第三请求消息,其中,所述第三请求消息中包括用于更新所述终端的上下文信息的第二上下文参数;根据所述第二上下文参数更新本地存储的所述终端的上下文信息;以及根据所述第二上下文参数向所述网关代理发送第四请求消息,其中,所述第四请求消息用于请求更新所述网关代理存储的所述终端的上下文信息。
可选地,根据所述第二上下文参数更新本地存储的所述终端的上下文信息;以及根据所述第二上下文参数向所述网关代理发送第四请求消息包括:根据所述第二上下文参数更新所述终端的原始资源中所述子资源的属性值,以及根据所述第二上下文参数向所述网关代理发送第五请求消息,所述第五请求消息用于请求网关代理更新所述子资源对应的通告资源的属性值。
根据本发明的另一个实施例,提供了一种信息同步方法,包括:接收云服务器发送的用于请求创建所述终端的所述上下文信息的第二请求消息,其中,所述第二请求消息包括第三上下文参数;根据所述第三上下文参数,创建所述终端的所述上下文信息。
可选地,根据所述第三上下文参数,创建所述终端的所述上下文信息包括:根据所述第三上下文参数创建所述终端的原始资源中子资源对应的通告资源,并根据所述第三上下文参数设置所述通告资源的属性值为终端的上下文信息,其中,所述终端的上下文信息为所述云服务器中所述终端的原始资源中子资源的属性值。
可选地,所述方法还包括:接收云服务器发送的用于请求更新所述终端的上下文信息的第四请求消息,其中,所述第四请求消息包括第四上下文参数;根据所述第四上下文参数,更新本地存储的所述终端的上下文信息。
可选地,根据所述第四上下文参数,更新本地存储的所述终端的上下 文信息包括:根据所述第四上下文参数更新所述子资源对应的通告资源的属性值。
可选地,还包括:检测到所述终端接入;根据本地存储的所述终端的上下文信息,对所述终端的业务进行处理。
可选地,根据本地存储的所述终端的上下文信息,对所述终端的业务进行处理包括;根据所述子资源对应的通告资源的属性值,对所述终端的业务进行处理。
根据本发明的又一个实施例,提供了一种信息同步装置,包括:第一接收模块,设置为接收终端发送的用于请求创建所述终端的上下文信息的第一请求消息,其中,所述第一请求消息包括用于创建所述终端的上下文信息的第一上下文参数;第一创建模块,设置为根据所述第一上下文参数,创建所述终端的上下文信息;发送模块,设置为根据从所述第一上下文参数中获取的用于标识需要创建所述终端的所述上下文信息的网关代理的网关代理标识,向所述网关代理标识的网关代理发送第二请求消息,其中,所述第二请求消息用于请求所述网关代理创建所述终端的所述上下文信息。
可选地,所述第一创建模块,还设置为根据所述第一上下文参数在所述终端的原始资源中创建子资源,并根据所述第一上下文参数设置所述子资源的属性值;所述发送模块,还设置为根据从所述第一上下文参数中获取的用于标识需要创建所述终端的上下文信息的所述网关代理的所述网关代理标识,向所述网关代理标识的所述网关代理发送创建所述子资源对应的通告资源的请求消息,其中,所述创建所述子资源对应的通告资源的请求消息用于请求所述网关代理创建子资源对应的通告资源,并根据所述请求消息设置所述通告资源的属性值为所述子资源的属性值。
可选地,所述装置还包括:第二接收模块,设置为接收所述终端发送的用于请求更新所述终端的上下文信息的第三请求消息,其中,所述第三请求消息中包括用于更新所述终端的上下文信息的第二上下文参数;第一 更新模块,设置为根据所述第二上下文参数更新本地存储的所述终端的上下文信息;以及根据所述第二上下文参数向所述网关代理发送第四请求消息,其中,所述第四请求消息用于请求更新所述网关代理存储的所述终端的上下文信息。
可选地,所述第一更新模块,还设置为根据所述第二上下文参数更新所述终端的原始资源中所述子资源的属性值,以及根据所述第二上下文参数向所述网关代理发送第五请求消息,所述第五请求消息用于请求网关代理更新所述子资源对应的通告资源的属性值。
根据本发明的又一个实施例,提供了一种信息同步装置,包括:第三接收模块,设置为接收云服务器发送的用于请求创建所述终端的所述上下文信息的第二请求消息,其中,所述第二请求消息包括第三上下文参数;第二创建模块,设置为根据所述第三上下文参数,创建所述终端的所述上下文信息。
可选地,所述第二创建模块,还设置为根据所述第三上下文参数创建所述终端的原始资源中子资源对应的通告资源,并根据所述第三上下文参数设置所述通告资源的属性值为终端的上下文信息,其中,所述终端的上下文信息为所述云服务器中所述终端的原始资源中子资源的属性值。
可选地,所述装置还包括:第四接收模块,设置为接收云服务器发送的用于请求更新所述终端的上下文信息的第四请求消息,其中,所述第四请求消息包括第四上下文参数;第二更新模块,设置为根据所述第四上下文参数,更新本地存储的所述终端的上下文信息。
可选地,所述第二更新模块,还设置为根据所述第四上下文参数更新所述子资源对应的通告资源的属性值。
可选地,所述装置还包括:检测模块,设置为检测到所述终端接入;处理模块,设置为根据本地存储的所述终端的上下文信息,对所述终端的业务进行处理。
可选地,所述处理模块,还设置为根据所述子资源对应的通告资源的 属性值,对所述终端的业务进行处理。
根据本发明的又一个实施例,还提供了一种存储介质。该存储介质设置为存储用于执行以下步骤的程序代码:接收终端发送的用于请求创建所述终端的上下文信息的第一请求消息,其中,所述第一请求消息包括用于创建所述终端的上下文信息的第一上下文参数;根据所述第一上下文参数,创建所述终端的上下文信息;根据从所述第一上下文参数中获取的用于标识需要创建所述终端的所述上下文信息的网关代理的网关代理标识,向所述网关代理标识的网关代理发送第二请求消息,其中,所述第二请求消息用于请求所述网关代理创建所述终端的所述上下文信息。
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:根据所述第一上下文参数,创建所述终端的上下文信息包括:根据所述第一上下文参数在所述终端的原始资源中创建子资源,并根据所述第一上下文参数设置所述子资源的属性值;根据从所述第一上下文参数中获取的用于标识需要创建所述终端的上下文信息的所述网关代理的所述网关代理标识,向所述网关代理标识的所述网关代理发送第二请求消息,包括:根据从所述第一上下文参数中获取的用于标识需要创建所述终端的上下文信息的所述网关代理的所述网关代理标识,向所述网关代理标识的所述网关代理发送创建所述子资源对应的通告资源的请求消息,其中,所述创建所述子资源对应的通告资源的请求消息用于请求所述网关代理创建子资源对应的通告资源,并根据所述请求消息设置所述通告资源的属性值为所述子资源的属性值。
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:所述方法还包括:接收所述终端发送的用于请求更新所述终端的上下文信息的第三请求消息,其中,所述第三请求消息中包括用于更新所述终端的上下文信息的第二上下文参数;根据所述第二上下文参数更新本地存储的所述终端的上下文信息;以及根据所述第二上下文参数向所述网关代理发送第四请求消息,其中,所述第四请求消息用于请求更新所述网关代理存储的所述终端的上下文信息。
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:根据所述第二上下文参数更新本地存储的所述终端的上下文信息;以及根据所述第二上下文参数向所述网关代理发送第四请求消息包括:根据所述第二上下文参数更新所述终端的原始资源中所述子资源的属性值,以及根据所述第二上下文参数向所述网关代理发送第五请求消息,所述第五请求消息用于请求网关代理更新所述子资源对应的通告资源的属性值。
根据本发明的另一个实施例,提供了一种信息同步方法,包括:接收云服务器发送的用于请求创建所述终端的所述上下文信息的第二请求消息,其中,所述第二请求消息包括第三上下文参数;根据所述第三上下文参数,创建所述终端的所述上下文信息。
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:根据所述第三上下文参数,创建所述终端的所述上下文信息包括:根据所述第三上下文参数创建所述终端的原始资源中子资源对应的通告资源,并根据所述第三上下文参数设置所述通告资源的属性值为终端的上下文信息,其中,所述终端的上下文信息为所述云服务器中所述终端的原始资源中子资源的属性值。
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:接收云服务器发送的用于请求更新所述终端的上下文信息的第四请求消息,其中,所述第四请求消息包括第四上下文参数;根据所述第四上下文参数,更新本地存储的所述终端的上下文信息。
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:根据所述第四上下文参数,更新本地存储的所述终端的上下文信息包括:根据所述第四上下文参数更新所述子资源对应的通告资源的属性值。
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:检测到所述终端接入;根据本地存储的所述终端的上下文信息,对所述终端的业务进行处理。
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:根据 本地存储的所述终端的上下文信息,对所述终端的业务进行处理包括;根据所述子资源对应的通告资源的属性值,对所述终端的业务进行处理。
通过本发明实施例,接收终端发送的用于请求创建终端的上下文信息的第一请求消息,其中,第一请求消息包括用于创建终端的上下文信息的第一上下文参数;根据第一上下文参数,创建终端的上下文信息;根据从第一上下文参数中获取的用于标识需要创建终端的上下文信息的网关代理的网关代理标识,向网关代理标识的网关代理发送第二请求消息,其中,第二请求消息用于请求网关代理创建终端的上下文信息。由于创建终端的上下文信息后,将该终端的上下文信息一并同步到网关代理中,无需网关代理GA再通过中间网元从云服务器CS或者终端中获取终端上下文信息,因此,可以解决相关技术中网关代理GA获取终端上下文信息的过程中,产生大量信令开销的问题,达到节省信令开销的效果。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是本发明实施例的一种信息同步方法的网元的硬件结构框图;
图2是根据本发明实施例的信息同步方法的流程图一;
图3是根据本发明实施例的信息同步方法的流程图二;
图4是根据本发明实施例的AllJoyn服务的本地/远程访问示意图;
图5是根据本发明实施例的信息同步方法的优选流程图;
图6是根据本发明实施例的信息同步装置的结构框图一;
图7是根据本发明实施例的信息同步装置的优选结构框图一;
图8是根据本发明实施例的信息同步装置的结构框图二;
图9是根据本发明实施例的信息同步装置的优选结构框图二;
图10是根据本发明实施例的信息同步装置的优选结构框图三。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
实施例1
本申请实施例1所提供的方法实施例可以在网元、计算机终端或者类似的运算装置中执行。以运行在网元上为例,图1是本发明实施例的一种信息同步方法的网元的硬件结构框图。如图1所示,网元10可以包括一个或多个(图中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)、用于存储数据的存储器104、以及用于通信功能的传输装置106。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述电子装置的结构造成限定。例如,网元10还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。
存储器104可用于存储应用软件的软件程序以及模块,如本发明实施例中的信息同步方法对应的程序指令/模块,处理器102通过运行存储在存储器104内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至网元10。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
传输装置106用于经由一个网络接收或者发送数据。上述的网络具体实例可包括网元10的通信供应商提供的无线网络。在一个实例中,传输 装置106包括一个网络适配器(Network Interface Controller,NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,RF)模块,其用于通过无线方式与互联网进行通讯。
在本实施例中提供了一种运行于网元的信息同步方法,图2是根据本发明实施例的信息同步方法的流程图一,如图2所示,该流程包括如下步骤:
步骤S202,接收终端发送的用于请求创建终端的上下文信息的第一请求消息,其中,第一请求消息包括用于创建终端的上下文信息的第一上下文参数;
步骤S204,根据第一上下文参数,创建终端的上下文信息;
步骤S206,根据从第一上下文参数中获取的用于标识需要创建终端的上下文信息的网关代理的网关代理标识,向网关代理标识的网关代理发送第二请求消息,其中,第二请求消息用于请求网关代理创建终端的上下文信息。
通过上述步骤,由于创建终端的上下文信息后,将该终端的上下文信息一并同步到网关代理中,无需网关代理GA再通过中间网元从云服务器CS或者终端中获取终端上下文信息,因此,可以解决相关技术中网关代理GA获取终端上下文信息的过程中,产生大量信令开销的问题,达到节省信令开销的效果。
可选地,根据第一上下文参数,创建终端的上下文信息包括:根据第一上下文参数在终端的原始资源中创建子资源,并根据第一上下文参数设置子资源的属性值。例如,可以通过如下方式实现:根据第一上下文参数创建该终端的原始资源的子资源<Contex>,并根据第一上下文参数设置该子资源<Contex>中属性值包括终端的上下文信息。
可选地,根据从第一上下文参数中获取的用于标识需要创建终端的上下文信息的网关代理的网关代理标识,向网关代理标识的网关代理发送第 二请求消息,包括:根据从第一上下文参数中获取的用于标识需要创建终端的上下文信息的网关代理的网关代理标识,向网关代理标识的网关代理发送创建子资源对应的通告资源的请求消息,其中,创建子资源对应的通告资源的请求消息用于请求网关代理创建子资源对应的通告资源,并根据请求消息设置通告资源的属性值为子资源的属性值。例如,可以通过如下方式实现:发送创建通告资源请求到该网关代理GA,使得网关代理可以根据该请求消息创建子资源<Contex>对应的通告资源,并根据该请求消息设置该通告资源<Contex>的属性值包括终端的上下文信息。
可选地,接收终端发送的用于请求更新终端的上下文信息的第三请求消息,其中,第三请求消息中包括用于更新终端的上下文信息的第二上下文参数;根据第二上下文参数更新本地存储的终端的上下文信息;以及根据第二上下文参数向网关代理发送第四请求消息,其中,第四请求消息用于请求更新网关代理存储的终端的上下文信息。通过上述步骤,实时更新终端的上下文信息,可以保证根据同步的终端上下文信息处理终端最新的业务请求。
可选地,根据第二上下文参数更新本地存储的终端的上下文信息;以及根据第二上下文参数向网关代理发送第四请求消息包括:根据第二上下文参数更新终端的原始资源中子资源的属性值,以及根据第二上下文参数向网关代理发送第五请求消息,第五请求消息用于请求网关代理更新子资源对应的通告资源的属性值。例如,当终端的上下文信息发生变更时,接收终端中控制应用发送的更新终端的上下文信息的第三请求消息,该请求消息中包含第二上下文参数;根据第二上下文参数更新原始资源的子资源<Context>的属性值为更新后终端上下文信息,并根据网关代理标识(例如,可以设置在通告参数中,与第二上下文参数一起由终端发送过来)发送请求更新网关代理存储的终端的上下文信息的第四请求消息,请求网关代理更新子资源对应的通告资源<Context>的属性值为更新后终端上下文信息。
在本实施例中提供了一种运行于网元的信息同步方法,图3是根据本 发明实施例的信息同步方法的流程图二,如图3所示,该流程包括如下步骤:
步骤S302,接收云服务器发送的用于请求创建终端的上下文信息的第二请求消息,其中,第二请求消息包括第三上下文参数;
步骤S304,根据第三上下文参数,创建终端的上下文信息。
通过上述步骤,将该终端的上下文信息一并同步到网关代理中,无需网关代理GA再通过中间网元从云服务器CS或者终端中获取终端上下文信息,因此,可以解决相关技术中网关代理GA获取终端上下文信息的过程中,产生大量信令开销的问题,达到节省信令开销效果。
可选地,根据第三上下文参数,创建终端的上下文信息包括:根据第三上下文参数创建终端的原始资源中子资源对应的通告资源,并根据第三上下文参数设置通告资源的属性值为终端的上下文信息,其中,终端的上下文信息为云服务器中终端的原始资源中子资源的属性值。例如,可以通过如下方式实现:网关代理可以根据该请求消息中包含的第三上下文参数创建子资源<Contex>对应的通告资源,并根据第三上下文参数设置该通告资源<Contex>的属性值包括终端的上下文信息。
可选地,接收云服务器发送的用于请求更新终端的上下文信息的第四请求消息,其中,第四请求消息包括第四上下文参数;根据第四上下文参数,更新本地存储的终端的上下文信息。通过上述步骤,实时更新终端的上下文信息,可以保证根据同步的终端上下文信息处理终端最新的业务请求。
可选地,根据第四上下文参数,更新本地存储的终端的上下文信息包括:根据第四上下文参数更新子资源对应的通告资源的属性值。例如,网关代理根据第四上下文参数更新子资源对应通告资源<Context>的属性值为更新后终端上下文信息。
可选地,检测到终端接入;根据本地存储的终端的上下文信息,对终端的业务进行处理。通过上述步骤,当终端进入近端网络后,网关代理 GA无需通过中间网元从云服务器CS或终端中同步上下文信息,直接从GA本地进行获取,从而节省了信令开销,提升了用户体验。
可选地,根据本地存储的终端的上下文信息,对终端的业务进行处理包括;根据子资源对应的通告资源的属性值,对终端的业务进行处理。例如,当终端进入近端网络后,网关代理需要获取终端的上下文信息时,在本地检索通告资源<Context>的属性值获取终端的上下文信息。
为了方便理解本发明实施例,以创建终端上下文信息相关的子资源实现创建终端上下文信息为例进行说明,移动设备请求在云服务器(即终端)为其创建的资源中创建其上下文信息相关的子资源,并将子资源通告到网关代理;网关代理创建移动设备上下文信息相关的子资源对应通告资源;当移动设备的上下文信息发生变更时,移动设备通过云服务器更新网关代理中子资源对应通告资源;当移动设备进入近端网络后,网关代理从子资源对应通告资源获取移动设备的上下文信息,而无需从云服务器或移动设备进行同步。图4是根据本发明实施例的AllJoyn服务的本地/远程访问示意图,图5是根据本发明实施例的信息同步方法的优选流程图,结合图4,该方法流程如图5所示,包括:
步骤S502:移动设备MD中的控制App发送创建资源请求消息(同上述用于创建终端的上下文信息的第一请求消息)到云服务器CS,该请求消息中包含第一上下文参数和通告参数,具体为:
1)资源类型:创建类型为<Context>的子资源;
2)原始资源地址:移动设备MD注册到云服务器CS时,云服务器CS为移动设备MD中的控制App创建的类型为“应用实体”的资源“Rsc-CA”的统一资源标识符URI;
3)内容:包括“通告到”属性,其值设置为移动设备MD的上下文信息中指定的网关代理GA的标识;需要创建的子资源<Context>的属性。
步骤S504:云服务器CS接收到移动设备MD中控制App的请求消息后,根据原始资源地址检索资源“Rsc-CA”,并为资源“Rsc-CA”创 建子资源<Context>,其属性值包含移动设备MD的上下文信息,具体为:
1)用户上下文信息:包括用户所处的网络环境以及用户的物理状态等信息;
2)终端上下文信息:包括终端本身所具有的通信、计算、业务呈现等信息;
3)网络上下文信息:包括网络描述、网络的一般性资源以及流的上下文信息。
步骤S506:云服务器CS判断资源“Rsc-CA”的“通告到”属性中是否存在通告参数中的网关代理GA的标识,如果有,则发送更新通告资源请求到网关代理GA,请求网关代理GA在GA中的原始资源“Rsc-CA”对应的通告资源Rsc-CA_Annc”中创建对应于子资源<Context>的通告子资源<Context>,该请求消息(同上述用于请求网关代理创建终端的上下文信息的第二请求消息)中包含第三上下文参数,具体为:
1)地址:通告资源“Rsc-CA_Annc”的URI;
2)内容:需要通告的子资源<Context>的属性。
步骤S508:网关代理GA接收到云服务器CS的请求消息后,根据地址检索通告资源“Rsc-CA_Annc”,并为通告资源“Rsc-CA_Annc”创建通告子资源<Context>,其属性值与原始资源“Rsc-CA”的子资源<Context>相同;
步骤S510:网关代理GA发送更新通告资源响应给云服务器CS,响应消息中包含通告资源“Rsc-CA_Annc”的通告子资源<Context>的URI。
步骤S512:云服务器CS接收到网关代理GA的响应消息后,更新资源“Rsc-CA”的属性“已通告属性”,并发送创建资源响应给控制App,响应消息中包含原始资源“Rsc-CA”的子资源<Context>的URI。
步骤S514:当移动设备MD的上下文信息发生变更时,移动设备MD中控制App发送更新资源请求(同上述用于请求更新终端的上下文信息的 第三请求消息)到云服务器CS,该请求消息中包含第二上下文参数和通告参数,具体为:
1)地址:原始资源“Rsc-CA”的子资源<Context>的URI;
2)内容:包括“通告到”属性,其值设置为网关代理GA的标识;需要更新的子资源<Context>的属性。
步骤S516:云服务器CS接收到控制App的请求消息后,根据第二上下文参数更新原始资源“Rsc-CA”的子资源<Context>的属性值为更新后终端上下文信息。
步骤S518:云服务器CS根据通告参数发送更新通告资源请求到网关代理GA,请求更新通告资源“Rsc-CA_Annc”的子资源<Context>的属性,请求消息(同上述用于请求更新网关代理存储的终端的上下文信息的第四请求消息)中包含第四上下文参数,具体为:
1)地址:通告资源“Rsc-CA_Annc”的子资源<Context>的URI;
2)内容:需要更新的子资源<Context>的属性。
步骤S520:网关代理GA接收到云服务器CS的请求消息后,根据第四上下文参数更新通告资源“Rsc-CA_Annc”的通告子资源<Context>的属性值为更新后终端上下文信息。
步骤S522:网关代理GA发送更新通告子资源响应给云服务器CS,响应消息中包含通告资源“Rsc-CA_Annc”的通告子资源<Context>的URI。
步骤S524:云服务器CS接收到网关代理GA的响应消息后,发送更新子资源响应给控制App,响应消息中包含原始资源“Rsc-CA”的子资源<Context>的URI。
步骤S526:移动设备MD进入近端网络。
步骤S528:网关代理GA需要获取移动设备MD的上下文信息时,在本地检索通告资源“Rsc-CA_Annc”的子资源<Context>的属性。
需要说明的是,上述步骤S506,S508和S510,也可以采用步骤S506a, S508a和S510a,下面对步骤S506a,S508a和S510a分别进行说明。
步骤S506a,云服务器CS判断资源“Rsc-CA”的“通告到”属性中是否存在通告参数中的网关代理GA的标识,如果没有,则发送创建通告资源请求到网关代理GA,请求创建子资源<Context>的通告资源,请求消息(同上述用于请求网关代理创建终端的上下文信息的第二请求消息)中包含上下文参数。
步骤S508a,网关代理GA接收到云服务器CS的请求消息后,为云服务器CS创建通告资源“Rsc-SC_Annc”,并为通告资源“Rsc-SC_Annc”创建通告子资源<Context>,其属性值与原始资源“Rsc-CA”的子资源<Context>相同。
步骤S510a,网关代理GA发送更新通告资源响应给云服务器CS,响应消息中包含通告资源“Rsc-SC_Annc”的通告子资源<Context>的URI。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例的方法。
实施例2
在本实施例中还提供了一种信息同步装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图6是根据本发明实施例的信息同步装置的结构框图一,如图6所示, 该装置包括:
第一接收模块62,设置为接收终端发送的用于请求创建终端的上下文信息的第一请求消息,其中,第一请求消息包括用于创建终端的上下文信息的第一上下文参数;
第一创建模块64,设置为根据第一上下文参数,创建终端的上下文信息;
发送模块66,连接至上述第一创建模块64,设置为根据从第一上下文参数中获取的用于标识需要创建终端的上下文信息的网关代理的网关代理标识,向网关代理标识的网关代理发送第二请求消息,其中,第二请求消息用于请求网关代理创建终端的上下文信息。
可选地,第一创建模块64,还设置为根据第一上下文参数在终端的原始资源中创建子资源,并根据第一上下文参数设置子资源的属性值;发送模块66,还设置为根据从第一上下文参数中获取的用于标识需要创建终端的上下文信息的网关代理的网关代理标识,向网关代理标识的网关代理发送创建子资源对应的通告资源的请求消息,其中,创建子资源对应的通告资源的请求消息用于请求网关代理创建子资源对应的通告资源,并根据请求消息设置通告资源的属性值为子资源的属性值。
图7是根据本发明实施例的信息同步装置的优选结构框图一,如图7所示,该装置除包括图6所示的所有模块外,还包括:第二接收模块72和第一更新模块74,下面分别进行说明。
第二接收模块72,设置为接收终端发送的用于请求更新终端的上下文信息的第三请求消息,其中,第三请求消息中包括用于更新终端的上下文信息的第二上下文参数;
第一更新模块74,连接至上述第二接收模块72,设置为根据第二上下文参数更新本地存储的终端的上下文信息;以及根据第二上下文参数向网关代理发送第四请求消息,其中,第四请求消息用于请求更新网关代理存储的终端的上下文信息。
可选地,第一更新模块74,还设置为根据第二上下文参数更新终端的原始资源中子资源的属性值,以及根据第二上下文参数向网关代理发送第五请求消息,第五请求消息用于请求网关代理更新子资源对应的通告资源的属性值。
在本实施例中还提供了一种信息同步装置,图8是根据本发明实施例的信息同步装置的结构框图二,如图8所示,该装置包括:
第三接收模块82,设置为接收云服务器发送的用于请求创建终端的上下文信息的第二请求消息,其中,第二请求消息包括第三上下文参数;
第二创建模块84,连接至上述第三接收模块82,设置为根据第三上下文参数,创建终端的上下文信息。
可选地,第二创建模块84,还设置为根据第三上下文参数创建终端的原始资源中子资源对应的通告资源,并根据第三上下文参数设置通告资源的属性值为终端的上下文信息,其中,终端的上下文信息为云服务器中终端的原始资源中子资源的属性值。
图9是根据本发明实施例的信息同步装置的优选结构框图二,如图9所示,该装置包括:
第四接收模块92,设置为接收云服务器发送的用于请求更新终端的上下文信息的第四请求消息,其中,第四请求消息包括第四上下文参数;
第二更新模块94,连接至上述第四接收模块92,设置为根据第四上下文参数,更新本地存储的终端的上下文信息。
可选地,第二更新模块94,还设置为根据第四上下文参数更新子资源对应的通告资源的属性值。
图10是根据本发明实施例的信息同步装置的优选结构框图三,如图10所示,该装置包括:
检测模块102,设置为检测到终端接入;
处理模块104,连接至上述检测模块102,设置为根据本地存储的终 端的上下文信息,对终端的业务进行处理。
可选地,处理模块104,还设置为根据子资源对应的通告资源的属性值,对终端的业务进行处理。
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。
实施例3
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:
S1,接收终端发送的用于请求创建终端的上下文信息的第一请求消息,其中,第一请求消息包括用于创建终端的上下文信息的第一上下文参数;
S2,根据第一上下文参数,创建终端的上下文信息;
S3,根据从第一上下文参数中获取的用于标识需要创建终端的上下文信息的网关代理的网关代理标识,向网关代理标识的网关代理发送第二请求消息,其中,第二请求消息用于请求网关代理创建终端的上下文信息。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:根据第一上下文参数,创建终端的上下文信息包括:
S1,根据第一上下文参数在终端的原始资源中创建子资源,并根据第一上下文参数设置子资源的属性值;
根据从第一上下文参数中获取的用于标识需要创建终端的上下文信息的网关代理的网关代理标识,向网关代理标识的网关代理发送第二请求消息,包括:
S1,根据从第一上下文参数中获取的用于标识需要创建终端的上下文信息的网关代理的网关代理标识,向网关代理标识的网关代理发送创建子资源对应的通告资源的请求消息,其中,创建子资源对应的通告资源的请求消息用于请求网关代理创建子资源对应的通告资源,并根据请求消息设 置通告资源的属性值为子资源的属性值。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:
S1,接收终端发送的用于请求更新终端的上下文信息的第三请求消息,其中,第三请求消息中包括用于更新终端的上下文信息的第二上下文参数;
S2,根据第二上下文参数更新本地存储的终端的上下文信息;以及根据第二上下文参数向网关代理发送第四请求消息,其中,第四请求消息用于请求更新网关代理存储的终端的上下文信息。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:根据第二上下文参数更新本地存储的终端的上下文信息;以及根据第二上下文参数向网关代理发送第四请求消息包括:
S1,根据第二上下文参数更新终端的原始资源中子资源的属性值,以及根据第二上下文参数向网关代理发送第五请求消息,第五请求消息用于请求网关代理更新子资源对应的通告资源的属性值。
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:
S1,接收云服务器发送的用于请求创建终端的上下文信息的第二请求消息,其中,第二请求消息包括第三上下文参数;
S2,根据第三上下文参数,创建终端的上下文信息。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:根据第三上下文参数,创建终端的上下文信息包括:
S1,根据第三上下文参数创建终端的原始资源中子资源对应的通告资源,并根据第三上下文参数设置通告资源的属性值为终端的上下文信息,其中,终端的上下文信息为云服务器中终端的原始资源中子资源的属性值。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:
S1,接收云服务器发送的用于请求更新终端的上下文信息的第四请求消息,其中,第四请求消息包括第四上下文参数;
S2,根据第四上下文参数,更新本地存储的终端的上下文信息。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:根据第四上下文参数,更新本地存储的终端的上下文信息包括:
S1,根据第四上下文参数更新子资源对应的通告资源的属性值。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:
S1,检测到终端接入;
S2,根据本地存储的终端的上下文信息,对终端的业务进行处理。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:根据本地存储的终端的上下文信息,对终端的业务进行处理包括;
S1,根据子资源对应的通告资源的属性值,对终端的业务进行处理。
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:接收终端发送的用于请求创建终端的上下文信息的第一请求消息,其中,第一请求消息包括用于创建终端的上下文信息的第一上下文参数;根据第一上下文参数,创建终端的上下文信息;根据从第一上下文参数中获取的用于标识需要创建终端的上下文信息的网关代理的网关代理标识,向网关代理标识的网关代理发送第二请求消息,其中,第二请求消息用于请求网关代理创建终端的上下文信息。
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:根据第一上下文参数,创建终端的上下文信息包括:根据第一上下文参数在终端的原始资源中创建子资源,并根据第一上下文参数设置子资源的属性值;根据从第一上下文参数中获取的用于标识需要创建终端的上下文信息的网关代理的网关代理标识,向网关代理标识的网关代理发送第二 请求消息,包括:根据从第一上下文参数中获取的用于标识需要创建终端的上下文信息的网关代理的网关代理标识,向网关代理标识的网关代理发送创建子资源对应的通告资源的请求消息,其中,创建子资源对应的通告资源的请求消息用于请求网关代理创建子资源对应的通告资源,并根据请求消息设置通告资源的属性值为子资源的属性值。
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:接收终端发送的用于请求更新终端的上下文信息的第三请求消息,其中,第三请求消息中包括用于更新终端的上下文信息的第二上下文参数;根据第二上下文参数更新本地存储的终端的上下文信息;以及根据第二上下文参数向网关代理发送第四请求消息,其中,第四请求消息用于请求更新网关代理存储的终端的上下文信息。
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:根据第二上下文参数更新本地存储的终端的上下文信息;以及根据第二上下文参数向网关代理发送第四请求消息包括:根据第二上下文参数更新终端的原始资源中子资源的属性值,以及根据第二上下文参数向网关代理发送第五请求消息,第五请求消息用于请求网关代理更新子资源对应的通告资源的属性值。
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:接收云服务器发送的用于请求创建终端的上下文信息的第二请求消息,其中,第二请求消息包括第三上下文参数;根据第三上下文参数,创建终端的上下文信息。
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:根据第三上下文参数,创建终端的上下文信息包括:根据第三上下文参数创建终端的原始资源中子资源对应的通告资源,并根据第三上下文参数设置通告资源的属性值为终端的上下文信息,其中,终端的上下文信息为云服务器中终端的原始资源中子资源的属性值。
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执 行:接收云服务器发送的用于请求更新终端的上下文信息的第四请求消息,其中,第四请求消息包括第四上下文参数;根据第四上下文参数,更新本地存储的终端的上下文信息。
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:根据第四上下文参数,更新本地存储的终端的上下文信息包括:根据第四上下文参数更新子资源对应的通告资源的属性值。
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:检测到终端接入;根据本地存储的终端的上下文信息,对终端的业务进行处理。
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:根据本地存储的终端的上下文信息,对终端的业务进行处理包括;根据子资源对应的通告资源的属性值,对终端的业务进行处理。
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。
显然,本领域的技术人员应该明白,上述的本发明实施例的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
工业实用性
如上所述,通过上述实施例及优选实施方式,由于创建终端的上下文信息后,将该终端的上下文信息一并同步到网关代理中,无需网关代理GA再通过中间网元从云服务器CS或者终端中获取终端上下文信息,因此,可以解决相关技术中网关代理GA获取终端上下文信息的过程中,产生大量信令开销的问题,达到节省信令开销的效果。

Claims (20)

  1. 一种信息同步方法,包括:
    接收终端发送的用于请求创建所述终端的上下文信息的第一请求消息,其中,所述第一请求消息包括用于创建所述终端的上下文信息的第一上下文参数;
    根据所述第一上下文参数,创建所述终端的上下文信息;
    根据从所述第一上下文参数中获取的用于标识需要创建所述终端的所述上下文信息的网关代理的网关代理标识,向所述网关代理标识的网关代理发送第二请求消息,其中,所述第二请求消息用于请求所述网关代理创建所述终端的所述上下文信息。
  2. 根据权利要求1所述的方法,其中,
    根据所述第一上下文参数,创建所述终端的上下文信息包括:根据所述第一上下文参数在所述终端的原始资源中创建子资源,并根据所述第一上下文参数设置所述子资源的属性值;
    根据从所述第一上下文参数中获取的用于标识需要创建所述终端的上下文信息的所述网关代理的所述网关代理标识,向所述网关代理标识的所述网关代理发送第二请求消息,包括:根据从所述第一上下文参数中获取的用于标识需要创建所述终端的上下文信息的所述网关代理的所述网关代理标识,向所述网关代理标识的所述网关代理发送创建所述子资源对应的通告资源的请求消息,其中,所述创建所述子资源对应的通告资源的请求消息用于请求所述网关代理创建所述子资源对应的通告资源,并根据所述请求消息设置所述通告资源的属性值为所述子资源的属性值。
  3. 根据权利要求2所述的方法,其中,还包括:
    接收所述终端发送的用于请求更新所述终端的上下文信息的第三请求消息,其中,所述第三请求消息中包括用于更新所述终端的上下 文信息的第二上下文参数;
    根据所述第二上下文参数更新本地存储的所述终端的上下文信息;以及根据所述第二上下文参数向所述网关代理发送第四请求消息,其中,所述第四请求消息用于请求更新所述网关代理存储的所述终端的上下文信息。
  4. 根据权利要求3所述的方法,其中,根据所述第二上下文参数更新本地存储的所述终端的上下文信息;以及根据所述第二上下文参数向所述网关代理发送第四请求消息包括:
    根据所述第二上下文参数更新所述终端的原始资源中所述子资源的属性值,以及根据所述第二上下文参数向所述网关代理发送第五请求消息,所述第五请求消息用于请求所述网关代理更新所述子资源对应的通告资源的属性值。
  5. 一种信息同步方法,包括:
    接收云服务器发送的用于请求创建终端的上下文信息的第二请求消息,其中,所述第二请求消息包括第三上下文参数;
    根据所述第三上下文参数,创建所述终端的所述上下文信息。
  6. 根据权利要求5所述的方法,其中,根据所述第三上下文参数,创建所述终端的所述上下文信息包括:
    根据所述第三上下文参数创建所述终端的原始资源中子资源对应的通告资源,并根据所述第三上下文参数设置所述通告资源的属性值为终端的上下文信息,其中,所述终端的上下文信息为所述云服务器中所述终端的原始资源中子资源的属性值。
  7. 根据权利要求6所述的方法,其中,还包括:
    接收云服务器发送的用于请求更新所述终端的上下文信息的第四请求消息,其中,所述第四请求消息包括第四上下文参数;
    根据所述第四上下文参数,更新本地存储的所述终端的上下文信息。
  8. 根据权利要求7所述的方法,其中,根据所述第四上下文参数,更新本地存储的所述终端的上下文信息包括:
    根据所述第四上下文参数更新所述子资源对应的通告资源的属性值。
  9. 根据权利要求5或8中任一项所述的方法,其中,还包括:
    检测到所述终端接入;
    根据本地存储的所述终端的上下文信息,对所述终端的业务进行处理。
  10. 根据权利要求9所述的方法,其中,根据本地存储的所述终端的上下文信息,对所述终端的业务进行处理包括;
    根据所述子资源对应的通告资源的属性值,对所述终端的业务进行处理。
  11. 一种信息同步装置,包括:
    第一接收模块,设置为接收终端发送的用于请求创建所述终端的上下文信息的第一请求消息,其中,所述第一请求消息包括用于创建所述终端的上下文信息的第一上下文参数;
    第一创建模块,设置为根据所述第一上下文参数,创建所述终端的上下文信息;
    发送模块,设置为根据从所述第一上下文参数中获取的用于标识需要创建所述终端的所述上下文信息的网关代理的网关代理标识,向所述网关代理标识的网关代理发送第二请求消息,其中,所述第二请求消息用于请求所述网关代理创建所述终端的所述上下文信息。
  12. 根据权利要求11所述的装置,其中,
    所述第一创建模块,还设置为根据所述第一上下文参数在所述终端的原始资源中创建子资源,并根据所述第一上下文参数设置所述子资源的属性值;
    所述发送模块,还设置为根据从所述第一上下文参数中获取的用于标识需要创建所述终端的上下文信息的所述网关代理的所述网关代理标识,向所述网关代理标识的所述网关代理发送创建所述子资源对应的通告资源的请求消息,其中,所述创建所述子资源对应的通告资源的请求消息用于请求所述网关代理创建子资源对应的通告资源,并根据所述请求消息设置所述通告资源的属性值为所述子资源的属性值。
  13. 根据权利要求12所述的装置,其中,还包括:
    第二接收模块,设置为接收所述终端发送的用于请求更新所述终端的上下文信息的第三请求消息,其中,所述第三请求消息中包括用于更新所述终端的上下文信息的第二上下文参数;
    第一更新模块,设置为根据所述第二上下文参数更新本地存储的所述终端的上下文信息;以及根据所述第二上下文参数向所述网关代理发送第四请求消息,其中,所述第四请求消息用于请求更新所述网关代理存储的所述终端的上下文信息。
  14. 根据权利要求13所述的装置,其中,所述第一更新模块,还设置为根据所述第二上下文参数更新所述终端的原始资源中所述子资源的属性值,以及根据所述第二上下文参数向所述网关代理发送第五请求消息,所述第五请求消息用于请求所述网关代理更新所述子资源对应的通告资源的属性值。
  15. 一种信息同步装置,包括:
    第三接收模块,设置为接收云服务器发送的用于请求创建终端的上下文信息的第二请求消息,其中,所述第二请求消息包括第三上下文参数;
    第二创建模块,设置为根据所述第三上下文参数,创建所述终端的所述上下文信息。
  16. 根据权利要求15所述的装置,其中,所述第二创建模块,还设置为根据所述第三上下文参数创建所述终端的原始资源中子资源对应的通告资源,并根据所述第三上下文参数设置所述通告资源的属性值为终端的上下文信息,其中,所述终端的上下文信息为所述云服务器中所述终端的原始资源中子资源的属性值。
  17. 根据权利要求16所述的装置,其中,还包括:
    第四接收模块,设置为接收云服务器发送的用于请求更新所述终端的上下文信息的第四请求消息,其中,所述第四请求消息包括第四上下文参数;
    第二更新模块,设置为根据所述第四上下文参数,更新本地存储的所述终端的上下文信息。
  18. 根据权利要求17所述的装置,其中,所述第二更新模块,还设置为根据所述第四上下文参数更新所述子资源对应的通告资源的属性值。
  19. 根据权利要求11至18中任一项所述的装置,其中,还包括:
    检测模块,设置为检测到所述终端接入;
    处理模块,设置为根据本地存储的所述终端的上下文信息,对所述终端的业务进行处理。
  20. 根据权利要求19所述的装置,其中,所述处理模块,还设置为根据所述子资源对应的通告资源的属性值,对所述终端的业务进
    行处理。
PCT/CN2016/108411 2016-07-14 2016-12-02 信息同步方法及装置 WO2018010366A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP16908689.9A EP3487147A4 (en) 2016-07-14 2016-12-02 METHOD AND DEVICE FOR INFORMATION SYNCHRONIZATION
US16/316,438 US20190312929A1 (en) 2016-07-14 2016-12-02 Information synchronization method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610556730.9A CN107623708A (zh) 2016-07-14 2016-07-14 信息同步方法及装置
CN201610556730.9 2016-07-14

Publications (1)

Publication Number Publication Date
WO2018010366A1 true WO2018010366A1 (zh) 2018-01-18

Family

ID=60951629

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/108411 WO2018010366A1 (zh) 2016-07-14 2016-12-02 信息同步方法及装置

Country Status (4)

Country Link
US (1) US20190312929A1 (zh)
EP (1) EP3487147A4 (zh)
CN (1) CN107623708A (zh)
WO (1) WO2018010366A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019173054A1 (en) * 2018-03-05 2019-09-12 Microsoft Technology Licensing, Llc View augmentation in multiscreen environment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102083174A (zh) * 2011-01-25 2011-06-01 电信科学技术研究院 一种控制接入本地网络的方法及装置
US20140379804A1 (en) * 2013-06-21 2014-12-25 Convida Wireless, Llc Context management
CN105516154A (zh) * 2015-12-15 2016-04-20 Tcl集团股份有限公司 应用于SEAndroid系统的安全策略配置方法及装置
WO2016070106A1 (en) * 2014-10-30 2016-05-06 Qualcomm Incorporated Dynamic mobile ad hoc internet of things (iot) gateway

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012068465A1 (en) * 2010-11-19 2012-05-24 Interdigital Patent Holdings, Inc. Machine-to-machine (m2m) interface procedures for announce and de-announce of resources
CN105229986B (zh) * 2013-02-15 2019-02-12 康维达无线有限责任公司 跨域服务层资源传播
CN104093118A (zh) * 2014-03-05 2014-10-08 中兴通讯股份有限公司 一种资源通告的方法、机器对机器节点和系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102083174A (zh) * 2011-01-25 2011-06-01 电信科学技术研究院 一种控制接入本地网络的方法及装置
US20140379804A1 (en) * 2013-06-21 2014-12-25 Convida Wireless, Llc Context management
WO2016070106A1 (en) * 2014-10-30 2016-05-06 Qualcomm Incorporated Dynamic mobile ad hoc internet of things (iot) gateway
CN105516154A (zh) * 2015-12-15 2016-04-20 Tcl集团股份有限公司 应用于SEAndroid系统的安全策略配置方法及装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019173054A1 (en) * 2018-03-05 2019-09-12 Microsoft Technology Licensing, Llc View augmentation in multiscreen environment
US10901760B2 (en) 2018-03-05 2021-01-26 Microsoft Technology Licensing, Llc View augmentation in multiscreen environment

Also Published As

Publication number Publication date
US20190312929A1 (en) 2019-10-10
EP3487147A1 (en) 2019-05-22
CN107623708A (zh) 2018-01-23
EP3487147A4 (en) 2019-05-22

Similar Documents

Publication Publication Date Title
US10601947B2 (en) Application service delivery through an application service avatar
EP2807868B1 (en) Method and apparatus for automatic service discovery and connectivity
US20150312296A1 (en) Method and device for pushing multimedia resource and display terminal
WO2017107542A1 (zh) 视频节目获取方法、设备及系统
JP5891559B2 (ja) インスタントメッセージングの方法、端末、サーバ及びシステム
WO2013038056A1 (en) Offloading traffic to device-to-device communications
US20160234307A1 (en) Data transmission method, device, and system
KR20110018248A (ko) 단말의 원격 관리 방법 및 장치
WO2018107593A1 (zh) 一种在不同终端间共享文件的方法及设备
CN103812900A (zh) 一种数据同步方法、装置及系统
CN110650029B (zh) 一种配置方法及装置
KR20180022867A (ko) 근거리 통신을 통한 애플리케이션 버전 설치 방법 및 시스템
US11638138B2 (en) Device-to-device content providing method
EP3091712B1 (en) Smart device for realizing multiple-device collaboration and working method for multiple-device collaboration
WO2017080426A1 (zh) 一种建立数据链路的方法及装置
WO2014206346A1 (zh) 一种终端与服务器进行同步的方法和装置
EP2709337A1 (en) Service data processing method, device and system
EP2842356B1 (en) Updating subscription information
WO2018010366A1 (zh) 信息同步方法及装置
CN104735816A (zh) 控制无线网络直连群组中无线设备断开的方法及无线设备
CN107087011B (zh) 一种远程访问的实现方法、装置和系统
CN110719574B (zh) 一种网点访问方法及相关设备
US10003659B2 (en) Efficient group communications leveraging LTE-D discovery for application layer contextual communication
EP3040931A1 (en) Application service delivery through an application service avatar
CN107211479B (zh) 选择接入网的方法和装置

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: 16908689

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2016908689

Country of ref document: EP

Effective date: 20190214