








技术领域technical field
本申请涉及计算机领域,具体而言,涉及一种设备控制方法、装置和存储介质及电子装置。The present application relates to the computer field, and in particular, relates to a device control method, device, storage medium and electronic device.
背景技术Background technique
相关技术对设备的控制,通常依赖于蓝牙、红外线、射频等对距离有较高要求的信号,而难以突破距离限制,支持用户随时随地完成对设备的控制,进而降低了对设备的控制效率。即,相关技术中存在设备效率较低的技术问题。Related technologies usually rely on Bluetooth, infrared, radio frequency and other signals that have high requirements for distance to control devices, but it is difficult to break through the distance limit and support users to complete control of devices anytime and anywhere, thereby reducing the control efficiency of devices. That is, there is a technical problem in that the equipment efficiency is low in the related art.
发明内容Contents of the invention
本申请实施例提供了一种设备控制方法、装置和存储介质及电子设备,以至少解决设备控制效率较低的技术问题。Embodiments of the present application provide a device control method, device, storage medium, and electronic device, so as to at least solve the technical problem of low device control efficiency.
根据本申请实施例的一个方面,提供了一种设备控制方法,包括:According to an aspect of an embodiment of the present application, a device control method is provided, including:
响应于对象账号在物联应用程序上触发的第一控制指令,从上述物联应用程序关联的多个设备集群中,确定出与上述对象账号匹配的对象设备集群,其中,上述第一控制指令用于指示控制第一设备,上述设备集群为由多个互相关联的设备组成的集群,上述对象设备集群包括上述第一设备;In response to the first control instruction triggered by the object account on the Internet of Things application, from the multiple device clusters associated with the above-mentioned Internet of Things application, determine the object device cluster that matches the above-mentioned object account, wherein the above-mentioned first control instruction Used to instruct and control the first device, the device cluster is a cluster composed of multiple interrelated devices, and the target device cluster includes the first device;
将上述第一控制指令转发至上述对象设备集群中的网关设备,以使上述网关设备建立与上述第一设备之间的临时通信连接,并通过上述临时通信连接传输上述第一控制指令,对上述第一设备进行控制;forwarding the first control instruction to the gateway device in the target device cluster, so that the gateway device establishes a temporary communication connection with the first device, and transmits the first control instruction through the temporary communication connection, to the above-mentioned the first device is controlled;
在获取到上述第一控制指令的第一控制响应的情况下,将上述第一控制响应转发至上述对象账号的客户端,其中,上述对象账号的客户端上安装有上述物联应用程序。If the first control response of the first control instruction is obtained, the first control response is forwarded to the client of the target account, wherein the client of the target account is installed with the IoT application.
根据本申请实施例的另一方面,还提供了一种设备控制装置,包括:According to another aspect of the embodiments of the present application, a device control device is also provided, including:
第一确定单元,用于响应于对象账号在物联应用程序上触发的第一控制指令,从上述物联应用程序关联的多个设备集群中,确定出与上述对象账号匹配的对象设备集群,其中,上述第一控制指令用于指示控制第一设备,上述设备集群为由多个互相关联的设备组成的集群,上述对象设备集群包括上述第一设备;The first determining unit is configured to, in response to the first control instruction triggered by the object account on the IoT application program, determine the object device cluster matching the above object account from the plurality of device clusters associated with the above IoT application program, Wherein, the above-mentioned first control instruction is used to instruct to control the first device, the above-mentioned device cluster is a cluster composed of a plurality of interrelated devices, and the above-mentioned target device cluster includes the above-mentioned first device;
第一连接单元,用于将上述第一控制指令转发至上述对象设备集群中的网关设备,以使上述网关设备建立与上述第一设备之间的临时通信连接,并通过上述临时通信连接传输上述第一控制指令,对上述第一设备进行控制;The first connection unit is configured to forward the above-mentioned first control instruction to the gateway device in the above-mentioned object device cluster, so that the above-mentioned gateway device establishes a temporary communication connection with the above-mentioned first device, and transmits the above-mentioned a first control instruction, controlling the above-mentioned first device;
第一响应单元,用于在获取到上述第一控制指令的第一控制响应的情况下,将上述第一控制响应转发至上述对象账号的客户端,其中,上述对象账号的客户端上安装有上述物联应用程序。The first response unit is configured to forward the first control response to the client of the target account when the first control response of the first control command is obtained, wherein the client of the target account is installed with IoT applications mentioned above.
作为一种可选的方案,上述第一连接单元,还包括:第一转发模块,用于通过无线网络将上述第一控制指令转发至上述对象设备集群中的上述网关设备。As an optional solution, the above-mentioned first connection unit further includes: a first forwarding module, configured to forward the above-mentioned first control instruction to the above-mentioned gateway device in the above-mentioned object device cluster through a wireless network.
作为一种可选的方案,上述第一确定单元,在上述响应于对象账号在物联应用程序上触发的第一控制指令,从上述物联应用程序关联的多个设备集群中,确定出与上述对象账号匹配的对象设备集群之前,包括:第一获取单元,用于通过上述无线网络获取上述对象账号的客户端发送的上述第一控制指令;或,第二获取单元,用于通过红外线发射光获取上述对象账号的客户端所在的终端设备发送的上述第一控制指令;或,第三获取单元,用于通过蓝牙信号获取上述对象账号的客户端所在的终端设备发送的上述第一控制指令。As an optional solution, the above-mentioned first determining unit, in response to the first control instruction triggered by the object account on the Internet of Things application, determines from the multiple device clusters associated with the above-mentioned Internet of Things application Before the object device cluster matched with the above-mentioned object account, it includes: a first obtaining unit, configured to obtain the above-mentioned first control instruction sent by the client of the above-mentioned object account through the above-mentioned wireless network; Obtaining the above-mentioned first control instruction sent by the terminal device where the client of the above-mentioned target account is located; or, a third obtaining unit, configured to obtain the above-mentioned first control command sent by the terminal device where the client of the above-mentioned target account is located through a Bluetooth signal .
作为一种可选的方案,上述第一确定单元,包括:第一获取模块,用于响应于上述第一控制指令,获取上述第一控制指令中携带的设备标识信息;第一确定模块,用于从上述物联应用程序关联的多个设备集群中,确定出与上述设备标识信息匹配的上述对象设备集群。As an optional solution, the above-mentioned first determining unit includes: a first obtaining module, configured to obtain the device identification information carried in the above-mentioned first control instruction in response to the above-mentioned first control instruction; the first determining module uses From among the plurality of device clusters associated with the IoT application, the target device cluster matching the device identification information is determined.
作为一种可选的方案,上述第一获取模块,包括以下至少之一:第一响应子模块,用于响应于上述第一控制指令,获取上述第一控制指令中携带的MAC地址;第二响应子模块,用于响应于上述第一控制指令,获取上述第一控制指令中携带的产品序列号。As an optional solution, the above-mentioned first obtaining module includes at least one of the following: a first response submodule, configured to obtain the MAC address carried in the above-mentioned first control instruction in response to the above-mentioned first control instruction; The response submodule is configured to respond to the first control instruction and acquire the product serial number carried in the first control instruction.
作为一种可选的方案,上述第一响应单元,在获取到上述第一控制指令的第一控制响应的情况下,将上述第一控制响应转发至上述对象账号的客户端之后,上述方法还包括:第四获取单元,用于获取上述对象账号与上述网关设备之间的匹配关系,并将上述匹配关系存储至数据库中。As an optional solution, after the above-mentioned first response unit obtains the first control response of the above-mentioned first control instruction, after forwarding the above-mentioned first control response to the client of the above-mentioned target account, the above-mentioned method further It includes: a fourth obtaining unit, configured to obtain a matching relationship between the above-mentioned object account and the above-mentioned gateway device, and store the above-mentioned matching relationship in a database.
作为一种可选的方案,上述第四获取单元,在上述获取上述对象账号与上述网关设备之间的匹配关系,并将上述匹配关系存储至数据库中之后,上述方法还包括:第二确定单元,用于响应于上述对象账号在上述物联应用程序上触发的第二控制指令,从上述数据库中确定出与上述对象账号之间具有上述匹配关系的上述网关设备;第二连接单元,用于将上述第二控制指令转发至上述网关设备,以使上述网关设备建立与第二设备之间的临时通信连接,并通过上述与第二设备之间的临时通信连接传输上述第二控制指令,对上述第二设备进行控制;第二响应单元,用于在获取到上述第二控制指令的第二控制响应的情况下,将上述第二控制响应转发至上述对象账号的客户端。As an optional solution, after the above-mentioned fourth obtaining unit acquires the matching relationship between the above-mentioned target account and the above-mentioned gateway device and stores the above-mentioned matching relationship in a database, the above-mentioned method further includes: a second determining unit , for responding to the second control instruction triggered by the above-mentioned object account on the above-mentioned Internet of Things application program, and determining the above-mentioned gateway device that has the above-mentioned matching relationship with the above-mentioned object account from the above-mentioned database; the second connection unit is used for forwarding the above-mentioned second control instruction to the above-mentioned gateway device, so that the above-mentioned gateway device establishes a temporary communication connection with the second device, and transmits the above-mentioned second control instruction through the above-mentioned temporary communication connection with the second device, to The above-mentioned second device performs control; the second response unit is configured to forward the above-mentioned second control response to the client of the above-mentioned target account when the second control response of the above-mentioned second control instruction is obtained.
根据本申请实施例的又一个方面,提供一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行如以上设备控制方法。According to yet another aspect of the embodiments of the present application, a computer program product or computer program is provided, where the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the above device control method.
根据本申请实施例的又一方面,还提供了一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,上述处理器通过计算机程序执行上述的设备控制方法。According to yet another aspect of the embodiments of the present application, there is also provided an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the above-mentioned processor executes the above-mentioned Device control method.
在本申请实施例中,响应于对象账号在物联应用程序上触发的第一控制指令,从上述物联应用程序关联的多个设备集群中,确定出与上述对象账号匹配的对象设备集群,其中,上述第一控制指令用于指示控制第一设备,上述设备集群为由多个互相关联的设备组成的集群,上述对象设备集群包括上述第一设备;将上述第一控制指令转发至上述对象设备集群中的网关设备,以使上述网关设备建立与上述第一设备之间的临时通信连接,并通过上述临时通信连接传输上述第一控制指令,对上述第一设备进行控制;在获取到上述第一控制指令的第一控制响应的情况下,将上述第一控制响应转发至上述对象账号的客户端,其中,上述对象账号的客户端上安装有上述物联应用程序。通过网关设备利用WIFI和BLE蓝牙技术组成一个系统,进而实现随时随地的智能家电的远程控制,在实现多设备集群的远距离控制的基础上进一步保证了控制的可靠性,从而实现了提高设备控制效率的技术效果,进而解决了设备控制效率较低的技术问题。In the embodiment of the present application, in response to the first control instruction triggered by the object account on the IoT application program, the object device cluster matching the above object account is determined from the multiple device clusters associated with the above IoT application program, Wherein, the above-mentioned first control instruction is used to instruct to control the first device, and the above-mentioned device cluster is a cluster composed of a plurality of interrelated devices, and the above-mentioned object device cluster includes the above-mentioned first device; forward the above-mentioned first control instruction to the above-mentioned object a gateway device in the device cluster, so that the gateway device establishes a temporary communication connection with the first device, and transmits the first control instruction through the temporary communication connection to control the first device; In the case of the first control response of the first control instruction, the first control response is forwarded to the client of the target account, wherein the client of the target account is installed with the IoT application. The gateway device uses WIFI and BLE Bluetooth technology to form a system, and then realizes the remote control of smart home appliances anytime and anywhere, and further ensures the reliability of the control on the basis of realizing the remote control of multi-device clusters, thereby realizing the improvement of device control. The technical effect of efficiency, and then solve the technical problem of low equipment control efficiency.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description serve to explain the principles of the application.
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, In other words, other drawings can also be obtained from these drawings without paying creative labor.
图1是根据本申请实施例的一种第一设备的交互方法的硬件环境示意图;FIG. 1 is a schematic diagram of a hardware environment of an interaction method of a first device according to an embodiment of the present application;
图2是根据本申请实施例的一种可选的设备控制方法的流程示意图;FIG. 2 is a schematic flowchart of an optional device control method according to an embodiment of the present application;
图3是根据本申请实施例的另一种可选设备控制方法的实例示意图;Fig. 3 is a schematic diagram of an example of another optional device control method according to an embodiment of the present application;
图4是根据本申请实施例的另一种可选的设备控制方法的实例示意图;Fig. 4 is an example schematic diagram of another optional device control method according to an embodiment of the present application;
图5是根据本申请实施例的另一种可选的设备控制方法的实例示意图;Fig. 5 is a schematic diagram of an example of another optional device control method according to an embodiment of the present application;
图6是根据本申请实施例的另一种可选的设备控制方法的实例示意图;Fig. 6 is a schematic diagram of an example of another optional device control method according to an embodiment of the present application;
图7是根据本申请实施例的另一种可选的设备控制方法的实例示意图;Fig. 7 is an example schematic diagram of another optional device control method according to an embodiment of the present application;
图8是根据本申请实施例的一种可选的设备控制方法装置的示意图;Fig. 8 is a schematic diagram of an optional device control method device according to an embodiment of the present application;
图9是根据本申请实施例的一种可选的电子设备的结构示意图。Fig. 9 is a schematic structural diagram of an optional electronic device according to an embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiment of the application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiment of the application. Obviously, the described embodiment is only It is an embodiment of a part of the application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first" and "second" in the description and claims of the present application and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the application described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.
根据本申请实施例的一个方面,提供了一种智能家居设备的交互方法。该智能家居设备的交互方法广泛应用于智慧家庭(Smart Home)、智能家居、智能家用设备生态、智慧住宅(IntelligenceHouse)生态等全屋智能数字化控制应用场景。可选地,在本实施例中,上述智能家居设备的交互方法可以应用于如图1所示的由终端设备102和服务器104所构成的硬件环境中。如图1所示,服务器104通过网络与终端设备102进行连接,可用于为终端或终端上安装的客户端提供服务(如应用服务等),可在服务器上或独立于服务器设置数据库,用于为服务器104提供数据存储服务,可在服务器上或独立于服务器配置云计算和/或边缘计算服务,用于为服务器104提供数据运算服务。According to an aspect of the embodiments of the present application, a method for interacting with smart home devices is provided. The interaction method of the smart home device is widely used in smart home (Smart Home), smart home, smart home device ecology, smart house (Intelligence House) ecology and other intelligent digital control application scenarios in the whole house. Optionally, in this embodiment, the above-mentioned interaction method for smart home devices may be applied in a hardware environment composed of a
上述网络可以包括但不限于以下至少之一:有线网络,无线网络。上述有线网络可以包括但不限于以下至少之一:广域网,城域网,局域网,上述无线网络可以包括但不限于以下至少之一:WIFI(Wireless Fidelity,无线保真),蓝牙。终端设备102可以并不限定于为PC、手机、平板电脑、智能空调、智能烟机、智能冰箱、智能烤箱、智能炉灶、智能洗衣机、智能热水器、智能洗涤设备、智能洗碗机、智能投影设备、智能电视、智能晾衣架、智能窗帘、智能影音、智能插座、智能音响、智能音箱、智能新风设备、智能厨卫设备、智能卫浴设备、智能扫地机器人、智能擦窗机器人、智能拖地机器人、智能空气净化设备、智能蒸箱、智能微波炉、智能厨宝、智能净化器、智能饮水机、智能门锁等。The foregoing network may include but not limited to at least one of the following: a wired network and a wireless network. The above-mentioned wired network may include but not limited to at least one of the following: wide area network, metropolitan area network, and local area network, and the above-mentioned wireless network may include but not limited to at least one of the following: WIFI (Wireless Fidelity, Wireless Fidelity), Bluetooth. The
可选地,作为一种可选的实施方式,如图2所示,设备控制方法包括:Optionally, as an optional implementation manner, as shown in FIG. 2, the device control method includes:
S202,响应于对象账号在物联应用程序上触发的第一控制指令,从物联应用程序关联的多个设备集群中,确定出与对象账号匹配的对象设备集群,其中,第一控制指令用于指示控制第一设备,设备集群为由多个互相关联的设备组成的集群,对象设备集群包括第一设备;S202, in response to the first control instruction triggered by the object account on the Internet of Things application, determine the object device cluster matching the object account from the multiple device clusters associated with the Internet of Things application, wherein the first control instruction uses For instructing and controlling the first device, the device cluster is a cluster composed of multiple interrelated devices, and the target device cluster includes the first device;
S204,将第一控制指令转发至对象设备集群中的网关设备,以使网关设备建立与第一设备之间的临时通信连接,并通过临时通信连接传输第一控制指令,对第一设备进行控制;S204. Forward the first control instruction to the gateway device in the object device cluster, so that the gateway device establishes a temporary communication connection with the first device, and transmits the first control instruction through the temporary communication connection to control the first device ;
S206,在获取到第一控制指令的第一控制响应的情况下,将第一控制响应转发至对象账号的客户端,其中,对象账号的客户端上安装有物联应用程序。S206. If the first control response of the first control instruction is obtained, forward the first control response to the client of the target account, where the client of the target account is installed with the IoT application.
可选地,在本实施例中,上述设备控制方法可以但不限于应用在智能家居控制场景下,随着计算机和互联网的发展,人们对家居的智能化要求越来越高,而现有的智能家电设备都支持BLE蓝牙,用户手机与智能家电BLE蓝牙连接后,可以通过手机在很短距离内实现家电的远程控制,受限于蓝牙传输距离的限制,无法真正实现智能家电随时随地的远程控制。Optionally, in this embodiment, the above-mentioned device control method can be applied, but not limited to, to smart home control scenarios. With the development of computers and the Internet, people have higher and higher requirements for smart homes, and the existing Smart home appliances support BLE Bluetooth. After the user's mobile phone is connected to the smart home appliance BLE Bluetooth, the remote control of the home appliance can be realized within a short distance through the mobile phone. Limited by the limitation of the Bluetooth transmission distance, it is impossible to truly realize the remote control of smart home appliances anytime and anywhere. control.
使用WIFI技术可以实现远程控制,但是当需要进行控制的智能设备较多时,即控制单位为智能设备集群时,无法保证设备集群中的每一设备都进行准确的控制,即无法保证控制的可靠性,本申请通过网关设备利用WIFI和BLE蓝牙技术组成一个系统,实现随时随地的智能家电的远程控制,又可以保证百分百的控制,保证了控制的可靠性,从而提高了控制效率。Remote control can be realized by using WIFI technology, but when there are many smart devices that need to be controlled, that is, when the control unit is a smart device cluster, it cannot guarantee that each device in the device cluster can be accurately controlled, that is, the reliability of the control cannot be guaranteed , this application uses WIFI and BLE Bluetooth technology to form a system through the gateway device to realize the remote control of smart home appliances anytime and anywhere, and can guarantee 100% control and reliability of control, thereby improving control efficiency.
可选地,在本实施例中,物联应用程序为按照网络协议将物理设备与互联网连接以实现对设备的智能化管理的应用程序,可以但不限于为手机APP、电脑网页等;第一设备可以为设备集群中的一个智能家电设备,可以但不限于智能空调、智能洗衣机、智能热水器等;设备集群由多个互相关联的设备组成的集群,设备集群可以但不限于根据不同应用场景配置不同的集群标签,例如由智能电视、智能空调、智能扫地机器人组成的标签为“客厅”的设备集群;第一控制指令为对象账号在物联应用程序上触发的用于指示控制第一设备的指令,触发第一控制指令的方式可以但不限于为使用屏幕触控触发、声音声控触发、震动触发等方式,触发第一控制指令的方式还可以根据距离信息触发控制指令,例如该物联应用程序被允许获取用户手机的GPS位置信息和预设位置信息,当该用户手机位置距离预设位置达到预设距离时,自动触发控制指令,例如用户A预设在距离家1公里时开启空调,超过1公里时关闭空调,以提高控制触发方式的多样性。Optionally, in this embodiment, the IoT application program is an application program that connects the physical device to the Internet according to the network protocol to realize intelligent management of the device, and may be, but not limited to, a mobile phone APP, a computer web page, etc.; the first The device can be a smart home appliance in the device cluster, which can be but not limited to smart air conditioners, smart washing machines, smart water heaters, etc.; the device cluster is composed of multiple interconnected devices, and the device cluster can be configured according to different application scenarios Different cluster labels, for example, a device cluster labeled "living room" composed of smart TVs, smart air conditioners, and smart sweeping robots; the first control instruction is an instruction to control the first device triggered by the object account on the Internet of Things application. Instructions, the way to trigger the first control instruction can be but not limited to use screen touch trigger, voice voice trigger, vibration trigger, etc. The way to trigger the first control instruction can also trigger the control instruction according to the distance information, such as the Internet of Things application The program is allowed to obtain the GPS location information and preset location information of the user's mobile phone. When the user's mobile phone location reaches the preset distance from the preset location, the control command is automatically triggered. Turn off the air conditioner when exceeding 1 km to increase the diversity of control trigger methods.
可选地,在本实施例中,网关设备为接受到控制指令后,主动扫描周围设备的蓝牙广播,和设备建立蓝牙连接后,根据第一控制指令的内容发送控制命令给第一设备,网关设备接收到第一设备反馈的第一控制响应后,将第一控制响应转发至对象账号的物联应用程序中,网关设备可以但不限于安置在路由器上、智能音箱、门锁上等等;临时通信连接主要指通过蓝牙进行近距离短时间的数据连接、通信链接;第一控制响应为第一设备接受到控制指令后做出的响应,可以但不限于反馈给网关设备执行成功或者执行失败的结果信息;临时通信连接为进行的短时间的通信连接,可以但不限于通过蓝牙实现的短时间近距离通信连接。Optionally, in this embodiment, after receiving the control instruction, the gateway device actively scans the Bluetooth broadcasts of surrounding devices, and after establishing a Bluetooth connection with the device, sends a control command to the first device according to the content of the first control instruction. After the device receives the first control response fed back by the first device, it forwards the first control response to the IoT application of the target account. The gateway device can be but not limited to be placed on a router, a smart speaker, a door lock, etc.; Temporary communication connection mainly refers to the short-distance short-distance data connection and communication link through Bluetooth; the first control response is the response made by the first device after receiving the control command, which can be, but not limited to, fed back to the gateway device for successful or failed execution The result information; the temporary communication connection is a short-term communication connection, which can be but not limited to a short-term short-distance communication connection through Bluetooth.
可选地,在本实施例中,网关设备获取设备集群的设备信息,网关设备将设备集群的设备信息,发送给对象账号的物联应用程序中,设备信息包括设备的产品序列号,可用于响应的控制指令、设备名称等。Optionally, in this embodiment, the gateway device obtains the device information of the device cluster, and the gateway device sends the device information of the device cluster to the IoT application of the object account. The device information includes the product serial number of the device, which can be used to The corresponding control command, device name, etc.
需要说明的是,响应于对象账号在物联应用程序上触发的第一控制指令,从物联应用程序关联的多个设备集群中,确定出与对象账号匹配的对象设备集群,其中,第一控制指令用于指示控制第一设备,设备集群为由多个互相关联的设备组成的集群,对象设备集群包括第一设备;将第一控制指令转发至对象设备集群中的网关设备,以使网关设备建立与第一设备之间的临时通信连接,并通过临时通信连接传输第一控制指令,对第一设备进行控制;在获取到第一控制指令的第一控制响应的情况下,将第一控制响应转发至对象账号的客户端,其中,对象账号的客户端上安装有物联应用程序。起到提高设备控制可靠性的有益效果。It should be noted that, in response to the first control instruction triggered by the object account on the Internet of Things application, the object device cluster matching the object account is determined from the multiple device clusters associated with the Internet of Things application, wherein the first The control instruction is used to instruct to control the first device, the device cluster is a cluster composed of a plurality of interrelated devices, and the target device cluster includes the first device; the first control command is forwarded to the gateway device in the target device cluster, so that the gateway The device establishes a temporary communication connection with the first device, and transmits the first control instruction through the temporary communication connection to control the first device; when the first control response of the first control instruction is obtained, the first The control response is forwarded to the client of the target account, wherein the IoT application is installed on the client of the target account. It has the beneficial effect of improving the reliability of equipment control.
进一步举例说明,可选的例如图3所示,云平台304响应于对象账号在物联应用程序302上触发的第一控制指令,从物联应用程序302关联的多个设备集群中,确定出与对象账号匹配的对象设备集群;云平台将第一控制指令转发至对象设备集群中的网关设备306,以使网关设备306建立与第一设备308之间的临时通信连接,并通过临时通信连接传输第一控制指令,对第一设备308进行控制;在获取到第一控制指令的第一控制响应的情况下,将第一控制响应转发至对象账号的客户端。To further illustrate, optionally, as shown in FIG. 3 , the
通过本申请提供的实施例,响应于对象账号在物联应用程序上触发的第一控制指令,从物联应用程序关联的多个设备集群中,确定出与对象账号匹配的对象设备集群,其中,第一控制指令用于指示控制第一设备,设备集群为由多个互相关联的设备组成的集群,对象设备集群包括第一设备;将第一控制指令转发至对象设备集群中的网关设备,以使网关设备建立与第一设备之间的临时通信连接,并通过临时通信连接传输第一控制指令,对第一设备进行控制;在获取到第一控制指令的第一控制响应的情况下,将第一控制响应转发至对象账号的客户端,其中,对象账号的客户端上安装有物联应用程序。通过网关设备利用WIFI和BLE蓝牙技术组成一个系统,进而实现随时随地的智能家电的远程控制,在实现多设备集群的远距离控制的基础上进一步保证了控制的可靠性,从而实现了提高设备控制效率的技术效果,进而解决了设备控制效率较低的技术问题。Through the embodiments provided in this application, in response to the first control instruction triggered by the object account on the IoT application, the object device cluster matching the object account is determined from the multiple device clusters associated with the IoT application, where , the first control instruction is used to instruct to control the first device, the device cluster is a cluster composed of a plurality of interrelated devices, and the target device cluster includes the first device; the first control command is forwarded to the gateway device in the target device cluster, Make the gateway device establish a temporary communication connection with the first device, and transmit the first control instruction through the temporary communication connection to control the first device; when the first control response of the first control instruction is obtained, The first control response is forwarded to the client of the target account, wherein the IoT application is installed on the client of the target account. The gateway device uses WIFI and BLE Bluetooth technology to form a system, and then realizes the remote control of smart home appliances anytime and anywhere, and further ensures the reliability of the control on the basis of realizing the remote control of multi-device clusters, thereby realizing the improvement of device control. The technical effect of efficiency, and then solve the technical problem of low equipment control efficiency.
作为一种可选的方案,将第一控制指令转发至对象设备集群中的网关设备,包括;As an optional solution, forwarding the first control instruction to the gateway device in the object device cluster includes;
通过无线网络将第一控制指令转发至对象设备集群中的网关设备。The first control instruction is forwarded to the gateway device in the target device cluster through the wireless network.
进一步举例说明,可选的例如图4所示,用户A通过物联应用程序402上想要远程开启客厅的摄像头,用户A通过手机APP声控的方式下发“开启客厅摄像头”的控制指令,无线网络404获取该控制指令携带的Mac地址,该Mac地址在用户A注册手机APP时已预先配置,无线网络通过该Mac地址确定网关设备406的位置,并将第一控制指令转发至网关设备406。For further illustration, as shown in Figure 4, user A wants to remotely turn on the camera in the living room through the Internet of Things application 402, and user A sends the control command "turn on the camera in the living room" through the voice control of the mobile phone APP. The network 404 obtains the Mac address carried in the control command. The Mac address is pre-configured when user A registers the mobile APP. The wireless network determines the location of the gateway device 406 through the Mac address, and forwards the first control command to the gateway device 406.
通过本申请提供的实施例,通过无线网络将第一控制指令转发至对象设备集群中的网关设备,进而达到了网关设备与无线网络相连的目的,从而实现了提高控制指令传输效率的技术效果。Through the embodiments provided in this application, the first control command is forwarded to the gateway device in the object device cluster through the wireless network, thereby achieving the purpose of connecting the gateway device to the wireless network, thereby achieving the technical effect of improving the transmission efficiency of the control command.
作为一种可选的方案,在响应于对象账号在物联应用程序上触发的第一控制指令,从物联应用程序关联的多个设备集群中,确定出与对象账号匹配的对象设备集群之前,包括;As an optional solution, before the target device cluster matching the target account is determined from the plurality of device clusters associated with the IoT application in response to the first control instruction triggered by the target account on the IoT application ,include;
S1,通过无线网络获取对象账号的客户端发送的第一控制指令;或,S1, obtaining the first control instruction sent by the client of the target account through the wireless network; or,
S2,通过红外线发射光获取对象账号的客户端所在的终端设备发送的第一控制指令;或,S2. Obtain the first control instruction sent by the terminal device where the client of the target account is located by emitting light through infrared rays; or,
S3,通过蓝牙信号获取对象账号的客户端所在的终端设备发送的第一控制指令。S3. Obtain the first control instruction sent by the terminal device where the client of the target account is located through the Bluetooth signal.
可选地,在本实施例中,根据网关设备、客户端之间的距离和设备集群的放置场景决定控制指令的发送方式,即物联应用程序安装在不同设备上,以及距离不同,使用不同方式发送第一控制指令的操作,可以但不限于在距离近且物联应用程序安装在具有红外线发射功能的设备上时,通过红外线发射光向网关设备发送第一控制指令,在距离近且物联应用程序安装在具有蓝牙功能的设备上时,通过蓝牙连接向网关设备发送第一控制指令;可以但不限于设置距离阈值,当大于预设距离阈值时采用无线网络的获取方式,小于预设距离阈值时采用红外线或蓝牙连接的方式获取控制指令。Optionally, in this embodiment, the sending method of the control command is determined according to the distance between the gateway device and the client and the placement scenario of the device cluster, that is, the IoT application is installed on different devices, and different distances use different The operation of sending the first control instruction by way of sending the first control instruction can be, but not limited to, when the distance is short and the IoT application program is installed on a device with infrared emitting function, the first control instruction is sent to the gateway device through infrared light emission. When the linked application program is installed on a device with Bluetooth function, the first control command is sent to the gateway device through the Bluetooth connection; the distance threshold can be set, but not limited to, when the distance threshold is greater than the preset distance threshold, the wireless network acquisition method is used, and the distance threshold is less than the preset distance threshold. When the distance threshold is reached, the control command is obtained by means of infrared or bluetooth connection.
需要说明的是,通过无线网络获取对象账号的客户端发送的第一控制指令;或,通过红外线发射光获取对象账号的客户端所在的终端设备发送的第一控制指令;或,通过蓝牙信号获取对象账号的客户端所在的终端设备发送的第一控制指令。起到提高控制手段多样性的有益效果。It should be noted that the first control instruction sent by the client of the target account is obtained through the wireless network; or, the first control command sent by the terminal device where the client of the target account is obtained is obtained by emitting light through infrared rays; or, the first control command is obtained through the Bluetooth signal. The first control instruction sent by the terminal device where the client of the target account is located. It has the beneficial effect of improving the diversity of control means.
通过本申请提供的实施例,通过无线网络获取对象账号的客户端发送的第一控制指令;或,通过红外线发射光获取对象账号的客户端所在的终端设备发送的第一控制指令;或,通过蓝牙信号获取对象账号的客户端所在的终端设备发送的第一控制指令,进而达到了不仅仅限制与远距离控制,还可以使用红外线技术或者蓝牙信息近距离获取控制指令,从而实现了设备控制的全面性的有益效果。Through the embodiments provided in this application, the first control instruction sent by the client of the target account is obtained through the wireless network; or, the first control command sent by the terminal device where the client of the target account is located is obtained by emitting infrared light; or, through The Bluetooth signal obtains the first control command sent by the terminal device where the client of the target account is located, and then achieves not only restriction and long-distance control, but also uses infrared technology or Bluetooth information to obtain control commands at close range, thereby realizing device control. Comprehensive beneficial effects.
作为一种可选的方案,响应于对象账号在物联应用程序上触发的第一控制指令,从物联应用程序关联的多个设备集群中,确定出与对象账号匹配的对象设备集群,包括;As an optional solution, in response to the first control instruction triggered by the object account on the Internet of Things application, the object device cluster matching the object account is determined from the multiple device clusters associated with the Internet of Things application, including ;
S1,响应于第一控制指令,获取第一控制指令中携带的设备标识信息;S1. Obtain device identification information carried in the first control instruction in response to the first control instruction;
S2,从物联应用程序关联的多个设备集群中,确定出与设备标识信息匹配的对象设备集群。S2. From the multiple device clusters associated with the IoT application program, determine an object device cluster that matches the device identification information.
可选地,在本实施例中,网关设备接收到应用物联程序,通过无线网络发送的第一控制指令,获取第一控制指令中携带的设备标识信息,设备标识信息可以但不限于带有设备名称、产品序列号等信息,从网关设备中的多个设备集群中确定处于设备信息匹配的设备集群,进一步确定该设备集群下的第一设备。Optionally, in this embodiment, the gateway device receives the first control command sent by the application of the Internet of Things program through the wireless network, and obtains the device identification information carried in the first control command. The device identification information can be but not limited to include The device name, product serial number and other information are used to determine the device cluster that matches the device information from the multiple device clusters in the gateway device, and further determine the first device under the device cluster.
需要说明的是,响应于第一控制指令,获取第一控制指令中携带的设备标识信息;从物联应用程序关联的多个设备集群中,确定出与设备标识信息匹配的对象设备集群。起到提高设备匹配的准确性的有益效果。It should be noted that, in response to the first control instruction, the device identification information carried in the first control instruction is obtained; from the plurality of device clusters associated with the IoT application, the target device cluster matching the device identification information is determined. It has the beneficial effect of improving the accuracy of equipment matching.
进一步举例说明,可选的例如图5所示,用户A想要开启卧室空调,网关设备504从卧室、客厅、厨房等多个设备集群中确定卧室设备集群,并进一步确定第一设备506,,向卧室的空调设备发送启动指令,空调启动后,获取空调启动的控制响应,通过无线网络发送至用户A的应用程序中,使用户A知晓卧室空调开启成功,以及开启的温度、模式等信息,以方便用户进行下一步的控制,例如用户收到空调开启的指令后,进一步控制智能窗户进行关闭。To further illustrate, optionally, as shown in FIG. 5, user A wants to turn on the air conditioner in the bedroom, the gateway device 504 determines the bedroom device cluster from multiple device clusters such as bedroom, living room, and kitchen, and further determines the first device 506, Send the start command to the air conditioner in the bedroom. After the air conditioner is started, get the control response of the start of the air conditioner, and send it to the application program of user A through the wireless network, so that user A knows that the air conditioner in the bedroom is turned on successfully, as well as the temperature and mode of the turn on. In order to facilitate the user to carry out the next step of control, for example, after the user receives the instruction to turn on the air conditioner, he further controls the smart window to close.
通过本申请提供的实施例,响应于第一控制指令,获取第一控制指令中携带的设备标识信息;从物联应用程序关联的多个设备集群中,确定出与设备标识信息匹配的对象设备集群,通过设备标签确定匹配对象设备集群,进而达到了快速准确的匹配设备集群的目的,从而实现了提高匹配设备效率的技术效果。Through the embodiment provided by this application, in response to the first control instruction, obtain the device identification information carried in the first control instruction; from the multiple device clusters associated with the IoT application program, determine the object device that matches the device identification information Cluster, through the device label to determine the matching target device cluster, and then achieve the purpose of quickly and accurately matching the device cluster, thereby achieving the technical effect of improving the efficiency of matching devices.
作为一种可选的方案,响应于第一控制指令,获取第一控制指令中携带的设备标识信息,包括以下至少之一;As an optional solution, in response to the first control instruction, acquiring device identification information carried in the first control instruction includes at least one of the following;
响应于第一控制指令,获取第一控制指令中携带的MAC地址;In response to the first control instruction, acquire the MAC address carried in the first control instruction;
响应于第一控制指令,获取第一控制指令中携带的产品序列号。In response to the first control instruction, the product serial number carried in the first control instruction is acquired.
可选地,在本实施例中,MAC地址可以但不限于为适配器地址或适配器标识符,专注于数据链路层,将一个数据帧从一个节点传送到相同链路的另一个节点;产品序列号为用一个唯一的代码定义企业生产的每一个产品,其中代码可以根据预定义的编码规则自动生成,也可以手工创建,可以但不限于作用在于产品进程的控制、生产质量管理、物料库存的追踪、产品售后服务等。Optionally, in this embodiment, the MAC address can be, but not limited to, an adapter address or an adapter identifier, focusing on the data link layer, and transmitting a data frame from one node to another node of the same link; product sequence The number is to use a unique code to define each product produced by the enterprise. The code can be automatically generated according to the predefined coding rules or manually created. It can be used but not limited to the control of the product process, production quality management, and material inventory. Tracking, product after-sales service, etc.
通过本申请提供的实施例,响应于第一控制指令,获取第一控制指令中携带的MAC地址;响应于第一控制指令,获取第一控制指令中携带的产品序列号,进而达到了提高获取控制指令直接性的目的,从而实现了提高控制的准确性的技术效果。Through the embodiment provided by this application, in response to the first control command, the MAC address carried in the first control command is obtained; in response to the first control command, the product serial number carried in the first control command is obtained, thereby achieving improved acquisition The purpose of the directness of the control instruction, thereby achieving the technical effect of improving the accuracy of the control.
作为一种可选的方案,在在获取到第一控制指令的第一控制响应的情况下,将第一控制响应转发至对象账号的客户端之后,方法还包括;As an optional solution, after the first control response of the first control instruction is obtained, after forwarding the first control response to the client of the target account, the method further includes;
获取对象账号与网关设备之间的匹配关系,并将匹配关系存储至数据库中。Obtain the matching relationship between the object account and the gateway device, and store the matching relationship in the database.
可选地,在本实施例中,获取对象设备与网关设备的信息,判断在数据库中是否存在与之对应的匹配关系,若不存在则通过无线网络搜索上述网关设备的地址并保存匹配关系至数据库,若数据库中已存在匹配关系,可以直接将控制指令转发至网关设备。可以但不限于将用户的历史匹配信息记录在服务器中,在对象设备和网关设备建立连接时可以与历史记录结合便于直接匹配。Optionally, in this embodiment, the information of the object device and the gateway device is obtained, and it is judged whether there is a corresponding matching relationship in the database. If not, the address of the above-mentioned gateway device is searched through the wireless network and the matching relationship is saved to Database, if there is already a matching relationship in the database, the control instruction can be directly forwarded to the gateway device. It may be but not limited to record the user's historical matching information in the server, and it may be combined with the historical record to facilitate direct matching when the object device and the gateway device establish a connection.
通过本申请提供的实施例,获取对象账号与网关设备之间的匹配关系,并将匹配关系存储至数据库中,进而达到了提高匹配效率的目的,从而实现了提高控制效率的技术效果。Through the embodiments provided in this application, the matching relationship between the target account and the gateway device is obtained, and the matching relationship is stored in the database, thereby achieving the purpose of improving matching efficiency, thereby achieving the technical effect of improving control efficiency.
作为一种可选的方案,在获取对象账号与网关设备之间的匹配关系,并将匹配关系存储至数据库中之后,方法还包括;As an optional solution, after acquiring the matching relationship between the object account and the gateway device and storing the matching relationship in the database, the method further includes;
S1,响应于对象账号在物联应用程序上触发的第二控制指令,从数据库中确定出与对象账号之间具有匹配关系的网关设备;S1, in response to the second control instruction triggered by the object account on the IoT application program, determine the gateway device that has a matching relationship with the object account from the database;
S2,将第二控制指令转发至网关设备,以使网关设备建立与第二设备之间的临时通信连接,并通过与第二设备之间的临时通信连接传输第二控制指令,对第二设备进行控制;S2, forwarding the second control instruction to the gateway device, so that the gateway device establishes a temporary communication connection with the second device, and transmits the second control instruction through the temporary communication connection with the second device, to the second device to control;
S3,在获取到第二控制指令的第二控制响应的情况下,将第二控制响应转发至对象账号的客户端。S3. Forward the second control response to the client of the target account if the second control response of the second control instruction is acquired.
可选地,在本实施例中,第二控制设备为除第一设备之外另外的设备,这里不做多余限定,第二控制指令为控制指令的其中之一。Optionally, in this embodiment, the second control device is another device except the first device, which is not limited herein, and the second control instruction is one of the control instructions.
需要说明的是,响应于对象账号在物联应用程序上触发的第二控制指令,从数据库中确定出与对象账号之间具有匹配关系的网关设备;将第二控制指令转发至网关设备,以使网关设备建立与第二设备之间的临时通信连接,并通过与第二设备之间的临时通信连接传输第二控制指令,对第二设备进行控制;在获取到第二控制指令的第二控制响应的情况下,将第二控制响应转发至对象账号的客户端。提高再次建立通信连接的便利性的有益效果。It should be noted that, in response to the second control instruction triggered by the object account on the IoT application, the gateway device that has a matching relationship with the object account is determined from the database; the second control instruction is forwarded to the gateway device to Make the gateway device establish a temporary communication connection with the second device, and transmit the second control instruction through the temporary communication connection with the second device to control the second device; In the case of the control response, the second control response is forwarded to the client of the target account. An advantageous effect of improving the convenience of establishing a communication connection again.
进一步举例说明,可选的例如用户A在首次通过物联应用程序向家庭内的网关设备发送控制指令时,云平台从数据库中判断用户A账号与网关设备的信息不能在该数据库中查询到,读取控制指令中的Mac地址,并通过无线网络确定该网关设备的地址,向该网关设备发送第一控制指令,在用户A再次向该网关设备发送控制指令时,云平台从数据库中读取用户A的账号与网关设备之间的匹配关系,将第二控制指令直接发送至上述网关设备。To further illustrate, optionally, for example, when user A sends a control command to the gateway device in the home through the Internet of Things application program for the first time, the cloud platform judges from the database that the information of user A's account and the gateway device cannot be queried in the database, Read the Mac address in the control command, determine the address of the gateway device through the wireless network, send the first control command to the gateway device, and when user A sends the control command to the gateway device again, the cloud platform reads the address from the database. The matching relationship between the account of user A and the gateway device directly sends the second control instruction to the gateway device.
通过本申请提供的实施例,响应于对象账号在物联应用程序上触发的第二控制指令,从数据库中确定出与对象账号之间具有匹配关系的网关设备;将第二控制指令转发至网关设备,以使网关设备建立与第二设备之间的临时通信连接,并通过与第二设备之间的临时通信连接传输第二控制指令,对第二设备进行控制;在获取到第二控制指令的第二控制响应的情况下,将第二控制响应转发至对象账号的客户端,进而达到了结合历史匹配记录提高再次匹配的效率的目的,从而实现了提高匹配效率的技术效果。Through the embodiment provided by this application, in response to the second control instruction triggered by the object account on the IoT application program, the gateway device that has a matching relationship with the object account is determined from the database; the second control instruction is forwarded to the gateway device, so that the gateway device establishes a temporary communication connection with the second device, and transmits the second control instruction through the temporary communication connection with the second device to control the second device; after obtaining the second control instruction In the case of the second control response, the second control response is forwarded to the client of the target account, thereby achieving the purpose of improving the efficiency of re-matching in combination with historical matching records, thereby achieving the technical effect of improving matching efficiency.
为方便理解,将报表方法应用在具体的设备控制场景中:For the convenience of understanding, the report method is applied to specific device control scenarios:
可选的例如图6所示,整个远程控制系统由手机APP、云平台、支持BLE和WIFI的网关设备以及智能家电设备组成;具体的例如图7所示,手机连接无线网络,手机APP702通过WIFI协议,将控制指令发送到云平台704;云平台704根据收到的控制指令中的智能家电设备708的MAC地址以及产品序列号,通过无线网络发送基于WIFI协议的控制指令给网关设备706。网关设备706收到WIFI控制命令后,主动扫描智能家电设备708的BLE蓝牙广播后,主动和智能家电设备建立BLE蓝牙连接后,发送BLE控制命令给智能家电设备708;智能家电设备708收到网关设备706发送的BLE控制命令后,响应控制命令并发送BLE控制命令响应结果给网关设备706;网关设备706收到控制响应后,发送WIFI控制响应给云平704台;云平704台发送WIFI控制响应给手机APP702;手机APP702根据WIFI控制响应显示远程控制结果;Optional example, as shown in Figure 6, the entire remote control system is composed of mobile phone APP, cloud platform, gateway device supporting BLE and WIFI, and smart home appliances; specific example, as shown in Figure 7, the mobile phone is connected to the wireless network, and the mobile phone APP702 passes WIFI According to the protocol, the control command is sent to the
可以理解的是,在本申请的具体实施方式中,涉及到用户信息等相关的数据,当本申请以上实施例运用到具体产品或技术中时,需要获得用户许可或者同意,且相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准。It can be understood that in the specific implementation of this application, related data such as user information is involved. When the above embodiments of this application are applied to specific products or technologies, it is necessary to obtain user permission or consent, and the collection of relevant data , use and processing need to comply with relevant laws, regulations and standards of relevant countries and regions.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Depending on the application, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by this application.
根据本申请实施例的另一个方面,还提供了一种用于实施上述设备控制方法的设备控制装置。如图8所示,该装置包括:According to another aspect of the embodiments of the present application, an equipment control device for implementing the above equipment control method is also provided. As shown in Figure 8, the device includes:
第一确定单元802,用于响应于对象账号在物联应用程序上触发的第一控制指令,从物联应用程序关联的多个设备集群中,确定出与对象账号匹配的对象设备集群,其中,第一控制指令用于指示控制第一设备,设备集群为由多个互相关联的设备组成的集群,对象设备集群包括第一设备;The first determining
第一连接单元804,用于将第一控制指令转发至对象设备集群中的网关设备,以使网关设备建立与第一设备之间的临时通信连接,并通过临时通信连接传输第一控制指令,对第一设备进行控制;The
第一响应单元806,用于在获取到第一控制指令的第一控制响应的情况下,将第一控制响应转发至对象账号的客户端,其中,对象账号的客户端上安装有物联应用程序。The
可选地,在本实施例中,上述设备控制方法可以但不限于应用在智能家居控制场景下,随着计算机和互联网的发展,人们对家居的智能化要求越来越高,而现有的智能家电设备都支持BLE蓝牙,用户手机与智能家电BLE蓝牙连接后,可以通过手机在很短距离内实现家电的远程控制,受限于蓝牙传输距离的限制,无法真正实现智能家电随时随地的远程控制。Optionally, in this embodiment, the above-mentioned device control method can be applied, but not limited to, to smart home control scenarios. With the development of computers and the Internet, people have higher and higher requirements for smart homes, and the existing Smart home appliances support BLE Bluetooth. After the user's mobile phone is connected to the smart home appliance BLE Bluetooth, the remote control of the home appliance can be realized within a short distance through the mobile phone. Limited by the limitation of the Bluetooth transmission distance, it is impossible to truly realize the remote control of smart home appliances anytime and anywhere. control.
使用WIFI技术可以实现远程控制,但是当需要进行控制的智能设备较多时,即控制单位为智能设备集群时,无法保证设备集群中的每一设备都进行准确的控制,即无法保证控制的可靠性,本申请通过网关设备利用WIFI和BLE蓝牙技术组成一个系统,实现随时随地的智能家电的远程控制,又可以保证百分百的控制,保证了控制的可靠性,从而提高了控制效率。Remote control can be realized by using WIFI technology, but when there are many smart devices that need to be controlled, that is, when the control unit is a smart device cluster, it cannot guarantee that each device in the device cluster can be accurately controlled, that is, the reliability of the control cannot be guaranteed , this application uses WIFI and BLE Bluetooth technology to form a system through the gateway device to realize the remote control of smart home appliances anytime and anywhere, and can guarantee 100% control and reliability of control, thereby improving control efficiency.
可选地,在本实施例中,物联应用程序为按照网络协议将物理设备与互联网连接以实现对设备的智能化管理的应用程序,可以但不限于为手机APP、电脑网页等;第一设备可以为设备集群中的一个智能家电设备,可以但不限于智能空调、智能洗衣机、智能热水器等;设备集群由多个互相关联的设备组成的集群,设备集群可以但不限于根据不同应用场景配置不同的集群标签,例如由智能电视、智能空调、智能扫地机器人组成的标签为“客厅”的设备集群;第一控制指令为对象账号在物联应用程序上触发的用于指示控制第一设备的指令,触发第一控制指令的方式可以但不限于为使用屏幕触控触发、声音声控触发、震动触发等方式,触发第一控制指令的方式还可以根据距离信息触发控制指令,例如该物联应用程序被允许获取用户手机的GPS位置信息和预设位置信息,当该用户手机位置距离预设位置达到预设距离时,自动触发控制指令,例如用户A预设在距离家1公里时开启空调,超过1公里时关闭空调,以提高控制触发方式的多样性。Optionally, in this embodiment, the IoT application program is an application program that connects the physical device to the Internet according to the network protocol to realize intelligent management of the device, and may be, but not limited to, a mobile phone APP, a computer web page, etc.; the first The device can be a smart home appliance in the device cluster, which can be but not limited to smart air conditioners, smart washing machines, smart water heaters, etc.; the device cluster is composed of multiple interconnected devices, and the device cluster can be configured according to different application scenarios Different cluster labels, for example, a device cluster labeled "living room" composed of smart TVs, smart air conditioners, and smart sweeping robots; the first control instruction is an instruction to control the first device triggered by the object account on the Internet of Things application. Instructions, the way to trigger the first control instruction can be but not limited to use screen touch trigger, voice voice trigger, vibration trigger, etc. The way to trigger the first control instruction can also trigger the control instruction according to the distance information, such as the Internet of Things application The program is allowed to obtain the GPS location information and preset location information of the user's mobile phone. When the user's mobile phone location reaches the preset distance from the preset location, the control command is automatically triggered. Turn off the air conditioner when exceeding 1 km to increase the diversity of control trigger methods.
可选地,在本实施例中,网关设备为接受到控制指令后,主动扫描周围设备的蓝牙广播,和设备建立蓝牙连接后,根据第一控制指令的内容发送控制命令给第一设备,网关设备接收到第一设备反馈的第一控制响应后,将第一控制响应转发至对象账号的物联应用程序中,网关设备可以但不限于安置在路由器上、智能音箱、门锁上等等;临时通信连接主要指通过蓝牙进行近距离短时间的数据连接、通信链接;第一控制响应为第一设备接受到控制指令后做出的响应,可以但不限于反馈给网关设备执行成功或者执行失败的结果信息;临时通信连接为进行的短时间的通信连接,可以但不限于通过蓝牙实现的短时间近距离通信连接。Optionally, in this embodiment, after receiving the control instruction, the gateway device actively scans the Bluetooth broadcasts of surrounding devices, and after establishing a Bluetooth connection with the device, sends a control command to the first device according to the content of the first control instruction. After the device receives the first control response fed back by the first device, it forwards the first control response to the IoT application of the target account. The gateway device can be but not limited to be placed on a router, a smart speaker, a door lock, etc.; Temporary communication connection mainly refers to the short-distance short-distance data connection and communication link through Bluetooth; the first control response is the response made by the first device after receiving the control command, which can be, but not limited to, fed back to the gateway device for successful or failed execution The result information; the temporary communication connection is a short-term communication connection, which can be but not limited to a short-term short-distance communication connection through Bluetooth.
可选地,在本实施例中,网关设备获取设备集群的设备信息,网关设备将设备集群的设备信息,发送给对象账号的物联应用程序中,设备信息包括设备的产品序列号,可用于响应的控制指令、设备名称等。Optionally, in this embodiment, the gateway device obtains the device information of the device cluster, and the gateway device sends the device information of the device cluster to the IoT application of the object account. The device information includes the product serial number of the device, which can be used to The corresponding control command, device name, etc.
需要说明的是,响应于对象账号在物联应用程序上触发的第一控制指令,从物联应用程序关联的多个设备集群中,确定出与对象账号匹配的对象设备集群,其中,第一控制指令用于指示控制第一设备,设备集群为由多个互相关联的设备组成的集群,对象设备集群包括第一设备;将第一控制指令转发至对象设备集群中的网关设备,以使网关设备建立与第一设备之间的临时通信连接,并通过临时通信连接传输第一控制指令,对第一设备进行控制;在获取到第一控制指令的第一控制响应的情况下,将第一控制响应转发至对象账号的客户端,其中,对象账号的客户端上安装有物联应用程序。起到提高设备控制可靠性的有益效果。It should be noted that, in response to the first control instruction triggered by the object account on the Internet of Things application, the object device cluster matching the object account is determined from the multiple device clusters associated with the Internet of Things application, wherein the first The control instruction is used to instruct to control the first device, the device cluster is a cluster composed of a plurality of interrelated devices, and the target device cluster includes the first device; the first control command is forwarded to the gateway device in the target device cluster, so that the gateway The device establishes a temporary communication connection with the first device, and transmits the first control instruction through the temporary communication connection to control the first device; when the first control response of the first control instruction is obtained, the first The control response is forwarded to the client of the target account, wherein the IoT application is installed on the client of the target account. It has the beneficial effect of improving the reliability of equipment control.
通过本申请提供的实施例,响应于对象账号在物联应用程序上触发的第一控制指令,从物联应用程序关联的多个设备集群中,确定出与对象账号匹配的对象设备集群,其中,第一控制指令用于指示控制第一设备,设备集群为由多个互相关联的设备组成的集群,对象设备集群包括第一设备;将第一控制指令转发至对象设备集群中的网关设备,以使网关设备建立与第一设备之间的临时通信连接,并通过临时通信连接传输第一控制指令,对第一设备进行控制;在获取到第一控制指令的第一控制响应的情况下,将第一控制响应转发至对象账号的客户端,其中,对象账号的客户端上安装有物联应用程序。通过网关设备利用WIFI和BLE蓝牙技术组成一个系统,进而实现随时随地的智能家电的远程控制,在实现多设备集群的远距离控制的基础上进一步保证了控制的可靠性,从而实现了提高设备控制效率的技术效果,进而解决了设备控制效率较低的技术问题。Through the embodiments provided in this application, in response to the first control instruction triggered by the object account on the IoT application, the object device cluster matching the object account is determined from the multiple device clusters associated with the IoT application, where , the first control instruction is used to instruct to control the first device, the device cluster is a cluster composed of a plurality of interrelated devices, and the target device cluster includes the first device; the first control command is forwarded to the gateway device in the target device cluster, Make the gateway device establish a temporary communication connection with the first device, and transmit the first control instruction through the temporary communication connection to control the first device; when the first control response of the first control instruction is obtained, The first control response is forwarded to the client of the target account, wherein the IoT application is installed on the client of the target account. The gateway device uses WIFI and BLE Bluetooth technology to form a system, and then realizes the remote control of smart home appliances anytime and anywhere, and further ensures the reliability of the control on the basis of realizing the remote control of multi-device clusters, thereby realizing the improvement of device control. The technical effect of efficiency, and then solve the technical problem of low equipment control efficiency.
具体实施例可以参考上述设备控制装置中所示示例,本示例中在此不再赘述。For specific embodiments, reference may be made to the example shown in the device control apparatus above, and details are not described in this example here.
作为一种可选的方案,上述第一连接单元,还包括:第一转发模块,用于通过无线网络将第一控制指令转发至对象设备集群中的网关设备。As an optional solution, the above-mentioned first connection unit further includes: a first forwarding module, configured to forward the first control instruction to the gateway device in the target device cluster through a wireless network.
具体实施例可以参考上述设备控制方法中所示示例,本示例中在此不再赘述。For specific embodiments, reference may be made to the example shown in the above-mentioned device control method, and details will not be repeated here in this example.
作为一种可选的方案,上述第一确定单元,在响应于对象账号在物联应用程序上触发的第一控制指令,从物联应用程序关联的多个设备集群中,确定出与对象账号匹配的对象设备集群之前,包括:第一获取单元,用于通过无线网络获取对象账号的客户端发送的第一控制指令;或,第二获取单元,用于通过红外线发射光获取对象账号的客户端所在的终端设备发送的第一控制指令;或,第三获取单元,用于通过蓝牙信号获取对象账号的客户端所在的终端设备发送的第一控制指令。As an optional solution, the above-mentioned first determining unit, in response to the first control instruction triggered by the object account on the IoT application, determines the number of devices associated with the object account from the multiple device clusters associated with the IoT application Before the matching target device cluster, it includes: a first acquisition unit, used to acquire the first control instruction sent by the client of the target account through the wireless network; or, a second acquisition unit, used to acquire the client of the target account through infrared light emission The first control instruction sent by the terminal device where the client is located; or, the third obtaining unit is configured to obtain the first control instruction sent by the terminal device where the client of the target account is located through a Bluetooth signal.
具体实施例可以参考上述设备控制装置中所示示例,本示例中在此不再赘述。For specific embodiments, reference may be made to the example shown in the device control apparatus above, and details are not described in this example here.
作为一种可选的方案,上述第一确定单元,包括:第一获取模块,用于响应于第一控制指令,获取第一控制指令中携带的设备标识信息;第一确定模块,用于从物联应用程序关联的多个设备集群中,确定出与设备标识信息匹配的对象设备集群。As an optional solution, the above-mentioned first determination unit includes: a first acquisition module, configured to acquire the device identification information carried in the first control instruction in response to the first control instruction; Among the multiple device clusters associated with the IoT application, determine the target device cluster that matches the device identification information.
具体实施例可以参考上述设备控制装置中所示示例,本示例中在此不再赘述。For specific embodiments, reference may be made to the example shown in the device control apparatus above, and details are not described in this example here.
作为一种可选的方案,上述第一获取模块,包括以下至少之一:第一响应子模块,用于响应于第一控制指令,获取第一控制指令中携带的MAC地址;第二响应子模块,用于响应于第一控制指令,获取第一控制指令中携带的产品序列号。As an optional solution, the above-mentioned first obtaining module includes at least one of the following: a first response submodule, configured to obtain the MAC address carried in the first control instruction in response to the first control instruction; the second response submodule A module, configured to respond to the first control instruction and acquire the product serial number carried in the first control instruction.
具体实施例可以参考上述设备控制装置中所示示例,本示例中在此不再赘述。For specific embodiments, reference may be made to the example shown in the device control apparatus above, and details are not described in this example here.
作为一种可选的方案,上述第一响应单元,在获取到第一控制指令的第一控制响应的情况下,将第一控制响应转发至对象账号的客户端之后,方法还包括:第四获取单元,用于获取对象账号与网关设备之间的匹配关系,并将匹配关系存储至数据库中。As an optional solution, after the above-mentioned first response unit obtains the first control response of the first control instruction, after forwarding the first control response to the client of the target account, the method further includes: the fourth The acquiring unit is configured to acquire the matching relationship between the target account and the gateway device, and store the matching relationship in a database.
具体实施例可以参考上述设备控制装置中所示示例,本示例中在此不再赘述。For specific embodiments, reference may be made to the example shown in the device control apparatus above, and details are not described in this example here.
作为一种可选的方案,上述第四获取单元,在获取对象账号与网关设备之间的匹配关系,并将匹配关系存储至数据库中之后,方法还包括:第二确定单元,用于响应于对象账号在物联应用程序上触发的第二控制指令,从数据库中确定出与对象账号之间具有匹配关系的网关设备;第二连接单元,用于将第二控制指令转发至网关设备,以使网关设备建立与第二设备之间的临时通信连接,并通过与第二设备之间的临时通信连接传输第二控制指令,对第二设备进行控制;第二响应单元,用于在获取到第二控制指令的第二控制响应的情况下,将第二控制响应转发至对象账号的客户端。As an optional solution, after the fourth acquiring unit acquires the matching relationship between the target account and the gateway device and stores the matching relationship in the database, the method further includes: a second determining unit, configured to respond to The second control instruction triggered by the object account on the Internet of Things application determines the gateway device that has a matching relationship with the object account from the database; the second connection unit is configured to forward the second control instruction to the gateway device to Make the gateway device establish a temporary communication connection with the second device, and transmit a second control instruction through the temporary communication connection with the second device to control the second device; the second response unit is used to obtain In the case of the second control response of the second control instruction, the second control response is forwarded to the client of the target account.
具体实施例可以参考上述设备控制装置中所示示例,本示例中在此不再赘述。For specific embodiments, reference may be made to the example shown in the device control apparatus above, and details are not described in this example here.
根据本申请实施例的又一个方面,还提供了一种用于实施上述设备控制方法的电子设备,如图9所示,该电子设备包括存储器902和处理器904,该存储器902中存储有计算机程序,该处理器904被设置为通过计算机程序执行上述任一项方法实施例中的步骤。According to yet another aspect of the embodiment of the present application, there is also provided an electronic device for implementing the above-mentioned device control method. As shown in FIG. 9 , the electronic device includes a
可选地,在本实施例中,上述电子设备可以位于计算机网络的多个网络设备中的至少一个网络设备。Optionally, in this embodiment, the foregoing electronic device may be located in at least one network device among multiple network devices in the computer network.
可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:Optionally, in this embodiment, the above-mentioned processor may be configured to execute the following steps through a computer program:
S1,响应于对象账号在物联应用程序上触发的第一控制指令,从物联应用程序关联的多个设备集群中,确定出与对象账号匹配的对象设备集群,其中,第一控制指令用于指示控制第一设备,设备集群为由多个互相关联的设备组成的集群,对象设备集群包括第一设备;S1. In response to the first control instruction triggered by the object account on the IoT application, determine the object device cluster matching the object account from the multiple device clusters associated with the IoT application, wherein the first control instruction uses For instructing and controlling the first device, the device cluster is a cluster composed of multiple interrelated devices, and the target device cluster includes the first device;
S2,将第一控制指令转发至对象设备集群中的网关设备,以使网关设备建立与第一设备之间的临时通信连接,并通过临时通信连接传输第一控制指令,对第一设备进行控制;S2. Forward the first control instruction to the gateway device in the target device cluster, so that the gateway device establishes a temporary communication connection with the first device, and transmits the first control instruction through the temporary communication connection to control the first device ;
S3,在获取到第一控制指令的第一控制响应的情况下,将第一控制响应转发至对象账号的客户端,其中,对象账号的客户端上安装有物联应用程序。S3. If the first control response of the first control instruction is obtained, forward the first control response to the client of the target account, where the client of the target account is installed with the IoT application.
可选地,本领域普通技术人员可以理解,图9所示的结构仅为示意,电子设备也可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌上电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。图9其并不对上述电子设备的结构造成限定。例如,电子设备还可包括比图9中所示更多或者更少的组件(如网络接口等),或者具有与图9所示不同的配置。Optionally, those of ordinary skill in the art can understand that the structure shown in FIG. Internet Devices, MID), PAD and other terminal equipment. FIG. 9 does not limit the structure of the above-mentioned electronic equipment. For example, the electronic device may also include more or fewer components than those shown in FIG. 9 (such as a network interface, etc.), or have a different configuration from that shown in FIG. 9 .
其中,存储器902可用于存储软件程序以及模块,如本申请实施例中的设备控制方法和装置对应的程序指令/模块,处理器904通过运行存储在存储器902内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的设备控制方法。存储器902可包括高速随机存储器,还可以包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器902可进一步包括相对于处理器904远程设置的存储器,这些远程存储器可以通过网络连接至终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。其中,存储器902具体可以但不限于用于存储第一控制指令、第二控制指令等信息。作为一种示例,如图9所示,上述存储器902中可以但不限于包括上述设备控制装置中的第一确定单元802、第一连接单元804、第一响应单元806。此外,还可以包括但不限于上述设备控制装置中的其他模块单元,本示例中不再赘述。Among them, the
可选地,上述的传输装置906用于经由一个网络接收或者发送数据。上述的网络具体实例可包括有线网络及无线网络。在一个实例中,传输装置906包括一个网络适配器(Network Interface Controller,NIC),其可通过网线与其他网络设备与路由器相连从而可与互联网或局域网进行通讯。在一个实例中,传输装置1906为射频(Radio Frequency,RF)模块,其用于通过无线方式与互联网进行通讯。Optionally, the above-mentioned
此外,上述电子设备还包括:显示器908,用于显示上述第一控制指令、第二控制指令等信息;和连接总线910,用于连接上述电子设备中的各个模块部件。In addition, the electronic device further includes: a
在其他实施例中,上述终端设备或者服务器可以是一个分布式系统中的一个节点,其中,该分布式系统可以为区块链系统,该区块链系统可以是由该多个节点通过网络通信的形式连接形成的分布式系统。其中,节点之间可以组成点对点(Peer To Peer,简称P2P)网络,任意形式的计算设备,比如服务器、终端等电子设备都可以通过加入该点对点网络而成为该区块链系统中的一个节点。In other embodiments, the above-mentioned terminal device or server may be a node in a distributed system, wherein the distributed system may be a block chain system, and the block chain system may be composed of the multiple nodes communicating through the network A distributed system formed by connecting in the form of . Among them, nodes can form a peer-to-peer (Peer To Peer, referred to as P2P) network, and any form of computing equipment, such as servers, terminals and other electronic devices, can become a node in the blockchain system by joining the peer-to-peer network.
根据本申请的一个方面,提供了一种计算机程序产品,该计算机程序产品包括计算机程序/指令,该计算机程序/指令包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分从网络上被下载和安装,和/或从可拆卸介质被安装。在该计算机程序被中央处理器执行时,执行本申请实施例提供的各种功能。According to one aspect of the present application, a computer program product is provided, the computer program product includes computer programs/instructions, and the computer programs/instructions include program codes for executing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network via the communication part, and/or installed from a removable medium. When the computer program is executed by the central processing unit, various functions provided by the embodiments of the present application are executed.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present application are for description only, and do not represent the advantages and disadvantages of the embodiments.
需要说明的是,电子设备的计算机系统仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。It should be noted that the computer system of the electronic device is only an example, and should not limit the functions and scope of use of the embodiments of the present application.
计算机系统包括中央处理器(Central Processing Unit,CPU),其可以根据存储在只读存储器(Read-Only Memory,ROM)中的程序或者从存储部分加载到随机访问存储器(Random Access Memory,RAM)中的程序而执行各种适当的动作和处理。在随机访问存储器中,还存储有系统操作所需的各种程序和数据。中央处理器、在只读存储器以及随机访问存储器通过总线彼此相连。输入/输出接口(Input/Output接口,即I/O接口)也连接至总线。The computer system includes a central processing unit (Central Processing Unit, CPU), which can be loaded into a random access memory (Random Access Memory, RAM) according to a program stored in a read-only memory (Read-Only Memory, ROM) or from a storage section Various appropriate actions and processing are performed by the program. In random access memory, various programs and data necessary for system operation are also stored. The central processing unit, the read-only memory and the random-access memory are connected to each other through a bus. An input/output interface (Input/Output interface, ie, an I/O interface) is also connected to the bus.
以下部件连接至输入/输出接口:包括键盘、鼠标等的输入部分;包括诸如阴极射线管(Cathode Ray Tube,CRT)、液晶显示器(Liquid Crystal Display,LCD)等以及扬声器等的输出部分;包括硬盘等的存储部分;以及包括诸如局域网卡、调制解调器等的网络接口卡的通信部分。通信部分经由诸如因特网的网络执行通信处理。驱动器也根据需要连接至输入/输出接口。可拆卸介质,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器上,以便于从其上读出的计算机程序根据需要被安装入存储部分。The following components are connected to the input/output interface: an input section including a keyboard, a mouse, etc.; an output section including a cathode ray tube (Cathode Ray Tube, CRT), a liquid crystal display (Liquid Crystal Display, LCD), etc., and a speaker; including a hard disk etc.; and a communication section including network interface cards such as LAN cards, modems, etc. The communication section performs communication processing via a network such as the Internet. Drivers are also connected to the input/output interface as required. A removable medium, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive as necessary so that a computer program read therefrom is installed into the storage section as necessary.
特别地,根据本申请的实施例,各个方法流程图中所描述的过程可以被实现为计算机软件程序。例如,本申请的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分从网络上被下载和安装,和/或从可拆卸介质被安装。在该计算机程序被中央处理器执行时,执行本申请的系统中限定的各种功能。In particular, according to the embodiments of the present application, the processes described in the respective method flowcharts can be implemented as computer software programs. For example, the embodiments of the present application include a computer program product, which includes a computer program carried on a computer-readable medium, where the computer program includes program codes for executing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network via the communication part, and/or installed from a removable medium. When the computer program is executed by the central processing unit, various functions defined in the system of the present application are performed.
根据本申请的一个方面,提供了一种计算机可读存储介质,计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述各种可选实现方式中提供的方法。According to one aspect of the present application, a computer-readable storage medium is provided. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above-mentioned various possible operations. Choose the method provided in the implementation.
可选地,在本实施例中,上述计算机可读的存储介质可以被设置为存储用于执行以下步骤的计算机程序:Optionally, in this embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for performing the following steps:
S1,响应于对象账号在物联应用程序上触发的第一控制指令,从物联应用程序关联的多个设备集群中,确定出与对象账号匹配的对象设备集群,其中,第一控制指令用于指示控制第一设备,设备集群为由多个互相关联的设备组成的集群,对象设备集群包括第一设备;S1. In response to the first control instruction triggered by the object account on the IoT application, determine the object device cluster matching the object account from the multiple device clusters associated with the IoT application, wherein the first control instruction uses For instructing and controlling the first device, the device cluster is a cluster composed of multiple interrelated devices, and the target device cluster includes the first device;
S2,将第一控制指令转发至对象设备集群中的网关设备,以使网关设备建立与第一设备之间的临时通信连接,并通过临时通信连接传输第一控制指令,对第一设备进行控制;S2. Forward the first control instruction to the gateway device in the target device cluster, so that the gateway device establishes a temporary communication connection with the first device, and transmits the first control instruction through the temporary communication connection to control the first device ;
S3,在获取到第一控制指令的第一控制响应的情况下,将第一控制响应转发至对象账号的客户端,其中,对象账号的客户端上安装有物联应用程序。S3. If the first control response of the first control instruction is obtained, forward the first control response to the client of the target account, where the client of the target account is installed with the IoT application.
可选地,在本实施例中,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令终端设备相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:闪存盘、只读存储器(Read-Only Memory,ROM)、随机存取器(Random Access Memory,RAM)、磁盘或光盘等。Optionally, in this embodiment, those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing hardware related to the terminal device through a program, and the program can be stored in a In the computer-readable storage medium, the storage medium may include: a flash disk, a read-only memory (Read-Only Memory, ROM), a random access device (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present application are for description only, and do not represent the advantages and disadvantages of the embodiments.
上述实施例中的集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在上述计算机可读取的存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在存储介质中,包括若干指令用以使得一台或多台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例方法的全部或部分步骤。If the integrated units in the above embodiments are realized in the form of software function units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium. Several instructions are included to enable one or more computer devices (which may be personal computers, servers or network devices, etc.) to execute all or part of the steps of the methods in the various embodiments of the present application.
在本申请的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments of the present application, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的客户端,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed client can be implemented in other ways. Wherein, the device embodiments described above are only illustrative, such as the division of units, which is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into Another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of units or modules may be in electrical or other forms.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。A unit described as a separate component may or may not be physically separated, and a component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
以上仅是本申请的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。The above are only the preferred embodiments of the present application. It should be pointed out that for those of ordinary skill in the art, without departing from the principle of the application, some improvements and modifications can also be made, and these improvements and modifications should also be considered as For the scope of protection of this application.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210871056.9ACN115356937A (en) | 2022-07-22 | 2022-07-22 | Equipment control method, device, storage medium and electronic device |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210871056.9ACN115356937A (en) | 2022-07-22 | 2022-07-22 | Equipment control method, device, storage medium and electronic device |
| Publication Number | Publication Date |
|---|---|
| CN115356937Atrue CN115356937A (en) | 2022-11-18 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210871056.9APendingCN115356937A (en) | 2022-07-22 | 2022-07-22 | Equipment control method, device, storage medium and electronic device |
| Country | Link |
|---|---|
| CN (1) | CN115356937A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116170254A (en)* | 2022-12-30 | 2023-05-26 | 中国电信股份有限公司 | Conversion method, device and electronic equipment for gateway command |
| CN116546060A (en)* | 2023-04-21 | 2023-08-04 | 慧灵科技(深圳)有限公司 | Internet of things system architecture, instruction distribution method, operation method, equipment and medium |
| WO2024113584A1 (en)* | 2022-11-29 | 2024-06-06 | 海尔优家智能科技(北京)有限公司 | Method for controlling device, and storage medium and electronic apparatus |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2007143901A1 (en)* | 2006-05-25 | 2007-12-21 | China Mobile Communications Corporation | Remote control system and control method for information household electrical appliances |
| JP2015050766A (en)* | 2013-09-03 | 2015-03-16 | パナソニック インテレクチュアル プロパティ コーポレーション オブアメリカPanasonic Intellectual Property Corporation of America | Device control method, audio device control system, and cooking device |
| CN205229700U (en)* | 2015-12-08 | 2016-05-11 | 深圳众乐智府科技有限公司 | Smart home system |
| CN109218098A (en)* | 2018-09-20 | 2019-01-15 | 武汉指针科技有限公司 | A kind of connection and configuration method of home gateway |
| CN109831362A (en)* | 2019-03-29 | 2019-05-31 | 深圳创维-Rgb电子有限公司 | A kind of electronic equipment control method and system |
| US20200099576A1 (en)* | 2018-09-21 | 2020-03-26 | Silicon Laboratories Inc. | Group Association Fallback For Improved Network Resilience |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2007143901A1 (en)* | 2006-05-25 | 2007-12-21 | China Mobile Communications Corporation | Remote control system and control method for information household electrical appliances |
| JP2015050766A (en)* | 2013-09-03 | 2015-03-16 | パナソニック インテレクチュアル プロパティ コーポレーション オブアメリカPanasonic Intellectual Property Corporation of America | Device control method, audio device control system, and cooking device |
| CN205229700U (en)* | 2015-12-08 | 2016-05-11 | 深圳众乐智府科技有限公司 | Smart home system |
| CN109218098A (en)* | 2018-09-20 | 2019-01-15 | 武汉指针科技有限公司 | A kind of connection and configuration method of home gateway |
| US20200099576A1 (en)* | 2018-09-21 | 2020-03-26 | Silicon Laboratories Inc. | Group Association Fallback For Improved Network Resilience |
| CN109831362A (en)* | 2019-03-29 | 2019-05-31 | 深圳创维-Rgb电子有限公司 | A kind of electronic equipment control method and system |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2024113584A1 (en)* | 2022-11-29 | 2024-06-06 | 海尔优家智能科技(北京)有限公司 | Method for controlling device, and storage medium and electronic apparatus |
| CN116170254A (en)* | 2022-12-30 | 2023-05-26 | 中国电信股份有限公司 | Conversion method, device and electronic equipment for gateway command |
| CN116546060A (en)* | 2023-04-21 | 2023-08-04 | 慧灵科技(深圳)有限公司 | Internet of things system architecture, instruction distribution method, operation method, equipment and medium |
| Publication | Publication Date | Title |
|---|---|---|
| CN115356937A (en) | Equipment control method, device, storage medium and electronic device | |
| CN107101326B (en) | Method and system for controlling intelligent air conditioner based on mobile terminal and mobile terminal | |
| CN105471686B (en) | Terminal control method, device and system | |
| WO2020223854A1 (en) | Device network configuration method and apparatus, electronic device and storage medium | |
| WO2019109660A1 (en) | Apparatus control device, method, and apparatus having same | |
| CN110839271B (en) | Equipment connection method, system, platform and corresponding equipment | |
| CN108377202A (en) | The distribution method, apparatus and system of smart machine | |
| CN111372222A (en) | Device connection method, system and corresponding terminal device and server | |
| CN113872782B (en) | Device networking method, control device and Internet of Things system | |
| CN105187480B (en) | Profile acquisition method, apparatus and system | |
| CN111741509A (en) | Network distribution method and device, storage medium and processor | |
| CN110784367A (en) | Network distribution method and system of intelligent equipment | |
| CN108234562B (en) | Equipment control method, control equipment and controlled equipment | |
| CN113794996B (en) | Device communication, device control method, device, electronic device, and storage medium | |
| US10489055B2 (en) | Z-wave controller shift in thermostats | |
| CN111478816A (en) | Method, system, device and medium for configuring Zigbee and ZigBee sub-equipment | |
| CN115175152B (en) | Smart device binding method and device, storage medium and electronic device | |
| CN111010322B (en) | Information configuration method and device, electronic equipment and storage medium | |
| CN115309062B (en) | Control method and device of equipment, storage medium and electronic device | |
| CN116634464A (en) | Equipment distribution network method and device, storage medium and electronic equipment | |
| CN116506245A (en) | Device networking method and system | |
| CN115002206A (en) | Control method and device of intelligent equipment, storage medium and electronic device | |
| CN114900826A (en) | Device binding method and device, storage medium and electronic device | |
| CN114826901B (en) | Device networking method and device, storage medium and electronic device | |
| CN115720192A (en) | Equipment network distribution method and system, storage medium, and electronic device |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |