Stub network establishing method, device and system, and storage medium

Disclosed is a method for establishing a stub network, including: sending a networking request message to an M2M platform; receiving a networking confirmation message sent from the M2M platform, wherein the networking confirmation message comprises networking authorization information; sending a domain-join request for joining a domain to an M2M terminal which has authorized networking according to the networking authorization information; receiving a domain-join confirmation returned by the M2M terminal which has authorized networking and establishing a link for the M2M terminal which has authorized networking; receiving from an M2M terminal in the domain a data forwarding request which comprises identification of a target M2M terminal; and determining the target M2M terminal as an M2M terminal in the domain according to the identification of the target M2M terminal, and directly forwarding service data to the target M2M target terminal. Also disclosed is a device and system for establishing a stub network.

CROSS-REFERENCE TO RELATED APPLICATION

This application is based upon and claims priority to PCT Application No. PCT/CN2015/094838, filed Nov. 17, 2015, which is based upon and claims priority to Chinese Patent Application No. 201510118206.9, filed Mar. 17, 2015, the entire contents of which are incorporated herein by reference.

TECHNICAL FIELD

The present disclosure relates to Machine-to-Machine/Man (M2M) technologies, and more particularly, to a method, device and system for establishing a stub network based on an M2M gateway and a storage medium.

BACKGROUND

From point of view of logical functions, M2M communication networks can be divided into three layers: a sense extension layer, a network/service layer and an application layer.

The sense extension layer mainly realizes collection, automatic identification and intelligent control of physical world information. The main components in the sense extension layer include M2M terminals, such as bar code readers, RFID readers, near field communication (NFC) terminals, video terminals, location terminals, intelligent terminals, and sensor monitoring networks.

The network/service layer supports transmission, routing and control of the sense layer information, and provides supports for men-to-thing communications and thing-to-ting communications in Internet of things. Combined with the Internet of things classification, the network level specifically includes the network forms as follows: communication networks, Internet, industry networks and so on. The main components in the network/service layer include M2M service platforms.

The application layer contains a variety of specific Internet of things applications, including both public services and industry services. The industry services can be both public services for the public sectors and industry-specific services which can meet industry's specific application needs. The main components in the application include M2M application servers, simply referred to as M2M applications.

In practice, there are M2M applications with large number of terminals, large forwarding of service data and high real-time requirements. These applications may take up a lot of network resources and even cause network congestion, and it is difficult to meet real-time requirements.

SUMMARY

In order to solve the problems in related arts, the present disclosure provides a method, device and system for establishing a stub network based on an M2M gateway and a storage medium.

The technical solutions of embodiments of the present disclosure are as follows.

According to an embodiment of the present disclosure, there is provided a method for establishing a stub network based on a Machine-to-Machine/Man (M2M) gateway. The method includes the following steps.

An M2M gateway sends a networking request message to an M2M platform.

The M2M gateway receives a networking confirmation message sent from the M2M platform. The networking confirmation message includes networking authorization information.

The M2M gateway sends a domain-join request for joining a domain to an M2M terminal which has authorized networking according to the networking authorization information.

The M2M gateway receives a domain-join confirmation returned by the M2M terminal which has authorized networking and confirms to join the domain and establishing a link for the M2M terminal which has authorized networking.

The M2M gateway receives from an M2M terminal in the domain a data forwarding request which includes identification of a target M2M terminal.

The M2M gateway determines the target M2M terminal as an M2M terminal in the domain according to the identification of the target M2M terminal, and directly forwarding service data to the target M2M terminal.

According to an embodiments of the present disclosure, there is provided a method for establishing a stub network based on a Machine-to-Machine/Man (M2M) gateway. The method includes the following steps.

An M2M platform receives a networking request message sent from a M2M gateway.

The M2M platform forwards the networking request message to an M2M application.

The M2M platform forwards a networking confirmation message sent from the M2M application to the M2M gateway. The networking confirmation message includes networking authorization information.

According to an embodiments of the present disclosure, there is provided a method for establishing a stub network based on a Machine-to-Machine/Man (M2M) gateway. The method includes the following steps.

The M2M gateway sends a networking request message to an M2M platform.

The M2M platform forwards the networking request message to an M2M application.

The M2M application sends a networking confirmation message to the M2M platform. The networking confirmation message includes networking authorization information.

The M2M platform forwards the networking confirmation message to the M2M gateway.

The M2M gateway sends a domain-join request for joining a domain to an M2M terminal which has authorized networking according to the networking authorization information.

The M2M terminal which has authorized networking checks the domain-join request, and sends a domain-join confirmation to the M2M gateway.

The M2M gateway establishes a link for the M2M terminal which has authorized networking.

If the M2M terminal needs to send service data to a target M2M terminal, the M2M terminal sends a data forwarding request to the M2M gateway. The data forwarding request includes identification of the target M2M terminal.

The M2M gateway receives the data forwarding request which is sent by the M2M terminal in the domain and includes identification of the target M2M terminal, determines the target M2M terminal as an M2M terminal in the domain according to the identification of the target M2M terminal and directly forwards the service data to the target M2M terminal.

According to an embodiments of the present disclosure, there is provided Machine-to-Machine/Man (M2M) gateway, including:

a processor; and

The processor is configured to:

send a networking request message to an M2M platform;

receive a networking confirmation message sent from the M2M platform, wherein the networking confirmation message includes networking authorization information;

send a domain-join request for joining a domain to an M2M terminal which has authorized networking according to the networking authorization information;

receive a domain-join confirmation returned by the M2M terminal which has authorized networking and establish a link for the M2M terminal which has authorized networking;

receive from an M2M terminal in the domain a data forwarding request which includes identification of a target M2M terminal; and

determine the target M2M terminal as an M2M terminal in the domain according to the identification of the target M2M terminal, and directly forward service data to the target M2M terminal.

According to an embodiment of the present disclosure, there is provided a Machine-to-Machine/Man (M2M) platform, including:

a processor; and

The processor is configured to:

receive a networking request message sent from a M2M gateway;

forward the networking request message to an M2M application;

receive a networking confirmation message sent from the M2M application, the networking confirmation message including networking authorization information; and

forward the networking confirmation message sent from the M2M application to the M2M gateway.

According to an embodiment of the present disclosure, there is provided a system for establishing a stub network based on a Machine-to-Machine/Man (M2M) gateway, including an M2M terminal, an M2M gateway, an M2M platform and an M2M application.

The M2M terminal is configured to: check a domain-join request and send a domain-join confirmation to the M2M gateway; if it is needed to send service data to a target M2M terminal, send a data forwarding request to the M2M gateway. The data forwarding request includes identification of the target M2M terminal.

The M2M gateway is configured to: send a networking request message to the M2M platform, send a domain-join request for joining a domain to an M2M terminal which has authorized networking according to networking authorization information in the networking confirmation message, and after receive a domain-join confirmation, establish a link for the M2M terminal which has authorized networking; receive from the M2M terminal a data forwarding request which includes identification of the target M2M terminal, determine the target M2M terminal as an M2M terminal in the domain according to the identification of the target M2M terminal, and directly forward service data to the target M2M target terminal.

The M2M platform is configured to: forward the networking request message to the M2M application, and forwarding the networking confirmation message sent by the M2M application to the M2M gateway.

The M2M application is configured to: send the networking confirmation message to the M2M platform. The networking confirmation message includes the networking authorization information.

In the method, device, system for establishing a stub network based on an M2M gateway and a storage medium provided by embodiments of the present disclosure, the M2M gateway sends a networking request message to an M2M platform. The M2M gateway receives a networking confirmation message sent from the M2M platform, and the networking confirmation message includes networking authorization information. The M2M gateway sends a domain-join request for joining a domain to an M2M terminal which has authorized networking according to the networking authorization information, receives a domain-join confirmation returned by the M2M terminal which has authorized networking and establishes a link for the M2M terminal which has authorized networking. The M2M gateway receives from an M2M terminal in the domain a data forwarding request which includes identification of a target M2M terminal. The M2M gateway determines the target M2M terminal as an M2M terminal in the domain according to the identification of the target M2M terminal, and directly forwards service data to the target M2M target terminal. In this way, direct forwarding of service data between M2M terminals in a stub network may be realized using an M2M gateway, thereby improving system operation efficiency and meeting real-time requirements.

This section provides a summary of various implementations or examples of the technology described in the disclosure, and is not a comprehensive disclosure of the full scope or all features of the disclosed technology.

DETAILED DESCRIPTION

In an embodiment of the present disclosure, an M2M gateway sends a networking request message to an M2M platform. The M2M gateway receives a networking confirmation message sent from an M2M platform, and the networking confirmation message includes networking authorization information. The M2M gateway sends a domain-join request for joining a domain to an M2M terminal which has authorized networking according to the networking authorization information, receives a domain-join confirmation returned by the M2M terminal which has authorized networking and establishes a link for the M2M terminal which has authorized networking. The M2M gateway receives from an M2M terminal in the domain a data forwarding request which includes identification of a target M2M terminal. The M2M gateway determines the target M2M terminal as an M2M terminal in the domain according to the identification of the target M2M terminal, and directly forwards service data to the target M2M target terminal.

The present disclosure will be described in detail below with reference to drawings and exemplary embodiments.

First Embodiment

The embodiment of the present disclosure realizes a method for establishing a stub network based on an M2M gateway. As shown inFIG. 1, the method includes the following steps.

In step101, the M2M gateway sends a networking request message to an M2M platform.

The networking request message may include identification of an M2M terminal which requests networking.

In step102, the M2M gateway receives a networking confirmation message sent from the M2M platform. The networking confirmation message includes networking authorization information. The networking authorization information may include identification of an M2M terminal which has authorized networking and an authorization certificate.

In step103, the M2M gateway sends a domain-join request for joining a domain to the M2M terminal which has authorized networking according to the networking authorization information, receives a domain-join confirmation returned by the M2M terminal which has authorized networking and confirms to join the domain and establishes a link for the M2M terminal which has authorized networking.

The M2M gateway may establish a link for the M2M terminal which has authorized networking, such as a Bluetooth link, an infrared link, a WiFi link, a Zigbee link and the like.

In step104, the M2M gateway receives from an M2M terminal in the domain a data forwarding request which includes identification of a target M2M terminal.

In step105, the M2M gateway determines the target M2M terminal as an M2M terminal in the domain according to the identification of the target M2M terminal, and directly forwards service data to the target M2M target terminal.

Here, the M2M gate determines whether the target M2M terminal is an M2M terminal in the domain according to the identification of the target M2M terminal in the data forwarding request.

In step105, if the M2M determines that the target M2M is not an M2M terminal in the domain according to the identification of the target M2M terminal, the M2M gateway reports the service data to the M2M platform which performs outside-domain forwarding (the M2M platform forwards the service data outside the domain).

In an exemplary embodiment, in order to enable the M2M application to conduct the same service operations on M2M terminals at the same time to reduce consumption of network resources and improve system operation efficiency, in step102, the networking confirmation message further includes group configuration information of a group which is established by the M2M platform for M2M terminals having the same service capability. The group configuration information includes identification assigned to the group, identification of group members and identification of the M2M gateway which the group is affiliated with.

Accordingly, the M2M gateway further receives a group service request which is sent by an M2M application and forwarded by the M2M platform. The group service request includes the identification of the group and the identification of the M2M gateway. According to the group identification in the group service request, the M2M gateway searches identification of group members from locally stored group configuration information, and distributes the group service request to the group members according to the found identification of the group members. After receiving service responses fed by the group members, according to operation execution results indicated by the service response message, the M2M gateway processes the group service request distributed to the group members.

1) If the operation result indicates that the operation is performed successfully, the M2M gateway records the operation execution result of the group members.

2) If the operation result indicates that the operation is failed, the M2M resends the service request according to a resending policy.

The M2M gateway assembles service responses fed by the group members, and feeds the assembled group service response to the M2M application. The group service response includes an operation execution result indication, for example, success, failure, or no response.

Embodiments of the present disclosure further provide a first computer readable storage medium, including a set of instructions, which are configured to perform the method for establishing a stub network based on a Machine-to-Machine/Man (M2M) gateway according to the first embodiment.

Second Embodiment

The embodiment of the present disclosure provides a method for establishing a stub network based on an M2M gateway. As shown inFIG. 2, the method includes the following steps.

In step201, an M2M platform receives a networking request message sent from a M2M gateway.

The networking request message includes identification of an M2M terminal which requests networking.

In step202, the M2M platform forwards the networking request message to an M2M application.

The method may further include: performing authentication and authorization with respect to the M2M gateway by the M2M platform. Specifically, the M2M platform retrieves basic data of the M2M gateway from locally stored information according to the identification of the M2M gateway, and determines whether the access of the M2M gateway is approved and whether the M2M gateway has the service permission to forward data according to the basic data of the M2M gateway.

In step203, the M2M platform forwards a networking confirmation message sent from an M2M application to the M2M gateway. The networking confirmation message includes networking authorization information.

In the embodiment, the method may further include: receiving, by the M2M platform, service data reported by the M2M gateway and performing outside-domain forwarding for the service data.

In an exemplary embodiment, in order to enable the M2M application to conduct the same service operations on M2M terminals at the same time to reduce consumption of network resources and improve system operation efficiency, according to the networking authorization information in the networking confirmation message sent from the M2M application, the M2M platform retrieves basic data of M2M terminals which has authorized networking, creates a group for M2M terminals having the same capability, and sends a group update message to the M2M application. The update message includes group configuration information. The networking authorization information may include identification of an M2M terminal which has authorized networking and an authorization certificate. The group configuration information includes identification assigned to the group, identification of group members and identification of the M2M gateway which the group is affiliated with. The M2M platform carries the group configuration information in the networking confirmation message and sends the networking confirmation message to the M2M gateway.

In addition, the M2M platform receives a group service request which is sent by the M2M application according to the group configuration information, and forwards the group service request to the M2M gateway according to the identification of the M2M gateway in the group service request. The group service request may include the identification of the group and the identification of the M2M gateway.

Embodiments of the present disclosure further provide a second computer readable storage medium, including a set of instructions, which are configured to perform the method for establishing a stub network based on an M2M gateway according to the second embodiment.

Third Embodiment

The embodiment of the present disclosure provides a method for establishing a stub network based on an M2M gateway. As shown inFIG. 3, the method includes the following steps.

In step301, the M2M gateway sends a networking request message to an M2M platform.

The networking request message includes identification of an M2M terminal which requests networking.

In step302, the M2M platform forwards the networking request message to an M2M application.

The method may further include: performing authentication and authorization with respect to the M2M gateway by the M2M platform.

In step303, the M2M application sends a networking confirmation message to the M2M platform. The networking confirmation message includes networking authorization information. The networking authorization information may include identification of an M2M terminal which has authorized networking and an authorization certificate.

The step may further include: performing authentication and authorization with respect to the M2M gateway by the M2M application. Specifically, the M2M application retrieves subscription data of the M2M gateway from locally stored information according to the identification of the M2M gateway, determines whether the access of the M2M gateway is approved, and authorizes the networking request according to the service permission of the M2M gateway in the subscription data.

In step304, the M2M platform forwards the networking confirmation message to the M2M gateway.

In step305, the M2M gateway sends a domain-join request for joining a domain to an M2M terminal which has authorized networking according to the networking authorization information.

In step306, the M2M terminal which has authorized networking checks the domain-join request, and sends a domain-join confirmation to the M2M gateway.

Here, the check may be performed according to the authorization certificate in the domain-join request.

In step307, the M2M gateway establishes a link for the M2M terminal which has authorized networking.

In step308, if the M2M terminal needs to send service data to a target M2M terminal, the M2M terminal sends a data forwarding request to the M2M gateway. The data forwarding request includes identification of the target M2M terminal.

In step309, the M2M gateway receives the data forwarding request which is sent by the M2M terminal in the domain and includes identification of the target M2M terminal, determines the target M2M terminal as an M2M terminal in the domain according to the identification of the target M2M terminal and directly forwards the service data to the target M2M terminal.

Here, the M2M gateway determines whether the target M2M terminal is an M2M terminal in the domain according to the identification of the target M2M terminal in the data forwarding request.

In step309, if the M2M determines that the target M2M is not an M2M terminal in the domain according to the identification of the target M2M terminal, the M2M gateway reports the service data to the M2M platform which performs outside-domain forwarding.

In an exemplary embodiment, in order to enable the M2M application to conduct the same service operations on M2M terminals at the same time to reduce consumption of network resources and improve system operation efficiency, in step304, the M2M platform retrieves basic data of M2M terminals which has authorized networking, according to the networking authorization information in the networking confirmation message sent from the M2M application, creates a group for M2M terminals having the same capability, and sends a group update message to the M2M application. The group update message includes group configuration information. The group configuration information includes identification assigned to the group, identification of group members and identification of the M2M gateway which the group is affiliated with. The M2M platform carries the group configuration information in the networking confirmation message and sends the networking confirmation message to the M2M gateway.

Accordingly, when the M2M application needs to conduct the same service operations on the M2M terminals having the same service capability at the same time, the M2M applications sends a group service request to the M2M platform according to the locally stored group configuration information. The group service request includes the identification of the group and the identification of the M2M gateway.

The M2M platform receives the group service request which is sent by the M2M application according to the group configuration information, and forwards the group service request to the M2M gateway. That is, the M2M platform forwards the group service request to the M2M gateway according to the identification of the M2M gateway in the group service request.

The M2M gateway receives the group service request which is sent by the M2M application and forwarded by the M2M platform, and according to group identification in the group service request, searching identification of group members from the locally stored group configuration information, and distributes the group service request to the group members. After receiving service responses fed by the group members, according to operation execution results indicated by the service response message, the M2M gateway processes the group service request distributed to the group members.

1) If the operation result indicates that the operation is performed successfully, the M2M gateway records the operation execution result of the group members.

2) If the operation result indicates that the operation is failed, the M2M resends the service request according to a resending policy.

The M2M gateway assembles service responses fed by the group members, and feeds the assembled group service response to the M2M application. The group service response includes an operation execution result indication, for example, success, failure, or no response.

After receiving the group service response fed by the M2M gateway, the M2M application parses the operation execution result as indicated by the response message, and processes the group service request according to the operation execution result.

Embodiments of the present disclosure further provide a third computer readable storage medium, including a set of instructions, which are configured to perform the method for establishing a stub network based on a Machine-to-Machine/Man (M2M) gateway according to the third embodiment.

Fourth Embodiment

In order to implement the above methods, the embodiment of the present disclosure provides an M2M gateway. As shown inFIG. 4, the M2M gateway includes a first sending module41, a first receiving module42, a second sending module43, a link establishing module44, a second receiving module45and a data forwarding module46.

The first sending module41is configured to sending a networking request to an M2M platform.

The networking request message may include identification of an M2M terminal which requests networking.

The first receiving module42is configured to receive a networking confirmation message sent from the M2M platform. The networking confirmation message includes networking authorization information.

The networking authorization information may include identification of an M2M terminal which has authorized networking and an authorization certificate.

The second sending module43is configured to send a domain-join request for joining a domain to an M2M terminal which has authorized networking according to the networking authorization information.

The link establishing module44is configured to receive a domain-join confirmation returned by the M2M terminal which has authorized networking and establish a link for the M2M terminal which has authorized networking.

The second receiving module45is configured to receive from an M2M terminal in the domain a data forwarding request which includes identification of a target M2M terminal.

The data forwarding module46is configured to determine the target M2M terminal as an M2M terminal in the domain according to the identification of the target M2M terminal, and directly forward service data to the target M2M target terminal.

The data forwarding module46is further configured to, if it is determined that the target M2M terminal is not an M2M terminal within the domain, report the service data to the M2M platform which performs outside-domain forwarding.

In an embodiment, the networking confirmation message further includes group configuration information of a group which is established by the M2M platform for M2M terminals having the same service capability. The group configuration information may include identification assigned to the group, identification of group members, and identification of the M2M gateway which the group is affiliated with.

Accordingly, the M2M gateway further includes a group service process module47configured to receive a group service request which is sent by the M2M application and forwarded by the M2M platform, and according to the group identification in the group service request, search identification of group members from the locally stored group configuration information, and distribute the group service request to the group members according to the found identification of the group members; and after receive service responses fed by the group members, according to operation execution results indicated by the service response message, process the group service request distributed to the group members.

1) If the operation result indicates that the operation is performed successfully, the M2M gateway records the operation execution result of the group members.

2) If the operation result indicates that the operation is failed, the M2M resends the service request according to a resending policy.

Here, the group service request includes the identification of the group and the identification of the M2M gateway.

The M2M gateway further includes an assembling module48. The assembling module48is configured to assemble service responses fed by the group members, and feed the assembled group service response to the M2M application. The group service response includes an operation execution result indication, such as success, failure, or no response and the like.

Fifth Embodiment

The embodiment of the present disclosure provides an M2M platform. As shown inFIG. 5, the M2M platform includes a third receiving module51, a third sending module52, a fourth receiving module53and a fourth sending module54.

The third receiving module51is configured to receive a networking request message sent from a M2M gateway.

The third sending module52is configured to forward the networking request message to an M2M application.

The fourth receiving module53is configured to receive a networking confirmation message sent from the M2M application. The networking confirmation message includes networking authorization information.

The fourth sending module54is configured to forward the networking confirmation message sent from the M2M application to the M2M gateway.

The M2M platform further includes a first security module55configured to perform authentication and authorization with respect to the M2M gateway after the networking request message from the M2M gateway is received.

In the embodiment, the M2M platform further includes an outside-domain forwarding module56configured to receive service data reported by the M2M gateway and perform outside-domain forwarding for the service data.

In an embodiment, the fourth receiving module53is further configured to, according to the networking authorization information in the networking confirmation message sent from the M2M application, retrieve basic data of M2M terminals which has authorized networking, create a group for M2M terminals having the same capability, and send a group update message to the M2M application. The update message includes group configuration information. The networking authorization information may include identification of an M2M terminal which has authorized networking and an authorization certificate. The group configuration information includes identification assigned to the group, identification of group members and identification of the M2M gateway which the group is affiliated with.

The fourth sending module54is further configured to carry the group configuration information in the networking confirmation message and send the networking confirmation message to the M2M gateway.

In addition, the M2M platform may further include:

a fifth receiving module57configured to receive a group service request which is sent by the M2M application according to the group configuration information; and

a fifth sending module58configured to forward the group service request to the M2M gateway.

In practical applications, the functions of individual modules in the fourth and fifth embodiments may be realized by corresponding interfaces in combination with a central process unit (CPU), or a micro-processor (MPU), or a digital signal processor (DSP), or a Field Programmable Gate Array (FPGA) and the like.

Sixth Embodiment

The embodiment of the present disclosure provides a system for establishing a stub network based on an M2M gateway. As shown inFIG. 6, the system includes an M2M terminal61, an M2M gateway62, an M2M platform63, and an M2M application64.

The M2M terminal61is configured to: check a domain-join request and send a domain-join confirmation to the M2M gateway62; if it is needed to send service data to a target M2M terminal, send a data forwarding request to the M2M gateway62. The data forwarding request includes identification of the target M2M terminal.

The M2M gateway62is configured to: send a networking request message to the M2M platform63, send a domain-join request for joining a domain to the M2M terminal61which has authorized networking according to networking authorization information in the networking confirmation message, and after receive a domain-join confirmation, establish a link for the M2M terminal61which has authorized networking; receive from the M2M terminal61a data forwarding request which includes identification of the target M2M terminal, determine the target M2M terminal as an M2M terminal in the domain according to the identification of the target M2M terminal, and directly forward service data to the target M2M target terminal.

The M2M platform63is configured to: forward the networking request message to the M2M application64, and forward the networking confirmation message sent by the M2M application to the M2M gateway62.

The M2M application64is configured to: send the networking confirmation message to the M2M platform63. The networking confirmation message includes the networking authorization information. The networking authorization information may include identification of an M2M terminal which has authorized networking and an authorization certificate.

The M2M gateway62is further configured to, if it is determined that the target M2M terminal is not an M2M terminal in the domain according to the identification of the target M2M terminal, report service data to the M2M platform63.

The M2M platform63is configured to, after the service data reported by the M2M gateway62is received, perform outside-domain forwarding for the service data.

In an embodiment, the M2M platform63is further configured to, according to the networking authorization information in the networking confirmation message sent from the M2M application64, retrieve basic data of M2M terminals61which has authorized networking, creates a group for M2M terminals61having the same capability, and send a group update message to the M2M application64. The update message includes group configuration information. The group configuration information includes identification assigned to the group, identification of group members and identification of the M2M gateway which the group is affiliated with. The M2M platform63carries the group configuration information in the networking confirmation message and sends the networking confirmation message to the M2M gateway62.

Accordingly, the M2M application64is further configured to, when it is needed to conduct the same service operation on the M2M terminals61having the same service capability at the same time, send a group service request to the M2M platform63according to the locally stored group configuration information. The group service request includes the identification of the group and the identification of the M2M gateway62.

The M2M platform63is further configured to receive the group service request which is sent by the M2M application64according to the group configuration information and forward the group service request to the M2M gateway62. Here, the M2M platform63may forward the group service request to the M2M gateway62according to the identification of the M2M gateway62in the group service request.

The M2M gateway62is further configured to receive the group service request which is forwarded by the M2M platform63, and according to group identification in the group service request, search identification of group members from the locally stored group configuration information, and distribute the group service request to the group members according to the found identification of the group members; and after receive service responses fed by the group members, according to operation execution results indicated by the service response message, process the group service request distributed to the group members.

1) If the operation result indicates that the operation is performed successfully, the M2M gateway records the operation execution result of the group members.

2) If the operation result indicates that the operation is failed, the M2M resends the service request according to a resending policy.

The M2M gateway62is further configured to assemble service responses fed by the group members, and feed the assembled group service response to the M2M application64. The group service response includes an operation execution result indication, for example, success, failure, or no response.

The M2M application64is further configured to, after the group service response fed by the M2M gateway62is received, parse the operation execution result as indicated by the response message, and process the group service request according to the operation execution result.

The methods provided by embodiments of the present disclosure will be described in detail below with an example of a specific scenario.

As shown inFIG. 7, a method for establishing a stub network based on an M2M gateway may include the following steps.

In step701, an M2M gateway sends a networking request message to an M2M platform. The networking request message may include identification of an M2M terminal which requests networking.

In step702, after performing authentication and authorization on the M2M gateway, the M2M platform forwards the networking request to an M2M application.

In step703, after performing authentication and authorization on the M2M gateway, the M2M application sends a networking confirmation message to the M2M platform. The networking confirmation message includes networking authorization information.

The networking authorization information may include identification of an M2M terminal which has authorized networking and an authorization certificate.

In step704, according to the networking authorization information, the M2M platform retrieves basic data of M2M terminals which has authorized networking, creates a group for M2M terminals having the same capability, and sends a group update message to the M2M application. The update message includes group configuration information.

The group configuration information includes identification assigned to the group, identification of group members and identification of the M2M gateway which the group is affiliated with.

At the same time, the M2M platform sends a networking confirmation message to the M2M gateway. The networking confirmation message includes the networking authorization information and the group configuration information.

In step705, the M2M gateway sends a domain-join request for joining a domain to an M2M terminal which has authorized networking according to the networking authorization information. The request may include an authorization certificate.

In step706, the M2M terminal which has authorized networking checks the domain-join request, and sends a domain-join confirmation to the M2M gateway.

In step707, the M2M gateway establishes a link for the M2M terminal which has authorized networking.

In step708, if the M2M terminal in the domain needs to send service data to a target M2M terminal, the M2M terminal sends a data forwarding request to the M2M gateway. The data forwarding request includes identification of the target M2M terminal.

In step709, the M2M gateway conducts a domain determination according to the identification of the target M2M terminal, i.e., the M2M gateway determines whether the target M2M terminal is an M2M terminal in the domain.

1) If the target M2M terminal is an M2M terminal in the domain, the M2M gateway directly forwards the service data to the target M2M terminal in the domain.

2) If the target M2M terminal is not an M2M terminal in the domain, the M2M gateway reports the service data to the M2M platform which performs outside-domain forwarding.

In step710, the M2M gateway receives a data forwarding response fed by the target M2M terminal, and sends the response message to the M2M terminal in the domain.

In step711, when it is needed to conduct the same service operation on the M2M terminals having the same service capability at the same time, the M2M application sends a group service request to the M2M platform according to the locally stored group configuration information. The request message may include the identification of the group and the identification of the M2M gateway.

In step712, after conducting service authorization on the M2M application, the M2M platform forwards the group service request to the M2M gateway according to the identification of the M2M gateway.

In step713, the M2M gateway, according to group identification, searches identification of group members from the locally stored group configuration information, and distribute the group service request to the group members.

In step714, the group members execute the service request, and feed service response back to the M2M gateway. The response message may include the operation execution result indication, such as success, or failure and the like.

In step715, after receiving service responses fed by the group members, according to operation execution results indicated by the service response message, the M2M gateway process the group service request distributed to the group members.

1) If the operation result indicates that the operation is performed successfully, the M2M gateway records the operation execution result of the group members.

2) If the operation result indicates that the operation is failed, the M2M resends the service request according to a resending policy.

In step716, the M2M gateway assembles service responses fed by the group members, and feeds the assembled group service response to the M2M application. The response message includes an operation execution result indication, for example, success, failure, or no response.

In step717, after the group service response fed by the M2M gateway is received, the M2M application parses the operation execution result as indicated by the response message, and processes the group service request according to the service logic.

Exemplary embodiments of the present disclosure have been described above; however, it is to be understood that these exemplary embodiments are not intended to limit the scope of the present disclosure. Any changes, equivalent substitutes and improvements within the spirit and principle of the present disclosure are encompassed in the scope of the present disclosure.

INDUSTRIAL APPLICABILITY

In embodiments of the present disclosure, the M2M gateway sends a networking request to an M2M platform; the M2M gateway receives a networking confirmation message sent from the M2M platform, the networking confirmation message includes networking authorization information; the M2M gateway sends a domain-join request for joining a domain to an M2M terminal which has authorized networking according to the networking authorization information, receives a domain-join confirmation returned by the M2M terminal which has authorized networking and establishes a link for the M2M terminal which has authorized networking; the M2M gateway receives from an M2M terminal in the domain a data forwarding request which includes identification of a target M2M terminal; the M2M gateway determines the target M2M terminal as an M2M terminal in the domain according to the identification of the target M2M terminal, and directly forwards service data to the target M2M target terminal. In this way, direct forwarding of service data between M2M terminals in a stub network may be realized using an M2M gateway, thereby improving system operation efficiency and meeting real-time requirements.