Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real
Applying mode, the present invention is described in further detail.
Fig. 1 is the structure of an oneM2M system of offer of illustrating for the ease of understanding machine communication system oneM2M
Schematic diagram;System includes the CSE1 (common service entity, general service function) for belonging to machinery equipment, ownership
In gateway node CSE2, belong to service platform CSE3 and Application Function AE (Applicationentity, application
Function);Machinery equipment CSE1, Application Function AE and service platform CSE3 respectively with gateway node CSE2;Between various CSE
For Mcc interface, connect between application layer entity AE (Application level entity, application level function) and CSE for Mca
Mouthful.Machinery equipment CSE1 and Application Function AE are registered on gateway node CSE2, and it is flat that gateway node CSE2 is registered in service
On platform CSE3.
The main thought of this paper is to complete the process flow of traditional multiple step format by once-through operation, in order to reduce
Signaling burden in oneM2M system.
For the ease of can more understand some illustrative embodimentss herein, at this to herein presented some
Term is briefly described.
Network address URI (Uniform Resource Identifier, uniform resource identifier), is by URL
(Uniform Resource Locator, uniform resource locator) and URN (Uniform Resource Name, unified resource
Title) it forms, URI used herein refers to the URL with URN property.
Referring now to Fig. 2, Fig. 2 shows the flow charts according to the process resource control messages of some illustrative embodimentss.
As shown in Fig. 2, in some illustrative embodiments, disclosing a kind of processing method of Resource Control Message, being used for
The recipient of Resource Control Message, such as Application Function AE or intermediate entities CSE, comprising:
S11, the Resource Control Message that sender sends is received;
Wherein, sender can be the initiator AE or CSE of Resource Control Message, is also possible to reception resources control and disappears
Breath, then the intermediate entities CSE that Resource Control Message is forwarded.
S12, it receives the response to described sender feedback;It is described receive the response to be used to indicate be properly received the resource control
Message processed;
Recipient is receiveed the response, sender receives this after receiving Resource Control Message to what sender fed back
It receives the response, knows that recipient has been properly received Resource Control Message, stop waiting reception state, sender can carry out at this time
Other work disposals.
S13, the control required for the Resource Control Message first resource operation after the completion of, will include to described
The notification message of the identification information of the operating result of first resource and the Resource Control Message is sent to described sender.
When sender is in stopping and waits reception state, the notification message received, which can not determine, to be sent out before being directed to
Which Resource Control Message sent;The identification information of Resource Control Message is added in an announcement message, sender can be according to knowledge
Other information determines Resource Control Message, and the process flow for recording the Resource Control Message is completed, and the operation that will acquire
As a result corresponding filing processing is carried out.
Include the Resource Control Message of the information such as feedback addresses by sender's transmission, carries out recipient at segmented
Reason sends to sender and receives the response, and informs that sender has been properly received, and sender can carry out other operations at this time, send
Side is only once sent, and the signaling burden of oneM2M system is reduced.
It in some illustrative embodiments, include that result notice receives address in Resource Control Message.Wherein, as a result lead to
Know that receiving address is the network address URI that sender provides, the network address URI that sender provides can be sender's itself
One reception address URI.
In some illustrative embodiments, after receiving Resource Control Message, further includes: Secondary resource is established, and
Result notice reception address is stored in Secondary resource.
In some illustrative embodiments, notification message is sent to sender, specifically included: according in Secondary resource
Result notice receives address and sends a notification message to sender.Wherein, notification message can be transmitted directly to send out by current entity
The side of sending can also be sent to sender by least one intermediate entities.
It in some illustrative embodiments, also include addressing information and the control the of first resource in Resource Control Message
The operational order of one resource.Wherein, the addressing information of first resource is the network address URI of first resource.
In some illustrative embodiments, the operation of the first resource controlled required for the Resource Control Message, specifically
Include:
By the addressing information of the first resource in Resource Control Message and the operational order of control first resource to first
Resource carries out operation processing.
In some illustrative embodiments, also there is the addressing information of first resource in the Secondary resource of foundation and operation refers to
It enables.
In some illustrative embodiments, the operation of the first resource controlled required for the Resource Control Message, specifically
Include:
By the addressing information of the first resource in Secondary resource and the operational order of control first resource to first resource
Carry out operation processing.
In some illustrative embodiments, after receiving Resource Control Message, further includes:
Judge whether the first resource that Resource Control Message to be controlled belongs to current entity, i.e., whether is recipient itself
With first resource;
It is that current entity is the target entity with first resource, according to the addressing information and operational order of first resource
Operation processing is carried out to first resource;
No, current entity is intermediate entities, and the Resource Control Message received is forwarded to the target with first resource
Entity.
Wherein, Resource Control Message directly can be sent to target entity by intermediate entities, can also pass through at least one
Resource Control Message is sent to target entity by intermediate entities.Each intermediate entities also pass through the deterministic process.
In some illustrative embodiments, with the network address of target entity in the network address URI of first resource
URI.Target entity has first resource, and network address URI can be understood as higher level's catalogue of the URI of first resource, indicates
On the URI of first resource.Initiator and/or intermediate entities can be by the network address URI of target entity by resources control
Message is sent to target entity.
In some illustrative embodiments, after the Resource Control Message that the reception sender sends, further includes: obtain
Take the identification information of the Resource Control Message;It include the Resource Control Message in the Secondary resource established
The identification information.Wherein, the identification information of the Resource Control Message of acquisition can be Text Flag, such as character string,
Coding etc., can be Hypertext Markup, such as signaling, the image data of transmission etc..
In some illustrative embodiments, the identification information for obtaining the Resource Control Message, specifically includes:
Using the Resource Control Message as the identification information;Alternatively, generating the identification information of the Resource Control Message.
It in some illustrative embodiments, also include the message identification of Resource Control Message in the Resource Control Message
Code;The identification information for obtaining the Resource Control Message, specifically includes: described in the Resource Control Message
Message authentication code is as the identification information.
The flow chart according to process resource control message in some illustrative embodimentss is shown referring now to Fig. 3, Fig. 3.
As shown in figure 3, in some illustrative embodiments, disclosing a kind of processing method of Resource Control Message, being used for
The sender of Resource Control Message, such as the initiator AE or CSE of Resource Control Message, comprising:
S21, the notification message that recipient sends is received;
Wherein, the target entity that the first resource that recipient can be that Resource Control Message to be controlled is belonged to, can be with
It is the intermediate entities for playing forwarding capability between initiator and target entity, intermediate entities can be one or more.
S22, the identification information for obtaining operating result and Resource Control Message in the notification message;
S23, operation processing corresponding with the identification information is labeled as being completed.
Operating result in notification message is determined and the Resource Control Message corresponding relationship that sends before by identification information,
Corresponding operation record is found, and is to be completed by the recording mark.At this point, the process flow of the Resource Control Message terminates.
By the way that the identification information of Resource Control Message is added in an announcement message, avoiding sender can not be determined accordingly
Operation note ensure that the normal operation of oneM2M system.
In some illustrative embodiments, before the reception notification message, further includes:
Resource Control Message is sent to the recipient;
Wherein, the operation of the addressing information in the Resource Control Message comprising first resource, the control first resource
Instruction and result notice receive address.
In some illustrative embodiments, it is respectively described first that the addressing information and the result notice, which receive address,
The network address URI that resource and the recipient provide.Wherein, the addressing information of first resource is the network address of first resource
URI;It is the network address URI that sender provides that result notice, which receives address, and the network address URI that sender provides can be hair
One reception address URI of the side of sending itself.
It in some illustrative embodiments, also include Resource Control Message identification code in the Resource Control Message.
In some illustrative embodiments, by it is described Resource Control Message is issued after, further includes: receive for described
Recipient's feedback is receiveed the response, and described receive the response is used to indicate recipient and has been properly received the Resource Control Message.
The method according to the process resource control message in some illustrative embodimentss is shown referring now to Fig. 4, Fig. 4,
For the sender of Resource Control Message, such as Application Function AE or intermediate entities CSE, comprising:
S31, the Resource Control Message that sender sends is received;
Wherein, sender can be the initiator AE or CSE of Resource Control Message, is also possible to reception resources control and disappears
Breath, then the intermediate entities CSE that Resource Control Message is forwarded.
S32, it receives the response to described sender feedback;Wherein, it is described receive the response be used to indicate be properly received it is described
Resource Control Message;
Recipient is receiveed the response, sender receives this after receiving Resource Control Message to what sender fed back
It receives the response, knows that recipient has been properly received Resource Control Message, stop waiting reception state, sender can carry out at this time
Other work disposals.
S33, the first resource controlled required for the Resource Control Message is determined;
It in some illustrative embodiments, include addressing information and the control first of first resource in Resource Control Message
The operational order of resource;First resource is determined by the addressing information of first resource.
S34, judge whether first resource belongs to current entity, i.e., whether current entity itself has first resource;
1. i.e. current entity is target entity if itself having the first resource, then disappeared according to the resources control
Breath operates the first resource;
2. i.e. current entity is intermediate entities if itself not having the first resource, then the resources control is disappeared
Breath is forwarded to the recipient of first resource ownership;
In step S34, judge whether itself has the first resource, specifically include:
Judge whether the resources bank of itself has the resource location of the addressing information instruction of the first resource;If so,
Determine that there is the first resource;If it is not, then determining do not have the first resource.
In some illustrative embodiments, if itself has the first resource, according to the Resource Control Message
The first resource is operated, is specifically included: operation processing is carried out to the first resource according to the operational order.
In some illustrative embodiments, after receiving Resource Control Message, further includes:
First resource is established with the addressing information and operational order of the first resource in Resource Control Message;According to the money
Source control message operates the first resource, specifically includes: according to the addressing of the first resource saved in first resource
Information and operational order carry out operation processing to first resource.
S35, after the completion of the Resource Control Message is to the operation of the first resource, operating result is sent to described
Sender.
It in some illustrative embodiments, include that result notice receives address in the Resource Control Message.
In some illustrative embodiments, with the addressing information of the first resource in Resource Control Message, operational order and
Result notice receives address and establishes first resource.
In some illustrative embodiments, operating result is sent to described sender, specifically included: the operation is tied
Fruit receives address according to the result notice and is sent to described sender.
In some illustrative embodiments, the addressing information of first resource is the network address URI of first resource.
In some illustrative embodiments, with the network address of target entity in the network address URI of first resource
URI.Target entity has first resource, and network address URI can be understood as higher level's catalogue of the URI of first resource, indicates
On the URI of first resource.Initiator and/or intermediate entities can be by the network address URI of target entity by resources control
Message is sent to target entity.
In some illustrative embodiments, it is the network address URI that sender provides, sender that result notice, which receives address,
The network address URI of offer can be the reception address URI of sender itself.
The process according to the process resource control message in some illustrative embodimentss is shown referring now to Fig. 5, Fig. 5
Figure.
As shown in figure 5, in some illustrative embodiments, disclosing a kind of processing method of Resource Control Message, wherein
This illustrative embodiments is based on the embodiment used in oneM2M system shown in fig. 1, and machinery equipment CSE1 is resources control
The initiator of message, gateway node CSE2 are the target entity of Resource Control Message;
The method, comprising:
S41, machinery equipment CSE1 send Resource Control Message to gateway node CSE2;
Wherein, the control instruction and knot of the addressing information in Resource Control Message comprising first resource, operation first resource
Fruit notice receives address.
It in some illustrative embodiments, also include the identification code of Resource Control Message in Resource Control Message.
S42, gateway node CSE2 establish Secondary resource;
Wherein, gateway node CSE2 is with the control instruction and result of the addressing information of first resource, operation first resource
Notice receives the Secondary resource that address is established, i.e., includes addressing information, the operation first resource of first resource in Secondary resource
Control instruction and result notice receive address.
In some illustrative embodiments, the addressing information of first resource is the network address URI of first resource;As a result lead to
Know that receiving address is the network address URI that machinery equipment CSE1 is provided.
In some illustrative embodiments, gateway node CSE2 generates the identification information of Resource Control Message, can be as a means of
Source control message itself is used as identification information, can also regenerate the identification information of Resource Control Message.
It in some illustrative embodiments, also include the identification code of Resource Control Message in Resource Control Message;
Gateway node CSE2 is using the identification code of Resource Control Message as the identification information of Resource Control Message.
S43, gateway node CSE2 are receiveed the response to machinery equipment CSE1 feedback, this, which is receiveed the response, is used to indicate gateway node
CSE2 has received Resource Control Message;
S44, machinery equipment CSE1 receive receiveing the response for gateway node CSE2 feedback, the notification message to be received such as termination
State;
S45, gateway node CSE2 carry out at operation first resource according to the addressing information and operational order of first resource
Reason records operating result;
Wherein, gateway node CSE2 can be after receiving Resource Control Message, according to seeking in Resource Control Message
Location information and operational order carry out operation processing to first resource;It is also possible to the first resource that is stored in Secondary resource
Addressing information and operational order carry out operation processing to first resource.
S46, gateway node CSE2 generate notification message, and notification message is sent to machinery equipment CSE1;
Wherein, the identification information of the operating result in notification message including first resource and Resource Control Message;
S47, machinery equipment CSE1 receive notification message, and are handled according to notification message;
Wherein, machinery equipment CSE1 parses the identification information of operating result and Resource Control Message in notification message;
The state recording of corresponding Resource Control Message is determined according to identification information, and is to be completed by the recording mark.
The process according to the process resource control message in some illustrative embodimentss is shown referring now to Fig. 6, Fig. 6
Figure.
As shown in fig. 6, in some illustrative embodiments, disclosing a kind of processing method of Resource Control Message, wherein
This illustrative embodiments is based on the embodiment used in oneM2M system shown in fig. 1, and Application Function AE is resource control
The initiator of message processed, machinery equipment CSE1 are the target entity of Resource Control Message, and gateway node CSE2 is intermediate entities.
The method, comprising:
Resource Control Message is sent to gateway node CSE2 by S51, Application Function AE;
Wherein, the control instruction and knot of the addressing information in Resource Control Message comprising first resource, operation first resource
Fruit notice receives address.
It in some illustrative embodiments, also include the identification code of Resource Control Message in Resource Control Message.
S52, gateway node CSE2 receive Resource Control Message, receive the response to machinery equipment feedback;
Wherein, it receives the response and is used to indicate gateway node CSE2 and has received Resource Control Message.
The Resource Control Message received is transmitted to machinery equipment CSE1 by S53, gateway node CSE2;
Wherein, when gateway node CSE2 receives Resource Control Message, judge Resource Control Message to be controlled
Whether one resource belongs to gateway node CSE2;First resource is the resource on machinery equipment CSE1 in this embodiment;Therefore the
One resource is not to belong to gateway node CSE2, and gateway node CSE2 executes forwarding operation.
S54, machinery equipment CSE1 receive Resource Control Message, receive the response to gateway node CSE2 feedback;The response
Message is used to indicate machinery equipment CSE1 and has received Resource Control Message.
S55, machinery equipment CSE1 establish Secondary resource, by the addressing information of the first resource in Resource Control Message, behaviour
It instructs, result notice receives ground and the identification information location of Resource Control Message and is stored in Secondary resource;
In some illustrative embodiments, the addressing information of first resource is the network address URI of first resource;As a result lead to
Know that receiving address is the network address URI that Application Function AE is provided.
In some illustrative embodiments, machinery equipment CSE1 generates the identification information of Resource Control Message, can be as a means of
Source control message itself is used as identification information, can also regenerate the identification information of Resource Control Message.
It in some illustrative embodiments, also include the identification code of Resource Control Message in Resource Control Message;Machine
Equipment CSE1 is using the identification code of Resource Control Message as the identification information of Resource Control Message.
S56, machinery equipment CSE1 carry out at operation first resource according to the addressing information and operational order of first resource
Reason records operating result;
Wherein, machinery equipment CSE1 can be after receiving Resource Control Message, according to seeking in Resource Control Message
Location information and operational order carry out operation processing to first resource;It is also possible to the first resource that is stored in Secondary resource
Addressing information and operational order carry out operation processing to first resource.
S57, machinery equipment CSE1 generate notification message, and notification message is sent to gateway node CSE2;
Wherein, the identification information of the operating result in notification message including first resource and Resource Control Message;
The notification message received is sent to Application Function AE by S58, gateway node CSE2;
S59, Application Function AE receive notification message, and are handled according to notification message;
Wherein, Application Function AE parses the identification letter of operating result and Resource Control Message in notification message
Breath;The state recording of corresponding Resource Control Message is determined according to identification information, and is to be completed by the recording mark.
The frame according to the processing unit of Resource Control Message in some illustrative embodimentss is shown referring now to Fig. 7, Fig. 7
Figure.
As shown in fig. 7, in some illustrative embodiments, disclose a kind of Resource Control Message processing unit (such as
Processing unit 100), the recipient for Resource Control Message, comprising: receive the first of the Resource Control Message that sender sends
Receiving module (such as first receiving module 101);It receives the response to described sender feedback;Wherein, described receive the response is used for
Indicate the first feedback module (such as first feedback module 102) for being properly received the Resource Control Message;It is completed knowing
It will include the operation knot to the first resource after the operation of the first resource of control required for the Resource Control Message
The notification message of the identification information of fruit and the Resource Control Message is sent to the first sending module (such as of described sender
One sending module 103).
It in some illustrative embodiments, include that result notice receives address in the Resource Control Message.
In some illustrative embodiments, the processing unit, further includes: Secondary resource is established, in the Secondary resource
In at least save the identification information of the Resource Control Message and what the result notice received address first establish module
(such as first establish module 104);First sending module is after the completion of the operation to the first resource, by the notice
Message receives address according to the result notice saved in the Secondary resource and is sent to described sender.
In some illustrative embodiments, the processing unit, further includes: before establishing the Secondary resource, judgement
Whether itself there is the first resource controlled required for the Resource Control Message;If it is determined that there is the first resource, then
It controls described first and establishes the first judgment module (such as first judgment module 105) that module establishes the Secondary resource.
It in some illustrative embodiments, include the addressing information of the first resource in the Resource Control Message.
In some illustrative embodiments, the first judgment module is by judging it is described whether the resources bank of itself has
The resource location of the addressing information instruction of first resource;If it is determined that the resource location with addressing information instruction, then control
It makes described first and establishes module and establish the Secondary resource.
It in some illustrative embodiments, also include the operation for controlling the first resource in the Resource Control Message
Instruction.
In some illustrative embodiments, the processing unit, further includes: by the operational order, to described first
The first operation module (such as first operation module 106) that resource is operated.
In some illustrative embodiments, it is respectively described first that the addressing information and the result notice, which receive address,
The network address URI that resource and initiator provide.
It include the knowledge of the Resource Control Message in some illustrative embodimentss, the Secondary resource of foundation
Other information.
In some illustrative embodiments, described device, further includes: believe using the Resource Control Message as the identification
Breath;Alternatively, generate the identification information of the Resource Control Message identification information generation module (such as identification information generate
Module 107).
It in some illustrative embodiments, also include the message identification of Resource Control Message in the Resource Control Message
Code.
In some illustrative embodiments, the identification information generation module is to disappear described in the Resource Control Message
Identification code is ceased as the identification information.
The frame according to the processing unit of Resource Control Message in some illustrative embodimentss is shown referring now to Fig. 8, Fig. 8
Figure.
As shown in figure 8, in some illustrative embodiments, disclose a kind of Resource Control Message processing unit (such as
Processing unit 200), the recipient for Resource Control Message, comprising: receive the second of the Resource Control Message that sender sends
Receiving module (such as second receiving module 201);It receives the response to described sender feedback;Wherein, described receive the response is used for
Indicate the second feedback module (such as second feedback module 202) for being properly received the Resource Control Message;Determine the money
The identification module (such as identification module 203) of the first resource controlled required for the control message of source;When itself has described first
Resource, the second operation module that the first resource is operated according to the Resource Control Message (such as the second operation mould
Block 204);When itself do not have the first resource, by the Resource Control Message be forwarded to first resource ownership recipient
The second sending module (such as second sending module 205).
It in some illustrative embodiments, include the addressing information of first resource in the Resource Control Message.
In some illustrative embodiments, the processing unit, further includes: it is described to judge whether itself resources bank has
The second judgment module (such as second judgment module 206) of the resource location of the addressing information instruction of first resource is if so, touching
Send out the second operation module described;If it is not, then triggering second sending module.
It in some illustrative embodiments, also include the operation for controlling the first resource in the Resource Control Message
Instruction.
In some illustrative embodiments, second operation module according to the operational order to the first resource into
Row operation processing.
In some illustrative embodiments, the processing unit, further includes: when according to the Resource Control Message to described
After the completion of the operation of first resource, by operating result be sent to described sender third sending module (such as third send mould
Block 207).
It in some illustrative embodiments, include that result notice receives address in the Resource Control Message.
In some illustrative embodiments, the processing unit, further includes: Secondary resource is established, in the Secondary resource
It is middle save the result notice and receive the second of address establish module (such as second establish module 208);The third sends mould
Block, which is used to the operating result receiving address according to the result notice, is sent to described sender.
In some illustrative embodiments, it is respectively described first that the addressing information and the result notice, which receive address,
The network address URI that resource and described sender provide.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.