CN102136976A - Machine transaction control method, device and system - Google Patents
Machine transaction control method, device and system Download PDFInfo
- 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
- transaction
- gateway
- platform
- response
- instruction
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements 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
Description
技术领域technical field
本发明涉及通信技术领域,尤其涉及一种机器事务控制方法、装置和系统。The present invention relates to the technical field of communications, in particular to a machine transaction control method, device and system.
背景技术Background technique
在事务处理领域中,事务通常具有四性,即原子性、一致性、隔离性和持久性,原子性要求对事务的所有操作都发生或者所有操作都不发生,一致性要求事务保持其操作数据的一致性,隔离性要求事务不读取另一事务的中间结果,持久性要求承诺事务的结果是持久的。传统地,分布式系统已经利用两阶段提交协议和事务协调器来保证操作原子性、数据一致性。事务参与者则提供隔离性和持久性,两阶段提交协议中的每个参与者投票决定成功还是中止事务,并将其投票结果发送到事务协调器,然后,事务协调器基于来自每个事务参与者的投票结果做出最终决定,仅在所有参与者都投票成功时,事务协调器才提交事务,如图1(a)所示,两个事务参与者都投票成功,事务协调器则提交事务。否则,事务协调器将中止事务,如图1(b)所示,两个事务参与者中的一个投票失败,事务协调器则回滚。In the field of transaction processing, transactions usually have four properties, namely, atomicity, consistency, isolation, and durability. Atomicity requires that all operations on transactions occur or none occur. Consistency requires transactions to maintain their operating data. Consistency, isolation requires that a transaction does not read the intermediate results of another transaction, and durability requires that the results of a committed transaction are durable. Traditionally, distributed systems have utilized two-phase commit protocols and transaction coordinators to ensure operation atomicity and data consistency. Transaction participants provide isolation and durability. Each participant in the two-phase commit protocol votes to decide whether to succeed or abort the transaction, and sends its vote result to the transaction coordinator. Then, the transaction coordinator based on the Only when all participants voted successfully, the transaction coordinator submits the transaction, as shown in Figure 1(a), when both transaction participants voted successfully, the transaction coordinator submits the transaction . Otherwise, the transaction coordinator will abort the transaction, as shown in Figure 1(b), one of the two transaction participants fails to vote, and the transaction coordinator rolls back.
M2M(machine to machine,机器到机器)系统允许M2M设备有线、无线多种接入方式,不同接入方式下根据设备能力不同,有的M2M设备直接连接平台,有的经由网关接入平台,M2M系统支持事务处理(Transaction Handling),目的是保证机器通信系统若干实体间操作的四性,如:允许系统从错误操作回滚,M2M系统中M2M平台、网关都具备汇聚事务响应的能力。The M2M (machine to machine, machine to machine) system allows M2M devices to access multiple wired and wireless methods. Under different access methods, depending on the capabilities of the devices, some M2M devices are directly connected to the platform, and some are connected to the platform through a gateway. M2M The system supports transaction handling (Transaction Handling), the purpose is to ensure the four characteristics of the operation between several entities in the machine communication system, such as: allowing the system to roll back from wrong operations, and the M2M platform and gateway in the M2M system have the ability to aggregate transaction responses.
事务操作中的M2M设备可以直接连接平台也可以经由网关连接平台,相应的,M2M事务存在多种汇聚方式,不同情况如何下发事务操作请求,平台、网关如何配合汇聚事务操作响应将会影响事务操作的执行效率,不恰当的事务汇聚或者导致无法判断事务最终结果,或者在设备平台间产生大量不必要的信息交互,这都是需要解决的问题。M2M devices in transaction operations can be directly connected to the platform or connected to the platform via a gateway. Correspondingly, there are multiple aggregation methods for M2M transactions. How to issue transaction operation requests in different situations, and how the platform and gateway cooperate with the aggregation transaction operation response will affect the transaction The execution efficiency of operations, inappropriate transaction aggregation or the inability to judge the final result of transactions, or a large amount of unnecessary information interaction between device platforms are all problems that need to be solved.
现有技术中事务协调器向事务参与者发送的事务准备请求中添加额外关联数据,包括:事务标识符、事务执行命令、事务中其他参与节点标识,从而减少或完全不必要事务协调器的日志强制写入,在发生故障时通过协调器与参与节点交互查询来确定故障前的正确事务状态信息。In the prior art, the transaction coordinator adds additional associated data to the transaction preparation request sent by the transaction participants, including: transaction identifier, transaction execution command, and identification of other participating nodes in the transaction, thereby reducing or completely unnecessary the log of the transaction coordinator Forced writing, when a failure occurs, the coordinator interacts with the participating nodes to determine the correct transaction status information before the failure.
发明内容Contents of the invention
一种机器事务控制方法,其特征在于,方法包括,A machine transaction control method, characterized in that the method comprises,
机器到机器M2M平台接收请求方发送的事务处理请求;The machine-to-machine M2M platform receives the transaction processing request sent by the requester;
M2M平台根据事务参与设备连接属性,生成并下发事务操作命令至事务参与设备或M2M网关;The M2M platform generates and sends transaction operation commands to the transaction participating devices or the M2M gateway according to the connection attributes of the transaction participating devices;
M2M平台接收事务参与设备或M2M网关返回的事务操作响应,事务操作响应是事务参与设备或M2M网关根据事务操作命令执行事务后,返回的。The M2M platform receives the transaction operation response returned by the transaction participating device or the M2M gateway. The transaction operation response is returned after the transaction participating device or the M2M gateway executes the transaction according to the transaction operation command.
一种机器事务控制系统,其特征在于,系统包括,A machine transaction control system, characterized in that the system includes,
机器到机器M2M平台,用于接收请求方发送的事务处理请求,根据事务参与设备连接属性,生成并下发事务操作命令;The machine-to-machine M2M platform is used to receive the transaction processing request sent by the requesting party, and generate and issue transaction operation commands according to the connection attributes of the transaction participating devices;
事务参与设备,用于根据事务操作命令执行事务,向M2M平台发送事务操作响应。The transaction participating device is configured to execute the transaction according to the transaction operation command, and send a transaction operation response to the M2M platform.
一种机器到机器平台,其特征在于,机器到机器平台包括,A machine-to-machine platform, characterized in that the machine-to-machine platform includes,
接收单元,用于接收请求方发送的事务处理请求;a receiving unit, configured to receive a transaction processing request sent by a requesting party;
生成单元,用于在接收单元接收事务处理请求后,根据事务参与设备连接属性,生成事务操作命令;The generating unit is used to generate a transaction operation command according to the connection attributes of the transaction participating devices after the receiving unit receives the transaction processing request;
下发单元,用于向事务参与设备或M2M网关发送生成单元生成的事务操作命令。The sending unit is configured to send the transaction operation command generated by the generating unit to the transaction participating device or the M2M gateway.
一种机器到机器网关,其特征在于,包括:A machine-to-machine gateway, characterized by comprising:
接收单元,用于接收来自M2M平台的事务操作命令,事务操作命令包括指示M2M网关汇聚转发事务操作响应的事务执行处理指示;接收事务参与设备返回的事务操作响应;The receiving unit is configured to receive a transaction operation command from the M2M platform, the transaction operation command includes a transaction execution processing instruction instructing the M2M gateway to converge and forward the transaction operation response; receive the transaction operation response returned by the transaction participating device;
汇聚单元,用于将接收单元接收的事务操作响应进行汇聚;The converging unit is used for converging the transaction operation responses received by the receiving unit;
发送单元,用于给连接的事务参与设备下发事务操作命令;将汇聚单元汇聚得到的事务操作响应发送给M2M平台。The sending unit is configured to send transaction operation commands to the connected transaction participating devices; and send the transaction operation responses gathered by the converging unit to the M2M platform.
一种机器到机器网关,其特征在于,包括:A machine-to-machine gateway, characterized by comprising:
接收单元,用于接收来自M2M平台的事务操作命令,事务操作命令包括指示M2M网关控制执行后续事务更新操作后,返回事务执行结果的事务执行处理指示;接收连接的事务参与设备返回的事务准备响应;接收来自事务参与设备的事务更新响应;The receiving unit is used to receive a transaction operation command from the M2M platform. The transaction operation command includes a transaction execution processing instruction that instructs the M2M gateway to control and execute the subsequent transaction update operation and return the transaction execution result; receive the transaction preparation response returned by the connected transaction participating device ; Receive a transaction update response from a transaction participating device;
汇聚处理单元,用于根据事务执行处理指示汇聚接收的事务准备响应,根据汇聚的事务准备响应的结果生成事务更新指令;根据事务执行处理指示汇聚接收的事务更新响应;The aggregation processing unit is used to aggregate the received transaction preparation responses according to the transaction execution processing instructions, and generate transaction update instructions according to the results of the aggregated transaction preparation responses; aggregate the received transaction update responses according to the transaction execution processing instructions;
发送单元,用于根据事务执行处理指示向事务参与设备下发事务准备指令;向事务参与设备下发事务更新指令;将汇聚处理单元汇聚的事务更新响应对应的执行结果返回给M2M平台。The sending unit is configured to issue a transaction preparation instruction to the transaction participating device according to the transaction execution processing instruction; issue a transaction update instruction to the transaction participating device; return the execution result corresponding to the transaction update response gathered by the convergence processing unit to the M2M platform.
附图说明Description of drawings
图1(a)为现有技术中事务处理示意图;Figure 1(a) is a schematic diagram of transaction processing in the prior art;
图1(b)为现有技术中事务处理示意图;Figure 1(b) is a schematic diagram of transaction processing in the prior art;
图2为本发明实施例一种机器事务控制方法的流程图;FIG. 2 is a flow chart of a machine transaction control method according to an embodiment of the present invention;
图3为本发明实施例另一种机器事务控制方法的流程图;;FIG. 3 is a flowchart of another machine transaction control method according to an embodiment of the present invention;
图4为本发明实施例网关处理平台事务操作命令流程图;Fig. 4 is a flow chart of the transaction operation command of the gateway processing platform according to the embodiment of the present invention;
图5为本发明实施例机器事务控制系统结构示意图;5 is a schematic structural diagram of a machine transaction control system according to an embodiment of the present invention;
图6为本发明实施例另一种机器事务控制系统结构示意图;FIG. 6 is a schematic structural diagram of another machine transaction control system according to an embodiment of the present invention;
图7为本发明实施例另一种机器事务控制系统结构示意图;FIG. 7 is a schematic structural diagram of another machine transaction control system according to an embodiment of the present invention;
图8为本发明实施例另一种机器事务控制系统结构示意图;FIG. 8 is a schematic structural diagram of another machine transaction control system according to an embodiment of the present invention;
图9为本发明实施例M2M平台结构示意图;FIG. 9 is a schematic structural diagram of an M2M platform according to an embodiment of the present invention;
图10为本发明实施例一种机器事务控制方法的具体实现流程图;FIG. 10 is a specific implementation flow chart of a machine transaction control method according to an embodiment of the present invention;
图11为本发明实施例另一种机器事务控制方法的具体实现流程图;FIG. 11 is a flow chart of a specific implementation of another machine transaction control method according to an embodiment of the present invention;
图12为本发明实施例另一种机器事务控制方法的具体实现流程图;Fig. 12 is a specific implementation flowchart of another machine transaction control method according to the embodiment of the present invention;
图13为本发明实施例一种M2M网关结构示意图;FIG. 13 is a schematic structural diagram of an M2M gateway according to an embodiment of the present invention;
图14为本发明实施例另一种M2M网关结构示意图。FIG. 14 is a schematic structural diagram of another M2M gateway according to an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
图2为本发明第一实施例的方法流程示意图,包括:Fig. 2 is a schematic flow chart of the method of the first embodiment of the present invention, including:
A1、机器到机器M2M平台接收请求方发送的事务处理请求;A1. The machine-to-machine M2M platform receives the transaction processing request sent by the requesting party;
这里的请求方为授权实体,即有权向M2M平台申请事务处理的实体,可以是个人终端,服务器等设备,这里的事务处理请求中包含需要处理的事务信息。The requester here is an authorized entity, that is, an entity that has the right to apply for transaction processing from the M2M platform, which may be a personal terminal, a server, or other equipment, and the transaction processing request here includes transaction information to be processed.
A2、所述M2M平台根据事务参与设备连接属性,生成并下发事务操作命令至事务参与设备或网关;A2. The M2M platform generates and sends a transaction operation command to the transaction participating device or gateway according to the connection attribute of the transaction participating device;
其中,事务操作命令具体可以是事务准备指令或事务更新指令,具体地,根据事务更新的不同(事务更新可以分为事务提交和事务回滚),事务更新指令又可以包括事务提交指令和事务回滚指令两种,其中,事务提交指令是在事务参与设备准备好执行事务的情况下,指示事务参与设备执行事务的指令;事务回滚指令是在事务参与设备没有准备好执行事务的情况下,指示事务参与设备恢复进行准备工作之前的状态的指令。Wherein, the transaction operation command can specifically be a transaction preparation instruction or a transaction update instruction. Specifically, according to the difference of transaction update (transaction update can be divided into transaction commit and transaction rollback), the transaction update instruction can include transaction commit instruction and transaction rollback. There are two types of rolling instructions, among which, the transaction commit instruction is an instruction to instruct the transaction participating equipment to execute the transaction when the transaction participating equipment is ready to execute the transaction; the transaction rollback instruction is when the transaction participating equipment is not ready to execute the transaction. An instruction that instructs a transaction-participating device to restore the state it was in prior to the preparation.
其中,根据事务参与设备连接属性的不同,事务操作命令还可以携带不同的事务执行处理指示。Wherein, according to different connection attributes of transaction participating devices, the transaction operation command may also carry different transaction execution processing instructions.
A3、所述事务参与设备或网关根据所述事务操作命令执行事务,并根据所述事务执行处理指示将事务操作响应返回给M2M平台。A3. The transaction participating device or gateway executes the transaction according to the transaction operation command, and returns a transaction operation response to the M2M platform according to the transaction execution processing instruction.
相应的,根据事务操作命令的不同,事务操作响应也对应不同,在事务操作命令为事务准备指令时对应的事务操作响应为事务准备响应,在事务操作命令为事务更新指令时对应的事务操作响应为事务更新响应,具体地,在事务更新指令为事务提交指令时对应的事务操作响应为事务提交响应,在事务更新指令为事务回滚指令时对应的事务操作响应为事务回滚响应。Correspondingly, depending on the transaction operation command, the transaction operation response is also different. When the transaction operation command is a transaction preparation instruction, the corresponding transaction operation response is a transaction preparation response, and when the transaction operation command is a transaction update instruction, the corresponding transaction operation response is is a transaction update response, specifically, when the transaction update command is a transaction commit command, the corresponding transaction operation response is a transaction commit response, and when the transaction update command is a transaction rollback command, the corresponding transaction operation response is a transaction rollback response.
实施例1通过机器到机器M2M平台接收请求方发送的事务处理请求;所述M2M平台根据事务参与设备连接属性,生成并下发事务操作命令至事务参与设备或网关,所述事务操作命令携带事务执行处理指示;所述事务参与设备或网关根据所述事务操作命令执行事务,并根据所述事务执行处理指示将事务操作响应返回给M2M平台,提高了事务处理效率。Embodiment 1 The transaction processing request sent by the requester is received by the machine-to-machine M2M platform; the M2M platform generates and sends a transaction operation command to the transaction participation device or gateway according to the connection attribute of the transaction participation device, and the transaction operation command carries a transaction Executing a processing instruction: the transaction participating device or gateway executes a transaction according to the transaction operation command, and returns a transaction operation response to the M2M platform according to the transaction execution processing instruction, thereby improving transaction processing efficiency.
其中,本发明一个实施例中M2M平台处理过程如图3所示,具体步骤为:Wherein, the M2M platform processing process in one embodiment of the present invention is shown in Figure 3, and the specific steps are:
301、M2M平台接收事务处理请求;301. The M2M platform receives a transaction processing request;
这里的事务处理请求为步骤A1中的事务处理请求;The transaction processing request here is the transaction processing request in step A1;
302、M2M平台检索M2M设备网关归属,判断是否将事务更新控制过程交由归属网关处理,并在事务操作命令中添加事务执行处理指示;302. The M2M platform retrieves the ownership of the M2M device gateway, judges whether to hand over the transaction update control process to the home gateway, and adds a transaction execution processing instruction to the transaction operation command;
M2M平台检索M2M设备网关归属情况,具体分四种情况:A.事务参与设备直连M2M平台,B.事务参与设备中的某一单个设备经由网关连接M2M平台,C.事务参与设备中的多个设备经由同一网关连接M2M平台,D.事务参与设备中所有设备经由同一网关连接M2M平台。M2M平台根据事务参与设备的网关归属情况,添加相应的事务执行处理指示,具体的,相对A,事务执行处理指示为空,相对B,事务执行处理指示为空或指示网关转发事务操作响应,相对C,事务执行处理指示为指示M2M网关汇聚转发事务操作响应,相对D,事务执行处理指示为指示M2M网关控制执行后续事务更新操作后,返回事务执行结果。The M2M platform retrieves the attribution status of the M2M device gateway, which is divided into four situations: A. The transaction participating device directly connects to the M2M platform; B. A single device among the transaction participating devices connects to the M2M platform through the gateway; C. Multiple transaction participating devices A device is connected to the M2M platform through the same gateway, and all devices in D. transaction participating devices are connected to the M2M platform through the same gateway. The M2M platform adds corresponding transaction execution processing indications according to the gateway ownership of the transaction participating devices. Specifically, relative to A, the transaction execution processing indication is empty, and relative to B, the transaction execution processing indication is empty or instructs the gateway to forward the transaction operation response. C, the transaction execution processing instruction is to instruct the M2M gateway to aggregate and forward the transaction operation response, and relative to D, the transaction execution processing instruction is to instruct the M2M gateway to control and execute the subsequent transaction update operation, and then return the transaction execution result.
且,只有情况D时,将事务更新控制过程交由归属网关处理。And, only in case D, the transaction update control process is handed over to the home gateway for processing.
303、M2M平台下发事务操作命令至设备或网关;。303. The M2M platform issues a transaction operation command to the device or the gateway;
304、M2M平台接收设备或网关返回的事务操作响应,并判断事务最终执行状态;304. The M2M platform receives the transaction operation response returned by the device or the gateway, and judges the final execution status of the transaction;
其中,在所有的事务准备响应都为准备成功时,M2M平台判断事务准备成功,向事物参与设备发送事务提交指令否则,判断不成功,向事务参与设备发送事务回滚指令。Wherein, when all the transaction preparation responses are prepared successfully, the M2M platform judges that the transaction preparation is successful, and sends a transaction submission instruction to the transaction participating device; otherwise, it determines that the transaction is unsuccessful, and sends a transaction rollback instruction to the transaction participating device.
在本发明的一个实施例中,M2M网关处理过程如图4所示,具体步骤为:In one embodiment of the present invention, the M2M gateway processing process is shown in Figure 4, and the specific steps are:
401、网关接收M2M平台事务操作命令,所述事务操作命令中携带事务执行处理指示;401. The gateway receives an M2M platform transaction operation command, and the transaction operation command carries a transaction execution processing instruction;
这里只针对步骤A2中的情况B,C,D;Here only for the situation B, C, D in step A2;
402、网关下发事务操作命令至事务参与设备;402. The gateway issues a transaction operation command to the transaction participating device;
其中,相对A,网关可以直接转发事务操作命令至事务参与设备;Among them, relative to A, the gateway can directly forward the transaction operation command to the transaction participating device;
相对B,在M2M平台下发的事务操作命令不包含事务执行处理指示时,网关可以直接转发事务操作命令至事务参与设备;在M2M平台下发的事务操作命令包含事务执行处理指示时,网关可以删除事务操作命令包含事务执行处理指示后下发给事务参与设备,也可以重新生成事务操作命令下发给事务参与设备;Compared with B, when the transaction operation command issued by the M2M platform does not include the transaction execution processing instruction, the gateway can directly forward the transaction operation command to the transaction participating device; when the transaction operation command issued by the M2M platform contains the transaction execution processing instruction, the gateway can Delete the transaction operation command and send it to the transaction participating device after including the transaction execution processing instruction, or regenerate the transaction operation command and send it to the transaction participating device;
相对C和D,网关可以删除事务操作命令包含事务执行处理指示后下发给事务参与设备,也可以重新生成事务操作命令下发给事务参与设备。Compared with C and D, the gateway can delete the transaction operation command including the transaction execution processing instruction and send it to the transaction participating device, or can regenerate the transaction operation command and send it to the transaction participating device.
403、网关接收设备返回的事务操作响应;403. The gateway receives the transaction operation response returned by the device;
事务参与设备在执行完事务后,将事务操作响应返回给网关;After the transaction participating device executes the transaction, it returns the transaction operation response to the gateway;
404、网关根据事务执行处理指示直接转发事务操作响应至M2M平台,或汇聚事务操作响应;404. The gateway directly forwards the transaction operation response to the M2M platform according to the transaction execution processing instruction, or aggregates the transaction operation response;
网关在收到事务参与设备的事务操作响应后,根据事务执行处理指示,如事务执行处理指示为转发响应,则网关转发事务操作响应至M2M平台,如事务执行处理指示为汇聚响应或由M2M网关控制执行后续事务更新操作,则转步骤405;After the gateway receives the transaction operation response from the transaction participating device, it executes the transaction instruction according to the transaction execution processing instruction. If the transaction execution processing instruction is a forwarding response, the gateway forwards the transaction operation response to the M2M platform. If the transaction execution processing instruction is a convergence response or the M2M gateway Control the execution of subsequent transaction update operations, then go to step 405;
405、网关判断是否由网关控制事务;405. The gateway determines whether the transaction is controlled by the gateway;
网关首先判断是否收到全部的事务操作响应,如果是,再确定是否由网关控制事务,如不是由网关控制事务,则转到步骤406;如果由网关控制事务,则转到步骤407或408。具体地,如果网关接收的M2M平台下发的事务操作命令包括指示网关控制执行后续事务更新操作后,返回事务执行结果的事务执行处理指示,则网关判断由网关控制事务。The gateway first judges whether all the transaction operation responses have been received, and if so, then determines whether the transaction is controlled by the gateway, if not controlled by the gateway, then go to step 406; if the transaction is controlled by the gateway, then go to step 407 or 408. Specifically, if the transaction operation command issued by the M2M platform received by the gateway includes a transaction execution processing instruction instructing the gateway to return a transaction execution result after the subsequent transaction update operation is controlled and executed, the gateway determines that the transaction is controlled by the gateway.
406、发送汇聚后的事务操作响应至M2M平台406. Send the aggregated transaction operation response to the M2M platform
407、网关向事务参与设备发送事务提交指令;407. The gateway sends a transaction submission instruction to the transaction participating device;
网关判断是否收到全部的事务操作响应,待接收的全部事务操作响应都为成功后,网关向事务参与设备发送事务提交请求,并转步骤408;The gateway judges whether all transaction operation responses have been received, and after all transaction operation responses to be received are successful, the gateway sends a transaction submission request to the transaction participating device, and goes to step 408;
408、网关向事务参与设备发送事务回滚指令;408. The gateway sends a transaction rollback instruction to the transaction participating device;
网关判断是否收到全部的事务操作响应,待接收的全部事务操作响应至少有一个不成功时,网关向事务参与设备发送事务回滚指令,并转步骤408;The gateway judges whether all transaction operation responses have been received, and when at least one of all transaction operation responses to be received is unsuccessful, the gateway sends a transaction rollback instruction to the transaction participating device, and turns to step 408;
409、网关向M2M平台上报事务执行结果。409. The gateway reports the transaction execution result to the M2M platform.
网关在接收到所有设备返回的事务提交响应或事务回滚响应后,汇聚返回的事务提交响应或事务回滚响应,并将汇聚得到的事务提交响应或事务回滚响应对应的事务执行结果向M2M平台上报。After receiving the transaction commit response or transaction rollback response returned by all devices, the gateway aggregates the returned transaction commit response or transaction rollback response, and sends the transaction execution result corresponding to the aggregated transaction commit response or transaction rollback response to the M2M Report on the platform.
流程结束。The process ends.
图5为本发明第二实施例的系统结构示意图,包括:Fig. 5 is a schematic diagram of the system structure of the second embodiment of the present invention, including:
机器到机器M2M平台501,用于接收请求方发送的事务处理请求,根据事务参与设备连接属性,生成并下发事务操作命令;具体描述参考实施例一A2步骤以及301~305步骤,这里不再赘述。The machine-to-
事务参与设备502,用于根据事务操作命令执行事务,向所述M2M平台发送事务操作响应。The
图6为本发明第三实施例的系统结构示意图,其中,事务参与设备中的一个事务参与设备502经由第一M2M网关503连接M2M平台501,包括:Fig. 6 is a schematic diagram of the system structure of the third embodiment of the present invention, wherein one of the
M2M平台501,用于接收请求方发送的事务处理请求,根据事务参与设备连接属性,生成并下发事务操作命令;具体描述参考实施例一A2步骤以及301~305步骤,这里不再赘述。The
第一M2M网关503,用于给所述一个事务参与设备502下发事务操作命令,将接收的事务操作响应发送给M2M平台501。The
所述一个事务参与设备502,用于根据事务操作命令执行事务,向M2M平台501发送事务操作响应。其中,向M2M平台发送事务操作响应具体是将事务操作响应发送给第一M2M网关503,由第一M2M网关503作后续处理。The one
图7为本发明第四实施例的系统结构示意图,其中,事务参与设备中的至少两个设备502经由第二M2M网关504连接M2M平台501;Fig. 7 is a schematic diagram of the system structure of the fourth embodiment of the present invention, wherein at least two
M2M平台501,用于接收请求方发送的事务处理请求,根据事务参与设备连接属性,生成并下发事务操作命令,事务操作命令包括指示第二M2M网关汇聚转发事务操作响应的事务执行处理指示;具体描述参考实施例一A2步骤以及301~305步骤,这里不再赘述。The
第二M2M网关504,用于给所述至少两个事务参与设备502下发事务操作命令,根据事务操作命令将至少两个设备返回的事务操作响应进行汇聚,将汇聚后的事务操作响应发送给M2M平台501。The second M2M gateway 504 is configured to issue a transaction operation command to the at least two
所述至少两个事务参与设备502,用于根据事务操作命令执行事务,向M2M平台501发送事务操作响应。其中,向M2M平台发送事务操作响应具体是将事务操作响应发送给第二M2M网关504,由第二M2M网关504作后续处理。The at least two
图8为本发明第五实施例的系统结构示意图,其中,事务参与设备502的数量为至少两个,该至少两个事务参与设备经由第三M2M网关505连接M2M平台501;FIG. 8 is a schematic diagram of a system structure according to a fifth embodiment of the present invention, wherein the number of
M2M平台501,用于接收请求方发送的事务处理请求,根据事务参与设备连接属性,生成并下发事务操作命令,事务操作命令包括指示第三M2M网关505控制执行后续事务更新操作后,返回事务执行结果的事务执行处理指示;具体描述参考实施例一A2步骤以及301~305步骤,这里不再赘述。The
第三M2M网关505,用于根据事务执行处理指示向连接的所有设备下发事务准备指令;接收到来自所有设备的事务准备响应后,根据事务执行处理指示汇聚接收的事务准备响应,根据汇聚的事务准备响应的结果生成并向所有设备下发事务更新指令;接收到来自所述所有设备的事务更新响应后,根据所述事务执行处理指示汇聚接收的事务更新响应,将汇聚的事务更新响应的结果返回给M2M平台501。The
事务参与设备502,用于根据事务操作命令执行事务,向M2M平台发送事务操作响应。其中,向M2M平台发送事务操作响应具体是将事务操作响应发送给第三M2M网关505,由第三M2M网关505作后续处理。The
通过事务参与设备501,用于执行事务,并返回事务操作响应至网关或平台。网关502,用于根据所述事务操作命令执行事务,并根据所述事务执行处理指示将事务操作响应返回给M2M平台,M2M平台503,用于接收请求方发送的事务处理请求,根据事务参与设备连接属性,生成并下发事务操作命令至事务参与设备或网关,所述事务操作命令携带事务执行处理指示,提高了事务处理效率。The
图9为本发明第六实施例的M2M平台结构示意图,包括:FIG. 9 is a schematic structural diagram of an M2M platform according to a sixth embodiment of the present invention, including:
接收单元601,用于接收请求方发送的事务处理请求。The receiving unit 601 is configured to receive the transaction processing request sent by the requesting party.
生成单元602,用于在接收单元601接收所述事务处理请求后,根据事务参与设备连接属性,生成事务操作命令;The generating unit 602 is configured to generate a transaction operation command according to the connection attribute of the transaction participating device after the receiving unit 601 receives the transaction processing request;
其中,在相对于上述的情况A时,生成单元602生成的事务操作命令可以不携带事务执行处理指示;Wherein, when compared to the above-mentioned case A, the transaction operation command generated by the generating unit 602 may not carry a transaction execution processing instruction;
在相对于上述的情况B时,生成单元602生成的事务操作命令可以不携带事务执行处理指示,也可以携带事务执行处理指示;When compared to the above case B, the transaction operation command generated by the generating unit 602 may not carry a transaction execution processing instruction, or may carry a transaction execution processing instruction;
相对于上述的情况C和D时,生成单元602生成的事务操作命令携带事务执行处理指示;With respect to the above cases C and D, the transaction operation command generated by the generating unit 602 carries a transaction execution processing instruction;
下发单元603,用于向事务参与设备或M2M网关发送发送所述事务操作命令。The sending unit 603 is configured to send the transaction operation command to the transaction participating device or the M2M gateway.
可选的,事务操作命令是事务准备指令;该情况下,接收单元601,还可以用于接收事务参与设备或网关返回的事务准备响应;该M2M平台进一步包括,Optionally, the transaction operation command is a transaction preparation instruction; in this case, the receiving unit 601 may also be configured to receive a transaction preparation response returned by a transaction participating device or gateway; the M2M platform further includes,
判断单元604,用于汇聚所述接收单元601接收的事务准备响应,根据汇聚后的事务准备相应判断事务准备状态,如成功则将向事物参与设备发送事务提交指令,如失败则向所述事务参与设备发送事务回滚指令。The judging unit 604 is configured to aggregate the transaction preparation responses received by the receiving unit 601, and judge the transaction preparation status according to the aggregated transaction preparation. If successful, it will send a transaction submission instruction to the thing participating device; A participating device sends a transaction rollback command.
以上各单元的详细描述参考实施例一的A2步骤以及301~305步骤,这里不在赘述。For the detailed description of the above units, refer to step A2 and steps 301 to 305 of the first embodiment, which will not be repeated here.
实施例六通过一种M2M平台,包括,接收单元,用于接收请求方发送的事务处理请求,接收参与设备或网关返回的事务操作响应,生成单元,用于根据事务参与设备连接属性,生成事务操作命令,所述事务操作命令携带事务执行处理指示;下发单元,用于下发所述事务操作命令至事务参与设备或网关,提高了事务处理效率。Embodiment 6 An M2M platform includes a receiving unit, configured to receive a transaction processing request sent by a requesting party, receive a transaction operation response returned by a participating device or a gateway, and a generating unit, configured to generate a transaction according to the connection attribute of a transaction participating device. An operation command, the transaction operation command carries a transaction execution processing instruction; an issuing unit is configured to issue the transaction operation command to a transaction participating device or a gateway, thereby improving transaction processing efficiency.
图10为本发明第七实施例的一种机器事务控制方法的具体实现流程图,包括,请求方,M2M平台,网关,事务参与设备1,事务参与设备2,事务参与设备1直接和M2M平台相连,事务参与设备2经网关和M2M平台相连,具体步骤包括:FIG. 10 is a flow chart of a specific implementation of a machine transaction control method according to the seventh embodiment of the present invention, including the requester, the M2M platform, the gateway, the transaction participating device 1, the transaction participating device 2, the transaction participating device 1 directly and the M2M platform connected, the transaction participating device 2 is connected to the M2M platform via the gateway, and the specific steps include:
701、请求方向M2M平台发送事务处理请求;701. The requester sends a transaction processing request to the M2M platform;
此步骤目的是创建事务资源,事务处理请求中包括申请ID,地址资源ID,新资源ID,处理内容,访问权限ID,具体实现参考如下程序:The purpose of this step is to create a transaction resource. The transaction processing request includes the application ID, address resource ID, new resource ID, processing content, and access permission ID. For specific implementation, refer to the following procedure:
POST .../{api Version}/m2mResource/transaction/platformCoordinator?resFormPOST .../{api Version}/m2mResource/transaction/platformCoordinator? resForm
at=XML HTTP/1.1at=XML HTTP/1.1
Content-Type:application/xml;charset=UTF-8Content-Type: application/xml; charset=UTF-8
Host:example.com:80Host: example.com:80
<?xml version=″1.0″encoding=″UTF-8″?><? xml version="1.0" encoding="UTF-8"? >
<m2m:transactionResource xmlns:ts=″urn:m2m:xml:rest:transaction:1″><m2m:transactionResource xmlns:ts="urn:m2m:xml:rest:transaction:1">
<indicator><indicator>
<m2m:process>“aggregation”</m2m:process><m2m:process>“aggregation”</m2m:process>
<m2m:commit-right>true</m2m:commit-right><m2m:commit-right>true</m2m:commit-right>
</indicator></indicator>
<participant-lists><participant-lists>
<participant name=“smart metering A″><participant name="smart metering A">
<entry uri=“http://example.org/m2mResource/dev1″></entry><entry uri="http://example.org/m2mResource/dev1"></entry>
<operations type=“prepare″><operations type="prepare">
<m2m:turn-on>true</m2m:turn-on><m2m:turn-on>true</m2m:turn-on>
</operations></operations>
</participant></participant>
<participant name=“smart metering B″><participant name="smart metering B">
<entrv uri=“http://example.org/m2mResource/gateway/dev2″></entry><entrv uri=" http://example.org/m2mResource/gateway/dev2 "></entry>
<operations type=“prepare″><operations type="prepare">
<m2m:turn-on>true</m2m:turn-on><m2m:turn-on>true</m2m:turn-on>
</operations></operations>
</participant></participant>
</participant-lists></participant-lists>
</m2m:transactionResource></m2m:transactionResource>
702、M2M平台向网关发送事务准备指令;702. The M2M platform sends a transaction preparation instruction to the gateway;
事务准备指令中具体包括申请ID,地址资源ID,事务资源ID,处理操作内容,同时特别指出Process=“relay”,Commit-Right=“false”,以表示转发事务操作响应,没有提交权限,具体实现参考如下程序:The transaction preparation instruction specifically includes the application ID, address resource ID, transaction resource ID, and processing operation content. At the same time, it is specially pointed out that Process = "relay", Commit-Right = "false", to indicate that the transaction operation response is forwarded, and there is no commit authority. The implementation refers to the following program:
POST.../{apiVersion}/m2mResource/transaction/gatewayCoordinator?resFormaPOST .../{apiVersion}/m2mResource/transaction/gatewayCoordinator? resForma
t=XML HTTP/1.1t=XML HTTP/1.1
Content-Type:application/xml;charset=UTF-8Content-Type: application/xml; charset=UTF-8
Host:example.com:80Host: example.com:80
<?xml version=″1.0″encoding=″UTF-8″?><? xml version="1.0" encoding="UTF-8"? >
<m2m:transactionOperationResource<m2m:transactionOperationResource
xmlns:ts=″urn:m2m:xml:rest:transaction:1″>xmlns:ts="urn:m2m:xml:rest:transaction:1">
<m2m:transactionResource id=“1234”/><m2m:transactionResource id="1234"/>
<indicator><indicator>
<m2m:process>“relay”</m2m:process><m2m:process>“relay”</m2m:process>
<m2m:commit-right>false</m2m:commit-right><m2m:commit-right>false</m2m:commit-right>
</indicator></indicator>
<participant name=“smart metering A″><participant name="smart metering A">
<entry uri=“http://example.org/m2mResource/dev1″></entrv><entry uri=" http://example.org/m2mResource/dev1 "></entrv>
<operations type=“prepare″><operations type="prepare">
<m2m:turn-on>true</m2m:turn-on><m2m:turn-on>true</m2m:turn-on>
</operations></operations>
</participant></participant>
</m2m:transactionOperationResource></m2m:transactionOperationResource>
703、M2M平台向事务参与设备1发送事务准备指令;703. The M2M platform sends a transaction preparation instruction to the transaction participating device 1;
事务准备指令中具体包括申请ID,地址资源ID,事务资源ID,处理操作内容。The transaction preparation instruction specifically includes application ID, address resource ID, transaction resource ID, and processing operation content.
704、网关向事务参与设备2下发事务准备指令;704. The gateway issues a transaction preparation instruction to the transaction participating device 2;
事务准备指令中具体包括申请ID,地址资源ID,事务资源ID,处理操作内容。该下发的事务准备指令可以由网关自己生成,也可以由网关直接转发来自M2M平台的事务准备指令。The transaction preparation instruction specifically includes application ID, address resource ID, transaction resource ID, and processing operation content. The delivered transaction preparation instruction may be generated by the gateway itself, or the gateway may directly forward the transaction preparation instruction from the M2M platform.
705、事务参与设备1向M2M平台返回事务准备响应;705. The transaction participating device 1 returns a transaction preparation response to the M2M platform;
包括事务资源ID和事务操作ID。Including transaction resource ID and transaction operation ID.
706、事务参与设备2向网关返回事务准备响应;706. The transaction participating device 2 returns a transaction preparation response to the gateway;
包括事务资源ID和事务操作ID。Including transaction resource ID and transaction operation ID.
707、网关向M2M平台发送事务准备响应;707. The gateway sends a transaction preparation response to the M2M platform;
包括事务资源ID和事务操作ID。Including transaction resource ID and transaction operation ID.
708、M2M平台进行事务提交;708. The M2M platform submits the transaction;
M2M平台根据汇聚后的事务准备响应,判断当前事务执行状态,如返回的两个事务准备响应全部为成功,则进行提交,如不是,则回滚。The M2M platform judges the current transaction execution status according to the aggregated transaction preparation responses. If the two returned transaction preparation responses are all successful, it will be submitted, and if not, it will be rolled back.
709、M2M平台向事务参与设备1发送事务提交指令;709. The M2M platform sends a transaction submission instruction to the transaction participating device 1;
事务提交指令中具体包括申请ID,地址资源ID,事务资源ID,处理操作内容,且包含commit,以表示事务参与设备1有权进行提交,即当前事务由事务参与设备1单独完成。The transaction commit command specifically includes the application ID, address resource ID, transaction resource ID, processing operation content, and commit, which means that the transaction participating device 1 has the right to commit, that is, the current transaction is completed by the transaction participating device 1 alone.
710、M2M平台向网关发送事务提交指令;710. The M2M platform sends a transaction submission instruction to the gateway;
事务提交指令中具体包括申请ID,地址资源ID,事务资源ID,处理操作内容,且包含commit,以表示事务参与设备2有权进行提交,即当前事务由事务参与设备2单独完成。The transaction commit instruction specifically includes the application ID, address resource ID, transaction resource ID, processing operation content, and commit, which means that the transaction participating device 2 has the right to commit, that is, the current transaction is completed by the transaction participating device 2 alone.
711、网关向事务参与设备2下发事务提交指令;711. The gateway issues a transaction submission instruction to the transaction participating device 2;
712、事务参与设备1向M2M平台返回事务提交响应;712. The transaction participating device 1 returns a transaction submission response to the M2M platform;
包括事务资源ID和事务操作ID,且包含comfirm,以表示由M2M平台进行确认。It includes a transaction resource ID and a transaction operation ID, and includes confirm, which means confirmation by the M2M platform.
713、事务参与设备2向网关返回事务提交响应;713. The transaction participating device 2 returns a transaction submission response to the gateway;
包括事务资源ID和事务操作ID,且包含comfirm,以表示由M2M平台进行确认。It includes a transaction resource ID and a transaction operation ID, and includes confirm, which means confirmation by the M2M platform.
714、网关向M2M平台发送事务提交响应;714. The gateway sends a transaction submission response to the M2M platform;
包括事务资源ID和事务操作ID,且包含comfirm,以表示由M2M平台进行确认。It includes a transaction resource ID and a transaction operation ID, and includes confirm, which means confirmation by the M2M platform.
其中,在本发明的一个实施例中,M2M平台可以进一步向事务请求者返回最终结果。具体地,M2M平台可直接返回执行结果,或等待请求者后续查询执行结果。Wherein, in an embodiment of the present invention, the M2M platform may further return the final result to the transaction requester. Specifically, the M2M platform may directly return the execution result, or wait for the requester to subsequently query the execution result.
实施例7适用于事务参与设备和M2M直接连接,或单个事务参与设备通过网关直接联系的场景,由M2M平台采用进行事务操作响应的汇聚,控制事务提交的方式,使得事务处理的效率提高。Embodiment 7 is applicable to the scenario where transaction participating devices are directly connected to M2M, or a single transaction participating device is directly connected through a gateway. The M2M platform adopts the aggregation of transaction operation responses to control the way of transaction submission, so as to improve the efficiency of transaction processing.
图11为本发明第八实施例的一种机器事务控制方法的具体实现流程图,包括,请求方,M2M平台,网关,事务参与设备1,事务参与设备2,其它网关或事务参与设备,事务参与设备1和事务参与设备2连在网关上,其它网关或事务参与设备与M2M平台相连,具体实现流程如下所示:FIG. 11 is a flow chart of a specific implementation of a machine transaction control method according to the eighth embodiment of the present invention, including a requester, an M2M platform, a gateway, a transaction participating device 1, a transaction participating device 2, other gateways or transaction participating devices, and a transaction Participating device 1 and transaction participating device 2 are connected to the gateway, and other gateways or transaction participating devices are connected to the M2M platform. The specific implementation process is as follows:
801、请求方向M2M平台发送事务处理请求;801. The requester sends a transaction processing request to the M2M platform;
此步骤目的是创建事务资源,事务处理请求中包括申请ID,地址资源ID,新资源ID,处理内容,访问权限ID,具体实现参考如下程序:The purpose of this step is to create a transaction resource. The transaction processing request includes the application ID, address resource ID, new resource ID, processing content, and access permission ID. For specific implementation, refer to the following procedure:
POST.../{apiVersion}/m2mResource/transaction/platformCoordinator?resFormPOST .../{apiVersion}/m2mResource/transaction/platformCoordinator? resForm
at=XML HTTP/1.1at=XML HTTP/1.1
Content-Type:application/xml;charset=UTF-8Content-Type: application/xml; charset=UTF-8
Host:example.com:80Host: example.com:80
<?xml version=″1.0″encoding=″UTF-8″?><? xml version="1.0" encoding="UTF-8"? >
<m2m:transactionResource xmlns:ts=urn:m2m:xml:rest:transaction:1″><m2m:transactionResource xmlns:ts=urn:m2m:xml:rest:transaction:1″>
<indicator><indicator>
<m2m:process>“aggregation”</m2m:process><m2m:process>“aggregation”</m2m:process>
<m2m:commit-right>true</m2m:commit-right><m2m:commit-right>true</m2m:commit-right>
</indicator></indicator>
<participant-lists><participant-lists>
<participant name=“smart metering A″><participant name="smart metering A">
<entry uri=“http://example.org/m2mResource/gateway/dev1″></entry><entry uri="http://example.org/m2mResource/gateway/dev1"></entry>
<operations type=“prepare″><operations type="prepare">
<m2m:turn-on>true</m2m:turn-on><m2m:turn-on>true</m2m:turn-on>
</operations></operations>
</participant></participant>
<participant name=“smart metering B″><participant name="smart metering B">
<entry uri=“http://example.org/m2mResource/gateway/dev2″></entry><entry uri="http://example.org/m2mResource/gateway/dev2"></entry>
<operations type=“prepare″><operations type="prepare">
<m2m:turn-on>true</m2m:turn-on><m2m:turn-on>true</m2m:turn-on>
</operations></operations>
</participant></participant>
<participant name=“smart metering C″><participant name="smart metering C">
<entry uri=“http://example.org/m2mResource/dev3″></entry><entry uri=" http://example.org/m2mResource/dev3 "></entry>
<operations type=“prepare″><operations type="prepare">
<m2m:turn-on>true</m2m:turn-on><m2m:turn-on>true</m2m:turn-on>
</operations></operations>
</participant></participant>
</participant-lists></participant-lists>
</m2m:transactionResource></m2m:transactionResource>
802、M2M平台向网关发送事务准备指令;802. The M2M platform sends a transaction preparation instruction to the gateway;
事务准备指令中具体包括申请ID,地址资源ID,事务资源ID,处理操作内容,同时特别指出Process=“aggregation”,Commit-Right=“false”,以表示汇聚事务操作响应,没有提交权限,具体实现参考如下程序;The transaction preparation instruction specifically includes the application ID, address resource ID, transaction resource ID, and processing operation content. At the same time, it is specially pointed out that Process = "aggregation" and Commit-Right = "false" to indicate that the aggregation transaction operation response has no commit authority. The implementation refers to the following procedures;
POST.../{apiVersion}/m2mResource/transaction/gatewayCoordinator?resFormaPOST .../{apiVersion}/m2mResource/transaction/gatewayCoordinator? resForma
t=XML HTTP/1.1t=XML HTTP/1.1
Content-Type:application/xml;charset=UTF-8Content-Type: application/xml; charset=UTF-8
Host:example.com:80Host: example.com:80
<?xml version=″1.0″encoding=″UTF-8″?><? xml version="1.0" encoding="UTF-8"? >
<m2m:transactionOperationResource<m2m:transactionOperationResource
xmlns:ts=″urn:m2m:xml:rest:transaction:1″>xmlns:ts="urn:m2m:xml:rest:transaction:1">
<m2m:transactionResource id=“1234”/><m2m:transactionResource id="1234"/>
<indicator><indicator>
<m2m:process>“aggregation”</m2m:process><m2m:process>“aggregation”</m2m:process>
<m2m:commit-right>false</m2m:commit-right><m2m:commit-right>false</m2m:commit-right>
</indicator></indicator>
<participant-list><participant-list>
<participant name=“smart metering A″><participant name="smart metering A">
<entry uri=“http://example.org/m2mResource/gateway/dev1″></entry><entry uri="http://example.org/m2mResource/gateway/dev1"></entry>
<operations type=“prepare″><operations type="prepare">
<m2m:turn-on>true</m2m:turn-on><m2m:turn-on>true</m2m:turn-on>
</operations></operations>
</participant></participant>
<participant name=“smart metering B″><participant name="smart metering B">
<entry uri=“http://example.org/m2mResource/gateway/dev2″></entry><entry uri="http://example.org/m2mResource/gateway/dev2"></entry>
<operations type=“prepare″><operations type="prepare">
<m2m:turn-on>true</m2m:turn-on><m2m:turn-on>true</m2m:turn-on>
</operations></operations>
</participant></participant>
</participant-list></participant-list>
</m2m:transactionOperationResource></m2m:transactionOperationResource>
803、网关向事务参与设备1下发事务准备指令;803. The gateway issues a transaction preparation instruction to the transaction participating device 1;
事务准备指令中具体包括申请ID,地址资源ID,事务资源ID,处理操作内容。该下发的事务准备指令可以由网关自己生成,也可以由网关直接转发来自M2M平台的事务准备指令。The transaction preparation instruction specifically includes application ID, address resource ID, transaction resource ID, and processing operation content. The delivered transaction preparation instruction may be generated by the gateway itself, or the gateway may directly forward the transaction preparation instruction from the M2M platform.
804、网关向事务参与设备2下发事务准备指令;804. The gateway issues a transaction preparation instruction to the transaction participating device 2;
事务准备指令中具体包括申请ID,地址资源ID,事务资源ID,处理操作内容。该下发的事务准备指令可以由网关自己生成,也可以由网关直接转发来自M2M平台的事务准备指令。The transaction preparation instruction specifically includes application ID, address resource ID, transaction resource ID, and processing operation content. The delivered transaction preparation instruction may be generated by the gateway itself, or the gateway may directly forward the transaction preparation instruction from the M2M platform.
805、M2M平台向其它网关或事务参与设备发送事务准备指令;805. The M2M platform sends a transaction preparation instruction to other gateways or transaction participating devices;
事务准备指令中具体包括申请ID,地址资源ID,事务资源ID,处理操作内容。The transaction preparation instruction specifically includes application ID, address resource ID, transaction resource ID, and processing operation content.
806、事务参与设备1向网关返回事务准备响应;806. The transaction participating device 1 returns a transaction preparation response to the gateway;
包括事务资源ID。Include the transaction resource ID.
807、事务参与设备2向网关返回事务准备响应;807. The transaction participating device 2 returns a transaction preparation response to the gateway;
包括事务资源ID。Include the transaction resource ID.
808、网关对事务准备响应进行汇聚;808. The gateway aggregates the transaction preparation responses;
其中事务参与设备2的事务准备响应为失败,则确定当前事务为失败。Where the transaction preparation response of the transaction participating device 2 is failure, it is determined that the current transaction is failure.
809、网关向M2M平台返回失败的事务准备响应;809. The gateway returns a failed transaction preparation response to the M2M platform;
810、其它网关或事务参与设备向M2M平台返回事务准备响应;810. Other gateways or transaction participating devices return a transaction preparation response to the M2M platform;
811、M2M平台确定需要回滚;811. The M2M platform determines that a rollback is required;
M2M平台汇聚了所有事务操作响应后,根据至少步骤811中的失败的事务准备响应确定当前事务执行状态为失败,确定需要进行回滚。After collecting all transaction operation responses, the M2M platform determines that the current transaction execution status is failed according to at least the failed transaction preparation response in step 811, and determines that a rollback is required.
812、M2M平台向网关发送事务回滚指令;812. The M2M platform sends a transaction rollback instruction to the gateway;
事务回滚指令中具体包括申请ID,地址资源ID,事务资源ID,处理操作内容,同时携带事务回滚指示”Rollback”,表示回滚;The transaction rollback instruction specifically includes the application ID, address resource ID, transaction resource ID, processing operation content, and carries the transaction rollback instruction "Rollback", which means rollback;
813、网关向事务参与设备1下发事务回滚指令;813. The gateway issues a transaction rollback instruction to the transaction participating device 1;
814、网关向事务参与设备2下发事务回滚指令;814. The gateway issues a transaction rollback instruction to the transaction participating device 2;
815、M2M平台向其它网关或事务参与设备发送事务回滚指令;815. The M2M platform sends a transaction rollback instruction to other gateways or transaction participating devices;
事务回滚指令中具体包括申请ID,地址资源ID,事务资源ID,处理操作内容,同时携带事务回滚指示”Rollback”,表示回滚;The transaction rollback instruction specifically includes the application ID, address resource ID, transaction resource ID, processing operation content, and carries the transaction rollback instruction "Rollback", which means rollback;
816、事务参与设备1向网关返回事务回滚响应;816. The transaction participating device 1 returns a transaction rollback response to the gateway;
包括事务资源ID。Include the transaction resource ID.
817、事务参与设备2向网关返回事务回滚响应;817. The transaction participating device 2 returns a transaction rollback response to the gateway;
包括事务资源ID。Include the transaction resource ID.
818、网关对事务回滚响应进行汇聚;818. The gateway aggregates the transaction rollback response;
其中事务参与设备2和事务参与设备1都为成功,则确定当前事务回滚为成功,具体地,可以将事务参与设备2和事务参与设备1返回的两个表示成功的事务回滚响应,汇聚成一个表示成功的事务回滚响应。Where both transaction participating device 2 and transaction participating device 1 are successful, it is determined that the rollback of the current transaction is successful. Specifically, two successful transaction rollback responses returned by transaction participating device 2 and transaction participating device 1 can be aggregated into a successful transaction rollback response.
819、网关向M2M平台返回事务回滚响应;819. The gateway returns a transaction rollback response to the M2M platform;
820、其它网关或事务参与设备向M2M平台返回事务回滚响应;820. Other gateways or transaction participating devices return a transaction rollback response to the M2M platform;
其它网关或事务参与设备向M2M平台返回事务回滚响应也为成功,则确定当前事务回滚成功。If other gateways or transaction participating devices return transaction rollback responses to the M2M platform as success, it is determined that the current transaction rollback is successful.
其中,在本发明的一个实施例中,M2M平台可以进一步向事务请求者返回最终结果。具体地,M2M平台可直接返回执行结果,或等待请求者后续查询执行结果。Wherein, in an embodiment of the present invention, the M2M platform may further return the final result to the transaction requester. Specifically, the M2M platform may directly return the execution result, or wait for the requester to subsequently query the execution result.
实施例8适用于多个事务参与设备通过同一网关连接M2M平台的情况,M2M平台根据事务参与设备连接属性,生成并下发事务操作命令至事务参与设备或网关,所述事务操作命令携带事务执行处理指示;指示所述网关对所述多个事务参与设备的事务操作响应进行汇聚,提高了事务处理效率。Embodiment 8 is applicable to the case where multiple transaction participating devices are connected to the M2M platform through the same gateway. The M2M platform generates and sends a transaction operation command to the transaction participation device or the gateway according to the connection attributes of the transaction participation devices, and the transaction operation command carries transaction execution Processing instructions: instructing the gateway to aggregate the transaction operation responses of the multiple transaction participating devices, which improves transaction processing efficiency.
图12为本发明第九实施例的一种机器事务控制方法的具体实现流程图,包括,请求方,M2M平台,网关,事务参与设备1,事务参与设备2,事务参与设备1和事务参与设备2连在网关上,且事务参与设备1和事务参与设备2同时参与一个事务,具体实现流程如下所示:Fig. 12 is a flowchart of a specific implementation of a machine transaction control method according to the ninth embodiment of the present invention, including a requester, an M2M platform, a gateway, a transaction participating device 1, a transaction participating device 2, a transaction participating device 1 and a transaction participating device 2 is connected to the gateway, and transaction participating device 1 and transaction participating device 2 participate in a transaction at the same time, the specific implementation process is as follows:
901、请求方向M2M平台发送事务处理请求;901. The requester sends a transaction processing request to the M2M platform;
此步骤目的是创建事务资源,事务处理请求中包括申请ID,地址资源ID,新资源ID,处理内容,访问权限ID,具体实现参考如下程序:The purpose of this step is to create a transaction resource. The transaction processing request includes the application ID, address resource ID, new resource ID, processing content, and access permission ID. For specific implementation, refer to the following procedure:
POST .../{apiVersion}/m2mResource/transaction/platformCoordinator?resFormPOST .../{apiVersion}/m2mResource/transaction/platformCoordinator? resForm
at=XML HTTP/1.1at=XML HTTP/1.1
Content-Type:application/xml;charset=UTF-8Content-Type: application/xml; charset=UTF-8
Host:example.com:80Host: example.com:80
<?xml version=″1.0″encoding=″UTF-8″?><? xml version="1.0" encoding="UTF-8"? >
<m2m:transactionResource xmlns:ts=″urn:m2m:xml:rest:transaction:1″><m2m:transactionResource xmlns:ts="urn:m2m:xml:rest:transaction:1">
<indicator><indicator>
<m2m:process>“aggregation”</m2m:process><m2m:process>“aggregation”</m2m:process>
<m2m:commit-right>true</m2m:commit-right><m2m:commit-right>true</m2m:commit-right>
</indicator></indicator>
<participant-lists><participant-lists>
<participant name=“smart metering A″><participant name="smart metering A">
<entry uri=“http://example.org/m2mResource/gateway/dev1″></entry><entry uri="http://example.org/m2mResource/gateway/dev1"></entry>
<operations type=“prepare″><operations type="prepare">
<m2m:turn-on>true</m2m:turn-on><m2m:turn-on>true</m2m:turn-on>
</operations></operations>
</participant></participant>
<participant name=“smart metering B″><participant name="smart metering B">
<entry uri=“http://example.org/m2mResource/gateway/dev2″></entry><entry uri="http://example.org/m2mResource/gateway/dev2"></entry>
<operations type=“prepare″><operations type="prepare">
<m2m:turn-on>true</m2m:turn-on><m2m:turn-on>true</m2m:turn-on>
</operations></operations>
</participant></participant>
</participant-lists></participant-lists>
</m2m:transactionResource></m2m:transactionResource>
902、M2M平台向网关发送事务准备指令;902. The M2M platform sends a transaction preparation instruction to the gateway;
事务准备指令中具体包括申请ID,地址资源ID,事务资源ID,处理操作内容,同时特别指出Process=“aggregation”,Commit-Right=“true”,以指示网关汇聚事务操作响应,且网关有提交权限,具体实现参考如下程序;The transaction preparation instruction specifically includes the application ID, address resource ID, transaction resource ID, and processing operation content. At the same time, it is specially pointed out that Process = "aggregation", Commit-Right = "true", to instruct the gateway to aggregate transaction operation responses, and the gateway has committed Permissions, the specific implementation refers to the following procedures;
POST.../{apiVersion}/m2mResource/transaction/gatewayCoordinator?resFormaPOST .../{apiVersion}/m2mResource/transaction/gatewayCoordinator? resForma
t=XML HTTP/1.1t=XML HTTP/1.1
Content-Type:application/xml;charset=UTF-8Content-Type: application/xml; charset=UTF-8
Host:example.com:80Host: example.com:80
<?xml version=″1.0″encoding=″UTF-8″?><? xml version="1.0" encoding="UTF-8"? >
<m2m:transactionOperationResource<m2m:transactionOperationResource
xmlns:ts=″urn:m2m:xml:rest:transaction:1″>xmlns:ts="urn:m2m:xml:rest:transaction:1">
<m2m:transactionResource id=“1234”/><m2m:transactionResource id="1234"/>
<indicator><indicator>
<m2m:process>“aggregation”</m2m:process><m2m:process>“aggregation”</m2m:process>
<m2m:commit-right>true</m2m:commit-right><m2m:commit-right>true</m2m:commit-right>
</indicator></indicator>
<participant-list><participant-list>
<participant name=“smart metering A″><participant name="smart metering A">
<entry uri=“http://example.org/m2mResource/gateway/dev1″></entry><entry uri="http://example.org/m2mResource/gateway/dev1"></entry>
<operations type=“prepare″><operations type="prepare">
<m2m:turn-on>true</m2m:turn-on><m2m:turn-on>true</m2m:turn-on>
</operations></operations>
</participant></participant>
<participant name=“smart metering B″><participant name="smart metering B">
<entry uri=“http://example.org/m2mResource/gateway/dev2″></entry><entry uri="http://example.org/m2mResource/gateway/dev2"></entry>
<operations type=“prepare″><operations type="prepare">
<m2m:turn-on>true</m2m:turn-on><m2m:turn-on>true</m2m:turn-on>
</operations></operations>
</participant></participant>
</participant-list></participant-list>
</m2m:transactionOperationResource></m2m:transactionOperationResource>
903、网关向事务参与设备1下发事务准备指令;903. The gateway issues a transaction preparation instruction to the transaction participating device 1;
事务准备指令中具体包括申请ID,地址资源ID,事务资源ID,处理操作内容。该下发的事务准备指令可以由网关自己生成,也可以由网关直接转发来自M2M平台的事务准备指令。The transaction preparation instruction specifically includes application ID, address resource ID, transaction resource ID, and processing operation content. The delivered transaction preparation instruction may be generated by the gateway itself, or the gateway may directly forward the transaction preparation instruction from the M2M platform.
904、网关向事务参与设备2下发事务准备指令;904. The gateway issues a transaction preparation instruction to the transaction participating device 2;
事务准备指令中具体包括申请ID,地址资源ID,事务资源ID,处理操作内容。该下发的事务准备指令可以由网关自己生成,也可以由网关直接转发来自M2M平台的事务准备指令。The transaction preparation instruction specifically includes application ID, address resource ID, transaction resource ID, and processing operation content. The delivered transaction preparation instruction may be generated by the gateway itself, or the gateway may directly forward the transaction preparation instruction from the M2M platform.
905、事务参与设备1向网关返回事务准备响应;905. The transaction participating device 1 returns a transaction preparation response to the gateway;
包括事务资源ID。Include the transaction resource ID.
906、事务参与设备2向网关返回事务准备响应;906. The transaction participating device 2 returns a transaction preparation response to the gateway;
包括事务资源ID。Include the transaction resource ID.
907、网关对事务准备执行响应进行汇聚907. The gateway aggregates the transaction preparation execution response
其中事务参与设备2事务准备响应为失败,则汇聚后的结果为事务准备执行失败。若所有事务参与设备均返回成功的事务准备执行响应,则汇聚后的结果为事务准备执行成功。Wherein, the transaction preparation response of the transaction participating device 2 is failure, and the aggregated result is that the transaction preparation execution fails. If all transaction participating devices return a successful transaction preparation execution response, the aggregated result indicates that the transaction preparation execution is successful.
908、由于当前事务准备执行结果为失败,且网关具有事务提交决定权,则决定对其管辖的事务参与设备1和2进行事务回滚操作;若事务准备执行结果为成功,则网关将可以决定对其管辖的事务参与设备1和2进行事务提交操作。908. Since the execution result of the current transaction preparation is failure, and the gateway has the decision right to commit the transaction, it decides to perform a transaction rollback operation on the transaction participating devices 1 and 2 under its jurisdiction; if the execution result of the transaction preparation is successful, the gateway can decide Perform a transaction commit operation on the transaction participating devices 1 and 2 under its jurisdiction.
909、网关向事务参与设备1下发事务回滚指令,其中携带事务回滚指示”Rollback”,表示回滚;909. The gateway sends a transaction rollback instruction to the transaction participating device 1, which carries a transaction rollback instruction "Rollback", indicating rollback;
910、网关向事务参与设备2下发事务回滚指令,其中携带事务回滚指示”Rollback”,表示回滚;910. The gateway sends a transaction rollback instruction to the transaction participating device 2, which carries a transaction rollback instruction "Rollback", indicating rollback;
911、事务参与设备1向网关返回事务回滚响应;911. The transaction participating device 1 returns a transaction rollback response to the gateway;
包括事务资源ID。Include the transaction resource ID.
912、事务参与设备2向网关返回事务回滚响应;912. The transaction participating device 2 returns a transaction rollback response to the gateway;
包括事务资源ID。Include the transaction resource ID.
913、网关向M2M平台返回事务执行结果;913. The gateway returns the transaction execution result to the M2M platform;
其中,在本发明的一个实施例中,M2M平台可以进一步向事务请求者返回最终结果。具体地,M2M平台可直接返回执行结果,或等待请求者后续查询执行结果。Wherein, in an embodiment of the present invention, the M2M platform may further return the final result to the transaction requester. Specifically, the M2M platform may directly return the execution result, or wait for the requester to subsequently query the execution result.
实施例9适用于所有事务参与设备均通过同一个网关连接到M2M平台的情况,所述M2M平台根据事务参与设备连接属性,生成并下发事务操作命令至事务参与设备或网关,所述事务操作命令携带事务执行处理指示;指示所述网关不仅对所述多个事务参与设备的事务准备响应进行汇聚,并且由网关本地判断事务执行状态,从而在网关本地进一步处理事务的提交或回滚操作,而无需返回到M2M平台来判断和执行后续的事务操作,提高了事务处理效率。Embodiment 9 is applicable to the situation that all transaction participating devices are connected to the M2M platform through the same gateway, and the M2M platform generates and sends a transaction operation command to the transaction participating device or the gateway according to the connection attributes of the transaction participating devices, and the transaction operation The command carries a transaction execution processing instruction; instructing the gateway not only to aggregate the transaction preparation responses of the multiple transaction participating devices, but also to judge the transaction execution status locally by the gateway, so as to further process the commit or rollback operation of the transaction locally at the gateway, There is no need to return to the M2M platform to judge and execute subsequent transaction operations, which improves transaction processing efficiency.
图13为本发明第十实施例的机器到机器网关的结构示意图,包括:Fig. 13 is a schematic structural diagram of a machine-to-machine gateway according to a tenth embodiment of the present invention, including:
接收单元1301,用于接收来自M2M平台的事务操作命令,事务操作命令包括指示M2M网关汇聚转发事务操作响应的事务执行处理指示;接收事务参与设备返回的事务操作响应;The receiving
汇聚单元1302,用于将接收单元1301接收的事务操作响应进行汇聚;An
发送单元1303,用于给连接的事务参与设备下发事务操作命令;将汇聚单元1302汇聚得到的事务操作响应发送给所述M2M平台。The sending
图14为本发明第十一实施例的机器到机器网关的结构示意图,包括:Fig. 14 is a schematic structural diagram of a machine-to-machine gateway according to an eleventh embodiment of the present invention, including:
接收单元1401,用于接收来自M2M平台的事务操作命令,事务操作命令包括指示M2M网关汇聚事务操作响应并控制执行后续事务更新操作后,返回事务执行结果的事务执行处理指示;接收连接的事务参与设备返回的事务准备响应;接收来自所述事务参与设备的事务更新响应;The receiving
汇聚处理单元1402,用于根据接收单元1401接收的事务执行处理指示汇聚接收的事务准备响应,根据汇聚的事务准备响应的结果生成事务更新指令;根据所述事务执行处理指示汇聚接收的事务更新响应;The
发送单元1403,用于根据接收单元1401接收的事务执行处理指示向事务参与设备下发事务准备指令;向事务参与设备下发事务更新指令;将汇聚处理单元1402汇聚的事务更新响应对应的执行结果返回给M2M平台。The sending
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the programs can be stored in a computer-readable storage medium. During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM), etc.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.
Claims (16)
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 Expired - Fee Related 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)
| 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 the Network Services Layer |
Citations (5)
| 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 | 华为技术有限公司 | A transaction control method, system and device |
| CN101371229A (en) * | 2005-10-06 | 2009-02-18 | 雷特泽远程管理有限公司 | Resource Command Messages and Methods |
| 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)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101860572A (en) * | 2010-06-23 | 2010-10-13 | 中兴通讯股份有限公司 | Vehicle-mounted gateway, network element, vehicle remote control system and method based on M2M |
| CN102136976B (en) * | 2011-02-24 | 2014-12-31 | 华为技术有限公司 | Machine transaction control method, device and system |
-
2011
- 2011-02-24 CN CN201110044771.7A patent/CN102136976B/en not_active Expired - Fee Related
- 2011-09-09 WO PCT/CN2011/079535 patent/WO2012113226A1/en not_active Ceased
Patent Citations (5)
| 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 Messages and Methods |
| CN101212481A (en) * | 2007-12-21 | 2008-07-02 | 华为技术有限公司 | A 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)
| 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 the Network Services Layer |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2012113226A1 (en) | 2012-08-30 |
| CN102136976B (en) | 2014-12-31 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN102136976B (en) | Machine transaction control method, device and system | |
| CN107295080B (en) | Data storage method and server applied to distributed server cluster | |
| EP3410357B1 (en) | Provisioning multiple network resources | |
| CN102364921A (en) | Realization method and equipment for enterprise service bus and corresponding platform | |
| US9961125B2 (en) | Messaging API over HTTP protocol to establish context for data exchange | |
| CN109087116A (en) | Accumulated point exchanging method, integral transaction system and computer readable storage medium | |
| CN104041086B (en) | Method and device for group management in machine communication | |
| CN108259618B (en) | A synchronous data interaction processing method and device | |
| CN114338063A (en) | Message queue system, service processing method, and computer-readable storage medium | |
| CN107517227A (en) | Session implementation method and device for distributed consensus system | |
| CN112202877B (en) | Gateway linkage method, gateway, cloud server and user terminal | |
| TW201234183A (en) | Access control method, access control apparatus, and access control program | |
| CN113051044A (en) | Distributed transaction processing method and device based on non-service architecture | |
| CN110417876B (en) | Session method, node server and main control device in distributed system | |
| CN105162769A (en) | Gateway authority transfer method and gateway authority transfer device | |
| CN107872492A (en) | A kind of method and apparatus for supporting multi-user to edit data object in service end | |
| CN109245941B (en) | Service compensation method and device | |
| CN106209927A (en) | The interaction relation of a kind of multiple terminals safeguards system and method | |
| CN102209084A (en) | Processing method of Push message, apparatus thereof and communication system | |
| CN116011991A (en) | Multi-person Collaborative Task Guarantee Method Based on Proxy and Backup Technology | |
| CN109150981B (en) | Block chain network networking method, device, equipment and computer readable storage medium | |
| KR20170010300A (en) | Methods for processing request message in M2M system and Apparatuses thereof | |
| CN103997509A (en) | Service oriented architecture-based service processing method and apparatus | |
| CN105791339B (en) | Method and device for processing resource operation request | |
| CN109104472B (en) | Blockchain network networking method, apparatus, device and computer-readable storage medium |
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 |
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 Technologies Co.,Ltd. Address before: 518129 headquarters building of Bantian HUAWEI base, Longgang District, Guangdong, Shenzhen Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd. |
|
| TR01 | Transfer of patent right | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20141231 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |