[go: up one dir, main page]

CN114422559A - Device control method and device, electronic device and storage medium - Google Patents

Device control method and device, electronic device and storage medium Download PDF

Info

Publication number
CN114422559A
CN114422559A CN202111682832.2A CN202111682832A CN114422559A CN 114422559 A CN114422559 A CN 114422559A CN 202111682832 A CN202111682832 A CN 202111682832A CN 114422559 A CN114422559 A CN 114422559A
Authority
CN
China
Prior art keywords
control instruction
target
target device
information
control
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.)
Pending
Application number
CN202111682832.2A
Other languages
Chinese (zh)
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.)
Shenzhen Haiyi Zhixin Technology Co Ltd
Original Assignee
Shenzhen Haiyi Zhixin Technology Co 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 Shenzhen Haiyi Zhixin Technology Co Ltd filed Critical Shenzhen Haiyi Zhixin Technology Co Ltd
Priority to CN202111682832.2A priority Critical patent/CN114422559A/en
Publication of CN114422559A publication Critical patent/CN114422559A/en
Priority to PCT/CN2022/113942 priority patent/WO2023124136A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/80Homes; Buildings
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/30Control
    • G16Y40/35Management of things, i.e. controlling in accordance with a policy or in order to achieve specified objectives
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72415User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories for remote control of appliances

Landscapes

  • Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Business, Economics & Management (AREA)
  • Signal Processing (AREA)
  • Architecture (AREA)
  • Economics (AREA)
  • Civil Engineering (AREA)
  • Structural Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Development Economics (AREA)
  • Accounting & Taxation (AREA)
  • Human Computer Interaction (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Automatic Disk Changers (AREA)

Abstract

The embodiment of the invention relates to a method and a device for controlling equipment, electronic equipment and a storage medium, wherein the method comprises the following steps: generating a control instruction of a target device set in a device cluster, wherein the target device set comprises a first device and a second device; sending the control instruction to the first device in the target device set, so that when the first device receives the control instruction, the control instruction is sent to the second device in the target device set in a unicast and multicast manner; by adopting two modes for simultaneous transmission, the second equipment in the equipment set can be ensured to quickly receive the control instruction, and the omission of the control instruction is avoided, so that the quick response among multiple equipment is realized.

Description

设备的控制方法、装置、电子设备及存储介质Device control method, device, electronic device and storage medium

技术领域technical field

本发明实施例涉及通信领域,尤其涉及一种设备的控制方法、装置、电子设备及存储介质。Embodiments of the present invention relate to the field of communications, and in particular, to a device control method, an apparatus, an electronic device, and a storage medium.

背景技术Background technique

随着物联网技术的应用日益广泛,物联网云平台可以实现设备的接入、控制和管理。通过将设备接入物联网云平台,实现对设备的远程控制和数据采集。With the increasing application of IoT technology, the IoT cloud platform can realize the access, control and management of devices. By connecting the device to the IoT cloud platform, remote control and data collection of the device can be realized.

相关技术中,设备之间缺乏联动,在需要同时控制多个设备时,设备之间的响应延迟较大,导致多设备之间的同步控制效果较差。In the related art, there is a lack of linkage between devices, and when multiple devices need to be controlled at the same time, the response delay between the devices is relatively large, resulting in a poor synchronization control effect between the multiple devices.

发明内容SUMMARY OF THE INVENTION

鉴于此,为解决上述技术问题或部分技术问题,本发明实施例提供一种设备的控制方法、装置、电子设备及存储介质。In view of this, in order to solve the above technical problems or some of the technical problems, embodiments of the present invention provide a device control method, an apparatus, an electronic device, and a storage medium.

第一方面,本发明实施例提供一种设备的控制方法,包括:In a first aspect, an embodiment of the present invention provides a method for controlling a device, including:

针对设备集群中的目标设备集合,生成所述目标设备集合的控制指令,所述目标设备集合中包括第一设备和第二设备;For a target device set in the device cluster, generating a control instruction for the target device set, where the target device set includes a first device and a second device;

将所述控制指令发送给所述目标设备集合中的所述第一设备,以使所述第一设备在接收到所述控制指令时,将所述控制指令采用单播和组播的方式同时发送给所述目标设备集合中的所述第二设备。Sending the control instruction to the first device in the target device set, so that when the first device receives the control instruction, the control instruction is simultaneously sent by unicast and multicast. sent to the second device in the target device set.

在一个可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:

在所述第一设备与所述第二设备之间的网络状态检测过程中,判断所述第二设备是否接收到所述第一设备发送的网络检测消息;During the network state detection process between the first device and the second device, determine whether the second device has received a network detection message sent by the first device;

在确定所述第二设备未接收到所述网络检测消息时,从所述第二设备中重新确定第一设备,以对所述目标设备集合中的第一设备进行更新。When it is determined that the second device has not received the network detection message, the first device is re-determined from the second device to update the first device in the target device set.

在一个可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:

在确定所述第一设备未接收到第二设备返回的所述网络检测消息的响应消息时,对未返回所述响应消息的所述第二设备的设备状态进行更新。When it is determined that the first device has not received the response message of the network detection message returned by the second device, the device status of the second device that has not returned the response message is updated.

在一个可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:

按照预设规则对所述设备集群中的设备进行分组,得到多个设备集合;Group the devices in the device cluster according to preset rules to obtain multiple device sets;

确定每个所述设备集合中对应的第一设备和第二设备。A corresponding first device and a second device in each of the device sets are determined.

在一个可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:

针对所述设备集群中的任一所述设备集合,将目标设备信息发送至所述设备集合中的所述第一设备和所述第二设备,以使所述第一设备和所述第二设备对所述目标设备信息进行存储,所述目标设备信息包括所述设备集合中全部设备的信息。For any one of the device sets in the device cluster, send target device information to the first device and the second device in the device set, so that the first device and the second device The device stores the target device information, where the target device information includes information of all devices in the device set.

在一个可能的实施方式中,所述将所述控制指令采用单播和组播的方式同时发送给所述目标设备集合中的所述第二设备,包括:In a possible implementation manner, the sending the control instruction to the second device in the target device set at the same time in a unicast and multicast manner includes:

所述第一设备查询所述目标设备信息;the first device queries the target device information;

基于所述目标设备信息将所述控制指令采用单播和组播的方式发送给所述目标设备集合中的第二设备。Based on the target device information, the control instruction is sent to the second device in the target device set in a unicast and multicast manner.

在一个可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:

在所述第一设备执行所述控制指令后,接收所述第一设备返回的用于指示执行所述控制指令的第一执行结果;After the first device executes the control instruction, receiving a first execution result returned by the first device for instructing to execute the control instruction;

在所述第二设备执行所述控制指令后,接收所述第二设备返回的用于指示执行所述控制指令的第二执行结果;After the second device executes the control instruction, receiving a second execution result returned by the second device for instructing the execution of the control instruction;

基于所述第一执行结果和所述第二执行结果,对所述目标设备集合的当前状态信息进行更新。Based on the first execution result and the second execution result, the current state information of the target device set is updated.

第二方面,本发明实施例提供一种设备的控制装置,包括:In a second aspect, an embodiment of the present invention provides a device control device, including:

生成模块,用于针对设备集群中的目标设备集合,生成所述目标设备集合的控制指令,所述目标设备集合中包括第一设备和第二设备;a generating module, configured to generate a control instruction of the target device set for the target device set in the device cluster, and the target device set includes a first device and a second device;

发送模块,用于将所述控制指令发送给所述目标设备集合中的所述第一设备,以使所述第一设备在接收到所述控制指令时,将所述控制指令采用单播和组播的方式同时发送给所述目标设备集合中的所述第二设备。A sending module, configured to send the control instruction to the first device in the target device set, so that when the first device receives the control instruction, the control instruction adopts unicast and The multicast method is simultaneously sent to the second device in the target device set.

第三方面,本发明实施例提供一种电子设备,包括:处理器和存储器,所述处理器用于执行所述存储器中存储的设备的控制程序,以实现第一方面中任一项所述的设备的控制方法。In a third aspect, an embodiment of the present invention provides an electronic device, including: a processor and a memory, where the processor is configured to execute a control program of the device stored in the memory, so as to implement any one of the first aspects. Device control method.

第四方面,本发明实施例提供一种存储介质,所述存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实第一方面中任一项所述的设备的控制方法。In a fourth aspect, an embodiment of the present invention provides a storage medium, where the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement any one of the first aspect. A control method of the described device.

本发明实施例提供的设备的控制方法,通过针对设备集群中的目标设备集合,生成所述目标设备集合的控制指令,所述目标设备集合中包括第一设备和第二设备;将所述控制指令发送给所述目标设备集合中的所述第一设备,以使所述第一设备在接收到所述控制指令时,将所述控制指令采用单播和组播的方式同时发送给所述目标设备集合中的所述第二设备;采用两种方式同发可保证设备集合内的第二设备既快速收到控制指令,又避免控制指令的遗漏,进而实现多设备之间的快速响应。The device control method provided by the embodiment of the present invention generates a control instruction of the target device set for a target device set in a device cluster, where the target device set includes a first device and a second device; sending an instruction to the first device in the target device set, so that when the first device receives the control instruction, it sends the control instruction to the The second device in the target device set; the simultaneous sending of the two methods can ensure that the second device in the device set not only receives the control command quickly, but also avoids the omission of the control command, thereby realizing fast response among multiple devices.

附图说明Description of drawings

图1为本发明实施例提供的一种设备的控制方法的应用场景图;FIG. 1 is an application scenario diagram of a method for controlling a device provided by an embodiment of the present invention;

图2为本发明实施例提供的一种设备的控制方法的流程示意图;2 is a schematic flowchart of a method for controlling a device according to an embodiment of the present invention;

图3为本发明实施例提供的另一种设备的控制方法的流程示意图;3 is a schematic flowchart of another method for controlling a device according to an embodiment of the present invention;

图4为本发明实施例提供的又一种设备的控制方法的流程示意图;4 is a schematic flowchart of another method for controlling a device according to an embodiment of the present invention;

图5为本发明实施例提供的一种设备的控制装置的结构示意图;FIG. 5 is a schematic structural diagram of a control device of a device provided by an embodiment of the present invention;

图6为本发明实施例提供的一种的电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

为便于对本发明实施例的理解,下面将结合附图以具体实施例做进一步的解释说明,实施例并不构成对本发明实施例的限定。In order to facilitate the understanding of the embodiments of the present invention, further explanation will be given below with specific embodiments in conjunction with the accompanying drawings, and the embodiments do not constitute limitations to the embodiments of the present invention.

图1为本发明实施例提供的一种设备的控制方法的应用场景图,如图1所示,具体包括:FIG. 1 is an application scenario diagram of a method for controlling a device provided by an embodiment of the present invention, as shown in FIG. 1 , which specifically includes:

设备集群中包括多个设备集合,每个设备集合中包括多个设备,且每个设备集合中包括第一设备和第二设备,第一设备可以理解为该设备集合中的主设备,第二设备可以理解为该设备集合中的从设备;对于每个设备集合中的主设备的数量为一个,从设备的数量可以包括一个或多个。A device cluster includes multiple device sets, each device set includes multiple devices, and each device set includes a first device and a second device, the first device can be understood as the master device in the device set, and the second device A device may be understood as a slave device in the device set; the number of master devices in each device set is one, and the number of slave devices may include one or more.

进一步地,该设备集群通过外部的电子设备进行控制,该电子设备对设备集群中的一个或多个设备集合同时进行控制,在需要对某个目标设备集合时,向该目标设备集合中的第一设备发送控制指令,该目标设备集合中的第一设备在接收到控制指令时,采用单播和组播的形式将该控制指令发送给同一设备集合中的第二设备,采用单播的方式发送控制指令可以使第二设备快速收到该控制指令,采用组播的方式可使同一设备集合中的第二设备全部收到该控制指令,也即控制指令全部覆盖第二设备,采用两种方式同发可保证设备集合内的第二设备既快速收到控制指令,又避免控制指令的遗漏。Further, the device cluster is controlled by an external electronic device, and the electronic device controls one or more device sets in the device cluster at the same time. When a device sends a control command, when the first device in the target device set receives the control command, it uses unicast and multicast to send the control command to the second device in the same device set, using unicast mode Sending the control command can make the second device receive the control command quickly, and the multicast method can enable all the second devices in the same device set to receive the control command, that is, the control command covers all the second device. The simultaneous sending method can ensure that the second device in the device set not only receives the control command quickly, but also avoids the omission of the control command.

进一步地,在第二设备第一次收到控制指令时(该控制指令可以是第一设备采用单播的形式发送的),执行该控制指令;在第二设备第二次收到控制指令时(第一设备采用组播的形式发送的),判断已执行或正执行的控制指令是否包含该第二次收到的控制指令,若包括,则忽略该控制指令;若不包括,则执行该控制指令。Further, when the second device receives the control command for the first time (the control command may be sent by the first device in the form of unicast), execute the control command; when the second device receives the control command for the second time (sent by the first device in the form of multicast), determine whether the executed or executing control command includes the second received control command, if it does, ignore the control command; if not, execute the control command Control instruction.

在本发明实施例的一可选方案中,针对设备集群中设备集合的划分,可以由外部设备执行划分,或在部署设备集群中的设备时执行划分,在设备部署完成时同时完成设备集合的划分。In an optional solution of the embodiment of the present invention, for the division of the device set in the device cluster, the division may be performed by an external device, or the division is performed when the devices in the device cluster are deployed, and the device set is simultaneously completed when the device deployment is completed. Divide.

在一示例中,在外部设备上安装应用程序(APP),并在该应用程序中添加已部署的设备,对设备完成分组,每个小组的设备统称为设备集合,多个设备集合中构成设备集群,并在每个设备集合中确定主设备(第一设备)和从设备(第二设备)。In an example, an application (APP) is installed on an external device, and deployed devices are added to the application, and the devices are grouped. The devices of each group are collectively referred to as device sets, and multiple device sets constitute devices. Cluster, and determine the master device (first device) and the slave device (second device) in each device set.

进一步地,按照预设规则对设备集群中的设备进行分组,得到多个设备集合,该预设规则可以是:根据设备的部署位置进行分组,还可以根据设备的标识(例如,设备ID、设备类型)进行分组等等。Further, the devices in the device cluster are grouped according to a preset rule to obtain a plurality of device sets. The preset rule may be: grouping according to the deployment position of the device, or according to the identification of the device (for example, the device ID, device type) to group and so on.

在一示例中,在设备部署过程中,完成设备集合的构建,以及确定每个集合中的第一设备和第二设备,设备集合中的第一设备将该设备集合中的设备信息发送至电子设备,由电子设备对设备集群的信息进行存储,便于后续通过电子设备对设备集群进行控制。In an example, during the device deployment process, the construction of the device set is completed, and the first device and the second device in each set are determined, and the first device in the device set sends the device information in the device set to the electronic device. For equipment, the information of the equipment cluster is stored by the electronic equipment, so as to facilitate the subsequent control of the equipment cluster through the electronic equipment.

在本发明实施例的一可选方案中,在每个设备集合确定后,该设备集合中的每个设备(第一设备或第二设备)均存储由该设备集合中除本身之外的其它设备信息,该设备信息可以包括:IP地址、MAC地址、设备ID、序列号和响应动作规则等信息。In an optional solution of the embodiment of the present invention, after each device set is determined, each device (the first device or the second device) in the device set stores the data stored in the device set except itself. Device information, the device information may include information such as IP address, MAC address, device ID, serial number, and response action rules.

例如,设备集合A包括:设备1(第一设备)、设备2(第二设备)、设备3(第二设备)和设备4(第二设备);设备1本地存储有设备2-4的设备信息、设备2本地存储有设备1、3-4的设备信息、设备3本地存储有设备1-2、4的设备信息、设备4本地存储有设备1-3的设备信息。For example, device set A includes: device 1 (first device), device 2 (second device), device 3 (second device) and device 4 (second device); device 1 locally stores devices of devices 2-4 Information, device 2 locally stores device information of devices 1 and 3-4, device 3 locally stores device information of devices 1-2 and 4, and device 4 locally stores device information of devices 1-3.

在本发明实施例的一可选方案中,在设备集合中的某一设备(第一设备或第二设备)得到设备信息发生变化时(例如,IP地址发生变化),该设备将变化后的设备信息采用单播和组播的方式发送给该设备集合内的其它设备,以使其它设备在接收到变化后的设备信息对本地存储的设备信息进行更新。In an optional solution of this embodiment of the present invention, when a device in the device set (the first device or the second device) obtains a change in device information (for example, an IP address changes), the device will The device information is sent to other devices in the device set by means of unicast and multicast, so that other devices can update the locally stored device information after receiving the changed device information.

在本发明实施例的一可选方案中,电子设备中还存储有设备集群中每个设备集合对应的设备信息,便于在通过电子设备对设备集合进行控制时,查询该设备信息准确的找到待控制的目标设备集群。In an optional solution of the embodiment of the present invention, the electronic device also stores device information corresponding to each device set in the device cluster, so that when the device set is controlled by the electronic device, the device information can be queried to accurately find the device to be Controlled target device cluster.

在本实施例中,涉及的电子设备可以是智能遥控器、智能手机、智能手环等设备,设备集群中的设备可以是灯具、摄像头等设备,该设备集群中的设备可以包括一种或多种。In this embodiment, the electronic devices involved may be smart remote controllers, smart phones, smart bracelets and other devices, the devices in the device cluster may be lamps, cameras and other devices, and the devices in the device cluster may include one or more kind.

在一示例中,可将某一建筑区域内安装的全部灯具作为设备集群,还可以将某一建筑区域内安装的全部灯具+全部摄像头作为设备集群。In an example, all lamps installed in a certain building area may be used as a device cluster, and all lamps and all cameras installed in a certain building area may also be used as a device cluster.

图2为本发明实施例提供的一种设备的控制方法的流程示意图,如图2所示,该方法具体包括:FIG. 2 is a schematic flowchart of a method for controlling a device according to an embodiment of the present invention. As shown in FIG. 2 , the method specifically includes:

S21、针对设备集群中的目标设备集合,生成所述目标设备集合的控制指令,所述目标设备集合中包括第一设备和第二设备。S21. For a target device set in the device cluster, generate a control instruction for the target device set, where the target device set includes a first device and a second device.

在本实施例中,当需要对设备集群中的目标设备集合进行控制时,通过电子设备本地存储的设备信息查询对应的目标设备集合,针对该目标设备集合生成对应的控制指令。In this embodiment, when the target device set in the device cluster needs to be controlled, the corresponding target device set is queried through the device information locally stored in the electronic device, and the corresponding control instruction is generated for the target device set.

在该目标设备集合中包括第一设备和第二设备,第一设备可以理解为目标设备集合中的主设备,用于与电子设备进行数据交互,第二设备可以理解为从设备,也即可接收由第一设备转发的控制指令。The target device set includes a first device and a second device, the first device can be understood as a master device in the target device set, used for data interaction with the electronic device, and the second device can be understood as a slave device, that is, A control instruction forwarded by the first device is received.

S22、将所述控制指令发送给所述目标设备集合中的所述第一设备,以使所述第一设备在接收到所述控制指令时,将所述控制指令采用单播和组播的方式同时发送给所述目标设备集合中的所述第二设备。S22. Send the control instruction to the first device in the target device set, so that when the first device receives the control instruction, the control instruction adopts unicast and multicast The mode is simultaneously sent to the second device in the target device set.

在本实施例中,电子设备将控制指令发送给目标设备集合中的第一设备,第一设备根据本地存储的目标设备集合对应的设备信息将该控制指令采用单播和组播的方式同时发送给目标设备集合中的第二设备。In this embodiment, the electronic device sends the control command to the first device in the target device set, and the first device sends the control command in unicast and multicast modes according to the device information corresponding to the target device set stored locally. To the second device in the target device set.

进一步地,在第一设备完成控制指令的发送后,第一设备执行该控制指令,以及第二设备在接收到第二控制指令时,第二设备执行该控制指令,以实现电子设备对目标设备集合中的第一设备和第二设备的联动控制。Further, after the first device completes sending the control command, the first device executes the control command, and when the second device receives the second control command, the second device executes the control command, so as to realize the electronic device to the target device. Linkage control of the first device and the second device in the set.

采用单播的方式发送控制指令可以使第二设备快速收到该控制指令,采用组播的方式可使同一设备集合中的第二设备全部收到该控制指令,也即控制指令全部覆盖第二设备。Sending the control command in the unicast mode can make the second device receive the control command quickly, and using the multicast mode can enable all the second devices in the same device set to receive the control command, that is, all the control commands cover the second device. equipment.

本发明实施例提供的设备的控制方法,通过针对设备集群中的目标设备集合,生成所述目标设备集合的控制指令,所述目标设备集合中包括第一设备和第二设备;将所述控制指令发送给所述目标设备集合中的所述第一设备,以使所述第一设备在接收到所述控制指令时,将所述控制指令采用单播和组播的方式同时发送给所述目标设备集合中的所述第二设备;采用两种方式同发可保证设备集合内的第二设备既快速收到控制指令,又避免控制指令的遗漏,进而实现多设备之间的快速响应。The device control method provided by the embodiment of the present invention generates a control instruction of the target device set for a target device set in a device cluster, where the target device set includes a first device and a second device; sending an instruction to the first device in the target device set, so that when the first device receives the control instruction, it sends the control instruction to the The second device in the target device set; the simultaneous sending of the two methods can ensure that the second device in the device set not only receives the control command quickly, but also avoids the omission of the control command, thereby realizing fast response among multiple devices.

以下以电子设备为智能手机为例,设备为智能灯具为例对本实施例的设备的控制方法进行介绍。The following describes the control method of the device in this embodiment by taking the electronic device as an example of a smart phone and the device as an example of a smart lamp.

该智能灯具被部署于建筑区域,部署位置可以是建筑区域的门前位置、车库位置、围墙位置、后门位置等,该智能灯具上设置有WI-FI模块,通过该WI-FI模块可以使智能灯具连接于无线访问接入点(AP)。The smart lighting is deployed in the building area, and the deployment position can be the front door position, garage position, fence position, rear door position, etc. The luminaire is connected to a wireless access point (AP).

在智能灯具连接无线访问接入点后,通过智能手机上安装的APP添加上述智能灯具,并在该APP中绑定上述智能灯具,在该APP的展示界面展示已绑定的全部智能灯具,对上述智能灯具进行分组,分组的预设规则可以是根据智能灯具的部署位置进行分组(例如,门前位置区域内的智能灯具划分为设备集合1、车库位置区域内的智能灯具划分为设备集合2等等),在分组完成后,从每个分组内选一设备作为主设备(第一设备),该组内的其余设备为从设备(第二设备);分组的预设规则还可以是根据智能灯具的设备类型进行分组(例如,将某一位置安装的20W的多个智能灯具划分为设备集合1、另一位置安装的10W的多个智能灯具划分为设备集合2等等)。After the smart lamps are connected to the wireless access point, add the above smart lamps through the APP installed on the smartphone, and bind the above smart lamps in the APP, and display all the bound smart lamps on the display interface of the APP. The above-mentioned smart lamps are grouped, and the preset rules for grouping can be grouped according to the deployment position of the smart lamps (for example, the smart lamps in the front door area are divided into device set 1, and the smart lamps in the garage location area are divided into device set 2. etc.), after the grouping is completed, select a device from each group as the master device (first device), and the rest of the devices in the group are slave devices (second devices); the preset rules for grouping can also be based on The device types of the smart luminaires are grouped (eg, multiple smart luminaires of 20W installed in one location are divided into device set 1, multiple smart luminaires of 10W installed in another location are divided into device set 2, etc.).

在本发明实施例的一可选方案中,针对所述设备集群中的任一所述设备集合,将目标设备信息发送至所述设备集合中的所述第一设备和所述第二设备,以使所述第一设备和所述第二设备对所述目标设备信息进行存储,所述目标设备信息包括所述设备集合中全部设备的信息。In an optional solution of the embodiment of the present invention, for any of the device sets in the device cluster, target device information is sent to the first device and the second device in the device set, so that the first device and the second device store the target device information, where the target device information includes information of all devices in the device set.

进一步地,通过APP将同一分组内的目标设备信息同步至每台智能灯具,以使每台智能灯具存储该分内其它智能灯具的设备信息。Further, the target device information in the same group is synchronized to each smart light fixture through the APP, so that each smart light fixture stores the device information of other smart light fixtures in the group.

相应地,目标设备信息可以是:设备IP地址、MAC地址、设备ID、序列号和响应动作规则等信息,响应动作规则可以是设备在执行控制指令时的规则,例如,在智能灯具接收到开启指令时,响应动作规则可以是该组内的智能灯具按照1-N的顺序依次执行开启。Correspondingly, the target device information can be: device IP address, MAC address, device ID, serial number, response action rules and other information, and the response action rules can be the rules when the device executes the control command, for example, when the smart lamp receives When the command is given, the response action rule may be that the smart lamps in the group are turned on in sequence from 1 to N.

图3为本发明实施例提供的另一种设备的控制方法的流程示意图,如图3所示,该方法具体包括:FIG. 3 is a schematic flowchart of another device control method provided by an embodiment of the present invention. As shown in FIG. 3 , the method specifically includes:

S31、针对所述设备集群中的任一所述设备集合,所述设备集合内的第一设备向所述设备集合内的第二设备发送网络检测消息,以执行所述第一设备与所述第二设备之间的网络状态检测。S31. For any of the device sets in the device cluster, a first device in the device set sends a network detection message to a second device in the device set, so as to execute the first device and the device set. Network status detection between second devices.

S32、在确定所述第二设备接收到所述网络检测消息时,第二设备向第一设备返回的所述网络检测消息的响应消息,则确定所述第一设备与所述第二设备之间的网络状态正常。S32. When it is determined that the second device has received the network detection message, the second device returns a response message to the network detection message to the first device, then determine the relationship between the first device and the second device. The network status between them is normal.

S33、在确定所述第一设备未接收到第二设备返回的所述网络检测消息的响应消息时,对未返回所述响应消息的所述第二设备的设备状态进行更新。S33. When it is determined that the first device has not received the response message of the network detection message returned by the second device, update the device status of the second device that has not returned the response message.

S34、在确定所述第二设备未接收到所述网络检测消息时,从所述第二设备中重新确定第一设备,以对所述目标设备集合中的第一设备进行更新。S34. When it is determined that the second device has not received the network detection message, re-determine the first device from the second device to update the first device in the target device set.

在本实施例中,为保证设备响应的准确性和及时性,每个设备集合中的第一设备执行网络状态检测的步骤,预先确定一时间阈值(例如,2min),每间隔该时间阈值,第一设备执行一次网络状态检测,检测的具体过程可以是:第一设备周期性的向设备集合内的第二设备发送网络检测消息,以使第二设备响应于网络检测消息返回响应消息,以此来判断第一设备与第二设备之间的网络可达性。In this embodiment, in order to ensure the accuracy and timeliness of the device response, the first device in each device set performs the step of network state detection, and a time threshold (for example, 2min) is pre-determined, and at each interval of the time threshold, The first device performs a network state detection, and the specific process of the detection may be as follows: the first device periodically sends a network detection message to the second device in the device set, so that the second device returns a response message in response to the network detection message, to This is to determine the network reachability between the first device and the second device.

进一步地,在确定第二设备接收到网络检测消息时,第二设备向第一设备返回的所述网络检测消息的响应消息,则确定所述第一设备与所述第二设备之间的网络状态正常,也即,第一设备与该第二设备之间的网络正常。Further, when it is determined that when the second device receives the network detection message, the second device returns a response message to the network detection message to the first device, then determine the network between the first device and the second device. The status is normal, that is, the network between the first device and the second device is normal.

在确定所述第一设备未接收到第二设备返回的所述网络检测消息的响应消息时,也即,第一设备与第二设备之间的网络不可达(第一设备与该第二设备之间的网络异常),对未返回所述响应消息的所述第二设备的设备状态进行更新(对第一设备本地存储的用于表征第二设备的设备状态表进行更新),如,将该第二设备的设备状态由在线变更为离线。When it is determined that the first device has not received the response message of the network detection message returned by the second device, that is, the network between the first device and the second device is unreachable (the first device and the second device network exception), update the device status of the second device that does not return the response message (update the device status table stored locally by the first device and used to represent the second device), for example, The device status of the second device is changed from online to offline.

相应地,在第一设备与第二设备之间的网络不可达时,可理解为第二设备此时处于离线状态,在第二设备重新在线时(也即在下一网络状态检测周期内向第一设备返回响应消息),再次对所述第二设备的设备状态进行更新,如,将该第二设备的设备状态由在离变更为在线。Correspondingly, when the network between the first device and the second device is unreachable, it can be understood that the second device is in an offline state at this time, and when the second device is back online (that is, in the next network state detection cycle, the first device is sent to the first device). The device returns a response message), and updates the device state of the second device again, for example, changing the device state of the second device from offline to online.

在确定第二设备在预设时间内(该预设时间可以大于等于时间阈值)未接收到所述网络检测消息时,则确定第一设备离线,从所述第二设备中重新确定第一设备,以对所述目标设备集合中的第一设备进行更新。When it is determined that the second device has not received the network detection message within a preset time (the preset time may be greater than or equal to a time threshold), it is determined that the first device is offline, and the first device is re-determined from the second device , to update the first device in the target device set.

在本发明实施例的一可选方案中,在多个第二设备在预设时间内均未接收到所述网络检测消息时,则确定第一设备离线,通过多对个第二设备进行判断,可提高对第一设备网络状态判断的准确性,避免出现误判。In an optional solution of the embodiment of the present invention, when multiple second devices do not receive the network detection message within a preset time, it is determined that the first device is offline, and the judgment is made by multiple pairs of second devices , which can improve the accuracy of judging the network state of the first device and avoid misjudgment.

进一步地,在从第二设备中重新确定第一设备后,被重新确定的第一设备对本地存储的设备信息进行更新,并将更新后的设备信息同步至同一设备集合中的第二设备,以及电子设备。Further, after re-determining the first device from the second device, the re-determined first device updates the locally stored device information, and synchronizes the updated device information to the second device in the same device set, and electronic equipment.

在本发明实施例的一可选方案中,在处于离线的第一设备重新在线时,可将重新在线的第一设备重新确定为该设备集合中的第一设备,或者,还可以将重新在线的第一设备设置为第二设备,在执行完上述操作后,同步更新设备信息。In an optional solution of this embodiment of the present invention, when the first device that is offline is brought back online, the first device that is brought back online may be re-determined as the first device in the device set, or it may also be re-connected The first device is set as the second device, and after the above operations are performed, the device information is updated synchronously.

在本发明实施例的一可选方案中,在设备集合中的第一设备或第二设备的设备信息发生变化时,设备信息发生变化的第一设备或第二设备将最新的设备信息同步至该设备集合内的其它设备,以使其它设备对本地存储的设备信息进行更新。In an optional solution of this embodiment of the present invention, when the device information of the first device or the second device in the device set changes, the first device or the second device whose device information changes synchronizes the latest device information to other devices in the device set, so that other devices can update the locally stored device information.

图4为本发明实施例提供的又一种设备的控制方法的流程示意图,如图4所示,该方法具体包括:FIG. 4 is a schematic flowchart of another device control method provided by an embodiment of the present invention. As shown in FIG. 4 , the method specifically includes:

S41、针对设备集群中的目标设备集合,生成所述目标设备集合的控制指令。S41. For a target device set in the device cluster, generate a control instruction for the target device set.

S42、所述第一设备查询所述目标设备信息。S42. The first device queries the target device information.

S43、基于所述目标设备信息将所述控制指令采用单播和组播的方式发送给所述目标设备集合中的第二设备。S43. Based on the target device information, send the control instruction to the second device in the target device set in a unicast and multicast manner.

在本实施例中,目标设备信息为目标设备集合中全部设备(第一设备和第二设备)的设备信息,S41-S43与图2中的S21-S22类似,为简洁描述,在此不作赘述。In this embodiment, the target device information is the device information of all the devices (the first device and the second device) in the target device set, and S41-S43 are similar to S21-S22 in FIG. 2 , and are not repeated here for the sake of brevity. .

在本发明实施例的一可选方案中,控制指令可以是用于控制目标设备集合内全部设备的控制指令,还可以是用于控制目标设备集合内部分设备的控制指令。In an optional solution of the embodiment of the present invention, the control instruction may be a control instruction for controlling all devices in the target device set, or may be a control instruction for controlling some devices in the target device set.

在控制指令为控制目标设备集合内部分设备时,在该控制指令中携带有执行该控制指令的设备标识(例如,设备ID),第一设备在接收到第一控制指令时,从第一控制指令中解析得到设备标识,从目标设备信息中挑选与该设备标识对应的第二设备,并采用单播和组播的方式发送给该设备标识对应的第二设备。When the control command is a part of the device in the control target device set, the control command carries the device identifier (for example, the device ID) that executes the control command, and when the first device receives the first control command, The device identification is obtained by parsing the instruction, the second device corresponding to the device identification is selected from the target device information, and the second device corresponding to the device identification is sent to the second device corresponding to the device identification by means of unicast and multicast.

S44、在所述第一设备执行所述控制指令后,接收所述第一设备返回的用于指示执行所述控制指令的第一执行结果。S44. After the first device executes the control instruction, receive a first execution result returned by the first device and used to instruct execution of the control instruction.

S45、在所述第二设备执行所述控制指令后,接收所述第二设备返回的用于指示执行所述控制指令的第二执行结果。S45. After the second device executes the control instruction, receive a second execution result returned by the second device and used to instruct the execution of the control instruction.

S46、基于所述第一执行结果和所述第二执行结果,对所述目标设备集合的当前状态信息进行更新。S46. Based on the first execution result and the second execution result, update the current state information of the target device set.

在本实施例中,在第一设备和第二设备接收到控制指令时,执行该控制指令,并向电子设备发送对应的执行结果,以使电子设备更新目标设备集合对应的状态信息。In this embodiment, when the first device and the second device receive the control instruction, the control instruction is executed, and the corresponding execution result is sent to the electronic device, so that the electronic device updates the state information corresponding to the target device set.

在一示例中,在智能手机的APP上生成控制车库-智能灯具的开启指令(该操作可以语音输入或手动触发),智能手机将该控制指令发送给车库-智能灯具集合中的主设备,主设备将利用单播和组播的形式将该控制指令发送至车库-智能灯具集合中的从设备。主设备和从设备执行完该控制指令时,向智能手机发送已开启的执行结果消息,智能手机在收到执行结果消息后,将车库-智能灯具集合对应的状态信息由已关闭更新为已开启。In an example, a turn-on instruction for controlling the garage-smart lamps is generated on the APP of the smartphone (the operation can be inputted by voice or manually triggered), and the smartphone sends the control instruction to the main device in the garage-smart lamp set, the main The device will send the control command to the slave devices in the garage-smart light fixture collection in the form of unicast and multicast. When the master device and the slave device complete the execution of the control command, they will send the enabled execution result message to the smartphone. After receiving the execution result message, the smartphone will update the status information corresponding to the garage-smart lamp set from closed to open. .

本发明实施例提供的设备的控制方法,通过针对设备集群中的目标设备集合,生成所述目标设备集合的控制指令,所述目标设备集合中包括第一设备和第二设备;将所述控制指令发送给所述目标设备集合中的所述第一设备,以使所述第一设备在接收到所述控制指令时,将所述控制指令采用单播和组播的方式同时发送给所述目标设备集合中的所述第二设备;采用两种方式同发可保证设备集合内的第二设备既快速收到控制指令,又避免控制指令的遗漏,进而实现多设备之间的快速响应。The device control method provided by the embodiment of the present invention generates a control instruction of the target device set for a target device set in a device cluster, where the target device set includes a first device and a second device; sending an instruction to the first device in the target device set, so that when the first device receives the control instruction, it sends the control instruction to the The second device in the target device set; the simultaneous sending of the two methods can ensure that the second device in the device set not only receives the control command quickly, but also avoids the omission of the control command, thereby realizing fast response among multiple devices.

图5为本发明实施例提供的一种设备的控制装置的结构示意图,如图5所示,具体包括:FIG. 5 is a schematic structural diagram of a control device of a device provided by an embodiment of the present invention, as shown in FIG. 5 , which specifically includes:

生成模块51,用于针对设备集群中的目标设备集合,生成所述目标设备集合的控制指令,所述目标设备集合中包括第一设备和第二设备;A generating module 51, configured to generate a control instruction of the target device set for the target device set in the device cluster, and the target device set includes a first device and a second device;

发送模块52,用于将所述控制指令发送给所述目标设备集合中的所述第一设备,以使所述第一设备在接收到所述控制指令时,将所述控制指令采用单播和组播的方式同时发送给所述目标设备集合中的所述第二设备。A sending module 52, configured to send the control instruction to the first device in the target device set, so that when the first device receives the control instruction, the control instruction is unicast and multicast to the second device in the target device set at the same time.

本实施例提供的设备的控制装置可以是如图5中所示的设备的控制装置,可执行如图2-4中设备的控制方法的所有步骤,进而实现图2-4所示设备的控制方法的技术效果,具体请参照图2-4相关描述,为简洁描述,在此不作赘述。The device control device provided in this embodiment may be the device control device shown in FIG. 5 , and can execute all steps of the device control method shown in FIG. 2-4 , and then realize the control of the device shown in FIG. 2-4 . For the technical effect of the method, please refer to the related descriptions of FIGS. 2-4 for details. For the sake of brevity, detailed descriptions are not repeated here.

图6为本发明实施例提供的一种电子设备的结构示意图,图6所示的电子设备600包括:至少一个处理器601、存储器602、至少一个网络接口604和其他用户接口603。电子设备600中的各个组件通过总线系统605耦合在一起。可理解,总线系统605用于实现这些组件之间的连接通信。总线系统605除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图6中将各种总线都标为总线系统605。FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. The electronic device 600 shown in FIG. 6 includes: at least one processor 601 , memory 602 , at least one network interface 604 and other user interfaces 603 . The various components in electronic device 600 are coupled together by bus system 605 . It can be understood that the bus system 605 is used to implement the connection communication between these components. In addition to the data bus, the bus system 605 also includes a power bus, a control bus, and a status signal bus. However, for clarity of illustration, the various buses are labeled as bus system 605 in FIG. 6 .

其中,用户接口603可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(trackball)、触感板或者触摸屏等。Among them, the user interface 603 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad or a touch screen, etc.).

可以理解,本发明实施例中的存储器602可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data RateSDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(DirectRambus RAM,DRRAM)。本文描述的存储器602旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 602 in the embodiment of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. Wherein, the non-volatile memory may be Read-Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (Erasable PROM, EPROM), Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory. The volatile memory may be random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synch link DRAM, SLDRAM) And direct memory bus random access memory (DirectRambus RAM, DRRAM). The memory 602 described herein is intended to include, but not be limited to, these and any other suitable types of memory.

在一些实施方式中,存储器602存储了如下的元素,可执行单元或者数据结构,或者他们的子集,或者他们的扩展集:操作系统6021和应用程序6022。In some embodiments, memory 602 stores the following elements, executable units or data structures, or subsets thereof, or extended sets of them: operating system 6021 and applications 6022 .

其中,操作系统6021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序6022,包含各种应用程序,例如媒体播放器(Media Player)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序6022中。The operating system 6021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks. The application program 6022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., for implementing various application services. The program for implementing the method of the embodiment of the present invention may be included in the application program 6022 .

在本发明实施例中,通过调用存储器602存储的程序或指令,具体的,可以是应用程序6022中存储的程序或指令,处理器601用于执行各方法实施例所提供的方法步骤,例如包括:In this embodiment of the present invention, by calling the program or instruction stored in the memory 602, specifically, the program or instruction stored in the application program 6022, the processor 601 is configured to execute the method steps provided by each method embodiment, for example, including :

针对设备集群中的目标设备集合,生成所述目标设备集合的控制指令,所述目标设备集合中包括第一设备和第二设备;将所述控制指令发送给所述目标设备集合中的所述第一设备,以使所述第一设备在接收到所述控制指令时,将所述控制指令采用单播和组播的方式同时发送给所述目标设备集合中的所述第二设备。For a target device set in a device cluster, generate a control instruction of the target device set, where the target device set includes a first device and a second device; send the control instruction to the target device set the first device, so that when the first device receives the control instruction, the control instruction is simultaneously sent to the second device in the target device set in a unicast and multicast manner.

在一个可能的实施方式中,在所述第一设备与所述第二设备之间的网络状态检测过程中,判断所述第二设备是否接收到所述第一设备发送的网络检测消息;在确定所述第二设备未接收到所述网络检测消息时,从所述第二设备中重新确定第一设备,以对所述目标设备集合中的第一设备进行更新。In a possible implementation manner, during the network state detection process between the first device and the second device, determine whether the second device receives the network detection message sent by the first device; When it is determined that the second device has not received the network detection message, the first device is re-determined from the second device to update the first device in the target device set.

在一个可能的实施方式中,在确定所述第一设备未接收到第二设备返回的所述网络检测消息的响应消息时,对未返回所述响应消息的所述第二设备的设备状态进行更新。In a possible implementation manner, when it is determined that the first device has not received the response message of the network detection message returned by the second device, the device status of the second device that has not returned the response message is performed. renew.

在一个可能的实施方式中,按照预设规则对所述设备集群中的设备进行分组,得到多个设备集合;确定每个所述设备集合中对应的第一设备和第二设备。In a possible implementation manner, the devices in the device cluster are grouped according to a preset rule to obtain multiple device sets; the first device and the second device corresponding to each of the device sets are determined.

在一个可能的实施方式中,针对所述设备集群中的任一所述设备集合,将目标设备信息发送至所述设备集合中的所述第一设备和所述第二设备,以使所述第一设备和所述第二设备对所述目标设备信息进行存储,所述目标设备信息包括所述设备集合中全部设备的信息。In a possible implementation manner, for any one of the device sets in the device cluster, target device information is sent to the first device and the second device in the device set, so that the The first device and the second device store the target device information, where the target device information includes information of all devices in the device set.

在一个可能的实施方式中,所述第一设备查询所述目标设备信息;基于所述目标设备信息将所述控制指令采用单播和组播的方式发送给所述目标设备集合中的第二设备。In a possible implementation manner, the first device queries the target device information; based on the target device information, the control instruction is sent to the second device in the target device set by unicast and multicast. equipment.

在一个可能的实施方式中,在所述第一设备执行所述控制指令后,接收所述第一设备返回的用于指示执行所述控制指令的第一执行结果;在所述第二设备执行所述控制指令后,接收所述第二设备返回的用于指示执行所述控制指令的第二执行结果;基于所述第一执行结果和所述第二执行结果,对所述目标设备集合的当前状态信息进行更新。In a possible implementation manner, after the first device executes the control instruction, a first execution result returned by the first device for indicating execution of the control instruction is received; After the control instruction, receive a second execution result returned by the second device for instructing the execution of the control instruction; based on the first execution result and the second execution result, perform a The current status information is updated.

上述本发明实施例揭示的方法可以应用于处理器601中,或者由处理器601实现。处理器601可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器601中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器601可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(FieldProgrammable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件单元组合执行完成。软件单元可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器602,处理器601读取存储器602中的信息,结合其硬件完成上述方法的步骤。The methods disclosed in the above embodiments of the present invention may be applied to the processor 601 or implemented by the processor 601 . The processor 601 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above-mentioned method may be completed by an integrated logic circuit of hardware in the processor 601 or an instruction in the form of software. The above-mentioned processor 601 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA), or other possible Programming logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps, and logical block diagrams disclosed in the embodiments of the present invention can be implemented or executed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in conjunction with the embodiments of the present invention may be directly embodied as executed by a hardware decoding processor, or executed by a combination of hardware and software units in the decoding processor. The software unit may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art. The storage medium is located in the memory 602, and the processor 601 reads the information in the memory 602, and completes the steps of the above method in combination with its hardware.

可以理解的是,本文描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(ApplicationSpecific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processing,DSP)、数字信号处理设备(DSPDevice,DSPD)、可编程逻辑设备(Programmable LogicDevice,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It will be appreciated that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDevices, DSPDs), programmable logic devices (Programmable Logic Device, PLD), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), general purpose processor, controller, microcontroller, microprocessor, other electronic unit for performing the functions described in this application or in its combination.

对于软件实现,可通过执行本文所述功能的单元来实现本文所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For a software implementation, the techniques described herein may be implemented by means of units that perform the functions described herein. Software codes may be stored in memory and executed by a processor. The memory can be implemented in the processor or external to the processor.

本实施例提供的电子设备可以是如图6中所示的电子设备,可执行如图2-4中设备的控制方法的所有步骤,进而实现图2-4所示设备的控制方法的技术效果,具体请参照图2-4相关描述,为简洁描述,在此不作赘述。The electronic device provided in this embodiment may be the electronic device shown in FIG. 6 , and can execute all steps of the control method of the device shown in FIG. 2-4 , thereby realizing the technical effect of the control method of the device shown in FIG. 2-4 , please refer to the related descriptions in FIGS. 2-4 for details. For the sake of brevity, details are not repeated here.

本发明实施例还提供了一种存储介质(计算机可读存储介质)。这里的存储介质存储有一个或者多个程序。其中,存储介质可以包括易失性存储器,例如随机存取存储器;存储器也可以包括非易失性存储器,例如只读存储器、快闪存储器、硬盘或固态硬盘;存储器还可以包括上述种类的存储器的组合。The embodiment of the present invention also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. Wherein, the storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, hard disk or solid-state hard disk; the memory may also include the above-mentioned types of memory. combination.

当存储介质中一个或者多个程序可被一个或者多个处理器执行,以实现上述在设备的控制设备侧执行的设备的控制方法。When one or more programs in the storage medium can be executed by one or more processors, the above-mentioned control method of the device executed on the device side of the device is implemented.

所述处理器用于执行存储器中存储的设备的控制程序,以实现以下在设备的控制设备侧执行的设备的控制方法的步骤:The processor is used to execute the control program of the device stored in the memory, so as to realize the following steps of the control method of the device executed on the control device side of the device:

针对设备集群中的目标设备集合,生成所述目标设备集合的控制指令,所述目标设备集合中包括第一设备和第二设备;将所述控制指令发送给所述目标设备集合中的所述第一设备,以使所述第一设备在接收到所述控制指令时,将所述控制指令采用单播和组播的方式同时发送给所述目标设备集合中的所述第二设备。For a target device set in a device cluster, generate a control instruction of the target device set, where the target device set includes a first device and a second device; send the control instruction to the target device set the first device, so that when the first device receives the control instruction, the control instruction is simultaneously sent to the second device in the target device set in a unicast and multicast manner.

在一个可能的实施方式中,在所述第一设备与所述第二设备之间的网络状态检测过程中,判断所述第二设备是否接收到所述第一设备发送的网络检测消息;在确定所述第二设备未接收到所述网络检测消息时,从所述第二设备中重新确定第一设备,以对所述目标设备集合中的第一设备进行更新。In a possible implementation manner, during the network state detection process between the first device and the second device, determine whether the second device receives the network detection message sent by the first device; When it is determined that the second device has not received the network detection message, the first device is re-determined from the second device to update the first device in the target device set.

在一个可能的实施方式中,在确定所述第一设备未接收到第二设备返回的所述网络检测消息的响应消息时,对未返回所述响应消息的所述第二设备的设备状态进行更新。In a possible implementation manner, when it is determined that the first device has not received the response message of the network detection message returned by the second device, the device status of the second device that has not returned the response message is performed. renew.

在一个可能的实施方式中,按照预设规则对所述设备集群中的设备进行分组,得到多个设备集合;确定每个所述设备集合中对应的第一设备和第二设备。In a possible implementation manner, the devices in the device cluster are grouped according to a preset rule to obtain multiple device sets; the first device and the second device corresponding to each of the device sets are determined.

在一个可能的实施方式中,针对所述设备集群中的任一所述设备集合,将目标设备信息发送至所述设备集合中的所述第一设备和所述第二设备,以使所述第一设备和所述第二设备对所述目标设备信息进行存储,所述目标设备信息包括所述设备集合中全部设备的信息。In a possible implementation manner, for any one of the device sets in the device cluster, target device information is sent to the first device and the second device in the device set, so that the The first device and the second device store the target device information, where the target device information includes information of all devices in the device set.

在一个可能的实施方式中,所述第一设备查询所述目标设备信息;基于所述目标设备信息将所述控制指令采用单播和组播的方式发送给所述目标设备集合中的第二设备。In a possible implementation manner, the first device queries the target device information; based on the target device information, the control instruction is sent to the second device in the target device set by unicast and multicast. equipment.

在一个可能的实施方式中,在所述第一设备执行所述控制指令后,接收所述第一设备返回的用于指示执行所述控制指令的第一执行结果;在所述第二设备执行所述控制指令后,接收所述第二设备返回的用于指示执行所述控制指令的第二执行结果;基于所述第一执行结果和所述第二执行结果,对所述目标设备集合的当前状态信息进行更新。In a possible implementation manner, after the first device executes the control instruction, a first execution result returned by the first device and used to instruct the execution of the control instruction is received; After the control instruction, receive a second execution result returned by the second device for instructing the execution of the control instruction; based on the first execution result and the second execution result, perform a The current status information is updated.

专业人员应该还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals should be further aware that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. Interchangeability, the above description has generally described the components and steps of each example in terms of function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.

结合本文中所公开的实施例描述的方法或算法的步骤可以用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of a method or algorithm described in connection with the embodiments disclosed herein may be implemented in hardware, a software module executed by a processor, or a combination of the two. A software module can be placed in random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other in the technical field. in any other known form of storage medium.

以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments described above further describe the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above descriptions are only specific embodiments of the present invention and are not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims (10)

1.一种设备的控制方法,其特征在于,包括:1. a control method of equipment, is characterized in that, comprises: 针对设备集群中的目标设备集合,生成所述目标设备集合的控制指令,所述目标设备集合中包括第一设备和第二设备;For a target device set in the device cluster, generating a control instruction for the target device set, where the target device set includes a first device and a second device; 将所述控制指令发送给所述目标设备集合中的所述第一设备,以使所述第一设备在接收到所述控制指令时,将所述控制指令采用单播和组播的方式同时发送给所述目标设备集合中的所述第二设备。Sending the control instruction to the first device in the target device set, so that when the first device receives the control instruction, the control instruction is simultaneously sent by unicast and multicast. sent to the second device in the target device set. 2.根据权利要求1所述的方法,其特征在于,所述方法还包括:2. The method according to claim 1, wherein the method further comprises: 在所述第一设备与所述第二设备之间的网络状态检测过程中,判断所述第二设备是否接收到所述第一设备发送的网络检测消息;During the network state detection process between the first device and the second device, determine whether the second device has received a network detection message sent by the first device; 在确定所述第二设备未接收到所述网络检测消息时,从所述第二设备中重新确定第一设备,以对所述目标设备集合中的第一设备进行更新。When it is determined that the second device has not received the network detection message, the first device is re-determined from the second device to update the first device in the target device set. 3.根据权利要求2所述的方法,其特征在于,所述方法还包括:3. The method according to claim 2, wherein the method further comprises: 在确定所述第一设备未接收到所述第二设备返回的所述网络检测消息的响应消息时,对未返回所述响应消息的所述第二设备的设备状态进行更新。When it is determined that the first device has not received the response message of the network detection message returned by the second device, the device status of the second device that has not returned the response message is updated. 4.根据权利要求1所述的方法,其特征在于,所述方法还包括:4. The method according to claim 1, wherein the method further comprises: 按照预设规则对所述设备集群中的设备进行分组,得到多个设备集合;Group the devices in the device cluster according to preset rules to obtain multiple device sets; 确定每个所述设备集合中对应的第一设备和第二设备。A corresponding first device and a second device in each of the device sets are determined. 5.根据权利要求4所述的方法,其特征在于,所述方法还包括:5. The method according to claim 4, wherein the method further comprises: 针对所述设备集群中的任一所述设备集合,将目标设备信息发送至所述设备集合中的所述第一设备和所述第二设备,以使所述第一设备和所述第二设备对所述目标设备信息进行存储,所述目标设备信息包括所述设备集合中全部设备的信息。For any one of the device sets in the device cluster, send target device information to the first device and the second device in the device set, so that the first device and the second device The device stores the target device information, where the target device information includes information of all devices in the device set. 6.根据权利要求5所述的方法,其特征在于,所述将所述控制指令采用单播和组播的方式同时发送给所述目标设备集合中的所述第二设备,包括:6. The method according to claim 5, wherein the sending the control instruction to the second device in the target device set simultaneously by means of unicast and multicast, comprising: 所述第一设备查询所述目标设备信息;the first device queries the target device information; 基于所述目标设备信息将所述控制指令采用单播和组播的方式发送给所述目标设备集合中的第二设备。Based on the target device information, the control instruction is sent to the second device in the target device set in a unicast and multicast manner. 7.根据权利要求1-6任一所述的方法,其特征在于,所述方法还包括:7. The method according to any one of claims 1-6, wherein the method further comprises: 在所述第一设备执行所述控制指令后,接收所述第一设备返回的用于指示执行所述控制指令的第一执行结果;After the first device executes the control instruction, receiving a first execution result returned by the first device for instructing to execute the control instruction; 在所述第二设备执行所述控制指令后,接收所述第二设备返回的用于指示执行所述控制指令的第二执行结果;After the second device executes the control instruction, receiving a second execution result returned by the second device for instructing the execution of the control instruction; 基于所述第一执行结果和所述第二执行结果,对所述目标设备集合的当前状态信息进行更新。Based on the first execution result and the second execution result, the current state information of the target device set is updated. 8.一种设备的控制装置,其特征在于,包括:8. A control device for equipment, characterized in that, comprising: 生成模块,用于针对设备集群中的目标设备集合,生成所述目标设备集合的控制指令,所述目标设备集合中包括第一设备和第二设备;a generating module, configured to generate a control instruction of the target device set for the target device set in the device cluster, and the target device set includes a first device and a second device; 发送模块,用于将所述控制指令发送给所述目标设备集合中的所述第一设备,以使所述第一设备在接收到所述控制指令时,将所述控制指令采用单播和组播的方式同时发送给所述目标设备集合中的所述第二设备。A sending module, configured to send the control instruction to the first device in the target device set, so that when the first device receives the control instruction, the control instruction adopts unicast and The multicast method is simultaneously sent to the second device in the target device set. 9.一种电子设备,其特征在于,包括:处理器和存储器,所述处理器用于执行所述存储器中存储的设备的控制程序,以实现权利要求1~7中任一项所述的设备的控制方法。9. An electronic device, comprising: a processor and a memory, wherein the processor is configured to execute a control program of the device stored in the memory, so as to implement the device according to any one of claims 1 to 7 control method. 10.一种存储介质,其特征在于,所述存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现权利要求1~7中任一项所述的设备的控制方法。10. A storage medium, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to realize any one of claims 1 to 7 The control method of the device described in the item.
CN202111682832.2A 2021-12-31 2021-12-31 Device control method and device, electronic device and storage medium Pending CN114422559A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111682832.2A CN114422559A (en) 2021-12-31 2021-12-31 Device control method and device, electronic device and storage medium
PCT/CN2022/113942 WO2023124136A1 (en) 2021-12-31 2022-08-22 Device control method and apparatus, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111682832.2A CN114422559A (en) 2021-12-31 2021-12-31 Device control method and device, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN114422559A true CN114422559A (en) 2022-04-29

Family

ID=81271536

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111682832.2A Pending CN114422559A (en) 2021-12-31 2021-12-31 Device control method and device, electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN114422559A (en)
WO (1) WO2023124136A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023124136A1 (en) * 2021-12-31 2023-07-06 深圳海翼智新科技有限公司 Device control method and apparatus, electronic device, and storage medium

Citations (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080089268A1 (en) * 2006-10-17 2008-04-17 Kinder Richard D Media distribution in a wireless network
CN101426286A (en) * 2007-11-02 2009-05-06 瑞乐普(北京)科技有限公司 Method and device for supporting user's multimedia information browse in wireless network
US20130246527A1 (en) * 2012-03-16 2013-09-19 Research In Motion Limited System and Method for Managing Data Using Tree Structures
CN103595768A (en) * 2013-10-28 2014-02-19 国家电网公司 Method for realizing configuration synchronization between virtualized devices
US20140181270A1 (en) * 2003-07-28 2014-06-26 Sonos, Inc. System and Method for Synchronizing Operations Among a Plurality of Independently Clocked Digital Data Processing Devices
CN103955195A (en) * 2014-05-05 2014-07-30 中国安全生产科学研究院 Sending and responding method and device of control instruction
CN104267811A (en) * 2014-09-22 2015-01-07 联想(北京)有限公司 Terminal device and method for controlling terminal device
US20150026229A1 (en) * 2013-07-17 2015-01-22 Samsung Electronics Co., Ltd. Method in an electronic device for controlling functions in another electronic device and electronic device thereof
US20150334488A1 (en) * 2014-05-14 2015-11-19 Samsung Electronics Co., Ltd. Method and apparatus for communicating audio data
US20160041859A1 (en) * 2014-08-11 2016-02-11 Sas Institute Inc. Synchronization testing of active clustered servers
CN105429883A (en) * 2015-10-22 2016-03-23 上海斐讯数据通信技术有限公司 Long connection method of multiple intelligent devices and server equipment and intelligent device
CN107071189A (en) * 2016-11-28 2017-08-18 深圳市潮流网络技术有限公司 A kind of connection method of communication apparatus physical interface
US20170336769A1 (en) * 2016-05-17 2017-11-23 Ryoh ARUGA Electric apparatus, electric apparatus controlling method, and recording medium
CN108037675A (en) * 2018-02-01 2018-05-15 苏州创爵智能科技有限公司 A kind of Intelligent household scene control method based on ZigBee Group
CN109462794A (en) * 2018-12-11 2019-03-12 Oppo广东移动通信有限公司 Intelligent sound box and voice interactive method for intelligent sound box
US10341792B1 (en) * 2016-11-21 2019-07-02 Amazon Technologies, Inc. System for distributing audio output using multiple devices
CN110687809A (en) * 2019-10-17 2020-01-14 珠海格力电器股份有限公司 Method and device for selecting master control equipment and equipment linkage system
CN110708222A (en) * 2019-10-14 2020-01-17 珠海格力电器股份有限公司 Control method, control device, gateway and storage medium
CN110831246A (en) * 2019-11-11 2020-02-21 展讯通信(上海)有限公司 Data transmission method and device
CN111885151A (en) * 2020-07-21 2020-11-03 深圳市讯方技术股份有限公司 Intelligent equipment communication method based on zigbee protocol and main intelligent equipment
CN111913397A (en) * 2020-07-10 2020-11-10 青岛易来智能科技股份有限公司 Device control method, device, storage medium, and electronic apparatus
US20200367279A1 (en) * 2018-03-06 2020-11-19 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Response message processing method, apparatus, and storage medium
US20210006903A1 (en) * 2019-07-02 2021-01-07 Beijing Xiaoniao Tingting Technology Co., LTD. Playing control method and apparatus for device group, and playing system
CN112235370A (en) * 2020-09-29 2021-01-15 卧安科技(深圳)有限公司 Equipment information synchronization method, synchronization device, main equipment and storage medium
CN113241068A (en) * 2021-03-26 2021-08-10 青岛海尔科技有限公司 Voice signal response method and device, storage medium and electronic device
WO2021179174A1 (en) * 2020-03-10 2021-09-16 Oppo广东移动通信有限公司 Data transmission method and apparatus, and network device, and terminal device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113473410A (en) * 2018-09-28 2021-10-01 华为技术有限公司 Communication method and device
CN110769033A (en) * 2019-09-18 2020-02-07 珠海格力电器股份有限公司 Intelligent networking method and system
CN111930020B (en) * 2020-08-10 2024-04-05 广东沐光智能照明有限公司 Equipment control system, method, device, terminal and readable storage medium
CN113810860B (en) * 2021-09-24 2023-05-02 生迪智慧科技有限公司 Wireless control method and device for intelligent lighting system
CN114422559A (en) * 2021-12-31 2022-04-29 深圳海翼智新科技有限公司 Device control method and device, electronic device and storage medium

Patent Citations (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140181270A1 (en) * 2003-07-28 2014-06-26 Sonos, Inc. System and Method for Synchronizing Operations Among a Plurality of Independently Clocked Digital Data Processing Devices
US20080089268A1 (en) * 2006-10-17 2008-04-17 Kinder Richard D Media distribution in a wireless network
CN101426286A (en) * 2007-11-02 2009-05-06 瑞乐普(北京)科技有限公司 Method and device for supporting user's multimedia information browse in wireless network
US20130246527A1 (en) * 2012-03-16 2013-09-19 Research In Motion Limited System and Method for Managing Data Using Tree Structures
CA2873103A1 (en) * 2012-03-16 2013-09-19 Blackberry Limited System and method for managing data using tree structures
US20150026229A1 (en) * 2013-07-17 2015-01-22 Samsung Electronics Co., Ltd. Method in an electronic device for controlling functions in another electronic device and electronic device thereof
CN103595768A (en) * 2013-10-28 2014-02-19 国家电网公司 Method for realizing configuration synchronization between virtualized devices
CN103955195A (en) * 2014-05-05 2014-07-30 中国安全生产科学研究院 Sending and responding method and device of control instruction
US20150334488A1 (en) * 2014-05-14 2015-11-19 Samsung Electronics Co., Ltd. Method and apparatus for communicating audio data
US20160041859A1 (en) * 2014-08-11 2016-02-11 Sas Institute Inc. Synchronization testing of active clustered servers
CN104267811A (en) * 2014-09-22 2015-01-07 联想(北京)有限公司 Terminal device and method for controlling terminal device
CN105429883A (en) * 2015-10-22 2016-03-23 上海斐讯数据通信技术有限公司 Long connection method of multiple intelligent devices and server equipment and intelligent device
US20170336769A1 (en) * 2016-05-17 2017-11-23 Ryoh ARUGA Electric apparatus, electric apparatus controlling method, and recording medium
US10341792B1 (en) * 2016-11-21 2019-07-02 Amazon Technologies, Inc. System for distributing audio output using multiple devices
CN107071189A (en) * 2016-11-28 2017-08-18 深圳市潮流网络技术有限公司 A kind of connection method of communication apparatus physical interface
CN108037675A (en) * 2018-02-01 2018-05-15 苏州创爵智能科技有限公司 A kind of Intelligent household scene control method based on ZigBee Group
US20200367279A1 (en) * 2018-03-06 2020-11-19 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Response message processing method, apparatus, and storage medium
CN109462794A (en) * 2018-12-11 2019-03-12 Oppo广东移动通信有限公司 Intelligent sound box and voice interactive method for intelligent sound box
US20210006903A1 (en) * 2019-07-02 2021-01-07 Beijing Xiaoniao Tingting Technology Co., LTD. Playing control method and apparatus for device group, and playing system
CN110708222A (en) * 2019-10-14 2020-01-17 珠海格力电器股份有限公司 Control method, control device, gateway and storage medium
CN110687809A (en) * 2019-10-17 2020-01-14 珠海格力电器股份有限公司 Method and device for selecting master control equipment and equipment linkage system
CN110831246A (en) * 2019-11-11 2020-02-21 展讯通信(上海)有限公司 Data transmission method and device
WO2021179174A1 (en) * 2020-03-10 2021-09-16 Oppo广东移动通信有限公司 Data transmission method and apparatus, and network device, and terminal device
CN111913397A (en) * 2020-07-10 2020-11-10 青岛易来智能科技股份有限公司 Device control method, device, storage medium, and electronic apparatus
CN111885151A (en) * 2020-07-21 2020-11-03 深圳市讯方技术股份有限公司 Intelligent equipment communication method based on zigbee protocol and main intelligent equipment
CN112235370A (en) * 2020-09-29 2021-01-15 卧安科技(深圳)有限公司 Equipment information synchronization method, synchronization device, main equipment and storage medium
CN113241068A (en) * 2021-03-26 2021-08-10 青岛海尔科技有限公司 Voice signal response method and device, storage medium and electronic device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
徐迪宇;杨立志;: "环形工业以太网交换机的实时性设计", 工业控制计算机, no. 05 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023124136A1 (en) * 2021-12-31 2023-07-06 深圳海翼智新科技有限公司 Device control method and apparatus, electronic device, and storage medium

Also Published As

Publication number Publication date
WO2023124136A1 (en) 2023-07-06

Similar Documents

Publication Publication Date Title
US9906935B2 (en) Bluetooth low energy beacon device and advertising method
CN102651690B (en) To the method and apparatus that shared drive controls
CN106020905B (en) Method and system for developing and updating microcontroller firmware
US10114577B2 (en) Data reading method, device and system
CN114422559A (en) Device control method and device, electronic device and storage medium
CN110583100A (en) Form groups of devices by analyzing device control information
CN113625589A (en) Equipment control method and device, electronic equipment and storage medium
CN105137858A (en) Integrated household appliance control method and device
KR20160074503A (en) Emulating test distributed application on server
WO2022143202A1 (en) Smart device control method, cloud server, terminal device, and storage medium
CN103729234A (en) Method and device for clustering management of virtual machines
CN109274709B (en) Method and system for synchronizing programming works on education operation system
CN105163333B (en) Data processing method and device
CN112306380A (en) Storage management method and device and computer storage medium
CN109739823A (en) A method and device for building a parallel file system
CN112822811A (en) Bluetooth mesh-based illumination control method and illumination control system
CN114423128A (en) Lamp group control method, system and related equipment
CN112333295A (en) A multi-path connection method, device, electronic device and storage medium
CN114859746A (en) Intelligent device control system, method, device, device, medium and program
CN110679183A (en) Determining duty schedules for groups of lighting fixtures that provide similar lighting services
CN106533969B (en) Maximum transmission unit value setting method and device
CN114047689B (en) Lighting equipment control method and device, lighting equipment and storage medium
WO2023202678A1 (en) Device control method and apparatus, electronic device, and storage medium
CN114756271B (en) Interface updating method and device and electronic equipment
CN111856952B (en) Smart home combination control method, device, equipment and medium

Legal Events

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20220429

RJ01 Rejection of invention patent application after publication