CN102136976A - Machine transaction control method, device and system - Google Patents

Machine transaction control method, device and system Download PDF

Info

Publication number
CN102136976A
CN102136976A CN2011100447717A CN201110044771A CN102136976A CN 102136976 A CN102136976 A CN 102136976A CN 2011100447717 A CN2011100447717 A CN 2011100447717A CN 201110044771 A CN201110044771 A CN 201110044771A CN 102136976 A CN102136976 A CN 102136976A
Authority
CN
China
Prior art keywords
affairs
transaction
gateway
platform
transaction operation
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.)
Granted
Application number
CN2011100447717A
Other languages
Chinese (zh)
Other versions
CN102136976B (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.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201110044771.7A priority Critical patent/CN102136976B/en
Publication of CN102136976A publication Critical patent/CN102136976A/en
Priority to PCT/CN2011/079535 priority patent/WO2012113226A1/en
Application granted granted Critical
Publication of CN102136976B publication Critical patent/CN102136976B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The embodiment of the invention discloses a machine transaction control method, which comprises that: a machine-to-machine (M2M) platform receives a transaction handling request from a requester; the M2M platform generates and transmits a transaction operating command to transaction participating equipment or a gateway according to the connection properties of the transaction participating equipment, wherein the transaction operating command carries a transaction execution processing instruction; and the transaction participating equipment or the gateway executes a transaction according to the transaction operating command, and returns a transaction operating response to the M2M platform according to the transaction execution processing instruction. Therefore, the transaction handling efficiency is improved.

Description

A kind of machine transaction control method, device and system
Technical field
The present invention relates to communication technical field, relate in particular to a kind of machine transaction control method, device and system.
Background technology
In the transaction field, affairs have four property usually, be atomicity, consistency, isolation and persistence, atomicity requires all operations to affairs all to take place or all operations does not take place, the coherence request affairs keep the consistency of its operating data, isolation requires affairs not read the intermediate object program of another affairs, and persistent request promises to undertake that the result of affairs is lasting.Traditionally, distributed system has utilized two-phase commitment protocol and affairs coordinator to guarantee to operate atomicity, data consistency.Affairs participant then provides isolation and persistence, each participant in the two-phase commitment protocol chooses success or abort transaction in a vote, and its voting results are sent to affairs coordinator, then, affairs coordinator is based on making final decision from each affairs participant's voting results, only all votes when successful all participants, affairs coordinator is just submitted affairs to, shown in Fig. 1 (a), two affairs participants success of all voting, affairs coordinator is then submitted affairs to.Otherwise affairs coordinator is abort transaction, shown in Fig. 1 (b), and a ballot failure among two affairs participants, affairs coordinator is rollback then.
M2M (machine to machine, machine to machine) system allows wired, the wireless plurality of access modes of M2M equipment, under the different access waies according to the capacity of equipment difference, the M2M equipment that has directly connects platform, have via the gateway access platform, the M2M system supports transaction (Transaction Handling), purpose is four property that guarantee the some inter-entity operations of machine communication system, as: the permission system is from the faulty operation rollback, and M2M platform, gateway all possess the ability of the transaction response of converging in the M2M system.
M2M equipment in the transaction operation can directly connect platform also can connect platform via gateway, accordingly, there is the multiple ethod of remittance in the M2M affairs, how different situations issue the transaction operation request, how platform, gateway cooperate is converged the execution efficient that the transaction operation response will influence transaction operation, inappropriate affairs converge or cause judging the affairs final result, perhaps produce a large amount of unnecessary information interactions between equipment platform, and this all is the problem that needs solution.
Affairs coordinator adds extra associated data in the prior art in the affairs preparation request that the affairs participant sends, comprise: other participate in node identification in transaction identifiers, affairs fill order, the affairs, thereby reduce or the daily record of complete unnecessary affairs coordinator is forced to write, when breaking down by telegon and the correct transaction state information that participates in before fault is determined in node interactive query.
Summary of the invention
A kind of machine transaction control method is characterized in that, method comprises,
Machine to machine M2M platform receives the transaction request that the requesting party sends;
The M2M platform generates and issues the transaction operation order to affairs participation device or M2M gateway according to affairs participation device connection attribute;
The M2M platform receives the transaction operation response that affairs participation device or M2M gateway return, the transaction operation response be affairs participation device or M2M gateway according to transaction operation command execution affairs after, return.
A kind of machine transaction control system is characterized in that, system comprises,
Machine to machine M2M platform is used to receive the transaction request that the requesting party sends, and according to affairs participation device connection attribute, generates and issue the transaction operation order;
The affairs participation device is used for according to transaction operation command execution affairs, sends the transaction operation response to the M2M platform.
A kind of machine to machine platform is characterized in that, the machine to machine platform comprises,
Receiving element is used to receive the transaction request that the requesting party sends;
Generation unit is used for after receiving element receives transaction request, according to affairs participation device connection attribute, generates the transaction operation order;
Issue the unit, be used for sending the transaction operation order that generation unit generates to affairs participation device or M2M gateway.
A kind of machine to machine gateway is characterized in that, comprising:
Receiving element is used to receive the transaction operation order from the M2M platform, and the transaction operation order comprises that indication M2M gateway converges the affairs of transmitting the transaction operation response and carries out the processing indication; Receive the transaction operation response that the affairs participation device returns;
Converge the unit, the transaction operation response that is used for receiving element is received is converged;
Transmitting element is used for issuing the transaction operation order to the affairs participation device that connects; Converge the transaction operation response that obtains and send to the M2M platform converging the unit.
A kind of machine to machine gateway is characterized in that, comprising:
Receiving element is used to receive the transaction operation order from the M2M platform, after the transaction operation order comprises that indication M2M gateway control is carried out subsequent transaction renewal operation, returns the affairs execution of transaction execution results and handles indication; The affairs that the affairs participation device that reception connects returns are prepared response; Reception is upgraded response from the affairs of affairs participation device;
The convergence processing unit is used for carrying out the affairs preparation response that reception is converged in the processing indication according to affairs, and the result who prepares to respond according to the affairs that converge generates the affairs update instruction; Carry out the affairs renewal response that reception is converged in the processing indication according to affairs;
Transmitting element is used for carrying out the processing indication according to affairs and issues the affairs preparation instruction to the affairs participation device; Issue the affairs update instruction to the affairs participation device; The corresponding execution result of affairs renewal response that the convergence processing unit is converged returns to the M2M platform.
Description of drawings
Fig. 1 (a) is a transaction schematic diagram in the prior art;
Fig. 1 (b) is a transaction schematic diagram in the prior art;
Fig. 2 is the flow chart of a kind of machine transaction control method of the embodiment of the invention;
Fig. 3 is the flow chart of the another kind of machine transaction control method of the embodiment of the invention;
Fig. 4 is an embodiment of the invention gateway processes platform transaction operation order flow chart;
Fig. 5 is an embodiment of the invention machine transaction control system structural representation;
Fig. 6 is the another kind of machine transaction control system of an embodiment of the invention structural representation;
Fig. 7 is the another kind of machine transaction control system of an embodiment of the invention structural representation;
Fig. 8 is the another kind of machine transaction control system of an embodiment of the invention structural representation;
Fig. 9 is an embodiment of the invention M2M platform structure schematic diagram;
Figure 10 is the specific implementation flow chart of a kind of machine transaction control method of the embodiment of the invention;
Figure 11 is the specific implementation flow chart of the another kind of machine transaction control method of the embodiment of the invention;
Figure 12 is the specific implementation flow chart of the another kind of machine transaction control method of the embodiment of the invention;
Figure 13 is a kind of M2M gateway of embodiment of the invention structural representation;
Figure 14 is the another kind of M2M gateway of an embodiment of the invention structural representation.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
Fig. 2 is the method flow schematic diagram of first embodiment of the invention, comprising:
A1, machine to machine M2M platform receive the transaction request that the requesting party sends;
The requesting party here is an authorized entity, promptly has the right to the entity of M2M platform application transaction, and can be equipment such as personal terminal, server, comprise the transaction information that needs are handled in the transaction request here.
A2, described M2M platform generate and issue the transaction operation order to affairs participation device or gateway according to affairs participation device connection attribute;
Wherein, the transaction operation order specifically can be affairs preparation instruction or affairs update instruction, particularly, difference (affairs are upgraded and can be divided into affairs submission and transaction rollback) according to the affairs renewal, the affairs update instruction can comprise that again affairs submission instruction and transaction rollback instruct two kinds, wherein, it is to be ready to carry out under the situation of affairs at the affairs participation device that affairs are submitted instruction to, and indication affairs participation device is carried out the instruction of affairs; The transaction rollback instruction is to be not ready for carrying out under the situation of affairs at the affairs participation device, and indication affairs participation device recovers to carry out the instruction of preparation state before.
Wherein, according to the difference of affairs participation device connection attribute, the transaction operation order can also be carried different affairs and be carried out the processing indication.
A3, described affairs participation device or gateway be according to described transaction operation command execution affairs, and carry out according to described affairs and to handle indication the transaction operation response is returned to the M2M platform.
Accordingly, difference according to the transaction operation order, the transaction operation response is also corresponding different, the response of the transaction operation of correspondence is prepared response for affairs when the transaction operation order is the affairs preparation instruction, the response of the transaction operation of correspondence is upgraded response for affairs when the transaction operation order is the affairs update instruction, particularly, the affairs update instruction be affairs when submitting instruction to the transaction operation response of correspondence submit response to for affairs, the transaction operation response of correspondence is that transaction rollback responds when the affairs update instruction is the transaction rollback instruction.
Embodiment 1 receives the transaction request that the requesting party sends by machine to machine M2M platform; Described M2M platform generates and issues the transaction operation order to affairs participation device or gateway according to affairs participation device connection attribute, and described transaction operation order is carried affairs and carried out the processing indication; Described affairs participation device or gateway be according to described transaction operation command execution affairs, and carry out according to described affairs and to handle indication the transaction operation response is returned to the M2M platform, improved the affairs treatment effeciency.
Wherein, in the one embodiment of the invention M2M platform processes process as shown in Figure 3, concrete steps are:
301, the M2M platform receives transaction request;
The transaction request here is the transaction request in the steps A 1;
302, M2M platform retrieval M2M device gateway ownership judges whether that affairs are upgraded control procedure transfers to the home gateway processing, and adds the affairs execution and handle indication in the transaction operation order;
M2M platform retrieval M2M device gateway ownership situation, four kinds of situations of concrete branch: the direct-connected M2M platform of A. affairs participation device, B. a certain individual equipment in the affairs participation device connects the M2M platform via gateway, C. a plurality of equipment in the affairs participation device connect the M2M platform via same gateway, and all devices connects the M2M platform via same gateway in the D. affairs participation device.The M2M platform is according to the gateway ownership situation of affairs participation device, add correspondent transaction and carry out the processing indication, concrete, relative A, affairs are carried out to handle and are designated as sky, relative B, affairs are carried out to handle and are designated as sky or the response of indication gateway forwards transaction operation, relative C, affairs are carried out to handle to be designated as and are indicated the M2M gateway to converge the response of forwarding transaction operation, relative D, affairs execution processing is returned transaction execution results after being designated as and indicating the renewal of M2M gateway control execution subsequent transaction to operate.
And, during only there is something special D, affairs are upgraded control procedure transfer to home gateway and handle.
303, the M2M platform issues the transaction operation order to equipment or gateway;
304, the transaction operation response returned of M2M platform receiving equipment or gateway, and judge the final executing state of affairs;
Wherein, preparing response in all affairs all be when preparing successfully, and the M2M platform judges that affairs prepare successfully, to the things participation device send affairs submit to instruct otherwise, judgement gets nowhere, and instructs to affairs participation device transmission transaction rollback.
In one embodiment of the invention, M2M gateway processes process as shown in Figure 4, concrete steps are:
401, gateway receives the order of M2M platform transaction operation, carries affairs in the described transaction operation order and carries out the processing indication;
Here only at the situation B in the steps A 2, C, D;
402, gateway issues the transaction operation order to the affairs participation device;
Wherein, relative A, gateway can directly be transmitted the transaction operation order to the affairs participation device;
Relative B, the transaction operation order that issues at the M2M platform does not comprise affairs to be carried out when handling indication, and gateway can directly be transmitted the transaction operation order to the affairs participation device; The transaction operation order that issues at the M2M platform comprises affairs and carries out when handling indication, gateway can be deleted and be handed down to the affairs participation device after the transaction operation order comprises affairs execution processing indication, also can regenerate the transaction operation order and be handed down to the affairs participation device;
Relative C and D, gateway can delete and be handed down to the affairs participation device after the transaction operation order comprises affairs execution processing indication, also can regenerate the transaction operation order and be handed down to the affairs participation device.
403, the transaction operation response returned of gateway receiving equipment;
The affairs participation device returns to gateway with the transaction operation response after executing affairs;
404, gateway is carried out to handle according to affairs and is indicated the direct transaction operation of transmitting to respond the platform to M2M, or converges the transaction operation response;
Gateway is after the transaction operation response of receiving the affairs participation device, carry out the processing indication according to affairs, carry out processing as affairs and be designated as transmitted response, then the gateway forwards transaction operation responds the platform to M2M, carry out to handle to be designated as affairs and converge response or carry out subsequent transaction by the M2M gateway control and upgrade operation, then change step 405;
405, gateway judges whether by the gateway control affairs;
Gateway at first judges whether to receive whole transaction operation responses, if, determine whether again by the gateway control affairs, as not being, then forward step 406 to by the gateway control affairs; If by the gateway control affairs, then forward step 407 or 408 to.Particularly, if after the transaction operation order that the M2M platform that gateway receives issues comprises that indicating gateway control to carry out subsequent transaction upgrades operation, return the affairs of transaction execution results and carry out the processing indication, then gateway is judged by the gateway control affairs.
406, the transaction operation that sends after converging responds the platform to M2M
407, gateway sends affairs to the affairs participation device and submits instruction to;
Gateway judges whether to receive whole transaction operation responses, whole transaction operations responses to be received all be successfully after, gateway sends affairs to the affairs participation device and submits to and ask, and commentaries on classics step 408;
408, gateway sends the transaction rollback instruction to the affairs participation device;
Gateway judges whether to receive whole transaction operation responses, and whole transaction operations responses to be received have one at least when unsuccessful, and gateway sends the transaction rollback instruction to the affairs participation device, and changes step 408;
409, gateway reports transaction execution results to the M2M platform.
Gateway is receiving after affairs that all devices returns submit response or transaction rollback response to, converge the affairs of returning and submit response or transaction rollback response to, and will converge the affairs that obtain and submit to response or the corresponding transaction execution results of transaction rollback response to report to the M2M platform.
Flow process finishes.
Fig. 5 is the system configuration schematic diagram of second embodiment of the invention, comprising:
Machine to machine M2M platform 501 is used to receive the transaction request that the requesting party sends, and according to affairs participation device connection attribute, generates and issue the transaction operation order; Specifically describe reference example one A2 step and 301~305 steps, repeat no more here.
Affairs participation device 502 is used for according to transaction operation command execution affairs, sends the transaction operation response to described M2M platform.
Fig. 6 is the system configuration schematic diagram of third embodiment of the invention, and wherein, an affairs participation device 502 in the affairs participation device connects M2M platform 501 via a M2M gateway 503, comprising:
M2M platform 501 is used to receive the transaction request that the requesting party sends, and according to affairs participation device connection attribute, generates and issue the transaction operation order; Specifically describe reference example one A2 step and 301~305 steps, repeat no more here.
The one M2M gateway 503 is used for issuing the transaction operation order to a described affairs participation device 502, and the transaction operation response that receives is sent to M2M platform 501.
A described affairs participation device 502 is used for according to transaction operation command execution affairs, sends the transaction operation response to M2M platform 501.Wherein, sending the transaction operation response to the M2M platform specifically is that the transaction operation response is sent to a M2M gateway 503, makes subsequent treatment by a M2M gateway 503.
Fig. 7 is the system configuration schematic diagram of fourth embodiment of the invention, and wherein, at least two equipment 502 in the affairs participation device connect M2M platform 501 via the 2nd M2M gateway 504;
M2M platform 501, be used to receive the transaction request that the requesting party sends, according to affairs participation device connection attribute, generate and issue the transaction operation order, the transaction operation order comprises that indication the 2nd M2M gateway converges the affairs of transmitting the transaction operation response and carries out the processing indication; Specifically describe reference example one A2 step and 301~305 steps, repeat no more here.
The 2nd M2M gateway 504, be used for issuing the transaction operation order to described at least two affairs participation devices 502, according to the transaction operation order transaction operation response that at least two equipment return is converged, the response of the transaction operation after converging is sent to M2M platform 501.
Described at least two affairs participation devices 502 are used for according to transaction operation command execution affairs, send the transaction operation response to M2M platform 501.Wherein, sending the transaction operation response to the M2M platform specifically is that the transaction operation response is sent to the 2nd M2M gateway 504, makes subsequent treatment by the 2nd M2M gateway 504.
Fig. 8 is the system configuration schematic diagram of fifth embodiment of the invention, and wherein, the quantity of affairs participation device 502 is at least two, and these at least two affairs participation devices connect M2M platform 501 via the 3rd M2M gateway 505;
M2M platform 501, be used to receive the transaction request that the requesting party sends, according to affairs participation device connection attribute, generate and issue the transaction operation order, the transaction operation order is returned the affairs execution of transaction execution results and is handled indication after comprising that indicating 505 controls of the 3rd M2M gateway to carry out subsequent transaction upgrades operation; Specifically describe reference example one A2 step and 301~305 steps, repeat no more here.
The 3rd M2M gateway 505 is used for carrying out the processing indication according to affairs and issues the affairs preparation instruction to all devices that connects; After receiving the affairs preparation response from all devices, execution is handled and is indicated the affairs preparation response of converging reception according to affairs, issues the affairs update instruction according to result's generation of the affairs preparation response of converging and to all devices; After receiving affairs renewal response, carry out the affairs renewal response that reception is converged in the processing indication, the affairs that converge are upgraded the result who responds return to M2M platform 501 according to described affairs from described all devices.
Affairs participation device 502 is used for according to transaction operation command execution affairs, sends the transaction operation response to the M2M platform.Wherein, sending the transaction operation response to the M2M platform specifically is that the transaction operation response is sent to the 3rd M2M gateway 505, makes subsequent treatment by the 3rd M2M gateway 505.
By affairs participation device 501, be used to carry out affairs, and return transaction operation and respond to gateway or platform.Gateway 502, be used for according to described transaction operation command execution affairs, and carry out according to described affairs and to handle indication the transaction operation response is returned to the M2M platform, M2M platform 503, be used to receive the transaction request that the requesting party sends,, generate and issue the transaction operation order to affairs participation device or gateway according to affairs participation device connection attribute, described transaction operation order is carried affairs and is carried out the processing indication, has improved the affairs treatment effeciency.
Fig. 9 is the M2M platform structure schematic diagram of sixth embodiment of the invention, comprising:
Receiving element 601 is used to receive the transaction request that the requesting party sends.
Generation unit 602 is used for according to affairs participation device connection attribute, generating the transaction operation order after receiving element 601 receives described transaction request;
Wherein, with respect to above-mentioned situation A the time, the transaction operation order that generation unit 602 generates can not carried affairs and be carried out and handle indication;
With respect to above-mentioned situation B the time, the transaction operation order that generation unit 602 generates can not carried affairs and be carried out and handle indication, also can carry affairs and carry out and handle indication;
During with respect to above-mentioned situation C and D, the transaction operation order that generation unit 602 generates is carried affairs and is carried out the processing indication;
Issue unit 603, be used for sending described transaction operation order to affairs participation device or M2M gateway.
Optionally, the transaction operation order is the affairs preparation instructions; Under this situation, receiving element 601 can also be used to receive the affairs that affairs participation device or gateway return and prepare response; This M2M platform further comprises,
Judging unit 604, be used to converge the affairs preparation response that described receiving element 601 receives, prepare corresponding judgement affairs standby condition according to the affairs after converging, then will send affairs as success and submit instruction to the things participation device, as failure then to as described in the affairs participation device send the transaction rollback instruction.
More than the A2 step and 301~305 steps of detailed description reference example one of each unit, do not giving unnecessary details here.
Embodiment six is by a kind of M2M platform, comprise, receiving element, be used to receive the transaction request that the requesting party sends, receive the transaction operation response that participation device or gateway return, generation unit is used for according to affairs participation device connection attribute, generate the transaction operation order, described transaction operation order is carried affairs and is carried out the processing indication; Issue the unit, be used to issue described transaction operation order, improved the affairs treatment effeciency to affairs participation device or gateway.
Figure 10 is the specific implementation flow chart of a kind of machine transaction control method of seventh embodiment of the invention, comprise, the requesting party, the M2M platform, gateway, affairs participation device 1, affairs participation device 2, affairs participation device 1 directly links to each other with the M2M platform, and affairs participation device 2 links to each other with the M2M platform through gateway, and concrete steps comprise:
701, the requesting party sends transaction request to the M2M platform;
This step purpose is to create transaction resource, comprises application ID in the transaction request, address resource ID, and new resources ID, contents processing, access rights ID, the following program of specific implementation reference:
POST?.../{api?Version}/m2mResource/transaction/platformCoordinator?resForm
at=XML?HTTP/1.1
Content-Type:application/xml;charset=UTF-8
Host:example.com:80
<?xml?version=″1.0″encoding=″UTF-8″?>
<m2m:transactionResource?xmlns:ts=″urn:m2m:xml:rest:transaction:1″>
<indicator>
<m2m:process>“aggregation”</m2m:process>
<m2m:commit-right>true</m2m:commit-right>
</indicator>
<participant-lists>
<participant?name=“smart?metering?A″>
<entry?uri=“http://example.org/m2mResource/dev1″></entry>
<operations?type=“prepare″>
<m2m:turn-on>true</m2m:turn-on>
</operations>
</participant>
<participant?name=“smart?metering?B″>
<entrv?uri=“ http://example.org/m2mResource/gateway/dev2″></entry>
<operations?type=“prepare″>
<m2m:turn-on>true</m2m:turn-on>
</operations>
</participant>
</participant-lists>
</m2m:transactionResource>
702, the M2M platform sends the affairs preparation instruction to gateway;
Specifically comprise application ID in the affairs preparation instruction, address resource ID, transaction resource ID, handle content of operation, particularly point out Process=" relay " simultaneously, Commit-Right=" false ", transmit the transaction operation response with expression, do not submit authority to, the following program of specific implementation reference:
POST.../{apiVersion}/m2mResource/transaction/gatewayCoordinator?resForma
t=XML?HTTP/1.1
Content-Type:application/xml;charset=UTF-8
Host:example.com:80
<?xml?version=″1.0″encoding=″UTF-8″?>
<m2m:transactionOperationResource
xmlns:ts=″urn:m2m:xml:rest:transaction:1″>
<m2m:transactionResource?id=“1234”/>
<indicator>
<m2m:process>“relay”</m2m:process>
<m2m:commit-right>false</m2m:commit-right>
</indicator>
<participant?name=“smart?metering?A″>
<entry?uri=“ http://example.org/m2mResource/dev1″></entrv>
<operations?type=“prepare″>
<m2m:turn-on>true</m2m:turn-on>
</operations>
</participant>
</m2m:transactionOperationResource>
703, the M2M platform sends the affairs preparation instruction to affairs participation device 1;
Specifically comprise application ID in the affairs preparation instruction, address resource ID, transaction resource ID handles content of operation.
704, gateway issues the affairs preparation instruction to affairs participation device 2;
Specifically comprise application ID in the affairs preparation instruction, address resource ID, transaction resource ID handles content of operation.The affairs preparation instruction that this issues can be generated by gateway oneself, also can directly transmit affairs preparation instruction from the M2M platform by gateway.
705, affairs participation device 1 returns affairs to the M2M platform and prepares response;
Comprise transaction resource ID and transaction operation ID.
706, affairs participation device 2 returns affairs to gateway and prepares response;
Comprise transaction resource ID and transaction operation ID.
707, gateway sends affairs to the M2M platform and prepares response;
Comprise transaction resource ID and transaction operation ID.
708, the M2M platform carries out the affairs submission;
The M2M platform is prepared response according to the affairs after converging, and judges current affairs executing state, as two affairs returning to prepare response all be successfully, then submit to, as not being then rollback.
709, the M2M platform sends affairs to affairs participation device 1 and submits instruction to;
Affairs are submitted to and are specifically comprised application ID in the instruction, address resource ID, and transaction resource ID handles content of operation, and comprises commit, has the right to submit to expression affairs participation device 1, and promptly current affairs are finished separately by affairs participation device 1.
710, the M2M platform sends affairs to gateway and submits instruction to;
Affairs are submitted to and are specifically comprised application ID in the instruction, address resource ID, and transaction resource ID handles content of operation, and comprises commit, has the right to submit to expression affairs participation device 2, and promptly current affairs are finished separately by affairs participation device 2.
711, gateway issues affairs to affairs participation device 2 and submits instruction to;
712, affairs participation device 1 returns affairs to the M2M platform and submits response to;
Comprise transaction resource ID and transaction operation ID, and comprise comfirm, confirm by the M2M platform with expression.
713, affairs participation device 2 returns affairs to gateway and submits response to;
Comprise transaction resource ID and transaction operation ID, and comprise comfirm, confirm by the M2M platform with expression.
714, gateway sends affairs to the M2M platform and submits response to;
Comprise transaction resource ID and transaction operation ID, and comprise comfirm, confirm by the M2M platform with expression.
Wherein, in one embodiment of the invention, the M2M platform can further return final result to transaction requestor.Particularly, the M2M platform can directly return execution result, or waits for requestor's subsequent query execution result.
Embodiment 7 is applicable to that the affairs participation device directly is connected with M2M, or the scene contacted directly by gateway of single affairs participation device, is adopted by the M2M platform and carries out converging of transaction operation response, and the mode that the control affairs are submitted to makes the efficient of transaction improve.
Figure 11 is the specific implementation flow chart of a kind of machine transaction control method of eighth embodiment of the invention, comprise, the requesting party, M2M platform, gateway, affairs participation device 1, affairs participation device 2, other gateway or affairs participation device, affairs participation device 1 and affairs participation device 2 are connected on the gateway, other gateway or affairs participation device link to each other with the M2M platform, and the specific implementation flow process is as follows:
801, the requesting party sends transaction request to the M2M platform;
This step purpose is to create transaction resource, comprises application ID in the transaction request, address resource ID, and new resources ID, contents processing, access rights ID, the following program of specific implementation reference:
POST.../{apiVersion}/m2mResource/transaction/platformCoordinator?resForm
at=XML?HTTP/1.1
Content-Type:application/xml;charset=UTF-8
Host:example.com:80
<?xml?version=″1.0″encoding=″UTF-8″?>
<m2m:transactionResource?xmlns:ts=urn:m2m:xml:rest:transaction:1″>
<indicator>
<m2m:process>“aggregation”</m2m:process>
<m2m:commit-right>true</m2m:commit-right>
</indicator>
<participant-lists>
<participant?name=“smart?metering?A″>
<entry?uri=“http://example.org/m2mResource/gateway/dev1″></entry>
<operations?type=“prepare″>
<m2m:turn-on>true</m2m:turn-on>
</operations>
</participant>
<participant?name=“smart?metering?B″>
<entry?uri=“http://example.org/m2mResource/gateway/dev2″></entry>
<operations?type=“prepare″>
<m2m:turn-on>true</m2m:turn-on>
</operations>
</participant>
<participant?name=“smart?metering?C″>
<entry?uri=“ http://example.org/m2mResource/dev3″></entry>
<operations?type=“prepare″>
<m2m:turn-on>true</m2m:turn-on>
</operations>
</participant>
</participant-lists>
</m2m:transactionResource>
802, the M2M platform sends the affairs preparation instruction to gateway;
Specifically comprise application ID in the affairs preparation instruction, address resource ID, transaction resource ID, handle content of operation, particularly point out Process=" aggregation " simultaneously, Commit-Right=" false " converges the transaction operation response with expression, do not submit authority to, specific implementation is with reference to following program;
POST.../{apiVersion}/m2mResource/transaction/gatewayCoordinator?resForma
t=XML?HTTP/1.1
Content-Type:application/xml;charset=UTF-8
Host:example.com:80
<?xml?version=″1.0″encoding=″UTF-8″?>
<m2m:transactionOperationResource
xmlns:ts=″urn:m2m:xml:rest:transaction:1″>
<m2m:transactionResource?id=“1234”/>
<indicator>
<m2m:process>“aggregation”</m2m:process>
<m2m:commit-right>false</m2m:commit-right>
</indicator>
<participant-list>
<participant?name=“smart?metering?A″>
<entry?uri=“http://example.org/m2mResource/gateway/dev1″></entry>
<operations?type=“prepare″>
<m2m:turn-on>true</m2m:turn-on>
</operations>
</participant>
<participant?name=“smart?metering?B″>
<entry?uri=“http://example.org/m2mResource/gateway/dev2″></entry>
<operations?type=“prepare″>
<m2m:turn-on>true</m2m:turn-on>
</operations>
</participant>
</participant-list>
</m2m:transactionOperationResource>
803, gateway issues the affairs preparation instruction to affairs participation device 1;
Specifically comprise application ID in the affairs preparation instruction, address resource ID, transaction resource ID handles content of operation.The affairs preparation instruction that this issues can be generated by gateway oneself, also can directly transmit affairs preparation instruction from the M2M platform by gateway.
804, gateway issues the affairs preparation instruction to affairs participation device 2;
Specifically comprise application ID in the affairs preparation instruction, address resource ID, transaction resource ID handles content of operation.The affairs preparation instruction that this issues can be generated by gateway oneself, also can directly transmit affairs preparation instruction from the M2M platform by gateway.
805, the M2M platform sends the affairs preparation instruction to other gateway or affairs participation device;
Specifically comprise application ID in the affairs preparation instruction, address resource ID, transaction resource ID handles content of operation.
806, affairs participation device 1 returns affairs to gateway and prepares response;
Comprise transaction resource ID.
807, affairs participation device 2 returns affairs to gateway and prepares response;
Comprise transaction resource ID.
808, gateway is prepared to respond to affairs and is converged;
Wherein the affairs of affairs participation device 2 are prepared response for failing, and determine that then current affairs are failure.
809, gateway is prepared response to the affairs that the M2M platform returns failure;
810, other gateway or affairs participation device return affairs to the M2M platform and prepare response;
811, the M2M platform need to determine rollback;
After the M2M platform has converged the response of all transaction operations, prepare response according to the affairs of the failure in the step 811 at least and determine that current affairs executing state is failure, determines to carry out rollback.
812, the M2M platform sends the transaction rollback instruction to gateway;
Specifically comprise application ID in the transaction rollback instruction, address resource ID, transaction resource ID handles content of operation, carries the transaction rollback indication simultaneously " Rollback ", the expression rollback;
813, gateway issues the transaction rollback instruction to affairs participation device 1;
814, gateway issues the transaction rollback instruction to affairs participation device 2;
815, the M2M platform sends the transaction rollback instruction to other gateway or affairs participation device;
Specifically comprise application ID in the transaction rollback instruction, address resource ID, transaction resource ID handles content of operation, carries the transaction rollback indication simultaneously " Rollback ", the expression rollback;
816, affairs participation device 1 returns the transaction rollback response to gateway;
Comprise transaction resource ID.
817, affairs participation device 2 returns the transaction rollback response to gateway;
Comprise transaction resource ID.
818, gateway responds transaction rollback and converges;
Wherein affairs participation device 2 and affairs participation device 1 all are successfully, determine that then current transaction rollback is successfully, particularly, the transaction rollback response that two expressions affairs participation device 2 and affairs participation device 1 can being returned are successful pools a successful transaction rollback of expression and responds.
819, gateway returns the transaction rollback response to the M2M platform;
820, other gateway or affairs participation device return the transaction rollback response to the M2M platform;
It also is successfully that other gateway or affairs participation device return the transaction rollback response to the M2M platform, then determines current transaction rollback success.
Wherein, in one embodiment of the invention, the M2M platform can further return final result to transaction requestor.Particularly, the M2M platform can directly return execution result, or waits for requestor's subsequent query execution result.
Embodiment 8 is applicable to that a plurality of affairs participation devices connect the situation of M2M platform by same gateway, the M2M platform is according to affairs participation device connection attribute, generation also issues the transaction operation order to affairs participation device or gateway, and described transaction operation order is carried affairs and carried out the processing indication; Indicate described gateway that the transaction operation response of described a plurality of affairs participation devices is converged, improved the affairs treatment effeciency.
Figure 12 is the specific implementation flow chart of a kind of machine transaction control method of ninth embodiment of the invention, comprise, the requesting party, the M2M platform, gateway, affairs participation device 1, affairs participation device 2, affairs participation device 1 and affairs participation device 2 are connected on the gateway, and affairs participation device 1 and affairs participation device 2 participate in affairs simultaneously, and the specific implementation flow process is as follows:
901, the requesting party sends transaction request to the M2M platform;
This step purpose is to create transaction resource, comprises application ID in the transaction request, address resource ID, and new resources ID, contents processing, access rights ID, the following program of specific implementation reference:
POST .../{apiVersion}/m2mResource/transaction/platformCoordinator?resForm
at=XML?HTTP/1.1
Content-Type:application/xml;charset=UTF-8
Host:example.com:80
<?xml?version=″1.0″encoding=″UTF-8″?>
<m2m:transactionResource?xmlns:ts=″urn:m2m:xml:rest:transaction:1″>
<indicator>
<m2m:process>“aggregation”</m2m:process>
<m2m:commit-right>true</m2m:commit-right>
</indicator>
<participant-lists>
<participant?name=“smart?metering?A″>
<entry?uri=“http://example.org/m2mResource/gateway/dev1″></entry>
<operations?type=“prepare″>
<m2m:turn-on>true</m2m:turn-on>
</operations>
</participant>
<participant?name=“smart?metering?B″>
<entry?uri=“http://example.org/m2mResource/gateway/dev2″></entry>
<operations?type=“prepare″>
<m2m:turn-on>true</m2m:turn-on>
</operations>
</participant>
</participant-lists>
</m2m:transactionResource>
902, the M2M platform sends the affairs preparation instruction to gateway;
Specifically comprise application ID in the affairs preparation instruction, address resource ID, transaction resource ID, handle content of operation, particularly point out Process=" aggregation " simultaneously, Commit-Right=" true " converges the transaction operation response with the indication gateway, and gateway has the submission authority, and specific implementation is with reference to following program;
POST.../{apiVersion}/m2mResource/transaction/gatewayCoordinator?resForma
t=XML?HTTP/1.1
Content-Type:application/xml;charset=UTF-8
Host:example.com:80
<?xml?version=″1.0″encoding=″UTF-8″?>
<m2m:transactionOperationResource
xmlns:ts=″urn:m2m:xml:rest:transaction:1″>
<m2m:transactionResource?id=“1234”/>
<indicator>
<m2m:process>“aggregation”</m2m:process>
<m2m:commit-right>true</m2m:commit-right>
</indicator>
<participant-list>
<participant?name=“smart?metering?A″>
<entry?uri=“http://example.org/m2mResource/gateway/dev1″></entry>
<operations?type=“prepare″>
<m2m:turn-on>true</m2m:turn-on>
</operations>
</participant>
<participant?name=“smart?metering?B″>
<entry?uri=“http://example.org/m2mResource/gateway/dev2″></entry>
<operations?type=“prepare″>
<m2m:turn-on>true</m2m:turn-on>
</operations>
</participant>
</participant-list>
</m2m:transactionOperationResource>
903, gateway issues the affairs preparation instruction to affairs participation device 1;
Specifically comprise application ID in the affairs preparation instruction, address resource ID, transaction resource ID handles content of operation.The affairs preparation instruction that this issues can be generated by gateway oneself, also can directly transmit affairs preparation instruction from the M2M platform by gateway.
904, gateway issues the affairs preparation instruction to affairs participation device 2;
Specifically comprise application ID in the affairs preparation instruction, address resource ID, transaction resource ID handles content of operation.The affairs preparation instruction that this issues can be generated by gateway oneself, also can directly transmit affairs preparation instruction from the M2M platform by gateway.
905, affairs participation device 1 returns affairs to gateway and prepares response;
Comprise transaction resource ID.
906, affairs participation device 2 returns affairs to gateway and prepares response;
Comprise transaction resource ID.
907, gateway is prepared to carry out to respond to affairs and is converged
Wherein affairs participation device 2 affairs are prepared response for failing, and the result after then converging prepares to carry out failure for affairs.If the affairs that all affairs participation devices all return success prepare to carry out response, the result after then converging prepares to run succeeded for affairs.
908, be failure because current affairs are prepared execution result, and gateway has affairs power for decision, then determine the affairs participation device 1 and 2 of its administration is carried out the transaction rollback operation; If it is successfully that affairs are prepared execution result, then gateway can determine the affairs participation device 1 and 2 of its administration is carried out the affairs submit operation.
909, gateway issues the transaction rollback instruction to affairs participation device 1, wherein carries the transaction rollback indication " Rollback ", the expression rollback;
910, gateway issues the transaction rollback instruction to affairs participation device 2, wherein carries the transaction rollback indication " Rollback ", the expression rollback;
911, affairs participation device 1 returns the transaction rollback response to gateway;
Comprise transaction resource ID.
912, affairs participation device 2 returns the transaction rollback response to gateway;
Comprise transaction resource ID.
913, gateway returns transaction execution results to the M2M platform;
Wherein, in one embodiment of the invention, the M2M platform can further return final result to transaction requestor.Particularly, the M2M platform can directly return execution result, or waits for requestor's subsequent query execution result.
Embodiment 9 is applicable to that all affairs participation devices all are connected to the situation of M2M platform by same gateway, described M2M platform is according to affairs participation device connection attribute, generation also issues the transaction operation order to affairs participation device or gateway, and described transaction operation order is carried affairs and carried out the processing indication; Indicating described gateway not only the affairs of described a plurality of affairs participation devices to be prepared response converges, and judge the affairs executing state by gateway local, thereby submission or rolling back action in the further processing transactions of gateway local, judge and carry out follow-up transaction operation and need not to turn back to the M2M platform, improved the affairs treatment effeciency.
Figure 13 is the structural representation of the machine to machine gateway of tenth embodiment of the invention, comprising:
Receiving element 1301 is used to receive the transaction operation order from the M2M platform, and the transaction operation order comprises that indication M2M gateway converges the affairs of transmitting the transaction operation response and carries out the processing indication; Receive the transaction operation response that the affairs participation device returns;
Converge unit 1302, the transaction operation response that is used for receiving element 1301 is received is converged;
Transmitting element 1303 is used for issuing the transaction operation order to the affairs participation device that connects; Converge the transaction operation response that obtains and send to described M2M platform converging unit 1302.
Figure 14 is the structural representation of the machine to machine gateway of eleventh embodiment of the invention, comprising:
Receiving element 1401 is used to receive the transaction operation order from the M2M platform, and the transaction operation order comprises that indication M2M gateway converges after transaction operation response and control carries out subsequent transaction and upgrade operation, and the affairs of returning transaction execution results are carried out and handled indication; The affairs that the affairs participation device that reception connects returns are prepared response; Reception is upgraded response from the affairs of described affairs participation device;
Convergence processing unit 1402 is used for carrying out the affairs preparation response that reception is converged in the processing indication according to the affairs that receiving element 1401 receives, and the result who prepares to respond according to the affairs that converge generates the affairs update instruction; Carry out the affairs renewal response that reception is converged in the processing indication according to described affairs;
Transmitting element 1403 is used for carrying out the processing indication according to the affairs that receiving element 1401 receives and issues the affairs preparation instruction to the affairs participation device; Issue the affairs update instruction to the affairs participation device; The corresponding execution result of affairs renewal response that convergence processing unit 1402 is converged returns to the M2M platform.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method, be to instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
The above; only be the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.

Claims (16)

1. a machine transaction control method is characterized in that, described method comprises,
Machine to machine M2M platform receives the transaction request that the requesting party sends;
Described M2M platform generates and issues the transaction operation order to affairs participation device or M2M gateway according to affairs participation device connection attribute;
The M2M platform receives the transaction operation response that described affairs participation device or M2M gateway return, described transaction operation response be described affairs participation device or M2M gateway according to described transaction operation command execution affairs after, return.
2. the method for claim 1 is characterized in that, the direct-connected M2M platform of affairs participation device;
Described M2M platform generates and issues transaction operation order to affairs participation device or M2M gateway and comprise according to affairs participation device connection attribute:
Described M2M platform generates and issues the transaction operation order to the affairs participation device, and described transaction operation order is affairs preparation instruction or affairs update instruction;
Described affairs participation device or M2M gateway be according to described transaction operation command execution affairs, and carry out according to described affairs and to handle indication and the transaction operation response is returned comprised:
The affairs participation device is carried out the affairs preparation instruction and is returned affairs and prepare to respond the platform to M2M, and the affairs participation device is carried out the affairs update instruction and returned the affairs renewal and responds the platform to M2M.
3. the method for claim 1 is characterized in that, individual equipment connects the M2M platform via the M2M gateway in the affairs participation device;
Described M2M platform is according to affairs participation device connection attribute, generate and issue transaction operation order to affairs participation device or M2M gateway and comprise: described M2M platform generates and issues the transaction operation order to the M2M gateway, and described M2M gateway issues the transaction operation order to described individual equipment;
Described affairs participation device or M2M gateway are according to described transaction operation command execution affairs, and carry out according to described affairs and to handle indication and the transaction operation response is returned comprised: after described M2M gateway received transaction operation response from described individual equipment, the transaction operation order that issues according to described M2M platform was transmitted to described M2M platform with described transaction operation response.
4. method as claimed in claim 3 is characterized in that, the transaction operation order that described M2M platform issues comprises that the indication gateway sends the affairs execution processing indication of transaction operation response.
5. the method for claim 1 is characterized in that, at least two equipment connect the M2M platform via same M2M gateway in the affairs participation device;
Described M2M platform is according to affairs participation device connection attribute, generate and issue transaction operation order to affairs participation device or M2M gateway and comprise: described M2M platform generates and issues the transaction operation order to affairs M2M gateway, described M2M gateway issues the transaction operation order to described at least two equipment, and described transaction operation order comprises that indication M2M gateway converges the affairs execution of transmitting the transaction operation response and handles indication;
Described affairs participation device or M2M gateway are according to described transaction operation command execution affairs, and carry out according to described affairs and to handle indication and the transaction operation response is returned comprised: after described M2M gateway receives transaction operation response from described at least two equipment, carry out according to described affairs and to handle the transaction operation response that indication will receive and converge, and the transaction operation response that will converge acquisition sends to described M2M platform.
6. the method for claim 1 is characterized in that, all devices connects the M2M platform via same M2M gateway in the affairs participation device;
Described M2M platform is according to affairs participation device connection attribute, generate and issue transaction operation order to affairs participation device or M2M gateway and comprise: described M2M platform generates and issues the transaction operation order to affairs M2M gateway, after described transaction operation order comprises that indication M2M gateway control is carried out subsequent transaction renewal operation, return the affairs execution of transaction execution results and handle indication; Described M2M gateway is carried out to handle to indicate according to described affairs and is issued the affairs preparation instruction to described all devices;
Described affairs participation device or M2M gateway be according to described transaction operation command execution affairs, and carry out according to described affairs and to handle indication and the transaction operation response is returned comprised:
Described M2M gateway returns transaction execution results according to the transaction operation order that the M2M platform issues to the M2M platform.
7. method as claimed in claim 6 is characterized in that, the transaction operation order that described M2M gateway issues according to the M2M platform is returned transaction execution results to the M2M platform and comprised:
Described M2M gateway is carried out to handle to indicate according to described affairs and is converged the affairs preparation response from described all devices that receives, and prepares result's generation of response and issues the affairs update instruction to described all devices according to the affairs that converge; Handle indication according to described affairs execution and converge the affairs renewal response that receives, the corresponding execution result of affairs renewal response that converges is returned to described M2M platform from described all devices.
8. method as claimed in claim 7 is characterized in that, the result who prepares response in the described affairs that converge is when preparing successfully, and described affairs update instruction is that affairs are submitted instruction to;
Or
The result who prepares response in the described affairs that converge is when preparing failure, and described affairs update instruction is the transaction rollback instruction.
9. a machine transaction control system is characterized in that, described system comprises,
Machine to machine M2M platform is used to receive the transaction request that the requesting party sends, and according to affairs participation device connection attribute, generates and issue the transaction operation order;
The affairs participation device is used for according to described transaction operation command execution affairs, sends the transaction operation response to described M2M platform.
10. machine transaction control system as claimed in claim 9, it is characterized in that, an affairs participation device in the described affairs participation device connects described M2M platform via a M2M gateway, a described M2M gateway, be used for issuing the transaction operation order, the described transaction operation response that receives is sent to described M2M platform to a described affairs participation device.
11. machine transaction control system as claimed in claim 9, it is characterized in that, at least two equipment in the described affairs participation device connect described M2M platform via the 2nd M2M gateway, and described transaction operation order comprises that indication the 2nd M2M gateway converges the affairs of transmitting the transaction operation response and carries out the processing indication;
Described the 2nd M2M gateway, be used for issuing the transaction operation order to described at least two affairs participation devices, according to described transaction operation order the transaction operation response that described at least two equipment return is converged, the response of the transaction operation after converging is sent to described M2M platform.
12. machine transaction control system as claimed in claim 9, it is characterized in that, the quantity of described affairs participation device is at least two, these at least two affairs participation devices connect described M2M platform via the 3rd M2M gateway, after described transaction operation order comprises that indication the 3rd M2M gateway control is carried out subsequent transaction renewal operation, return the affairs execution of transaction execution results and handle indication;
Described the 3rd M2M gateway is used for carrying out the processing indication according to described affairs and issues the affairs preparation instruction to described all devices; Receive prepare response from the affairs of described all devices after, carry out according to described affairs and to handle indication and converge the affairs of reception and prepare response, the result who prepares response according to the affairs that converge generates and issues the affairs update instruction to described all devices; After receiving affairs renewal response, carry out the affairs renewal response that reception is converged in the processing indication, the affairs that converge are upgraded the result who responds return to described M2M platform according to described affairs from described all devices.
13. a machine to machine platform is characterized in that, described machine to machine platform comprises,
Receiving element is used to receive the transaction request that the requesting party sends;
Generation unit is used for after described receiving element receives described transaction request, according to affairs participation device connection attribute, generates the transaction operation order;
Issue the unit, be used for sending the transaction operation order that described generation unit generates to affairs participation device or M2M gateway.
14. machine to machine platform as claimed in claim 13 is characterized in that, described transaction operation order is the affairs preparation instructions;
Described receiving element also is used to receive the affairs that affairs participation device or gateway return and prepares response;
Described machine to machine platform further comprises,
Judging unit, be used to converge the affairs preparation response that described receiving element receives, prepare corresponding judgement affairs standby condition according to the affairs after converging, then will send affairs as success and submit instruction to the things participation device, as failure then to as described in the affairs participation device send the transaction rollback instruction.
15. a machine to machine gateway is characterized in that, comprising:
Receiving element is used to receive the transaction operation order from the M2M platform, and described transaction operation order comprises that indication M2M gateway converges the affairs of transmitting the transaction operation response and carries out the processing indication; Receive the transaction operation response that the affairs participation device returns;
Converge the unit, the transaction operation response that is used for described receiving element is received is converged;
Transmitting element is used for issuing the transaction operation order to the affairs participation device that connects; The described unit that converges is converged the transaction operation response that obtains and sends to described M2M platform.
16. a machine to machine gateway is characterized in that, comprising:
Receiving element is used to receive the transaction operation order from the M2M platform, after described transaction operation order comprises that indication M2M gateway control is carried out subsequent transaction renewal operation, returns the affairs execution of transaction execution results and handles indication; The affairs that the affairs participation device that reception connects returns are prepared response; Reception is upgraded response from the affairs of described affairs participation device;
The convergence processing unit is used for carrying out the affairs preparation response that reception is converged in the processing indication according to described affairs, and the result who prepares to respond according to the affairs that converge generates the affairs update instruction; Carry out the affairs renewal response that reception is converged in the processing indication according to described affairs;
Transmitting element is used for carrying out the processing indication according to described affairs and issues the affairs preparation instruction to described affairs participation device; Issue the affairs update instruction to described affairs participation device; The corresponding execution result of affairs renewal response that described convergence processing unit is converged returns to described M2M platform.
CN201110044771.7A 2011-02-24 2011-02-24 Machine transaction control method, device and system Active CN102136976B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201110044771.7A CN102136976B (en) 2011-02-24 2011-02-24 Machine transaction control method, device and system
PCT/CN2011/079535 WO2012113226A1 (en) 2011-02-24 2011-09-09 Method, device, and system for controlling machine transaction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110044771.7A CN102136976B (en) 2011-02-24 2011-02-24 Machine transaction control method, device and system

Publications (2)

Publication Number Publication Date
CN102136976A true CN102136976A (en) 2011-07-27
CN102136976B CN102136976B (en) 2014-12-31

Family

ID=44296636

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110044771.7A Active CN102136976B (en) 2011-02-24 2011-02-24 Machine transaction control method, device and system

Country Status (2)

Country Link
CN (1) CN102136976B (en)
WO (1) WO2012113226A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012113226A1 (en) * 2011-02-24 2012-08-30 华为技术有限公司 Method, device, and system for controlling machine transaction
WO2013037101A1 (en) * 2011-09-13 2013-03-21 Nokia Siemens Networks Oy Authentication mechanism
WO2013174204A1 (en) * 2012-09-12 2013-11-28 中兴通讯股份有限公司 Service control method and apparatus of terminal device
CN103731870A (en) * 2012-10-12 2014-04-16 中兴通讯股份有限公司 Management method and device for monitoring tasks
CN105245395A (en) * 2014-07-09 2016-01-13 中兴通讯股份有限公司 Strategy-based M2M terminal equipment monitoring and controlling method and device
CN106412116A (en) * 2016-11-17 2017-02-15 上海斐讯数据通信技术有限公司 Method and device for distributed processing on logging in of user by cloud access controller
KR101792331B1 (en) * 2015-07-10 2017-11-01 전자부품연구원 Method and System for Transaction in the M2M/IoT Platform
CN110521188A (en) * 2017-03-17 2019-11-29 康维达无线有限责任公司 Distributed transaction management in web services layer

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5938722A (en) * 1997-10-15 1999-08-17 Mci Communications Corporation Method of executing programs in a network
CN101212481A (en) * 2007-12-21 2008-07-02 华为技术有限公司 Transaction control method, system, and device
CN101371229A (en) * 2005-10-06 2009-02-18 雷特泽远程管理有限公司 Resource command message and method thereof
CN101959192A (en) * 2009-07-17 2011-01-26 华为技术有限公司 Business processing method and communication device
WO2011012012A1 (en) * 2009-07-30 2011-02-03 中兴通讯股份有限公司 Method and apparatus for notifying connection attributes for local internet protocol (ip) access

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860572A (en) * 2010-06-23 2010-10-13 中兴通讯股份有限公司 Vehicle gateway, network element, automotive remote control system and method based on M2M (Machine-to-Machine)
CN102136976B (en) * 2011-02-24 2014-12-31 华为技术有限公司 Machine transaction control method, device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5938722A (en) * 1997-10-15 1999-08-17 Mci Communications Corporation Method of executing programs in a network
CN101371229A (en) * 2005-10-06 2009-02-18 雷特泽远程管理有限公司 Resource command message and method thereof
CN101212481A (en) * 2007-12-21 2008-07-02 华为技术有限公司 Transaction control method, system, and device
CN101959192A (en) * 2009-07-17 2011-01-26 华为技术有限公司 Business processing method and communication device
WO2011012012A1 (en) * 2009-07-30 2011-02-03 中兴通讯股份有限公司 Method and apparatus for notifying connection attributes for local internet protocol (ip) access

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012113226A1 (en) * 2011-02-24 2012-08-30 华为技术有限公司 Method, device, and system for controlling machine transaction
CN104041096A (en) * 2011-09-13 2014-09-10 诺基亚通信公司 Ding Fu,S Sun
WO2013037101A1 (en) * 2011-09-13 2013-03-21 Nokia Siemens Networks Oy Authentication mechanism
CN104041096B (en) * 2011-09-13 2018-06-26 诺基亚通信公司 authentication mechanism
CN103686769A (en) * 2012-09-12 2014-03-26 中兴通讯股份有限公司 Service control method and device for terminal equipment
WO2013174204A1 (en) * 2012-09-12 2013-11-28 中兴通讯股份有限公司 Service control method and apparatus of terminal device
WO2014056345A1 (en) * 2012-10-12 2014-04-17 中兴通讯股份有限公司 Management method and apparatus for monitoring task
CN103731870A (en) * 2012-10-12 2014-04-16 中兴通讯股份有限公司 Management method and device for monitoring tasks
US9854466B2 (en) 2012-10-12 2017-12-26 Xi'an Zhongxing New Software Co. Ltd. Method and apparatus for managing monitoring task
CN103731870B (en) * 2012-10-12 2019-09-10 中兴通讯股份有限公司 The management method and device of monitor task
CN105245395A (en) * 2014-07-09 2016-01-13 中兴通讯股份有限公司 Strategy-based M2M terminal equipment monitoring and controlling method and device
CN105245395B (en) * 2014-07-09 2018-12-04 中兴通讯股份有限公司 A kind of M2M terminal device monitoring and control method and device based on strategy
KR101792331B1 (en) * 2015-07-10 2017-11-01 전자부품연구원 Method and System for Transaction in the M2M/IoT Platform
CN106412116A (en) * 2016-11-17 2017-02-15 上海斐讯数据通信技术有限公司 Method and device for distributed processing on logging in of user by cloud access controller
CN110521188A (en) * 2017-03-17 2019-11-29 康维达无线有限责任公司 Distributed transaction management in web services layer

Also Published As

Publication number Publication date
CN102136976B (en) 2014-12-31
WO2012113226A1 (en) 2012-08-30

Similar Documents

Publication Publication Date Title
CN102136976B (en) Machine transaction control method, device and system
CN107995215B (en) Control method and device of intelligent household equipment and cloud platform server
CN108470298B (en) Method, device and system for transferring resource numerical value
CN108701157A (en) Guaranteed submission result in distributing real time system system
CN103731465A (en) Distributed system and transaction treatment method thereof
CN104836814A (en) Cloud-end access control method of intelligent hardware and corresponding device
US20170085633A1 (en) Method and apparatus for saving cloud service traffic using peer-to-peer connection
CN101706925A (en) On-line life information service platform system
CN109785042A (en) Abnormality eliminating method, server, storage medium and the device of distributed deployment
CN111969718A (en) Plug-and-play access method and device for low-voltage distribution network equipment
CN112202877B (en) Gateway linkage method, gateway, cloud server and user terminal
CN101951576B (en) Method for implementing USSD (Unstructured Supplementary Service Data) application service and USSD centre
CN114090388A (en) Information acquisition method, server cluster, server and equipment
CN101894312B (en) Information exchange/share system, method thereof
CN109672718A (en) File delivery method, server, storage medium and device between system
CN109150981A (en) Block chain network network-building method, device, equipment and computer readable storage medium
CN111400266B (en) Data processing method and system, and diagnosis processing method and device for operation event
CN105791361A (en) Remote assisted setting method, server, terminal and system
CN106325515A (en) Service-oriented human-computer interaction system and implementation method
CN109936500A (en) A kind of data interactive method, data interaction device and electronic equipment
CN114124981A (en) Cloud storage data direct transmission management method, cloud transmission management platform and system
CN113923112B (en) Equipment configuration method and equipment configuration device
CN114968617A (en) API conversion system, access request processing method thereof, electronic device and medium
CN113438147A (en) Group management method and device
CN108805741B (en) Fusion method, device and system of power quality data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220228

Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Patentee after: Huawei Cloud Computing Technology Co.,Ltd.

Address before: 518129 headquarters building of Bantian HUAWEI base, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.