WO2017166569A1 - Terminal control method and device - Google Patents
Terminal control method and device Download PDFInfo
- Publication number
- WO2017166569A1 WO2017166569A1 PCT/CN2016/094214 CN2016094214W WO2017166569A1 WO 2017166569 A1 WO2017166569 A1 WO 2017166569A1 CN 2016094214 W CN2016094214 W CN 2016094214W WO 2017166569 A1 WO2017166569 A1 WO 2017166569A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- terminal
- control
- control terminal
- execution result
- controlled
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 230000004044 response Effects 0.000 claims description 50
- 230000001360 synchronised effect Effects 0.000 claims description 12
- 238000012217 deletion Methods 0.000 claims description 2
- 230000037430 deletion Effects 0.000 claims description 2
- 230000005540 biological transmission Effects 0.000 description 10
- 230000003111 delayed effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W56/00—Synchronisation arrangements
- H04W56/001—Synchronization between nodes
- H04W56/002—Mutual synchronization
Definitions
- the method further includes: when determining that the first control terminal is a non-access terminal, refusing to perform an operation corresponding to the first control instruction.
- the method further includes: after the predetermined time period, the controlled terminal receives the response information corresponding to the execution result sent by the first control terminal and the second control terminal, respectively, and receives the first Controlling, by the second terminal or the second control terminal, the second control instruction, determining, according to the flag bit carried by the received response information, whether to execute the second control instruction; Instructing the first control terminal or the second control terminal to synchronize the synchronization status of the execution result.
- the response message is a WIFI frame message
- the flag bit carried by the response message is a flag bit carried in the tail information added by the WIFI frame message.
- FIG. 1 is a flowchart of a terminal control method according to a first embodiment of the present invention
- the controlled terminal determines whether the first control terminal is an access terminal, and when determining that the first control terminal is an access terminal, performing an operation corresponding to the first control instruction and obtaining an execution result;
- the controlled terminal determines whether the first control terminal is an access terminal according to the address identifier carried in the first control instruction, where the address identifier can be a network protocol (IP) address, and the specific memory area is used.
- IP network protocol
- the instruction stack is divided into an access instruction stack and a control instruction stack, and the instructions are respectively stored according to the header information, the access instruction header information is 0, and the control instruction header information is 1, wherein the access instruction is an access message, and the control is performed.
- the instruction is a control message.
- the first control terminal and the second control terminal may be connected to the controlled terminal by using a wireless transmission manner, where the wireless transmission manner includes but is not limited to: infrared wireless transmission mode, WIFI wireless transmission mode, and Bluetooth Wireless transmission method.
- the response message may be a WIFI frame message, and the flag bit carried in the response message is added to the WIFI frame message.
- the flag bit carried in the tail information is added to the WIFI frame message.
- Step S104 further includes: the controlled terminal sends the manipulation error information to the first control terminal or the second control terminal, and destroys the second control instruction.
- the controlled terminal does not perform and destroys.
- the flag bit can be set according to requirements.
- the access device of the second embodiment of the present invention is applied to a controlled terminal, and the device includes:
- the receiving module is configured to receive the first control instruction sent by the first control terminal.
- the first control terminal may be a mobile phone, a tablet, a computer, or the like.
- a determining module configured to determine whether the first control is an accessed terminal
- control module configured to perform an operation corresponding to the first control instruction and obtain an execution result when determining that the first control terminal is an accessed terminal
- the controlled terminal determines whether the first control terminal is an access terminal according to the address identifier carried in the first control instruction, where the address identifier can be an IP address, and the memory partition is used to divide the instruction stack, and the instruction stack is divided into access groups.
- the instruction stack and the control instruction stack respectively store their instructions according to the header information, the access instruction header information is 0, the control instruction header information is 1, wherein the access instruction is an access message, and the control The instruction is a control message.
- a synchronization module configured to separately send the execution result to the first control terminal and the second control terminal to perform synchronization of the execution result;
- the second control terminal is one or more terminals that have established a connection with the controlled terminal.
- the controlled terminal can be various smart home products such as smart projectors, televisions, set-top boxes, DVD players, air conditioners, and the like.
- the first remote control command may be for different controlled terminals, that is, the first remote control command may include a plurality of different types, such as a smart projector remote control command, a television remote control command, an air conditioner remote command or a DVD remote command, and the like.
- the control module is further configured to receive, by the controlled terminal, the response information corresponding to the execution result sent by the first control terminal and the second control terminal, respectively, and receive the first or second Controlling, by the second control instruction sent by the terminal, whether to execute the second control instruction according to the flag bit carried in the received response information; the flag bit is used to instruct the first control terminal or the second control terminal to synchronize the execution result Synchronization status.
- the first control terminal and the second control terminal may be connected to the controlled terminal by using a wireless transmission mode, where the wireless transmission mode includes, but is not limited to, an infrared wireless transmission mode, a WIFI wireless transmission mode, and a Bluetooth wireless transmission mode.
- the wireless transmission mode includes, but is not limited to, an infrared wireless transmission mode, a WIFI wireless transmission mode, and a Bluetooth wireless transmission mode.
- the synchronization state includes a first type of synchronization state or a second type of synchronization state, where the first type of synchronization state includes synchronizing the execution result or synchronizing the execution result delay or synchronizing the execution result but transmitting
- the response information is incomplete;
- the second type of synchronization state includes: the synchronization execution result is unsuccessful or the execution result sent by the controlled terminal is not received or the execution result sent by the controlled terminal is received but not synchronized.
- the control module is further configured to: when a flag bit carried by the response message received by the controlled terminal within a predetermined time period, indicates that the first control terminal or the second control terminal synchronizes the synchronization status of the execution result to the a first type of synchronization state, and when receiving the second control instruction sent by the first control terminal or the second control terminal, executing the second instruction; and/or,
- the flag bit 000 may be set to indicate that the execution result is unsuccessful, 001 indicates that the execution result is successful, 010 indicates that the execution result is delayed, and 011 indicates that the execution result is successful but the response is sent.
- the information is incomplete, 100 means that the command is not received, and 101 means that the execution result sent by the controlled terminal is received but not synchronized.
- the controlled terminal when all the response information flag bits of the received first control terminal and the second control terminal are 001 or 010 or 011, the controlled terminal performs the execution of the second control command.
- the received response information flag bits of the first control terminal and the second control terminal are as long as one is 000 or 100 or 101, the controlled terminal does not perform the execution of the second control command.
- Step S104 further includes: the controlled terminal sends the manipulation error information to the first control terminal or the second control terminal, and destroys the second control instruction.
- the controlled terminal does not perform and destroys.
- the flag bit can be set according to requirements.
- the control module in this embodiment is further configured to refuse to perform an operation corresponding to the first control instruction when determining that the first control terminal is a non-access terminal.
- control process is as follows:
- S2 determining, according to the IP address carried in the first control instruction, whether the IP is accessed;
- the method for synchronizing the feedback information may be: after the controlled terminal executes the current first control instruction, synchronizing the executed result to all the control terminals, and all the control terminals feedback the synchronous feedback information after receiving the notification message;
- An embodiment of the present invention provides a terminal control method and apparatus, the method comprising: receiving, by a control terminal, a first control command sent by a first control terminal; and determining, by the controlled terminal, whether the first control terminal is an accessed terminal; When it is determined that the first control terminal is an access terminal, performing an operation corresponding to the first control instruction and obtaining an execution result; the controlled terminal separately sending the execution result to a second control terminal for synchronization;
- the second control terminal is one or more control terminals that have established a connection with the controlled terminal.
- the embodiment of the present invention implements multi-terminal control of the controlled device.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Disclosed is a terminal control method. The method comprises a controlled terminal receiving a first control instruction sent by a first control terminal; the controlled terminal determining whether the first control terminal is an accessed terminal, and when it is determined that the first control terminal is an accessed terminal, executing an operation corresponding to the first control instruction and obtaining an execution result; and the controlled terminal respectively sending the execution result to the first control terminal and a second control terminal for synchronization, wherein the second control terminal is one or more control terminals having established a connection with the controlled terminal. The present invention can realize multi-terminal control.
Description
本发明实施例涉及但不限于通讯领域,尤其涉及一种终端控制方法及装置。The embodiments of the present invention relate to, but are not limited to, the field of communications, and in particular, to a terminal control method and apparatus.
现有技术中投影设备只能接受来自一个终端的控制,不能由多个终端同时控制。当一台投影设备已被控制后,如果不断开,第二个控制设备无法对该投影设备进行控制。In the prior art, the projection device can only accept control from one terminal, and cannot be controlled simultaneously by multiple terminals. When a projection device has been controlled, if it is not disconnected, the second control device cannot control the projection device.
目前,一台投影设备只能被一个终端控制,使得对投影设备的操作很不方便。At present, a projection device can only be controlled by one terminal, which makes the operation of the projection device inconvenient.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明的目的是提供一种终端控制方法,能够实现多终端对被控设备的控制。It is an object of the present invention to provide a terminal control method capable of implementing control of a controlled device by multiple terminals.
为达上述目的,本发明实施例提供一种终端控制方法,包括:被控制终端接收第一控制终端发送的第一控制指令;所述被控制终端判断所述第一控制终端是否为已接入终端;在判定所述第一控制终端的是已接入终端时,执行所述第一控制指令对应的操作并得到执行结果;所述被控终端将所述执行结果分别发送到第一控制终端和第二控制终端进行执行结果的同步;所述第二控制终端为与被控终端已建立连接的一个或者多个终端。To achieve the above objective, an embodiment of the present invention provides a terminal control method, including: receiving, by a control terminal, a first control command sent by a first control terminal; and determining, by the controlled terminal, whether the first control terminal is a terminal; when determining that the first control terminal is an access terminal, performing an operation corresponding to the first control instruction and obtaining an execution result; the controlled terminal separately sending the execution result to the first control terminal And synchronizing the execution result with the second control terminal; the second control terminal is one or more terminals that have established a connection with the controlled terminal.
优选的,上述方法还包括:在判定所述第一控制终端是未接入终端时,拒绝执行所述第一控制指令对应的操作。Preferably, the method further includes: when determining that the first control terminal is a non-access terminal, refusing to perform an operation corresponding to the first control instruction.
优选的,上述方法之后还包括:在预定时间段内所述被控终端分别接收到所述第一控制终端和第二控制终端发送的与所述执行结果对应的响应信息,且接收到第一控制终端或者第二控制终端发送的第二控制指令,根据接收到的响应信息携带的标记位确定是否执行第二控制指令;所述标记位用于
指示所述第一控制终端或者第二控制终端同步所述执行结果的同步状态。Preferably, the method further includes: after the predetermined time period, the controlled terminal receives the response information corresponding to the execution result sent by the first control terminal and the second control terminal, respectively, and receives the first Controlling, by the second terminal or the second control terminal, the second control instruction, determining, according to the flag bit carried by the received response information, whether to execute the second control instruction;
Instructing the first control terminal or the second control terminal to synchronize the synchronization status of the execution result.
优选的,上述响应消息为WIFI帧消息,且所述响应消息携带的标记位为所述WIFI帧消息添加的尾信息中携带的标记位。Preferably, the response message is a WIFI frame message, and the flag bit carried by the response message is a flag bit carried in the tail information added by the WIFI frame message.
优选的,上述同步状态包括第一类同步状态或者第二类同步状态;Preferably, the synchronization state includes a first type of synchronization state or a second type of synchronization state;
其中,所述第一类同步状态包括同步所述执行结果成功或者同步所述执行结果延迟或者同步所述执行结果成功但发送的响应信息不完整;所述第二类同步状态同步所述执行结果不成功或者未收到所述被控终端发送的执行结果或者接收到被控终端发送的执行结果但未进行同步。The first type of synchronization state includes synchronizing the execution result or synchronizing the execution result delay or synchronizing the execution result but the sent response information is incomplete; the second type synchronization state synchronizes the execution result The result of the execution sent by the controlled terminal or the execution result sent by the controlled terminal is not received or is not synchronized.
优选的,上述在预定时间段内所述被控终端分别接收到所述第一控制终端和第二控制终端发送的与所述执行结果对应的响应信息,且接收到第一或者第二控制终端发送的第二控制指令,根据接收到的响应信息携带的标记位确定是否执行第二控制指令,包括:当在预定时间段内所述被控终端接收到的全部响应消息携带的标记位指示所述第一控制终端或者第二控制终端同步所述执行结果的同步状态为所述第一类同步状态,且接收到第一控制终端或者第二控制终端发送的第二控制指令时,执行所述第二指令;和/或,当在预定时间段内所述被控终端接收到的至少一个响应消息携带的标记位指示所述第一控制终端或者第二控制终端同步所述执行结果的同步状态为所述第二类同步状态,且接收到第一控制终端或者第二控制终端发送的第二控制指令时,拒绝执行所述第二指令。Preferably, the controlled terminal receives the response information corresponding to the execution result sent by the first control terminal and the second control terminal, and receives the first or second control terminal, respectively, in the predetermined time period. And sending, by the second control instruction, determining whether to execute the second control instruction according to the flag bit carried in the received response information, including: indicating, by the flag bit carried in all the response messages received by the controlled terminal within a predetermined time period The first control terminal or the second control terminal synchronizes the synchronization state of the execution result to the first type of synchronization state, and when receiving the second control instruction sent by the first control terminal or the second control terminal, performing the a second instruction; and/or a flag bit carried by the at least one response message received by the controlled terminal within a predetermined time period, indicating that the first control terminal or the second control terminal synchronizes the synchronization status of the execution result Rejecting when the second type of synchronization state is received and the second control instruction sent by the first control terminal or the second control terminal is received The second instruction.
优选的,上述法之后还包括:所述被控终端发送操控错误信息至第一或者第二控制终端,并且销毁所述第二控制指令。Preferably, after the foregoing method, the method further includes: the controlled terminal sending the manipulation error information to the first or second control terminal, and destroying the second control instruction.
为达上述目的,本发明实施例还提供一种终端控制装置,应用于被控终端,该装置包括:接收模块,设置为接收第一控制终端发送的第一控制指令;判断模块,设置为判定所述第一控制终端是否为已接入终端;控制模块,用于在判定所述第一控制终端为已接入终端时,执行所述第一控制指令对应的操作并得到执行结果;同步模块,设置为将所述执行结果分别发送到第一控制终端和第二控制终端进行执行结果的同步;所述第二控制终端为与被控终端已建立连接的一个或者多个终端。In order to achieve the above object, an embodiment of the present invention further provides a terminal control apparatus, which is applied to a controlled terminal, and includes: a receiving module, configured to receive a first control command sent by the first control terminal; and a determining module, configured to determine Whether the first control terminal is an access terminal; the control module is configured to: when the first control terminal is determined to be an access terminal, perform an operation corresponding to the first control instruction and obtain an execution result; And being configured to separately send the execution result to the first control terminal and the second control terminal to perform synchronization of the execution result; the second control terminal is one or more terminals that have established a connection with the controlled terminal.
优选的,上述装置还包括:控制模块,还设置为在判定所述第一控制终
端的是未接入终端时,拒绝执行所述第一控制指令对应的操作。Preferably, the apparatus further includes: a control module, further configured to determine the first control end
When the terminal is not connected, the operation corresponding to the first control instruction is refused.
优选的,上述控制模块还设置为:在预定时间段内所述被控终端分别接收到所述第一控制终端和第二控制终端发送的与所述执行结果对应的响应信息,且接收到第一或者第二控制终端发送的第二控制指令,根据接收到的响应信息携带的标记位确定是否执行第二控制指令;所述标记位用于指示所述第一控制终端或者第二控制终端同步所述执行结果的同步状态。Preferably, the control module is further configured to: after the predetermined time period, the controlled terminal receives the response information corresponding to the execution result sent by the first control terminal and the second control terminal, respectively, and receives the first And a second control instruction sent by the first control terminal, determining, according to the flag bit carried by the received response information, whether to execute the second control instruction; the flag bit is used to indicate that the first control terminal or the second control terminal is synchronized The synchronization status of the execution result.
优选的,上述响应消息为WIFI帧消息,且所述响应消息携带的标记位为所述WIFI帧消息添加的尾信息中携带的标记位。Preferably, the response message is a WIFI frame message, and the flag bit carried by the response message is a flag bit carried in the tail information added by the WIFI frame message.
优选的,上述同步状态包括:第一类同步状态或者第二类同步状态;其中,所述第一类同步状态包括同步所述执行结果成功或者同步所述执行结果延迟或者同步所述执行结果成功但发送的响应信息不完整;所述第二类同步状态包括以下至少之一:同步所述执行结果不成功、未收到所述被控终端发送的执行结果、接收到被控终端发送的执行结果但未进行同步。Preferably, the synchronization state includes: a first type of synchronization state or a second type of synchronization state; wherein the first type of synchronization state includes synchronizing the execution result or synchronizing the execution result delay or synchronizing the execution result. However, the sent response information is incomplete; the second type of synchronization status includes at least one of the following: the synchronization execution result is unsuccessful, the execution result sent by the controlled terminal is not received, and the execution sent by the controlled terminal is received. The result was not synchronized.
优选的,上述控制模块还设置为:当在预定时间段内所述被控终端接收到的全部响应消息携带的标记位指示所述第一控制终端或者第二控制终端同步所述执行结果的同步状态为所述第一类同步状态,且接收到第一控制终端或者第二控制终端发送的第二控制指令时,执行所述第二指令;和/或,当在预定时间段内所述被控终端接收到的至少一个响应消息携带的标记位指示所述第一控制终端或者第二控制终端同步所述执行结果的同步状态为所述第二类同步状态,且接收到第一控制终端或者第二控制终端发送的第二控制指令时,拒绝执行所述第二指令。Preferably, the control module is further configured to: when a flag bit carried by the response message received by the controlled terminal within a predetermined time period, the first control terminal or the second control terminal synchronizes the synchronization of the execution result When the state is the first type of synchronization state, and receiving the second control instruction sent by the first control terminal or the second control terminal, executing the second instruction; and/or, when the predetermined time period is The flag bit carried by the at least one response message received by the control terminal indicates that the first control terminal or the second control terminal synchronizes the synchronization status of the execution result to the second type of synchronization status, and receives the first control terminal or When the second control command sent by the second control terminal is rejected, the second instruction is rejected.
优选的,上述发送模块还设置为:发送操控错误信息至第一控制终端或者第二控制终端,并且所述装置还包括删除模块用于销毁所述第二控制指令。Preferably, the sending module is further configured to: send the handling error information to the first control terminal or the second control terminal, and the device further includes a deleting module, configured to destroy the second control instruction.
本发明实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述任一项的终端控制方法。The embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions for performing the terminal control method of any of the above.
本发明实施例实现了对被控设备的多终端控制,通过对接入消息和控制消息的辨别,在多终端发送控制消息时,实现了多终端控制消息的同步,实现了控制消息的执行判断,从而实现了对被控设备的多终端控制。
The embodiment of the invention implements multi-terminal control of the controlled device. By distinguishing the access message and the control message, when the multi-terminal sends the control message, the synchronization of the multi-terminal control message is realized, and the execution judgment of the control message is realized. Thereby achieving multi-terminal control of the controlled device.
本发明实施例的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Other features and advantages of the embodiments of the invention will be set forth in the description in the description which The objectives and other advantages of the invention may be realized and obtained by means of the structure particularly pointed in the appended claims.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1为本发明第一实施例终端控制方法流程图;1 is a flowchart of a terminal control method according to a first embodiment of the present invention;
图2为本发明第二实施例控制装置模块示意图;2 is a schematic diagram of a control device module according to a second embodiment of the present invention;
图3为本发明控制过程流程示意图。FIG. 3 is a schematic flowchart of a control process of the present invention.
本发明的较佳实施方式Preferred embodiment of the invention
为了便于本领域技术人员的理解,下面结合附图对本发明作进一步的描述,并不能用来限制本发明的保护范围。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的各种方式可以相互组合。In order to facilitate the understanding of those skilled in the art, the present invention is further described below in conjunction with the accompanying drawings, and is not intended to limit the scope of the present invention. It should be noted that the embodiments in the present application and the various manners in the embodiments may be combined with each other without conflict.
如图1所示,本发明第一实施例终端控制方法,该方法包括:As shown in FIG. 1, a terminal control method according to a first embodiment of the present invention includes:
S101:被控制终端接收第一控制终端发送的第一控制指令。S101: The controlled terminal receives the first control instruction sent by the first control terminal.
其中,第一控制终端可以为手机、平板、电脑、可穿戴设备等等。The first control terminal may be a mobile phone, a tablet, a computer, a wearable device, or the like.
其中,被控终端可以为智能投影仪、电视机、机顶盒、DVD播放器、空调等等各种智能家居产品。Among them, the controlled terminal can be various smart home products such as smart projectors, televisions, set-top boxes, DVD players, air conditioners, and the like.
其中,第一遥控指令可以是针对不同的被控终端,即第一遥控指令可以包括多种不同类型,如智能投影仪遥控指令、电视机遥控指令、空调遥控指令或DVD遥控指令等等。The first remote control command may be for different controlled terminals, that is, the first remote control command may include a plurality of different types, such as a smart projector remote control command, a television remote control command, an air conditioner remote control command, or a DVD remote control command.
S102:被控制终端判断所述第一控制终端是否为已接入终端;在判定所述第一控制终端是已接入终端时,执行所述第一控制指令对应的操作并得到执行结果;
S102: The controlled terminal determines whether the first control terminal is an access terminal, and when determining that the first control terminal is an access terminal, performing an operation corresponding to the first control instruction and obtaining an execution result;
在本步骤中,被控终端主要根据第一控制指令中携带的地址标识来判断第一控制终端是否为已接入终端,其中,地址标识可以为网络协议(IP)地址,具体的采用内存区域划分指令栈,指令栈分为接入指令栈和控制指令栈,按照头信息分别存储其指令,接入指令头信息为0,控制指令头信息为1,其中接入指令为接入消息,控制指令为控制消息。In this step, the controlled terminal determines whether the first control terminal is an access terminal according to the address identifier carried in the first control instruction, where the address identifier can be a network protocol (IP) address, and the specific memory area is used. The instruction stack is divided into an access instruction stack and a control instruction stack, and the instructions are respectively stored according to the header information, the access instruction header information is 0, and the control instruction header information is 1, wherein the access instruction is an access message, and the control is performed. The instruction is a control message.
S103:被控终端将所述执行结果分别发送到第一控制终端和第二控制终端进行执行结果的同步;所述第二控制终端为与被控终端已建立连接的一个或者多个终端。S103: The controlled terminal sends the execution result to the first control terminal and the second control terminal respectively to synchronize the execution result; the second control terminal is one or more terminals that have established a connection with the controlled terminal.
上述终端控制方法实施例中,第一控制终端和第二控制终端可以通过无线传输方式与被控终端连接,其中,无线传输的方式包括但不限于:红外无线传输方式、WIFI无线传输方式和蓝牙无线传输方式。In the foregoing embodiment of the terminal control method, the first control terminal and the second control terminal may be connected to the controlled terminal by using a wireless transmission manner, where the wireless transmission manner includes but is not limited to: infrared wireless transmission mode, WIFI wireless transmission mode, and Bluetooth Wireless transmission method.
S104:在预定时间段内所述被控终端分别接收到所述第一控制终端和第二控制终端发送的与所述执行结果对应的响应信息,且接收到第一控制终端或者第二控制终端发送的第二控制指令,根据接收到的响应信息携带的标记位确定是否执行第二控制指令;所述标记位用于指示所述第一控制终端或者第二控制终端同步所述执行结果的同步状态。S104: The controlled terminal receives the response information corresponding to the execution result sent by the first control terminal and the second control terminal, and receives the first control terminal or the second control terminal, respectively, in the predetermined time period. Sending, by the second control instruction, determining, according to the flag bit carried in the received response information, whether to execute the second control instruction; the flag bit is used to instruct the first control terminal or the second control terminal to synchronize the synchronization of the execution result status.
本实施例中,当第一控制终端和第二控制终端通过WIFI无线连接的方式与被控终端连接时,响应消息可以为WIFI帧消息,响应消息携带的标记位为所述WIFI帧消息添加的尾信息中携带的标记位。In this embodiment, when the first control terminal and the second control terminal are connected to the controlled terminal by means of WIFI wireless connection, the response message may be a WIFI frame message, and the flag bit carried in the response message is added to the WIFI frame message. The flag bit carried in the tail information.
在本步骤中,同步状态包括第一类同步状态或者第二类同步状态,其中,所述第一类同步状态包括同步所述执行结果成功或者同步所述执行结果延迟或者同步所述执行结果成功但发送的响应信息不完整;所述第二类同步状态包括同步所述执行结果不成功或者未收到所述被控终端发送的执行结果或者接收到被控终端发送的执行结果但未进行同步。In this step, the synchronization state includes a first type of synchronization state or a second type of synchronization state, wherein the first type of synchronization state includes synchronizing the execution result or synchronizing the execution result delay or synchronizing the execution result. However, the sent response information is incomplete; the second type of synchronization status includes: the synchronization execution result is unsuccessful or the execution result sent by the controlled terminal is not received or the execution result sent by the controlled terminal is received but not synchronized. .
步骤S104还包括:当在预定时间段内所述被控终端接收到的全部响应消息携带的标记位指示所述第一控制终端或者第二控制终端同步所述执行结果的同步状态为所述第一类同步状态,且接收到第一控制终端或者第二控制终端发送的第二控制指令时,执行所述第二指令;和/或,Step S104 further includes: when a flag bit carried by the control message received by the controlled terminal within a predetermined time period, indicating that the first control terminal or the second control terminal synchronizes the synchronization status of the execution result to the a synchronization state, and when receiving the second control instruction sent by the first control terminal or the second control terminal, executing the second instruction; and/or,
当在预定时间段内所述被控终端接收到的至少一个响应消息携带的标记
位指示所述第一控制终端或者第二控制终端同步所述执行结果的同步状态为所述第二类同步状态,且接收到第一控制终端或者第二控制终端发送的第二控制指令时,拒绝执行所述第二指令。a flag carried by the at least one response message received by the controlled terminal within a predetermined time period
a bit indicating that the synchronization state of the first control terminal or the second control terminal to synchronize the execution result is the second type of synchronization state, and when receiving the second control instruction sent by the first control terminal or the second control terminal, The execution of the second instruction is refused.
在本实施例中,可以设置标记位000表示同步所述执行结果不成功、001表示同步所述执行结果成功、010表示同步所述执行结果延迟、011表示同步所述执行结果成功但发送的响应信息不完整、100表示指令未收到、101表示接收到被控终端发送的执行结果但未进行同步。本实施例中,当接收到的第一控制终端和第二控制终端的所有响应信息标记位为001或者010或者011时,被控终端进行第二控制命令的执行。本实施例中当接收到的第一控制终端和第二控制终端的响应信息标记位中,只要有一个为000或者100或者101时,被控终端不进行第二控制命令的执行。In this embodiment, the flag bit 000 may be set to indicate that the execution result is unsuccessful, 001 indicates that the execution result is successful, 010 indicates that the execution result is delayed, and 011 indicates that the execution result is successful but the response is sent. The information is incomplete, 100 means that the command is not received, and 101 means that the execution result sent by the controlled terminal is received but not synchronized. In this embodiment, when all the response information flag bits of the received first control terminal and the second control terminal are 001 or 010 or 011, the controlled terminal performs the execution of the second control command. In the embodiment, when the received response information flag bits of the first control terminal and the second control terminal are as long as one is 000 or 100 or 101, the controlled terminal does not perform the execution of the second control command.
步骤S104还包括:被控终端发送操控错误信息至第一控制终端或者第二控制终端,并且销毁所述第二控制指令。Step S104 further includes: the controlled terminal sends the manipulation error information to the first control terminal or the second control terminal, and destroys the second control instruction.
具体的,本实施例中当标记为000或者100或者101时,被控终端不进行执行并且销毁,在其他实施方式中,标记位可以根据需求设定。Specifically, when the flag is 000 or 100 or 101 in this embodiment, the controlled terminal does not perform and destroys. In other embodiments, the flag bit can be set according to requirements.
本实施例中,上述方法还包括在判定所述第一控制终端的是未接入终端时,拒绝执行所述第一控制指令对应的操作。In this embodiment, the method further includes, when determining that the first control terminal is a non-access terminal, refusing to perform an operation corresponding to the first control instruction.
如图2所示,本发明第二实施例接入装置,应用于被控终端,该装置包括:As shown in FIG. 2, the access device of the second embodiment of the present invention is applied to a controlled terminal, and the device includes:
接收模块,用于接收第一控制终端发送的第一控制指令。其中第一控制终端可以为手机、平板、电脑等等。The receiving module is configured to receive the first control instruction sent by the first control terminal. The first control terminal may be a mobile phone, a tablet, a computer, or the like.
判断模块,设置为判断所述第一控制是否为已接入终端;a determining module, configured to determine whether the first control is an accessed terminal;
控制模块,设置为在判定所述第一控制终端的是已接入终端时,执行所述第一控制指令对应的操作并得到执行结果;a control module, configured to perform an operation corresponding to the first control instruction and obtain an execution result when determining that the first control terminal is an accessed terminal;
被控终端主要根据第一控制指令中携带的地址标识来判断第一控制终端是否为已接入终端,其中地址标识可以为IP地址,具体的采用内存区域划分指令栈,指令栈分为接入指令栈和控制指令栈,按照头信息分别存储其指令,接入指令头信息为0,控制指令头信息为1,其中接入指令为接入消息,控制
指令为控制消息。The controlled terminal determines whether the first control terminal is an access terminal according to the address identifier carried in the first control instruction, where the address identifier can be an IP address, and the memory partition is used to divide the instruction stack, and the instruction stack is divided into access groups. The instruction stack and the control instruction stack respectively store their instructions according to the header information, the access instruction header information is 0, the control instruction header information is 1, wherein the access instruction is an access message, and the control
The instruction is a control message.
同步模块,设置为将所述执行结果分别发送到第一控制终端和第二控制终端进行执行结果的同步;所述第二控制终端为与被控终端已建立连接的一个或者多个终端。And a synchronization module, configured to separately send the execution result to the first control terminal and the second control terminal to perform synchronization of the execution result; the second control terminal is one or more terminals that have established a connection with the controlled terminal.
其中,被控终端可以为智能投影仪、电视机、机顶盒、DVD播放器、空调等等各种智能家居产品。第一遥控指令可以是针对不同的被控终端,即第一遥控指令可以包括多种不同类型,如智能投影仪遥控指令、电视机遥控指令、空调遥控指令或DVD遥控指令等等。Among them, the controlled terminal can be various smart home products such as smart projectors, televisions, set-top boxes, DVD players, air conditioners, and the like. The first remote control command may be for different controlled terminals, that is, the first remote control command may include a plurality of different types, such as a smart projector remote control command, a television remote control command, an air conditioner remote command or a DVD remote command, and the like.
控制模块还设置为,在预定时间段内所述被控终端分别接收到所述第一控制终端和第二控制终端发送的与所述执行结果对应的响应信息,且接收到第一或者第二控制终端发送的第二控制指令,根据接收到的响应信息携带的标记位确定是否执行第二控制指令;所述标记位用于指示所述第一控制终端或者第二控制终端同步所述执行结果的同步状态。The control module is further configured to receive, by the controlled terminal, the response information corresponding to the execution result sent by the first control terminal and the second control terminal, respectively, and receive the first or second Controlling, by the second control instruction sent by the terminal, whether to execute the second control instruction according to the flag bit carried in the received response information; the flag bit is used to instruct the first control terminal or the second control terminal to synchronize the execution result Synchronization status.
本实施例中,第一控制终端和第二控制终端可以通过无线传输方式与被控终端连接,其中无线传输的方式包括但不限于:红外无线传输方式、WIFI无线传输方式和蓝牙无线传输方式。In this embodiment, the first control terminal and the second control terminal may be connected to the controlled terminal by using a wireless transmission mode, where the wireless transmission mode includes, but is not limited to, an infrared wireless transmission mode, a WIFI wireless transmission mode, and a Bluetooth wireless transmission mode.
其中,同步状态包括第一类同步状态或者第二类同步状态,其中,所述第一类同步状态包括同步所述执行结果成功或者同步所述执行结果延迟或者同步所述执行结果成功但发送的响应信息不完整;所述第二类同步状态包括同步所述执行结果不成功或者未收到所述被控终端发送的执行结果或者接收到被控终端发送的执行结果但未进行同步。The synchronization state includes a first type of synchronization state or a second type of synchronization state, where the first type of synchronization state includes synchronizing the execution result or synchronizing the execution result delay or synchronizing the execution result but transmitting The response information is incomplete; the second type of synchronization state includes: the synchronization execution result is unsuccessful or the execution result sent by the controlled terminal is not received or the execution result sent by the controlled terminal is received but not synchronized.
控制模块还设置为:当在预定时间段内所述被控终端接收到的全部响应消息携带的标记位指示所述第一控制终端或者第二控制终端同步所述执行结果的同步状态为所述第一类同步状态,且接收到第一控制终端或者第二控制终端发送的第二控制指令时,执行所述第二指令;和/或,The control module is further configured to: when a flag bit carried by the response message received by the controlled terminal within a predetermined time period, indicates that the first control terminal or the second control terminal synchronizes the synchronization status of the execution result to the a first type of synchronization state, and when receiving the second control instruction sent by the first control terminal or the second control terminal, executing the second instruction; and/or,
当在预定时间段内所述被控终端接收到的至少一个响应消息携带的标记位指示所述第一控制终端或者第二控制终端同步所述执行结果的同步状态为所述第二类同步状态,且接收到第一控制终端或者第二控制终端发送的第二控制指令时,拒绝执行所述第二指令。
When a flag bit carried by the at least one response message received by the controlled terminal within a predetermined time period indicates that the first control terminal or the second control terminal synchronizes the synchronization state of the execution result to the second type of synchronization state And receiving the second control instruction when the second control instruction sent by the first control terminal or the second control terminal is received.
在本实施例中,可以设置标记位000表示同步所述执行结果不成功、001表示同步所述执行结果成功、010表示同步所述执行结果延迟、011表示同步所述执行结果成功但发送的响应信息不完整、100表示指令未收到、101表示接收到被控终端发送的执行结果但未进行同步。本实施例中当接收到的第一控制终端和第二控制终端的所有响应信息标记位为001或者010或者011时,被控终端进行第二控制命令的执行。本实施例中当接收到的第一控制终端和第二控制终端的响应信息标记位中,只要有一个为000或者100或者101时,被控终端不进行第二控制命令的执行。In this embodiment, the flag bit 000 may be set to indicate that the execution result is unsuccessful, 001 indicates that the execution result is successful, 010 indicates that the execution result is delayed, and 011 indicates that the execution result is successful but the response is sent. The information is incomplete, 100 means that the command is not received, and 101 means that the execution result sent by the controlled terminal is received but not synchronized. In this embodiment, when all the response information flag bits of the received first control terminal and the second control terminal are 001 or 010 or 011, the controlled terminal performs the execution of the second control command. In the embodiment, when the received response information flag bits of the first control terminal and the second control terminal are as long as one is 000 or 100 or 101, the controlled terminal does not perform the execution of the second control command.
步骤S104还包括:被控终端发送操控错误信息至第一控制终端或者第二控制终端,并且销毁所述第二控制指令。Step S104 further includes: the controlled terminal sends the manipulation error information to the first control terminal or the second control terminal, and destroys the second control instruction.
具体的,本实施例中当标记为000、100、101时,被控终端不进行执行并且销毁,在其他实施方式中,标记位可以根据需求设定。Specifically, when marked as 000, 100, and 101 in this embodiment, the controlled terminal does not perform and destroys. In other embodiments, the flag bit can be set according to requirements.
发送模块还设置为:发送操控错误信息至第一或者第二控制终端,并且所述装置还包括删除模块用于销毁所述第二控制指令。The sending module is further configured to: send the manipulation error information to the first or second control terminal, and the device further includes a deletion module for destroying the second control instruction.
本实施例中控制模块,还设置为在判定所述第一控制终端的是未接入终端时,拒绝执行所述第一控制指令对应的操作。The control module in this embodiment is further configured to refuse to perform an operation corresponding to the first control instruction when determining that the first control terminal is a non-access terminal.
下面以被控终端为智能投影仪,控制终端为多个移动终端为例对本发明做进一步说明:The following further describes the present invention by taking the controlled terminal as an intelligent projector and the control terminal as a plurality of mobile terminals as an example:
如图3所示,控制过程如下:As shown in Figure 3, the control process is as follows:
S1:接收控制终端发送的第一控制指令(控制终端与被控终端在同一wifi环境下,包括wifi直连,wifi tethring以及wifi接入),判断其指令头信息是否为1;S1: receiving the first control command sent by the control terminal (the control terminal and the controlled terminal in the same wifi environment, including wifi direct connection, wifi tethring and wifi access), determining whether the instruction header information is 1;
S2:根据发起第一控制指令中携带的IP地址判断是否为已接入IP;S2: determining, according to the IP address carried in the first control instruction, whether the IP is accessed;
S3:若不是已接入IP,则拒绝执行该指令;S3: If the IP is not already accessed, the instruction is refused to be executed;
S4:若为已接入IP,则在预定时间内,等待上一条控制消息的同步反馈信息(响应消息)。同步反馈信息的方法可以是:当被控终端执行当前第一控制指令后,将执行后的结果同步到所有控制终端,所有控制终端接收到通知消息后,反馈同步反馈信息;
S4: If the IP is already accessed, wait for the synchronization feedback information (response message) of the previous control message within a predetermined time. The method for synchronizing the feedback information may be: after the controlled terminal executes the current first control instruction, synchronizing the executed result to all the control terminals, and all the control terminals feedback the synchronous feedback information after receiving the notification message;
S5:若预定时间内所有控制终端反馈同步反馈信息完成,则执行该条指令;S5: if all the control terminals feedback synchronous feedback information is completed within a predetermined time, execute the instruction;
S6:若预定时间内,部分控制终端未反馈,视为同步反馈信息丢失,不执行该指令;S6: if part of the control terminal does not feed back within a predetermined time, it is regarded as loss of synchronous feedback information, and the instruction is not executed;
S7:若预定时间为所有控制终端均未反馈同步反馈信息,即同步标记位为0,则销毁该指令;S7: if the predetermined time is that all the control terminals do not feed back the synchronous feedback information, that is, the synchronization flag bit is 0, the instruction is destroyed;
S8:反馈给控制终端控制错误。S8: Feedback to the control terminal to control the error.
除上述实施例外,本发明实施例还可以有其他实施方式。凡采用等同替换或等效变换形成的技术方案,均落在本发明要求的保护范围。In addition to the above-described embodiments, other embodiments may be implemented in the embodiments of the present invention. Any technical solution formed by equivalent replacement or equivalent transformation falls within the protection scope of the present invention.
以上所述,仅为本发明的较佳实例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above is only a preferred embodiment of the present invention and is not intended to limit the scope of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
本发明实施例提出终端控制方法及装置,该方法包括:被控制终端接收第一控制终端发送的第一控制指令;所述被控制终端判定所述第一控制终端是否为已接入终端;在判定所述第一控制终端是已接入终端时,执行所述第一控制指令对应的操作并得到执行结果;所述被控终端将所述执行结果分别发送到第二控制终端进行同步;所述第二控制终端为与被控终端已建立连接的一个或者多个控制终端;本发明实施例实现了对被控设备的多终端控制。
An embodiment of the present invention provides a terminal control method and apparatus, the method comprising: receiving, by a control terminal, a first control command sent by a first control terminal; and determining, by the controlled terminal, whether the first control terminal is an accessed terminal; When it is determined that the first control terminal is an access terminal, performing an operation corresponding to the first control instruction and obtaining an execution result; the controlled terminal separately sending the execution result to a second control terminal for synchronization; The second control terminal is one or more control terminals that have established a connection with the controlled terminal. The embodiment of the present invention implements multi-terminal control of the controlled device.
Claims (15)
- 一种终端控制方法,包括:A terminal control method includes:被控制终端接收第一控制终端发送的第一控制指令;Receiving, by the control terminal, a first control instruction sent by the first control terminal;被控制终端判断所述第一控制终端是否为已接入终端;在判定所述第一控制终端是已接入终端时,执行所述第一控制指令对应的操作并得到执行结果;Determining, by the control terminal, whether the first control terminal is an access terminal; and when determining that the first control terminal is an access terminal, performing an operation corresponding to the first control instruction and obtaining an execution result;所述被控终端将所述执行结果分别发送到第一控制终端和第二控制终端进行执行结果的同步;所述第二控制终端为与被控终端已建立连接的一个或者多个终端。The controlled terminal sends the execution result to the first control terminal and the second control terminal respectively to synchronize the execution result; the second control terminal is one or more terminals that have established a connection with the controlled terminal.
- 根据权利要求1所述的终端控制方法,所述方法还包括:The terminal control method according to claim 1, further comprising:在判定所述第一控制终端是未接入终端时,拒绝执行所述第一控制指令对应的操作。When it is determined that the first control terminal is a non-access terminal, the operation corresponding to the first control instruction is refused to be performed.
- 根据权利要求1所述的终端控制方法,所述方法之后还包括:The terminal control method according to claim 1, further comprising:在预定时间段内所述被控终端分别接收到所述第一控制终端和第二控制终端发送的与所述执行结果对应的响应信息,且接收到第一控制终端或者第二控制终端发送的第二控制指令,根据接收到的响应信息携带的标记位确定是否执行第二控制指令;所述标记位用于指示所述第一控制终端或者第二控制终端同步所述执行结果的同步状态。Receiving, by the first control terminal and the second control terminal, the response information corresponding to the execution result, and receiving the first control terminal or the second control terminal, The second control instruction determines whether to execute the second control instruction according to the flag bit carried in the received response information; the flag bit is used to instruct the first control terminal or the second control terminal to synchronize the synchronization status of the execution result.
- 根据权利要求3所述的终端控制方法,其中,所述响应消息为WIFI帧消息,且所述响应消息携带的标记位为所述WIFI帧消息添加的尾信息中携带的标记位。The terminal control method according to claim 3, wherein the response message is a WIFI frame message, and the flag bit carried by the response message is a flag bit carried in the tail information added by the WIFI frame message.
- 根据权利要求3或4所述的终端控制方法,其中,所述同步状态包括第一类同步状态或者第二类同步状态;The terminal control method according to claim 3 or 4, wherein the synchronization state includes a first type of synchronization state or a second type of synchronization state;其中,所述第一类同步状态包括同步所述执行结果成功或者同步所述执行结果延迟或者同步所述执行结果成功但发送的响应信息不完整;所述第二类同步状态包括同步所述执行结果不成功或者未收到所述被控终端发送的执行结果或者接收到被控终端发送的执行结果但未进行同步。 The first type of synchronization status includes: synchronizing the execution result or synchronizing the execution result delay or synchronizing the execution result but the sent response information is incomplete; the second type of synchronization status includes synchronizing the execution The result is unsuccessful or the execution result sent by the controlled terminal is not received or the execution result sent by the controlled terminal is received but not synchronized.
- 根据权利要求3所述的方法,其中,所述在预定时间段内所述被控终端分别接收到所述第一控制终端和第二控制终端发送的与所述执行结果对应的响应信息,且接收到第一或者第二控制终端发送的第二控制指令,根据接收到的响应信息携带的标记位确定是否执行第二控制指令,包括:The method according to claim 3, wherein the controlled terminal receives response information corresponding to the execution result sent by the first control terminal and the second control terminal, respectively, in a predetermined time period, and Receiving a second control instruction sent by the first or second control terminal, determining whether to execute the second control instruction according to the flag bit carried in the received response information, including:当在预定时间段内所述被控终端接收到的全部响应消息携带的标记位指示所述第一控制终端或者第二控制终端同步所述执行结果的同步状态为所述第一类同步状态,且接收到第一控制终端或者第二控制终端发送的第二控制指令时,执行所述第二指令;和/或,When a flag bit carried by all the response messages received by the controlled terminal within a predetermined time period indicates that the first control terminal or the second control terminal synchronizes the synchronization state of the execution result to the first type of synchronization state, And executing the second instruction when receiving the second control instruction sent by the first control terminal or the second control terminal; and/or,当在预定时间段内所述被控终端接收到的至少一个响应消息携带的标记位指示所述第一控制终端或者第二控制终端同步所述执行结果的同步状态为所述第二类同步状态,且接收到第一控制终端或者第二控制终端发送的第二控制指令时,拒绝执行所述第二指令。When a flag bit carried by the at least one response message received by the controlled terminal within a predetermined time period indicates that the first control terminal or the second control terminal synchronizes the synchronization state of the execution result to the second type of synchronization state And receiving the second control instruction when the second control instruction sent by the first control terminal or the second control terminal is received.
- 根据权利要求5所述的终端控制方法,所述方法之后还包括:The terminal control method according to claim 5, further comprising:所述被控终端发送操控错误信息至第一或者第二控制终端,并且销毁所述第二控制指令。The controlled terminal sends a manipulation error message to the first or second control terminal, and destroys the second control instruction.
- 一种终端控制装置,应用于被控终端,所述装置包括:A terminal control device is applied to a controlled terminal, and the device includes:接收模块,设置为接收第一控制终端发送的第一控制指令;a receiving module, configured to receive a first control instruction sent by the first control terminal;判断模块,设置为判定所述第一控制终端是否为已接入终端;a determining module, configured to determine whether the first control terminal is an accessed terminal;控制模块,设置为在判定所述第一控制终端为已接入终端时,执行所述第一控制指令对应的操作并得到执行结果;a control module, configured to perform an operation corresponding to the first control instruction and obtain an execution result when determining that the first control terminal is an accessed terminal;同步模块,设置为将所述执行结果分别发送到第一控制终端和第二控制终端进行执行结果的同步;所述第二控制终端为与被控终端已建立连接的一个或者多个终端。And a synchronization module, configured to separately send the execution result to the first control terminal and the second control terminal to perform synchronization of the execution result; the second control terminal is one or more terminals that have established a connection with the controlled terminal.
- 根据权利要求8所述的终端控制装置,所述装置还包括:The terminal control device according to claim 8, the device further comprising:控制模块,还设置为在判定所述第一控制终端是未接入终端时,拒绝执行所述第一控制指令对应的操作。The control module is further configured to refuse to perform an operation corresponding to the first control instruction when determining that the first control terminal is a non-access terminal.
- 根据权利要求8所述的终端控制装置,所述控制模块还设置为:在预定时间段内所述被控终端分别接收到所述第一控制终端和第二控制终端发 送的与所述执行结果对应的响应信息,且接收到第一或者第二控制终端发送的第二控制指令,根据接收到的响应信息携带的标记位确定是否执行第二控制指令;所述标记位用于指示所述第一控制终端或者第二控制终端同步所述执行结果的同步状态。The terminal control device according to claim 8, wherein the control module is further configured to: the controlled terminal receives the first control terminal and the second control terminal respectively during a predetermined time period Sending a response message corresponding to the execution result, and receiving a second control instruction sent by the first or second control terminal, determining whether to execute the second control instruction according to the flag bit carried in the received response information; The bit is used to instruct the first control terminal or the second control terminal to synchronize the synchronization status of the execution result.
- 根据权利要求10所述的终端控制装置,其中,所述响应消息为WIFI帧消息,且所述响应消息携带的标记位为所述WIFI帧消息添加的尾信息中携带的标记位。The terminal control device according to claim 10, wherein the response message is a WIFI frame message, and the flag bit carried by the response message is a flag bit carried in the tail information added by the WIFI frame message.
- 根据权利要求10或11所述的终端控制装置,其中,所述同步状态包括:第一类同步状态或者第二类同步状态;其中,The terminal control device according to claim 10 or 11, wherein the synchronization state comprises: a first type of synchronization state or a second type of synchronization state; wherein所述第一类同步状态包括同步所述执行结果成功或者同步所述执行结果延迟或者同步所述执行结果成功但发送的响应信息不完整;所述第二类同步状态包括同步所述执行结果不成功或者未收到所述被控终端发送的执行结果或者接收到被控终端发送的执行结果但未进行同步。The first type of synchronization status includes: synchronizing the execution result or synchronizing the execution result delay or synchronizing the execution result but the sent response information is incomplete; the second type of synchronization status includes synchronizing the execution result Successfully or not receiving the execution result sent by the controlled terminal or receiving the execution result sent by the controlled terminal but not synchronizing.
- 根据权利要求10所述的终端控制装置,所述控制模块还设置为:The terminal control device according to claim 10, wherein the control module is further configured to:当在预定时间段内所述被控终端接收到的全部响应消息携带的标记位指示所述第一控制终端或者第二控制终端同步所述执行结果的同步状态为所述第一类同步状态,且接收到第一控制终端或者第二控制终端发送的第二控制指令时,执行所述第二指令;和/或,When a flag bit carried by all the response messages received by the controlled terminal within a predetermined time period indicates that the first control terminal or the second control terminal synchronizes the synchronization state of the execution result to the first type of synchronization state, And executing the second instruction when receiving the second control instruction sent by the first control terminal or the second control terminal; and/or,当在预定时间段内所述被控终端接收到的至少一个响应消息携带的标记位指示所述第一控制终端或者第二控制终端同步所述执行结果的同步状态为所述第二类同步状态,且接收到第一控制终端或者第二控制终端发送的第二控制指令时,拒绝执行所述第二指令。When a flag bit carried by the at least one response message received by the controlled terminal within a predetermined time period indicates that the first control terminal or the second control terminal synchronizes the synchronization state of the execution result to the second type of synchronization state And receiving the second control instruction when the second control instruction sent by the first control terminal or the second control terminal is received.
- 根据权利要求13所述的终端控制装置,所述发送模块还设置为:发送操控错误信息至第一控制终端或者第二控制终端,并且所述装置还包括删除模块用于销毁所述第二控制指令。The terminal control apparatus according to claim 13, wherein the transmitting module is further configured to: send the manipulation error information to the first control terminal or the second control terminal, and the apparatus further includes a deletion module for destroying the second control instruction.
- 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-7任一项的终端控制方法。 A computer readable storage medium storing computer executable instructions for performing the terminal control method of any of claims 1-7.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610194821.2 | 2016-03-30 | ||
CN201610194821.2A CN107295603A (en) | 2016-03-30 | 2016-03-30 | A kind of terminal control method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017166569A1 true WO2017166569A1 (en) | 2017-10-05 |
Family
ID=59963361
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/094214 WO2017166569A1 (en) | 2016-03-30 | 2016-08-09 | Terminal control method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107295603A (en) |
WO (1) | WO2017166569A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114980263A (en) * | 2022-07-13 | 2022-08-30 | 武汉慧联无限科技有限公司 | Method and device for controlling terminal, processing equipment and storage medium |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108173724A (en) * | 2017-12-26 | 2018-06-15 | 陈占辉 | A kind of sharing method of the smart home device based on mobile terminal |
CN114902149A (en) * | 2020-03-23 | 2022-08-12 | Oppo广东移动通信有限公司 | Method, device, device and storage medium for sending information |
CN113723126A (en) * | 2021-08-31 | 2021-11-30 | 北京市商汤科技开发有限公司 | Data acquisition method and device, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1523820A (en) * | 2003-02-19 | 2004-08-25 | 联想(北京)有限公司 | Coordinate working method for multiple control equipment in home network based on peer connection |
US20080068127A1 (en) * | 2006-08-31 | 2008-03-20 | Cheng-Ru Lin | System and method thereof of a remotely controllable home network system for domestic appliances |
CN103512159A (en) * | 2012-06-25 | 2014-01-15 | 珠海格力电器股份有限公司 | Air conditioner and air conditioner control system |
CN103558836A (en) * | 2013-11-19 | 2014-02-05 | 海信集团有限公司 | Method for synchronously controlling device status and household appliance |
CN103973748A (en) * | 2013-02-04 | 2014-08-06 | 珠海格力电器股份有限公司 | Intelligent household system and monitoring method thereof |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8539567B1 (en) * | 2012-09-22 | 2013-09-17 | Nest Labs, Inc. | Multi-tiered authentication methods for facilitating communications amongst smart home devices and cloud-based servers |
CN103984325A (en) * | 2014-05-28 | 2014-08-13 | 梅志国 | IEEE802.15.4-oriented equipment data synchronization method of intelligent housing system |
CN105005201A (en) * | 2015-06-04 | 2015-10-28 | 广东康宝电器股份有限公司 | Multi-mobile-terminal data synchronization and push system for intelligent household |
-
2016
- 2016-03-30 CN CN201610194821.2A patent/CN107295603A/en not_active Withdrawn
- 2016-08-09 WO PCT/CN2016/094214 patent/WO2017166569A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1523820A (en) * | 2003-02-19 | 2004-08-25 | 联想(北京)有限公司 | Coordinate working method for multiple control equipment in home network based on peer connection |
US20080068127A1 (en) * | 2006-08-31 | 2008-03-20 | Cheng-Ru Lin | System and method thereof of a remotely controllable home network system for domestic appliances |
CN103512159A (en) * | 2012-06-25 | 2014-01-15 | 珠海格力电器股份有限公司 | Air conditioner and air conditioner control system |
CN103973748A (en) * | 2013-02-04 | 2014-08-06 | 珠海格力电器股份有限公司 | Intelligent household system and monitoring method thereof |
CN103558836A (en) * | 2013-11-19 | 2014-02-05 | 海信集团有限公司 | Method for synchronously controlling device status and household appliance |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114980263A (en) * | 2022-07-13 | 2022-08-30 | 武汉慧联无限科技有限公司 | Method and device for controlling terminal, processing equipment and storage medium |
CN114980263B (en) * | 2022-07-13 | 2022-11-18 | 武汉慧联无限科技有限公司 | Method and device for controlling terminal, processing equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107295603A (en) | 2017-10-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017166569A1 (en) | Terminal control method and device | |
CN104113458A (en) | Mobile terminal and intelligent household appliance interconnecting method and device | |
CN110636483A (en) | Network distribution method and system | |
WO2016058367A1 (en) | Smart home control system | |
US10701435B2 (en) | Television video interception method and device | |
CN111930020A (en) | Equipment control system, method, device, terminal and readable storage medium | |
EP3121995A1 (en) | Method and device for maintaining multicast members | |
US9137835B2 (en) | Communication apparatus, communication method, and communication system | |
US20180302757A1 (en) | Communication apparatus, communication method, program, and communication system | |
US20170277242A1 (en) | Method, device and storage medium for waking up home interconnection device | |
WO2018053894A1 (en) | Internet-of-things access point handover method and device based on transmission rate | |
CN104184834A (en) | File transfer method, file transfer device and terminal | |
WO2023005410A1 (en) | Information synchronization method and system, storage medium, and electronic device | |
CN114125052B (en) | Target operation execution method and device, storage medium and electronic device | |
CN110753313A (en) | Data synchronization method and system | |
JP2015026917A (en) | Communication device | |
EP3384696B1 (en) | Communication apparatus, method of controlling the same, and program | |
US10404534B2 (en) | Method and device for networking intelligent terminals | |
CN104519207B (en) | A kind of control method and device of intelligent terminal | |
WO2024001954A1 (en) | Identifier configuration methods and apparatus, terminal and storage medium | |
WO2010064293A1 (en) | Data processing device, system, method and program for data processing, recording medium with program recorded therein, data transfer device, system, method anf program for data transfer, and recording medium with program recorded therein | |
CN110602223B (en) | Point-to-point equipment and search matching method thereof | |
EP2562962A2 (en) | Method and apparatus for determining a coordinator | |
AU2019435757B2 (en) | Communication method and apparatus, and device | |
KR101615252B1 (en) | Method, apparatus and system for transferring data to plurality of nodes |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16896341 Country of ref document: EP Kind code of ref document: A1 |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16896341 Country of ref document: EP Kind code of ref document: A1 |