CN106231538B - Method and device for binding OneM2M architecture equipment - Google Patents

Method and device for binding OneM2M architecture equipment Download PDF

Info

Publication number
CN106231538B
CN106231538B CN201610616060.5A CN201610616060A CN106231538B CN 106231538 B CN106231538 B CN 106231538B CN 201610616060 A CN201610616060 A CN 201610616060A CN 106231538 B CN106231538 B CN 106231538B
Authority
CN
China
Prior art keywords
binding
equipment
bound
resource
resource set
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201610616060.5A
Other languages
Chinese (zh)
Other versions
CN106231538A (en
Inventor
吕小强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Haier Uplus Intelligent Technology Beijing Co Ltd
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 Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Haier Uplus Intelligent Technology Beijing Co Ltd
Priority to CN201610616060.5A priority Critical patent/CN106231538B/en
Publication of CN106231538A publication Critical patent/CN106231538A/en
Application granted granted Critical
Publication of CN106231538B publication Critical patent/CN106231538B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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]

Abstract

The invention discloses a method and a device for binding OneM2M architecture equipment. The method for the M2M system server comprises the following steps: receiving a device binding request sent by first equipment; the device binding request is used for the first device to request to bind the second device; forwarding the device binding request to the second device; after receiving the binding determination message fed back by the second device, acquiring a registered resource set of the second device, and sending the registered resource set of the second device to the first device; and receiving the resources required to be bound selected by the first equipment from the registered resource set of the second equipment, and establishing the binding relationship between the first equipment and the second equipment according to the resources required to be bound. The invention binds the devices of different resource sets, so that the bound devices have richer service resources and provide better service experience for users.

Description

Method and device for binding OneM2M architecture equipment
Technical Field
The invention relates to the technical field of communication of the Internet of things, in particular to a method and a device for binding equipment with an OneM2M architecture.
Background
oneM2M is the international organization for standardization in the field of Internet of things, and provides an interoperability standard for M2M and Internet of things application development. M2M (Machine to Machine) refers to data communication between machines without human involvement. In order to meet the increasing demands of users on automation and networking, M2M has been widely applied to various fields such as traffic control management, remote meter reading, remote monitoring, medical monitoring, and smart home control.
The set of resources provided by different smart devices is different throughout the internet of things. Often, due to the limitation of resource sets, the smart device cannot provide corresponding functions. For example, for an automobile, wireless communication protocols such as wifi, BT, or ZigBee may be supported. However, these communication protocols cannot provide location-based services and call services.
However, in practical application scenarios, there are usually more than one type of smart device used by a user. The driver who drives will carry the mobile terminal generally, therefore can borrow the mobile communication resource of 3G or 4G of mobile terminal, provide more communication resources for the car in motion. Therefore, if the intelligent devices of different resource sets are bound to generate a virtual device, the virtual device will provide services of a stronger resource set for the user.
Disclosure of Invention
The embodiment of the invention provides a method and a device for binding oneM2M architecture equipment, which are used for solving the problem that the equipment resource is single and can not provide more comprehensive service resources in the prior art.
According to an aspect of the present invention, there is provided a method for OneM2M architecture device binding, for use in a server of a machine and machine M2M system, the method including:
receiving a device binding request sent by first equipment; wherein the device binding request is for the first device to request binding of a second device;
forwarding the device binding request to the second device;
after receiving the binding determination message fed back by the second device, acquiring a registered resource set of the second device, and sending the registered resource set of the second device to the first device;
and receiving the resources required to be bound, which are selected from the registered resource set of the second equipment by the first equipment, and establishing the binding relationship between the first equipment and the second equipment according to the resources required to be bound.
Further, before the receiving the device binding request sent by the first device, the method further includes;
receiving registration requests of the first device and the second device; wherein, the registration request comprises the identification of the equipment and a registration resource set;
and storing the identifier of the equipment and the registered resource set into local equipment information.
Further, the receiving of the device binding request sent by the first device specifically includes:
obtaining an identifier of the first device from the device binding request;
inquiring whether the identification of the first device exists in the device information;
if yes, the authentication is passed, and the binding processing is continued; otherwise, the authentication fails, and the binding process is terminated.
Further, the establishing a binding relationship between the first device and the second device according to the resource to be bound specifically includes:
judging whether the registered resource set of the first device contains a resource type corresponding to the resource to be bound;
if yes, modifying the resource value of the resource to be bound in the registered resource set of the first device into the resource value of the corresponding resource type in the registered resource set of the second device;
and if not, adding the resource type corresponding to the resource needing to be bound in the first equipment into the registered resource set of the first equipment, and modifying the resource value of the resource needing to be bound into the resource value corresponding to the resource type in the registered resource set of the second equipment.
Further, the required bound resources include at least network service resources.
Further, after the binding relationship between the first device and the second device is established according to the resource to be bound, the method further includes sending a response message that the binding is successful to the first device.
According to an aspect of the present invention, there is provided a device binding method for use in a first device of a machine and machine M2M system, the method comprising:
sending a device binding request for binding the second device to a server;
receiving a registered resource set of the second device sent by the server;
and acquiring the resources required to be bound selected from the registered resource set of the second equipment, and sending the resources required to be bound to the server.
Further, the method further comprises:
receiving a response message of successful binding sent by the server;
establishing a bound resource set locally according to the identifier of the second device carried by the device binding request;
and negotiating communication with the second device, and adding the network access mode of the second device to the bound resource set.
Further, the bundled resource set is specifically configured to:
when the situation that the local event is updated is monitored, the event is sent to the second equipment according to the network access mode, and the second equipment sends the event to the server.
According to an aspect of the present invention, there is provided a method for OneM2M architecture device binding, which is used in a second device of a machine and machine M2M system, and includes:
receiving a device binding request forwarded by a server; wherein the device binding request is for a first device to bind the second device;
after the binding relation with the first equipment is established, sending a binding determination message to the server;
establishing a bound resource set locally according to the identifier of the first device carried by the device binding request;
and negotiating communication with the first device, and adding the network access mode of the first device to the bound resource set.
Further, the bound resource set is specifically configured to, when an event related to the first device and sent by the server is received, send the event to the first device according to the network access manner.
According to an aspect of the present invention, there is provided an apparatus for OneM2M architecture device binding, for use in a server of a machine and machine M2M system, the apparatus including:
a first receiving unit, configured to receive a device binding request sent by a first device; wherein the device binding request is for the first device to request binding of a second device;
a first sending unit, configured to forward the device binding request to the second device;
a second receiving unit, configured to receive a binding determination message fed back by the second device;
a second sending unit, configured to obtain a registered resource set of the second device after the second receiving unit receives the binding determination message fed back by the second device, and send the registered resource set of the second device to the first device;
a third receiving unit, configured to receive a resource to be bound, which is selected by the first device from a registered resource set of the second device;
and the binding unit is used for establishing the binding relationship between the first equipment and the second equipment according to the resources required to be bound and received by the third receiving unit.
Further, the apparatus further comprises a registration unit, specifically configured to;
before the first receiving unit receives a device binding request sent by first equipment, receiving registration requests of the first equipment and the second equipment; wherein, the registration request comprises the identification of the equipment and a registration resource set;
and storing the identifier of the equipment and the registered resource set into local equipment information.
Further, the first receiving unit is specifically configured to:
obtaining an identifier of the first device from the device binding request;
inquiring whether the identification of the first device exists in the device information;
if yes, the authentication is passed, and the binding processing is continued; otherwise, the authentication fails, and the binding process is terminated.
Further, the binding unit is specifically configured to:
judging whether the registered resource set of the first device contains a resource type corresponding to the resource to be bound;
if yes, modifying the resource value of the resource to be bound in the registered resource set of the first device into the resource value of the corresponding resource type in the registered resource set of the second device;
and if not, adding the resource type corresponding to the resource needing to be bound in the first equipment into the registered resource set of the first equipment, and modifying the resource value of the resource needing to be bound into the resource value corresponding to the resource type in the registered resource set of the second equipment.
Further, the required bound resources processed by the binding unit at least include network service resources.
Further, the apparatus further includes a third sending unit, configured to send, by the binding unit, a response message that the binding is successful to the first device after establishing the binding relationship between the first device and the second device according to the resource to be bound.
According to an aspect of the present invention, there is provided an apparatus for OneM2M architecture device binding, for use in a first device of a machine and machine M2M system, the apparatus including:
a first sending unit, configured to send a device binding request for binding the second device to a server;
a first receiving unit, configured to receive a registered resource set of the second device sent by the server;
and the second sending unit is used for acquiring the resources required to be bound, which are selected from the registered resource set of the second equipment, and sending the resources required to be bound to the server.
Further, the apparatus further comprises:
a second receiving unit, configured to receive a response message that is sent by the server and is successfully bound;
the establishing unit is used for establishing a bound resource set locally according to the identifier of the second device carried by the device binding request after the second receiving unit receives the response message of successful binding sent by the server;
and the adding unit is used for negotiating communication with the second equipment and adding the network access mode of the second equipment to the bound resource set.
Further, the bound resource set established by the establishing unit is specifically configured to:
when the situation that the local event is updated is monitored, the event is sent to the second equipment according to the network access mode, and the second equipment sends the event to the server.
According to an aspect of the present invention, there is provided an apparatus for OneM2M architecture device binding, for use in a second device of a machine and machine M2M system, including:
the receiving unit is used for receiving the equipment binding request forwarded by the server; wherein the device binding request is for a first device to bind the second device;
a sending unit, configured to send a binding determination message to the server after determining that a binding relationship is established with the first device;
the establishing unit is used for establishing a bound resource set locally according to the identifier of the first device carried by the device binding request;
and the adding unit is used for negotiating communication with the first equipment and adding the network access mode of the first equipment to the bound resource set.
Further, the bound resource set established by the establishing unit is specifically configured to, when receiving an event related to the first device and sent by the server, send the event to the first device according to the network access manner.
The invention has the following beneficial effects:
according to the method and the device for binding the OneM2M framework equipment, the first equipment requests to bind the second equipment, the second equipment determines to bind, then the resource of the second equipment is sent to the first equipment, and the first equipment determines the resource needing to be bound according to the requirement. The invention binds the devices of different resource sets, so that the bound devices have richer service resources and provide better service experience for users.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of a method for device binding for a server in an embodiment of the invention;
FIG. 2 is a flow chart of a method for device binding of a first device in an embodiment of the invention;
FIG. 3 is a flow chart of a method for device binding of a second device in an embodiment of the present invention;
FIG. 4 is a flowchart of a method for device binding according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a specific application scenario after the device in FIG. 4 is bound;
FIG. 6 is a block diagram illustrating an apparatus binding device for a server according to an embodiment of the present invention;
FIG. 7 is a flowchart of a device binding apparatus for a first device according to an embodiment of the present invention;
fig. 8 is a flowchart of a device binding apparatus for a second device in an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a method for binding OneM2M architecture equipment, which is used in a server of an M2M system and specifically comprises the following steps as shown in fig. 1:
step 101, receiving a device binding request sent by a first device; wherein the device binding request is for the first device to request binding of the second device.
The first device and the second device register related device information in the server in advance, specifically:
receiving registration requests of a first device and a second device; wherein, the registration request comprises an identification ID of the equipment and a registration resource set; and storing the identifier of the equipment and the registered resource set into local equipment information. The registered resource set includes service resources that the device can provide for the external device.
The device binding request sent by the first device includes the first device identification ID and the second device identification ID, and may also include other binding-related information, such as binding age information.
Further, after the server receives the device binding request sent by the first device, the method further includes:
acquiring a first device identification ID carried in a device binding request;
inquiring whether a first device Identification (ID) exists in pre-registered device information;
when the first equipment identification ID is inquired, the authentication is successful, and the subsequent binding operation is continued; if the first device identification ID is not retrieved, the binding process is terminated, and a response message without the registration information is sent to the first device.
Step 102, forwarding the device binding request to the second device, obtaining the registered resource set of the second device after receiving the binding determination message fed back by the second device, and sending the registered resource set of the second device to the first device.
After receiving the device binding request, the server determines whether the second device supports binding: after the support binding is determined, carrying out a subsequent binding process; otherwise, the operation is terminated.
Specifically, the second device identification ID is obtained from the device binding request. And forwarding the device binding request to the second device according to the second device identification ID, and determining whether to bind the first device by the second device. And after the second equipment determines that the binding is supported, sending a binding confirmation message to the server. And after receiving the binding confirmation message, the server acquires the registered resource set of the second equipment from the registered equipment information according to the second equipment identification ID, and sends the registered resource set to the first equipment.
Step 103, receiving the resource to be bound selected by the first device from the registered resource set of the second device, and establishing the binding relationship between the first device and the second device according to the resource to be bound.
And the first equipment selects the resources required to be bound from the resource set of the second equipment according to the requirements, and feeds the bound resources back to the server. The resources to be bound may be: the performance is better than the resources of the first device or resources not present in the first device. And the server establishes a binding relationship between the second equipment and the first equipment according to the specific resources. The binding relationship indicates that the resource bound by the first device is required to be acquired from the second device.
Specifically, in an embodiment, when the binding relationship between the first device and the second device is established according to the resource to be bound, the method specifically includes:
judging whether a registered resource set of the first equipment contains a resource type corresponding to a resource to be bound;
if yes, the resource value of the resource required to be bound in the registered resource set of the first equipment is modified into the resource value of the corresponding resource type in the registered resource set of the second equipment;
if not, adding the resource type corresponding to the resource required to be bound in the first equipment into the registered resource set of the first equipment, and modifying the resource value of the resource required to be bound into the resource value corresponding to the resource type in the registered resource set of the second equipment.
For example, when the first device needs to bind a network service resource (including a network access mode) of the second device, and the network service resource is in a registered resource set, the resource value of the network service resource in the first device is modified to the resource value of the second device, that is, the access point information is modified to the access point information of the second device. For the voice call service resource, if the first device registration resource set does not exist, the resource type can be directly added, and the second device provides the resource value of the resource type for the first device.
The resources to be bound at least include network service resources, and certainly may also include any one or more of location service resources, voice call service resources, or short message service resources. Thus, after the first device and the second device bind the network service resource, they share one IP address, and for the external device, the two bound devices are virtual devices. After the resource binding, the first device may directly obtain the resource of the second device and provide a service for the external device.
And further, after the binding relationship between the first device and the second device is established according to the resources required to be bound, sending a binding success message to the first device. And after the first device determines the binding, establishing a bound resource set locally according to the identification ID of the second device. And realizing data interaction between the first device and the second device according to the bound resource set. The specific implementation process is described later.
Based on the above, in the embodiment of the present invention, after the server binds the second device with the resource of the first device, when the external device needs to acquire the relevant resource of the first device, the external device can directly acquire the relevant resource through the second device, so that the first device can provide richer resource information. According to the invention, the intelligent equipment with different resource sets can be integrated, so that the intelligent equipment provides more diversified services for the user, and the service experience of the user is improved.
An embodiment of the present invention provides a method for binding OneM 2M-architecture devices, which is used in a first device of an M2M system, and as shown in fig. 2, specifically includes the following steps:
step 201, sending a device binding request to a server; wherein the device binding request is for the first device to bind the second device.
The trigger for the device binding request may be triggered by an external environment or may be triggered automatically by the device. For example, when a user needs to bind a specific device, a device binding request is triggered and sent after a binding instruction of the user is received; or automatically triggered when the first device detects a reduction in its capabilities due to a change in the environment (for example, when WIFI cannot be connected), which is the case when the first device requests to bind to a device of the same user; or, broadcast its own required resources in the local area network, and automatically initiate a binding request to the server after acquiring the address of the device (i.e. after the second device) capable of providing the corresponding resource.
The first device registers device information in the server in advance, wherein the device information comprises a device Identification (ID) and available resource sets. The device binding request sent to the server includes the first device identification ID and the second device identification ID, and may also contain other binding-related information, such as the specific age of the binding.
After sending the device binding request to the server, the server authenticates the first device and determines whether the first device can bind other devices. After the server passes the authentication, acquiring a resource set registered by the second equipment; and when the authentication fails, sending an authentication failure message to the second equipment. And after receiving the authentication failure message, the first equipment terminates the binding process.
Further, after the server forwards the device binding request to the second device, if the second device refuses to establish the binding relationship, the second device sends a binding refusing message to the server, and the server forwards the binding refusing message to the first device. And after the first equipment receives the binding rejection message sent by the second equipment and forwarded by the server, the binding process is terminated.
Step 202, receiving a registered resource set of a second device sent by a server;
step 203, acquiring the resource to be bound selected from the registered resource set of the second device, and sending the resource to be bound to the server.
The bound resource at least includes a network service resource, and certainly may also include other bindable resource information such as a location service resource, a voice call service resource, or a short message service resource.
Specifically, when acquiring a resource to be bound selected from the registered resource set of the second device, the user may select the resource to be bound according to the received registered resource set of the second device; or when the first device detects that a certain resource cannot be provided due to environmental change (for example, when the first device cannot be connected with WIFI), the first device may obtain the corresponding resource from the registered resource set of the second device to meet the self-demand; or when broadcasting the required resources in the local area network, acquiring the required bound resources from the registered resource set of the second device.
Further, after feeding back the bound resource to the server, the first device monitors a binding success message sent by the server:
after receiving the binding success message, establishing a bound resource set locally according to a second equipment identification ID carried in the equipment binding request; wherein the bound resource set is used for the first device to determine device information bound thereto, such as an identification ID of the second device.
And negotiating a communication relation with the second equipment, and adding the network access mode of the second equipment into the bound resource set. And negotiating communication with the second equipment according to the information of the second equipment in the bound resource set, acquiring the network access mode of the second equipment, and establishing connection with the second equipment for communication.
When negotiating a communication relationship with the second device, the first device may use wifi/zigbee/BT communication protocol or other private communication protocols. The communication protocol for establishing the connection is not particularly limited herein.
After the server side realizes the binding of the two devices, a binding resource set needs to be set locally in order to facilitate the communication between the devices; and adding the network access mode of the second device to the bound resource set. Therefore, according to the network access mode of the bound resource set, after the connection with the second equipment is established, the data interaction is realized through the second equipment and the server side.
Specifically, when it is monitored that the local event is updated, the event is sent to the second device according to a network access mode, and the second device sends the event to the server. For example, when the automobile is connected with the server through the WIFI, the automobile and the mobile phone are bound; and when the automobile loses the WIFi connection, according to the access point information of the second equipment in the bound resource set, sending the event information of the automobile to a service platform in the server through the mobile phone. .
An embodiment of the present invention further provides a method for binding an OneM2M architecture device, which is used in a second device of an M2M system, and as shown in fig. 3, the method specifically includes:
step 301, receiving a device binding request forwarded by a server; wherein the device binding request is for the first device to bind the second device.
The device binding request includes the first device identification ID and the second device identification ID, and may further include other information related to binding, such as a specific time period of the binding. After receiving the device binding request, obtaining the device identification ID of the device to be bound from the request, and prompting the user whether the binding can be carried out.
Step 302, after determining that the binding relationship with the first device is established, sending a binding determination message to the server.
And determining whether to establish a binding relationship with the first equipment according to the instruction of the user. If a binding determining instruction is received, determining to establish a binding relationship with the first equipment, and sending a binding determining message to the server so as to prompt the server to perform a subsequent binding process; and if the binding rejection instruction is received, rejecting to establish a binding relation with the first equipment, sending the binding rejection message to the server, and forwarding the binding rejection message to the first equipment by the server.
And 303, locally generating a bound resource set according to the first device identification ID carried by the device binding request.
Step 304, when negotiating communication with the first device, adding the network access mode of the first device to the bound resource set.
The second device determines device information, such as an identification ID of the first device, to which it is bound based on the bound resource set. Specifically, the bound resource set is specifically configured to, when an event related to the first device and sent by the server is received, send the event to the first device according to a network access manner.
The invention is explained below in a specific embodiment, which relates to a first device (car), a second device (mobile phone) and a server (service platform).
As shown in fig. 4, the car and the handset are registered in advance on the service platform, the remote resource set registered by the car is remoteCSE1, and the remote resource set registered by the handset is remoteCSE 2. The specific process of binding the automobile and the mobile phone is as follows:
step 401, an automobile sends a device binding request (carrying a CSE-ID ═ mobile phone identification ID) to a service platform; step 402, the service platform authenticates and identifies the automobile;
step 403, the service platform forwards the device binding request to the mobile phone;
step 404, the mobile phone sends a binding success confirmation message to the service platform, and locally generates a binding resource set binding CSE1 containing a CSE-ID (vehicle identification ID);
step 405, the service platform sends a resource negotiation request carrying a remotecSE2 resource set to the automobile;
step 406, the automobile feeds back and selects the resources of the bound mobile phone, namely access point information Network and Location information Location, to the mobile phone;
step 407, the service platform modifies the Network and Location information in remotecSE1 to remotecSE 2; or generating a virtual device (remotecSE3) for the bound device, and synchronizing to remotecSE3 in an anounce mode;
step 408, the service platform sends a response message of successful binding to the automobile;
step 409, the automobile locally generates a binding resource set binding CSE2 containing the CSE-ID ═ cell phone identifier;
step 410, the automobile and the mobile phone negotiate a communication mode;
step 411, the automobile modifies the access point information of the bindingCSE1 into the accessfpoint of the mobile phone; the access point information of the mobile phone in the binding CSE2 is modified to the accessopoint of the automobile.
Fig. 5 is a specific application scenario in fig. 4. After the automobile and the mobile phone establish a binding relationship, the mobile phone provides network service resources for the whole binding device. In particular, the amount of the solvent to be used,
step 501, when the automobile 1 monitors an event (for example, a fault), checking the resources of the local bound resource set, and sending the type of the message and the vehicle information to the mobile phone:
step 502, the mobile phone 1 sends the type of the message and the vehicle information to a service platform;
step 503, the service platform receives the type and vehicle information of the message sent by the mobile phone 1, and pushes the event specific message to other mobile phones 2;
step 504, the mobile phone 2 sends the event specific message to the automobile 2;
step 505, after the car 2 receives the event message, the specific processing is performed on the event.
Referring to fig. 6, an embodiment of the present invention further provides a device for binding an OneM2M architecture device, where the device is used in a server, and the device specifically includes:
a first receiving unit 61, configured to receive a device binding request sent by a first device; the device binding request is used for the first device to request to bind the second device;
a first sending unit 62, configured to forward the device binding request to the second device;
a second receiving unit 63, configured to receive a binding determination message fed back by the second device;
a second sending unit 64, configured to obtain a registered resource set of the second device after the second receiving unit receives the binding determination message fed back by the second device, and send the registered resource set of the second device to the first device;
a third receiving unit 65, configured to receive a resource to be bound, which is selected by the first device from the registered resource set of the second device;
a binding unit 66, configured to establish a binding relationship between the first device and the second device according to the resource that needs to be bound and received by the third receiving unit.
Further, the apparatus further comprises a registration unit 67, specifically configured to;
the method comprises the steps that before a first receiving unit receives a device binding request sent by first equipment, registration requests of the first equipment and second equipment are received; wherein, the registration request comprises the identification of the equipment and the registration resource set;
and storing the identifier of the equipment and the registered resource set into local equipment information.
Further, the first receiving unit 61 is specifically configured to:
acquiring the identifier of the first device from the device binding request;
inquiring whether the identifier of the first device exists in the device information;
if yes, the authentication is passed, and the binding processing is continued; otherwise, the authentication fails, and the binding process is terminated.
Further, the binding unit 66 is specifically configured to:
judging whether a registered resource set of the first equipment contains a resource type corresponding to a resource to be bound;
if yes, the resource value of the resource required to be bound in the registered resource set of the first equipment is modified into the resource value of the corresponding resource type in the registered resource set of the second equipment;
if not, adding the resource type corresponding to the resource required to be bound in the first equipment into the registered resource set of the first equipment, and modifying the resource value of the resource required to be bound into the resource value corresponding to the resource type in the registered resource set of the second equipment.
Further, the resources required to be bound processed by the binding unit 66 include at least network service resources.
Further, the apparatus further includes a third sending unit 67, configured to send, by the binding unit, a response message that the binding is successful to the first device after the binding unit establishes the binding relationship between the first device and the second device according to the resource to be bound.
Referring to fig. 7, an embodiment of the present invention further provides an apparatus for binding a device, where the apparatus is used in a first device, and specifically includes:
according to an aspect of the present invention, there is provided an apparatus for OneM2M architecture device binding, for use in a first device of a machine and machine M2M system, the apparatus including:
a first sending unit 71, configured to send a device binding request for binding the second device to the server;
a first receiving unit 72, configured to receive a registered resource set of the second device sent by the server;
a second sending unit 73, configured to obtain a resource to be bound, which is selected by a user according to the registered resource set of the second device, and send the resource to be bound to the server.
Further, the apparatus further comprises:
a second receiving unit 74, configured to receive a response message that the binding is successful and sent by the server;
the establishing unit 75 is configured to, after the second receiving unit receives the response message sent by the server and successfully bound, establish a bound resource set locally according to the identifier of the second device carried in the device binding request;
and an adding unit 76, configured to negotiate communication with the second device, and add the network access mode of the second device to the bound resource set.
Further, the bound resource set established by the establishing unit 75 is specifically used for:
and when the situation that the local event is updated is monitored, sending the event to the second equipment according to a network access mode, and sending the event to the server by the second equipment.
Referring to fig. 8, an embodiment of the present invention further provides a device for binding OneM 2M-architecture devices, where the device is used in a second device of an M2M system, and the device includes:
a receiving unit 81, configured to receive a device binding request forwarded by a server; the device binding request is used for the first device to request to bind the second device;
a sending unit 82, configured to send a binding determination message to the server after determining that a binding relationship is established with the first device;
the establishing unit 83 is configured to locally establish a bound resource set according to the identifier of the first device carried in the device binding request;
an adding unit 84, configured to negotiate communication with the first device, and add a network access mode of the first device to the bound resource set.
Further, the binding resource set established by the establishing unit 83 is specifically configured to, when receiving an event related to the first device sent by the server, send the event to the first device according to a network access manner.
It will be understood by those skilled in the art that all or part of the processes in the methods for implementing the embodiments described above may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above.
Although the present application has been described with reference to embodiments, those skilled in the art will appreciate that there are numerous variations and permutations of the present application without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (22)

1. A method for OneM2M architecture device binding, for use in a server of a machine-to-machine M2M system, the method comprising:
receiving a device binding request sent by first equipment; wherein the device binding request is for the first device to request binding of a second device;
forwarding the device binding request to the second device, acquiring a registered resource set of the second device after receiving a binding determination message fed back by the second device, and sending the registered resource set of the second device to the first device;
and receiving the resources required to be bound, which are selected from the registered resource set of the second equipment by the first equipment, and establishing the binding relationship between the first equipment and the second equipment according to the resources required to be bound.
2. The method of claim 1, wherein prior to receiving the device binding request sent by the first device, the method further comprises;
receiving registration requests of the first device and the second device; wherein, the registration request comprises the identification of the equipment and a registration resource set;
and storing the identifier of the equipment and the registered resource set into local equipment information.
3. The method of claim 2, wherein the receiving the device binding request sent by the first device specifically comprises:
obtaining an identifier of the first device from the device binding request;
inquiring whether the identification of the first device exists in the device information;
if yes, the authentication is passed, and the binding processing is continued; otherwise, the authentication fails, and the binding process is terminated.
4. The method according to claim 1, wherein the establishing a binding relationship between the first device and the second device according to the resource to be bound specifically comprises:
judging whether the registered resource set of the first device contains a resource type corresponding to the resource to be bound;
if yes, modifying the resource value of the resource to be bound in the registered resource set of the first device into the resource value of the corresponding resource type in the registered resource set of the second device;
if not, adding the resource type corresponding to the resource needing to be bound in the first equipment into the registered resource set of the first equipment, and modifying the resource value of the resource needing to be bound into the resource value corresponding to the resource type in the registered resource set of the second equipment.
5. The method of claim 1 or 4, wherein the required bound resources comprise at least network service resources.
6. The method of claim 1, wherein after the establishing the binding relationship between the first device and the second device according to the resources required to be bound, the method further comprises sending a response message that the binding is successful to the first device.
7. A method for OneM2M architecture device binding, for use in a first device of a machine-to-machine M2M system, the method comprising:
sending a device binding request to a server; wherein the device binding request is for a first device to request to bind a second device;
receiving a registered resource set of the second device sent by the server;
and acquiring the resources required to be bound selected from the registered resource set of the second equipment, and sending the resources required to be bound to the server.
8. The method of claim 7, wherein the method further comprises:
receiving a response message of successful binding sent by the server;
establishing a bound resource set locally according to the identifier of the second device carried by the device binding request;
and negotiating communication with the second device, and adding the network access mode of the second device to the bound resource set.
9. The method as recited in claim 8, wherein said set of bound resources is specifically configured for:
when the situation that the local event is updated is monitored, the event is sent to the second equipment according to the network access mode, and the second equipment sends the event to the server.
10. A method for OneM2M architecture device binding, for use in a second device of a machine-to-machine M2M system, comprising:
receiving a device binding request forwarded by a server; wherein the device binding request is for a first device to request binding of the second device;
after the binding relation with the first equipment is established, sending a binding determination message to the server;
establishing a bound resource set locally according to the identifier of the first device carried by the device binding request;
and negotiating communication with the first device, and adding the network access mode of the first device to the bound resource set.
11. The method of claim 10, wherein the set of bound resources is specifically configured to, upon receiving an event related to the first device sent by the server, send the event to the first device according to the network access manner.
12. An apparatus for OneM2M architecture device binding, for use in a server of a machine-to-machine M2M system, the apparatus comprising:
a first receiving unit, configured to receive a device binding request sent by a first device; wherein the device binding request is for the first device to request binding of a second device;
a first sending unit, configured to forward the device binding request to the second device;
a second receiving unit, configured to receive a binding determination message fed back by the second device;
a second sending unit, configured to obtain a registered resource set of the second device after the second receiving unit receives the binding determination message fed back by the second device, and send the registered resource set of the second device to the first device;
a third receiving unit, configured to receive a resource to be bound, which is selected by the first device from a registered resource set of the second device;
and the binding unit is used for establishing the binding relationship between the first equipment and the second equipment according to the resources required to be bound and received by the third receiving unit.
13. The apparatus according to claim 12, wherein the apparatus further comprises a registration unit, in particular for;
before the first receiving unit receives a device binding request sent by first equipment, receiving registration requests of the first equipment and the second equipment; wherein, the registration request comprises the identification of the equipment and a registration resource set;
and storing the identifier of the equipment and the registered resource set into local equipment information.
14. The apparatus of claim 13, wherein the first receiving unit is specifically configured to:
obtaining an identifier of the first device from the device binding request;
inquiring whether the identification of the first device exists in the device information;
if yes, the authentication is passed, and the binding processing is continued; otherwise, the authentication fails, and the binding process is terminated.
15. The apparatus as claimed in claim 12, wherein said binding unit is specifically configured to:
judging whether the registered resource set of the first device contains a resource type corresponding to the resource to be bound;
if yes, modifying the resource value of the resource to be bound in the registered resource set of the first device into the resource value of the corresponding resource type in the registered resource set of the second device;
if not, adding the resource type corresponding to the resource needing to be bound in the first equipment into the registered resource set of the first equipment, and modifying the resource value of the resource needing to be bound into the resource value corresponding to the resource type in the registered resource set of the second equipment.
16. The apparatus according to claim 12 or 15, wherein the required bonded resources handled by the bonding unit comprise at least network service resources.
17. The apparatus of claim 12, further comprising a third sending unit, configured to send, to the first device, a response message that the binding is successful after the binding unit establishes the binding relationship between the first device and the second device according to the resource to be bound.
18. An apparatus for OneM2M architecture device binding, for use in a first device of a machine-to-machine M2M system, the apparatus comprising:
a first sending unit, configured to send a device binding request to a server; wherein the device binding request is for a first device to request to bind a second device;
a first receiving unit, configured to receive a registered resource set of the second device sent by the server;
and the second sending unit is used for acquiring the resources required to be bound, which are selected from the registered resource set of the second equipment, and sending the resources required to be bound to the server.
19. The apparatus of claim 18, wherein the apparatus further comprises:
a second receiving unit, configured to receive a response message that is sent by the server and is successfully bound;
the establishing unit is used for establishing a bound resource set locally according to the identifier of the second device carried by the device binding request after the second receiving unit receives the response message of successful binding sent by the server;
and the adding unit is used for negotiating communication with the second equipment and adding the network access mode of the second equipment to the bound resource set.
20. The apparatus as claimed in claim 19, wherein the set of bound resources established by the establishing unit is specifically configured to:
when the situation that the local event is updated is monitored, the event is sent to the second equipment according to the network access mode, and the second equipment sends the event to the server.
21. An apparatus for OneM2M architecture device binding, for use in a second device of a machine-to-machine M2M system, comprising:
the receiving unit is used for receiving the equipment binding request forwarded by the server; wherein the device binding request is for a first device to request binding of the second device;
a sending unit, configured to send a binding determination message to the server after determining that a binding relationship is established with the first device;
the establishing unit is used for establishing a bound resource set locally according to the identifier of the first device carried by the device binding request;
and the adding unit is used for negotiating communication with the first equipment and adding the network access mode of the first equipment to the bound resource set.
22. The apparatus according to claim 21, wherein the set of bound resources established by the establishing unit is specifically configured to, when receiving an event related to the first device sent by the server, send the event to the first device according to the network access manner.
CN201610616060.5A 2016-07-29 2016-07-29 Method and device for binding OneM2M architecture equipment Active CN106231538B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610616060.5A CN106231538B (en) 2016-07-29 2016-07-29 Method and device for binding OneM2M architecture equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610616060.5A CN106231538B (en) 2016-07-29 2016-07-29 Method and device for binding OneM2M architecture equipment

Publications (2)

Publication Number Publication Date
CN106231538A CN106231538A (en) 2016-12-14
CN106231538B true CN106231538B (en) 2019-12-27

Family

ID=57535498

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610616060.5A Active CN106231538B (en) 2016-07-29 2016-07-29 Method and device for binding OneM2M architecture equipment

Country Status (1)

Country Link
CN (1) CN106231538B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109218142A (en) * 2017-06-30 2019-01-15 中兴通讯股份有限公司 One kind being based on OneM2M agreement platform of internet of things terminal access method and device
CN109819006B (en) 2017-11-22 2022-08-09 京东方科技集团股份有限公司 Method for operating target resource, node equipment and terminal device
CN110365587B (en) * 2018-03-26 2022-04-19 阿里巴巴集团控股有限公司 Inter-device communication method, device and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188821B (en) * 2011-12-29 2016-09-28 华为技术有限公司 The method of a kind of network equipment binding, the method for communication, Apparatus and system
CN104620632B (en) * 2012-09-12 2018-08-21 Lg 电子株式会社 Method and apparatus for asking the specific rights in relation to specific resources to obtain in a wireless communication system
US10341439B2 (en) * 2013-05-06 2019-07-02 Convida Wireless, Llc Semantics support and management in M2M systems
WO2015046960A1 (en) * 2013-09-27 2015-04-02 엘지전자 주식회사 Method for delivering notification message in m2m system and devices for same
CN104955153B (en) * 2015-05-29 2022-03-11 青岛海尔智能家电科技有限公司 Method, device and equipment for discovering resources

Also Published As

Publication number Publication date
CN106231538A (en) 2016-12-14

Similar Documents

Publication Publication Date Title
CN110214459A (en) The method and apparatus of business processing
CN110383896A (en) Method for network access, terminal, access net and core net
US11457045B2 (en) Methods and user equipment for exchanging service capabilities
US10750570B2 (en) Call termination method, application processor, and modem
CN109064267A (en) Order processing method, system, shared bicycle and the storage medium of shared bicycle
CN106231538B (en) Method and device for binding OneM2M architecture equipment
CN106850703B (en) Communication method based on social identity and server
CN103517243A (en) Emergency call establishment method, network equipment and communication system
CN112448873A (en) Equipment binding method and device and computer readable storage medium
CN114223235A (en) AMF node and method thereof
CN107426090B (en) Information processing method, device, medium, electronic device, server and system
JP5931224B2 (en) Data access method and apparatus
CN108541078B (en) Terminal binding method, system, terminal and server
CN111565235A (en) Method and device for obtaining address of multimedia message service server
CN114173429A (en) Communication method and system for wireless access network and edge computing platform under 5G private network
CN114095615A (en) Session establishment method, device, equipment and storage medium
CN113891419A (en) Policy routing establishing method and related device
CN113766435B (en) Method, device and storage medium for establishing communication group
CN113423094B (en) Network slice access method, terminal and slice service ordering server
CN109155903A (en) The determination method and device of SIM card information
CN108307534B (en) Method and device for establishing connection between devices
CN116017352A (en) Vehicle-mounted system, terminal, vehicle and resource sharing method
CN112333411A (en) Call method, server and computer readable storage medium
CN111263422A (en) Method and device for discovering intelligent equipment
CN104350726B (en) Near field communication device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant