[go: up one dir, main page]

CN104519207B - A kind of control method and device of intelligent terminal - Google Patents

A kind of control method and device of intelligent terminal Download PDF

Info

Publication number
CN104519207B
CN104519207B CN201410746647.9A CN201410746647A CN104519207B CN 104519207 B CN104519207 B CN 104519207B CN 201410746647 A CN201410746647 A CN 201410746647A CN 104519207 B CN104519207 B CN 104519207B
Authority
CN
China
Prior art keywords
mobile device
sound box
intelligent sound
control instruction
information
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.)
Active
Application number
CN201410746647.9A
Other languages
Chinese (zh)
Other versions
CN104519207A (en
Inventor
黄浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201410746647.9A priority Critical patent/CN104519207B/en
Publication of CN104519207A publication Critical patent/CN104519207A/en
Application granted granted Critical
Publication of CN104519207B publication Critical patent/CN104519207B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

本发明实施例涉及智能终端技术领域,尤其涉及一种智能终端的控制方法及装置。该方法包括:与至少两个移动设备建立连接;接收任一移动设备发送的控制指令,并确定所述控制指令是否为预设控制指令;响应所述控制指令,并依据确定结果向所述至少两个移动设备发送对所述控制指令的响应信息。该方法通过建立智能终端与多台移动设备间的连接,实现了多台移动设备控制同一台智能终端,提高了智能终端的实用性。

Embodiments of the present invention relate to the technical field of smart terminals, and in particular, to a method and device for controlling a smart terminal. The method includes: establishing a connection with at least two mobile devices; receiving a control command sent by any mobile device, and determining whether the control command is a preset control command; responding to the control command, and according to the determination result to the at least The two mobile devices send response information to the control command. By establishing the connection between the intelligent terminal and multiple mobile devices, the method realizes that multiple mobile devices control the same intelligent terminal, and improves the practicability of the intelligent terminal.

Description

一种智能终端的控制方法及装置A control method and device for an intelligent terminal

技术领域technical field

本发明实施例涉及智能终端技术领域,尤其涉及一种智能终端的控制方法及装置。The embodiments of the present invention relate to the technical field of smart terminals, and in particular, to a method and device for controlling a smart terminal.

背景技术Background technique

近年来,智能手机或平板电脑等移动设备已经逐渐普及,智能音箱等无线智能终端也得到了快速发展。智能终端和移动设备已经广泛应用于工作和生活的各个领域。In recent years, mobile devices such as smartphones or tablet computers have gradually become popular, and wireless smart terminals such as smart speakers have also developed rapidly. Smart terminals and mobile devices have been widely used in various fields of work and life.

由于智能终端不包括用户界面,主要通过移动设备的用户界面控制智能终端的播放状态或对智能终端进行属性设置,即通过移动设备控制智能终端。但是,现有的智能终端的控制方法中一台智能终端只能由一台移动设备控制,即,多台移动设备不能控制同一台智能终端。Since the smart terminal does not include a user interface, the playing state of the smart terminal is mainly controlled through the user interface of the mobile device or property settings of the smart terminal are performed, that is, the smart terminal is controlled through the mobile device. However, in the existing smart terminal control method, one smart terminal can only be controlled by one mobile device, that is, multiple mobile devices cannot control the same smart terminal.

发明内容Contents of the invention

本发明的目的是提出一种智能终端的控制方法及装置,以使多台移动设备能够控制同一台智能终端。The purpose of the present invention is to provide a control method and device for an intelligent terminal, so that multiple mobile devices can control the same intelligent terminal.

一方面,本发明实施例提供了一种智能终端的控制方法,包括:On the one hand, an embodiment of the present invention provides a method for controlling a smart terminal, including:

与至少两个移动设备建立连接;establish a connection with at least two mobile devices;

接收任一移动设备发送的控制指令,并确定所述控制指令是否为预设控制指令;receiving a control command sent by any mobile device, and determining whether the control command is a preset control command;

响应所述控制指令,并依据确定结果向所述至少两个移动设备发送对所述控制指令的响应信息。Responding to the control instruction, and sending response information to the control instruction to the at least two mobile devices according to the determination result.

另一方面,本发明实施例提供了一种智能终端的控制装置,包括:On the other hand, an embodiment of the present invention provides a control device for a smart terminal, including:

连接建立单元,用于与至少两个移动设备建立连接;A connection establishing unit, configured to establish a connection with at least two mobile devices;

指令接收单元,用于接收任一移动设备发送的控制指令,并确定所述控制指令是否为预设控制指令;An instruction receiving unit, configured to receive a control instruction sent by any mobile device, and determine whether the control instruction is a preset control instruction;

指令响应单元,用于响应所述控制指令,并依据确定结果向所述至少两个移动设备发送对所述控制指令的响应信息。The instruction response unit is configured to respond to the control instruction, and send response information to the control instruction to the at least two mobile devices according to the determination result.

本发明实施例中提供的智能终端的控制方法及装置,实现了多台移动设备控制同一台智能终端,提高了智能终端的实用性。本发明实施例中提供的智能终端的控制方法中,智能终端与至少两个移动设备建立连接,智能终端接收任意移动设备发送的控制指令,并确定接收的控制指令是否为预设控制指令,智能终端响应所述控制指令,且依据确定结果向所述至少两个移动设备发送对所述控制指令的响应信息,即,该方法通过建立智能终端与多台移动设备间的连接,实现了多台移动设备控制同一台智能终端,提高了智能终端的实用性。The intelligent terminal control method and device provided in the embodiments of the present invention realize that multiple mobile devices control the same intelligent terminal, and improve the practicability of the intelligent terminal. In the smart terminal control method provided in the embodiment of the present invention, the smart terminal establishes a connection with at least two mobile devices, the smart terminal receives a control command sent by any mobile device, and determines whether the received control command is a preset control command, and the smart terminal The terminal responds to the control instruction, and sends response information to the at least two mobile devices to the at least two mobile devices according to the determination result, that is, the method implements multiple mobile devices by establishing connections between the smart terminal and multiple mobile devices. The mobile device controls the same smart terminal, which improves the practicability of the smart terminal.

附图说明Description of drawings

此处所说明的附图用来提供对本发明实施例的进一步理解,构成本发明实施例的一部分,并不构成对本发明实施例的限定。在附图中:The drawings described here are used to provide further understanding of the embodiments of the present invention, constitute a part of the embodiments of the present invention, and do not limit the embodiments of the present invention. In the attached picture:

图1是本发明第一实施例中提供的智能终端的控制方法的实现流程图;FIG. 1 is a flow chart of the implementation of the control method of the smart terminal provided in the first embodiment of the present invention;

图2是本发明第一实施例中提供的控制过程的流程示意图;Fig. 2 is a schematic flow chart of the control process provided in the first embodiment of the present invention;

图3是本发明第二实施例中提供的智能终端与移动设备的连接方法的示意图;3 is a schematic diagram of a method for connecting a smart terminal and a mobile device provided in a second embodiment of the present invention;

图4是本发明第三实施例中提供的智能终端的控制方法的实现流程图;FIG. 4 is a flow chart for realizing the control method of the smart terminal provided in the third embodiment of the present invention;

图5是本发明第四实施例中提供的智能终端的控制装置的结构示意图。Fig. 5 is a schematic structural diagram of a control device for a smart terminal provided in a fourth embodiment of the present invention.

具体实施方式Detailed ways

下面结合附图及具体实施例对本发明实施例进行更加详细与完整的说明。可以理解的是,此处所描述的具体实施例仅用于解释本发明实施例,而非对本发明实施例的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明实施例相关的部分而非全部内容。The embodiments of the present invention will be described in more detail and complete below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described here are only used to explain the embodiments of the present invention, rather than to limit the embodiments of the present invention. In addition, it should be noted that, for the convenience of description, only the part related to the embodiment of the present invention is shown in the drawings but not the whole content.

第一实施例:First embodiment:

图1是本发明第一实施例中提供的智能终端的控制方法的实现流程图,该方法可以由移动设备的控制装置执行,其中该装置可由软件和/或硬件实现,可作为移动设备的一部分被内置在移动设备内部。如图1所示,该实现流程包括:Figure 1 is a flow chart of the implementation of the control method of the smart terminal provided in the first embodiment of the present invention, the method can be executed by the control device of the mobile device, wherein the device can be implemented by software and/or hardware, and can be used as a part of the mobile device built into the mobile device. As shown in Figure 1, the implementation process includes:

步骤11、与至少两个移动设备建立连接。Step 11. Establish connections with at least two mobile devices.

智能终端可以通过无线网络与至少两个移动设备建立连接,其中智能终端可以为智能音箱,移动设备可以为智能手机或平板电脑。The smart terminal can establish a connection with at least two mobile devices through a wireless network, wherein the smart terminal can be a smart speaker, and the mobile device can be a smart phone or a tablet computer.

步骤12、接收任一移动设备发送的控制指令,并确定所述控制指令是否为预设控制指令。Step 12: Receive a control instruction sent by any mobile device, and determine whether the control instruction is a preset control instruction.

在与智能终端连接的至少两个移动设备中的任一移动设备向智能终端发送控制指令时,智能终端接收所述控制指令,并确定所述控制指令是否为预设控制指令。其中,预设控制指令可以包括编辑智能音箱的播放状态或获得智能音箱的播放状态等。When any one of the at least two mobile devices connected to the smart terminal sends a control command to the smart terminal, the smart terminal receives the control command and determines whether the control command is a preset control command. Wherein, the preset control instruction may include editing the playback status of the smart speaker or obtaining the playback status of the smart speaker.

其中,所述任一移动设备向智能终端发送控制指令时,还可以发送该移动设备的属性信息。Wherein, when any mobile device sends the control instruction to the smart terminal, attribute information of the mobile device may also be sent.

步骤13、响应所述控制指令,并依据确定结果向所述至少两个移动设备发送对所述控制指令的响应信息。Step 13: Respond to the control instruction, and send response information to the control instruction to the at least two mobile devices according to the determination result.

智能终端响应步骤12中接收的控制指令,并依据步骤12中的确定结果,向所述至少两个移动设备发送对所述控制指令的响应信息。The smart terminal responds to the control instruction received in step 12, and sends response information to the control instruction to the at least two mobile devices according to the determination result in step 12.

其中,依据确定结果向所述至少两个移动设备发送对所述控制指令的响应信息,可以包括:Wherein, sending response information to the control instruction to the at least two mobile devices according to the determination result may include:

A、在所述控制指令为预设控制指令时,依据预先获取的至少两个移动设备的属性信息向所述至少两个移动设备发送对控制指令的响应信息。A. When the control instruction is a preset control instruction, send response information to the control instruction to the at least two mobile devices according to the pre-acquired attribute information of the at least two mobile devices.

在所述控制指令为预设控制指令时,智能终端依据预先获取的各移动设备的属性信息向各移动设备发送对控制指令的响应信息。When the control instruction is a preset control instruction, the smart terminal sends response information to the control instruction to each mobile device according to the pre-acquired attribute information of each mobile device.

B、在所述控制指令不为预设控制指令时,依据预先获取的所述任一移动设备的属性信息向所述任一移动设备发送对控制指令的响应信息。B. When the control instruction is not a preset control instruction, send response information to the control instruction to any mobile device according to the attribute information of any mobile device acquired in advance.

在所述控制指令不为预设控制指令时,智能终端只向所述任一移动设备发送所述响应信息,而不向除所述任一移动设备外的其它移动设备发送所述响应信息。When the control instruction is not a preset control instruction, the smart terminal only sends the response information to the any mobile device, but does not send the response information to other mobile devices except the any mobile device.

其中,所述智能终端的属性信息可以包括智能终端的名称、端口号、物理地址或序列号;所述任一移动设备的属性信息可以包括任一移动设备的IP(网络协议,InternetProtocol)地址或端口号。Wherein, the attribute information of the smart terminal may include the name, port number, physical address or serial number of the smart terminal; the attribute information of any mobile device may include the IP (Internet Protocol, Internet Protocol) address or The port number.

其中,依据确定结果向所述至少两个移动设备发送对所述控制指令的响应信息,也可以包括在所述控制指令为预设控制指令时,依据预先获取的所述任一移动设备的属性信息向所述任一移动设备发送对控制指令的响应信息;在所述控制指令不为预设控制指令时,依据预先获取的至少两个移动设备的属性信息向所述至少两个移动设备发送对控制指令的响应信息。Wherein, sending response information to the control instruction to the at least two mobile devices according to the determination result may also include, when the control instruction is a preset control instruction, according to the pre-acquired attribute of any mobile device send the response information to the control instruction to any mobile device; when the control instruction is not a preset control instruction, send the response information to the at least two mobile devices according to the pre-acquired attribute information of at least two mobile devices Response information to control commands.

综上,本发明中提供的控制过程如图2所示。具体的,在任一移动设备中的应用程序向智能终端发送控制指令,智能终端接收并处理所述控制指令,在控制指令不为预设控制指令时,智能终端获得各移动设备的属性信息,并向各移动设备发送对控制指令的响应信息;在控制指令为预设控制指令时,智能终端获得发送控制指令的移动设备的属性信息,并向该移动设备发送对控制指令的属性信息。In summary, the control process provided in the present invention is shown in FIG. 2 . Specifically, the application program in any mobile device sends a control command to the smart terminal, and the smart terminal receives and processes the control command. When the control command is not a preset control command, the smart terminal obtains the attribute information of each mobile device, and Send the response information to the control command to each mobile device; when the control command is a preset control command, the smart terminal obtains the attribute information of the mobile device sending the control command, and sends the attribute information of the control command to the mobile device.

本发明第一实施例中提供的移动设备的控制方法,智能终端可以与至少两个移动设备连接,并且能够接收并响应所述至少两个移动设备中的任一移动设备发送的控制指令,还能够依据控制指令的类型选择性地发送智能终端对控制指令的响应信息,即,可以通过与智能终端连接的多个移动设备控制智能终端,如控制智能终端的工作状态,设置信息等,实现了多台移动设备控制同一台智能终端,提高了智能终端的实用性。In the mobile device control method provided in the first embodiment of the present invention, the smart terminal can be connected to at least two mobile devices, and can receive and respond to control instructions sent by any one of the at least two mobile devices, and can also The response information of the smart terminal to the control command can be selectively sent according to the type of the control command, that is, the smart terminal can be controlled through multiple mobile devices connected to the smart terminal, such as controlling the working status of the smart terminal, setting information, etc., realizing Multiple mobile devices control the same smart terminal, which improves the practicability of the smart terminal.

第二实施例:Second embodiment:

本发明第二实施例是对本发明第一实施例中步骤11的具体解释。图3是本发明第二实施例中提供的智能终端与移动设备的连接方法的示意图,如图3所示,智能终端与任一移动设备建立连接可以包括:The second embodiment of the present invention is a specific explanation of step 11 in the first embodiment of the present invention. Fig. 3 is a schematic diagram of a method for connecting a smart terminal and a mobile device provided in the second embodiment of the present invention. As shown in Fig. 3, establishing a connection between a smart terminal and any mobile device may include:

步骤21、确定所述任一移动设备和智能终端是否启动。Step 21. Determine whether any of the mobile devices and smart terminals are started.

智能终端确定所述任一移动设备和智能终端是否启动,具体的,确定所述任一移动设备和所述智能终端是否处于同一无线路由器的局域网中,若二者处于同一局域网,则确定所述任一移动设备和智能终端均启动;否则,确定所述任一移动设备和智能终端未启动。The intelligent terminal determines whether any of the mobile devices and the intelligent terminal are started, specifically, determines whether the any mobile device and the intelligent terminal are in the local area network of the same wireless router, and if they are in the same local area network, then determine whether the Any mobile device and smart terminal are started; otherwise, it is determined that any mobile device and smart terminal are not started.

其中,确定所述任一移动设备和智能终端是否启动,可以包括:在任一移动设备启动时,接收所述任一移动设备发送的第一预设验证信息并确定所述第一预设验证信息是否为移动设备的验证信息。Wherein, determining whether any of the mobile devices and smart terminals are activated may include: when any mobile device is activated, receiving first preset verification information sent by any mobile device and determining the first preset verification information Whether it is the verification information of the mobile device.

具体的,在任一移动设备启动时,移动设备向局域网内发送加密广播消息,智能终端解密接收的所述加密广播消息并确定该加密广播消息是否为移动设备的加密广播消息。Specifically, when any mobile device is started, the mobile device sends an encrypted broadcast message to the local area network, and the smart terminal decrypts the received encrypted broadcast message and determines whether the encrypted broadcast message is an encrypted broadcast message of the mobile device.

其中,确定所述任一移动设备和智能终端是否启动,也可以包括:在智能终端启动时,向预先启动的移动设备发送第二预设验证信息,使预先启动的移动设备执行如下操作:接收并确定所述第二预设验证信息是否为智能终端的验证信息,且向所述智能终端发送该确定结果;接收该确定结果。Wherein, determining whether any of the mobile devices and the smart terminal is started may also include: when the smart terminal is started, sending the second preset verification information to the pre-started mobile device, so that the pre-started mobile device performs the following operations: receiving And determine whether the second preset verification information is the verification information of the smart terminal, and send the determination result to the smart terminal; receive the determination result.

在智能终端启动时,智能终端也向预先启动的各移动设备发送加密广播消息,各移动设备解密接收到的加密广播消息,并确定该消息是否为智能终端的消息,移动设备还将确定结果反馈给智能终端,且智能终端接收该确定结果。When the smart terminal starts, the smart terminal also sends an encrypted broadcast message to the pre-started mobile devices, each mobile device decrypts the received encrypted broadcast message, and determines whether the message is a message from the smart terminal, and the mobile device will also feedback the result of the determination to the smart terminal, and the smart terminal receives the determination result.

步骤22、在确定所述任一移动设备和智能终端启动时,向所述任一移动设备发送智能终端的属性信息,使所述任一移动设备接收并存储所述智能终端的属性信息,且使所述任一移动设备向所述智能终端发送任一移动设备的属性信息。Step 22. When it is determined that any mobile device and the smart terminal are started, send attribute information of the smart terminal to any mobile device, so that any mobile device receives and stores the attribute information of the smart terminal, and Make the any mobile device send the attribute information of any mobile device to the smart terminal.

在确定所述任一移动设备和智能终端启动时,智能终端向所述任一移动设备发送该智能终端的属性信息。所述任一移动设备存储接收的属性信息,并向智能终端发送移动设备的属性信息,即,智能终端使所述任一移动设备获得并存储所述智能终端的属性信息。When it is determined that any mobile device and the smart terminal are activated, the smart terminal sends attribute information of the smart terminal to any mobile device. The any mobile device stores the received attribute information, and sends the attribute information of the mobile device to the smart terminal, that is, the smart terminal enables the any mobile device to obtain and store the attribute information of the smart terminal.

步骤23、接收并存储所述任一移动设备的属性信息。Step 23. Receive and store the attribute information of any mobile device.

智能终端接收并存储所述任一移动设备的属性信息,该方法使得智能终端中存储有启动的移动设备的属性信息,且启动的移动设备中存储有智能终端的属性信息,即,建立了智能终端与移动设备的连接。The intelligent terminal receives and stores the attribute information of any mobile device, the method enables the intelligent terminal to store the attribute information of the activated mobile device, and the activated mobile device stores the attribute information of the intelligent terminal, that is, the intelligent terminal is established. Terminal connection with mobile devices.

本发明第二实施中提供的智能终端与移动设备的连接方法中,在移动设备启动或智能终端启动时,智能终端获得启动的移动设备的属性信息,且启动的移动设备获得智能终端的属性信息,并建立智能终端与移动设备的连接,该方法使得智能终端能够与多个移动设备连接。In the connection method between the smart terminal and the mobile device provided in the second implementation of the present invention, when the mobile device is started or the smart terminal is started, the smart terminal obtains the attribute information of the started mobile device, and the started mobile device obtains the attribute information of the smart terminal , and establish a connection between the smart terminal and the mobile device, the method enables the smart terminal to connect with multiple mobile devices.

第三实施例:Third embodiment:

图4是本发明第三实施例中提供的智能终端的控制方法的实现流程图,该方法可以由移动设备的控制装置执行,其中该装置可由软件和/或硬件实现,可作为移动设备的一部分被内置在移动设备内部。如图4所示,该实现流程包括:Fig. 4 is an implementation flowchart of the control method of the smart terminal provided in the third embodiment of the present invention, the method can be executed by the control device of the mobile device, wherein the device can be implemented by software and/or hardware, and can be used as a part of the mobile device built into the mobile device. As shown in Figure 4, the implementation process includes:

步骤31、在移动设备启动时,会向局域网发送加密广播消息。Step 31, when the mobile device starts, it will send an encrypted broadcast message to the local area network.

该广播消息是通过约定的公钥加密过的,如果智能音箱是在线的,智能音箱就会接收到该加密的广播消息。The broadcast message is encrypted with the agreed public key, and if the smart speaker is online, the smart speaker will receive the encrypted broadcast message.

步骤32、智能音箱用约定的私钥解密接收的广播信息,并向移动设备发送智能音箱的属性信息。Step 32, the smart speaker decrypts the received broadcast information with the agreed private key, and sends the attribute information of the smart speaker to the mobile device.

在智能音箱确定该移动设备为预设移动设备时,智能音箱向解密消息后,如果发现是移动设备发过来的消息,智能音箱就向移动设备发送自己的设备名,连接端口号,MAC(Media Access Control,硬件)地址,以及一个唯一的32位的序列号,发送的属性信息也是加密的。其中,设备名可以让移动设备显示智能音箱的名称,连接端口号为智能音箱和移动设备进行TCP(Transmission Control Protocol,传输控制协议)通信的端口号,移动设备通过智能音箱的MAC地址和一个唯一的32位的序列号能够确保智能音箱的唯一性。具体的,在有相同的MAC地址时,比如其它设备盗用智能终端的MAC地址时,通过序列号同MAC地址配合能够标识智能音箱的唯一性。When the smart speaker determines that the mobile device is the preset mobile device, after the smart speaker decrypts the message, if it is found that the message is sent by the mobile device, the smart speaker sends its own device name, connection port number, MAC (Media Access Control, hardware) address, and a unique 32-bit serial number, the attribute information sent is also encrypted. Among them, the device name can allow the mobile device to display the name of the smart speaker, the connection port number is the port number for the smart speaker to communicate with the mobile device through TCP (Transmission Control Protocol), and the mobile device uses the MAC address of the smart speaker and a unique The 32-bit serial number can ensure the uniqueness of the smart speaker. Specifically, when there is the same MAC address, for example, when other devices steal the MAC address of the smart terminal, the combination of the serial number and the MAC address can identify the uniqueness of the smart speaker.

步骤33、移动设备接收并存储智能音箱的属性信息,且向智能音箱发送移动设备的属性信息。Step 33, the mobile device receives and stores the attribute information of the smart speaker, and sends the attribute information of the mobile device to the smart speaker.

移动设备解密并存储接收的智能音箱的属性信息,还向智能音箱端Http(Hypertext transfer protocol,超文本传送协议)服务器发送登录的消息,智能音箱和移动设备都各自有一个Http服务器,用来传到消息和文件,即,移动设备还向智能终端发送移动设备的属性信息。The mobile device decrypts and stores the attribute information of the received smart speaker, and also sends a login message to the smart speaker end Http (Hypertext transfer protocol, hypertext transfer protocol) server. The smart speaker and the mobile device each have a Http server for transmitting To messages and files, that is, the mobile device also sends the attribute information of the mobile device to the smart terminal.

步骤34、智能音箱存储接收的移动设备的属性信息。Step 34, the smart speaker stores the received attribute information of the mobile device.

音箱端接收到该信息后,会记录并保存接收到的属性信息,如移动设备IP地址和端口号。After receiving the information, the speaker side will record and save the received attribute information, such as the IP address and port number of the mobile device.

其中,步骤31-34为一个移动设备与智能终端的连接方法,当再有其它移动设备连接智能音箱所在的局域网时,重复执行步骤31-34即能够建立其它移动设备与智能音箱的连接。Among them, steps 31-34 are a connection method between a mobile device and a smart terminal. When another mobile device is connected to the local area network where the smart speaker is located, repeat steps 31-34 to establish a connection between other mobile devices and the smart speaker.

步骤35、在智能音箱与至少两个移动设备连接时,智能音箱获得并保存各移动设备的属性信息。Step 35. When the smart speaker is connected to at least two mobile devices, the smart speaker obtains and saves the attribute information of each mobile device.

智能音箱可以将获得的各移动设备的Http服务器的IP地址和端口号保存到一个链表中的。The smart speaker can save the acquired IP addresses and port numbers of the Http servers of each mobile device into a linked list.

步骤36、在智能音箱启动时,也会向移动设备发送智能音箱的属性信息。Step 36, when the smart speaker is started, the attribute information of the smart speaker will also be sent to the mobile device.

具体的,当智能音箱端启动时,也会发生一个加密的广播消息出去,这时如果移动设备处于启动状态,移动设备解密接收的信息。Specifically, when the smart speaker is started, an encrypted broadcast message will also be sent out. At this time, if the mobile device is in the start state, the mobile device will decrypt the received information.

步骤37、接收任一移动设备发送的控制指令,并确定所述控制指令是否为预设控制指令。Step 37: Receive a control instruction sent by any mobile device, and determine whether the control instruction is a preset control instruction.

移动设备向智能音箱发送一个命令到智能音箱的Http服务器,智能音箱专门启动一个线程池来处理接收的控制指令。当多个移动设备向智能终端发送控制指令时,智能音箱可以按照各控制指令到达的先后顺序,将各控制指令放入线程池,顺序执行。The mobile device sends a command to the Http server of the smart speaker, and the smart speaker specifically starts a thread pool to process the received control instructions. When multiple mobile devices send control commands to the smart terminal, the smart speaker can put each control command into the thread pool according to the order in which the control commands arrive, and execute them sequentially.

移动设备向智能音箱发送控制指令时,还会发送自身的标识编号,如发送移动设备的Http服务器的IP地址和端口号。When the mobile device sends a control command to the smart speaker, it also sends its own identification number, such as the IP address and port number of the Http server sending the mobile device.

步骤38、响应所述控制指令,并依据确定结果向所述至少两个移动设备发送对所述控制指令的响应信息。Step 38: Respond to the control instruction, and send response information to the control instruction to the at least two mobile devices according to the determination result.

智能音箱端接收到控制指令后,会向移动设备发送响应服务器的响应信息,如,智能音箱的播放状态,设置项等,响应信息可以分为两种,一种是需要给所有的移动设备发送的响应信息,一种单独向发送控制指令的移动设备的发送的响应信息。After receiving the control command, the smart speaker will send response information to the mobile device to respond to the server, such as the playback status of the smart speaker, setting items, etc. The response information can be divided into two types, one is to be sent to all mobile devices The response information is a response information sent separately to the mobile device that sent the control command.

具体的,在向所有的移动设备发送响应信息时,智能音箱通过步骤34获得的各移动设备的属性信息,逐个把响应信息发送给各移动设备;在向单个移动设备发送响应信息时,可以通过步骤37中获得的移动设备的属性信息,向单个的移动设备发消息。Specifically, when sending response information to all mobile devices, the smart speaker sends the response information to each mobile device one by one through the attribute information of each mobile device obtained in step 34; when sending response information to a single mobile device, it can pass The attribute information of the mobile device obtained in step 37 is sent to a single mobile device.

本发明第三实施例中提供的智能终端的控制方法,智能终端可以与至少两个移动设备连接,并且能够接收并响应所述至少两个移动设备中的任一移动设备发送的控制指令,还能够依据控制指令的类型选择性地发送智能终端对控制指令的响应信息,即,可以通过与智能终端连接的多个移动设备控制智能终端,如控制智能终端的工作状态,设置信息等,实现了多台移动设备控制同一台智能终端,提高了智能终端的实用性。In the method for controlling an intelligent terminal provided in the third embodiment of the present invention, the intelligent terminal can be connected to at least two mobile devices, and can receive and respond to control instructions sent by any one of the at least two mobile devices, and can also The response information of the smart terminal to the control command can be selectively sent according to the type of the control command, that is, the smart terminal can be controlled through multiple mobile devices connected to the smart terminal, such as controlling the working status of the smart terminal, setting information, etc., realizing Multiple mobile devices control the same smart terminal, which improves the practicability of the smart terminal.

如下实施例为装置实施例,本发明方法实施例和装置实施例属于同一构思,在装置实施例中未详尽描述的细节内容,可以参考上述方法实施例。The following embodiments are device embodiments. The method embodiment and the device embodiment of the present invention belong to the same concept. For details not described in detail in the device embodiment, you can refer to the above method embodiment.

第四实施例:Fourth embodiment:

图5是本发明第四实施例中提供的智能终端的控制装置的结构示意图,如图5所示,该智能终端的控制装置可以包括:连接建立单元41,用于与至少两个移动设备建立连接;指令接收单元42,用于接收任一移动设备发送的控制指令,并确定所述控制指令是否为预设控制指令;指令响应单元43,用于响应所述控制指令,并依据确定结果向所述至少两个移动设备发送对所述控制指令的响应信息。Fig. 5 is a schematic structural diagram of the control device of the smart terminal provided in the fourth embodiment of the present invention. As shown in Fig. 5, the control device of the smart terminal may include: a connection establishing unit 41, configured to establish a connection with at least two mobile devices connection; the instruction receiving unit 42 is used to receive the control instruction sent by any mobile device, and determines whether the control instruction is a preset control instruction; the instruction response unit 43 is used to respond to the control instruction, and according to the determination result to The at least two mobile devices send response information to the control instruction.

其中,所述接建立单元41可以包括:状态确定子单元,用于确定所述任一移动设备和智能终端是否启动;信息发送子单元,用于在确定所述任一移动设备或智能终端启动时,向所述任一移动设备发送智能终端的属性信息,使所述任一移动设备接收并存储所述智能终端的属性信息,且使所述任一移动设备向所述智能终端发送任一移动设备的属性信息;信息接收子单元,用于接收并存储所述任一移动设备的属性信息。Wherein, the connection establishment unit 41 may include: a state determination subunit, configured to determine whether any of the mobile devices and smart terminals are started; an information sending subunit, used to determine whether any of the mobile devices or smart terminals are started , sending the attribute information of the intelligent terminal to the any mobile device, causing the any mobile device to receive and store the attribute information of the intelligent terminal, and causing the any mobile device to send any Attribute information of the mobile device; an information receiving subunit, configured to receive and store the attribute information of any mobile device.

其中,状态确定子单元具体可以包括:第一确定子单元;用于在任一移动设备启动时,接收所述任一移动设备发送的第一预设验证信息并确定所述第一预设验证信息是否为移动设备的验证信息;或,验证子单元,用于在智能终端启动时,向预先启动的移动设备发送第二预设验证信息,使预先启动的移动设备执行如下操作:接收并确定所述第二预设验证信息是否为智能终端的验证信息,且向所述智能终端发送该确定结果;第二确定子单元,用于接收该确定结果。Wherein, the status determination subunit may specifically include: a first determination subunit; configured to receive the first preset verification information sent by any mobile device when any mobile device is started and determine the first preset verification information Whether it is the verification information of the mobile device; or, the verification subunit is used to send the second preset verification information to the pre-started mobile device when the smart terminal is started, so that the pre-started mobile device performs the following operations: receive and determine the Whether the second preset verification information is the verification information of the smart terminal, and send the determination result to the smart terminal; the second determination subunit is configured to receive the determination result.

其中,指令响应单元43可以包括:第一发送子单元,用于在所述控制指令为预设控制指令时,依据预先获取的至少两个移动设备的属性信息向所述至少两个移动设备发送对控制指令的响应信息;第二发送子单元,用于在所述控制指令不为预设控制指令时,依据预先获取的所述任一移动设备的属性信息向所述任一移动设备发送对控制指令的响应信息。Wherein, the command response unit 43 may include: a first sending subunit, configured to send the at least two mobile devices to the at least two mobile devices according to the pre-acquired attribute information of the at least two mobile devices when the control command is a preset control command. Response information to the control command; the second sending subunit is configured to send a response message to any mobile device according to the pre-acquired attribute information of any mobile device when the control command is not a preset control command. The response information of the control command.

该装置中,所述智能终端的属性信息可以包括智能终端的名称、端口号、物理地址或序列号;所述任一移动设备的属性信息可以包括任一移动设备的IP地址或端口号。In this device, the attribute information of the intelligent terminal may include the name, port number, physical address or serial number of the intelligent terminal; the attribute information of any mobile device may include the IP address or port number of any mobile device.

本发明第四实施例中提供的智能终端的控制装置,实现了通过与智能终端连接的多个移动设备控制智能终端,如控制智能终端的工作状态,设置信息等,即,实现了多台移动设备控制同一台智能终端,提高了智能终端的实用性。The control device of the smart terminal provided in the fourth embodiment of the present invention realizes the control of the smart terminal through multiple mobile devices connected to the smart terminal, such as controlling the working status of the smart terminal, setting information, etc., that is, realizing multiple mobile devices The device controls the same smart terminal, which improves the practicability of the smart terminal.

上所述仅为本发明实施例的优选实施例,并不用于限制本发明实施例,对于本领域技术人员而言,本发明实施例可以有各种改动和变化。凡在本发明实施例的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本发明实施例的保护范围之内。The above descriptions are only preferred embodiments of the embodiments of the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, various modifications and changes may be made to the embodiments of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiments of the present invention shall be included within the protection scope of the embodiments of the present invention.

Claims (8)

  1. A kind of 1. control method of intelligent sound box, it is characterised in that including:
    Establish and connect with least two mobile devices;
    The control instruction that any mobile device is sent is received, and determines whether the control instruction is default control instruction;It is described Default control instruction includes the broadcast state of editorial intelligence audio amplifier or obtains the instruction of the broadcast state of intelligent sound box;
    The control instruction is responded, and is sent according to determination result at least two mobile device to the control instruction Response message;The response message includes the broadcast state or setting option of intelligent sound box;Response message includes:Need to all The response message of mobile device transmission and the response message individually sent to the mobile device for sending control instruction;
    When at least two mobile device sends control instruction to the intelligent sound box, reached according to the control instruction Sequencing responds the control instruction;
    When the control instruction is that the default control instructs, the attribute letter according at least two mobile devices obtained in advance Cease the response message sent at least two mobile device to control instruction;
    When the control instruction does not instruct for the default control, the attribute according to any mobile device obtained in advance Information sends the response message to control instruction to any mobile device;
    It is described established with least two mobile devices be connected including:
    When mobile device starts, encrypted broadcast messages can be sent to LAN;
    The broadcast message that the private key decryption of intelligent sound box agreement receives, and believe to the attribute of mobile device transmission intelligent sound box Breath;
    When the LAN where still other mobile device connects intelligent sound box, repeat described moved with least two and set Standby the step of establishing connection.
  2. 2. according to the method for claim 1, it is characterised in that established with any mobile device be connected including:
    Determine whether any mobile device and intelligent sound box start;
    When it is determined that any mobile device and intelligent sound box start, the category of intelligent sound box is sent to any mobile device Property information, receives any mobile device and stores the attribute information of the intelligent sound box, and set any movement The standby attribute information that any mobile device is sent to the intelligent sound box;
    Receive and store the attribute information of any mobile device.
  3. 3. according to the method for claim 2, it is characterised in that determine whether any mobile device and intelligent sound box open It is dynamic, including:
    When any mobile device starts, receive described in the first default checking information and determination that any mobile device is sent First default checking information whether be mobile device checking information;Or,
    When intelligent sound box starts, the second default checking information is sent to the mobile device pre-actuated, makes the shifting pre-actuated Dynamic equipment performs following operation:Receive and determine the described second default checking information whether be intelligent sound box checking information, and The determination result is sent to the intelligent sound box;Receive the determination result.
  4. 4. according to the method for claim 2, it is characterised in that
    The attribute information of the intelligent sound box includes title, port numbers, physical address or the sequence number of intelligent sound box;
    The attribute information of any mobile device includes the IP address or port numbers of any mobile device.
  5. A kind of 5. control device of intelligent sound box, it is characterised in that including:
    Connection establishment unit, connected for being established with least two mobile devices;
    Instruction reception unit, the control instruction sent for receiving any mobile device, and determine the control instruction whether be Default control instructs;The default control instruction includes the broadcast state of editorial intelligence audio amplifier or obtains the broadcasting shape of intelligent sound box The instruction of state;
    Response unit is instructed, is sent out for responding the control instruction, and according to determination result at least two mobile device Send the response message to the control instruction;The response message includes the broadcast state or setting option of intelligent sound box;Response letter Breath includes:Need to the response message of all mobile device transmissions and individually to the mobile device transmission for sending control instruction Response message;
    When at least two mobile device sends control instruction to the intelligent sound box, reached according to the control instruction Sequencing responds the control instruction;
    When the control instruction is that the default control instructs, the attribute letter according at least two mobile devices obtained in advance The response message to control instruction at least two mobile device transmission is ceased, wherein, the default control instruction is editor The control instruction of mobile device broadcast state;
    When the control instruction does not instruct for the default control, the attribute according to any mobile device obtained in advance Information sends the response message to control instruction to any mobile device;
    It is described established with least two mobile devices be connected including:
    When mobile device starts, encrypted broadcast messages can be sent to LAN;
    The broadcast message that the private key decryption of intelligent sound box agreement receives, and believe to the attribute of mobile device transmission intelligent sound box Breath;
    When the LAN where still other mobile device connects intelligent sound box, repeat described moved with least two and set Standby the step of establishing connection.
  6. 6. device according to claim 5, it is characterised in that connection establishment unit includes:
    State determination subelement, for determining whether any mobile device and intelligent sound box start;
    Information transmission sub-unit, for when it is determined that any mobile device or intelligent sound box start, to any movement Equipment sends the attribute information of intelligent sound box, receives any mobile device and stores the attribute letter of the intelligent sound box Breath, and make any mobile device to the attribute information of any mobile device of intelligent sound box transmission;
    Information receiving subelement, for receiving and storing the attribute information of any mobile device.
  7. 7. device according to claim 6, it is characterised in that state determination subelement includes:
    First determination subelement, first for when any mobile device starts, receiving any mobile device transmission are pre- If checking information and determine the described first default checking information whether be mobile device checking information;Or,
    Subelement is verified, for when intelligent sound box starts, the second default checking information to be sent to the mobile device pre-actuated, The mobile device for making to pre-actuate performs following operation:Receive and determine whether the described second default checking information is intelligent sound box Checking information, and send the determination result to the intelligent sound box;
    Second determination subelement, for receiving the determination result.
  8. 8. device according to claim 6, it is characterised in that
    The attribute information of the intelligent sound box includes title, port numbers, physical address or the sequence number of intelligent sound box;
    The attribute information of any mobile device includes the IP address or port numbers of any mobile device.
CN201410746647.9A 2014-12-08 2014-12-08 A kind of control method and device of intelligent terminal Active CN104519207B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410746647.9A CN104519207B (en) 2014-12-08 2014-12-08 A kind of control method and device of intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410746647.9A CN104519207B (en) 2014-12-08 2014-12-08 A kind of control method and device of intelligent terminal

Publications (2)

Publication Number Publication Date
CN104519207A CN104519207A (en) 2015-04-15
CN104519207B true CN104519207B (en) 2018-01-19

Family

ID=52793901

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410746647.9A Active CN104519207B (en) 2014-12-08 2014-12-08 A kind of control method and device of intelligent terminal

Country Status (1)

Country Link
CN (1) CN104519207B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100190B (en) * 2015-05-21 2019-05-10 小米科技有限责任公司 The methods, devices and systems that the control planning of account and equipment is managed
CN107911386B (en) * 2017-12-06 2020-12-04 北京小米移动软件有限公司 Method and device for acquiring service authorization information
CN108366004B (en) * 2018-02-07 2021-02-05 北京奇艺世纪科技有限公司 Connection method and connection system of intelligent sound box and controlled equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510965B (en) * 2009-03-11 2011-05-11 深圳市融创天下科技发展有限公司 Classified access system and method for multiple mobile terminals of digital television set-top box
CN101951368A (en) * 2010-09-10 2011-01-19 深圳市同洲电子股份有限公司 Service authority control method, terminal and system based on subnet
EP2619739A4 (en) * 2010-09-24 2014-01-22 Xped Holdings Pty Ltd Remote control and remote control systems
CN102355390B (en) * 2011-08-16 2014-06-18 中国科学院电工研究所 Intelligent home system
CN103019197B (en) * 2012-12-03 2014-10-29 海信集团有限公司 Method and system for conducting long-range control on intelligent terminal device
CN103309308B (en) * 2013-05-17 2016-08-10 华为技术有限公司 A kind of device intelligence control method and device, system, PnP device

Also Published As

Publication number Publication date
CN104519207A (en) 2015-04-15

Similar Documents

Publication Publication Date Title
US10778656B2 (en) Sharing resources across multiple devices in online meetings
CN107911437B (en) Screen sharing method and device, electronic equipment and storage medium
CN111263006B (en) Managing connections of user equipment
CN105139877B (en) Connection method of multimedia playback equipment, main equipment, control terminal and system
CN104980514B (en) Remote play control method and device for wireless sound box
CN105636237B (en) A kind of method, wireless device, system and storage medium for connecting network
TW201611537A (en) Method and system of establishing bluetooth
CN102724138A (en) Information sharing method and device for instant messaging
CN104539454B (en) Device management method, apparatus and system
CN104519207B (en) A kind of control method and device of intelligent terminal
CN105791454A (en) Binding method and device for an intelligent terminal
US8711837B1 (en) Methods, apparatus, and systems for facilitating control communications between disparate devices
CN105323243A (en) Method and device for secure voice communication based on instant messaging
US9537832B2 (en) Method, system and device for establishing link
CN104486174B (en) The network-building method and device of a kind of intelligent terminal
EP4087261A1 (en) Device discovery for social playback
CN106375453B (en) Bidirectional communication equipment, system and method based on HTTP connection
WO2016106705A1 (en) Content sharing method, terminal, server and system
WO2017054508A1 (en) Data pushing method and apparatus
CN114531311A (en) Equipment control method and device
CN105682010A (en) Bluetooth connection control method and device in audio playing system, and player
CN103731405B (en) The method and apparatus that shared information is presented in data sharing for demonstration end equipment
CN103475436A (en) Method for transmitting audio playlist and play position based on DLNA technology
CN113918108A (en) Screen projection method and corresponding electronic equipment and system
WO2015117306A1 (en) Cross-home network processing method, http gateway and dlna device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder