WO2014180438A9 - M2m应用的远程注册方法、装置、系统及存储介质 - Google Patents

M2m应用的远程注册方法、装置、系统及存储介质 Download PDF

Info

Publication number
WO2014180438A9
WO2014180438A9 PCT/CN2014/079642 CN2014079642W WO2014180438A9 WO 2014180438 A9 WO2014180438 A9 WO 2014180438A9 CN 2014079642 W CN2014079642 W CN 2014079642W WO 2014180438 A9 WO2014180438 A9 WO 2014180438A9
Authority
WO
WIPO (PCT)
Prior art keywords
cse
registration request
request message
list
registration
Prior art date
Application number
PCT/CN2014/079642
Other languages
English (en)
French (fr)
Other versions
WO2014180438A1 (zh
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 US15/032,116 priority Critical patent/US9930632B2/en
Priority to EP14795438.2A priority patent/EP3057281B1/en
Publication of WO2014180438A1 publication Critical patent/WO2014180438A1/zh
Publication of WO2014180438A9 publication Critical patent/WO2014180438A9/zh

Links

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/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration
    • H04W60/04Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration using triggered events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/30Managing network names, e.g. use of aliases or nicknames
    • H04L61/3015Name registration, generation or assignment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals

Definitions

  • the present invention relates to communication technologies, and in particular, to a remote registration method, device, system and computer storage medium for machine-to-machine (M2M) applications.
  • M2M machine-to-machine
  • a single M2M application communicates.
  • a smart meter service managed by a power grid company only the application on the smart meter of the terminal needs to interact with the application on the server managed by the grid company.
  • M2M services it is possible to interact with different M2M applications.
  • smart home appliances can enjoy the online fault diagnosis and repair service of smart home appliances provided by smart home appliances companies, and can also enjoy the services provided by other audio and video service providers. Online movie services and more.
  • the existing solution for a single application to the local CSE cannot meet the application discovery requirements in the multi-application interaction scenario.
  • the M2M application that needs to be interacted is not registered on the same CSE, It is impossible to find each other at all, and it is difficult to realize the interaction of multiple applications. Summary of the invention
  • the main purpose of the embodiments of the present invention is to provide a remote registration method, device, and system for an M2M application, which can implement interaction of M2M applications registered on different CSEs, and improve user experience.
  • An embodiment of the present invention provides a remote registration method for an M2M application, which is applied to a local CSE, and the method includes:
  • the local CSE receives the first registration request message, and determines that the first registration request message is included in the packet. Include a remote registration parameter, and determine that the activation indication parameter in the remote registration parameter needs to perform a remote registration, and read a CSE list in the remote registration parameter;
  • the method further includes:
  • the local CSE adds the CSE that has been registered on the local CSE to the CSE list, and sends a second registration request message corresponding to the first registration request message according to the CSE list.
  • the method further includes:
  • the local CSE adds a CSE that meets the registration policy to the CSE list according to the pre-configured registration policy, and sends a second registration request message corresponding to the first registration request message according to the CSE list.
  • the method further includes:
  • the sending, by the CSE list, the second registration request message corresponding to the first registration request message includes:
  • the second registration request message includes: an identifier or an address of the M2M application, and an identifier or an address of the local CSE.
  • the method further includes:
  • the local CSE After the local CSE receives the response message of all the second registration request messages, confirm the remote Registering the unsuccessful target CSE, deleting the target CSE that is not successfully registered in the CSE list, and sending a response message of the first registration request message;
  • the response message of the first registration request message includes the CSE list, and the CSE list includes a target CSE that is successfully registered remotely.
  • the embodiment of the present invention further provides a remote registration method for an M2M application, which is applied to a target CSE; the method includes:
  • the target CSE receives the second registration request message, creates a resource according to the second registration request message, acquires and stores the resource attribute information, and sends a second response message corresponding to the second registration request after the resource creation is completed;
  • the resource attribute information includes a resource address link of the M2M application in the local CSE.
  • An embodiment of the present invention further provides a remote registration method for an M2M application, where the method includes:
  • the local CSE receives the first registration request message, determines that the first registration request message includes a remote registration parameter, and determines that the activation indication parameter in the remote registration parameter needs to perform remote registration, and reads the remote registration parameter.
  • the target CSE receives the second registration request message, creates a resource according to the second registration request message, acquires and stores the resource attribute information, and sends a second response message corresponding to the second registration request after the resource creation is completed. ;
  • the resource attribute information includes a resource address link of the M2M application in the local CSE.
  • the method further includes: The local CSE adds a CSE that has been registered on the local CSE to the CSE list, and sends a second registration request message corresponding to the first registration request message to all target CSEs in the CSE list.
  • the method further includes:
  • the local CSE adds a CSE that meets the registration policy to the CSE list according to a pre-configured registration policy, and sends a second corresponding to the first registration request message to all target CSEs in the CSE list. Registration request message.
  • the method further includes:
  • the sending, by the CSE list, the second registration request message corresponding to the first registration request message includes:
  • the second registration request message includes: an identifier or an address of the M2M application, and an identifier or an address of the local CSE.
  • the method further includes: after receiving the response message of the second registration request message sent by all the target CSEs, the local CSE confirms the target CSE that is not successfully registered by the remote CSE, and deletes the target CSE that is not successfully registered in the CSE list.
  • the embodiment of the present invention further provides a CSE, where the CSE is a local CSE, where the CSE includes: a first receiving module, a reading module, and a first sending module; The first receiving module is configured to receive a first registration request message;
  • the reading module is configured to: determine that the first registration request message received by the first receiving module includes a remote registration parameter, and determine that the activation indication parameter in the remote registration parameter needs to perform remote registration, and read Taking the CSE list in the remote registration parameter;
  • the first sending module is configured to determine that the CSE list read by the reading module is not empty, and when determining that the target CSE in the CSE list has been registered in the local CSE, according to the CSE list Sending a second registration request message corresponding to the first registration request message.
  • the CSE further includes a first adding module, configured to add a CSE registered on the local CSE to the CSE list when the reading module reads
  • the CSE further includes a second adding module, configured to add, when the CSE list read by the reading module is empty, a CSE that meets the registration policy according to a pre-configured registration policy. In the CSE list.
  • the CSE further includes a deleting module, configured to: when the CSE list read by the reading module includes a CSE that is not registered by the local CSE, deleting the CSE list is not in the local CSE registered by CSE.
  • a deleting module configured to: when the CSE list read by the reading module includes a CSE that is not registered by the local CSE, deleting the CSE list is not in the local CSE registered by CSE.
  • the first sending module is configured to send a second registration request corresponding to the first registration request message according to the identifier or address of the target CSE in the CSE list read by the reading module. Message
  • the second registration request message includes: an identifier or an address of the M2M application, and an identifier or an address of the local CSE.
  • the CSE further includes an update module
  • the first receiving module is further configured to receive a response message of all the second registration request messages, and the updating module is configured to confirm the remote registration according to the response message of all the second registration request messages received by the first receiving module.
  • the first sending module is further configured to send a response message of the first registration request message, where the response message of the first registration request message includes the updated CSE list of the update module, where the CSE list includes Remotely register a successful target CSE.
  • the embodiment of the present invention further provides a CSE, where the CSE is a target CSE, where the CSE includes: a second receiving module, a registration module, and a second sending module;
  • the second receiving module is configured to receive a second registration request message
  • the registration module is configured to create a resource, obtain and store resource attribute information according to the second registration request message received by the second receiving module, where the resource attribute information includes the resource of the M2M application in a local CSE Address link
  • the second sending module is configured to send a second response message corresponding to the second registration request after the registration module resource is created.
  • the embodiment of the present invention further provides a remote registration system for an M2M application, where the system includes: a local CSE and a target CSE;
  • the local CSE is configured to receive the first registration request message, determine that the first registration request message includes a remote registration parameter, and determine that the activation indication parameter representation in the remote registration parameter needs to perform remote registration, and read Determining a CSE list in the remote registration parameter; determining that the CSE list is not empty, and determining that a target CSE in the CSE list has been registered with the local CSE, sending, according to the CSE list, to the target CSE a second registration request message corresponding to the first registration request message;
  • the target CSE is configured to receive a second registration request message sent by the local CSE, create a resource according to the second registration request message, acquire and store resource attribute information, and send the resource attribute information to the local CSE after the resource creation is completed. Sending a second response message corresponding to the second registration request, where the resource attribute information includes a resource address link of the M2M application in the local CSE.
  • the local CSE is configured to add a CSE that has been registered on the local CSE to the CSE list when the CSE list is empty, and send the first registration according to the CSE list.
  • the second registration request message corresponding to the request message.
  • the local CSE is configured to add a CSE that meets the registration policy to the CSE list according to a pre-configured registration policy when the CSE list is empty, and send and send according to the CSE list.
  • the second registration request message corresponding to the first registration request message.
  • the local CSE is configured to: when the local CSE determines that the CSE list includes a CSE that is not registered by the local CSE, delete a CSE that is not registered in the local CSE in the CSE list, according to The CSE list sends a second registration request message corresponding to the first registration request message.
  • the local CSE is configured to send a second registration request message corresponding to the first registration request message according to the identifier or address of the target CSE in the CSE list; wherein, the second registration request The message includes: an identifier or an address of the M2M application, an identifier or an address of the local CSE.
  • the local CSE is configured to: after receiving the response message of all the second registration request messages, confirm the target CSE that is not successfully registered by the remote registration, delete the target CSE that is not successfully registered in the CSE list, and send the first registration request message.
  • the response message of the first registration request message includes the CSE list, and the CSE list includes a target CSE that is successfully registered remotely.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the M2M application applied in the local CSE according to the embodiment of the present invention.
  • Remote registration method is used to execute the M2M application applied in the local CSE according to the embodiment of the present invention.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the M2M application applied to the target CSE according to the embodiment of the present invention.
  • Remote registration method The embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the M2M that the local CSE interacts with the target CSE according to the embodiment of the present invention.
  • the remote registration method of the application is a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the M2M that the local CSE interacts with the target CSE according to the embodiment of the present invention.
  • the local CSE receives the first registration request message sent by the M2M application, determines that the first registration request message includes a remote registration parameter, and determines
  • the activation indication parameter in the remote registration parameter indicates that when the remote registration needs to be performed, the CSE list in the remote registration parameter is read; determining that the CSE list is not empty, and determining that the target CSE in the CSE list is already
  • the local CSE is registered, and the second registration request message corresponding to the first registration request message is sent to the target CSE, and the registration of the M2M application in the target CSE is completed, so that registration is performed on different CSEs.
  • the interaction of the M2M application enhances the user experience.
  • FIG. 1 is a schematic diagram of an application scenario according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of a remote registration method for an M2M application according to a first embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a remote registration method for an M2M application according to a second embodiment of the present invention
  • FIG. 4 is a schematic diagram of an M2M application according to a third embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of a public service entity according to a second embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of a public service entity according to a second embodiment of the present invention
  • Schematic diagram of the composition of the remote registration system of the M2M application Schematic diagram of the composition of the remote registration system of the M2M application. detailed description
  • the M2M communication network is composed of an M2M node and a bearer network
  • the M2M node includes at least one application or a Common Service Entity (CSE).
  • CSE Common Service Entity
  • 1 is a schematic diagram of an application scenario according to an embodiment of the present invention; as shown in FIG. 1, the method includes: an application node 11, an intermediate node 12, a base node 13, and a bearer network 14;
  • the node 11 includes at least one M2M application, but does not include the CSE;
  • the intermediate node 12 includes at least one CSE, which may include one M2M application;
  • the base node 13 includes at least one M2M application to be connected to the locally registered CSE through a dedicated interface, between the CSEs. Communicate through another dedicated interface.
  • FIG. 2 is a schematic flowchart of a remote registration method of an M2M application according to the first embodiment of the present invention; the embodiment is applied to a local CSE; as shown in FIG. 2, the following steps are included:
  • Step 201 The local CSE receives the first registration request message, determines that the first registration request message includes a remote registration parameter, and determines that the activation indication parameter in the remote registration parameter needs to perform remote registration, and reads the Remotely register the CSE list in the parameters.
  • the first registration request message is a registration request message sent by the M2M application;
  • the registration request message includes: an identifier or an address of the M2M application; specifically, the local CSE receives the first registration request of the M2M application.
  • the resource is created for the M2M application according to the information in the first registration request message, and the resource attribute information such as the identifier or address of the M2M application, the resource creation time, the resource validity time, and the retrieval string are stored;
  • the process of registering the local CSE in the M2M application in this embodiment is a prior art, and details are not described herein again.
  • the first registration request message may include a remote registration parameter, where the remote registration parameter includes an activation indication (Activated) and a CSE list (CSEJist); wherein the activation indication is used to indicate the M2M application. Whether it is necessary to perform remote registration; when the activation indication is True, characterizing the M2M application needs to perform remote registration; when the activation indication is False, characterizing the M2M application does not need to perform remote registration;
  • Activated activation indication
  • CSEJist CSE list
  • the CSE list is used to indicate to which CSEs the M2M application needs to be remotely registered.
  • the value of the CSE list is the address of the target CSE or the address of the target CSE.
  • Step 202 Determine that the CSE list is not empty, and determine a target in the CSE list.
  • the CSE has been registered with the local CSE, and sends a second registration request message corresponding to the first registration request message according to the CSE list.
  • registering one CSE with another CSE includes the following steps:
  • the first CSE may determine whether it is necessary to register to the second CSE according to a pre-configuration.
  • the first CSE sends a registration request message to the second CSE, where the registration request message carries the identifier of the first CSE (such as a CSE ID).
  • the second CSE establishes and stores resource attribute information of the first CSE, including the name of the resource, the type of the first CSE, the resource creation time, and the resource validity time, to the first CSE. Sending a registration response message, indicating that the first CSE is successfully registered on the second CSE.
  • the local CSE determines that the CSE list includes a CSE that is not registered by the local CSE
  • deleting the CSE that is not registered in the local CSE in the CSE list is deleted.
  • the method further includes: the local CSE adding a CSE that has been registered on the local CSE to the CSE list, and sending according to the CSE list The second registration request message corresponding to the first registration request message.
  • the local CSE adds a CSE that meets the registration policy to the CSE list according to a pre-configured registration policy, and sends the first registration according to the CSE list.
  • the second registration request message corresponding to the request message.
  • the local CSE may determine, according to the pre-configured registration policy, which target CSEs are remotely registered by the M2M. For example: the local CSE may configure a remote registration policy according to the type of the target CSE. For example, if the pre-configured policy is to register the M2M application only to the CSE of the network server type, the local CSE adds the CSE of the network server type to the CSE column. In the table, or the pre-configured policy is to register the M2M application only to the gateway type CSE, the local CSE adds the gateway type CSE to the CSE list, or pre-configures the policy to register the M2M application to the network server type. On the CSE of the gateway type, the local CSE adds the CSE of the network server type and the CSE of the gateway type to the CSE list.
  • the local CSE may send a second registration request message corresponding to the first registration request message according to the identifier or address of the target CSE in the CSE list; where the second registration request is The message includes: an identifier or an address of the M2M application and an identifier or an address of the local CSE; specifically, the identifier of the M2M application may be a universal resource identifier of the M2M application to create a resource on the local CSE ( URI, uniform resource identifier); address of the M2M application may be created the M2M application resource on the local CSE uniform resource locator (URL, uniform resource locator) 0
  • the local CSE confirms the target CSE that is successfully registered remotely, updates the CSE list, deletes the target CSE that is not successfully registered in the CSE list, and
  • the M2M application sends a response message of the first registration request message
  • the response message of the first registration request message includes the CSE list that is successfully registered remotely.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the M2M application applied in the local CSE according to the embodiment of the present invention.
  • Remote registration method is used to execute the M2M application applied in the local CSE according to the embodiment of the present invention.
  • the remote registration method of the M2M application further includes:
  • the target CSE receives the second registration request message, creates a resource according to the second registration request message, and stores the resource attribute information. After the resource creation is completed, the response message corresponding to the second registration request is sent.
  • the resource attribute information includes a resource address link of the M2M application in the local CSE.
  • the target CSE after receiving the second registration request message sent by the local CSE, the target CSE creates a resource for the M2M application according to the information in the second registration request message, and stores the identifier of the M2M application. Or attribute information such as an address, a resource creation time, a resource validity time, a retrieval string, and the like, and storing a resource address link created by the M2M application in the local CSE; after the registration is completed, returning a response message to the local CSE, the response The message indicates that the remote registration of the M2M application at the target CSE is successful; when no registration is successful, the target CSE returns a response message to the local CSE, the response message indicating that the M2M application is at the target CSE Remote registration failed.
  • attribute information such as an address, a resource creation time, a resource validity time, a retrieval string, and the like
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the M2M application applied to the target CSE according to the embodiment of the present invention.
  • Remote registration method is used to execute the M2M application applied to the target CSE according to the embodiment of the present invention.
  • An embodiment of the present invention further provides an embodiment, where the remote registration method of the M2M application further includes:
  • Step 101 The local CSE receives the first registration request message sent by the M2M application, determines that the first registration request message includes a remote registration parameter, and determines that the activation indication parameter in the remote registration parameter needs to perform remote registration. Read the CSE list in the remote registration parameters.
  • the first registration request message is a registration request message sent by the M2M application;
  • the registration request message includes: an identifier or an address of the M2M application; specifically, the local CSE receives the first registration request of the M2M application.
  • the resource is created for the M2M application according to the information in the first registration request message, and the resource attribute information such as the identifier or address of the M2M application, the resource creation time, the resource validity time, and the retrieval string are stored;
  • the process of registering the local CSE in the M2M application in this embodiment is a prior art, and details are not described herein again.
  • the first registration request message may include a remote registration parameter, where the remote registration parameter includes an activation indication (Activated) and a CSE list (CSEJist); wherein the activation indication is used to indicate the M2M application. Whether it is necessary to perform remote registration; when the activation indication is True, characterizing the M2M application needs to perform remote registration; when the activation indication is False, characterizing the M2M application does not need to perform remote registration;
  • Activated activation indication
  • CSEJist CSE list
  • the CSE list is used to indicate to which CSEs the M2M application needs to be remotely registered.
  • the value of the CSE list is the address of the target CSE or the address of the target CSE.
  • Step 102 Determine that the CSE list is not empty, and determine that all target CSEs in the CSE list have been registered in the local CSE, and send a second registration corresponding to the first registration request message to the target CSE. Requesting a message to complete registration of the M2M application at the target CSE.
  • registering one CSE with another CSE includes the following steps:
  • the first CSE may determine whether it is necessary to register to the second CSE according to a pre-configuration.
  • the first CSE sends a registration request message to the second CSE, where the registration request message carries the identifier of the first CSE (such as a CSE ID).
  • the second CSE establishes and stores resource attribute information of the first CSE, including the name of the resource, the type of the first CSE, the resource creation time, and the resource validity time, to the first CSE. Sending a registration response message, indicating that the first CSE is successfully registered on the second CSE.
  • the local CSE determines that the CSE list includes a CSE that is not registered by the local CSE
  • deleting the CSE that is not registered in the local CSE in the CSE list is deleted.
  • the method further includes: the local CSE will A CSE that has been registered on the local CSE is added to the CSE list, and a second registration request message corresponding to the first registration request message is sent according to the CSE list.
  • the local CSE adds a CSE that meets the registration policy to the CSE list according to a pre-configured registration policy, and sends the first registration according to the CSE list.
  • the second registration request message corresponding to the request message.
  • the local CSE may determine, according to the pre-configured registration policy, which target CSEs are remotely registered by the M2M. For example: the local CSE may configure a remote registration policy according to the type of the target CSE. For example, if the pre-configured policy is to register the M2M application only to the CSE of the network server type, the local CSE adds the CSE of the network server type to the CSE list.
  • the local CSE adds the gateway type CSE to the CSE list, or pre-configures the policy to register the M2M application to the network server type and On the gateway type CSE, the local CSE adds the CSE of the network server type and the CSE of the gateway type to the CSE list.
  • the local CSE may send a second registration request message corresponding to the first registration request message according to the identifier or address of the target CSE in the CSE list; where the second registration request is The message includes: an identifier or an address of the M2M application and an identifier or an address of the local CSE; specifically, the identifier of the M2M application may be a universal resource identifier of the M2M application to create a resource on the local CSE ( URI, uniform resource identifier); address of the M2M application may be created the M2M application resource on the local CSE uniform resource locator (URL, uniform resource locator) 0
  • Step 103 The target CSE receives a second registration request message, creates a resource according to the second registration request message, and acquires and stores resource attribute information. After the resource creation is completed, sending a second corresponding to the second registration request. Second response message;
  • the resource attribute information includes a resource address link of the M2M application in the local CSE. Specifically, after receiving the second registration request message sent by the local CSE, the target CSE creates a resource for the M2M application according to the information in the second registration request message, and stores the identifier of the M2M application.
  • attribute information such as an address, a resource creation time, a resource validity time, a retrieval string, and the like, and storing a resource address link created by the M2M application in the local CSE; after the registration is completed, returning a response message to the local CSE, the response The message indicates that the remote registration of the M2M application at the target CSE is successful; when no registration is successful, the target CSE returns a response message to the local CSE, the response message indicating that the M2M application is at the target CSE Remote registration failed.
  • the local CSE confirms the target CSE that is successfully registered remotely, updates the CSE list, deletes the target CSE that is not successfully registered in the CSE list, and
  • the M2M application sends a response message of the first registration request message
  • the response message of the first registration request message includes the CSE list that is successfully registered remotely.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute a remote registration method of the M2M application according to the embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of a remote registration method of an M2M application according to a second embodiment of the present invention; as shown in FIG. 3, the following steps are included:
  • Step 301 The M2M application sends a registration request message to the local CSE according to the pre-configured registration parameter.
  • the pre-configured parameter includes an identifier (CSE_ID) of the local CSE, and the identifier of the local CSE is used to instruct the M2M application to select a designated CSE to register in all the searched CSEs.
  • CSE_ID an identifier
  • the registration request message can be passed through Create Application Resource Request.
  • the message is carried, and the Create Application Resource Request message includes: an M2M application identifier, an M2M application address, and a remote registration parameter;
  • the remote registration parameter includes an activation indication (Activated) and a CSE list (CSEJist); the activation indication is used to indicate whether the M2M application needs to perform remote registration; when the activation indication is True, characterizing the M2M application needs Performing remote registration; when the activation indication is False, characterizing the M2M application does not need to perform remote registration;
  • Activated activation indication
  • CSEJist CSE list
  • the CSE list is used to indicate to which CSEs the M2M application needs to be remotely registered.
  • Step 302 The local CSE reads the parameter in the registration request message, and performs the local registration of the M2M.
  • the local CSE verifies whether the M2M application has the right to create a resource according to the parameter in the registration request message, and when it is determined that the M2M does not have the right to create a resource, sends a response message to the M2M application, indicating that it has no registration.
  • the M2M application identifier or the M2M application address has been stored, sending a response message to the M2M, indicating that the M2M application has been registered, the resource If the M2M application identifier or the M2M application address does not exist, the local CSE creates a resource for the M2M application, and stores the identifier of the M2M application or the address, resource creation time, and resource of the M2M application. Valid time and retrieval of attribute information such as a string, and storing the resources of the M2M application.
  • Step 303 Determine whether the remote registration parameter is carried in the message. When the determination result is no, step 304 is performed; when the determination result is yes, step 305 is performed.
  • Step 304 Send a response message to the M2M application, where the response message indicates that the M2M application is successfully registered in the local CSE.
  • Step 305 Determine whether the activation indication in the remote registration parameter is True, and if the result of the determination is no, perform step 304; when the result of the determination is yes, perform step 306.
  • Step 306 The local CSE reads the CSE list in the remote registration parameter.
  • Step 307 Determine whether the CSE list is empty. When the result of the determination is yes, step 308 is performed; when the result of the determination is no, step 309 is performed.
  • Step 308 The local CSE adds the CSE that has been registered on the local CSE to the CSE list, and performs step 311.
  • the target CSE pre-registers with the local CSE; the target CSE may determine whether it needs to be registered to the local CSE according to a pre-configuration.
  • the target CSE sends a registration request to the local CSE, where the registration request carries an identifier of the target CSE (such as CSE_ID);
  • the local CSE establishes and stores the resource information of the target CSE, including the name of the resource, the type of the target CSE, the resource creation time, the resource validity time, and the like, and sends a registration response message to the target CSE, indicating the The target CSE is successfully registered on the local CSE.
  • Step 309 It is determined whether the target CSE in the CSE list has been registered in the local CSE. When the result of the determination is no, step 310 is performed; when the result of the determination is yes, step 311 is performed.
  • Step 310 Delete the target CSE that is not registered in the local CSE in the CSE list, and perform step 311.
  • Step 311 Send a registration request of the M2M application to a target CSE in the CSE list.
  • the target CSE after receiving the registration request sent by the local CSE, creates a resource for the M2M application according to the information in the registration request, and stores the identifier of the M2M application or the address of the M2M application. Attribute information such as resource creation time, resource validity time, and search string, and storing a resource address link created by the M2M application in the local CSE; after the registration is completed, returning a response message to the local CSE, where the response message indicates The remote registration of the M2M application at the target CSE is successful; when no registration is successful, the target CSE returns a response message to the local CSE, the response message indicating that the M2M application is The remote registration of the target CSE failed.
  • Attribute information such as resource creation time, resource validity time, and search string
  • Step 312 After receiving the response message returned by all the target CSEs, return the successfully registered target CSE to the M2M application.
  • the local CSE After receiving the response message returned by all the target CSEs, the local CSE returns the remotely registered target CSE to the M2M application.
  • the local CSE update CSE list only includes the identifier of the target CSE that is successfully registered remotely or The address, the remote registration parameters (including the activation indication and the updated CSE list) are sent to the M2M application through a response message.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute a remote registration method of the M2M application according to the embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of a remote registration method of an M2M application according to a third embodiment of the present invention. As shown in FIG. 4, the following steps are included:
  • Step 401 The M2M application sends a registration request message to the local CSE according to the pre-configured registration parameter.
  • the pre-configured parameter includes an identifier (CSE_ID) of the local CSE, and the identifier of the local CSE is used to instruct the M2M application to select a designated CSE to register in all the searched CSEs.
  • CSE_ID an identifier
  • the registration request message may be carried by the Create Application Resource Request message, and the Create Application Resource Request message includes: an M2M application identifier, an M2M application address, and a remote registration parameter;
  • the remote registration parameter includes an activation indication (Activated) and a CSE list (CSEJist); the activation indication is used to indicate whether the M2M application needs to perform remote registration; when the activation indication is True, characterizing the M2M application needs Performing remote registration; when the activation indication is False, characterizing the M2M application does not need to perform remote registration;
  • the CSE list is used to indicate to which CSEs the M2M application needs to be remotely registered.
  • Step 402 The local CSE reads the parameter in the registration request message, and performs local registration of the M2M.
  • the local CSE verifies whether the M2M application has the right to create a resource according to the parameter in the message, and when it is determined that the M2M does not have the right to create a resource, sends a response message to the M2M application, indicating that it has no registration right;
  • the M2M application identifier or the M2M application address has been stored, sending a response message to the M2M, indicating that the M2M application has been registered, and the resource already exists.
  • the local CSE When it is determined that the M2M application identifier or the M2M application address does not exist, the local CSE creates a resource for the M2M application, and stores the identifier of the M2M application or the address of the M2M application, the resource creation time, and the resource effective time. And retrieving attribute information such as a character string, and storing the resource of the M2M application.
  • Step 403 Determine whether the remote registration parameter is carried in the message. When the determination result is no, step 404 is performed; when the determination result is yes, step 405 is performed.
  • Step 404 Send a response message to the M2M application, where the response message indicates that the M2M application is successfully registered in the local CSE.
  • Step 405 Determine whether the activation indication in the remote registration parameter is True, and if the result of the determination is no, perform step 404; when the result of the determination is yes, perform step 406.
  • Step 406 The local CSE reads the CSE list in the remote registration parameter.
  • Step 407 Determine whether the CSE list is empty. When the result of the determination is yes, step 408 is performed; when the result of the determination is no, step 409 is performed.
  • Step 408 The local CSE adds the CSE that meets the registration policy to the CSE list according to the pre-configured registration policy, and performs step 411.
  • the local CSE may pre-configure a remote registration policy, when the CSE column When the table is empty, the local CSE may decide which target CSEs to remotely register the M2M according to the pre-configured registration policy. For example: the local CSE may configure a remote registration policy according to the type of the target CSE. For example, if the pre-configured policy is to register the M2M application only to the CSE of the network server type, the local CSE adds the CSE of the network server type to the CSE list.
  • the local CSE adds the gateway type CSE to the CSE list, or pre-configures the policy to register the M2M application to the network server type and On the gateway type CSE, the local CSE adds the CSE of the network server type and the CSE of the gateway type to the CSE list.
  • Step 409 Determine whether the target CSE in the CSE list has been registered in the local CSE. When the result of the determination is no, step 410 is performed; when the result of the determination is yes, step 411 is performed.
  • the target CSE pre-registers with the local CSE; the target CSE may determine whether it needs to be registered to the local CSE according to a pre-configuration.
  • the target CSE sends a registration request to the local CSE, where the registration request carries an identifier of the target CSE (such as CSE_ID);
  • the local CSE establishes and stores the resource information of the target CSE, including the name of the resource, the type of the target CSE, the resource creation time, and the resource validity time, etc., and sends a registration response message to the target CSE, indicating the The target CSE is successfully registered on the local CSE.
  • Step 410 Delete the target CSE that is not registered in the local CSE in the CSE list, and perform step 411.
  • Step 411 Send a registration request of the M2M application to a target CSE in the CSE list.
  • the target CSE After receiving the registration request sent by the local CSE, the target CSE creates a resource for the M2M application according to the information in the registration request, and stores the identifier of the M2M application or the M2M application. Attribute information such as address, resource creation time, resource validity time, and retrieval string, and storing the resource address chain created by the M2M application in the local CSE
  • the registration is completed, returning a response message to the local CSE, the response message indicating that the remote registration of the M2M application at the target CSE is successful; when no registration is successful, the target CSE is directed to the local CSE Returning a response message indicating that the remote registration of the M2M application at the target CSE failed.
  • Step 412 After receiving the response message returned by all the target CSEs, return the successfully registered target CSE to the M2M application.
  • the local CSE After receiving the response message returned by all the target CSEs, the local CSE returns the remotely registered target CSE to the M2M application.
  • the local CSE update CSE list only includes the identifier of the target CSE that is successfully registered remotely or The address, the remote registration parameters (including the activation indication and the updated CSE list) are sent to the M2M application through a response message.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute a remote registration method of the M2M application according to the embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a public service entity (CSE) according to an embodiment of the present invention.
  • the CSE is used as a local CSE.
  • the local CSE 50 includes: a first receiving module 51, a reading module 52, and a first sending module 53; wherein:
  • the first receiving module 51 is configured to receive a first registration request message
  • the reading module 52 is configured to determine that the first registration request message received by the first receiving module 52 includes a remote registration parameter, and determines that the activation indication parameter in the remote registration parameter needs to perform remote registration Reading the CSE list in the remote registration parameter;
  • the first sending module 53 is configured to determine that the CSE list read by the reading module 52 is not empty, and determine a target in the CSE list When the CSE has registered with the local CSE, the second registration request message corresponding to the first registration request message is sent according to the CSE list.
  • the CSE further includes a first adding module 54 configured to add a CSE that has been registered on the local CSE to the CSE when the CSE list read by the reading module 52 is empty. List.
  • the CSE further includes a second adding module 55 configured to add a CSE that meets the registration policy according to a pre-configured registration policy when the CSE list read by the reading module 52 is empty. To the list of CSEs.
  • a second adding module 55 configured to add a CSE that meets the registration policy according to a pre-configured registration policy when the CSE list read by the reading module 52 is empty. To the list of CSEs.
  • the CSE further includes a deleting module 56, configured to delete, when the CSE list read by the reading module 52 includes a CSE that is not registered by the local CSE, deleting the CSE list.
  • the first sending module 53 is configured to send a second registration request corresponding to the first registration request message according to the identifier or address of the target CSE in the CSE list read by the reading module 52. Message
  • the second registration request message includes: an identifier or an address of the M2M application, and an identifier or an address of the local CSE.
  • the CSE further includes an update module 57;
  • the first receiving module 51 is further configured to receive a response message of all the second registration request messages
  • the update module 57 is configured to confirm, according to the response message of all the second registration request messages received by the first receiving module 51, the target CSE that is not successfully registered by the remote registration, and delete the target CSE that is not successfully registered in the CSE list;
  • the first sending module 53 is further configured to send a response message of the first registration request message, where the response message of the first registration request message includes the CSE list updated by the update module 57, the CSE list This includes the target CSE for successful remote registration.
  • each of the processing units in the local CSE of the embodiment may be implemented by an analog circuit that implements the functions described in the embodiments of the present invention, or may be implemented by running software running the functions described in the embodiments of the present invention on the smart terminal.
  • the local CSE may be set in an intermediate node or a basic node; the intermediate node may be a gateway; the basic node may be a network server; wherein, the reading module 52 in the local CSE An adding module 54, a second adding module 55, an updating module 57 and a deleting module 56 may be used in a practical application by a central processing unit (CPU) in the CSE, or a digital signal processor (DSP, Digital Signal) A processor, or a Field-Programmable Gate Array (FPGA) implementation; the first receiving module 51 and the first transmitting module 53 may be implemented by a transceiver or a transceiver in the CSE in an actual application.
  • CPU central processing unit
  • DSP digital signal processor
  • FPGA Field-Programmable Gate Array
  • FIG. 6 is a schematic structural diagram of a public service entity (CSE) according to an embodiment of the present invention.
  • the CSE is used as a target CSE.
  • the target CSE 60 includes: a second receiving module 61, a registration module 62, and a Two sending module 63; wherein
  • the second receiving module 61 is configured to receive a second registration request message
  • the registration module 62 is configured to create a resource, obtain and store resource attribute information according to the second registration request message received by the second receiving module 61, where the resource attribute information includes the M2M application in a local CSE Resource address link;
  • the second sending module 63 is configured to send a second response message corresponding to the second registration request after the resource is created by the registration module 62.
  • a person skilled in the art should understand that the functions of the processing units in the target CSE of the embodiment of the present invention can be understood by referring to the related description of the remote registration method of the foregoing M2M application, and the processing units in the target CSE of the embodiment of the present invention can pass
  • the implementation of the analog circuit for implementing the functions of the embodiments of the present invention can also be implemented by running the software of the functions described in the embodiments of the present invention on the smart terminal.
  • the target CSE may be set in an intermediate node or a base node; the intermediate node may be a gateway; the base node may be a network server; wherein the registration module 62 in the target CSE is actually
  • the application may be implemented by a CPU, or a DSP, or an FPGA in the CSE; the second receiving module 51 and the second transmitting module 53 may be implemented by a transceiver or a transceiver in the target CSE in an actual application.
  • FIG. 7 is a schematic structural diagram of a remote registration system of an M2M application according to an embodiment of the present invention.
  • the system includes: a local CSE 50 and a target CSE 60;
  • the local CSE 50 is configured to receive a first registration request message, determine that the first registration request message includes a remote registration parameter, and determine that the activation indication parameter representation in the remote registration parameter needs to perform remote registration, and read Taking the CSE list in the remote registration parameter; determining that the CSE list is not empty, and determining that the target CSE 60 in the CSE list has been registered with the local CSE, according to the CSE list to the target CSE 60: Send a second registration request message corresponding to the first registration request message;
  • the target CSE 60 is configured to receive a second registration request message sent by the local CSE 50, create a resource according to the second registration request message, acquire and store resource attribute information, and when the resource is created, The local CSE 50 sends a second response message corresponding to the second registration request, where the resource attribute information includes a resource address link of the M2M application in the local CSE 50.
  • the local CSE 50 is configured to add a CSE that has been registered on the local CSE 50 to the CSE list when the CSE list is empty, and send the same according to the CSE list.
  • the local CSE 50 is configured to add, when the CSE list is empty, a CSE that meets the registration policy to the CSE list according to a pre-configured registration policy, and send and send according to the CSE list. a second registration request message corresponding to the first registration request message.
  • the local CSE 50 is configured to determine the CSE column when the local CSE determines When the CSE that is not registered by the local CSE is included in the table, the CSE that is not registered in the local CSE 50 in the CSE list is deleted, and the second registration corresponding to the first registration request message is sent according to the CSE list. Request message.
  • the local CSE 50 is configured to send, according to the identifier or address of the target CSE in the CSE list, a second registration request message corresponding to the first registration request message, where the second registration is
  • the request message includes: an identifier or an address of the M2M application, an identifier or an address of the local CSE.
  • the local CSE 50 is configured to: after receiving the response message of all the second registration request messages, confirm the target CSE that is not successfully registered by the remote registration, delete the target CSE that is not successfully registered in the CSE list, and send the first registration request.
  • the response message of the message includes: the CSE list in the response message of the first registration request message, where the CSE list includes a target CSE that is successfully registered remotely.
  • the local CSE and the target CSE may be set in an intermediate node or a base node; the intermediate node may be a gateway; the base node may be a network server, providing a management platform of the M2M application; the M2M application It can be installed in various application terminals, such as vending machines, cameras, various household appliances, alarms, and the like.
  • the present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus, and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowcharts and/or block diagrams, and combinations of flow and/or blocks in the flowcharts and/or block diagrams can be implemented by computer program instructions.
  • the computer program instructions can be provided to a processor of a general purpose computer, a special purpose computer, an embedded processor, or other programmable data processing device to produce a machine such that a process or a process and/or a block diagram of a block or A device that has multiple functions specified in the box.
  • These computer program instructions can also be stored in a bootable computer or other programmable data processing
  • the apparatus is readable in a computer readable memory in a particular manner, such that instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device implemented in one or more flows and/or block diagrams of the flowchart The function specified in the box or in multiple boxes.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • the local CSE receives the first registration request message sent by the M2M application, determines that the first registration request message includes a remote registration parameter, and determines that the activation indication parameter in the remote registration parameter needs to perform remote registration. Reading the CSE list in the remote registration parameter; determining that the CSE list is not empty, and determining that the target CSE in the CSE list has been registered in the local CSE, and sending the same to the target CSE.
  • the second registration request message corresponding to the registration request message completes the registration of the M2M application in the target CSE, thus implementing the interaction of the M2M application registered on different CSEs, thereby improving the user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

一种M2M应用的远程注册方法、装置、系统及计算机存储介质,所述方法包括:本地CSE接收到M2M应用发送的第一注册请求消息,确定所述第一注册请求消息中包括远程注册参数,且确定所述远程注册参数中的激活指示参数表征需要执行远程注册时,读取所述远程注册参数中的CSE列表;确定所述CSE列表不为空,且确定所述CSE列表中的目标CSE已在所述本地CSE注册,向所述目标CSE发送与所述第一注册请求消息对应的第二注册请求消息。

Description

M2M应用的远程注册方法、 装置、 系统及存储介质 技术领域
本发明涉及通信技术, 具体涉及一种机器对机器 ( M2M, Machine-to-Machine )应用的远程注册方法、装置、 系统及计算机存储介质。 背景技术
在传统的 M2M业务中, 都是单一的 M2M应用进行通信, 例如电网公 司管理的智能电表业务中, 只需要终端的智能电表上的应用和电网公司管 理的服务器上的应用进行交互即可。 然而, 随着 M2M业务的扩展, 有可能 不同 M2M应用之间需要进行交互,例如智能家电除了享受智能家电公司提 供的智能家电在线故障诊断维修业务之外, 还可以享受由其他影音服务商 提供的在线电影服务等等。在多种 M2M应用交互的场景下, 现有的应用单 一注册到本地 CSE的技术方案已经不能满足多应用交互情景下的应用发现 需求, 当需要交互的 M2M应用没有注册在同一个 CSE上时, 根本无法做 到相互发现, 也就给实现多应用的交互制造了困难。 发明内容
为解决现有存在的技术问题, 本发明实施例的主要目的在于提供一种 M2M应用的远程注册方法、 装置和系统, 能够实现注册在不同 CSE上的 M2M应用的交互, 提升用户的体验。
为达到上述目的, 本发明实施例的技术方案是这样实现的:
本发明实施例提供了一种 M2M应用的远程注册方法,应用于本地 CSE 中, 所述方法包括:
本地 CSE接收到第一注册请求消息, 确定所述第一注册请求消息中包 括远程注册参数, 且确定所述远程注册参数中的激活指示参数表征需要执 行远程注册时, 读取所述远程注册参数中的 CSE列表;
确定所述 CSE列表不为空, 且确定所述 CSE列表中的目标 CSE已在 所述本地 CSE注册时,根据所述 CSE列表发送与所述第一注册请求消息对 应的第二注册请求消息。
优选地, 当所述 CSE列表为空时, 所述方法还包括:
所述本地 CSE将已在所述本地 CSE上注册的 CSE添加至所述 CSE列 表中, 根据所述 CSE列表发送与所述第一注册请求消息对应的第二注册请 求消息。
优选地, 当所述 CSE列表为空时, 所述方法还包括:
所述本地 CSE根据预先配置的注册策略, 将符合所述注册策略的 CSE 添加至所述 CSE列表中,根据所述 CSE列表发送与所述第一注册请求消息 对应的第二注册请求消息。
优选地, 当所述本地 CSE确定所述 CSE列表中包括没有在所述本地 CSE注册的 CSE时, 所述方法还包括:
删除所述 CSE列表中没有在所述本地 CSE注册的 CSE,根据所述 CSE 列表发送与所述第一注册请求消息对应的第二注册请求消息。
优选地, 所述根据所述 CSE列表发送与所述第一注册请求消息对应的 第二注册请求消息, 包括:
根据所述 CSE列表中的所述目标 CSE的标识或地址发送与所述第一注 册请求消息对应的第二注册请求消息;
其中, 所述第二注册请求消息包括: 所述 M2M应用的标识或地址、 所 述本地 CSE的标识或地址。
优选地, 所述方法还包括:
所述本地 CSE接收到所有第二注册请求消息的响应消息后, 确认远程 注册未成功的目标 CSE, 删除 CSE列表中未成功注册的目标 CSE, 并发送 第一注册请求消息的响应消息;
所述第一注册请求消息的响应消息中包括所述 CSE列表,所述 CSE列 表中包括远程注册成功的目标 CSE。
本发明实施例还提供了一种 M2M应用的远程注册方法, 应用于目标 CSE中; 所述方法包括:
目标 CSE接收到第二注册请求消息, 根据所述第二注册请求消息创建 资源、 获取并存储资源属性信息; 当资源创建完成后, 发送与所述第二注 册请求对应的第二响应消息;
其中, 所述资源属性信息包括所述 M2M应用在本地 CSE的资源地址 链接。
本发明实施例还提供了一种 M2M应用的远程注册方法, 所述方法包 括:
本地 CSE接收到第一注册请求消息, 确定所述第一注册请求消息中包 括远程注册参数, 且确定所述远程注册参数中的激活指示参数表征需要执 行远程注册时, 读取所述远程注册参数中的 CSE列表;
确定所述 CSE列表不为空, 且确定所述 CSE列表中的所有目标 CSE 已在所述本地 CSE注册,根据所述 CSE列表发送与所述第一注册请求消息 对应的第二注册请求消息;
所述目标 CSE接收到第二注册请求消息, 根据所述第二注册请求消息 创建资源、 获取并存储资源属性信息; 当资源创建完成后, 发送与所述第 二注册请求对应的第二响应消息;
其中, 所述资源属性信息包括所述 M2M应用在本地 CSE的资源地址 链接。
优选地, 当所述 CSE列表为空时, 所述方法还包括: 所述本地 CSE将已在所述本地 CSE上注册的 CSE添加至所述 CSE列 表中,向所述 CSE列表中的所有目标 CSE发送与所述第一注册请求消息对 应的第二注册请求消息。
优选地, 当所述 CSE列表为空时, 所述方法还包括:
所述本地 CSE根据预先配置的注册策略, 将符合所述注册策略的 CSE 添加至所述 CSE列表中, 向所述 CSE列表中的所有目标 CSE发送与所述 第一注册请求消息对应的第二注册请求消息。
优选地, 当所述本地 CSE确定所述 CSE列表中包括没有在所述本地 CSE注册的 CSE时, 所述方法还包括:
删除所述 CSE列表中没有在所述本地 CSE注册的 CSE, 向所述 CSE 列表中的所有目标 CSE发送与所述第一注册请求消息对应的第二注册请求 消息。
优选地, 所述根据所述 CSE列表发送与所述第一注册请求消息对应的 第二注册请求消息, 包括:
根据所述 CSE列表中的所述目标 CSE的标识或地址发送与所述第一注 册请求消息对应的第二注册请求消息;
其中, 所述第二注册请求消息包括: 所述 M2M应用的标识或地址、 所 述本地 CSE的标识或地址。
优选地, 所述方法还包括: 所述本地 CSE接收到所有目标 CSE发送的 第二注册请求消息的响应消息后, 确认远程注册未成功的目标 CSE, 删除 CSE列表中未成功注册的目标 CSE, 发送第一注册请求消息的响应消息; 所述第一注册请求消息的响应消息中包括所述 CSE列表,所述 CSE列 表中包括远程注册成功的目标 CSE。
本发明实施例还提供了一种 CSE, 所述 CSE作为本地 CSE, 所述 CSE 包括: 第一接收模块、 读取模块和第一发送模块; 其中: 所述第一接收模块, 配置为接收第一注册请求消息;
所述读取模块, 配置为确定所述第一接收模块接收的所述第一注册请 求消息中包含远程注册参数, 且确定所述远程注册参数中的激活指示参数 表征需要执行远程注册时, 读取所述远程注册参数中的 CSE列表;
所述第一发送模块, 配置为确定所述读取模块读取的所述 CSE列表不 为空, 且确定所述 CSE列表中的目标 CSE已在所述本地 CSE注册时, 根 据所述 CSE列表发送与所述第一注册请求消息对应的第二注册请求消息。
优选地, 所述 CSE还包括第一添加模块, 配置为当所述读取模块读取 的所述 CSE列表为空时, 将已在所述本地 CSE上注册的 CSE添加至所述
CSE列表中。
优选地, 所述 CSE还包括第二添加模块, 配置为当所述读取模块读取 的所述 CSE列表为空时, 根据预先配置的注册策略, 将符合所述注册策略 的 CSE添加至所述 CSE列表中。
优选地, 所述 CSE还包括删除模块, 配置为当所述读取模块读取的所 述 CSE列表中包括没有在所述本地 CSE注册的 CSE时, 删除所述 CSE列 表中没有在所述本地 CSE注册的 CSE。
优选地,所述第一发送模块,配置为根据所述读取模块读取的所述 CSE 列表中的所述目标 CSE的标识或地址发送与所述第一注册请求消息对应的 第二注册请求消息;
其中, 所述第二注册请求消息包括: 所述 M2M应用的标识或地址、 所 述本地 CSE的标识或地址。
优选地, 所述 CSE还包括更新模块;
所述第一接收模块, 还配置为接收所有第二注册请求消息的响应消息、 所述更新模块, 配置为根据所述第一接收模块接收的所有第二注册请 求消息的响应消息, 确认远程注册未成功的目标 CSE, 删除 CSE列表中未 成功注册的目标 CSE;
所述第一发送模块, 还配置为发送第一注册请求消息的响应消息, 所 述第一注册请求消息的响应消息中包括所述更新模块更新后的所述 CSE列 表, 所述 CSE列表中包括远程注册成功的目标 CSE。
本发明实施例还提供了一种 CSE, 所述 CSE作为目标 CSE, 所述 CSE 包括: 第二接收模块、 注册模块和第二发送模块; 其中,
所述第二接收模块, 配置为接收第二注册请求消息;
所述注册模块, 配置为根据所述第二接收模块接收的所述第二注册请 求消息创建资源、 获取并存储资源属性信息; 其中, 所述资源属性信息包 括所述 M2M应用在本地 CSE的资源地址链接;
所述第二发送模块, 配置为所述注册模块资源创建完成后, 发送与所 述第二注册请求对应的第二响应消息。
本发明实施例还提供了一种 M2M应用的远程注册系统, 所述系统包 括: 本地 CSE和目标 CSE; 其中,
所述本地 CSE, 配置为接收到第一注册请求消息, 确定所述第一注册 请求消息中包括远程注册参数, 且确定所述远程注册参数中的激活指示参 数表征需要执行远程注册时, 读取所述远程注册参数中的 CSE列表; 确定 所述 CSE列表不为空, 且确定所述 CSE列表中的目标 CSE已在所述本地 CSE注册时,根据所述 CSE列表向所述目标 CSE发送与所述第一注册请求 消息对应的第二注册请求消息;
所述目标 CSE,配置为接收到所述本地 CSE发送的第二注册请求消息, 根据所述第二注册请求消息创建资源、 获取并存储资源属性信息; 当资源 创建完成后, 向所述本地 CSE发送与所述第二注册请求对应的第二响应消 息; 其中, 所述资源属性信息包括所述 M2M应用在本地 CSE的资源地址 链接。 优选地, 所述本地 CSE, 配置为当所述 CSE列表为空时, 将已在所述 本地 CSE上注册的 CSE添加至所述 CSE列表中, 根据所述 CSE列表发送 与所述第一注册请求消息对应的第二注册请求消息。
优选地, 所述本地 CSE, 配置为当所述 CSE列表为空时, 根据预先配 置的注册策略, 将符合所述注册策略的 CSE添加至所述 CSE列表中, 根据 所述 CSE列表发送与所述第一注册请求消息对应的第二注册请求消息。
优选地, 所述本地 CSE, 配置为当所述本地 CSE确定所述 CSE列表中 包括没有在所述本地 CSE注册的 CSE时, 删除所述 CSE列表中没有在所 述本地 CSE注册的 CSE,根据所述 CSE列表发送与所述第一注册请求消息 对应的第二注册请求消息。
优选地, 所述本地 CSE, 配置为根据所述 CSE列表中的所述目标 CSE 的标识或地址发送与所述第一注册请求消息对应的第二注册请求消息; 其 中, 所述第二注册请求消息包括: 所述 M2M应用的标识或地址、 所述本地 CSE的标识或地址。
优选地, 所述本地 CSE, 配置为接收到所有第二注册请求消息的响应 消息后, 确认远程注册未成功的目标 CSE, 删除 CSE列表中未成功注册的 目标 CSE, 并发送第一注册请求消息的响应消息; 所述第一注册请求消息 的响应消息中包括所述 CSE列表,所述 CSE列表中包括远程注册成功的目 标 CSE。
本发明实施例还提供了一种计算机存储介质, 所述计算机存储介质中 存储有计算机可执行指令, 所述计算机可执行指令用于执行本发明实施例 所述的应用于本地 CSE中的 M2M应用的远程注册方法。
本发明实施例还提供了一种计算机存储介质, 所述计算机存储介质中 存储有计算机可执行指令, 所述计算机可执行指令用于执行本发明实施例 所述的应用于目标 CSE中的 M2M应用的远程注册方法。 本发明实施例还提供了一种计算机存储介质, 所述计算机存储介质中 存储有计算机可执行指令, 所述计算机可执行指令用于执行本发明实施例 所述的本地 CSE与目标 CSE交互的 M2M应用的远程注册方法。
本发明实施例的 M2M应用的远程注册方法、装置、 系统及计算机存储 介质, 本地 CSE接收到 M2M应用发送的第一注册请求消息, 确定所述第 一注册请求消息中包括远程注册参数, 且确定所述远程注册参数中的激活 指示参数表征需要执行远程注册时,读取所述远程注册参数中的 CSE列表; 确定所述 CSE列表不为空, 且确定所述 CSE列表中的目标 CSE已在所述 本地 CSE注册,向所述目标 CSE发送与所述第一注册请求消息对应的第二 注册请求消息, 完成所述 M2M应用在所述目标 CSE的注册, 如此, 实现 了注册在不同 CSE上的 M2M应用的交互, 提升了用户的体验。 附图说明
图 1为本发明实施例的应用场景示意图;
图 2为本发明第一实施例的 M2M应用的远程注册方法流程示意图; 图 3为本发明第二实施例的 M2M应用的远程注册方法流程示意图; 图 4为本发明第三实施例的 M2M应用的远程注册方法流程示意图; 图 5为本发明第一实施例的公共业务实体的组成结构示意图; 图 6为本发明第二实施例的公共业务实体的组成结构示意图; 图 7为本发明实施例的 M2M应用的远程注册系统的组成结构示意图。 具体实施方式
在本发明的各种实施例中, M2M通信网络是由 M2M节点和承载网络 组成, M2M节点至少包含一个应用或者一个公共业务实体 ( CSE, Common Service Entity )。 图 1为本发明实施例的应用场景示意图; 如图 1所示, 包 括: 应用节点 11、 中间节点 12、 基础节点 13和承载网 14; 其中, 所述应 用节点 11包括至少一个 M2M应用,但不包括 CSE; 中间节点 12包括至少 一个 CSE, 可以包括一个 M2M应用; 基础节点 13包括至少一个 M2M应 应用通过专用接口连接到本地注册的 CSE, CSE之间通过另一专用接口进 行通信。
下面结合附图及具体实施例对本发明作进一步详细的说明。
图 2为本发明第一实施例的 M2M应用的远程注册方法流程示意图;本 实施例应用于本地 CSE中; 如图 2所示, 包括以下步骤:
步骤 201 : 本地 CSE接收到第一注册请求消息, 确定所述第一注册请 求消息中包括远程注册参数, 且确定所述远程注册参数中的激活指示参数 表征需要执行远程注册时, 读取所述远程注册参数中的 CSE列表。
这里, 所述第一注册请求消息为 M2M应用发送的注册请求消息; 所述 注册请求消息包括: 所述 M2M应用的标识或地址; 具体的, 所述本地 CSE 接收到 M2M应用的第一注册请求消息后,根据所述第一注册请求消息中的 信息, 为所述 M2M应用创建资源, 并存储所述 M2M应用的标识或地址、 资源创建时间、 资源有效时间和检索字符串等资源属性信息; 本实施例所 述的 M2M应用在本地 CSE注册的过程为现有技术, 此处不再赘述。
本实施例中, 所述第一注册请求消息中可以包括远程注册参数, 所述 远程注册参数包括激活指示(Activated )和 CSE列表(CSEJist ); 其中, 所述激活指示用于指示所述 M2M应用是否需要执行远程注册; 当所述 激活指示为 True时, 表征所述 M2M应用需要执行远程注册; 当所述激活 指示为 False时, 表征所述 M2M应用不需要执行远程注册;
所述 CSE列表用于指示所述 M2M应用需要远程注册至哪些 CSE上; 其中, 所述 CSE列表的值为除目标 CSE的标识或目标 CSE的地址。
步骤 202: 确定所述 CSE列表不为空, 且确定所述 CSE列表中的目标 CSE已在所述本地 CSE注册,根据所述 CSE列表发送与所述第一注册请求 消息对应的第二注册请求消息。
这里, 一个 CSE向另一个 CSE注册包括以下步骤:
第一 CSE可根据预先配置确定是否需要注册到第二 CSE上。确定所述 第一 CSE需要注册到第二 CSE上时, 所述第一 CSE向所述第二 CSE发送 注册请求消息, 所述注册请求消息中携带有所述第一 CSE 的标识 (如 CSE ID ); 所述第二 CSE建立并存储所述第一 CSE的资源属性信息, 包括 所述资源的名称、 所述第一 CSE的类型、 资源创建时间以及资源有效时间 等, 向所述第一 CSE发送注册响应消息, 指示所述第一 CSE在所述第二 CSE上注册成功。
优选地, 当所述 CSE列表不为空, 且所述本地 CSE确定所述 CSE列 表中包括没有在所述本地 CSE注册的 CSE时, 删除所述 CSE列表中没有 在所述本地 CSE注册的 CSE,根据所述 CSE列表发送与所述第一注册请求 消息对应的第二注册请求消息,以确保所述 M2M应用远程注册的目标 CSE 均为在所述本地 CSE注册的目标 CSE。
优选地, 当所述 CSE列表为空时, 所述方法还包括: 所述本地 CSE将 已在所述本地 CSE上注册的 CSE添加至所述 CSE列表中, 根据所述 CSE 列表发送与所述第一注册请求消息对应的第二注册请求消息。
或者, 当所述 CSE列表为空时, 所述本地 CSE根据预先配置的注册策 略, 将符合所述注册策略的 CSE添加至所述 CSE列表中, 根据所述 CSE 列表发送与所述第一注册请求消息对应的第二注册请求消息。
具体的,所述本地 CSE可根据所述预先配置的注册策略决策所述 M2M 向哪些目标 CSE进行远程注册。 例如: 所述本地 CSE可根据所述目标 CSE 的类型配置远程注册策略,如预先配置策略为将 M2M应用仅注册到网络服 务器类型的 CSE上, 则本地 CSE将网络服务器类型的 CSE添加到 CSE列 表中; 或者预先配置策略为将 M2M应用仅注册到网关类型的 CSE上, 则 本地 CSE将网关类型的 CSE添加到 CSE列表中, 或者预先配置策略为将 M2M应用注册到网络月良务器类型和网关类型的 CSE上, 则本地 CSE将网 络服务器类型的 CSE和网关类型的 CSE添加到 CSE列表中。
本实施例中, 所述本地 CSE可根据所述 CSE列表中的所述目标 CSE 的标识或地址发送与所述第一注册请求消息对应的第二注册请求消息; 其中, 所述第二注册请求消息包括: 所述 M2M应用的标识或地址和所 述本地 CSE的标识或地址;具体的,所述 M2M应用的标识可以是所述 M2M 应用在所述本地 CSE上创建资源的通用资源标识符( URI, Uniform Resource Identifier ); 所述 M2M应用的地址可以是所述 M2M应用在所述本地 CSE 上创建资源的统一资源定位符 (URL, Uniform Resource Locator )0
优选地, 当所述本地 CSE接收到所有目标 CSE返回的第二注册请求消 息的响应消息后,确认远程注册成功的目标 CSE,更新 CSE列表,删除 CSE 列表中未成功注册的目标 CSE,并向 M2M应用发送第一注册请求消息的响 应消息;
所述第一注册请求消息的响应消息中包括远程注册成功的所述 CSE列 表。
本发明实施例还提供了一种计算机存储介质, 所述计算机存储介质中 存储有计算机可执行指令, 所述计算机可执行指令用于执行本发明实施例 所述的应用于本地 CSE中的 M2M应用的远程注册方法。
在本发明提供的另一实施例中, 所述 M2M应用的远程注册方法还包 括:
目标 CSE接收到第二注册请求消息, 根据所述第二注册请求消息创建 资源, 并存储资源属性信息; 当资源创建完成后, 发送所述第二注册请求 对应的响应消息; 其中, 所述资源属性信息包括所述 M2M应用在本地 CSE的资源地址 链接。
具体的,所述目标 CSE接收到所述本地 CSE发送的第二注册请求消息 后, 根据所述第二注册请求消息中的信息, 为所述 M2M应用创建资源, 并 存储所述 M2M应用的标识或地址、 资源创建时间、 资源有效时间、 检索字 符串等属性信息,并存储所述 M2M应用在本地 CSE创建的资源地址链接; 待注册完成后, 向所述本地 CSE返回响应消息, 所述响应消息指示所述 M2M应用在所述目标 CSE的远程注册成功; 当没有注册成功时,所述目标 CSE向所述本地 CSE返回响应消息, 所述响应消息指示所述 M2M应用在 所述目标 CSE的远程注册失败。
本发明实施例还提供了一种计算机存储介质, 所述计算机存储介质中 存储有计算机可执行指令, 所述计算机可执行指令用于执行本发明实施例 所述的应用于目标 CSE中的 M2M应用的远程注册方法。
本发明实施例还提供了一种实施例,所述 M2M应用的远程注册方法还 包括:
步骤 101 : 本地 CSE接收到 M2M应用发送的第一注册请求消息,确定 所述第一注册请求消息中包括远程注册参数, 且确定所述远程注册参数中 的激活指示参数表征需要执行远程注册时, 读取所述远程注册参数中的 CSE列表。
这里, 所述第一注册请求消息为 M2M应用发送的注册请求消息; 所述 注册请求消息包括: 所述 M2M应用的标识或地址; 具体的, 所述本地 CSE 接收到 M2M应用的第一注册请求消息后,根据所述第一注册请求消息中的 信息, 为所述 M2M应用创建资源, 并存储所述 M2M应用的标识或地址、 资源创建时间、 资源有效时间和检索字符串等资源属性信息; 本实施例所 述的 M2M应用在本地 CSE注册的过程为现有技术, 此处不再赘述。 本实施例中, 所述第一注册请求消息中可以包括远程注册参数, 所述 远程注册参数包括激活指示(Activated )和 CSE列表(CSEJist ); 其中, 所述激活指示用于指示所述 M2M应用是否需要执行远程注册; 当所述 激活指示为 True时, 表征所述 M2M应用需要执行远程注册; 当所述激活 指示为 False时, 表征所述 M2M应用不需要执行远程注册;
所述 CSE列表用于指示所述 M2M应用需要远程注册至哪些 CSE上; 其中, 所述 CSE列表的值为除目标 CSE的标识或目标 CSE的地址。
步骤 102: 确定所述 CSE列表不为空, 且确定所述 CSE列表中的所有 目标 CSE已在所述本地 CSE注册, 向所述目标 CSE发送与所述第一注册 请求消息对应的第二注册请求消息,以完成所述 M2M应用在所述目标 CSE 的注册。
这里, 一个 CSE向另一个 CSE注册包括以下步骤:
第一 CSE可根据预先配置确定是否需要注册到第二 CSE上。确定所述 第一 CSE需要注册到第二 CSE上时, 所述第一 CSE向所述第二 CSE发送 注册请求消息, 所述注册请求消息中携带有所述第一 CSE 的标识 (如 CSE ID ); 所述第二 CSE建立并存储所述第一 CSE的资源属性信息, 包括 所述资源的名称、 所述第一 CSE的类型、 资源创建时间以及资源有效时间 等, 向所述第一 CSE发送注册响应消息, 指示所述第一 CSE在所述第二 CSE上注册成功。
优选地, 当所述 CSE列表不为空, 且所述本地 CSE确定所述 CSE列 表中包括没有在所述本地 CSE注册的 CSE时, 删除所述 CSE列表中没有 在所述本地 CSE注册的 CSE,根据所述 CSE列表发送与所述第一注册请求 消息对应的第二注册请求消息,以确保所述 M2M应用远程注册的目标 CSE 均为在所述本地 CSE注册的目标 CSE。
优选地, 当所述 CSE列表为空时, 所述方法还包括: 所述本地 CSE将 已在所述本地 CSE上注册的 CSE添加至所述 CSE列表中, 根据所述 CSE 列表发送与所述第一注册请求消息对应的第二注册请求消息。
或者, 当所述 CSE列表为空时, 所述本地 CSE根据预先配置的注册策 略, 将符合所述注册策略的 CSE添加至所述 CSE列表中, 根据所述 CSE 列表发送与所述第一注册请求消息对应的第二注册请求消息。
具体的,所述本地 CSE可根据所述预先配置的注册策略决策所述 M2M 向哪些目标 CSE进行远程注册。 例如: 所述本地 CSE可根据所述目标 CSE 的类型配置远程注册策略,如预先配置策略为将 M2M应用仅注册到网络服 务器类型的 CSE上, 则本地 CSE将网络服务器类型的 CSE添加到 CSE列 表中; 或者预先配置策略为将 M2M应用仅注册到网关类型的 CSE上, 则 本地 CSE将网关类型的 CSE添加到 CSE列表中, 或者预先配置策略为将 M2M应用注册到网络月良务器类型和网关类型的 CSE上, 则本地 CSE将网 络服务器类型的 CSE和网关类型的 CSE添加到 CSE列表中。
本实施例中, 所述本地 CSE可根据所述 CSE列表中的所述目标 CSE 的标识或地址发送与所述第一注册请求消息对应的第二注册请求消息; 其中, 所述第二注册请求消息包括: 所述 M2M应用的标识或地址和所 述本地 CSE的标识或地址;具体的,所述 M2M应用的标识可以是所述 M2M 应用在所述本地 CSE上创建资源的通用资源标识符( URI, Uniform Resource Identifier ); 所述 M2M应用的地址可以是所述 M2M应用在所述本地 CSE 上创建资源的统一资源定位符 (URL, Uniform Resource Locator )0
步骤 103: 所述目标 CSE接收到第二注册请求消息, 根据所述第二注 册请求消息创建资源、 获取并存储资源属性信息; 当资源创建完成后, 发 送与所述第二注册请求对应的第二响应消息;
其中, 所述资源属性信息包括所述 M2M应用在本地 CSE的资源地址 链接。 具体的,所述目标 CSE接收到所述本地 CSE发送的第二注册请求消息 后, 根据所述第二注册请求消息中的信息, 为所述 M2M应用创建资源, 并 存储所述 M2M应用的标识或地址、 资源创建时间、 资源有效时间、 检索字 符串等属性信息,并存储所述 M2M应用在本地 CSE创建的资源地址链接; 待注册完成后, 向所述本地 CSE返回响应消息, 所述响应消息指示所述 M2M应用在所述目标 CSE的远程注册成功; 当没有注册成功时,所述目标 CSE向所述本地 CSE返回响应消息, 所述响应消息指示所述 M2M应用在 所述目标 CSE的远程注册失败。
优选地, 当所述本地 CSE接收到所有目标 CSE返回的第二注册请求消 息的响应消息后,确认远程注册成功的目标 CSE,更新 CSE列表,删除 CSE 列表中未成功注册的目标 CSE,并向 M2M应用发送第一注册请求消息的响 应消息;
所述第一注册请求消息的响应消息中包括远程注册成功的所述 CSE列 表。
本发明实施例还提供了一种计算机存储介质, 所述计算机存储介质中 存储有计算机可执行指令, 所述计算机可执行指令用于执行本发明实施例 所述的 M2M应用的远程注册方法。
图 3为本发明第二实施例的 M2M应用的远程注册方法流程示意图;如 图 3所示, 包括以下步骤:
步骤 301 : M2M应用根据预先配置的注册参数, 向本地 CSE发送注册 请求消息。
这里, 所述预先配置的参数包括本地 CSE的标识(CSE— ID ), 所述本 地 CSE的标识用于指示所述 M2M应用在搜索到的所有 CSE中选择指定的 CSE进行注册。
这里, 所述注册请求消息可以通过 Create Application Resource Request 消息承载,并且,所述 Create Application Resource Request消息中包括: M2M 应用标识、 M2M应用地址, 还可以包括远程注册参数; 其中,
所述远程注册参数包括激活指示( Activated )和 CSE列表( CSEJist ); 所述激活指示用于指示所述 M2M应用是否需要执行远程注册; 当所述 激活指示为 True时, 表征所述 M2M应用需要执行远程注册; 当所述激活 指示为 False时, 表征所述 M2M应用不需要执行远程注册;
所述 CSE列表用于指示所述 M2M应用需要远程注册至哪些 CSE上。 步骤 302: 本地 CSE读取注册请求消息中的参数,执行所述 M2M的本 地注册。
这里, 本地 CSE根据所述注册请求消息中的参数验证所述 M2M应用 是否有创建资源的权限, 当确定所述 M2M没有创建资源的权限时, 向所述 M2M应用发送响应消息, 指示其无注册权限; 当确定所述 M2M有创建资 本地创建的资源, 当确定所述 M2M应用标识或所述 M2M应用地址已经存 储, 则向所述 M2M发送响应消息, 指示所述 M2M应用已注册过, 资源已 存在; 当确定所述 M2M应用标识或所述 M2M应用地址不存在, 则本地 CSE为所述 M2M应用创建资源, 存储所述 M2M应用的标识或所述 M2M 应用的地址、 资源创建时间、 资源有效时间以及检索字符串等属性信息, 并存储所述 M2M应用的资源。
步骤 303:判断所述消息中是否携带远程注册参数,当判断结果为否时, 执行步骤 304; 当判断结果为是时, 执行步骤 305。
步骤 304: 向所述 M2M应用发送响应消息, 所述响应消息指示所述 M2M应用在所述本地 CSE成功注册。
步骤 305: 判断所述远程注册参数中的激活指示是否为 True, 当判断的 结果为否, 执行步骤 304; 当判断的结果为是时, 执行步骤 306。 步骤 306: 本地 CSE读取所述远程注册参数中的 CSE列表。 步骤 307: 判断所述 CSE列表是否为空, 当判断的结果为是时, 执行 步骤 308; 当判断的结果为否时, 执行步骤 309。
步骤 308: 本地 CSE将已在所述本地 CSE上注册的 CSE添加至所述 CSE列表中, 执行步骤 311。
本实施例中, 所述目标 CSE预先完成在所述本地 CSE的注册; 所述目 标 CSE可根据预先配置确定是否需要注册到本地 CSE上。 当确定所述目标 CSE需要注册到所述本地 CSE上时, 所述目标 CSE向所述本地 CSE发送 注册请求, 所述注册请求中携带有所述目标 CSE的标识(如 CSE— ID ); 所 述本地 CSE建立并存储所述目标 CSE的资源信息, 包括所述资源的名称、 所述目标 CSE的类型、 资源创建时间、 资源有效时间等, 向所述目标 CSE 发送注册响应消息, 指示所述目标 CSE在所述本地 CSE上注册成功。
步骤 309:判断所述 CSE列表中的目标 CSE是否都已在本地 CSE注册, 当判断的结果为否时,执行步骤 310; 当判断的结果为是时,执行步骤 311。
步骤 310:删除所述 CSE列表中没有在所述本地 CSE注册的目标 CSE, 执行步骤 311。
步骤 311 : 向所述 CSE列表中的目标 CSE发送所述 M2M应用的注册 请求。
这里, 所述目标 CSE接收到所述本地 CSE发送的注册请求后, 根据所 述注册请求中的信息, 为所述 M2M应用创建资源, 并存储所述 M2M应用 的标识或所述 M2M应用的地址、 资源创建时间、 资源有效时间以及检索字 符串等属性信息,并存储所述 M2M应用在本地 CSE创建的资源地址链接; 待注册完成后, 向所述本地 CSE返回响应消息, 所述响应消息指示所述 M2M应用在所述目标 CSE的远程注册成功; 当没有注册成功时,所述目标 CSE向所述本地 CSE返回响应消息, 所述响应消息指示所述 M2M应用在 所述目标 CSE的远程注册失败。
步骤 312: 接收到所有目标 CSE返回的响应消息后, 将注册成功的目 标 CSE返回给 M2M应用。
这里, 所述本地 CSE接收到所有目标 CSE返回的响应消息后, 将远程 注册成功的目标 CSE返回至 M2M应用; 具体的, 所述本地 CSE更新 CSE 列表只包括远程注册成功的目标 CSE的标识或地址, 将远程注册参数 (包 括激活指示和更新后的 CSE列表)通过响应消息发送至 M2M应用。
本发明实施例还提供了一种计算机存储介质, 所述计算机存储介质中 存储有计算机可执行指令, 所述计算机可执行指令用于执行本发明实施例 所述的 M2M应用的远程注册方法。
图 4为本发明第三实施例的 M2M应用的远程注册方法流程示意图;如 图 4所示, 包括以下步骤:
步骤 401: M2M应用根据预先配置的注册参数, 向本地 CSE发送注册 请求消息。
这里, 所述预先配置的参数包括本地 CSE的标识(CSE— ID ), 所述本 地 CSE的标识用于指示所述 M2M应用在搜索到的所有 CSE中选择指定的 CSE进行注册。
这里, 所述注册请求消息可以通过 Create Application Resource Request 消息承载,并且,所述 Create Application Resource Request消息中包括: M2M 应用标识、 M2M应用地址, 还可以包括远程注册参数; 其中,
所述远程注册参数包括激活指示( Activated )和 CSE列表( CSEJist ); 所述激活指示用于指示所述 M2M应用是否需要执行远程注册; 当所述 激活指示为 True时, 表征所述 M2M应用需要执行远程注册; 当所述激活 指示为 False时, 表征所述 M2M应用不需要执行远程注册; 所述 CSE列表用于指示所述 M2M应用需要远程注册至哪些 CSE上。 步骤 402: 本地 CSE读取注册请求消息中的参数,执行所述 M2M的本 地注册。
这里, 本地 CSE根据所述消息中的参数验证所述 M2M应用是否有创 建资源的权限, 当确定所述 M2M没有创建资源的权限时, 向所述 M2M应 用发送响应消息, 指示其无注册权限; 当确定所述 M2M有创建资源的权限 的资源, 当确定所述 M2M应用标识或所述 M2M应用地址已经存储, 则向 所述 M2M发送响应消息, 指示所述 M2M应用已注册过, 资源已存在; 当 确定所述 M2M应用标识或所述 M2M应用地址不存在,则本地 CSE为所述 M2M应用创建资源,存储所述 M2M应用的标识或所述 M2M应用的地址、 资源创建时间、 资源有效时间以及检索字符串等属性信息, 并存储所述 M2M应用的资源。
步骤 403:判断所述消息中是否携带远程注册参数,当判断结果为否时, 执行步骤 404; 当判断结果为是时, 执行步骤 405。
步骤 404: 向所述 M2M应用发送响应消息, 所述响应消息指示所述 M2M应用在所述本地 CSE成功注册。
步骤 405: 判断所述远程注册参数中的激活指示是否为 True, 当判断的 结果为否, 执行步骤 404; 当判断的结果为是时, 执行步骤 406。
步骤 406: 本地 CSE读取所述远程注册参数中的 CSE列表。
步骤 407: 判断所述 CSE列表是否为空, 当判断的结果为是时, 执行 步骤 408; 当判断的结果为否时, 执行步骤 409。
步骤 408: 本地 CSE根据预先配置的注册策略, 将符合所述注册策略 的 CSE添加至所述 CSE列表中, 执行步骤 411。
本实施例中, 所述本地 CSE可预先配置远程注册策略, 当所述 CSE列 表为空时, 所述本地 CSE可根据所述预先配置的注册策略决策所述 M2M 向哪些目标 CSE进行远程注册。 例如: 所述本地 CSE可根据所述目标 CSE 的类型配置远程注册策略,如预先配置策略为将 M2M应用仅注册到网络服 务器类型的 CSE上, 则本地 CSE将网络服务器类型的 CSE添加到 CSE列 表中; 或者预先配置策略为将 M2M应用仅注册到网关类型的 CSE上, 则 本地 CSE将网关类型的 CSE添加到 CSE列表中, 或者预先配置策略为将 M2M应用注册到网络月良务器类型和网关类型的 CSE上, 则本地 CSE将网 络服务器类型的 CSE和网关类型的 CSE添加到 CSE列表中。
步骤 409:判断所述 CSE列表中的目标 CSE是否都已在本地 CSE注册, 当判断的结果为否时,执行步骤 410; 当判断的结果为是时,执行步骤 411。
本实施例中, 所述目标 CSE预先完成在所述本地 CSE的注册; 所述目 标 CSE可根据预先配置确定是否需要注册到本地 CSE上。 当确定所述目标 CSE需要注册到所述本地 CSE上时, 所述目标 CSE向所述本地 CSE发送 注册请求, 所述注册请求中携带有所述目标 CSE的标识(如 CSE— ID ); 所 述本地 CSE建立并存储所述目标 CSE的资源信息, 包括所述资源的名称、 所述目标 CSE的类型、资源创建时间以及资源有效时间等,向所述目标 CSE 发送注册响应消息, 指示所述目标 CSE在所述本地 CSE上注册成功。
步骤 410:删除所述 CSE列表中没有在所述本地 CSE注册的目标 CSE, 执行步骤 411。
步骤 411 : 向所述 CSE列表中的目标 CSE发送所述 M2M应用的注册 请求。
优选地, 所述目标 CSE接收到所述本地 CSE发送的注册请求后, 根据 所述注册请求中的信息, 为所述 M2M应用创建资源, 并存储所述 M2M应 用的标识或所述 M2M应用的地址、 资源创建时间、 资源有效时间以及检索 字符串等属性信息, 并存储所述 M2M应用在本地 CSE创建的资源地址链 接; 待注册完成后, 向所述本地 CSE返回响应消息, 所述响应消息指示所 述 M2M应用在所述目标 CSE的远程注册成功; 当没有注册成功时, 所述 目标 CSE向所述本地 CSE返回响应消息, 所述响应消息指示所述 M2M应 用在所述目标 CSE的远程注册失败。
步骤 412: 接收到所有目标 CSE返回的响应消息后, 将注册成功的目 标 CSE返回给 M2M应用。
这里, 所述本地 CSE接收到所有目标 CSE返回的响应消息后, 将远程 注册成功的目标 CSE返回至 M2M应用; 具体的, 所述本地 CSE更新 CSE 列表只包括远程注册成功的目标 CSE的标识或地址, 将远程注册参数 (包 括激活指示和更新后的 CSE列表)通过响应消息发送至 M2M应用。
本发明实施例还提供了一种计算机存储介质, 所述计算机存储介质中 存储有计算机可执行指令, 所述计算机可执行指令用于执行本发明实施例 所述的 M2M应用的远程注册方法。
图 5为本发明实施例的公共业务实体(CSE )的组成结构示意图, 所述 CSE作为本地 CSE; 如图 5所示, 所述本地 CSE 50包括: 第一接收模块 51、 读取模块 52和第一发送模块 53; 其中:
所述第一接收模块 51, 配置为接收第一注册请求消息;
所述读取模块 52,配置为确定所述第一接收模块 52接收的所述第一注 册请求消息中包含远程注册参数, 且确定所述远程注册参数中的激活指示 参数表征需要执行远程注册时, 读取所述远程注册参数中的 CSE列表; 所述第一发送模块 53, 配置为确定所述读取模块 52读取的所述 CSE 列表不为空, 且确定所述 CSE列表中的目标 CSE已在所述本地 CSE注册 时, 根据所述 CSE列表发送与所述第一注册请求消息对应的第二注册请求 消息。 优选地,所述 CSE还包括第一添加模块 54, 配置为当所述读取模块 52 读取的所述 CSE列表为空时, 将已在所述本地 CSE上注册的 CSE添加至 所述 CSE列表中。
优选地,所述 CSE还包括第二添加模块 55, 配置为当所述读取模块 52 读取的所述 CSE列表为空时, 根据预先配置的注册策略, 将符合所述注册 策略的 CSE添加至所述 CSE列表中。
优选地, 所述 CSE还包括删除模块 56, 配置为当所述读取模块 52读 取的所述 CSE列表中包括没有在所述本地 CSE注册的 CSE时, 删除所述 CSE列表中没有在所述本地 CSE注册的 CSE。
优选地, 第一发送模块 53, 配置为根据所述读取模块 52读取的所述 CSE列表中的所述目标 CSE的标识或地址发送与所述第一注册请求消息对 应的第二注册请求消息;
其中, 所述第二注册请求消息包括: 所述 M2M应用的标识或地址、 所 述本地 CSE的标识或地址。
优选地, 所述 CSE还包括更新模块 57;
所述第一接收模块 51, 还配置为接收所有第二注册请求消息的响应消 息;
所述更新模块 57,配置为根据所述第一接收模块 51接收的所有第二注 册请求消息的响应消息, 确认远程注册未成功的目标 CSE, 删除 CSE列表 中未成功注册的目标 CSE;
所述第一发送模块 53, 还配置为发送第一注册请求消息的响应消息, 所述第一注册请求消息的响应消息中包括所述更新模块 57 更新后的所述 CSE列表, 所述 CSE列表中包括远程注册成功的目标 CSE。
本领域技术人员应当理解, 本发明实施例的本地 CSE中各处理单元的 功能, 可参照前述 M2M应用的远程注册方法的相关描述而理解, 本发明实 施例的本地 CSE中各处理单元, 可通过实现本发明实施例所述的功能的模 拟电路而实现, 也可以通过执行本发明实施例所述的功能的软件在智能终 端上的运行而实现。
本实施例中, 所述本地 CSE可设置于中间节点或基础节点中; 所述中 间节点可以是网关; 所述基础节点可以是网络服务器; 其中,所述本地 CSE 中的读取模块 52、 第一添加模块 54、 第二添加模块 55、 更新模块 57和删 除模块 56, 在实际应用中可由所述 CSE 中的中央处理器 (CPU, Central Processing Unit )、 或数字信号处理器 (DSP, Digital Signal Processor ), 或 可编程门阵列 (FPGA, Field-Programmable Gate Array ) 实现; 所述第一接 收模块 51和第一发送模块 53, 在实际应用中可由所述 CSE中的收发器或 收发机实现。
图 6为本发明实施例的公共业务实体(CSE )的组成结构示意图, 所述 CSE作为目标 CSE; 如图 6所示, 所述目标 CSE 60包括: 第二接收模块 61、 注册模块 62和第二发送模块 63; 其中,
所述第二接收模块 61, 配置为接收第二注册请求消息;
所述注册模块 62,配置为根据所述第二接收模块 61接收的所述第二注 册请求消息创建资源、 获取并存储资源属性信息; 其中, 所述资源属性信 息包括所述 M2M应用在本地 CSE的资源地址链接;
所述第二发送模块 63, 配置为所述注册模块 62资源创建完成后, 发送 与所述第二注册请求对应的第二响应消息。
本领域技术人员应当理解, 本发明实施例的目标 CSE中各处理单元的 功能, 可参照前述 M2M应用的远程注册方法的相关描述而理解, 本发明实 施例的目标 CSE中各处理单元, 可通过实现本发明实施例所述的功能的模 拟电路而实现, 也可以通过执行本发明实施例所述的功能的软件在智能终 端上的运行而实现。 本实施例中, 所述目标 CSE可设置于中间节点或基础节点中; 所述中 间节点可以是网关; 所述基础节点可以是网络服务器; 其中,所述目标 CSE 中的注册模块 62,在实际应用中可由所述 CSE中的 CPU、或 DSP、或 FPGA 实现; 所述第二接收模块 51和第二发送模块 53, 在实际应用中可由所述目 标 CSE中的收发器或收发机实现。
图 7为本发明实施例的 M2M应用的远程注册系统的组成结构示意图; 所述系统包括: 本地 CSE 50和目标 CSE 60; 其中,
所述本地 CSE 50, 配置为接收到第一注册请求消息, 确定所述第一注 册请求消息中包括远程注册参数, 且确定所述远程注册参数中的激活指示 参数表征需要执行远程注册时, 读取所述远程注册参数中的 CSE列表; 确 定所述 CSE列表不为空, 且确定所述 CSE列表中的目标 CSE 60已在所述 本地 CSE注册时, 根据所述 CSE列表向所述目标 CSE 60发送与所述第一 注册请求消息对应的第二注册请求消息;
所述目标 CSE 60, 配置为接收到所述本地 CSE 50发送的第二注册请 求消息, 根据所述第二注册请求消息创建资源、 获取并存储资源属性信息; 当资源创建完成后, 向所述本地 CSE 50发送与所述第二注册请求对应的第 二响应消息; 其中, 所述资源属性信息包括所述 M2M应用在本地 CSE 50 的资源地址链接。
具体的, 所述本地 CSE 50, 配置为当所述 CSE列表为空时, 将已在所 述本地 CSE 50上注册的 CSE添加至所述 CSE列表中,根据所述 CSE列表 发送与所述第一注册请求消息对应的第二注册请求消息。
具体的, 所述本地 CSE 50, 配置为当所述 CSE列表为空时, 根据预先 配置的注册策略, 将符合所述注册策略的 CSE添加至所述 CSE列表中, 根 据所述 CSE列表发送与所述第一注册请求消息对应的第二注册请求消息。
具体的, 所述本地 CSE 50, 配置为当所述本地 CSE确定所述 CSE列 表中包括没有在所述本地 CSE注册的 CSE时, 删除所述 CSE列表中没有 在所述本地 CSE 50注册的 CSE, 根据所述 CSE列表发送与所述第一注册 请求消息对应的第二注册请求消息。
具体的, 所述本地 CSE 50, 配置为根据所述 CSE列表中的所述目标 CSE 的标识或地址发送与所述第一注册请求消息对应的第二注册请求消 息; 其中, 所述第二注册请求消息包括: 所述 M2M应用的标识或地址、 所 述本地 CSE的标识或地址。
具体的, 所述本地 CSE 50, 配置为接收到所有第二注册请求消息的响 应消息后, 确认远程注册未成功的目标 CSE, 删除 CSE列表中未成功注册 的目标 CSE, 并发送第一注册请求消息的响应消息; 所述第一注册请求消 息的响应消息中包括所述 CSE列表,所述 CSE列表中包括远程注册成功的 目标 CSE。
本实施例中,所述本地 CSE和目标 CSE可设置于中间节点或基础节点 中;所述中间节点可以是网关;所述基础节点可以是网络服务器,提供 M2M 应用的管理平台; 所述 M2M应用可设置于各种应用终端中, 例如自动售卖 机、 摄像头、 各种家用电器、 警报器等等。
本发明是参照根据本发明实施例的方法、 装置、 和计算机程序产品的 流程图和 /或方框图来描述的。 应理解可由计算机程序指令实现流程图和 / 或方框图中的每一流程和 /或方框、以及流程图和 /或方框图中的流程和 /或方 框的结合。 可提供这些计算机程序指令到通用计算机、 专用计算机、 嵌入 式处理机或其他可编程数据处理设备的处理器以产生一个机器, 使得通过 程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功能的 装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理 设备以特定方式工作的计算机可读存储器中, 使得存储在该计算机可读存 储器中的指令产生包括指令装置的制造品, 该指令装置实现在流程图一个 流程或多个流程和 /或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备 上, 使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机 实现的处理, 从而在计算机或其他可编程设备上执行的指令提供用于实现 在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功 能的步骤。
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。 工业实用性
本发明实施例本地 CSE接收到 M2M应用发送的第一注册请求消息, 确定所述第一注册请求消息中包括远程注册参数, 且确定所述远程注册参 数中的激活指示参数表征需要执行远程注册时, 读取所述远程注册参数中 的 CSE列表; 确定所述 CSE列表不为空, 且确定所述 CSE列表中的目标 CSE已在所述本地 CSE注册,向所述目标 CSE发送与所述第一注册请求消 息对应的第二注册请求消息, 完成所述 M2M应用在所述目标 CSE的注册, 如此, 实现了注册在不同 CSE上的 M2M应用的交互, 提升了用户的体验。

Claims

权利要求书
1、 一种机器对机器 M2M应用的远程注册方法, 所述方法包括: 本地公共业务实体 CSE接收到第一注册请求消息, 确定所述第一注册 请求消息中包括远程注册参数, 且确定所述远程注册参数中的激活指示参 数表征需要执行远程注册时, 读取所述远程注册参数中的 CSE列表;
确定所述 CSE列表不为空, 且确定所述 CSE列表中的目标 CSE已在 所述本地 CSE注册时,根据所述 CSE列表发送与所述第一注册请求消息对 应的第二注册请求消息。
2、 根据权利要求 1所述的方法, 其中, 当所述 CSE列表为空时, 所述 方法还包括:
所述本地 CSE将已在所述本地 CSE上注册的 CSE添加至所述 CSE列 表中, 根据所述 CSE列表发送与所述第一注册请求消息对应的第二注册请 求消息。
3、 根据权利要求 1所述的方法, 其中, 当所述 CSE列表为空时, 所述 方法还包括:
所述本地 CSE根据预先配置的注册策略, 将符合所述注册策略的 CSE 添加至所述 CSE列表中,根据所述 CSE列表发送与所述第一注册请求消息 对应的第二注册请求消息。
4、根据权利要求 1所述的方法, 其中, 当所述本地 CSE确定所述 CSE 列表中包括没有在所述本地 CSE注册的 CSE时, 所述方法还包括:
删除所述 CSE列表中没有在所述本地 CSE注册的 CSE,根据所述 CSE 列表发送与所述第一注册请求消息对应的第二注册请求消息。
5、 根据权利要求 1至 4任一项所述的方法, 其中, 所述根据所述 CSE 列表发送与所述第一注册请求消息对应的第二注册请求消息, 包括:
根据所述 CSE列表中的所述目标 CSE的标识或地址发送与所述第一注 册请求消息对应的第二注册请求消息;
其中, 所述第二注册请求消息包括: 所述 M2M应用的标识或地址、 所 述本地 CSE的标识或地址。
6、 根据权利要求 5所述的方法, 其中, 所述方法还包括:
所述本地 CSE接收到所有第二注册请求消息的响应消息后, 确认远程 注册未成功的目标 CSE, 删除 CSE列表中未成功注册的目标 CSE, 并发送 第一注册请求消息的响应消息;
所述第一注册请求消息的响应消息中包括所述 CSE列表,所述 CSE列 表中包括远程注册成功的目标 CSE。
7、 一种 M2M应用的远程注册方法, 所述方法包括:
目标 CSE接收到第二注册请求消息, 根据所述第二注册请求消息创建 资源、 获取并存储资源属性信息; 当资源创建完成后, 发送与所述第二注 册请求对应的第二响应消息;
其中, 所述资源属性信息包括所述 M2M应用在本地 CSE的资源地址 链接。
8、 一种 M2M应用的远程注册方法, 所述方法包括:
本地 CSE接收到第一注册请求消息, 确定所述第一注册请求消息中包 括远程注册参数, 且确定所述远程注册参数中的激活指示参数表征需要执 行远程注册时, 读取所述远程注册参数中的 CSE列表;
确定所述 CSE列表不为空, 且确定所述 CSE列表中的所有目标 CSE 已在所述本地 CSE注册,根据所述 CSE列表发送与所述第一注册请求消息 对应的第二注册请求消息;
所述目标 CSE接收到第二注册请求消息, 根据所述第二注册请求消息 创建资源、 获取并存储资源属性信息; 当资源创建完成后, 发送与所述第 二注册请求对应的第二响应消息; 其中, 所述资源属性信息包括所述 M2M应用在本地 CSE的资源地址 链接。
9、 根据权利要求 8所述的方法, 其中, 当所述 CSE列表为空时, 所述 方法还包括:
所述本地 CSE将已在所述本地 CSE上注册的 CSE添加至所述 CSE列 表中,向所述 CSE列表中的所有目标 CSE发送与所述第一注册请求消息对 应的第二注册请求消息。
10、 根据权利要求 8所述的方法, 其中, 当所述 CSE列表为空时, 所 述方法还包括:
所述本地 CSE根据预先配置的注册策略, 将符合所述注册策略的 CSE 添加至所述 CSE列表中, 向所述 CSE列表中的所有目标 CSE发送与所述 第一注册请求消息对应的第二注册请求消息。
11、根据权利要求 8所述的方法,其中, 当所述本地 CSE确定所述 CSE 列表中包括没有在所述本地 CSE注册的 CSE时, 所述方法还包括:
删除所述 CSE列表中没有在所述本地 CSE注册的 CSE, 向所述 CSE 列表中的所有目标 CSE发送与所述第一注册请求消息对应的第二注册请求 消息。
12、根据权利要求 8至 11任一项所述的方法,其中,所述根据所述 CSE 列表发送与所述第一注册请求消息对应的第二注册请求消息, 包括:
根据所述 CSE列表中的所述目标 CSE的标识或地址发送与所述第一注 册请求消息对应的第二注册请求消息;
其中, 所述第二注册请求消息包括: 所述 M2M应用的标识或地址、 所 述本地 CSE的标识或地址。
13、 根据权利要求 12所述的方法, 其中, 所述方法还包括:
所述本地 CSE接收到所有目标 CSE发送的第二注册请求消息的响应消 息后, 确认远程未注册成功的目标 CSE, 删除 CSE列表中未成功注册的目 标 CSE, 发送第一注册请求消息的响应消息;
所述第一注册请求消息的响应消息中包括所述 CSE列表,所述 CSE列 表中包括远程注册成功的目标 CSE。
14、一种公共业务实体 CSE,所述 CSE作为本地 CSE,所述 CSE包括: 第一接收模块、 读取模块和第一发送模块; 其中:
所述第一接收模块, 配置为接收第一注册请求消息;
所述读取模块, 配置为确定所述第一接收模块接收的所述第一注册请 求消息中包含远程注册参数, 且确定所述远程注册参数中的激活指示参数 表征需要执行远程注册时, 读取所述远程注册参数中的 CSE列表;
所述第一发送模块, 配置为确定所述读取模块读取的所述 CSE列表不 为空, 且确定所述 CSE列表中的目标 CSE已在所述本地 CSE注册时, 根 据所述 CSE列表发送与所述第一注册请求消息对应的第二注册请求消息。
15、 根据权利要求 14所述的 CSE, 其中, 所述 CSE还包括第一添加 模块, 配置为当所述读取模块读取的所述 CSE列表为空时, 将已在所述本 地 CSE上注册的 CSE添加至所述 CSE列表中。
16、 根据权利要求 14所述的 CSE, 其中, 所述 CSE还包括第二添加 模块, 配置为当所述读取模块读取的所述 CSE列表为空时, 根据预先配置 的注册策略, 将符合所述注册策略的 CSE添加至所述 CSE列表中。
17、 根据权利要求 14所述的 CSE, 其中, 所述 CSE还包括删除模块, 配置为当所述读取模块读取的所述 CSE列表中包括没有在所述本地 CSE注 册的 CSE时, 删除所述 CSE列表中没有在所述本地 CSE注册的 CSE。
18、 根据权利要求 14所述的 CSE, 其中, 所述第一发送模块, 配置为 根据所述读取模块读取的所述 CSE列表中的所述目标 CSE的标识或地址发 送与所述第一注册请求消息对应的第二注册请求消息; 其中, 所述第二注册请求消息包括: 所述 M2M应用的标识或地址、 所 述本地 CSE的标识或地址。
19、 根据权利要求 14所述的 CSE, 其中, 所述 CSE还包括更新模块; 所述第一接收模块, 还配置为接收所有第二注册请求消息的响应消息; 所述更新模块, 配置为根据所述第一接收模块接收的所有第二注册请 求消息的响应消息, 确认远程注册未成功的目标 CSE, 删除 CSE列表中未 成功注册的目标 CSE;
所述第一发送模块, 还配置为发送第一注册请求消息的响应消息, 所 述第一注册请求消息的响应消息中包括所述更新模块更新后的所述 CSE列 表, 所述 CSE列表中包括远程注册成功的目标 CSE。
20、 一种 CSE, 所述 CSE作为目标 CSE, 所述 CSE包括: 第二接收模 块、 注册模块和第二发送模块; 其中,
所述第二接收模块, 配置为接收第二注册请求消息;
所述注册模块, 配置为根据所述第二接收模块接收的所述第二注册请 求消息创建资源、 获取并存储资源属性信息; 其中, 所述资源属性信息包 括所述 M2M应用在本地 CSE的资源地址链接;
所述第二发送模块, 配置为所述注册模块资源创建完成后, 发送与所 述第二注册请求对应的第二响应消息。
21、 一种 M2M应用的远程注册系统, 所述系统包括: 本地 CSE和目 标 CSE; 其中,
所述本地 CSE, 配置为接收到第一注册请求消息, 确定所述第一注册 请求消息中包括远程注册参数, 且确定所述远程注册参数中的激活指示参 数表征需要执行远程注册时, 读取所述远程注册参数中的 CSE列表; 确定 所述 CSE列表不为空, 且确定所述 CSE列表中的目标 CSE已在所述本地 CSE注册时,根据所述 CSE列表向所述目标 CSE发送与所述第一注册请求 消息对应的第二注册请求消息;
所述目标 CSE,配置为接收到所述本地 CSE发送的第二注册请求消息, 根据所述第二注册请求消息创建资源、 获取并存储资源属性信息; 当资源 创建完成后, 向所述本地 CSE发送与所述第二注册请求对应的第二响应消 息; 其中, 所述资源属性信息包括所述 M2M应用在本地 CSE的资源地址 链接。
22、 根据权利要求 21所述的系统, 其中, 所述本地 CSE, 配置为当所 述 CSE列表为空时, 将已在所述本地 CSE上注册的 CSE添加至所述 CSE 列表中, 根据所述 CSE列表发送与所述第一注册请求消息对应的第二注册 请求消息。
23、 根据权利要求 21所述的系统, 其中, 所述本地 CSE, 配置为当所 述 CSE列表为空时,根据预先配置的注册策略,将符合所述注册策略的 CSE 添加至所述 CSE列表中,根据所述 CSE列表发送与所述第一注册请求消息 对应的第二注册请求消息。
24、 根据权利要求 21所述的系统, 其中, 所述本地 CSE, 配置为当所 述本地 CSE确定所述 CSE列表中包括没有在所述本地 CSE注册的 CSE时, 删除所述 CSE列表中没有在所述本地 CSE注册的 CSE, 根据所述 CSE列 表发送与所述第一注册请求消息对应的第二注册请求消息。
25、 根据权利要求 21至 24任一项所述的系统, 其中, 所述本地 CSE, 配置为根据所述 CSE列表中的所述目标 CSE的标识或地址发送与所述第一 注册请求消息对应的第二注册请求消息; 其中, 所述第二注册请求消息包 括: 所述 M2M应用的标识或地址、 所述本地 CSE的标识或地址。
26、 根据权利要求 25所述的系统, 其中, 所述本地 CSE, 配置为接收 到所有第二注册请求消息的响应消息后,确认远程注册未成功的目标 CSE, 删除 CSE列表中未成功注册的目标 CSE, 并发送第一注册请求消息的响应 消息; 所述第一注册请求消息的响应消息中包括所述 CSE列表, 所述 CSE 列表中包括远程注册成功的目标 CSE。
27、 一种计算机存储介质, 所述计算机存储介质中存储有计算机可执 行指令, 所述计算机可执行指令用于执行权利要求 1 至 6 任一项所述的 M2M应用的远程注册方法。
28、 一种计算机存储介质, 所述计算机存储介质中存储有计算机可执 行指令,所述计算机可执行指令用于执行权利要求 7所述的 M2M应用的远 程注册方法。
29、 一种计算机存储介质, 所述计算机存储介质中存储有计算机可执 行指令, 所述计算机可执行指令用于执行权利要求 8 至 13 任一项所述的
M2M应用的远程注册方法。
PCT/CN2014/079642 2013-11-04 2014-06-10 M2m应用的远程注册方法、装置、系统及存储介质 WO2014180438A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US15/032,116 US9930632B2 (en) 2013-11-04 2014-06-10 M2M application remote registration method, device, system and storage medium
EP14795438.2A EP3057281B1 (en) 2013-11-04 2014-06-10 M2m application remote registration method, device, system and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310539285.1A CN104618312B (zh) 2013-11-04 2013-11-04 一种m2m应用的远程注册方法、装置和系统
CN201310539285.1 2013-11-04

Publications (2)

Publication Number Publication Date
WO2014180438A1 WO2014180438A1 (zh) 2014-11-13
WO2014180438A9 true WO2014180438A9 (zh) 2016-06-30

Family

ID=51866818

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/079642 WO2014180438A1 (zh) 2013-11-04 2014-06-10 M2m应用的远程注册方法、装置、系统及存储介质

Country Status (4)

Country Link
US (1) US9930632B2 (zh)
EP (1) EP3057281B1 (zh)
CN (1) CN104618312B (zh)
WO (1) WO2014180438A1 (zh)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683968B (zh) * 2013-11-26 2019-09-13 南京中兴新软件有限责任公司 一种机器类型通信应用的资源管理方法、节点和系统
CN104796922B (zh) * 2014-01-22 2019-07-09 中兴通讯股份有限公司 Cse的触发管理方法及装置、cse、承载网网元
CN107113311B (zh) * 2015-01-08 2020-12-08 华为技术有限公司 统一机器到机器系统中通信的方法和装置
CN104602180B (zh) * 2015-01-20 2017-12-22 西安工程大学 创建订阅资源系统及创建订阅资源的方法
CN106302840A (zh) * 2015-05-15 2017-01-04 中兴通讯股份有限公司 位置数据处理方法、装置及系统
CN106325087A (zh) * 2015-07-01 2017-01-11 中兴通讯股份有限公司 通告资源处理方法、装置及系统
CN113596165A (zh) 2015-09-01 2021-11-02 康维达无线有限责任公司 服务层注册
EP3440546A1 (en) * 2016-04-05 2019-02-13 Convida Wireless, LLC Building pool-based m2m service layer through nfv
US10284684B2 (en) * 2016-09-14 2019-05-07 Microsoft Technology Licensing, Llc IoT hardware certification
CN108093380B (zh) * 2016-11-22 2022-11-08 中兴通讯股份有限公司 注册状态的确定方法、装置及系统、cse
CN108235281B (zh) * 2016-12-12 2023-09-22 京东方科技集团股份有限公司 应用实体创建资源和注册方法、通信节点设备及终端设备
US11095502B2 (en) * 2017-11-03 2021-08-17 Otis Elevator Company Adhoc protocol for commissioning connected devices in the field
US10846207B2 (en) * 2019-01-15 2020-11-24 Sap Se Test adaptation system
GB2582736B (en) * 2019-02-01 2022-02-16 Arm Ip Ltd Template-based registration

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101760912B1 (ko) 2010-03-01 2017-07-24 인터디지탈 패튼 홀딩스, 인크 머신-투-머신 게이트웨이 아키텍처 및 기능
MX2012010363A (es) * 2010-03-09 2012-11-30 Interdigital Patent Holdings Metodo y aparato para soportar comunicaciones de maquina a maquina.
CN102378223B (zh) 2010-08-24 2015-02-18 中国电信股份有限公司 M2m终端远程管理的系统和方法
KR101908756B1 (ko) * 2010-11-19 2018-10-16 아이오티 홀딩스, 인크. 자원의 공지 및 비공지를 위한 기계대 기계(m2m) 인터페이스 절차
CN102547657B (zh) * 2010-12-31 2015-03-25 中兴通讯股份有限公司 远程改变机器对机器设备的归属运营商的方法
EP2528295B1 (en) 2011-05-24 2019-09-04 Vodafone GmbH Method and system of controlling a gateway
US8943132B2 (en) * 2011-09-12 2015-01-27 Telefonaktiebolaget L M Ericsson (Publ) Systems and methods for optimization of subscriptions to resource changes in machine-to-machine (M2M) systems
CN103685210B (zh) * 2012-09-26 2018-02-13 中兴通讯股份有限公司 终端的注册方法及装置
WO2014200292A1 (ko) * 2013-06-12 2014-12-18 엘지전자 주식회사 M2m 시스템에서 위치 측정 방법 및 이를 위한 장치

Also Published As

Publication number Publication date
WO2014180438A1 (zh) 2014-11-13
EP3057281A1 (en) 2016-08-17
US20160270021A1 (en) 2016-09-15
US9930632B2 (en) 2018-03-27
CN104618312B (zh) 2019-03-29
EP3057281B1 (en) 2020-03-11
EP3057281A4 (en) 2016-11-23
CN104618312A (zh) 2015-05-13

Similar Documents

Publication Publication Date Title
WO2014180438A9 (zh) M2m应用的远程注册方法、装置、系统及存储介质
JP6743195B2 (ja) サブスクリプションを終了するための方法およびエンティティ
JP6240312B2 (ja) M2m通信システムにおいて購読及び通知のための方法及びそのための装置
EP3873119A1 (en) Methods and devices for enabling migration of a subscription
JP5534623B2 (ja) 端末の遠隔管理方法及び装置
US9774642B2 (en) Method and device for pushing multimedia resource and display terminal
KR20160060118A (ko) 가입 통지를 구현하기 위한 방법 및 장치
JP2018529245A (ja) 認可処理方法およびデバイス
WO2015188440A1 (zh) 资源订阅处理方法及装置
CN104506510A (zh) 用于设备认证的方法、装置及认证服务系统
WO2015034337A1 (ko) 무선 통신 시스템에서 특정 요청 메시지의 처리를 위한 방법 및 장치
JP2017535122A (ja) センサのコード照合処理方法、装置、ネットワークプラットフォーム機器及びモノのインターネットゲートウェイ
JP6663047B2 (ja) アクセスポイント切り替え方法および装置
WO2018000653A1 (zh) M2m应用的信息方法、cse及ae
WO2014183668A1 (zh) 一种机器类型通信应用的资源管理方法、节点和系统
WO2015117446A1 (zh) 控制资源变更通知消息发送方法及装置
WO2019076282A1 (zh) 一种用于管理用户的方法与设备
WO2016003134A1 (ko) 무선 통신 시스템에서 요청 메시지를 처리하기 위한 방법 및 이를 위한 장치
WO2015168981A1 (zh) 属性的操作方法及装置
WO2015154459A1 (zh) 订阅资源变更通知的方法及装置
WO2015117391A1 (zh) 一种实现资源属性通告的方法和公共业务实体
WO2015192466A1 (zh) 一种通知消息发送方法及装置、计算机存储介质
WO2016115885A1 (zh) 资源操作请求的处理方法及装置
WO2015168974A1 (zh) 资源的创建方法及装置
WO2013178157A2 (zh) 私有云中设备间自动建立基于wifi局域网的方法及装置

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

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15032116

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

REEP Request for entry into the european phase

Ref document number: 2014795438

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2014795438

Country of ref document: EP