A method for controlling a terminal peripheral, characterized by comprising: a Machine to Machine, M2M, gateway receiving (107,208,301,401) a transaction control message sent by a control device or a M2M service platform, wherein the transaction control message comprises transaction information required to be executed, the transaction information comprises more than one operations and information of a terminal peripheral executing the operations; or, the transaction information is a transaction identifier; before sending (110,210,304,402) an operation command to the terminal peripheral, the M2M gateway searching for more than one operations corresponding to the transaction identifier and information of a terminal peripheral corresponding to the transaction identifier according to a local database, and one transaction control message corresponds to the same operation of a plurality of terminal peripherals, or a plurality of operations of one terminal peripheral or a plurality of operations of a plurality of terminal peripherals; the M2M gateway sending (110,210,304,402) said operation command to said terminal peripheral according to the transaction information required to be executed; the M2M gateway receiving (111,211,305,403) a command feedback message of the terminal peripheral, wherein the command feedback message comprises an operation command execution result; and the M2M gateway sending (113,212,307,404) a control feedback message to the control device or the M2M service platform, wherein the control feedback message carries a transaction execution result obtained according to an operation execution result. a Machine to Machine, M2M, gateway receiving (107,208,301,401) a transaction control message sent by a control device or a M2M service platform, wherein the transaction control message comprises transaction information required to be executed, the transaction information comprises more than one operations and information of a terminal peripheral executing the operations; or, the transaction information is a transaction identifier; before sending (110,210,304,402) an operation command to the terminal peripheral, the M2M gateway searching for more than one operations corresponding to the transaction identifier and information of a terminal peripheral corresponding to the transaction identifier according to a local database, and one transaction control message corresponds to the same operation of a plurality of terminal peripherals, or a plurality of operations of one terminal peripheral or a plurality of operations of a plurality of terminal peripherals; the M2M gateway sending (110,210,304,402) said operation command to said terminal peripheral according to the transaction information required to be executed; the M2M gateway receiving (111,211,305,403) a command feedback message of the terminal peripheral, wherein the command feedback message comprises an operation command execution result; and the M2M gateway sending (113,212,307,404) a control feedback message to the control device or the M2M service platform, wherein the control feedback message carries a transaction execution result obtained according to an operation execution result.