WO2017211142A1 - 切换接入点的方法及装置 - Google Patents

切换接入点的方法及装置 Download PDF

Info

Publication number
WO2017211142A1
WO2017211142A1 PCT/CN2017/082162 CN2017082162W WO2017211142A1 WO 2017211142 A1 WO2017211142 A1 WO 2017211142A1 CN 2017082162 W CN2017082162 W CN 2017082162W WO 2017211142 A1 WO2017211142 A1 WO 2017211142A1
Authority
WO
WIPO (PCT)
Prior art keywords
gateway
access point
platform
local area
area network
Prior art date
Application number
PCT/CN2017/082162
Other languages
English (en)
French (fr)
Inventor
殷佳欣
王嗣琛
张永靖
曾米奇
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to JP2018564319A priority Critical patent/JP6663047B2/ja
Priority to EP17809582.4A priority patent/EP3461177B1/en
Priority to KR1020197000217A priority patent/KR102152741B1/ko
Publication of WO2017211142A1 publication Critical patent/WO2017211142A1/zh
Priority to US16/213,093 priority patent/US10932171B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/08Reselecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • 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
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/16Gateway arrangements

Definitions

  • the present invention relates to the field of information technology, and in particular, to a method and an apparatus for switching an access point.
  • M2M Machine to Machine Communications
  • the M2M system includes an M2M platform 102, an M2M gateway 103, an M2M device 104, and an AE (Application Entity) 101.
  • the M2M platform 102 may be an IN (Infrastructure Node)
  • the M2M gateway 103 is an MN (Middle Node)
  • the M2M device may be an ASN (Application Service Node) and an ADN. (Application Dedicated Node) is not shown in FIG. 1A.
  • CSE Common Service Entity
  • the CSE can be included in the M2M platform, the M2M gateway, or the ASN of the M2M device to implement the corresponding functions.
  • the AE may exist separately or may be included in the M2M platform, the M2M gateway, or in the ASN or ADN of the M2M device.
  • the CSE allows the AE to access the public capabilities of the CSE through the Mca reference point, communicates between the CSEs through the Mcc reference point, and invokes the underlying network capabilities through the Mcn reference point.
  • the M2M platform, the M2M gateway, and the M2M device can store various resources.
  • the application entity AE can access various resources by accessing the M2M platform, the M2M gateway, and the M2M device through the M2M platform, the M2M gateway, or the CSE of the M2M device.
  • An AE entity wants to implement access to resources on the M2M platform or the M2M gateway.
  • the AE entity needs to register with the CSE of the M2M platform or the CSE of the M2M gateway.
  • the existing AE can only be registered to the CSE of one entity at the same time period, for example, only the CSE of the M2M platform or the CSE of an M2M gateway.
  • the AE accesses the resources stored on the CSE through the registered CSE (Registrar CSE, R-CSE for short).
  • the CSE where the accessed resource is located is H-CSE (the Hosting CSE service holds the CSE).
  • the R-CSE acts as an access point for the AE entity to communicate with other entities in the M2M system.
  • the CSE on the M2M platform acts as an R-CSE of an AE
  • the AE needs to access the resources of the M2M gateway
  • the CSE on the M2M gateway acts as the H-CSE. Therefore, the AE needs to access the resources stored in the M2M gateway where the H-CSE is located through the R-CSE.
  • the resources of the AE to access the M2M gateway need to pass through the CSE of the M2M platform, the resource request chain is too long, and the network resource overhead is large. Therefore, another method is that the AE registers with the CSE of the M2M platform and re-registers with the CSE of the M2M gateway. That is to say, in order to directly access the resources stored by the M2M gateway, the AE needs to switch the access point of the AE from the M2M platform to the M2M gateway.
  • the AE on the M2M device sends a deregistration request message to the R-CSE to which the AE belongs (such as the CSE of the M2M platform).
  • the deregistration request message is used by the AE to request the R-CSE to delete the resources registered by the AE on the M2M platform.
  • the M2M platform deletes the resources registered by the AE on the M2M platform, and returns a success response message to the AE.
  • the AE registers a request message with the M2M gateway, and the registration request message is used to request to create a resource corresponding to the AE at the M2M gateway, thereby completing the AE at the M2M gateway. Registration on.
  • the present invention provides a method, an apparatus, and a related device for switching an access point, which can avoid other communication service interruptions that need to be performed by the M2M platform and the AE, thereby improving the user experience.
  • the M2M system includes: an M2M platform, an AE, and an M2M gateway, where the M2M platform is an access point before the access point is switched by the AE, and the M2M gateway is an access point after the access point is switched by the AE.
  • the M2M platform is the access point of the M2M gateway, and the AE sends the access point switching request to the M2M platform, so that the M2M platform requests the M2M gateway to create the connection resource of the AE. After the M2M gateway successfully creates the connection resource of the AE, the M2M platform is in the AE.
  • connection address of the M2M gateway is recorded under the registered resource, and the access point switching response message is sent to the AE to implement the access point switching.
  • the switching access point is applied to the M2M system to avoid other communication service interruptions that need to be performed by the M2M platform and the AE, thereby improving the user experience.
  • the present invention provides a method for switching an access point, which is applied to a machine communication M2M system, where the M2M system includes an M2M platform, an application entity AE and an M2M gateway, and the M2M platform accesses the AE.
  • the M2M gateway is an access point after the access point is switched by the AE, and the M2M platform is an access point of the M2M gateway; specifically, the M2M platform receiving station An access point switching request message sent by the AE, where the access point switching request message carries a public service entity CSE identifier of the M2M gateway; and then sends a resource creation request message to the M2M gateway, where the resource creation request message is sent
  • the M2M gateway is configured to request the M2M gateway to create the connection resource of the AE, where the resource creation request message carries the AE identifier, and then the M2M platform receives a response message that the M2M gateway sends a resource successfully, the resource
  • the created success response message carries the access information allocated by the M2M gateway to the AE; and then sends a response message of the access point handover to the AE, where the response message of the access point handover carries the M2M network
  • the access information assigned to the AE is configured to request the M
  • the M2M platform requests the M2M gateway to create the connection resource of the AE, so that the M2M gateway sends the service request to the M2M platform according to the created connection resource of the AE when receiving the service request that does not belong to itself. It can avoid other communication service interruptions that need to be performed with the AE through the M2M platform, thereby improving the user experience.
  • the M2M platform after the M2M platform receives the access point handover request message sent by the AE, the M2M platform replaces the information included in the access point information of the AE with the CSE of the M2M gateway. Identifying, and recording access information allocated by the M2M gateway to the AE in the access point information of the AE; or, the M2M platform adds an access point to a specific location of the access point information list of the AE Information, and access information added to the AE by the M2M gateway is recorded in the access point information added at the specific location. Therefore, the M2M platform can determine the M2M gateway accessed by the AE, and then can send the subscription service through the M2M gateway accessed by the AE.
  • the M2M platform may further receive a request message for the CSE identifier of the M2M gateway corresponding to the queried local area network identifier sent by the AE, where the query local area network identifies the request for the CSE identifier of the corresponding M2M gateway.
  • the information carries a local area network identifier.
  • the M2M platform then obtains the CSE identifier of the M2M gateway corresponding to the local area network identifier according to the local area network identifier, and then the M2M platform carries the CSE identifier of the M2M gateway.
  • the success message is sent to the AE; finally, the M2M platform records the local area network identifier of the network to which the M2M gateway belongs in the access point information including the CSE identifier of the M2M gateway. Thereby, the AE can be determined to determine the M2M gateway that needs to be accessed according to the local area network identifier of the local area network.
  • the M2M platform before the M2M platform receives the access point handover request message sent by the AE, the M2M platform receives an acquisition request of an M2M gateway that is sent by the AE and is adjacent to the AE, where The acquiring request of the M2M gateway adjacent to the AE carries the location information of the AE and the area information covered by the local area network corresponding to the local area network type supported by the AE; then the M2M platform according to the location information of the AE and The area information covered by the local area network corresponding to the local area network type supported by the AE returns the CSE identifier of the M2M gateway adjacent to the AE to the AE; and then the M2M platform receives the local area network type to which the query sent by the AE belongs The request for the CSE identifier of the M2M gateway of the same type as the local area network supported by the AE, the request for the local area network type of the query and the CSE identifier of the M2M gateway of the same type of the local area network
  • the AE can obtain the CSE identifier of the M2M gateway that the AE needs to access according to the location information of the AE and the area information of the local area network corresponding to the local area network type supported by the AE, so that the AE can access the M2M gateway.
  • the M2M platform after the M2M platform sends a response message of the access point handover to the AE, the M2M platform receives an access point update request message sent by the AE, and the access point update request The message carries the AE identifier; the access point update request message carries the IP address and port number information of the AE, and then the M2M platform sends the M2M gateway according to the access point update request message.
  • the access point information of the CSE identifier is replaced by the access point information including the IP address and the port number information; or the access point update request message carries the CSE identifier recorded in the access point information list and Deleting the indication information of the CSE identifier of the specific location record, where the M2M platform includes the CSE in the access point update request message according to the CSE identifier in the access point update request message The identified access point information is deleted. Thereby, the M2M platform can enable the AE to access other access points corresponding to the AE after the AE leaves the coverage of the previously accessed M2M gateway, so that the AE can access the resources stored in the other access points.
  • the M2M platform may further send a resource deletion request message to the deleted or replaced access point information.
  • the M2M gateway corresponding to the C2 identifier of the M2M gateway the resource deletion request message carries the identifier of the connection resource of the AE; and then the M2M platform receives the CSE of the M2M gateway in the deleted or replaced access point information. Identifying a success response message sent by the corresponding M2M gateway, the success response message is used to indicate that the connection resource of the AE has been deleted; and finally the M2M platform sends the success response message to the AE.
  • the M2M gateway deletes the connection resources corresponding to the previously accessed AEs, so that the connection resources corresponding to the AEs that have left the coverage of the M2M gateway occupy the storage space of the M2M gateway, thereby saving the storage space of the M2M gateway.
  • the M2M platform may further receive a notification message sent by the other device to the AE, where the notification message carries an AE identifier; and then the M2M platform determines the registration resource of the AE according to the AE identifier.
  • the access point information of the AE included in the eNB is the CSE identifier of the M2M gateway; finally, the M2M platform forwards the notification information to the M2M gateway. Therefore, after the AE completes the access point handover and the current access point is the M2M gateway corresponding to the CSE identifier, after the resource of the AE subscription changes, the device where the AE subscribes to the resource sends a notification message to the AE, and can notify the AE of the foregoing resource. The latest state after the change has occurred.
  • an embodiment of the present invention provides a computer storage medium for storing computer software instructions for use in the above M2M platform, including a program designed to perform the above aspects.
  • an embodiment of the present invention provides an M2M platform, which has a function of implementing the behavior of the M2M platform in the actual method.
  • the functions may be implemented by hardware or by corresponding software implemented by hardware.
  • the hardware or software includes one or more units corresponding to the functions described above.
  • the structure of the M2M platform includes a memory, a transceiver, and a processor.
  • the memory is for storing computer executable program code and is coupled to the transceiver.
  • the program code includes instructions that, when executed by the processor, cause the apparatus to perform the information or instructions involved in the above method.
  • the present invention provides a method for switching an access point, which is applied to an M2M system, where the M2M system includes an M2M platform, an application entity AE, and an M2M gateway, where the M2M platform performs an access point change for the AE.
  • the M2M gateway is an access point after the access point is changed by the AE
  • the M2M platform is an access point of the M2M gateway; specifically,
  • the AE sends an access point handover request message to the M2M platform, where the access point handover request message carries the CSE identifier of the M2M gateway, and then receives the access point handover sent by the M2M platform. a response message, wherein the response message of the access point handover carries the access information allocated by the M2M gateway to the AE, and finally sends the resource access to the M2M gateway according to the access information allocated by the M2M gateway to the AE request.
  • the AE can directly access the M2M gateway without changing the registration point, thereby avoiding other communication service interruptions that need to be performed by the M2M platform and the AE, thereby improving the user experience. .
  • the access information of the AE further includes a local area network identifier of the network to which the M2M gateway belongs; and the AE sends the access point handover request message to the M2M platform before the AE access station Describe a local area network to which the M2M gateway belongs, and determine a local area network identifier of the local area network; then the AE sends a request message for querying a public service entity CSE identifier of the M2M gateway corresponding to the local area network identifier to the M2M platform, where the local area network is queried
  • the request message for identifying the CSE identifier of the corresponding M2M gateway carries the local area network identifier; finally, the AE receives the success message of the CSE identifier that is sent by the M2M platform and carries the M2M gateway. Therefore, the AE can obtain the CSE identifier of the M2M gateway that needs to be accessed according to the local area network identifier of the local area network.
  • the AE before the AE sends an access point handover request message to the M2M platform, the AE sends an acquisition request of the M2M gateway adjacent to the AE to the M2M platform, where the AE sends the access point handover request message to the M2M platform.
  • the acquiring request of the AE adjacent to the M2M gateway carries the location information of the AE and the area information covered by the local area network corresponding to the local area network type supported by the AE; then the AE receives the returned AE from the M2M platform a public service entity CSE identifier of the neighboring M2M gateway; the AE sends a request to the M2M platform to query the CSE identifier of the M2M gateway of the same type of the local area network supported by the AE to the M2M platform, where the query belongs
  • the CSE identifier of the M2M gateway adjacent to the AE and the type of the local area network supported by the AE are carried in the request of the C2 identifier of the M2M gateway of the same type of the local area network supported by the AE;
  • the AE receives the CSE identifier of the M2M gateway in which the local area network type of the neighboring M2M gateway returned by the M2M platform is the same as the type of the local area network supported
  • the AE when the AE obtains only the local area network type, the AE can still obtain the CSE identifier of the M2M gateway corresponding to the AE sent by the M2M platform, so that the AE can access the M2M gateway according to the CSE identifier of the M2M gateway.
  • an embodiment of the present invention provides a computer storage medium for storing computer software instructions for use in the foregoing AE, including a program designed to perform the above aspects.
  • an embodiment of the present invention provides an AE having a function of realizing an AE behavior in the above method.
  • the functions may be implemented by hardware or by corresponding software implemented by hardware.
  • the hardware or software includes one or more units corresponding to the functions described above.
  • the device structure of the AE includes a memory, a transceiver, and a processor.
  • the memory is for storing computer executable program code and is coupled to the transceiver.
  • the program code includes instructions that, when executed by the processor, cause the apparatus to perform the information or instructions involved in the above method.
  • the present invention provides a method for switching an access point, which is applied to an M2M system, where the M2M system includes an M2M platform, an application entity AE, and an M2M gateway, where the M2M platform performs an access point handover for the AE.
  • the M2M gateway is an access point after the access point is changed by the AE
  • the M2M platform is an access point of the M2M gateway; specifically,
  • the M2M gateway receives the resource creation request message sent by the M2M platform, where the resource creation request message is used to request the M2M gateway to create a connection resource of the AE, where the resource creation request message carries the AE identifier; And then, according to the resource creation request message, the connection resource of the AE is created, where the connection resource of the AE includes the access information of the AE; and then the M2M gateway sends a response message to the M2M platform that the resource creation is successful, The response message for successfully creating the resource carries the access information allocated by the M2M gateway to the AE; then the M2M gateway receives the resource access request message sent by the AE according to the access information allocated by the M2M gateway to the AE; and finally the M2M gateway Processing the resource access request message. Therefore, when the M2M gateway receives the service request and is not the service request of the service, the M2M gateway can send the service request to the M2M platform according to the created connection resource of the AE to avoid service interruption,
  • the M2M gateway allocates the AE to the local area network according to a local area network identifier of a network to which the M2M gateway belongs. Connection address. Therefore, the AE can obtain the connection address of the local area network, and the AE can access the M2M gateway corresponding to the connection address of the local area network according to the connection address of the local area network.
  • the access information of the AE further includes a local area network identifier of the network to which the M2M gateway belongs, and the M2M gateway creates the connection resource of the AE according to the resource creation request message,
  • the M2M gateway may also allocate a connection key of the AE in the local area network according to a local area network identifier of the network to which the network belongs.
  • the access information of the AE includes a network type of a local area network to which the M2M gateway belongs; the M2M gateway may also acquire location information of the AE, and according to a network type of a local area network of the network to which the M2M gateway belongs. And the location information of the AE, and the connection address of the AE in the local area network is allocated. Therefore, the M2M can allocate the connection address of the local area network where the AE is located according to the location information of the AE and the network type of the local area network, so that the AE accesses the M2M gateway corresponding to the connection address according to the connection address of the local area network.
  • the access information of the AE includes a network type of a local area network to which the M2M gateway belongs; the M2M gateway may also acquire location information of the AE, and according to a network type of a local area network of the network to which the M2M gateway belongs. And the location information of the AE, and the connection key of the AE in the local area network is allocated. Therefore, the M2M gateway can allocate the connection key of the AE in the local area network according to the location information of the AE and the network type of the local area network of the network, thereby improving the security of the AE accessing the local area network.
  • an embodiment of the present invention provides a computer storage medium for storing computer software instructions used by the M2M gateway, which includes a program designed to perform the above aspects.
  • an embodiment of the present invention provides an M2M gateway, where the M2M gateway has a function of implementing the M2M gateway behavior in the foregoing method.
  • the functions may be implemented by hardware or by corresponding software implemented by hardware.
  • the hardware or software includes one or more units corresponding to the functions described above.
  • the device structure of the M2M gateway includes a memory, a transceiver, and a processor.
  • the memory is for storing computer executable program code and is coupled to the transceiver.
  • the program code includes instructions that, when executed by the processor, cause the apparatus to perform the information or instructions involved in the above method.
  • the AE when the AE needs to switch the access point from the M2M platform to the M2M gateway, the AE sends an access point handover request to the M2M platform, so that the M2M platform requests the M2M gateway to create an AE connection resource, and the M2M gateway is successfully created.
  • the M2M platform After the connection resource of the AE, the M2M platform records the connection address of the M2M gateway under the registration resource of the AE, and sends an access point handover response message to the AE, so that the access point is switched from the M2M platform to the M2M gateway, which can avoid other needs.
  • the communication service interrupted by the M2M platform and AE can improve the user experience.
  • FIG. 1A is a schematic structural diagram of an M2M system according to an embodiment of the present invention.
  • FIG. 1B is a schematic structural diagram of an AE switching connection M2M system according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a logical structure of an apparatus for switching an access point according to an embodiment of the present invention
  • 3A is a schematic structural diagram of a registration resource of an AE stored in an M2M platform according to an embodiment of the present invention
  • 3B is a schematic structural diagram of connection resources of an AE stored by an M2M gateway according to an embodiment of the present invention
  • 3C is a schematic structural diagram of a Base resource stored in an M2M platform according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of a method for switching an access point according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of a method for acquiring a CSE identifier of an M2M gateway after an AE enters a local area network to which an M2M gateway belongs according to an embodiment of the present invention
  • FIG. 6 is a flowchart of a method for acquiring an identifier of an M2M gateway after an AE enters a location covered by a local area network to which an M2M gateway belongs according to an embodiment of the present invention
  • FIG. 7 is a schematic structural diagram of an apparatus of an M2M platform according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of an apparatus of an AE according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of an apparatus of an M2M gateway according to an embodiment of the present invention.
  • FIG. 1B is a schematic structural diagram of a system according to an embodiment of the present invention, including an AE 10, a registration server 20, and a resource server 30, wherein the registration server 20 is a server registered by the AE.
  • the registration server includes the public server CSE in the M2M system architecture.
  • the CSE of the registration server is called R-CSE (English full name: Registrar Common Service Entity), that is, the CSE registered by the AE.
  • the resource server 30 is a server that stores resources accessed by the AE.
  • the resource server includes the public server CSE in the M2M system architecture.
  • the CSE of the resource server is called H-CSE (English name: Hosting Common Service Entity), which is a holding entity of resources or attributes. Need to explain
  • the AE10 in the embodiment of the present invention is an entity including the ADN, ASN, MN, and IN in the architecture shown in FIG. 1A, and the registration server 20 may be the ASN, MN, and IN in the architecture shown in FIG. 1A.
  • the resource server can be ASN, MN, IN in the architecture shown in Figure 1A.
  • one AE10 can only be registered to at most one registration server 20.
  • the registration server 20 can be an operator platform and can be a home gateway.
  • the registration server of the AE is an IN (ie, an M2M platform), and thus the R-CSE is a CSE of the M2M platform.
  • the resource server 30 provides a specific service, which may be a weather server or a fleet management server.
  • the AE 10 can acquire the attribute of the resource or resource from the resource server 30 through the registration server 20.
  • the resource server is the MN, and the H-CSE in the subsequent description is the CSE of the M2M gateway.
  • FIG. 2 is a schematic structural diagram of an apparatus for switching an access point according to an embodiment of the present invention, for receiving an access point handover request message in the M2M system shown in FIG. 1B, and triggering a flow of switching an access point.
  • Device 200 can include one or more ports 208 coupled to a transceiver 206.
  • Transceiver 206 can be a transmitter, a receiver, or a combination thereof, the transceiver being used to interact with other entities.
  • Processor 202 is coupled to transceiver 206 for processing data packets.
  • Processor 202 can include one or more multi-core processors and/or memory 204.
  • the processor 202 can be a general purpose processor, an application specific integrated circuit (ASIC), or a digital signal processor (DSP).
  • ASIC application specific integrated circuit
  • DSP digital signal processor
  • the memory 204 can be a non-transitory storage medium coupled to the processor 202 for storing different types of data, such as semantic description resources, resources described by semantic descriptions, and the like.
  • the memory 204 may include a read only memory (ROM), a random access memory (RAM), or other types of dynamic storage devices that can store information and instructions, and may also be a disk storage.
  • the memory 204 can be used to hold instructions that implement a semantic verification related method. It will be appreciated that at least one of the cache and long term storage is programmed or loaded by the processor 202 to the processor 202 of the device 200.
  • device 200 acts as a registration server for the AE (e.g., an M2M platform), including memory 204, processor 202, and transceiver 206.
  • the memory 204 is configured to store computer executable program code, and a registration resource and a connection resource of the AE, and store the registration resource of the CSE (ie, H-CSE) as the resource server; the processor 202 and the memory 204 and the transceiver 206 coupling;
  • the program code includes instructions that, when executed by the processor, cause the network element to perform the relevant steps performed by the M2M platform of FIGS. 4, 5, and 6.
  • the apparatus shown in FIG. 2 can be an M2M gateway that can implement one or more instructions for access point switching in accordance with an embodiment of the present invention. These instructions may be stored in memory 204, which, when executed by the processor, causes the apparatus to perform the relevant steps performed by the M2M gateway of Figures 4, 5, and 6.
  • device 200 acts as an M2M device, including memory 604, processor 202, and transceiver 206.
  • memory 604 for storing computer executable program code
  • processor 202 coupled to the memory 204 and the transceiver 206;
  • program code includes instructions that, when executed by the processor, cause the network element to perform the relevant steps of AE execution in FIGS. 4, 5, and 6.
  • FIG. 2 is also a schematic diagram of another apparatus for switching an access point (such as a resource server to be accessed by an AE) provided by an embodiment of the present invention.
  • the resource server to which the AE is to be accessed that is, the server where the H-CSE is located in the embodiment of the present invention
  • the device of FIG. 2 includes the memory 204, the processor 202, and the transceiver 206.
  • the processor 202 is coupled to the memory 204 and the transceiver 206;
  • program code includes instructions that, when the processor executes the instructions, cause the network element to perform The relevant steps performed by the resource server (such as the M2M gateway) to be accessed by the AE in Figure 4, Figure 5, and Figure 6.
  • the resource server such as the M2M gateway
  • FIG. 3A is a schematic diagram of a registered resource of an AE stored in an M2M platform.
  • the registration resource of the AE is a resource that the AE registers with the M2M platform and records in the M2M platform (specifically, the CSE of the M2M platform may be recorded in the CSE of the M2M platform).
  • the registration resources of the AE include an AE identity (AE-ID) and access point information (pointOfAccess).
  • the specific content of the AE-ID attribute is an AE-ID
  • the specific content of the access point information attribute includes a CSE identifier of the access point of the AE, and access information (accessInfo) of the AE.
  • the registration resource of the AE may include one access point information (pointOfAccess), or may include multiple pointOfAccess in the form of a list.
  • pointOfAccess access point information
  • the AE's registered resource is a list consisting of multiple pointOfAccess
  • only the access point information of a specific location in the list is the information of the access point that the AE is using.
  • the specific location may be the first digit in the list, or may be the last digit, or may be any location determined by the M2M platform.
  • the access information of the AE includes local area network information of the AE access (for example, area network identifier (areaNwkId) and/or area type (areaNwkType) of the AE access), and an access point as an AE (in this embodiment) M2M gateway) Access information assigned to the AE (such as access key and/or area address (areaNwkAddress).
  • the access key (accessKey) and the local area network address (areaNwkAddress) are accesses of the AE.
  • Point (such as M2M gateway) allocation.
  • FIG. 3B is a schematic diagram of connection resources of AEs stored by an M2M gateway as an AE access point.
  • the connection resource of the AE is a process in which the AE performs the access point handover, for example, a resource (such as ⁇ AEAttach>) created and stored by the M2M gateway during the process of the access point switching from the M2M platform to the M2M gateway.
  • the connection resources of the AE include an AE-ID, an access information of the AE (accessInfo), and an ID of the registered resource of the AE (ID of ⁇ AE>).
  • the access information (accessInfo) of the AE includes the same content as (accessInfo) stored in the CSE of the M2M platform in FIG. 3A.
  • the embodiments of the present invention are not described in detail herein.
  • the AE when the access point uses the service provided by the M2M system, the AE first sends a message to the object.
  • the AE sends a message to any device in the M2M system, it needs to first send the message to its own access point, and then the access point forwards it to other devices in the M2M system.
  • the access information of the AE is stored in the access point.
  • the access point receives the message that needs to be forwarded to the AE, the access point can be addressed to the AE through the access information of the AE, and the message is forwarded.
  • the access point is usually a device where the CSE is located, such as an M2M gateway or an M2M platform.
  • FIG. 3C is a schematic structural diagram of a CseBase resource stored in an M2M platform.
  • the CseBase resource includes information about each M2M gateway.
  • the CseBase resource includes resources of each M2M gateway (such as MN-CSE-1, MN-CSE-1), and resources of nodes corresponding to each M2M gateway (such as Node-1 corresponding to MN-CSE-1, Node-2 corresponding to MN-CSE-2, and the resources of the local area network to which the M2M gateway corresponding to the node belongs under each node resource (areNwkInfo1 and areNwkInfo2 under Node-1, areNwkInfo3 under Node-2) .
  • each M2M gateway uses the CSE identifier of the M2M gateway as the identifier of the M2M gateway resource.
  • the resources of the M2M gateway also include location information of the M2M gateway (such as Location of MN-CSE-1).
  • the resource of the node corresponding to the M2M gateway includes the CSE identifier of the M2M gateway (such as MN-CSE-1) as an attribute, and further includes resources of the information of the local area network to which the M2M gateway belongs (for example, areNwkInfo1 and areNwkInfo2) are child resources of the node resource. As shown in FIG.
  • the Node-1 resource corresponding to the MN-CSE-1 resource contains resources of information of two local area networks, indicating that the gateway where the MN-CSE-1 is located belongs to two different local area networks.
  • the information resource of the local area network to which the M2M gateway belongs (for example, areaNwkInfo1) includes the local area network information to which the M2M gateway belongs, such as the type of the local area network (AreaNwkType) and the identifier of the local area network (AreaNwkId).
  • the embodiment of the invention provides a method for switching an access point, which can avoid other communication service interruptions that need to be performed by the M2M platform and the AE, thereby improving the user experience.
  • the M2M platform performs an access point before the access point switching for the AE
  • the M2M gateway performs an access point after the access point switching for the AE
  • the M2M The platform acts as an access point for the M2M gateway.
  • the method for switching an access point includes:
  • the 401-402, AE, and M2M gateways are respectively registered on the M2M platform, and the M2M platform stores the registered resources of the AE and the registered resources of the M2M gateway.
  • the registration resources of the AE include: the AE-ID and the access information of the AE (the CSE identifier included in the access information of the AE is the CSE identifier of the M2M platform before the access point handover is performed).
  • the registration resources of the M2M gateway include: the CSE identifier of the M2M gateway and the access information of the M2M gateway (that is, the CSE identifier of the M2M platform).
  • the AE sends an access point handover request message to the M2M platform.
  • the AE sends an access point handover request message to the M2M platform (ie, the registration server of the AE).
  • the access point switching request message carries the CSE identifier of the M2M gateway (that is, the identifier of the CSE of the switched access point).
  • the access point handover request message can be used to update the access point information of the AE under the registered resources on the M2M platform.
  • the M2M platform is a registration server of the AE.
  • the access point information of the AE includes the identifier of the CSE (ie, the CSE identifier of the M2M gateway) that is the access point of the AE after the access point is switched.
  • the access point switching request message sent by the AE may further include the access information of the AE in the local area network.
  • the access information includes a local area network identifier of the AE accessing the local area network, or a local area network type supported by the AE.
  • the access information of the AE indicates that the AE accesses through the M2M gateway in a specific local area network. If the access point switching request message sent by the AE does not include the access information of the AE in the local area network, the AE can receive the access information allocated by the M2M gateway, such as the key of the local area network allocated by the M2M gateway, and the network of the local area network. address.
  • areaNwkType and areaNwkId are optional ones. That is to say, if the access information includes the parameter areaNwkType, the parameter areaNwkId will not be included. If the access information includes the parameter areaNwkId, the parameter areaNwkType will not be included.
  • the access point switching request message may be:
  • /m2m.provider.com/CSEBase/AE is the identifier of the AE registration resource of the AE on the M2M platform; Put Indicates that an AE registration resource on the M2M platform needs to be updated.
  • ⁇ pointOfAccess> indicates that the request message carries the access point information of the AE.
  • the value of the attribute ⁇ CSE-ID> is ://www.m2mprovider.com/C3219 ⁇ /CSE-ID>, indicating the M2M gateway corresponding to the CSE identifier of the switched access point.
  • the CSE identifier is //www.m2mprovider.com/c3219;
  • the attribute ⁇ areaNwkId> is the local area network identifier of the network to which the access point belongs after switching.
  • the local area network identifier of the network to which the access point belongs after the handover is 12idq96s.
  • the access point switching request message may not include the attribute ⁇ areaNwkId> but includes the attribute ⁇ areaNwkType>.
  • the local area network type is wireless fidelity (English full name: WIreless-FIdelity, English abbreviation: wifi).
  • the M2M platform sends a resource creation request message to the M2M gateway.
  • the resource creation request message is used to request the M2M gateway to create a connection resource (AEAttach) of the AE, where the resource creation request message includes an AE-ID.
  • the M2M platform performs after step 404 or Previously, it is also necessary to store the AE access information in the access point information of the AE.
  • the local area network identifier or the local area network type after the AE switches the access point may be stored in the access information (AccessInfo) in the access point information (pointOfAccess) of the AE.
  • the M2M platform needs to send a resource creation request message to the M2M gateway, so that the M2M gateway creates the connection resource of the AE, so that the M2M gateway can be based on the AE.
  • the connection resource sends the M2M service corresponding to the AE to the AE.
  • the access information of the AE may include: a local area network identifier of a network to which the M2M gateway belongs or a network type of the network to which the M2M gateway belongs.
  • the M2M platform connection resource creation request message is:
  • the POST indicates that the connection resource of the AE needs to be created on the M2M gateway
  • the parameter /m2m.provider.com/transfer is the identifier of the resource in the M2M gateway
  • the Sa3e3f3ab is the AE-ID.
  • the parameter 12idq96s is the local area network identifier of the network to which the M2M belongs to the AE.
  • the connection resource creation request message is:
  • POST indicates that the connection resource of the AE needs to be created on the M2M gateway
  • the parameter /m2m.provider.com/transfer is the identifier of the resource in the M2M gateway.
  • Sa3e3f3ab is an AE-ID.
  • the parameter Wifi is the local area network type of the network supported by AE.
  • the M2M gateway sends a response message that the resource creation succeeds to the M2M platform.
  • the M2M gateway After receiving the connection resource creation request sent by the M2M platform, the M2M gateway creates a connection resource, and the M2M gateway returns a response message that the connection resource is successfully created to the M2M platform.
  • the content of the AEAttach resource created by the M2M gateway is as shown in FIG. 3B. It will not be described in detail in the embodiment of the present invention.
  • the M2M gateway allocates access information for the AE according to the areaNwkId or areaNwkType in the accessInfo (refer to the information in the accessInfo in FIG. 3A or FIG. 3B, that is, the allocation AE.
  • the access information allocated by the M2M gateway to the AE allows the AE to successfully connect to the local area network to which the M2M gateway belongs;
  • the request message does not include accessInfo, and the M2M gateway allocates access information to the AE according to the type of local area network supported by itself, such as wifi.
  • the M2M gateway allocates the local area network address of the AE in the local area network according to the local area network identifier of the local area network to which the M2M gateway belongs.
  • the access information of the AE includes the local area network type of the network to which the M2M gateway belongs
  • the local area network address of the M2M gateway is allocated for the AE according to the local area network type of the network to which the M2M gateway belongs.
  • the M2M gateway After the A2 ttach resource is created, the M2M gateway returns a response message for successfully creating the resource to the M2M platform.
  • the successful response message includes the access information (for example, the area address (areaNwkAddress) and the access key (accessKey)) allocated by the M2M gateway to the AE in the successfully created AEAttach resource.
  • the M2M platform records the access information allocated by the M2M gateway for the AE to the AccessInfo as shown in FIG. 3A.
  • the response message successfully generated by the M2M gateway to the M2M platform may be:
  • the response message that the resource is successfully created includes the connection information (accessInfo) of the AE, and the accessInfo includes: areaNwkId, areaNwkAddress, and areaNwkKey.
  • accessInfo includes: areaNwkId, areaNwkAddress, and areaNwkKey.
  • areaNwkId is 12idq96s
  • areaNwkAddress is 10.136.79.43
  • areaNwkKey is helloworld.
  • the M2M platform sends a response message of the access point handover to the AE.
  • the response message of the access point handover carries the access information allocated by the M2M gateway to the AE.
  • the response message of the access point handover includes the access point information (pointOfAccess) of the switched AE.
  • the M2M platform allocates the M2M gateway included in the response message for successfully creating the resource to the AE before or after sending the response message of the access point handover to the AE.
  • the access information (area address (areaNwkAddress) and access key (accessKey)) is recorded in the accessInfo in the access point information (pointOfAccess) of the AE stored in the M2M platform.
  • the M2M platform records the access information allocated by the M2M gateway to the AE in the accessInfo of the access point information of the AE; or, the M2M platform adds a piece of information to the specific location of the access point information list of the AE, and in the specific The access information of the M2M gateway allocated to the AE is recorded in the location information with increased location.
  • the AE sends an access point handover request message to the M2M platform, and the M2M platform records the CSE identifier corresponding to the M2M gateway and the access information of the AE under the access point information (pointOfAccess) of the AE, and carries the M2M gateway.
  • the assigned access information (such as a local area network address and an access key) success response message is sent to the AE so that the AE can connect to the M2M gateway based on the information in the success response message.
  • the response message of the access point handover may be:
  • the access information of the AE in the resource creation request message includes: the local area network type of the network to which the M2M gateway belongs
  • the response message for successfully creating the resource includes the local area network type of the network to which the M2M gateway belongs.
  • the response message of the access point switching of the local area network type including the network to which the M2M gateway belongs is similar to the response message of the access point switching of the local area network identifier of the network to which the M2M gateway belongs.
  • ⁇ areaNwkId>12idq96s ⁇ /areaNwkId> Replace with ⁇ areaNwkType>Wifi ⁇ /areaNwkType>.
  • the AE can directly use the services provided in the architecture shown in Figure 1B through the M2M gateway as the access point for the AE.
  • the AE can access the resources in the M2M system through the M2M gateway, and receive other service entities to send a notification message to the AE or access the resources of the device where the AE is located through the M2M platform that is the access point of the AE.
  • the AE initiates resource access to the M2M gateway through the M2M gateway as the access point of the AE, including the following steps:
  • the AE sends a resource access request message to the M2M gateway according to the access information allocated by the M2M gateway to the AE.
  • the access information allocated by the M2M gateway to the AE may be a connection address corresponding to the M2M gateway, and the resource access request message includes an identifier of the resource to be accessed.
  • the resource access request message can be:
  • HTTP/1.1 indicates that the get operation follows the HTTP 1.1 version
  • m2m.provider.com/CSE221/container/contentinstance is the identifier of the resource to be accessed (such as the URI of the resource).
  • the M2M gateway receives the resource access request message sent by the AE according to the access information allocated by the M2M gateway to the AE, and processes the resource access request message.
  • the M2M gateway processes the resource access request message according to the identifier of the resource to be accessed in the resource access request message.
  • the M2M gateway may determine, according to the identifier of the to-be-accessed resource (m2m.provider.com/CSE221/container/contentinstance), that the identifier of the CSE to be accessed (ie, CSE221) determines that the identifier of the to-be-accessed resource is not Stored in the M2M gateway as an access point for the AE. Therefore, the M2M gateway sends the resource access request message to the entity that stores the resource to be accessed, that is, the entity whose CSE is identified by the CSE of the CSE 221.
  • the M2M gateway determines that the to-be-accessed resource is stored in the M2M gateway according to the identifier of the resource to be accessed in the resource access request message, the M2M gateway directly performs corresponding processing according to the resource access request message.
  • the M2M gateway that is the access point of the AE determines whether the resource to be accessed is stored in the M2M gateway as the access point of the AE. Specifically, the M2M gateway that is the access point of the AE determines the resource to be accessed in the resource access request. Whether the CSE identifier is the same as the CSE identifier of the M2M gateway that is the access point. If the identifier of the CSE where the resource to be accessed is the same as the CSE identifier of the M2M gateway as the access point, the resource to be accessed is stored in the M2M gateway as the access point of the AE, otherwise the resource to be accessed is not stored as the AE. The M2M gateway of the access point.
  • the M2M gateway determines that the to-be-accessed resource is stored in the M2M gateway according to the identifier of the resource to be accessed in the resource access request message, the M2M gateway directly performs corresponding processing according to the resource access request message.
  • the corresponding processing by the M2M gateway according to the resource access request message belongs to the prior art, and is not detailed in the embodiment of the present invention.
  • the service subscribed by the AE (such as the weather forecast service, etc.) will continue to send a notification message to the AE.
  • the process of sending a notification message to the AE by the other service entity in the M2M system architecture during the process of the access point switching and the M2M gateway corresponding to the CSE identifier being used as the access point of the AE is completed by the AE.
  • the M2M platform receives a notification message sent by another device to the AE.
  • the notification message carries the AE-ID.
  • the other device is a device where the AE subscription resource is located.
  • the device where the AE subscribes to the resource sends a notification message to the AE to inform the latest state after the resource change.
  • the device where the AE subscribes to the resource still sends a notification message to the M2M platform, because the AE registration CSE of the AE recorded by the AE subscription resource is the CSE of the M2M platform.
  • the notification message can be:
  • POST represents a create operation
  • ⁇ content>cloudy ⁇ /content> indicates that the content of the resource subscribed to by the AE is cloudy.
  • the M2M platform After receiving the notification message sent to the AE, the M2M platform determines, according to the AE-ID in the notification message, the access point information of the AE included in the registration resource of the AE as the CSE identifier of the M2M gateway.
  • the M2M platform After the M2M platform obtains the CSE identifier of the M2M gateway according to the access point information of the AE included in the registration resource of the AE, the M2M platform sends the notification message to the M2M gateway, so that the M2M gateway according to the AE in the notification message.
  • the ID sends the received notification message to the AE.
  • the M2M platform may receive the notification message sent by the other entity to the AE, and determine that the access point information of the AE is the CSE identifier of the M2M gateway according to the AE-ID in the notification message, and send the notification message to the M2M gateway.
  • the AE can be made to obtain the latest status of the previously subscribed service, so that other entities can still communicate with the AE after the AE switches the access point.
  • steps 407-408, and steps 409-410 have no chronological order. It is possible to perform steps 407-408 first, and then perform steps 409-410. It is also possible to perform steps 409-410 first and then steps 407-408.
  • the embodiments of the present invention are not limited herein.
  • the access point information of the AE changes, and the AE requests the M2M platform to update the access point of the AE.
  • the process of updating the access point of the AE by the M2M platform includes:
  • the M2M platform receives an access point update request message sent by the AE.
  • the AE when the access point information of the AE changes, the AE sends an access point update request message to the M2M platform.
  • the access point update request message can be:
  • PUT indicates that the access point information of the AE on the M2M platform needs to be updated
  • http://218.22.134.1 is the IP address corresponding to the AE
  • 8080 is the port number
  • ⁇ /pointOfAccess> indicates the access point update request message. Carrying the access point information of the AE.
  • the access point update request message in step 411 may further carry an IP address and a port number corresponding to the AE, that is, the access point update request message is a first access point update request message, and is used by the M2M platform.
  • the access point information including the AE is replaced with access point information including the IP address and the port number information.
  • the access point update request message in step 411 may further be a CSE identifier that records the specific location record in the access point information list and an indication information of the CSE identifier that deletes the specific location record, that is, the foregoing access point update request.
  • the message is a second access point update request message.
  • the access point update request is used to delete the access point information in the access point information list that includes the CSE identifier in the access point update request message.
  • the first access point update request message is used by the M2M platform to replace the access point information included in the AE registration resource with the IP address and port number corresponding to the AE.
  • the IP address and port number corresponding to the AE may be http:/ /ADN-server: 8080
  • the second access point update request message is used to delete the CSE identifier of the specific location record in the access point information list included in the AE registration resource.
  • First and second in the patent Indicates two different access point update request messages and does not represent the order of the access point update request messages.
  • the specific location may be the first item in the access point information list, the last item, or any one of the access point information lists.
  • the M2M platform performs corresponding processing according to the access point update request message.
  • the M2M platform replaces the access point information (the IP address and port number information of the AE) in the ⁇ AE> resource as the access point information in the update request message.
  • the M2M platform replaces the access point information in the ⁇ AE> resource with the IP address and port number of the AE.
  • the M2M platform deletes the access point information of the specific location in the access point information list included in the ⁇ AE> resource, that is, the deleted access point information includes the CSE identifier included in the access point update request message.
  • the M2M platform after receiving the access point update request message sent by the AE, the M2M platform replaces the access point information in the ⁇ AE> resource with the IP address and port number of the AE, or deletes the access point information list in the ⁇ AE> resource. Access point information in a specific location, so that when the AE leaves the coverage area of the current access point, the M2M platform can enable the AE to access other access points corresponding to the AE, so that the AE can access the storage in other access points. Resources.
  • the M2M platform sends a resource deletion request message to the M2M gateway corresponding to the CSE identifier of the M2M gateway in the deleted or replaced access point information.
  • the M2M gateway corresponding to the CSE identifier of the M2M gateway in the deleted or replaced access point information is an M2M gateway that is an AE access point before the access point is updated.
  • the resource deletion request message carries an identifier of the connection resource of the AE, and is used to request the M2M gateway to delete the connection resource of the AE.
  • the M2M gateway deletes the connection resource of the AE created by the M2M gateway according to the identifier of the connection resource of the AE.
  • the M2M platform receives the success response message sent by the M2M gateway corresponding to the CSE identifier in the access point update request message.
  • the success response message is a success response message sent by the M2M gateway to delete the connection resource of the AE. And the success response message is used to characterize that the connection resource of the AE has been deleted.
  • the M2M platform sends a success response message to the AE.
  • the success response message is a response message for updating the access point request success. Further, the success response message may further carry the connection resource of the AE.
  • the M2M platform deletes the connection resource of the AE in the M2M gateway by sending the resource deletion request message to the M2M gateway that is the AE access point before the access point is updated, so that the storage space of the M2M gateway can be saved.
  • FIG. 5 is a flowchart of a method for an AE to discover an M2M gateway and obtain an identifier of an M2M gateway according to an embodiment of the present invention, including the following steps:
  • the AE accesses the local area network to which the M2M gateway belongs, and determines the local area network identifier of the local area network.
  • the AE accesses the local area network to which the M2M gateway belongs and the local area network identifier of the local area network is not described in detail in the embodiments of the present invention.
  • the AE After determining the local area network identifier of the accessed local area network, the AE sends a request message for querying the public service entity CSE identifier of the M2M gateway corresponding to the local area network identifier to the M2M platform.
  • the request message for querying the CSE identifier of the M2M gateway corresponding to the local area network identifier carries the local area network of the AE access
  • the local area network identifier, the request message for querying the CSE identifier of the M2M gateway corresponding to the local area network identifier is used to obtain the CES identifier of the M2M gateway.
  • the local area network identifier of the local area network accessed by the AE may be 12idq96s.
  • the request information of the C2 identifier of the M2M gateway corresponding to the local area network identifier is used to request the M2M platform to query the CSE identifier of the M2M gateway corresponding to the local area network identifier.
  • the request information for querying the CSE identifier of the M2M gateway corresponding to the local area network identifier is as follows:
  • the CSE identifier of the M2M gateway in the local area network with the local area network identifier of 12idq96s is obtained.
  • the M2M platform After receiving the request information of the CSE identifier of the M2M gateway corresponding to the local area network identifier, the M2M platform obtains the local area network identifier corresponding to the M2M gateway according to the local area network identifier in the request information of the C2 identifier of the M2M gateway corresponding to the local area network identifier. CSE logo.
  • the M2M platform stores the correspondence between the local area network identifier and the CSE identifier of the M2M gateway in the local area network.
  • the CseBase resource includes a node resource (node resource) corresponding to each M2M gateway, and a resource of a local area network to which the M2M gateway corresponding to the node belongs under each node resource (node resource).
  • the areaNwkType and areaNwkId attributes of the areaNwkInfo resource are respectively stored in the LAN type and the local area network identifier.
  • the M2M platform can query the CSE identifier of the M2M gateway corresponding to the local area network identifier according to the local area network identifier in the request message of the CSE identifier of the M2M gateway corresponding to the local area network identifier.
  • the specific query method is the prior art, and the embodiments of the present invention are not described in detail herein.
  • the M2M platform sends a success message carrying the CSE identifier of the M2M gateway to the AE.
  • the AE determines the local area network identifier of the network to which the AE belongs, and sends the query request carrying the local area network identifier to the M2M platform, so that the M2M platform can determine the CSE identifier of the M2M gateway that the AE needs to access according to the local area network identifier, thereby Determining that the switched access point is the M2M gateway corresponding to the CSE identifier, and the AE can access the M2M gateway and access the resources stored in the M2M gateway.
  • FIG. 6 is a flowchart of another method for an AE to discover an M2M gateway and obtain an identifier of an M2M gateway according to an embodiment of the present invention.
  • the AE moves to a coverage area of a local area network to which the M2M gateway belongs, and according to the local area network supported by the AE.
  • the network type of the network, the process of determining the CSE identity of the accessed M2M gateway includes the following steps:
  • the AE obtains an acquisition request from the M2M gateway adjacent to the AE sent by the MME to the M2M platform.
  • the acquisition request of the M2M gateway adjacent to the AE carries the location information of the AE and the area information covered by the local area network corresponding to the type of the local area network supported by the AE.
  • the M2M gateway adjacent to the AE is an M2M gateway that is centered on the location of the AE, and the area information covered by the local area network corresponding to the local area network type supported by the AE is an area within a radius.
  • the AE first determines its location and the type of local area network supported by the AE. Then, according to the type of local area network supported by the AE, the area information covered by the local area network is determined. For example, the area covered by Bluetooth is 30m, and the radius covered by wifi is 100m.
  • the AE when the AE moves to the coverage of the local area network to which the M2M gateway belongs, and the local area network identifier of the local area network cannot be obtained, the AE may send an acquisition request of the M2M gateway adjacent to the AE to the M2M platform.
  • the acquiring request of the M2M gateway adjacent to the AE carries the location information of the AE to obtain the CSE identifier of the M2M gateway adjacent to the AE.
  • the AE can obtain its own location information according to its own GPS module or location server, such as the latitude and longitude coordinates (X, Y) corresponding to the AE.
  • the M2M platform After receiving the acquiring request of the M2M gateway that is sent by the AE and contacting the AE, the M2M platform returns the CSE identifier of the M2M gateway adjacent to the AE to the AE according to the location information of the AE and the area information covered by the local area network.
  • the M2M platform determines the M2M gateway adjacent to the AE according to the location information of the AE.
  • the AE sends an acquisition request of the neighboring M2M gateway to the M2M platform to obtain a gateway adjacent to the AE, and the acquisition request of the neighboring M2M gateway of the AE may be:
  • the /m2m.provider.com/CSEBase is the location information of the location resource in the M2M platform.
  • the AE After receiving the CSE identifier of the M2M gateway adjacent to the AE returned by the M2M platform, the AE determines that the M2M gateway of the local area network type supported by the AE is supported in the M2M gateway adjacent to the AE.
  • the process of the AE determining that the M2M gateway supporting the local area network type supported by the AE in the M2M gateway adjacent to the AE may specifically include: Step 6031-6034:
  • the AE sends a query request of the network type of the local area network to which the M2M gateway to which the CSE belongs, indicated by the CSE identifier, to the M2M platform, to query the network type of the local area network to which the M2M gateway to which the CSE belongs indicated by the CSE identifier.
  • the query request of the network type of the local area network to which the M2M gateway to which the CSE belongs indicated by the CSE identifier may be:
  • the parameter http://m2m.serviceprovider.com/CSEbase indicates the identifier of the resource that the AE needs to query.
  • hostedCSEID CSE_ID indicates that the CSE_ID contained in the queried Node resource is the same as the CSE_ID.
  • Node is a resource that has been defined about the node.
  • a node represents an M2M node, which can be a platform node (IN) or a gateway node (MN).
  • a Node contains a CSE.
  • IN contains IN-CSE
  • MN contains MN-CSE.
  • the Node resource has a hostedCSEID attribute whose value is the CSE_ID corresponding to the node.
  • Each Node resource corresponds to at least an AreaNwkInfo resource, and each AreaNwkInfo resource includes an attribute AreaNwkType whose value is a local area network type and an attribute AreaNwkId. If a node belongs to multiple local area networks, the Node resource corresponding to the Node corresponds to multiple AreaNwkInfo resources.
  • the M2M platform returns, to the AE, an identifier of the Node resource corresponding to the CSE identifier carried in the query request of the network type of the local area network to which the M2M gateway to which the CSE belongs.
  • the AE sends a network type confirmation request to which the M2M gateway belongs to the M2M platform.
  • the network type confirmation request that the M2M gateway belongs to carries the identifier of the Node resource to which the CSE identifier of the M2M gateway belongs, and the type of the local area network supported by the AE.
  • the parameter http://m2m.serviceprovider.com/CSEBase/node is the CSE identifier of the M2M gateway.
  • the network type confirmation request is used to determine whether the local area network type to which the M2M gateway belongs is the same as the local area network type supported by the AE.
  • the M2M platform returns to the AE whether the type of the local area network to which the M2M gateway belongs is the same as the type of the local area network supported by the AE.
  • the AE receives an unsupported response in step 6034, the AE also needs to confirm the type of local area network to which it belongs to other gateways in the M2M gateway adjacent to the AE.
  • the steps of steps 6031 to 6034 are repeatedly performed until it is confirmed that the local area type of the local area network to which the M2M gateway belongs is the same as the M2M gateway type supported by the AE, that is, the AE finally determines the CSE identifier corresponding to the M2M gateway.
  • steps 6031-6034 are an alternative to the refinement of step 603.
  • the AE determines that the M2M gateway supporting the local area network type supported by the AE in the M2M gateway adjacent to the AE may be: 6031', and the AE sends the local area network type of the query to the M2M platform.
  • the request for the CSE identity of the M2M gateway of the same type of local area network supported by the AE is reported to the platform, and the CES identifier of the M2M gateway of the local area network type supported by the AE is supported in the M2M gateway adjacent to the AE.
  • the query request carries the CSE identifier of the M2M gateway adjacent to the AE.
  • the request for the CSE identifier of the M2M gateway with the same local area network type as the AE supported by the Query query may be:
  • the parameter /m2m.serviceprovider.com/CSEBase is the identifier of the CSEBase resource that records the local area network type and the local area network identifier corresponding to each CSE identifier in FIG. 3C, and instructs the M2M platform to query the resource.
  • the M2M platform After receiving the request sent by the AE to support the CSE identifier of the M2M gateway of the local area network type supported by the AE, the M2M platform determines the CSE ID carried in the request in the resource indicated by the //m2m.serviceprovider.com/CSEBase. 1#CSE_ID2#CSE_ID3 respectively supports the type of local area network, and returns to the AE the CSE identifier of the M2M gateway whose type of the local area network is the same as that of the local area network supported by the AE.
  • the M2M platform After receiving the request of step 6031 or 6031', the M2M platform records the local area network type of the M2M gateway in the access information of the AE in the registered resource of the AE.
  • the AE sends the location information of the AE and the type of the local area network supported by the AE to the M2M platform, and the M2M platform can determine the M2M gateway corresponding to the type of the local area network supported by the AE according to the above information, so that the AE can be determined to be accessible.
  • the M2M gateway, and then the AE can access the M2M gateway and access the resources stored in the M2M gateway.
  • the embodiment of the present invention further provides a schematic structural diagram of an apparatus of an M2M platform.
  • the apparatus 700 includes a receiving unit 701, a transmitting unit 702, an obtaining unit 703, a recording unit 704, and a determining unit 705.
  • the receiving unit 701 is configured to receive an access point switching request message sent by the AE, where the access point switching request message carries the public service entity CSE identifier of the M2M gateway.
  • the sending unit 702 is configured to send a resource creation request message to the M2M gateway, where the resource creation request message is used to request the M2M gateway to create a connection resource of the AE, where the resource creation request message carries the AE-ID;
  • the receiving unit 701 is further configured to receive a response message that the resource created by the M2M gateway is successfully created, and the response message that the resource is successfully created carries the access information allocated by the M2M gateway to the AE.
  • the sending unit 702 is further configured to send a response message of the access point handover to the AE, where the response message of the access point handover carries the access information allocated by the M2M gateway to the AE.
  • the receiving unit 701 is configured to perform steps 409, 411, 414, 602 and the like performed by the M2M platform in FIG. 4 to FIG. 6; the sending unit 702 is configured to perform steps 404, 406 performed by the M2M platform in FIG. 4 to FIG. , 407, 413, 415, 504.
  • the embodiments of the present invention are not described in detail herein.
  • the recording unit 704 is configured to replace the information included in the access point information of the AE with the CSE identifier of the M2M gateway, and record the M2M gateway allocated to the AE in the access point information of the AE. Accessing information, or for adding an access point information at a specific location of the access point information list of the AE, and recording, in the added access point information of the specific location, the M2M gateway to allocate to the AE Access information. Further, it is further configured to record, in the access point information of the AE, access information allocated by the M2M gateway to the AE;
  • the obtaining unit 703 is configured to perform step 503 in FIG. 5; the returning unit 707 is configured to perform steps 602, 6032, 6034 in FIG. 6;
  • the recording unit 708 is further configured to: delete the access point information in the access point information list that includes the CSE identifier in the access point update request message according to the CSE identifier in the access point update request message;
  • the determining unit 705 is configured to determine, according to the AE-ID, that the access point information of the AE included in the AE's registration resource is the CSE identifier of the M2M gateway; further, the determining unit 709 is configured to perform step 410 in FIG. 4 and FIG. 6032'.
  • the apparatus in FIG. 7 may be used to execute any of the processes performed by the M2M platform in the above method flow, and store the registered resources of the AE in FIG. 3A and the Base resources in FIG. 3C.
  • the embodiment of the present invention further provides a schematic structural diagram of an apparatus of an AE, where the apparatus 800 includes: a sending unit 801 and a receiving unit 802.
  • the sending unit 801 is configured to send an access point switching request message to the M2M platform, where the access point switching request message carries the CSE identifier of the M2M gateway.
  • the receiving unit 802 is configured to receive a response message of the access point handover sent by the M2M platform, where the response message of the access point handover carries the access information allocated by the M2M gateway to the AE;
  • the sending unit 801 is further configured to send a resource access request to the M2M gateway according to the access information allocated by the M2M gateway to the AE.
  • the sending unit 801 is configured to perform steps 403, 407, 502, 601, 6031, 6033, 6031 in FIG. 4 to FIG. 6, and further, as shown in FIG. 8, the device 800 further includes: The access unit 803 and the determining unit 804.
  • the access unit 803 is configured to access a local area network to which the M2M gateway belongs.
  • a determining unit 804 configured to determine a local area network identifier of the local area network
  • the access unit 803 is configured to perform step 501 in FIG. 5, and the determining unit 804 is configured to perform step 603 as shown in FIG. 6.
  • the apparatus of Figure 8 can be used to perform any of the processes performed by the AE in the above method flow.
  • the embodiment of the present invention further provides a schematic structural diagram of an apparatus of an M2M gateway.
  • the apparatus 900 includes: a receiving unit 901, a creating unit 902, a sending unit 903, and a processing unit 904.
  • the receiving unit 901 is configured to receive a resource creation request message sent by the M2M platform, where the resource creation request message is used to request the M2M gateway to create a connection resource of the AE, where the resource creation request message carries the AE-ID;
  • a creating unit 902 configured to create a connection resource of the AE according to the resource creation request message, where the connection resource of the AE includes the access information of the AE;
  • the sending unit 903 is configured to send, to the M2M platform, a response message that the resource creation succeeds, and the response message that the resource creation succeeds carries the access information allocated by the M2M gateway to the AE;
  • the receiving unit 901 is further configured to receive a resource access request message sent by the AE according to the access information allocated by the M2M gateway to the AE;
  • the processing unit 904 is configured to process the resource access request message.
  • the apparatus 900 further includes: an allocating unit 905, an obtaining unit 906, wherein the allocating unit 905 is configured to allocate, according to a local area network identifier of the network to which the M2M gateway belongs, a connection address of the AE in the local area network, or Further, the method is further configured to allocate a connection address of the AE in the local area network according to the network type of the local area network of the network to which the M2M gateway belongs and the location information of the AE; and the acquiring unit 906 is configured to acquire the location information of the AE.
  • the apparatus in FIG. 9 may be used to perform any process performed by the M2M gateway in the foregoing method flow, and store the connection resources of the AE in 3B.
  • FIG. 7 A "unit” herein may refer to an application-specific integrated circuit (ASIC), circuitry, a processor and memory that executes one or more software or firmware programs, integrated logic circuitry, and/or other functions that provide the functionality described above.
  • ASIC application-specific integrated circuit
  • FIG. 7 A "unit” herein may refer to an application-specific integrated circuit (ASIC), circuitry, a processor and memory that executes one or more software or firmware programs, integrated logic circuitry, and/or other functions that provide the functionality described above.
  • ASIC application-specific integrated circuit
  • the embodiment of the present invention further provides a computer storage medium for storing computer software instructions for the M2M platform shown in FIG. 7 or the AE shown in FIG. 8 or the M2M gateway shown in FIG.
  • the program designed by the above method embodiment is executed. By executing the stored program, the AE can switch to the access point.
  • the embodiment of the present invention further provides another computer storage medium for storing computer software instructions used by the M2M platform, the AE, and the M2M gateway, and includes a program designed to execute the foregoing method embodiments. By executing the stored program, the AE can switch to the access point.
  • a computer storage medium for storing computer software instructions used by the M2M platform, the AE, and the M2M gateway, and includes a program designed to execute the foregoing method embodiments. By executing the stored program, the AE can switch to the access point.
  • Those of ordinary skill in the art will appreciate that all or a portion of the subject matter of this application can be implemented in software incorporating hardware and/or firmware.
  • the subject matter described herein can be implemented in software executed by one or more processors.
  • the subject matter described herein can be implemented using a non-transitory computer readable medium storing computer executable instructions that, when executed by a computer processor, control the computer to perform the steps.
  • Example computer readable media suitable for implementing the subject matter described herein include non-transitory computer readable media, such as disk storage devices, chip memory devices, programmable logic devices, and application specific integrated circuits.
  • a computer readable medium embodying the subject matter described herein can be located on a single device or computing platform or can be distributed across multiple devices or computing platforms.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种切换接入点的方法及装置,涉及信息技术领域,可以避免其它需要通过M2M平台与AE进行的通信业务中断,进而可以提升用户体验。方法包括:M2M平台接收AE发送的接入点切换请求消息,接入点切换请求消息中携带M2M网关的CSE标识以及AE的接入信息;M2M平台向M2M网关发送资源创建请求消息,资源创建请求消息用于请求M2M网关创建AE的连接资源,资源创建请求消息中携带AE标识以及AE的接入信息;M2M平台接收M2M网关发送的资源创建成功的响应消息,资源创建成功响应消息中携带M2M网关的连接地址;M2M平台向AE发送接入点切换的响应消息。本发明适用于当AE的接入点由M2M平台切换至M2M网关之后,AE能够接收M2M平台以及M2M网关对应的通信业务。

Description

切换接入点的方法及装置
本申请要求于2016年6月8日提交中国专利局、申请号为201610402671.X、发明名称为“切换接入点的方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及信息技术领域,特别涉及一种切换接入点的方法及装置。
背景技术
机器通信(Machine to Machine Communications,M2M,)是一种以机器智能交互为核心的、网络化的应用与服务。M2M技术可以将数据从一台终端传送到另一台终端,从而实现机器与机器的通信。其中,M2M系统包括M2M平台102、M2M网关103、M2M设备104以及AE(Application Entity,应用实体)101。如图1A所示,M2M平台102可以是IN(Infrastructure Node,基础设施节点),M2M网关103是MN(Middle Node,中间节点),M2M设备可以是ASN(Application Service Node,应用服务节点)和ADN(Application Dedicated Node,应用专用节点)图1A中未示出。另外,CSE(Common Service Entity,公共服务实体)是作为M2M系统的公共能力部件,可以实现对公共能力的承载。CSE可以包含在M2M平台、M2M网关,或作为M2M设备的ASN中,以实现相应的功能。AE可以单独存在,也可以包含在M2M平台、M2M网关,或作为M2M设备的ASN或ADN中。CSE通过Mca参考点让AE访问CSE开放的公共能力,通过Mcc参考点实现CSE之间的通信以及通过Mcn参考点实现对底层网络能力的调用。M2M平台、M2M网关以及M2M设备均可存储各种资源,应用实体AE通过M2M平台、M2M网关或M2M设备的CSE访问M2M平台、M2M网关以及M2M设备均可存储各种资源。
一个AE实体想要实现对M2M平台或M2M网关上的资源的访问,AE实体需要在M2M平台的CSE或M2M网关的CSE进行注册。然而,现有的AE同一时间段只能注册到一个实体的CSE上,比如只能注到M2M平台的CSE或一个M2M网关的CSE。然后,AE通过注册的CSE(Registrar CSE,简称R-CSE)上访问存储在CSE上的资源。其中,被访问的资源所在的CSE为H-CSE(Hosting CSE业务持有CSE)。通常,R-CSE作为AE实体与M2M系统中的其它实体进行通信的接入点。
比如,M2M平台上的CSE作为一个AE的R-CSE,而AE需要访问存储M2M网关的资源,则M2M网关上的CSE作为H-CSE。因此,AE需要通过R-CSE访问存储在H-CSE所在的M2M网关的资源。然而,由于AE访问M2M网关的资源需要经过M2M平台的CSE,则造成资源请求链过长,网络资源开销较大。因此,另一种方法是AE通过M2M平台的CSE去注册,并重新注册到M2M网关的CSE。也就是说,AE为了直接访问M2M网关存储的资源,需要将AE的接入点从M2M平台切换到M2M网关。
现有技术提供的一种切换接入点的方法中,当设备在M2M网关所在的局域网内时,M2M设备上的AE向AE所属的R-CSE(如M2M平台的CSE)发送去注册请求消息。其中,去注册请求消息用于AE请求R-CSE删除AE在M2M平台上注册的资源。M2M平台接收到去注册请求消息之后,将AE在M2M平台上注册的资源删除,并向AE返回成功响应消息。然后,AE向M2M网关注册请求消息,该注册请求消息用于请求在M2M网关创建AE对应的资源,从而已完成AE在M2M网关 上的注册。
然而,当AE从M2M平台去注册再到M2M网关重新注册的过程中,由于M2M平台删除了AE在M2M平台上保存的注册资源,其中包括AE的地址信息,因此,M2M无法与AE进行通信,从而导致其它需要通过M2M平台与AE进行通信的通信任务中断,进而导致用户的体验较低。
发明内容
本发明提供一种切换接入点的方法、装置以及相关设备,可以避免其它需要通过M2M平台与AE进行的通信业务中断,进而可以提升用户体验。
在具体实现中,M2M系统中包括:M2M平台、AE以及M2M网关,其中,M2M平台为AE进行接入点切换前的接入点,M2M网关为AE进行接入点切换后的接入点,M2M平台为M2M网关的接入点,AE发送接入点切换请求至M2M平台,以使得M2M平台请求M2M网关创建AE的连接资源,当M2M网关成功创建AE的连接资源后,M2M平台在AE的注册资源下记录M2M网关的连接地址,并将接入点切换响应消息发送至AE,以实现接入点切换。通过本发明,使得切换接入点应用于M2M系统,以避免其它需要通过M2M平台与AE进行的通信业务中断,进而可以提升用户体验。
第一方面,本发明提供了一种切换接入点的方法,应用于机器通信M2M系统,所述M2M系统包括M2M平台,应用实体AE和M2M网关,所述M2M平台为所述AE进行接入点切换前的接入点,所述M2M网关为所述AE进行接入点切换后的接入点,所述M2M平台为所述M2M网关的接入点;具体的,所述M2M平台接收所述AE发送的接入点切换请求消息,所述接入点切换请求消息中携带所述M2M网关的公共服务实体CSE标识;然后向所述M2M网关发送资源创建请求消息,所述资源创建请求消息用于请求所述M2M网关创建所述AE的连接资源,所述资源创建请求消息中携带所述AE标识;之后所述M2M平台接收所述M2M网关发送的资源创建成功的响应消息,所述资源创建的成功响应消息中携带所述M2M网关分配给AE的接入信息;然后向所述AE发送接入点切换的响应消息,所述接入点切换的响应消息携带所述M2M网关分配给AE的接入信息。通过本发明实施例,M2M平台通过请求M2M网关创建AE的连接资源,以使得M2M网关在接收到不属于自身的业务请求时,根据创建的AE的连接资源,将业务请求发送至M2M平台,从而可以避免其它需要通过M2M平台与AE进行的通信业务中断,进而可以提升用户体验。
在一个可能的设计中,在所述M2M平台接收所述AE发送的接入点切换请求消息之后,所述M2M平台将所述AE的接入点信息包括的信息替换为所述M2M网关的CSE标识,以及在所述AE的接入点信息中记录所述M2M网关分配给AE的接入信息;或者,所述M2M平台在所述AE的接入点信息列表的特定位置增加一条接入点信息,以及在所述特定位置增加的接入点信息中记录所述M2M网关分配给所述AE的接入信息。从而M2M平台能够确定AE接入的M2M网关,进而可以通过AE接入的M2M网关发送订阅业务。
在另一个可能的设计中,所述M2M平台还可以接收所述AE发送的查询局域网络标识对应的M2M网关的CSE标识的请求消息,所述查询局域网络标识对应的M2M网关的CSE标识的请求信息中携带局域网络标识;然后所述M2M平台根据所述局域网络标识,获取所述局域网络标识对应的所述M2M网关的CSE标识,之后所述M2M平台将携带所述M2M网关的CSE标识的成功消息,发送至所述AE;最后所述M2M平台在包含所述M2M网关的CSE标识的接入点信息中记录所述M2M网关所属网络的局域网络标识。从而可以使得AE根据所述局域网的局域网络标识确定需要接入的M2M网关。
在一个可能的设计中,在所述M2M平台接收所述AE发送的接入点切换请求消息之前,所述M2M平台接收所述AE发送的与所述AE邻近的M2M网关的获取请求,所述与所述AE邻近的M2M网关的获取请求中携带所述AE的位置信息以及所述AE支持的局域网络类型对应的局域网络覆盖的区域信息;然后所述M2M平台根据所述AE的位置信息以及所述AE支持的局域网络类型对应的局域网络覆盖的区域信息向所述AE返回与所述AE邻近的M2M网关的CSE标识;之后所述M2M平台接收所述AE发送的查询所属的局域网络类型与所述AE支持的局域网络类型相同的M2M网关的CSE标识的请求,所述查询所属的局域网络类型与所述AE支持的局域网络类型相同的M2M网关的CSE标识的请求中携带所述与所述AE邻近的M2M网关的CSE标识、以及所述AE支持的局域网络类型;之后所述M2M平台返回在所述邻近的M2M网关中所属的局域网络类型与所述AE支持的局域网络类型相同的M2M网关的CSE标识;最后所述M2M平台在所述包含所述M2M网关的CSE标识的接入点信息中记录所述M2M网关的局域网络类型。从而可以使得AE根据AE的位置信息以及AE支持的局域网络类型对应的局域网络覆盖的区域信息,得到AE需要接入的M2M网关的CSE标识,进而可以使得AE接入M2M网关。
在一个可能的设计中,所述M2M平台向所述AE发送接入点切换的响应消息之后,所述M2M平台接收到所述AE发送的接入点更新请求消息,所述接入点更新请求消息中携带AE标识;所述接入点更新请求消息中携带所述AE的IP地址和端口号信息,然后所述M2M平台根据所述接入点更新请求消息,将所述包含所述M2M网关的CSE标识的接入点信息替换为包含所述IP地址和所述端口号信息的接入点信息;或所述接入点更新请求消息携带所述接入点信息列表中记录的CSE标识以及删除该特定位置记录的CSE标识的指示信息,所述M2M平台根据所述接入点更新请求消息中的CSE标识将所述接入点信息列表中包含所述接入点更新请求消息中的CSE标识的接入点信息删除。从而可以使得当AE离开之前接入的M2M网关的覆盖范围后,M2M平台能够使得AE接入至AE对应的其它接入点,以使得AE能够访问其它接入点中存储的资源。
在一个可能的设计中,所述M2M平台接收到所述AE发送的接入点更新请求消息之后,所述M2M平台还可以发送资源删除请求消息至所述被删除或替换的接入点信息中的M2M网关的CSE标识对应的M2M网关,所述资源删除请求消息携带所述AE的连接资源的标识;然后所述M2M平台接收所述被删除或替换的接入点信息中的M2M网关的CSE标识对应的M2M网关发送的成功响应消息,所述成功响应消息用于表征所述AE的连接资源已被删除;最后所述M2M平台将所述成功响应消息发送至所述AE。通过M2M网关将之前接入的AE对应的连接资源删除,以避免已离开M2M网关覆盖范围的AE对应的连接资源占用M2M网关的存储空间,从而可以节省M2M网关的存储空间。
在一个可能的设计中,所述M2M平台还可以接收到其它设备发送给所述AE的通知消息,所述通知消息中携带AE标识;然后所述M2M平台根据所述AE标识确定AE的注册资源中包含的AE的接入点信息为所述M2M网关的CSE标识;最后所述M2M平台将所述通知信息转发至所述M2M网关。从而使得AE完成了接入点切换后并且当前的接入点为CSE标识对应的M2M网关期间,AE订阅的资源发生变化后,AE订阅的资源所在设备向AE发送通知消息,能够告知AE上述资源上发生变化后的最新状态。
第二方面,本发明实施例提供了一种计算机存储介质,用于储存为上述M2M平台所用的计算机软件指令,其包含用于执行上述方面所设计的程序。
第三方面,本发明实施例提供了M2M平台,该M2M平台具有实现上述方法实际中M2M平台行为的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的单元。
第四方面,M2M平台的结构中包括存储器,收发器和处理器。其中存储器用于存储计算机可执行程序代码,并与和收发器耦合。所述程序代码包括指令,当所述处理器执行所述指令时,所述指令使所述装置执行上述方法中所涉及的信息或者指令。
第五方面,本发明提供了一种切换接入点的方法,应用于M2M系统,所述M2M系统包括M2M平台、应用实体AE和M2M网关,所述M2M平台为所述AE进行接入点变更前的接入点,所述M2M网关为所述AE进行接入点变更后的接入点,所述M2M平台为所述M2M网关的接入点;具体的,
所述AE发送接入点切换请求消息至所述M2M平台,其中,所述接入点切换请求消息中携带所述M2M网关的CSE标识,然后接收到所述M2M平台发送的接入点切换的响应消息,其中所述接入点切换的响应消息携带所述M2M网关分配给AE的接入信息,最后根据所述M2M网关分配给所述AE的接入信息,向所述M2M网关发送资源访问请求。通过本发明实施例,AE能够不更改注册点直接通过M2M网关接入,从而可以避免其它需要通过M2M平台与AE进行的通信业务中断,进而可以提升用户体验。。
在一个可能的设计中,所述AE的接入信息进一步包含所述M2M网关所属网络的局域网络标识;所述AE发送接入点切换请求消息至所述M2M平台之前,所述AE接入所述M2M网关所属的局域网,并确定所述局域网的局域网络标识;然后所述AE发送查询局域网络标识对应的M2M网关的公共服务实体CSE标识的请求消息至所述M2M平台,所述查询局域网络标识对应的M2M网关的CSE标识的请求消息中携带所述局域网络标识;最后所述AE接收到所述M2M平台发送的携带所述M2M网关的CSE标识的成功消息。从而AE可以根据所属局域网的局域网络标识,得到需要接入的M2M网关的CSE标识。
在一个可能的设计中,所述AE发送接入点切换请求消息至所述M2M平台之前,所述AE向所述M2M平台发送的与所述AE邻近的M2M网关的获取请求,所述与所述AE邻近的M2M网关的获取请求中携带所述AE的位置信息以及所述AE支持的局域网络类型对应的局域网络覆盖的区域信息;然后所述AE接收所述M2M平台返回的与所述AE邻近的M2M网关的公共服务实体CSE标识;之后所述AE向所述M2M平台发送查询所属的局域网络类型与所述AE支持的局域网络类型相同的M2M网关的CSE标识的请求,所述查询所属的局域网络类型与所述AE支持的局域网络类型相同的M2M网关的CSE标识的请求中携带所述与所述AE邻近的M2M网关的CSE标识、以及所述AE支持的局域网络类型;最后所述AE接收所述M2M平台返回的所述邻近的M2M网关中所属的局域网络类型与所述AE支持的局域网络类型相同的M2M网关的CSE标识。从而当AE仅获取到所属局域网网络类型时,AE仍可以获取到M2M平台发送的AE对应的M2M网关的CSE标识,以使得AE可以根据M2M网关的CSE标识接入M2M网关。
第六方面,本发明实施例提供了一种计算机存储介质,用于储存为上述AE所用的计算机软件指令,其包含用于执行上述方面所设计的程序。
第七方面,本发明实施例提供了AE,该AE具有实现上述方法实际中AE行为的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的单元。
第八方面,AE的装置结构中包括存储器,收发器和处理器。其中存储器用于存储计算机可执行程序代码,并与和收发器耦合。所述程序代码包括指令,当所述处理器执行所述指令时,所述指令使所述装置执行上述方法中所涉及的信息或者指令。
第九方面,本发明提供了一种切换接入点的方法,应用于M2M系统,所述M2M系统包括M2M平台、应用实体AE和M2M网关,所述M2M平台为所述AE进行接入点切换前的接入点,所述M2M网关为所述AE进行接入点变更后的接入点,所述M2M平台为所述M2M网关的接入点;具体的,
所述M2M网关接收所述M2M平台发送的资源创建请求消息,所述资源创建请求消息用于请求所述M2M网关创建所述AE的连接资源,所述资源创建请求消息中携带所述AE标识;然后根据所述资源创建请求消息,创建所述AE的连接资源,所述AE的连接资源包含AE的接入信息;之后所述M2M网关向所述M2M平台发送资源创建成功的响应消息,所述资源创建成功的响应消息携带所述M2M网关分配给AE的接入信息;然后所述M2M网关接收所述AE根据所述M2M网关分配给AE的接入信息发送的资源访问请求消息;最后M2M网关对所述资源访问请求消息进行处理。从而当M2M网关接收到业务请求,并且不是自身业务的业务请求时,能够将根据创建的AE的连接资源,将业务请求发送至M2M平台,以避免业务中断,进而可以提升用户体验。
在一个可能的设计中,所述M2M网关根据所述资源创建请求消息,创建所述AE的连接资源之后,所述M2M网关根据M2M网关所属网络的局域网络标识分配所述AE在所述局域网络的连接地址。从而可以使得AE能够获取局域网络的连接地址,进而AE可以根据局域网络的连接地址,接入该局域网络的连接地址对应的M2M网关。
在一个可能的设计中,所述AE的接入信息进一步包含所述M2M网关所属网络的局域网络标识,所述M2M网关根据所述资源创建请求消息,创建所述AE的连接资源之后,所述M2M网关还可以根据所属网络的局域网络标识分配所述AE在所述局域网络的连接密钥。从而可以提高AE接入该M2M网关的安全性。
在一个可能的设计中,所述AE的接入信息包括所述M2M网关所属局域网的网络类型;所述M2M网关还可以获取所述AE的位置信息,并根据M2M网关所属网络的局域网的网络类型以及所述AE的位置信息,分配所述AE在所述局域网络的连接地址。从而可以M2M能够根据AE的位置信息以及所属局域网络的网络类型,分配AE所在局域网络的连接地址,以使得AE根据所属局域网络的连接地址,接入该连接地址对应的M2M网关。
在一个可能的设计中,所述AE的接入信息包括所述M2M网关所属局域网的网络类型;所述M2M网关还可以获取所述AE的位置信息,并根据M2M网关所属网络的局域网的网络类型以及所述AE的位置信息,分配所述AE在所述局域网络的连接密钥。从而M2M网关可以根据AE的位置信息以及所属网络的局域网的网络类型,分配AE在局域网络中的连接密钥,进而可以提高AE接入局域网络的安全性。
第十方面,本发明实施例提供了一种计算机存储介质,用于储存为上述M2M网关所用的计算机软件指令,其包含用于执行上述方面所设计的程序。
第十一方面,本发明实施例提供了M2M网关,该M2M网关具有实现上述方法实际中M2M网关行为的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的单元。
第十二方面,M2M网关的装置结构中包括存储器,收发器和处理器。其中存储器用于存储计算机可执行程序代码,并与和收发器耦合。所述程序代码包括指令,当所述处理器执行所述指令时,所述指令使所述装置执行上述方法中所涉及的信息或者指令。
由上述方案可知,当AE需要将接入点由M2M平台切换至M2M网关时,AE发送接入点切换请求至M2M平台,以使得M2M平台请求M2M网关创建AE的连接资源,当M2M网关成功创建AE的连接资源后,M2M平台在AE的注册资源下记录M2M网关的连接地址,并将接入点切换响应消息发送至AE,以实现接入点由M2M平台切换至M2M网关,能够避免其它需要通过M2M平台与AE进行的通信业务中断,进而可以提升用户体验。
附图说明
为了更清楚地说明本发明或现有技术中的技术方案,下面将对本发明或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1A为本发明实施例中M2M系统架构示意图;
图1B为本发明实施例中AE切换连接M2M系统结构示意图;
图2为本发明实施例提供的切换接入点的装置的逻辑结构示意图;
图3A为本发明实施例中M2M平台存储的AE的注册资源的结构示意图;
图3B为本发明实施例中M2M网关存储的AE的连接资源的结构示意图;
图3C为本发明实施例中M2M平台存储的Base资源的结构示意图;
图4为本发明实施例中一种切换接入点的方法流程图;
图5为本发明实施例中AE进入M2M网关所属的局域网络后,获取M2M网关的CSE标识的方法流程图;
图6为本发明实施例中AE进入M2M网关所属的局域网络覆盖的位置后,并获取M2M网关的标识的方法流程图;
图7为本发明实施例中M2M平台的装置结构示意图;
图8为本发明实施例中AE的装置结构示意图;
图9为本发明实施例中M2M网关的装置结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。
本发明中实施例中,图1B为本发明实施例提供的系统结构示意图,包括AE10、注册服务器20和资源服务器30,其中,注册服务器20为AE注册的服务器。注册服务器包括M2M系统架构中的公共服务器CSE,本实施例将注册服务器的CSE叫做R-CSE(英文全称:Registrar Common Service Entity),即AE注册的CSE。资源服务器30为存储AE访问的资源的服务器。资源服务器包括M2M系统架构中的公共服务器CSE,本实施例将资源服务器的CSE叫做H-CSE(英文全称:Hosting Common Service Entity),即为资源或属性的持有实体。需要说明 的是,本发明实施例中的AE10为以为图1A所示架构中ADN,ASN,MN和IN包括的实体、注册服务器20则可以为图1A所示架构中的ASN、MN、IN。资源服务器可以为图1A所示架构中的ASN、MN、IN。在本发明实施例中,一个AE10最多只能注册到一个注册服务器20。注册服务器20可以是运营商平台,可以是家庭网关。本发明实施例中,假设AE的注册服务器为IN(即M2M平台),因此R-CSE为M2M平台的CSE。资源服务器30提供具体特定的服务,可以是天气服务器,也可以是车队管理服务器。AE10可以通过注册服务器20向资源服务器30获取资源或资源的属性。本发明实施例中,假设资源服务器为MN,后续描述中的H-CSE均为M2M网关的CSE。
图2显示了本发明实施例提供的作为切换接入点的装置的结构示意图,用于在图1B所示的M2M系统中接收接入点切换请求消息,以及触发切换接入点的流程。装置200可包含一个或多个端口208,与收发器(transceiver)206相耦合。收发器206可以是发射器,接收器或其组合,收发器用于与其它实体交互。处理器202耦合到收发器206,用于处理数据包。处理器202可包含一个或多个多核处理器和/或存储器204。处理器202可以是一个通用处理器,专用集成电路(application specific integrated circuit,ASIC),或数字信号处理器(DSP)。
存储器204可为非瞬时性的存储介质,与处理器202相耦合,用于保存不同类型的数据,如语义描述资源,被语义描述资描述的资源等。存储器204可包含只读存储器(read only memory,ROM),随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是磁盘存储器。存储器204可用于保存实现语义验证相关方法的指令。可以理解,通过编程或装载可执行指令到设备200的处理器202,缓存和长期存储中的至少一个。
作为一个例子中,设备200作为AE的注册服务器(如M2M平台),包括存储器204,处理器202和收发器206。存储器204,用于存储计算机可执行程序代码,以及AE的注册资源和连接资源,存储作为资源服务器的CSE(即H-CSE)的注册资源;处理器202与所述存储器204和所述收发器206耦合;
其中所述程序代码包括指令,当所述处理器执行所述指令时,所述指令使所述网元执行图4、图5、图6中M2M平台执行的相关步骤。
作为另一个例子,图2所示的装置可以为M2M网关,可实现根据本发明的实施例执行一个或多个指令以进行接入点切换。这些指令可存储在存储器204中,当所述处理器执行所述指令时,所述指令使所述装置执行图4、图5、图6中M2M网关执行的相关步骤。
作为另一个例子中,设备200作为M2M设备,包括存储器604,处理器202和收发器206。存储器204,用于存储计算机可执行程序代码;处理器202与所述存储器204和所述收发器206耦合;
其中所述程序代码包括指令,当所述处理器执行所述指令时,所述指令使所述网元执行图4、图5、图6中AE执行的相关步骤。
此外,图2还可以作为本发明实施例提供的另一切换接入点的装置(比如AE待访问的资源服务器)的示意图。作为AE待访问的资源服务器(即本发明实施例中H-CSE所在的服务器),图2的设备包括存储器204,处理器202和收发器206。存储器204,用于存储计算机可执行程序代码,以及AE待访问的资源;处理器202与所述存储器204和所述收发器206耦合;
其中所述程序代码包括指令,当所述处理器执行所述指令时,所述指令使所述网元执 行图4、图5、图6中AE待访问的资源服务器(比如M2M网关)执行的相关步骤。
图3A为M2M平台存储的AE的注册资源的示意图。具体的,AE的注册资源是AE注册到M2M平台并记录在M2M平台中的资源(具体的,可以为M2M平台的CSE记录在M2M平台的CSE中的资源)。AE的注册资源包括AE标识(AE-ID)和接入点信息(pointOfAccess)。其中,AE-ID属性的具体内容为AE-ID,接入点信息属性的具体内容包括AE的接入点的CSE标识,和AE的接入信息(accessInfo)。
具体的,AE的注册资源可以包括一个接入点信息(pointOfAccess),也可以以列表的形式包括多个pointOfAccess。当AE的注册资源为多个pointOfAccess组成的一个列表,只有列表中特定位置的接入点信息为AE正在使用的接入点的信息。具体的,特定位置可以是列表中的第一位,也可以是最后一位,还可以是M2M平台确定的任一位置。
AE的接入信息包括AE接入的局域网络信息(比如,AE接入的局域网络标识(areaNwkId)和/或局域网络类型(areaNwkType)),和作为AE的接入点(本实施例中如M2M网关)分配给AE的接入信息(如接入密钥(accesskey)和/或局域网络地址(areaNwkAddress)。其中,接入密钥(accessKey)和局域网络地址(areaNwkAddress)为AE的接入点(如M2M网关)分配。
图3B为作为AE接入点的M2M网关存储的AE的连接资源的示意图。
其中,AE的连接资源是AE在进行接入点切换的过程中,例如接入点从M2M平台切换到M2M网关的过程中,M2M网关创建并存储的资源(如<AEAttach>)。AE的连接资源包括AE-ID,AE的接入信息(accessInfo),和AE的注册资源的ID(ID of<AE>)。其中,AE的接入信息(accessInfo)包括的内容与图3A中存储在M2M平台的CSE中的(accessInfo)的内容相同。本发明实施例在此不再详述。
其中,接入点为AE使用M2M系统提供的服务时,首先发送消息到达对象。AE发送消息到M2M系统中的任何一个设备,都需要首先把消息先发送给自己的接入点,再由接入点转发给M2M系统中的其他设备。接入点中保存了AE的接入信息,当接入点收到需要转发到AE的消息时,可以通过AE的接入信息寻址到AE,并进行消息的转发。接入点通常是一个CSE所在的设备,比如M2M网关或M2M平台。
图3C为M2M平台存储的CseBase资源的结构示意图。该CseBase资源包括各M2M网关的相关信息。具体的,CseBase资源下包括各M2M网关的资源(如MN-CSE-1,MN-CSE-1),与各M2M网关对应的节点的资源(如与MN-CSE-1对应的Node-1,与MN-CSE-2对应的Node-2),以及在各节点资源下的与该节点对应的M2M网关所属的局域网络的资源(Node-1下的areNwkInfo1和areNwkInfo2,Node-2下的areNwkInfo3)。
进一步的,各M2M网关的资源(如MN-CSE-1)以M2M网关的CSE标识作为M2M网关资源的标识。M2M网关的资源还包括该M2M网关的位置信息(如Location of MN-CSE-1)。与M2M网关对应的节点的资源(如Node-1)包括该M2M网关的CSE标识(如MN-CSE-1)作为属性,并且,还进一步包括该M2M网关所属的局域网络的信息的资源(如areNwkInfo1和areNwkInfo2)作为节点资源的子资源。如图3C所示,与MN-CSE-1资源对应的Node-1资源包含两个局域网络的信息的资源,表明MN-CSE-1所在的网关归属于两个不同的局域网络。而该M2M网关所属的局域网络的信息的资源(如areaNwkInfo1)包括M2M网关所属的局域网络信息,比如局域网络的类型(AreaNwkType)和局域网网络的标识(AreaNwkId)。
本发明实施例提供一种切换接入点的方法,能够避免其它需要通过M2M平台与AE进行的通信业务中断,进而可以提升用户体验。在本发明实施例中,作为一个例子,M2M平台为所述AE进行接入点切换前的接入点,所述M2M网关为所述AE进行接入点切换后的接入点,所述M2M平台作为所述M2M网关的接入点。如图4所示,切换接入点的方法包括:
401-402、AE和M2M网关分别在M2M平台上完成注册,M2M平台存储AE的注册资源以及M2M网关的注册资源。
具体的,AE的注册资源包括:AE-ID以及AE的接入信息(在进行接入点切换之前,AE的接入信息包括的CSE标识为M2M平台的CSE标识)。M2M网关的注册资源包括:M2M网关的CSE标识以及M2M网关的接入信息(即为M2M平台的CSE标识)。
403、AE发送接入点切换请求消息至M2M平台。
具体的,AE向M2M平台(即AE的注册服务器)发送接入点切换请求消息。其中,接入点切换请求消息中携带M2M网关的CSE标识(即切换后的接入点的CSE的标识)。接入点切换请求消息可用于更新AE在M2M平台上的注册资源下的接入点信息。
对于本发明实施例,M2M平台为AE的注册服务器。AE的接入点信息包括接入点切换后作为AE的接入点的CSE的标识(即M2M网关的CSE标识)。
可选的,AE发送的接入点切换请求消息中还可以包括AE在局域网的接入信息。具体的,接入信息包括AE接入局域网络的局域网络标识,或AE支持的局域网络类型。AE的接入信息表示AE通过特定的局域网络中的M2M网关进行接入。如果AE发送的接入点切换请求消息中不包括AE在局域网络中的接入信息,表示AE可以接收M2M网关分配的接入信息,比如M2M网关分配的局域网络的密钥、局域网络的网络地址。
值得说明的是,在图3A所示的接入信息中,areaNwkType和areaNwkId为二选一的可选项。也就是说,如果接入信息中包括参数areaNwkType,就不会包括参数areaNwkId。如果接入信息中包括参数areaNwkId,就不会包括参数areaNwkType。
作为一个例子,若AE的接入信息包括参数areaNwkID,则该接入点切换请求消息可以为:
携带接入信息的情况:
Put/m2m.provider.com/CSEBase/AE HTTP/1.1
<?xml version="1.0"encoding="UTF-8"?>
<AE>
<pointOfAccess>
<CSE-ID>//www.m2mprovider.com/C3219</CSE-ID>
<accessInfo>
<areaNwkId>12idq96s</areaNwkId>
</accessInfo>
</pointOfAccess>
</AE>
其中,/m2m.provider.com/CSEBase/AE为AE在M2M平台上的AE注册资源的标识;Put 表明需要对M2M平台上的AE注册资源进行更新。<pointOfAccess>表明请求消息中携带的是AE的接入点信息。
具体的:属性<CSE-ID>的取值://www.m2mprovider.com/C3219</CSE-ID>,表明为切换后的接入点的CSE标识对应的M2M网关。本例子中CSE标识为//www.m2mprovider.com/c3219;属性<areaNwkId>为切换后的接入点所属网络的局域网络标识,本例子中切换后接入点所属的网络的局域网络标识为12idq96s。
作为另一个例子,接入点切换请求消息中还可以不包括属性<areaNwkId>,而包括属性<areaNwkType>。本例子中局域网络类型为无线保真(英文全称:WIreless-FIdelity,英文缩写:wifi)。
404、M2M平台向M2M网关发送资源创建请求消息。
其中,该资源创建请求消息用于请求M2M网关创建AE的连接资源(AEAttach),该资源创建请求消息中包含AE-ID。
可选的,如果步骤403中的接入点切换请求中还可以包括AE的接入信息(比如AE切换接入点后的局域网络标识或局域网络类型),则M2M平台在执行步骤404之后或之前,还需要在AE的接入点信息中存储AE接入信息。具体的,可以在AE的接入点信息(pointOfAccess)中的接入信息(AccessInfo)中存储AE切换接入点后的局域网络标识或局域网络类型。
对于本发明实施例,由于AE需要使用M2M网关作为M2M业务的接入点,因此M2M平台需要向M2M网关发送资源创建请求消息,以使得M2M网关创建AE的连接资源,以使得M2M网关能够根据AE的连接资源将AE对应的M2M业务发送至AE。如步骤403中所示,该AE的接入信息可以包括:M2M网关所属网络的局域网络标识或者M2M网关所属网络的网络类型。在本发明实施例中,如果该AE的接入信息为M2M网关所属网络的局域网络标识,则M2M平台连接资源创建请求消息为:
POST/m2m.provider.com/transfer HTTP/1.1
<?xml version="1.0"encoding="UTF-8"?>
<AEAttach>
<AE-ID>Sa3e3f3ab</AE-ID>
<accessInfo>
<areaNwkId>12idq96s</areaNwkId>
</accessInfo>
<IDofAE>//www.m2mprovider.com/CSEBase/AE</IDofAE>
</AEAttach>
具体的,POST表明需要在M2M网关上创建AE的连接资源,参数/m2m.provider.com/transfer为M2M网关中资源的标识,Sa3e3f3ab为AE-ID。参数12idq96s为AE接入的M2M所属网络的局域网络标识。
作为另一个例子,如果该AE的接入信息为M2M网关所属网络的局域网络类型,则该连接资源创建请求消息为:
POST/m2m.provider.com/transfer HTTP/1.1
Host:exampleMN.com
<?xml version="1.0"encoding="UTF-8"?>
<AEAttach>
<AE-ID>Sa3e3f3ab</AE-ID>
<accessInfo>
<areaNwkType>Wifi</areaNwkType>
</accessInfo>
</AEAttach>
具体的:POST表明需要在M2M网关上创建AE的连接资源,参数/m2m.provider.com/transfer为M2M网关中资源的标识。Sa3e3f3ab为AE-ID。参数Wifi为AE支持的网络的局域网络类型。
405、M2M网关向M2M平台发送资源创建成功的响应消息。
具体的,M2M网关接收到M2M平台发送的连接资源创建请求后,创建连接资源,M2M网关返回连接资源创建成功的响应消息给M2M平台。
具体的,M2M网关创建的AEAttach资源包括的内容请参考图3B。在本发明实施例中不再详述。
作为一个例子,若资源创建请求消息中包含接入信息(accessInfo),M2M网关根据accessInfo中的areaNwkId或者areaNwkType为AE分配接入信息(参考图3A或图3B中的accessInfo中的信息,即分配AE在局域网中的局域网络地址(areaNwkAddress)和AE在局域网中的接入密钥(accessKey)。M2M网关为AE分配的接入信息可以让AE成功连接到M2M网关所属的局域网络;若连接资源创建请求消息中不包含accessInfo,M2M网关根据自身支持的局域网络类型,例如wifi,为AE分配接入信息。
对于本发明实施例,若AE的接入信息中包括M2M网关所属网络的局域网络标识,M2M网关根据M2M网关所属的局域网络的局域网络标识分配AE在局域网络的局域网络地址。
对于本发明实施例,若AE的接入信息包括M2M网关所属网络的局域网络类型,根据M2M网关所属的网络的局域网络类型,为AE分配M2M网关的局域网络地址。
对于本发明实施例,M2M网关创建AEAttach资源之后,返回资源创建成功的响应消息给M2M平台。创建成功的响应消息中包含创建成功的AEAttach资源中M2M网关为AE分配的接入信息(如,即局域网络地址(areaNwkAddress)和接入密钥(accessKey))。在本发明实施例中,M2M平台将上述M2M网关为AE分配的接入信息,记录至如图3A所示的AccessInfo中。
作为一个例子,M2M网关发送给M2M平台的资源创建成功的响应消息可以为:
HTTP/1.1 201Created
Content-Type:application/xml
Date:Tue,24Nov 2015 02:55:59GMT
<?xml version="1.0"encoding="UTF-8"?>
<AEAttach>
<AE-ID>//www.m2mprovider.com/Sa3e3f3ab</AE-ID>
<accessInfo>
<areaNwkId>12idq96s</areaNwkId>
<areaNwkAddress>10.136.79.43</areaNwkAddress>
<areaNwkKey>helloworld</areaNwkKey>
</accessInfo>
</AEAttach>
具体的,资源创建成功的响应消息中包括AE的连接信息(accessInfo),accessInfo包括:areaNwkId、areaNwkAddress、areaNwkKey。其中,areaNwkId为12idq96s,areaNwkAddress为10.136.79.43,areaNwkKey为helloworld。
406、M2M平台向AE发送接入点切换的响应消息。
其中,接入点切换的响应消息中携带M2M网关分配给AE的接入信息。
其中,接入点切换的响应消息中包括切换后的AE的接入点信息(pointOfAccess)。
具体的,M2M平台接收到M2M网关返回的资源创建成功的响应消息后和向AE发送接入点切换的响应消息之前或之后,还将资源创建成功的响应消息中包含的M2M网关分配给AE的接入信息(局域网络地址(areaNwkAddress)和接入密钥(accessKey))记录到M2M平台中存储的AE的接入点信息(pointOfAccess)中的accessInfo中。
具体的,M2M平台在AE的接入点信息的accessInfo中记录M2M网关分配给AE的接入信息;或者,M2M平台将在AE的接入点信息列表的特定位置增加一条信息,以及在该特定位置增加的接入点信息中记录M2M网关分配给AE的接入信息。
对于本发明实施例,AE向M2M平台发送接入点切换请求消息,M2M平台在AE的接入点信息(pointOfAccess)下记录M2M网关对应的CSE标识以及AE的接入信息,并将携带M2M网关分配的接入信息(如局域网络地址和接入密钥)成功响应消息发送至AE,以使得AE可以根据成功响应消息中的信息连接至该M2M网关。
对于本发明实施例,若该资源创建请求消息中的AE的接入信息包括:M2M网关所属局域网的局域网络标识,则接入点切换的响应消息可以为:
HTTP/1.1 200 OK
Content-Type:application/xml
Date:Tue,24Nov 2015 02:56:01GMT
<?xml version="1.0"encoding="UTF-8"?>
<AE>
<accessInfo>
<CSE-ID>//www.m2mprovider.com/C3219</CSE-ID>
<areaNwkId>12idq96s</areaNwkId>
<areaNwkAddress>10.136.79.43</areaNwkAddress>
<areaNwkKey>helloworld</areaNwkKey>…
</accessInfo>
</AE>
其中,若该资源创建请求消息中的AE的接入信息包括:M2M网关所属网络的局域网络类型,则资源创建成功的响应消息包括M2M网关所属网络的局域网络类型。
其中,包含M2M网关所属网络的局域网络类型的接入点切换的响应消息与包含M2M网关所属网络的局域网络标识的接入点切换的响应消息相似,上述程序中<areaNwkId>12idq96s</areaNwkId>需替换为<areaNwkType>Wifi</areaNwkType>。
至此,AE的接入点切换的流程就可以完成了。AE可以直接通过M2M网关作为AE的接入点使用图1B所示架构中提供的业务了。比如,AE可以通过M2M网关对M2M系统中的资源进行访问,以及接收其它的业务实体通过作为AE的接入点的M2M平台向AE发送通知消息或对AE所在的设备的资源进行访问。
请继续参考图4所示,AE在接入点切换完成后,通过M2M网关作为AE的接入点对M2M网关发起资源访问的流程包括如下步骤:
407、AE根据M2M网关分配给AE的接入信息,向M2M网关发送资源访问请求消息。
其中,M2M网关分配给AE的接入信息可以为M2M网关对应的连接地址,并且该资源访问请求消息包含待访问的资源的标识。
作为一个例子,资源访问请求消息可以为:
GET/m2m.provider.com/CSE221/container/contentinstance HTTP/1.1
X-M2M-Origin:Sa3e3f3ab
其中,GET表明获取操作,HTTP/1.1表明该获取操作遵循HTTP 1.1版本,m2m.provider.com/CSE221/container/contentinstance为待访问的资源的标识(如资源的URI)。
408、M2M网关接收AE根据M2M网关分配给AE的接入信息发送的资源访问请求消息后,对资源访问请求消息进行处理。
对于本发明实施例,M2M网关根据资源访问请求消息中待访问资源的标识对资源访问请求消息进行处理。
具体的,M2M网关可以根据待访问资源的标识(m2m.provider.com/CSE221/container/contentinstance)中可以看出待访问资源所在的CSE的标识(即CSE221)确定该待访问资源的标识并没有存储在作为AE的接入点的M2M网关。因此,M2M网关将所述资源访问请求消息发送到存储待访问资源的实体,即CSE的标识为CSE221的CSE所在的实体。
具体的,M2M网关收到资源访问请求消息后,将资源访问请求消息转发到存储待访问资源的实体属于现有技术,在本发明实施例中不再详述。
作为另一种可选方式,如果M2M网关根据资源访问请求消息中待访问资源的标识确定待访问资源存储在所述M2M网关,则直接根据所述资源访问请求消息进行相应的处理。
其中,作为AE的接入点的M2M网关确定待访问的资源是否存储在作为AE的接入点的M2M网关具体为:作为AE的接入点的M2M网关确定资源访问请求中待访问资源所在的CSE的标识是否与作为接入点的M2M网关的CSE标识相同。如果待访问资源所在的CSE的标识与作为接入点的M2M网关的CSE标识相同,则待访问的资源存储在作为AE的接入点的M2M网关,否则待访问的资源没有存储在作为AE的接入点的M2M网关。
作为另一种可选方式,如果M2M网关根据资源访问请求消息中待访问资源的标识确定待访问资源存储在所述M2M网关,则直接根据所述资源访问请求消息进行相应的处理。
进一步的,M2M网关根据所述资源访问请求消息进行相应的处理属于现有技术,本发明实施例不再详述。其中,在AE完成了接入点切换后,以M2M网关的CSE作为AE的接入点期间,AE之前订阅过的业务(比如天气预报业务等)还会继续给AE发送通知消息。步骤409-410为AE完成了接入点切换后以CSE标识对应的M2M网关作为AE的接入点期间,M2M系统架构中的其它业务实体向AE发送通知消息的过程,具体包括:
409、M2M平台接收到其它设备发送给AE的通知消息。
其中,通知消息中携带AE-ID。其中,上述其它设备为AE订阅资源所在的设备。
携带比如,AE订阅的资源(比如天气预报资源)发生变化之后,AE订阅的资源所在的设备(天气预报服务器)向AE发送通知消息,以告知上述资源变化后的最新状态。
其中,由于AE在订阅资源时,在AE订阅的资源所在的设备记录的AE的注册CSE为M2M平台的CSE,因此,AE订阅的资源所在的设备仍向M2M平台发送通知消息。
作为一个例子,该通知消息可以为:
POST/m2m.provider.com/Sa3e3f3ab HTTP/1.1
<?xml version="1.0"encoding="UTF-8"?>
<contentInstance>/contentInstance资源部分开始
<content>cloudy</content>/content的具体内容
<contentInstance>/contentInstance资源部分结束
具体的,POST表示创建操作,<content>cloudy</content>表明AE订阅的资源的内容为多云。
410、M2M平台收到发送给AE的通知消息后,根据通知消息中的AE-ID确定AE的注册资源中包含的AE的接入点信息为M2M网关的CSE标识。
具体的,当M2M平台根据AE的注册资源包含的AE的接入点信息为M2M网关的CSE标识之后,M2M平台将该通知消息发送至该M2M网关,以使得M2M网关根据通知消息中的AE-ID将接收到的通知消息发送至AE。
进一步地,M2M平台可以接收到其它实体发送给AE的通知消息,并能够根据通知消息中的AE-ID确定AE的接入点信息为M2M网关的CSE标识,并将该通知消息发送至M2M网关,以使得M2M网关将通知消息发送至AE,从而可以使得AE能够获取之前订阅业务的最新状态,进而可以在AE切换接入点之后,其它实体仍可以与AE进行通信。
值得说明的是,步骤407-408,和步骤409-410没有时间顺序。有可能先执行步骤407-408,后执行步骤409-410。还有可能先执行步骤409-410,后执行步骤407-408。本发明实施例在此不做限定。
进一步的,在AE离开M2M网关所属的局域网后,AE的接入点信息将发生变化,则AE请求M2M平台更新AE的接入点。步骤411-415为M2M网关所属的局域网后,M2M平台更新AE的接入点的过程,具体包括:
411、M2M平台接收到AE发送的接入点更新请求消息。
对于本发明实施例,当AE的接入点信息发生变化时,AE向M2M平台发送接入点更新请求消息。作为一个例子,该接入点更新请求消息可以为:
PUT/m2m.provider.com/CSEBase/AE HTTP/1.1
<?xml version="1.0"encoding="UTF-8"?>
<AE>
<pointOfAccess>
http://218.22.134.1:8080
</pointOfAccess>
</AE>
具体的,PUT表明需要对M2M平台上AE的接入点信息进行更新,http://218.22.134.1为AE对应的IP地址,8080为端口号,</pointOfAccess>表明接入点更新请求消息中携带的是AE的接入点信息。
具体的,步骤411中的接入点更新请求消息还可以进一步携带AE对应的IP地址以及端口号,即上述接入点更新请求消息为第一接入点更新请求消息,用于M2M平台将所述包含所述AE的接入点信息替换为包含所述IP地址和所述端口号信息的接入点信息。
进一步的,步骤411中的接入点更新请求消息还可以为携带接入点信息列表中的特定位置记录的CSE标识以及删除该特定位置记录的CSE标识的指示信息,即上述接入点更新请求消息为第二接入点更新请求消息。该接入点更新请求用于将所述接入点信息列表中包含所述所述接入点更新请求消息中的CSE标识的接入点信息删除。其中,第一接入点更新请求消息用于M2M平台将AE注册资源包含的接入点信息替换为AE对应的IP地址以及端口号,例如,AE对应的IP地址以及端口号可以为http://ADN-server:8080,第二接入点更新请求消息用于删除AE注册资源包含的接入点信息列表中的特定位置记录的CSE标识。专利中第一、第二 表示两种不同的接入点更新请求消息,并不代表接入点更新请求消息的顺序。
其中,该特定位置可以为接入点信息列表中的第一项,也可以为最后一项,或者为接入点信息列表中的任意一项。
412、M2M平台根据接入点更新请求消息进行相应的处理。
具体的,M2M平台替换<AE>资源中的接入点信息(所述AE的IP地址和端口号信息)为更新请求消息中的接入点信息。
具体的,M2M平台将替换<AE>资源中的接入点信息为AE的IP地址以及端口号。
或者,M2M平台删除<AE>资源中包含的接入点信息列表中的特定位置的接入点信息,即删除的接入点信息包含接入点更新请求消息中包含的CSE标识。
进一步地,M2M平台通过接收AE发送的接入点更新请求消息后,替换<AE>资源中的接入点信息为AE的IP地址以及端口号,或者删除<AE>资源中接入点信息列表中特定位置的接入点信息,从而当AE离开当前接入点的覆盖区域时,M2M平台能够使得AE接入至AE对应的其它接入点,以使得AE能够访问其它接入点中存储的资源。
413、M2M平台发送资源删除请求消息至被删除或替换的接入点信息中的M2M网关的CSE标识对应的M2M网关。
其中,被删除或替换的接入点信息中的M2M网关的CSE标识对应的M2M网关为接入点更新之前的作为AE接入点的M2M网关。
具体的,资源删除请求消息携带AE的连接资源的标识,用于请求M2M网关删除AE的连接资源。
对于本发明实施例,M2M网关根据AE的连接资源的标识删除M2M网关创建的AE的连接资源。
414、M2M平台接收接入点更新请求消息中的CSE标识对应的M2M网关发送的成功响应消息。
其中,该成功响应消息为M2M网关发送的删除AE的连接资源的成功响应消息。并且成功响应消息用于表征所述所述AE的连接资源已被删除。
415、M2M平台将成功响应消息发送至AE。
其中,该成功响应消息为更新接入点请求成功的响应消息。进一步的,该成功响应消息中还可以携带AE的连接资源。
进一步地,M2M平台通过发送资源删除请求消息至接入点更新之前作为AE接入点的M2M网关,以使得将M2M网关中的AE的连接资源删除,从而可以节省M2M网关的存储空间。
图5为本发明实施例提供的AE发现M2M网关并获取M2M网关的标识的方法流程图,包括如下步骤:
501、AE接入M2M网关所属的局域网,并确定局域网的局域网络标识。
例如,局域网的网络标识可以为:areaNwkId=12idq96s。
值得说明的是,AE接入M2M网关所属的局域网以及确定局域网的局域网络标识属于现有技术,本发明实施例不再详述。
502、AE确定接入的局域网的局域网络标识后,发送查询局域网络标识对应的M2M网关的公共服务实体CSE标识的请求消息至M2M平台。
其中,查询局域网络标识对应的M2M网关的CSE标识的请求消息中携带AE接入的局域网 的局域网络标识,查询局域网络标识对应的M2M网关的CSE标识的请求消息用于获取M2M网关的CES标识。
例如,AE接入的局域网的局域网络标识可以为12idq96s。
其中,查询局域网络标识对应的M2M网关的CSE标识的请求信息用于请求M2M平台查询该局域网络标识对应的M2M网关的CSE标识。
作为一个例子,查询局域网络标识对应的M2M网关的CSE标识的请求信息如下:
GET/m2m.provider.com/networkChoose?areaNwkId=12idq96sHTTP/1.1
即获取局域网络标识为12idq96s的局域网络中M2M网关的CSE标识。
503、M2M平台接收到查询局域网络标识对应的M2M网关的CSE标识的请求信息后,根据查询局域网络标识对应的M2M网关的CSE标识的请求信息中的局域网络标识,获取局域网络标识对应M2M网关的CSE标识。
具体的,M2M平台保存了局域网络标识和局域网络中M2M网关的CSE标识的对应关系。作为一个例子,如图3C所示,CseBase资源包括各M2M网关对应的节点资源(node资源),在各节点资源(node资源)下的与该节点对应的M2M网关所属的局域网络的资源。其中areaNwkInfo资源中包含areaNwkType和areaNwkId属性保存的分别是局域网类型和局域网标识。
因此,M2M平台可以根据查询局域网络标识对应的M2M网关的CSE标识的请求消息中的局域网络标识查询与局域网络标识对应的M2M网关的CSE标识。具体的查询方法为现有技术,本发明实施例在此不再详述。
504、M2M平台将携带M2M网关的CSE标识的成功消息发送至AE。
进一步地,AE通过确定所属网络的局域网络标识,并将携带该局域网络标识的查询请求发送M2M平台,以使得M2M平台能够根据局域网络标识确定AE需要接入的M2M网关的CSE标识,从而可以确定切换后的接入点为该CSE标识对应的M2M网关,进而AE可以接入该M2M网关,并访问该M2M网关中存储的资源。
图6为本发明实施例提供的另一种AE发现M2M网关并获取M2M网关的标识的方法流程图,在该方法中,AE移动到M2M网关所属的局域网的覆盖范围,并根据AE支持的局域网络的网络类型,确定接入的M2M网关的CSE标识的流程包括如下步骤:
601、AE向M2M平台发送的与AE邻近的M2M网关的获取请求。
其中,与AE邻近的M2M网关的获取请求携带AE的位置信息以及以AE支持的局域网络类型对应的局域网络覆盖的区域信息。
具体的,与AE邻近的M2M网关为以AE的位置为中心,且AE所支持的局域网络类型对应的局域网络覆盖的区域信息为半径的区域范围内的M2M网关。
具体的,AE首先确定自己所在的位置和AE支持的局域网络类型。然后根据AE支持的局域网络类型确定局域网络覆盖的区域信息。比如蓝牙覆盖的区域半径为30m,wifi覆盖的区域半径为100m。
对于本发明实施例,当AE移动到M2M网关所属的局域网的覆盖范围,无法获取局域网的局域网络标识时,AE可以向M2M平台发送与AE邻近的M2M网关的获取请求。
其中,与AE邻近的M2M网关的获取请求中携带AE的位置信息,以获取与AE邻近的M2M网关的CSE标识。
例如:AE支持的局域网络类型可以为:areaNwkType=Wifi。
作为一个例子,AE可以根据自身的GPS模块或者位置服务器获得自身的位置信息,如AE对应的经纬度坐标(X,Y)。
602、M2M平台接收AE发送的与AE邻近的M2M网关的获取请求后,根据AE的位置信息和局域网络覆盖的区域信息向AE返回与AE邻近的M2M网关的CSE标识。
具体的,M2M平台根据AE的位置信息,确定AE邻近的M2M网关。
作为一个例子,AE向M2M平台发送AE邻近的M2M网关的获取请求,以获取与AE邻近的网关,该AE邻近的M2M网关的获取请求可以为:
GET/m2m.provider.com/CSEBase?N=30&w=125&r=30HTTP/1.1
其中,/m2m.provider.com/CSEBase为M2M平台上存储位置资源的ID.N=30&w=125为AE的位置信息,具体为北纬30和西径125,r=30区域范围为以AE为中心,半径30M的范围。
603、AE接收到M2M平台返回的与AE邻近的M2M网关的CSE标识后,AE确定在与AE邻近的M2M网关中支持AE所支持的局域网络类型的M2M网关。
具体的,AE确定与AE邻近的M2M网关中支持AE所支持的局域网络类型的M2M网关的过程可以具体包括:步骤6031-6034:
6031、AE向M2M平台发送CSE标识所指示的CSE所属的M2M网关所属的局域网络的网络类型的查询请求,以查询CSE标识所指示的CSE所属的M2M网关所属的局域网络的网络类型。
作为一个例子,CSE标识所指示的CSE所属的M2M网关所属的局域网络的网络类型的查询请求可以为:
GET http://m2m.serviceprovider.com/CSEbase?resourceType=Node&hostedCSEID=CSE_ID
HTTP/1.1
其中,参数http://m2m.serviceprovider.com/CSEbase表明AE需查询的资源的标识。参数resourceType=Node表示查询的是CSEbase资源下的Node类型的资源。hostedCSEID=CSE_ID表明查询的Node资源中包含的CSE_ID与该CSE_ID相同。
值得说明的是:Node是已经定义的有关节点的资源。一个node表示一个M2M节点,可以是平台节点(IN),网关节点(MN)。一个Node包含一个CSE。例如IN中包含IN-CSE,MN中包含MN-CSE。Node资源中有hostedCSEID属性,其值是该节点对应的CSE_ID。每一Node资源都对应于至少AreaNwkInfo资源,每一个AreaNwkInfo资源都包含属性AreaNwkType,其值是局域网络类型和属性AreaNwkId。如果一个node属于多个局域网络,则与该Node对应的Node资源则对应多个AreaNwkInfo资源。
6032、M2M平台向AE返回CSE标识所指示的CSE所属的M2M网关所属的局域网络的网络类型的查询请求中携带的CSE标识对应的Node资源的标识。
6033、AE向M2M平台发送M2M网关所属的网络类型确认请求。
其中,该M2M网关所属的网络类型确认请求中携带M2M网关的CSE标识所属的Node资源的标识,以及AE支持的局域网络类型。
作为一个例子,M2M网关所属的网络类型确认请求可以为:GET http://m2m.serviceprovider.com/CSEBase/node?areaNwkType=wifi
其中,参数http://m2m.serviceprovider.com/CSEBase/node为M2M网关的CSE标识所属 的Node资源的标识。参数areaNwkType=wifi为AE支持的局域网络类型。该网络类型确认请求用于确定M2M网关所属的局域网络类型是否与AE支持的局域网络类型相同。
6034、M2M平台向AE返回AE所述M2M网关所属的局域网络的类型是否与AE支持的局域网络类型相同的响应。
具体的,如果M2M网关所属的任一局域网络的网络类型与AE支持的局域网络类型相同,则返回OK的成功响应。否则,返回不支持的响应。
进一步,如果AE在步骤6034中,AE收到的是不支持的响应,AE还需针对在与AE邻近的M2M网关中的其它网关确认其所属的局域网络类型。重复执行步骤6031到6034的步骤,直到确认一个M2M网关所属的局域网络的局域类型与AE支持的局域网络类型相同的M2M网关,即AE最终确定M2M网关对应的CSE标识。
对于本发明实施例,步骤6031-6034为步骤603的细化的一种可选方式。
作为另一种可选方式,AE确定与AE邻近的M2M网关中支持AE所支持的局域网络类型的M2M网关的过程还可以为:6031’、AE向M2M平台发送查询所属的局域网络类型与所述AE支持的局域网络类型相同的M2M网关的CSE标识的请求到平台,查询在与AE邻近的M2M网关中支持AE所支持的局域网络类型的M2M网关的CES标识。其中,所述查询请求中携带与AE邻近的M2M网关的CSE标识。
作为一个例子,所述查询查询所属的局域网络类型与所述AE支持的局域网络类型相同的M2M网关的CSE标识的请求可以为:
GET http://m2m.serviceprovider.com/CSEBase?areaNwkType=wifi&hostedCSEID=CSE_ID1#CSE_ID2#CSE_ID3
其中,参数//m2m.serviceprovider.com/CSEBase为图3C中记录各CSE标识对应的局域网络类型和局域网络标识的CSEBase资源的标识,指示M2M平台到该资资源进行查询。参数areaNwkType=wifi表明查询局域网络类型为wifi,参数hostedCSEID=CSE ID 1#CSE_ID2#CSE_ID3表明与AE邻近的M2M网关的CSE标识。
6032’、M2M平台接收到AE发送的查询支持AE所支持的局域网络类型的M2M网关的CSE标识的请求后,在//m2m.serviceprovider.com/CSEBase指示的资源中确定请求中携带的CSE ID 1#CSE_ID2#CSE_ID3分别支持的局域网络类型,并向AE返回所属的局域网络类型与AE支持的局域网络类型相同的M2M网关的CSE标识。
进一步的,M2M平台在接收到步骤6031或6031’的请求后,在AE的注册资源中的AE的接入信息中记录M2M网关的局域网络类型。
其中,6031,-6032,作为步骤603的细化的另一种可选方式。
进一步地,AE通过将AE的位置信息以及AE支持的局域网络类型发送至M2M平台,M2M平台能够根据上述信息,确定AE所支持的局域网络类型对应的M2M网关,从而可以确定AE能够接入的M2M网关,进而AE可以接入该M2M网关,并访问该M2M网关中存储的资源。
如图7所示,本发明实施例还提供了一种M2M平台的装置结构示意图。该装置700包括:接收单元701、发送单元702,获取单元703,记录单元704,和确定单元705。
其中,接收单元701,用于接收AE发送的接入点切换请求消息,接入点切换请求消息中携带M2M网关的公共服务实体CSE标识;
发送单元702,用于向M2M网关发送资源创建请求消息,资源创建请求消息用于请求M2M网关创建AE的连接资源,资源创建请求消息中携带AE-ID;
接收单元701,进一步用于接收M2M网关发送的资源创建成功的响应消息,资源创建成功的响应消息中携带M2M网关分配给AE的接入信息;
发送单元702,进一步用于向AE发送接入点切换的响应消息,接入点切换的响应消息携带M2M网关分配给AE的接入信息。
进一步地,接收单元701用于执行图4至图6中M2M平台执行的步骤409、411、414、602等步骤;发送单元702用于执行图4至图6中M2M平台执行的步骤404、406、407、413、415、504。本发明实施例在此不再详述。
进一步地,记录单元704,用于将所述AE的接入点信息包括的信息替换为所述M2M网关的CSE标识以及在所述AE的接入点信息中记录所述M2M网关分配给AE的接入信息,或用于在所述AE的接入点信息列表的特定位置增加一条接入点信息,以及在所述特定位置增加的接入点信息中记录所述M2M网关分配给所述AE的接入信息。进一步的,还用于在AE的接入点信息中记录M2M网关分配给AE的接入信息;
以及用于将在AE的接入点信息列表的特定位置增加一条接入点信息;并且在特定位置增加的接入点信息中记录M2M网关分配给AE的接入信息;
获取单元703用于执行如图5中的步骤503;返回单元707,用于执行如图6中的步骤602、6032、6034;
此外,记录单元708,还用于根据接入点更新请求消息中的CSE标识将接入点信息列表中包含接入点更新请求消息中的CSE标识的接入点信息删除;
确定单元705,用于根据AE-ID确定AE的注册资源中包含的AE的接入点信息为M2M网关的CSE标识;进一步地,确定单元709用于执行图4、图6中的步骤410、6032’。
此外,图7中的装置可以用于执行上述方法流程中M2M平台执行的任一流程,存储图3A中AE的注册资源以及图3C中Base资源。
如图8所示,本发明实施例还提供了一种AE的装置结构示意图,该装置800包括:发送单元801、接收单元802。
其中,发送单元801,用于发送接入点切换请求消息至M2M平台,接入点切换请求消息中携带M2M网关的CSE标识;
接收单元802,用于接收到M2M平台发送的接入点切换的响应消息,接入点切换的响应消息携带M2M网关分配给AE的接入信息;
发送单元801,进一步用于根据M2M网关分配给AE的接入信息,向M2M网关发送资源访问请求。
进一步地,发送单元801用于执行如图4至图6中的步骤403、407、502、601、6031、6033、6031,等步骤;进一步地,如图8所示,该装置800还包括:接入单元803、确定单元804。
其中,接入单元803,用于接入M2M网关所属的局域网;
确定单元804,用于并确定局域网的局域网络标识;
进一步地,接入单元803用于执行如图5中的步骤501,确定单元804用于执行如图执行如图6中的步骤603。
此外,图8中的装置可以用于执行上述方法流程中AE执行的任一流程。
如图9所示,本发明实施例还提供了一种M2M网关的装置结构示意图,该装置900包括:接收单元901、创建单元902、发送单元903、处理单元904。
其中,接收单元901,用于接收M2M平台发送的资源创建请求消息,资源创建请求消息用于请求M2M网关创建AE的连接资源,资源创建请求消息中携带AE-ID;
创建单元902,用于根据资源创建请求消息,创建AE的连接资源,AE的连接资源包含AE的接入信息;
发送单元903,用于向M2M平台发送资源创建成功的响应消息,资源创建成功的响应消息携带M2M网关分配给AE的接入信息;
接收单元901,进一步用于接收AE根据M2M网关分配给AE的接入信息发送的资源访问请求消息;
处理单元904,用于对资源访问请求消息进行处理。
进一步地,发送单元903用于执行如图4所示的步骤405,处理单元904用于执行如图4所示的步骤408。进一步地,如图9所示,该装置900还包括:分配单元905、获取单元906;其中,分配单元905,用于根据M2M网关所属网络的局域网络标识分配AE在局域网络的连接地址,或进一步用于根据M2M网关所属网络的局域网的网络类型以及AE的位置信息,分配AE在局域网络的连接地址;获取单元906,用于获取AE的位置信息。
进一步地,图9中的装置可以用于执行上述方法流程中M2M网关执行的任一流程,存储3B中AE的连接资源。
进一步的,图7、图8以及图9中的装置是以功能单元的形式来呈现。这里的“单元”可以指特定应用集成电路(application-specific integrated circuit,ASIC),电路,执行一个或多个软件或固件程序的处理器和存储器,集成逻辑电路,和/或其他可以提供上述功能的器件。在一个简单的实施例中,本领域的技术人员可以想到图7、图8以及图9中的装置可以采用图2所示的形式。各单元可以通过图2的处理器和存储器来实现。
本发明实施例还提供了一种计算机存储介质,用于储存为上述图7所示的M2M平台或图8所示的AE或图9所示的M2M网关所用的计算机软件指令,其包含用于执行上述方法实施例所设计的程序。通过执行存储的程序,AE可以实现对接入点的切换。
本发明实施例还提供了另一种计算机存储介质,用于储存为上述M2M平台、AE、以及M2M网关所用的计算机软件指令,其包含用于执行上述方法实施例所设计的程序。通过执行存储的程序,AE可以实现对接入点的切换。本领域普通技术人员应该了解本申请的所有或部分标的物可在结合硬件和/或固件的软件中实施。例如,本文描述的标的物可在一个或多个处理器执行的软件中实施。在一项示例性实施方式中,本文描述的标的物可使用存储有计算机可执行指令的非瞬时计算机可读介质实施,当计算机处理器执行该计算机可执行指令时,该指令控制计算机执行步骤。适于实施本文描述的标的物的示例计算机可读介质包括非瞬时计算机可读介质,例如磁盘存储器设备、芯片存储器设备、可编程逻辑设备和专用集成电路。另外,实施本文描述的标的物的计算机可读介质可位于单个设备或计算平台上,或可在多个设备或计算平台上分发。
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而 这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims (29)

  1. 一种切换接入点的方法,应用于机器通信M2M系统,所述M2M系统包括M2M平台,应用实体AE和M2M网关,其特征在于,所述M2M平台为所述AE进行接入点切换前的接入点,所述M2M网关为所述AE进行接入点切换后的接入点,所述M2M平台为所述M2M网关的接入点;所述方法包括:
    所述M2M平台接收所述AE发送的接入点切换请求消息,所述接入点切换请求消息中携带所述M2M网关的公共服务实体CSE标识;
    所述M2M平台向所述M2M网关发送资源创建请求消息,所述资源创建请求消息用于请求所述M2M网关创建所述AE的连接资源,所述资源创建请求消息中携带AE标识;
    所述M2M平台接收所述M2M网关发送的资源创建成功的响应消息,所述资源创建成功的响应消息中携带所述M2M网关分配给AE的接入信息;
    所述M2M平台向所述AE发送接入点切换的响应消息,所述接入点切换的响应消息中携带所述M2M网关分配给AE的接入信息。
  2. 根据权利要求1所述的切换接入点的方法,其特征在于,所述M2M平台接收所述AE发送的接入点切换请求消息的步骤之后,该方法还包括:
    所述M2M平台将AE的接入点信息包括的信息替换为所述M2M网关的CSE标识,以及在所述AE的接入点信息中记录所述M2M网关分配给AE的接入信息;或者,
    所述M2M平台在所述AE的接入点信息列表的特定位置增加一条接入点信息,以及在所述特定位置增加的接入点信息中记录所述M2M网关分配给所述AE的接入信息。
  3. 根据权利要求1-2任一所述的切换接入点的方法,其特征在于,所述M2M平台接收所述AE发送的接入点切换请求消息的步骤之前,还包括:
    所述M2M平台接收所述AE发送的查询局域网络标识对应的M2M网关的CSE标识的请求消息,所述查询局域网络标识对应的M2M网关的CSE标识的请求信息中携带局域网络标识;
    所述M2M平台根据所述局域网络标识,获取所述局域网络标识对应的所述M2M网关的CSE标识;
    所述M2M平台将携带所述M2M网关的CSE标识的成功消息,发送至所述AE;
    所述M2M平台在包含所述M2M网关的CSE标识的接入点信息中记录所述M2M网关所属网络的局域网络标识。
  4. 根据权利要求1-2任一所述的切换接入点的方法,其特征在于,所述M2M平台接收所述AE发送的接入点切换请求消息的步骤之前,还包括:
    所述M2M平台接收所述AE发送的与所述AE邻近的M2M网关的获取请求,所述与所述AE邻近的M2M网关的获取请求中携带所述AE的位置信息以及所述AE支持的局域网络类型对应的局域网络覆盖的区域信息;
    所述M2M平台根据所述AE的位置信息以及所述AE支持的局域网络类型对应的局域网络覆盖的区域信息向所述AE返回与所述AE邻近的M2M网关的CSE标识;
    所述M2M平台接收所述AE发送的查询所属的局域网络类型与所述AE支持的局域网络类型相同的M2M网关的CSE标识的请求,所述查询所属的局域网络类型与所述AE支持的局域网络类型相同的M2M网关的CSE标识的请求中携带所述与所述AE邻近的M2M网关的CSE标识、以及所述 AE支持的局域网络类型;
    所述M2M平台返回在所述邻近的M2M网关中所属的局域网络类型与所述AE支持的局域网络类型相同的M2M网关的CSE标识;
    所述M2M平台在所述包含所述M2M网关的CSE标识的接入点信息中记录所述M2M网关的局域网络类型。
  5. 根据权利要求2-4任一所述的切换接入点的方法,其特征在于,所述M2M平台向所述AE发送接入点切换的响应消息之后,所述方法还包括:
    所述M2M平台接收到所述AE发送的接入点更新请求消息,所述接入点更新请求消息中携带AE标识;
    所述接入点更新请求消息中携带所述AE的IP地址和端口号信息,所述M2M平台根据所述接入点更新请求消息,将所述AE的接入点信息替换为包含所述IP地址和所述端口号信息的接入点信息;或
    所述接入点更新请求消息携带所述接入点信息列表中记录的CSE标识以及删除该特定位置记录的CSE标识的指示信息,所述M2M平台根据所述接入点更新请求消息中的CSE标识将所述接入点信息列表中包含所述接入点更新请求消息中的CSE标识的接入点信息删除。
  6. 根据权利要求5所述的切换接入点的方法,其特征在于,所述M2M平台接收到所述AE发送的接入点更新请求消息的步骤之后,还包括:
    所述M2M平台发送资源删除请求消息至所述被删除或替换的接入点信息中的M2M网关的CSE标识对应的M2M网关,所述资源删除请求消息携带所述AE的连接资源的标识;
    所述M2M平台接收所述被删除或替换的接入点信息中的M2M网关的CSE标识对应M2M网关发送的成功响应消息,所述成功响应消息用于表征所述所述AE的连接资源已被删除;
    所述M2M平台将所述成功响应消息发送至所述AE。
  7. 根据权利要求1-4任一所述的切换接入点的方法,其特征在于,所述方法还包括:
    所述M2M平台接收到其它设备发送给所述AE的通知消息,所述通知消息中携带AE标识;
    所述M2M平台根据所述AE标识确定AE的注册资源中包含的AE的接入点信息为所述M2M网关的CSE标识;
    所述M2M平台将所述通知信息转发至所述M2M网关。
  8. 一种切换接入点的方法,应用于机器通信M2M系统,所述M2M系统包括M2M平台、应用实体AE和M2M网关,其特征在于,所述M2M平台为所述AE进行接入点变更前的接入点,所述M2M网关为所述AE进行接入点变更后的接入点,所述M2M平台为所述M2M网关的接入点;所述方法包括:
    所述AE发送接入点切换请求消息至所述M2M平台,所述接入点切换请求消息中携带所述M2M网关的CSE标识;
    所述AE接收到所述M2M平台发送的接入点切换的响应消息,所述接入点切换的响应消息携带所述M2M网关分配给AE的接入信息;
    所述AE根据所述M2M网关分配给所述AE的接入信息,向所述M2M网关发送资源访问请求。
  9. 根据权利要求8所述的切换接入点的方法,其特征在于,所述AE发送接入点切换请求消息至所述M2M平台的步骤之前,还包括:
    所述AE接入所述M2M网关所属的局域网,并确定所述局域网的局域网络标识;
    所述AE发送查询局域网络标识对应的M2M网关的公共服务实体CSE标识的请求消息至所述 M2M平台,所述查询局域网络标识对应的M2M网关的CSE标识的请求消息中携带所述局域网络标识;
    所述AE接收到所述M2M平台发送的携带所述M2M网关的CSE标识的成功消息。
  10. 根据权利要求8所述的切换接入点的方法,其特征在于,所述AE发送接入点切换请求消息至所述M2M平台的步骤之前,还包括:
    所述AE向所述M2M平台发送的与所述AE邻近的M2M网关的获取请求,所述与所述AE邻近的M2M网关的获取请求中携带所述AE的位置信息以及所述AE支持的局域网络类型对应的局域网络覆盖的区域信息;
    所述AE接收所述M2M平台返回的与所述AE邻近的M2M网关的公共服务实体CSE标识;
    所述AE向所述M2M平台发送查询所属的局域网络类型与所述AE支持的局域网络类型相同的M2M网关的CSE标识的请求,所述查询所属的局域网络类型与所述AE支持的局域网络类型相同的M2M网关的CSE标识的请求中携带所述与所述AE邻近的M2M网关的CSE标识、以及所述AE支持的局域网络类型;
    所述AE接收所述M2M平台返回的所述邻近的M2M网关中所属的局域网络类型与所述AE支持的局域网络类型相同的M2M网关的CSE标识。
  11. 一种切换接入点的方法,应用于机器通信M2M系统,所述M2M系统包括M2M平台、应用实体AE和M2M网关,其特征在于,所述M2M平台为所述AE进行接入点切换前的接入点,所述M2M网关为所述AE进行接入点切换后的接入点,所述M2M平台为所述M2M网关的接入点;所述方法包括:
    所述M2M网关接收所述M2M平台发送的资源创建请求消息,所述资源创建请求消息用于请求所述M2M网关创建所述AE的连接资源,所述资源创建请求消息中携带所述AE标识;
    所述M2M网关根据所述资源创建请求消息,创建所述AE的连接资源,所述AE的连接资源包含AE的接入信息;
    所述M2M网关向所述M2M平台发送资源创建成功的响应消息,所述资源创建成功的响应消息携带所述M2M网关分配给AE的接入信息;
    所述M2M网关接收所述AE根据所述M2M网关分配给AE的接入信息发送的资源访问请求消息;
    所述M2M网关对所述资源访问请求消息进行处理。
  12. 根据权利要求11所述的切换接入点的方法,其特征在于,所述AE的接入信息进一步包含所述M2M网关所属网络的局域网络标识,所述M2M网关根据所述资源创建请求消息,创建所述AE的连接资源的步骤之后,还包括:
    所述M2M网关根据M2M网关所属网络的局域网络标识分配所述AE在所述局域网络的连接地址。
  13. 根据权利要求11所述的切换接入点的方法,其特征在于,所述AE的接入信息包括所述M2M网关所属局域网的网络类型;
    所述M2M网关根据所述资源创建请求消息,创建所述AE的连接资源的步骤之后,还包括:
    所述M2M网关获取所述AE的位置信息,并根据M2M网关所属网络的局域网的网络类型以及所述AE的位置信息,分配所述AE在所述局域网络的连接地址。
  14. 一种机器通信M2M平台,其特征在于,所述M2M平台为AE进行接入点切换前的接入点以及所述M2M平台作为所述M2M网关的接入点,所述M2M网关为所述AE进行接入点切换后的接入点所述M2M平台包括:
    接收单元,用于接收所述AE发送的接入点切换请求消息,所述接入点切换请求消息中携带所述M2M网关的公共服务实体CSE标识;
    发送单元,用于向所述M2M网关发送资源创建请求消息,所述资源创建请求消息用于请求所述M2M网关创建所述AE的连接资源,所述资源创建请求消息中携带AE标识;
    所述接收单元,进一步用于接收所述M2M网关发送的资源创建成功的响应消息,所述资源创建成功的响应消息中携带所述M2M网关分配给AE的接入信息;
    所述发送单元,进一步用于向所述AE发送接入点切换的响应消息,所述接入点切换的响应消息携带所述M2M网关分配给AE的接入信息。
  15. 根据权利要求14所述的M2M平台,其特征在于,所述M2M平台进一步包括记录单元;
    所述记录单元,用于将所述AE的接入点信息包括的信息替换为所述M2M网关的CSE标识以及在所述AE的接入点信息中记录所述M2M网关分配给AE的接入信息;或
    所述记录单元,用于在所述AE的接入点信息列表的特定位置增加一条接入点信息,以及在所述特定位置增加的接入点信息中记录所述M2M网关分配给所述AE的接入信息。
  16. 根据权利要求14-15任一所述的M2M平台,其特征在于,所述M2M平台进一步包括获取单元,
    所述接收单元,进一步用于接收所述AE发送的查询局域网络标识对应的M2M网关的CSE标识的请求消息,所述查询局域网络标识对应的M2M网关的CSE标识的请求信息中携带局域网络标识;
    所述获取单元用于根据所述局域网络标识,获取所述局域网络标识对应的所述M2M网关的CSE标识;
    所述发送单元,进一步用于将携带所述M2M网关的CSE标识的成功消息,发送至所述AE;
    所述记录单元,进一步用于在包含所述M2M网关的CSE标识的接入点信息中记录所述M2M网关所属网络的局域网络标识。
  17. 根据权利要求14-15任一所述的M2M平台,其特征在于,
    所述接收单元,进一步用于接收所述AE发送的与所述AE邻近的M2M网关的获取请求,所述与所述AE邻近的M2M网关的获取请求中携带所述AE的位置信息以及所述AE支持的局域网络类型对应的局域网络覆盖的区域信息;
    所述发送单元,进一步用于根据所述AE的位置信息以及所述AE支持的局域网络类型对应的局域网络覆盖的区域信息向所述AE返回与所述AE邻近的M2M网关的CSE标识;
    所述接收单元,进一步用于接收所述AE发送的查询所属的局域网络类型与所述AE支持的局域网络类型相同的M2M网关的CSE标识的请求,所述查询所属的局域网络类型与所述AE支持的局域网络类型相同的M2M网关的CSE标识的请求中携带所述与所述AE邻近的M2M网关的CSE标识、以及所述AE支持的局域网络类型;
    所述发送单元进一步用于返回在所述邻近的M2M网关中所属的局域网络类型与所述AE支持的局域网络类型相同的M2M网关的CSE标识;
    所述记录单元,进一步用于在所述包含所述M2M网关的CSE标识的接入点信息中记录所述M2M网关的局域网络类型。
  18. 根据权利要求15-17任一所述的M2M平台,其特征在于,
    所述接收单元,进一步用于接收到所述AE发送的接入点更新请求消息,所述接入点更新请求消息中携带AE注册资源的标识;
    所述接入点更新请求消息中携带所述AE的IP地址和端口号信息;所述记录单元,进一步用于根据所述接入点更新请求消息,将所述包含所述M2M网关的CSE标识的接入点信息替换为包含所述IP地址和所述端口号信息的接入点信息;或
    所述接入点更新请求消息携带所述接入点信息列表中记录的CSE标识以及删除该特定位置记录的CSE标识的指示信息,所述记录单元进一步用于根据所述接入点更新请求消息中的CSE标识将所述接入点信息列表中包含所述接入点更新请求消息中的CSE标识的接入点信息删除。
  19. 根据权利要求18所述的M2M平台,其特征在于,
    所述发送单元,进一步用于发送资源删除请求消息至所述被删除或替换的接入点信息中的M2M网关的的CSE标识对应的M2M网关,所述资源删除请求消息携带所述AE的连接资源的标识;
    所述接收单元,进一步用于接收所述被删除或替换的接入点信息中的M2M网关的CSE标识对应M2M网关发送的成功响应消息,所述成功响应消息用于表征所述所述AE的连接资源已被删除;
    所述发送单元,进一步用于将所述成功响应消息发送至所述AE。
  20. 根据权利要求14-17任一所述的M2M平台,其特征在于,所述M2M平台进一步包括确定单元,
    所述接收单元,进一步用于接收到其它设备发送给所述AE的通知消息,所述通知消息中携带AE标识;
    所述确定单元,用于根据所述AE标识确定AE的注册资源中包含的AE的接入点信息为所述M2M网关的CSE标识;
    所述发送单元,进一步用于将所述通知信息转发至所述M2M网关。
  21. 一种机器通信M2M设备,其特征在于,所述M2M设备包括应用实体AE,所述AE进行接入点变更前的接入点为M2M平台以及进行接入点变更后的接入点为M2M网关,所述M2M平台还作为所述M2M网关的接入点所述M2M设备包括:
    发送单元,用于发送接入点切换请求消息至所述M2M平台,所述接入点切换请求消息中携带所述M2M网关的CSE标识;
    接收单元,用于接收到所述M2M平台发送的接入点切换的响应消息,所述接入点切换的响应消息携带所述M2M网关分配给AE的接入信息;
    所述发送单元,进一步用于根据所述M2M网关分配给所述AE的接入信息,向所述M2M网关发送资源访问请求。
  22. 根据权利要求21所述的M2M设备,其特征在于,所述M2M设备还包括:接入单元、确定单元;
    所述接入单元,用于接入所述M2M网关所属的局域网;
    所述确定单元,用于确定所述局域网的局域网络标识;
    所述发送单元,进一步用于发送查询局域网络标识对应的M2M网关的公共服务实体CSE标识的请求消息至所述M2M平台,所述查询局域网络标识对应的M2M网关的CSE标识的请求消息中携带所述局域网络标识;
    所述接收单元,进一步用于接收到所述M2M平台发送的携带所述M2M网关的CSE标识的成功消息。
  23. 根据权利要求21所述的M2M设备,其特征在于,
    所述发送单元,进一步用于向所述M2M平台发送的与所述AE邻近的M2M网关的获取请求,所述与所述AE邻近的M2M网关的获取请求中携带所述AE的位置信息以及所述AE支持的局域网络类型对应的局域网络覆盖的区域信息;
    所述接收单元,进一步用于接收所述M2M平台返回的与所述AE邻近的M2M网关的公共服务实体CSE标识;
    所述发送单元,进一步用于向所述M2M平台发送查询所属的局域网络类型与所述AE支持的局域网络类型相同的M2M网关的CSE标识的请求,所述查询所属的局域网络类型与所述AE支持的局域网络类型相同的M2M网关的CSE标识的请求中携带所述与所述AE邻近的M2M网关的CSE标识、以及所述AE支持的局域网络类型;
    所述接收单元,进一步用于接收所述M2M平台返回的所述邻近的M2M网关中所属的局域网络类型与所述AE支持的局域网络类型相同的M2M网关的CSE标识。
  24. 一种机器通信M2M网关,其特征在于,所述M2M网关为应用实体AE进行接入点切换后的接入点,所述M2M网关的接入点为M2M平台,所述M2M平台为所述AE进入接点点切换前的接入点;所述M2M网关包括:
    接收单元,用于接收所述M2M平台发送的资源创建请求消息,所述资源创建请求消息用于请求所述M2M网关创建所述AE的连接资源,所述资源创建请求消息中携带所述AE标识;
    创建单元,用于根据所述资源创建请求消息,创建所述AE的连接资源,所述AE的连接资源包含AE的接入信息;
    发送单元,用于向所述M2M平台发送资源创建成功的响应消息,所述资源创建成功的响应消息携带所述M2M网关分配给AE的接入信息;
    所述接收单元,进一步用于接收所述AE根据所述M2M网关分配给AE的接入信息发送的资源访问请求消息;
    处理单元,位于所述M2M网关中,用于对所述资源访问请求消息进行处理。
  25. 根据权利要求24所述的M2M网关,其特征在于,所述M2M网关还包括:分配单元;
    所述分配单元,用于根据M2M网关所属网络的局域网络标识分配所述AE在所述局域网络的连接地址。
  26. 根据权利要求24所述的M2M网关,其特征在于,所述AE的接入信息包括所述M2M网关所属局域网的网络类型;
    所述装置还包括:获取单元;
    所述获取单元,用于获取所述AE的位置信息;
    所述分配单元,进一步用于根据M2M网关所属网络的局域网的网络类型以及所述AE的位置信息,分配所述AE在所述局域网络的连接地址。
  27. 一种机器通信M2M平台,其特征在于,应所述M2M平台为AE进行接入点切换前的接入点以及所述M2M平台作为所述M2M网关的接入点,所述M2M网关为所述AE进行接入点切换后的接入点所述M2M平台包括:
    存储器,用于存储计算机可执行程序代码;
    收发器,以及
    处理器,与所述存储器和所述收发器耦合;
    其中所述程序代码包括指令,当所述处理器执行所述指令时,所述指令使所述装置执行以下操作:
    所述M2M平台接收所述AE发送的接入点切换请求消息,所述接入点切换请求消息中携带所述M2M网关的公共服务实体CSE标识;
    所述M2M平台向所述M2M网关发送资源创建请求消息,所述资源创建请求消息用于请求所述M2M网关创建所述AE的连接资源,所述资源创建请求消息中携带所述AE标识;
    所述M2M平台接收所述M2M网关发送的资源创建成功的响应消息,所述资源创建成功的响应消息中携带所述M2M网关分配给AE的接入信息;
    所述M2M平台向所述AE发送接入点切换的响应消息,所述接入点切换的响应消息携带所述M2M网关分配给AE的接入信息。
  28. 一种机器通信M2M设备,其特征在于,所述M2M设备包括应用实体AE,所述AE进行接入点变更前的接入点为M2M平台以及进行接入点变更后的接入点为M2M网关,所述M2M平台还作为所述M2M网关的接入点,所述M2M设备包括:
    存储器,用于存储计算机可执行程序代码;
    收发器,以及
    处理器,与所述存储器和所述收发器耦合;
    其中所述程序代码包括指令,当所述处理器执行所述指令时,所述指令使所述装置执行以下操作:
    所述AE发送接入点切换请求消息至所述M2M平台,所述接入点切换请求消息中携带所述M2M网关的CSE标识;
    所述AE接收到所述M2M平台发送的接入点切换的响应消息,所述接入点切换的响应消息携带所述M2M网关分配给AE的接入信息;
    所述AE根据所述M2M网关分配给所述AE的接入信息,向所述M2M网关发送资源访问请求。
  29. 一种机器通信M2M网关,其特征在于,所述M2M网关为应用实体AE进行接入点切换后的接入点,所述M2M网关的接入点为M2M平台,所述M2M平台为所述AE进入接点点切换前的接入点,所述M2M网关包括:
    存储器,用于存储计算机可执行程序代码;
    收发器,以及
    处理器,与所述存储器和所述收发器耦合;
    其中所述程序代码包括指令,当所述处理器执行所述指令时,所述指令使所述装置执行以下操作:
    所述M2M网关接收所述M2M平台发送的资源创建请求消息,所述资源创建请求消息用于请求所述M2M网关创建所述AE的连接资源,所述资源创建请求消息中携带所述AE标识;
    所述M2M网关根据所述资源创建请求消息,创建所述AE的连接资源,所述AE的连接资源包含AE的接入信息;
    所述M2M网关向所述M2M平台发送资源创建成功的响应消息,所述资源创建成功的响应消息携带所述M2M网关分配给AE的接入信息;
    所述M2M网关接收所述AE根据所述M2M网关分配给AE的接入信息发送的资源访问请求消息;
    所述M2M网关对所述资源访问请求消息进行处理。
PCT/CN2017/082162 2016-06-08 2017-04-27 切换接入点的方法及装置 WO2017211142A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP2018564319A JP6663047B2 (ja) 2016-06-08 2017-04-27 アクセスポイント切り替え方法および装置
EP17809582.4A EP3461177B1 (en) 2016-06-08 2017-04-27 Methods and devices for switching access point of an application entity in a m2m system
KR1020197000217A KR102152741B1 (ko) 2016-06-08 2017-04-27 액세스 포인트를 스위칭하기 위한 방법 및 디바이스
US16/213,093 US10932171B2 (en) 2016-06-08 2018-12-07 Access point switching method and apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610402671.X 2016-06-08
CN201610402671.XA CN107484211B (zh) 2016-06-08 2016-06-08 切换接入点的方法及装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/213,093 Continuation US10932171B2 (en) 2016-06-08 2018-12-07 Access point switching method and apparatus

Publications (1)

Publication Number Publication Date
WO2017211142A1 true WO2017211142A1 (zh) 2017-12-14

Family

ID=60577542

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/082162 WO2017211142A1 (zh) 2016-06-08 2017-04-27 切换接入点的方法及装置

Country Status (6)

Country Link
US (1) US10932171B2 (zh)
EP (1) EP3461177B1 (zh)
JP (1) JP6663047B2 (zh)
KR (1) KR102152741B1 (zh)
CN (1) CN107484211B (zh)
WO (1) WO2017211142A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653374B (zh) 2014-11-12 2020-04-28 华为技术有限公司 分布式事务资源执行的方法、装置和系统
CN113162987B (zh) 2018-04-20 2022-09-16 华为云计算技术有限公司 一种设备状态同步的方法及公共能力组件
US11032239B1 (en) 2019-12-05 2021-06-08 AT&T Intellectual Propety I, L.P. Methods and systems for providing global internet protocol (IP) addresses
KR20220103617A (ko) * 2021-01-15 2022-07-22 현대자동차주식회사 M2m 시스템에서 구독 서비스를 관리하기 위한 방법 및 장치
WO2023074939A1 (ko) * 2021-10-28 2023-05-04 한국전자기술연구원 원엠투엠 플랫폼 기반 컴퓨팅 오프로딩 방법

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100272020A1 (en) * 2009-04-28 2010-10-28 Koninklijke Kpn N.V. Telecommunications Network Responsive to Server-Provided Location Information
WO2015062052A1 (zh) * 2013-10-31 2015-05-07 华为技术有限公司 一种m2m数据的查询、调用方法、查询、调用设备及系统
CN104904164A (zh) * 2013-01-11 2015-09-09 Lg电子株式会社 用于在机器到机器(m2m)系统中改变网关的方法及其装置
CN105531980A (zh) * 2013-07-25 2016-04-27 康维达无线有限责任公司 服务层设备位置管理和隐私控制
WO2016062119A1 (zh) * 2014-10-24 2016-04-28 中兴通讯股份有限公司 一种应用专有节点的注册方法、通信方法和节点

Family Cites Families (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101552303B1 (ko) * 2008-10-30 2015-09-11 삼성전자주식회사 통신 시스템 및 그의 데이터 전송 방법
JP5108055B2 (ja) * 2010-05-12 2012-12-26 株式会社日立製作所 通信システム及び通信方法、ゲートウェイ
CN102421149B (zh) * 2010-09-28 2017-03-22 中兴通讯股份有限公司 切换信息的通知方法及基站
WO2012044995A1 (en) * 2010-10-01 2012-04-05 Huawei Technologies Co., Ltd. Lightweight secure neighbor discovery protocol for low-power and lossy networks
CN102130773B (zh) * 2011-02-25 2012-12-19 华为技术有限公司 群组通信的方法和用于群组通信的装置
US11102689B2 (en) * 2013-01-03 2021-08-24 Apple Inc. Packet data connections in a wireless communication system using a wireless local area network
KR101432128B1 (ko) * 2013-01-29 2014-08-21 주식회사 케이티 M2m 네트워크상에서의 리소스를 디바이스 오브젝트로 추상화하는 m2mm 플랫폼
US9800999B2 (en) 2013-02-19 2017-10-24 Lg Electronics Inc. Method for modifying M2M service setting and apparatus therefor
US9392571B2 (en) * 2013-06-12 2016-07-12 Lg Electronics Inc. Method for measuring position in M2M system and apparatus therefor
KR20150014348A (ko) * 2013-07-29 2015-02-06 주식회사 케이티 개인 device의 사용정보를 이용한 맞춤형 M2M 서비스 제공 방법 및 시스템
CN104581796B (zh) 2013-10-29 2019-08-30 中兴通讯股份有限公司 一种m2m应用请求的发送方法、cse和系统
WO2015080515A1 (ko) * 2013-11-29 2015-06-04 엘지전자 주식회사 무선 통신 시스템에서 서비스 구독 리소스 기반 인증 방법
KR101744666B1 (ko) 2014-01-30 2017-06-08 닛본 덴끼 가부시끼가이샤 기지국, m2m(machine-to-machine) 단말, 방법, 및 컴퓨터 가독 매체
CN105409304B (zh) * 2014-02-24 2019-10-25 华为技术有限公司 一种设备切换的方法和设备
US10321290B2 (en) * 2014-06-30 2019-06-11 Lg Electronics Inc. Method for processing request message in wireless communication system and apparatus therefor
EP3170111B1 (en) * 2014-07-18 2021-10-27 Convida Wireless LLC M2m ontology management and semantics interoperability
CN105281941B (zh) * 2014-07-23 2019-04-30 中兴通讯股份有限公司 一种数据传输方法、第一cse、中间cse和第二cse
CN105338615B (zh) * 2014-08-12 2019-12-03 中兴通讯股份有限公司 用户设备的注册方法、实体及系统
CN106489253B (zh) * 2014-08-20 2019-10-18 华为技术有限公司 中间节点、基础设施节点及m2m业务消息转发方法
CN105491620A (zh) * 2014-09-19 2016-04-13 中兴通讯股份有限公司 一种m2m中管理应用资源的方法和注册节点
CN105636241B (zh) 2014-11-04 2020-11-17 中兴通讯股份有限公司 M2m节点的删除、注册方法及m2m节点
CN105653374B (zh) 2014-11-12 2020-04-28 华为技术有限公司 分布式事务资源执行的方法、装置和系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100272020A1 (en) * 2009-04-28 2010-10-28 Koninklijke Kpn N.V. Telecommunications Network Responsive to Server-Provided Location Information
CN104904164A (zh) * 2013-01-11 2015-09-09 Lg电子株式会社 用于在机器到机器(m2m)系统中改变网关的方法及其装置
CN105531980A (zh) * 2013-07-25 2016-04-27 康维达无线有限责任公司 服务层设备位置管理和隐私控制
WO2015062052A1 (zh) * 2013-10-31 2015-05-07 华为技术有限公司 一种m2m数据的查询、调用方法、查询、调用设备及系统
WO2016062119A1 (zh) * 2014-10-24 2016-04-28 中兴通讯股份有限公司 一种应用专有节点的注册方法、通信方法和节点

Also Published As

Publication number Publication date
EP3461177B1 (en) 2021-12-15
JP6663047B2 (ja) 2020-03-11
KR20190015501A (ko) 2019-02-13
EP3461177A4 (en) 2019-03-27
US20190124573A1 (en) 2019-04-25
KR102152741B1 (ko) 2020-09-07
EP3461177A1 (en) 2019-03-27
JP2019521591A (ja) 2019-07-25
CN107484211B (zh) 2020-06-26
US10932171B2 (en) 2021-02-23
CN107484211A (zh) 2017-12-15

Similar Documents

Publication Publication Date Title
CN112291381B (zh) 应用服务器切换方法、设备及系统
WO2017211142A1 (zh) 切换接入点的方法及装置
KR101806257B1 (ko) 가입 통지를 구현하기 위한 방법 및 장치
CN108024270B (zh) 一种信息发送方法、单元和系统
WO2018006784A1 (zh) 一种网络切片选择方法、设备及系统
US10085244B2 (en) Method for guaranteeing operation of control message in wireless communication system and device for same
US11991145B2 (en) Device and method for providing information of application server in mobile communication system
US20200053636A1 (en) SMF Selection Based On Supported DNN
WO2019137207A1 (zh) 事件通知方法及相关设备
US10015684B2 (en) Method and apparatus for managing specific resource in wireless communication system
WO2019196602A1 (zh) 通信方法、装置及系统
AU2021221761B2 (en) Selection of ip version
US20220103990A1 (en) Communication Method, Apparatus, and System
US9867164B2 (en) Method and device for processing a specific request message in wireless communication system
US10321290B2 (en) Method for processing request message in wireless communication system and apparatus therefor
WO2018112759A1 (zh) 访问资源的方法、装置和系统
WO2018000653A1 (zh) M2m应用的信息方法、cse及ae
EP2304980B1 (en) A method and apparatus for a subscriber database
US11044327B2 (en) Systems and methods for wireless service migration
CN110024358B (zh) 对由分布式数据存储系统提供的服务的访问
WO2020135536A1 (zh) 一种通信方法及装置
WO2021052109A1 (zh) 通信方法及装置
US11412355B2 (en) Method, device, and system for optimizing short message signaling
EP3884647B1 (en) Methods of operating service control nodes
CN117242823A (zh) 用于无线网络中的核心网设备重新分配的方法、设备和系统

Legal Events

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

Ref document number: 17809582

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2018564319

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 20197000217

Country of ref document: KR

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2017809582

Country of ref document: EP

Effective date: 20181219