CN111176130B - Equipment control method, equipment control method and equipment control system - Google Patents

Equipment control method, equipment control method and equipment control system Download PDF

Info

Publication number
CN111176130B
CN111176130B CN202010013854.9A CN202010013854A CN111176130B CN 111176130 B CN111176130 B CN 111176130B CN 202010013854 A CN202010013854 A CN 202010013854A CN 111176130 B CN111176130 B CN 111176130B
Authority
CN
China
Prior art keywords
group
equipment
devices
target
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.)
Active
Application number
CN202010013854.9A
Other languages
Chinese (zh)
Other versions
CN111176130A (en
Inventor
刘德
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202010013854.9A priority Critical patent/CN111176130B/en
Publication of CN111176130A publication Critical patent/CN111176130A/en
Application granted granted Critical
Publication of CN111176130B publication Critical patent/CN111176130B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The application relates to the field of communication and provides an equipment control method, an equipment control method and an equipment control system. After a user sends out an execution instruction for instructing a designated device group to execute a predetermined action through an operation terminal, the control device generates a group control command based on the execution instruction, selects a target device from the device group in the local network, sends the group control command to the target device, and when the target device receives the group control command, executes the predetermined action instructed by the execution instruction and controls other devices in the device group to synchronously execute the predetermined action. Because each device in the device group is in the local network, the time delays of the target device for sending the control instruction instructing the other device to execute the predetermined action are basically the same, and the purpose of synchronously executing the predetermined action by the other devices in the device group is achieved.

Description

Equipment control method, equipment control method and equipment control system
Technical Field
The present application relates to the field of communications, and in particular, to an apparatus control method, a routing apparatus, a network apparatus, and an apparatus control system.
Background
The intelligent home is embodied in an internet of things mode under the influence of the internet of things, various devices in the home are connected together through the internet of things, and multiple functions and means such as household appliance control, lighting control, curtain control and telephone remote control are provided. After various devices in the home are accessed to the network, the user can combine and classify the devices accessed to the network, that is, the devices of the same type can be used as a device group, and the user can uniformly control the devices in the combination in a broadcasting mode through the terminal device. The physical connection protocol between various devices of the smart home mainly includes a Wireless Fidelity (WIFI), a Bluetooth protocol (BLE), a ZigBee protocol, and the like.
When a user controls the equipment group through the terminal equipment, each control instruction sent by the terminal equipment and used for controlling each equipment in the equipment group is sent to each equipment in the equipment group through a remote network, such as an intelligent home cloud. Because the physical positions of the devices in the device group in the remote network are different from each other, and the network quality of the access to the remote network is different from each other, the time delay of each control instruction sent by the terminal device reaching each device cannot be consistent, so that each device in the device group cannot synchronously act.
Disclosure of Invention
The embodiment of the application provides a device control method, a routing device, a network device and a device control system, which can realize the function of simultaneously controlling devices in a device group, so that the devices in the device group synchronously execute actions indicated by control instructions.
In a first aspect, an embodiment of the present application provides a device control method for controlling a specified device group, where the device group includes one or more devices in a local network, after a user issues an execution instruction through a control terminal to instruct the device group to execute a predetermined action, the control device generates a group control command based on the execution instruction, controls the device and selects a target device from the specified device group in the local network, sends the group control command to the target device, and when the target device receives the group control command, executes the predetermined action instructed by the execution instruction, such as turning on/off, playing sound, and so on, and controls other devices in the device group to synchronously execute the predetermined action.
In a possible implementation of the first aspect, the control device may be a router or other communication devices, and a communication Protocol between the routing device and each device in the device group may be a HyperText Transfer Protocol (HTTP), a restricted Application Protocol (CoAP), or other Application layer Protocol.
According to a common mode, a control device is taken as a central control node, and the central control node sends a control instruction to each device in a device group, but because the position of each device in the device group on a network physical layer and the network quality of each device accessing a central control node network are different, the time for the control instruction to reach each device in the device group is different. Each device in the device group cannot achieve the purpose of simultaneous action. According to the device control method for the routing device provided by the embodiment of the application, after the control device receives the execution instruction, one device is selected from the device group as the target device. The target device is a device belonging to the device group and used for controlling other devices in a designated device group in the local network, and when the local network controls other devices in the same device group, the target device and other devices are both in the local network, so that the target device can realize the purpose of locally controlling other devices, and can realize the function of simultaneously controlling the devices in the device group, so that the devices in the device group synchronously execute the predetermined action indicated by the control instruction.
In a possible implementation of the first aspect, the controlling device selecting one of the devices from the device group as the target device includes: the control device receives respective associated data tables reported by the devices in the device group, and the associated data tables describe the states of the devices and the association between the devices.
The control device selects one device from the device group as a target device based on each association data table. For the target device, it may be in different device groups, and the target device itself has multiple device group identifiers, for example, taking device 1 as an example, it is simultaneously in device group a and device group b, and device 1 is selected as the target device, and when the user sends an execution instruction at the control terminal, it needs to carry the device 1 to control the device group identifier of the specified device group, that is, whether device 1 controls a device in device group a or a device in control device b. When forming the association data table, sending an instruction of joining the device group from a user, broadcasting the device group identifier of the device group to which the device belongs after each device receives the instruction of joining the device group, taking a target device as an example, broadcasting the device group identifier of the device group to which the device belongs after the target device receives the instruction of the device group, then monitoring the device group identifiers broadcast by the other devices, dividing the devices with the same device group identifiers broadcast by the other devices and the device group identifiers to which the target device belongs into the same device group, and forming the association data table corresponding to each device in the same device group. The state of the device itself refers to the signal strength of the device itself, the CPU performance of the device, the device identification of the device, the priority of the device, and the like.
The target device is selected according to the self state uploaded by each device, specifically, the control device selects the device with the excellent self state according to the signal intensity and the priority of the device relative to the signal emitting device in the local network or the CPU performance of the device, so when the target device sends a control instruction to other devices, the control device selects the device according to the signal intensity of the device in the local network, the time delay for sending the control instruction is short, and the purpose of quickly controlling other devices is achieved. When the priority is selected according to the CPU performance of the equipment, the optimal CPU performance is taken as the target equipment, the processing speed of the group control command from the control equipment is higher, the time delay of sending the control command for instructing other equipment to execute the preset action is shortened, and the control efficiency of other equipment is improved. When the priority is user-defined, the target equipment can be set and other equipment can be controlled according to the requirements of the user, and the experience of the user is high.
In a possible implementation of the first aspect, the association data table includes: the device identifier of each device in the same device group, the signal strength of each device in the same device group in the local network, and the device group identifier of the device group in which the device is located. The device identification may be an ID of the device, a parameter of the device, etc., the signal strength is a signal strength of the device forming the association data table in the device group, more specifically, a signal strength of the device with respect to a signal transmitting means of the local network, such as a routing device, and the device group identification may be an ID of the device group.
The target equipment is selected according to the self state uploaded by each equipment, specifically, the target equipment is selected according to the signal intensity of the equipment in the local network, the equipment with the strongest signal intensity is used as the target equipment, when the target equipment sends a control instruction to other equipment, the time delay for sending the control instruction out is short, and the purpose of quickly controlling other equipment is achieved, wherein the local network can be a WIFI network generated by a local router.
In a possible implementation of the first aspect, the selecting, by the control device, one device from the device group as the target device based on each association data table includes: the control equipment receives the equipment identification of each equipment in the equipment group, acquires the priority of each equipment, and takes the equipment with the equipment identification corresponding to the highest priority as the target equipment according to the corresponding relation between the equipment identification and the priority of each equipment. The priority may be predefined by the user, or may be set according to parameters such as the CPU performance of the device and the model of the device.
The selection of the target equipment is selected according to the self state uploaded by each equipment, specifically, the control equipment selects equipment with the highest self priority as the target equipment according to the priority of the equipment relative to the local network, so that when the target equipment sends a control instruction to other equipment, and when the priority is user-defined, the target equipment can be set according to the requirements of a user and controls other equipment, and the experience of the user is high. When the priority is selected according to the CPU performance of the equipment, the CPU performance is optimal to be used as the target equipment, the processing speed of the group control command from the routing equipment is high, the time delay of sending a control instruction for instructing other equipment to execute a preset action is shortened, and the control efficiency of the other equipment is improved.
In a possible implementation of the first aspect, the priority of the device includes: the priority is set based on the CPU performance of the device.
In a possible implementation of the first aspect, the local network is a WIFI network generated by a local router.
The selection of the target equipment is selected according to the self state uploaded by each equipment, specifically, the control equipment selects the equipment with the highest self priority as the target equipment according to the priority of the equipment, so that when the target equipment sends a control instruction to other equipment and the priority is selected according to the CPU performance of the equipment, the equipment with the optimal CPU performance is used as the target equipment, the processing speed of the equipment on the group control command from the control equipment is higher, the time delay of sending the control instruction for instructing other equipment to execute the preset action is shortened, and the control efficiency of the other equipment is improved.
In a possible implementation of the first aspect described above, after the target device is selected, the control device sends a group control command to the target device, the group control command being generated based on the execution instruction for instructing the target device to perform the predetermined action and instructing the target device to control the other devices in the device group such that the other devices perform the predetermined action in synchronization with each other. The group control command is generated based on an execution instruction, wherein the execution instruction is used for instructing the target device to execute a predetermined action corresponding to the execution instruction and is used for instructing the target device to control the device to be controlled. For group control commands, the group control commands may be generated based on execution instructions, which may be further defined by the control device. The control device may add a delay execution instruction or other similar instructions in a control instruction for controlling the target device to execute a predetermined action, and when other devices in the device group receive an instruction for executing the same predetermined action sent by the target device, trigger the target device to execute the predetermined action, so that all devices in the device group execute the predetermined action synchronously.
In a possible implementation of the above first aspect, a new device may be added to the device group or at least one device may be dropped from the device group. The method further comprises the following steps: and the control equipment judges whether the equipment in the equipment group is changed or not, if so, the equipment group is recombined, and the control equipment reselects the target equipment from the recombined equipment group. The change of the devices in the device group means that the number of the devices in the device group and the association relationship between the devices are changed.
In a possible implementation of the first aspect, the controlling device determining whether a device in the device group has changed includes: the control equipment judges whether the associated data table reported by each equipment in the equipment group changes, and if the associated data table changes, the control equipment judges that the equipment in the equipment group changes. The change of the associated data table describes that the number of the devices in the device group changes and/or the association relationship between the devices changes.
According to the device control method provided by the embodiment of the application, when a new device is added to the device group or at least one device exits from the device group, the device group is reorganized, and the target device is reselected from the reorganized device group. Therefore, the target equipment in the equipment group is reselected in real time according to the change of the equipment in the equipment group, so that the equipment with the optimal state is continuously selected as the target equipment, and the control efficiency of controlling the equipment is ensured to be in a higher state.
In a second aspect, the present application provides a device controlled method, in which a device and one or more devices in a local network are pre-joined to the same device group, the method including:
the target device receives a group control command from the control device, the group control command being generated based on an execution instruction for instructing a specified device group in which the device is located to perform a predetermined action.
In a possible implementation of the second aspect described above, the device is selected as the target controlled device based on an association data table generated by the device itself and association data tables generated by one or more devices in the local network, each association data table describing a state of each device itself and an association between each device, the state of the device itself referring to a signal strength of the device itself, a CPU performance of the device, a device identification of the device, a priority of the device, and the like.
In a general manner, the central control node sends a control command to each device in the device group, but because the location of each device in the device group on the network physical layer and the network quality of each device accessing the network of the central control node are different, the time for the control command to reach each device in the device group is different. Each device in the device group cannot achieve the purpose of simultaneous action. According to the device control method for controlling the devices provided by the embodiment of the application, because each device in the device group is in the local network, the time delays of the target device sending the control instruction instructing the other devices to execute the predetermined action are basically the same, and the purpose of synchronously executing the predetermined action by the other devices in the device group is achieved.
In a possible implementation of the second aspect, the generating of the association data table by the target device and each device includes: and receiving an equipment group adding instruction forwarded by the control equipment, and analyzing the equipment group instruction to obtain an equipment group identifier. The target device and each device synchronously broadcast the device group identification, join the device group corresponding to the device group identification and generate an associated data table. The associated data table includes: device identification of all devices in the same device group, signal strength and device group identification of the device group. The device identifier may be an ID of the device, a parameter of the device, and the like, the signal strength is a signal strength of the device forming the association data table in the device group with respect to the rest of the device groups in the device group, and the device group identifier may be an ID of the device group.
The target device is selected according to the self state uploaded by each device, specifically, the device with the excellent self state is selected according to the signal intensity and the priority of the device relative to the signal emitting device in the local network or the CPU performance of the device, so when the target device sends a control instruction to other devices, when the target device selects the device according to the signal intensity of the signal emitting device in the local network, the time delay for sending the control instruction is short, and the purpose of quickly controlling other devices is achieved. When the priority is selected according to the CPU performance of the equipment, the CPU performance is optimal to be used as the target equipment, the processing speed of the group control command from the control equipment is high, the time delay of sending a control instruction for instructing other equipment to execute a preset action is shortened, and the control efficiency of the other equipment is improved. When the priority is user-defined, the target equipment can be set and other equipment can be controlled according to the requirements of the user, and the experience of the user is high.
In a possible implementation of the second aspect, the target device performing the predetermined action based on the group control command, the target device and controlling the other devices in the specified device group including:
and the target equipment analyzes the group control command to obtain the equipment group identification of the equipment to be controlled and the preset action indicated by the execution instruction in the group control command. The target device performs a predetermined action. And the target device reads the device identifications of the other devices associated in the device group corresponding to the device group identification from the association data table generated in advance by the target device. The target device acquires the device identifiers transmitted by other devices in the device group, and based on the device identifiers transmitted by other devices in the device group, the target device respectively transmits an execution instruction to other devices associated in the device group corresponding to the device group identifiers, so that the other devices associated in the device group corresponding to the device group identifiers execute predetermined actions synchronously with each other.
In a possible implementation of the second aspect, the obtaining the device identifiers transmitted by the other devices in the device group includes: and receiving the device identification actively broadcasted by other devices, or broadcasting the device identification of other devices.
In a third aspect, the present application provides a routing device, including:
And the memory is used for storing the control program.
A processor for executing the control program stored in the memory to implement the method for controlling the device mentioned in the first aspect.
In a fourth aspect, the present application provides a network device, including:
a memory for storing a computer program.
A processor for executing a computer program stored in the memory to implement the device controlled method as mentioned above in the second aspect.
In a fifth aspect, the present application provides an appliance control system comprising:
control devices and device groups;
wherein the device group comprises a first device and at least one second device;
the control equipment selects the first equipment as target equipment;
the control device sends a group control command to the target device, the group control command is generated based on an execution instruction received by the control device and used for instructing the device group to execute a predetermined action, the execution instruction is used for instructing the target device to execute the predetermined action, and the target device is instructed to control other devices in the device group, so that the other devices synchronously execute the predetermined action.
Drawings
Fig. 1 is a scene schematic diagram of an application scenario provided in an embodiment of the present application;
Fig. 2(a) is a schematic flowchart of an apparatus control method according to an embodiment of the present application;
fig. 2(b) is a schematic flowchart illustrating authentication and authorization performed by devices in a device group according to an embodiment of the present application;
fig. 3(a) is a schematic flowchart of a method of an implementation of S21 in fig. 2(a) according to an embodiment of the present application;
fig. 3(b) is a schematic flowchart of forming an association data table for each device in the same device group according to the embodiment of the present application;
FIG. 3(c) is a schematic diagram of the apparatus provided in the embodiments of the present application;
fig. 4 is a schematic flowchart illustrating another specific implementation of S21 in fig. 2(a) according to an embodiment of the present application;
fig. 5 is a schematic flowchart of another apparatus control method according to an embodiment of the present application;
fig. 6 is a schematic flowchart of a device control method according to an embodiment of the present application;
fig. 7 is a schematic flowchart of an implementation of an association data table of a device according to an embodiment of the present application;
fig. 8 is a schematic flowchart of a specific implementation of S61 in fig. 6 according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 10 is a schematic control thread diagram according to an embodiment of the present application.
Detailed Description
It should be noted that in this specification, like reference numerals and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
It will be appreciated that, as used herein, the term module may refer to or include an Application Specific Integrated Circuit (ASIC), an electronic circuit, a processor (shared, dedicated, or group) and/or memory that execute one or more software or firmware programs, a combinational logic circuit, and/or other suitable hardware components that provide the described functionality, or may be part of these hardware components.
It is understood that in various embodiments of the present application, the processor may be a microprocessor, a digital signal processor, a microcontroller, etc., and/or any combination thereof. According to another aspect, the processor may be a single core processor, a multi-core processor, the like, and/or any combination thereof.
Embodiments of the present application are described in further detail below with reference to the accompanying drawings.
First, some embodiments of the present application provide an application scenario of a device control method and a device controlled method, and the application scenario provided by the embodiments of the present application is described below with reference to fig. 1.
Fig. 1 is a scene schematic diagram of an application scenario provided in an embodiment of the present invention, as shown in fig. 1, the application scenario schematic diagram includes a control terminal at a user side, a central control node, and a device group. The control terminal at the user end side can be a handheld remote controller, a mobile phone, a tablet computer, a notebook computer, a large screen (smart television) and other terminal equipment which is convenient for users to use. In the application scenario, the device is taken as an intelligent home for illustration, and the device 1, the device 2, and the device n represent a plurality of devices included in the device group. The equipment can be intelligent household electrical appliances, such as an intelligent switch, an intelligent lamp, an intelligent sound box and the like. In dividing the device group, devices having the same attribute or the same function may be defined by a user to be divided into a group. For example, a plurality of intelligent down lamps in a living room form a device group, and a user can uniformly control the opening and closing of each intelligent down lamp in the device group, the color of each intelligent down lamp, the brightness of each intelligent down lamp and the like through a control terminal. In addition, a user may also define devices with different attributes or different functions to form a device group, and the embodiment of the present application is not limited herein. The device group has an ID identifying its own group, each device in the device group has a device identification (which may be a device ID, a device parameter, a device model, etc.), and each device also has state parameters describing itself, such as CPU performance parameters, signal strength of the device in a local network formed by the local routing devices, etc.
The central control node may be a control device that may be connected to the network device group via a remote network, for example, the central control node may be a remote server, such as an intelligent home cloud platform. The intelligent home cloud platform can take the combination of cloud storage, cloud control and remote routing equipment as a central control node. Or the routing device may be a router or other electronic device with routing functionality. The control terminal and the central control node and the device group can communicate through a HyperText Transfer Protocol (HTTP), a restricted Application Protocol (CoAP) or other Application layer protocols, for the device group, the device group is located in a local network formed by a local router, the local router serves as an access point of a control instruction forwarded by the central control node, according to some embodiments of the present Application, the local network can be a WIFI network, the network where the control terminal is located can be a mobile network such as 3G/4G/5G or a wireless WIFI network, the remote network where the central control node is located can be a mobile network such as 3G/4G/5G or a wireless network, and the wireless network can be a WIFI network, a Zigbee wireless network, and the like.
According to the application scenario shown in fig. 1, the control of each device in the device group can be divided into three parts, namely, an execution instruction transmitting end, which corresponds to a control terminal and can be operated by a user; the execution instruction processing end corresponds to a central control node (an intelligent home cloud platform); and the controlled end corresponds to the device group, and for the controlled end, the controlled end is in a local network formed by the local router, and for the local network formed by the local router, the controlled end can be a Wireless-Fidelity (WIFI) network.
Based on the above description, the main workflow of the instruction processing side and the controlled side is described below.
The following describes a workflow of an instruction processing end in an embodiment of the present application with reference to fig. 2(a) and fig. 2(b), where fig. 2(a) is a schematic flowchart of a device control method provided in the embodiment of the present application, and fig. 2(b) is a schematic flowchart of authentication and authorization performed by a device in a device group provided in the embodiment of the present application. Fig. 2(a) illustrates a device control method for controlling a device group (designated device group) in an application scenario as in fig. 1, the device group including one or more devices under a local network, the designated device group referring to a device group to be controlled selected by a user through a control terminal.
It is necessary for the device group and each device in the device group to authenticate and authenticate each device when the device joins the device group and other devices are controlled by the target device in the device group. As shown in fig. 2(b), the process of authenticating and authenticating each device is specifically as follows:
s200: the user creates a device group through the control terminal.
Specifically, in some embodiments of the present application, a user may create a device group through a control terminal, where the user selects the device 1, the device 2, and the device 3 on a display panel of the control terminal, and adds the device 1, the device 2, and the device 3 to the same device group, thereby completing creation of the device group.
S201: after the user creates the device group through the control terminal, the control terminal may preset a key authcode of the device group and inform the key authcode to the central control node. A join device group instruction carrying the key authcode is sent by the central control node (which may be a control device, such as a routing device) to the respective devices (device 1, device 2, and device 3).
S202: and each device in the device group encrypts and stores the cipher key authcode sent by the central control node. For the key authcode, the key authcode may be refreshed at a predefined time interval by a user at the control terminal, or refreshed at the time of reassembling the device group, where the reassembling the device group refers to adding a new device to the device group or exiting a device in the device group, and the encryption mode for the key may be a symmetric encryption mode or an asymmetric encryption mode, and the like.
S203: the central control node selects device 1 as a target device from devices 1, 2, and 3, and sends a control message to device 1 in a unicast manner, and after receiving the control message, device 1 executes S204.
After the device 1, the device 2, and the device 3 store the key authcode, the central control node selects a target device from the device group and controls the target device in the device group, and authentication and authorization are required when the central control node sends a control message to control the target device and the target device broadcasts the control message to other devices in the control device group.
S204: the device 1 broadcasts the control message to the device 2 and the device 3, randomly generates a sn1 random number, and calculates two TK keys and AK keys according to an encryption algorithm configured in advance by the device 1 to encrypt the control message and then broadcast the encrypted control message.
In some embodiments of the present application, an Advanced Encryption Standard (AES) is taken as an example of the Encryption algorithm, and of course, the Encryption algorithm may also be another Encryption algorithm, and the embodiments of the present application are not limited herein. The TK key and the AK key can be AES-128 encryption keys. The TK key is used to encrypt the control message data part of the broadcast of the network device 1. The AK key is used to sign and verify integrity of a control message sent by the network device 1.
For TK keys, the calculation formula may be PBKDF2(authcode, sn1, 1); the formula for AK key may be PBKDF2(TK,0,1), Salt ═ 0.
S205: after receiving the encrypted control message sent by the device 1, the devices 2 and 3 decrypt the encrypted control message by using the stored key authcode received by the step SS 202.
In some embodiments of the present application, as shown in fig. 2(a), an apparatus control method provided in an embodiment of the present application includes:
s20: the central control node receives an execution instruction for instructing the group of devices to perform a predetermined action.
The predetermined action refers to an execution action corresponding to the execution instruction, which is sent by the user through the control terminal and received by the central control node. Taking the device as an intelligent switch as an example, the execution instruction may be an instruction sent by the user through the control terminal to instruct the intelligent switch to be turned off. S21: and the central control node selects one device from the device group as a target device.
According to some embodiments of the present application, there may be many implementations for S21, and in some embodiments of the present application, the implementation for S21 may be as shown in fig. 3(a) and 3(b), and the implementation flow for S21 in fig. 2(a) in this embodiment of the present application is described below with reference to fig. 3(a) and 3 (b). Fig. 3(a) is a schematic flowchart of a method of S21. Fig. 3(b) is a flow for forming an association data table for each device in the same device group according to the embodiment of the present application.
According to some embodiments of the present application, as shown in fig. 3(a), S21 includes:
s210: the central control node receives respective associated data tables reported by the devices in the slave device group, and the associated data tables describe the states of the devices and the association between the devices.
In some embodiments of the present application, the state of the device itself refers to the device identification of the device, the signal strength of the device in the local network, the device group identification of the device group in which the device is located, and the like. The association between the devices refers to an association relationship between the devices that are mutually influenced or controlled, that is, the devices in the same device group are associated, and a target device in the same device group can control other devices in the device group to be mutually controlled.
S211: and the central control node selects one device from the device group as a target device based on each associated data table.
According to some embodiments of the application, the association data table may include: the device identification of the device, the signal strength of the device in the local network, the device group identification of the device group in which the device is located.
According to some embodiments of the present application, taking an association data table uploaded by a target device as an example, the form of the association data table may be:
[ { target device, device group ID },
{ device 1, device group ID, signal strength 1},
{ device 2, device group ID, signal strength 2},
{ Equipment 3, Equipment group ID, Signal Strength 3} ]
Further, in some embodiments of the present application, as shown in fig. 3(c), assuming that five devices a, b, c, d, and e are accessed into the local network, for a network formed by these 5 devices, the device group IDs of the devices a, b, and c are the same and are all 0x1001, and the device d is a device newly added to the device group with the device group ID of 0x1001 and is associated with the signal strength of the device a, and may be controlled by a, and the device e is an independent device. For example, if the target device is a, and the slave devices are b, c, d, and e, the form of the association data table formed by a may be:
[{a,0x1001}{b,0x1001,-55},{c,0x1001,-76},{d,0x1002,-63}]
here, the device a is the target device, and the device a and the device b and the device c are both in the device group whose ID is 0x 1001. And after the target equipment a receives the control message sent by the central control node, the control message is respectively sent to the equipment b and the equipment c. Here, the number of times of transmission of the control command in the device group 0x1001 may be expressed in terms of the number of hops. For example, device a sends control messages to device b and device c; after the devices b and c receive the control message, the execution action indicated by the control message is executed, and then the transmission of the whole control message is completed. Therefore, in the device group, the control message is transmitted from the device a to the devices b and c, respectively, and the transmission path of the control message is transmitted only once, and the hop count is 1. If another device f exists in the device group and the device c controls the device f, and the device c sends the control message to the device f again, the sending path of the control message is as follows: the control message is sent to the device c by the device a, and then sent to the device f by the device c, the hop count is 2 when the control message is sent for 2 times, the value of the hop count can reflect the sending path of the control message, and the sending path with the smaller hop count value is selected as the optimal sending path to send the control message, so that the forwarding times of the control message are reduced, and the control efficiency is improved.
Similarly, taking the target device as b and the slave device having a relationship with b as a, c, the formed association data table is:
[{b,0x1001},
{a,0x1001,-54},
{c,0x1001,-63}]
taking target equipment as c and slave equipment with the association relation with the c as a and b, and forming an association data table as follows:
[{c,0x1001},
{a,0x1001,-77},
{b,0x1001,-82}]
taking the target device as d and the slave device having the association relation with d as a, the formed association data table is as follows:
[{d,0x1002},
{a,0x1001,-64}]
for an isolated device e, the associated data table is formed as follows:
[{e,0x1001}]
after the devices a, b, c, d, and e respectively report their association tables to the central control node, the central node forms a forwarding path of the control message of each network device group, that is, a forwarding path of the control message whose device group ID is 0x1001 (an independent device e, and a forwarding path of the control message whose device group ID is 0x 1002), and each forwarding path forms a broadcast policy table, where the broadcast policy table specifically includes:
[ { path 1 set 0x1001, [ { a, b, c },1] },
{ path 2 set 0x1002, [ { d },0] },
{ Path 3 set 0x1001, [ { e },0] }, ]
For the devices a, b, and c, which are located in the device group with the device group ID of 0x1001, the central control node unicast-transmits the control message to the device a, and then the device a transmits the control message to the device b in a broadcast manner, respectively, and the device c completes the control of the devices b and c, and the control message is forwarded once in the device group, that is, the hop count of the path 1 group is 1. For device d, although it may be controlled by device a, it belongs to the device group with device group ID 0x1002, and therefore, device d may be used as a single device to which a control message is sent by the central control node, that is, the hop count of the path 2 group is 0; for an isolated device e, which is used as a single device, the central control node directly sends a control message to the device e, and the hop count of the path 3 group is 0.
It is to be understood that, for the group broadcast policy table, which is a representation of a transmission path of the control message for each device group, if there are i device groups in common, the group broadcast policy table formed by the i device groups may adopt t (p) ═ F(s)1,s2,...,si) The method includes that a central control node selects a target device in each device group, the target device sends a control message to the rest slave devices in the device group, and a sending path of the control message of each device group can be specifically represented in the following form:
{ path 1 group ID, [ { target device, device 1, device 2 … } ], hop count },
{ path 2 group ID, [ { target device, device 3, device 4 … } ], hop count },
{ path 3 group ID, [ { target device, device 5, device 6 … } ], hop count },
…]
it should be noted that, for 1 or more devices in the device group, when one device is included in the device group, the central control node may send an instruction to the individual device to complete the control of the device, and when multiple devices are included in the device group, the central control node may unicast a control message to a target device in the device group, and then the target device may rebroadcast the control message to the remaining slave devices in the device group.
With respect to fig. 3(b), fig. 3(b) shows a flow of forming an association data table for each device in the same device group.
S300: the user creates the equipment group through the control terminal, the created equipment group comprises the identification of the equipment, each equipment group also has a unique identification, and the user sends the identification comprising the equipment group and the identification of the equipment in the equipment group to the central control node through the control terminal in a control instruction mode. Take the example that the device group created by the user includes device 1, device 2, and device 3.
S301: the central control node sends a control instruction to inform the device 1, the device 2 and the device 3 to join the device group in which the central control node is located.
S302: device 1, device 2 and device 3 each form a respective association data table. The device 1, the device 2, and the device 3 respectively form their respective association data tables as shown in the dashed line box in fig. 3(b), specifically: the device 1, the device 2, and the device 3 may actively broadcast the ID of the device group in which the device is located and the signal strength in the local network in which the device is located, respectively, or may respond to a request sent by the remaining devices for the device group ID and then broadcast the ID of the device group in which the device is located.
Taking the example that the device 2 and the device 3 actively broadcast the device group ID where the device 2 and the device 3 are located and the association data table generated by the device 1, a process of forming the association data table by the device 1 will be described. The device 1 listens to the IDs of the device groups of the device 2 and the device 3 broadcasted by the device 2 and the device 3, recognizes that the device 2, the device 3 and the device 1 are in the same device group, and the device 1 will listen to the IDs of the device group of the device 2 and the device 3, the device ID of the device 2 and the device ID of the device 3, the signal strength in the local network where the device 2 and the device 3 are located, and the ID of the device group of the device 1 and the device ID of the device 1 to form an association data table of the device 1, that is, the association data table of the device 1 includes the ID of the device 1 and the ID of the device group where the device 1 is located, the IDs of the device group where the device 2 and the device 3 are located, the device ID of the device 2 and the device ID of the device 3, and the signal strength in the local network where the device 2 and the device 3 are located, so that a target device can be selected from the association data table of the device 1 based on the association data table of the device 1, the remaining devices in the device group in which device 1, device 2 and device 3 are located are controlled by the target device. In addition, for the process of forming the association data table by the device 2 and the device 3, reference may be made to the process of forming the association data table by the device 1, and details of the embodiment of the present application are not described herein again.
S303: and reporting the associated data table to the central control node.
It is understood that, in some embodiments, the form of the associated data table and the content covered by the associated data table in the embodiments of the present application are not limited to those mentioned in the above examples.
According to some embodiments of the present application, for S211, the selecting, by the central control node, the target device includes:
the central control node selects the device with the strongest signal strength in the local network as the target device.
According to some embodiments of the present application, the implementation manner of S21 in fig. 2(a) may also be as shown in fig. 4, and another implementation manner of S21 in fig. 2(a) in this embodiment of the present application is described below with reference to fig. 4. As shown in fig. 4, S21 includes:
s212: and the central control node receives the equipment identification of each equipment in the equipment group.
S213: and the central control node acquires the priority of each device.
According to some embodiments of the present application, an example of the priority of the device is to set the priority based on the CPU performance of the device, specifically, the device with the optimal CPU performance is taken as the device with the highest priority, that is, the priority is set according to the superiority and inferiority of the CPU performance, and the priority of the device with the better CPU performance is also set higher accordingly.
It is to be understood that, according to some embodiments of the present application, the setting of the priority of the device may also be set by a user, or the setting of the priority may also be performed according to a device parameter and a model of the device, and the embodiments of the present application are not limited herein.
S214: and the central control node takes the equipment with the equipment identifier corresponding to the highest priority as target equipment according to the corresponding relation between the equipment identifier of each equipment and the priority.
S22: the central control node sends a group control command to the target device. The group control command is generated based on the execution instruction for instructing the target device to execute the predetermined action and instructing the target device to control the other devices in the device group to execute the predetermined action in synchronization with each other.
In some embodiments of the present application, after the target device receives the group control command sent by the central control node, the target device sends the group control command to the remaining devices, respectively, based on the local network formed by the local routing devices. Because the rest devices and the target device are both in the local network, the time delays of the rest devices for receiving the group control command are basically consistent, and the execution action indicated by the group control command is synchronously executed.
In some embodiments of the application, after the target device is selected, a group control command is sent to the target device, the group control command being generated based on the execution instruction for instructing the target device to perform the predetermined action and instructing the target device to control the other devices in the device group such that the other devices perform the predetermined action in synchronization with each other. The group control command is generated based on an execution instruction, wherein the execution instruction is used for instructing the target device to execute a predetermined action corresponding to the execution instruction and is used for instructing the target device to control the device to be controlled. Wherein the group control commands may be generated based on the execution instructions. A delay execution instruction or other similar instruction may be added to the control instruction for controlling the target device to execute the predetermined action, so that the target device delays executing the predetermined action corresponding to the control instruction after receiving the control instruction, so that the target device executes the predetermined action simultaneously or almost simultaneously with other devices in the device group. Wherein the specific duration of the delay may be obtained empirically or through testing.
It can be understood that, when the user sets the device group through the control terminal, the device group may include only one device. The device may form an association data table containing its own device ID and the ID of the device group in which it is located. For example: if the device ID of the device is e, the association data table formed by the device e may be: [ { e,0x1001} ].
According to some embodiments of the application, there may be one or more devices that are new to the device group or one or more devices that are exiting the device group. The workflow of the instruction processing end in the embodiment of the present application is described below with reference to fig. 5. The instruction processing end may be a central control node, and fig. 5 is a schematic flowchart of another device control method provided in this embodiment. Fig. 5 shows a device control method for controlling a device group (designated device group) in an application scenario as in fig. 1. According to some embodiments of the present application, a device control method includes:
s20: the central control node receives an execution instruction for instructing the group of devices to perform a predetermined action.
S21: and the central control node selects one device from the device group as a target device.
S22: the central control node sends a group control command to the target equipment; the group control command is generated based on the execution instruction for instructing the target device to execute the predetermined action and instructing the target device to control the other devices in the device group to execute the predetermined action in synchronization with each other.
S50: the central control node judges whether the devices in the device group are changed, if yes, the operation goes to S51.
According to some embodiments of the present application, S50 may specifically include: and judging whether the associated data table reported by each device in the device group changes or not, and if so, judging that the devices in the device group change.
The change of the association data table may be a change of the number of devices in the device group, that is, when the device member in the original device group does not quit, a new device is added to the original device group, or a device in the original device group quits from the device group to form a new device group. A new target device may be formed in the new device group, with the new target device controlling the remaining devices in the new device group. Correspondingly, the association data table of each device in the new device group may also be changed, specifically, at least one of the number of included devices, the ID of the device group, the signal strength in the target device and the local network in which each device is located may be changed. And the change of the control relationship between the target equipment and other equipment in the new equipment group corresponds to the change of the association relationship of the association data table. Further, in some embodiments of the present application, the change of the association data table may be a change of a member of the device group, but the number of devices in the device group remains unchanged, that is, a new device is added while a device in the original device group exits, so as to form a new device group. At this time, the association data table in the new device group may also change, specifically, at least one of the target device in the new device group, the signal strength in the local network where each device is located, the ID of the device in the device group, the ID of the device group, and the like may change, and the manner of selecting the target device in the new device group may refer to the above-mentioned selection manner, which is not described herein again in this embodiment of the present application.
Further, in some embodiments of the present application, the change in the association data table may be that the member of the device in the device group has not changed, at least one of the signal strength in the device group, the ID of the device group, or the like has changed.
S51: and the central control node recombines the equipment groups and reselects the target equipment from the recombined equipment groups.
In some embodiments of the present application, when a device newly joins in the original device group or a device exits, the control terminal may reassign an ID of a device group, and add the newly joined device to the device group from the control terminal or delete the device exiting the original device group, so as to reassemble the device group to form a new device group.
The following describes a workflow of the controlled end in the embodiment of the present application with reference to fig. 6, and fig. 6 is a schematic flowchart of a device control method provided in the embodiment of the present application. In which one or more devices in the local network are pre-joined to a device group (designated device group) in an application scenario as in fig. 1. The method comprises the following steps:
s60: the target device receives a group control command from the control device, the group control command being generated based on an execution instruction for instructing a specified device group in which the device is located to perform a predetermined action.
In some embodiments of the present application, the designated device group refers to a device group to be controlled, which is selected by the user through the control terminal.
S61: the target device performs a predetermined action based on the group control command and controls the other devices in the specified device group so that the other devices perform the predetermined action in synchronization with each other.
According to some embodiments of the present application, a device is selected as a target device based on its own generated association data table and one or more device generated association data tables in the local network, each association data table describing the status of each device itself and the association of each device with each other.
According to some embodiments of the present application, a specific implementation manner of the target device and the association data table generated by each device in the embodiments of the present application is described below with reference to fig. 7. Fig. 7 is a schematic flowchart of an implementation of an association data table of a device according to an embodiment of the present application, where according to some embodiments of the present application, a specific implementation of the association data table includes:
s70: and the target equipment receives the equipment group joining instruction forwarded by the control equipment.
S71: and the target equipment analyzes the equipment group command to obtain an equipment group identifier.
S72: the target device and each device synchronously broadcast the device group identification, join the device group corresponding to the device group identification and generate an associated data table. Wherein, the associated data table includes: device identification of all devices in the same device group, signal strength and device group identification of the device group.
According to some embodiments of the present application, a specific implementation manner of S61 in fig. 6 in the embodiments of the present application is described below with reference to fig. 8, where fig. 8 is a flowchart of a specific implementation manner of S61 in fig. 6 provided in the embodiments of the present application. As shown in fig. 8, a specific implementation manner of S61 may include:
s610: and the target equipment analyzes the group control command to obtain the equipment group identification of the equipment to be controlled and the preset action indicated by the execution instruction in the group control command.
S611: the target device performs a predetermined action.
S612: and the target equipment reads the equipment identifications of other associated equipment in the equipment group corresponding to the equipment group identification from the associated data table generated in advance by the target equipment.
S613: the target device obtains the device identifications transmitted by the other devices in the device group.
According to some embodiments of the present application, a specific implementation manner of S613 includes:
the target device receives the device identification actively broadcast by the other device or broadcasts the device identification of the other device.
S614: and the target device respectively sends an execution instruction to other devices associated in the device group corresponding to the device group identification based on the device identifications transmitted by the other devices in the device group, so that the other devices associated in the device group corresponding to the device group identification execute the predetermined action synchronously with each other.
In some embodiments of the present application, an electronic device is provided, and the electronic device in the embodiments of the present application is described below with reference to fig. 9. Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
For at least one embodiment, electronic device 900 includes a controller hub 904 and a processor 901, the controller hub 904 communicating with the processor 901 via a multi-drop bus such as a front-side bus (FSB), a point-to-point interface such as a quick channel interconnect (QPI), or similar connection. Processor 901 executes instructions that control general types of data processing operations. In one embodiment, the controller hub 904 includes, but is not limited to, a Graphics Memory Controller Hub (GMCH) (not shown) and an input/output hub (IOH) (which may be on separate chips) (not shown), where the GMCH includes memory and graphics controllers and is coupled to the IOH.
The electronic device 900 may also include a coprocessor 906 and memory 902 coupled to the controller hub 904. Alternatively, one or both of the memory 902 and GMCH may be integrated within the processor 901 (as described herein), with the memory 902 and coprocessor 906 coupled directly to the processor 901 and to the controller hub 904, with the controller hub 904 and IOH in a single chip.
The memory 902 may be, for example, a Dynamic Random Access Memory (DRAM), a Phase Change Memory (PCM), or a combination of the two. Memory 902 may include one or more tangible, non-transitory computer-readable media therein for storing data and/or instructions. The computer readable storage medium has stored therein instructions, in particular, temporary and permanent copies of the instructions.
In one embodiment, coprocessor 906 is a special-purpose processor, such as, for example, a high-throughput MIC processor, a network or communication processor, compression engine, graphics processor, GPGPU, embedded processor, or the like. The optional nature of coprocessor 906 is represented in FIG. 9 by dashed lines.
In one embodiment, electronic device 900 may further include a Network Interface (NIC) 903. The network interface 903 may include a transceiver to provide a radio interface for the electronic device 900 to communicate with any other suitable device (e.g., front end module, antenna, etc.). In various embodiments, the network interface 903 may be integrated with other components of the network routing device 900. The network interface 903 may implement the functions of the communication unit in the above-described embodiments.
The electronic device 900 may further include input/output (I/O) devices 905. Input/output (I/O) devices 905 may include: a user interface designed to enable a user to interact with the electronic device 900; the design of the peripheral component interface enables peripheral components to also interact with the electronic device 900; and/or sensors are designed to determine environmental conditions and/or location information associated with electronic device 900.
It is noted that fig. 9 is merely exemplary. That is, although fig. 9 shows that the electronic apparatus 900 includes a plurality of devices, such as a processor 901, a controller hub 904 and a memory 902, in practical applications, an apparatus using the methods of the present application may include only a part of the devices of the electronic apparatus 900, for example, may include only the processor 901 and the NIC 903. The nature of the optional device in fig. 9 is shown in dashed lines.
The electronic device 900 may be a network routing device in the foregoing embodiments, or a network device in the foregoing embodiments.
Instructions are stored in a readable storage medium of the electronic device 900. The instructions are executable by at least one unit in a processor of the electronic device. When the instructions are executed, electronic device 900 may implement the methods provided by the embodiments shown in fig. 2(a), fig. 3(b), fig. 4, and fig. 5, or electronic device 900 may implement the methods provided by the embodiments shown in fig. 6-8.
The interaction among the device, the control terminal, and the central control node disclosed in the embodiment of the present application is described below with reference to fig. 10. In the embodiment of the present application, the local network may be a WIFI network, the network where the mobile phone is located may be a mobile network or a wireless network such as 3G/4G/5G, and the remote network where the central control node is located may be a mobile network or a wireless network such as a WIFI network or a Zigbee wireless network. The interaction method shown in fig. 10 includes:
S100: the user creates the device group through the mobile phone. The user may set the lamp 1, the lamp 2, and the lamp 3 to be in the same device group through a mobile phone by using the mobile phone to create the device group, and after the user selects the lamp 1, the lamp 2, and the lamp 3 to be in the same device group through the mobile phone, the mobile phone assigns an ID, such as 0x1001, to the device group, adds the device IDs of the lamp 1, the lamp 2, and the lamp 3, respectively, and binds the device IDs of the lamp 1, the lamp 2, and the lamp 3 to the ID0x1001 of the device group in which the device group is located.
S101: the mobile phone presets a secret key authcode of the equipment group.
S102: the mobile phone creates an equipment group and a key authcode of a preset equipment group, and sends an execution command and the key authcode to the central control node. In some embodiments of the present application, the execution command includes information such as a device group ID specified by the user to be controlled in the mobile phone, and device IDs of the light fixture 1, the light fixture 2, and the light fixture 3 in the device group. After receiving the execution command and the key authcode, the central control node sends an equipment group joining instruction carrying the key authcode to the lamps 1, 2 and 3 in the remote network accessing the central control node through the local routing equipment. The join device group command carries information of ID0x1001 of the device group, and device IDs of the luminaire 1, the luminaire 2, and the luminaire 3 included in the device group. After the lamps 1, 2 and 3 in the remote network where the central control node is located are connected to receive the command sent by the central control node, the lamps 1, 2 and 3 whose device IDs are bound to the device group whose device group ID is 0x1001 join the device group whose device group ID is 0x 1001.
S103: the lamps 1, 2 and 3 receive an equipment group adding instruction carrying a secret key authcode; the lamps 1, 2, and 3 store the authcode in an encrypted manner, and add the encrypted key to the device group having the device group ID of 0x 1001. Then, the luminaire 1, the luminaire 2, and the luminaire 3 actively broadcast the ID of the device group in which the luminaire itself is located, and the signal strength in the local network in which the luminaire itself is located, respectively. Alternatively, after receiving the device request, the luminaires 1, 2, and 3 may broadcast the ID of the device group in which they are located in response to the request, thereby forming the association data table.
The process of forming the association data table by the device luminaire 1 will be described by taking the example that the luminaires 2 and 3 actively broadcast the device group ID where they are located. The lamp 1 monitors the ID of the equipment group where the lamp 2 is located and the ID of the equipment group where the lamp 3 is located, which are broadcasted by the lamp 2, and distinguishes that the lamp 2, the lamp 3 and the lamp 1 are in the same equipment group; then, the luminaire 1 constructs the IDs of the device groups of the sensed luminaires 2 and 3, the device IDs of the luminaires 2 and 3, and the signal strengths of the local networks in which the luminaires 2 and 3 are located, together with the device IDs and the device group IDs of the luminaires 1, into an association data table of the luminaire 1. In addition, for the process of forming the association data table for the lamp 2 and the lamp 3, reference may be made to the process of forming the association data table for the lamp 1, and details of the embodiment of the present application are not repeated herein.
Further, in some embodiments of the present application, the encryption algorithm may be a symmetric encryption algorithm, a digital signature encryption algorithm, a public key encryption algorithm, and the like.
S104: luminaire 1, luminaire 2 and luminaire 3 form an association data table.
S105: and reporting the associated data table to the central control node. Thus, the lamps 1, 2 and 3 complete the report of the associated data table. And the central control node selects the target equipment according to the associated data table reported by each equipment. For example: and if the signal intensity of the lamp 1 in the local network is the strongest, selecting the lamp 1 as the target equipment in the equipment group, and executing the following steps.
S106: the central control node sends the group control commands to the luminaires 1 in a unicast manner.
S107: luminaire 1 broadcasts the set of control commands to luminaires 2 and 3. When the group of control commands is broadcast, the lamp 1 randomly generates a sn1 random number, and calculates two TK keys and AK keys according to a pre-configured encryption algorithm to encrypt and sign the group of control commands.
S108: after the lamps 2 and 3 receive the encrypted group control command sent by the lamp 1, the encrypted group control command is decrypted by using the key authcode received and stored in S103, and an execution action indicated by the execution instruction in the group control command is executed, such as turning off the lamps.
According to a common mode, the central control node sends a control instruction to each device in the device group, and because the position of each device in the device group on a network physical layer and the network quality of each device accessing the central control node network are different, the time for the control instruction to reach each device in the device group is different. The purpose of simultaneous action of all the devices in the device group cannot be achieved. According to the device control method for the network routing device provided by the embodiment of the application, after the network routing device receives the execution instruction, one device is selected from the device group as the target device. The target device is a device belonging to the device group and used for controlling other devices in a designated device group in the local network, and when the local network controls other devices in the same device group, the target device and other devices are both in the local network, so that the target device can realize the purpose of locally controlling other devices, and can realize the function of simultaneously controlling the devices in the device group, so that the devices in the device group synchronously execute the predetermined action indicated by the control instruction.
In another embodiment of the present application, in the embodiment shown in fig. 10, the device group may include a luminaire 1, a luminaire 2, a luminaire 3, and a target device. The target device may be a routing device providing a local WIFI network, or may be other devices located in the local WIFI network, such as a smart television, a smart refrigerator, and the like. The central control node sends the group control command to the target device, and then the target device broadcasts the group control command to the other devices (the lamp 1, the lamp 2 and the lamp 3) in the device group, so that the other devices (the three lamps) in the device group simultaneously execute the action corresponding to the control command, such as simultaneously turning on or off or changing colors. That is to say, in this embodiment, a certain device in the local WIFI network may be selected as a target device in the device group, and then other devices in the device group may be controlled to operate simultaneously by the target device, and the target device may not need to operate simultaneously with other devices in the device group. Optionally, there may be multiple device groups in the local WIFI network, and the target device may be a target device in the multiple device groups. For example, the aforementioned target device may also be a target device in another device group (including the target device, enclosure 1, enclosure 2, and enclosure 3); when the user wants to control the three speakers to operate simultaneously, the central control node may send the group control command to the target device, and then the target device broadcasts the control command to the three speakers, so that the three speakers operate simultaneously.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and these modifications or substitutions do not depart from the spirit of the corresponding technical solutions of the embodiments of the present invention.

Claims (15)

1. A device control method for controlling a designated device group including a plurality of devices under a same local network, the method comprising:
the control device receives an execution instruction for instructing the group of devices to perform a predetermined action,
the control device selects one device from the device group as a target device based on a received respective association data table reported by each device in the device group, wherein the association data table describes the state of the device and the association between the devices;
the control device sends a group control command to the target device, the group control command being generated based on the execution instruction, for instructing the target device to execute the predetermined action, and instructing the target device to control other devices in the device group associated with the target device, so that the other devices synchronously execute the predetermined action.
2. The method of claim 1, wherein the association data table comprises:
a device identification of each of the devices in a same device group;
signal strength of each of the devices in the same device group in the local network;
the device group identifiers of the device group in which each device is located are different from the association data tables of each device in the same device group.
3. The method of claim 1 or 2, wherein the controlling device selecting one of the devices from the group of devices as the target device comprises:
and the control equipment selects the equipment with the strongest signal strength in the local network from the equipment group as the target equipment.
4. The method of claim 1 or 2, wherein the selecting one of the devices from the group of devices as a target device comprises:
the control equipment acquires the priority of each equipment according to the equipment identification of each equipment in the equipment group;
and the control equipment selects the equipment with the highest priority as the target equipment.
5. The method of claim 4, wherein the setting of the priority of the device comprises:
The control apparatus sets the priority on the basis of the CPU performance of the apparatus.
6. The method of claim 1 or 2, further comprising:
the control device judges whether the devices in the device group change or not;
and if so, the control equipment reorganizes the equipment group and reselects the target equipment from the reorganized equipment group.
7. The method of claim 6, wherein the controlling device determining whether a change has occurred to a device in the device group comprises:
the control equipment judges whether the associated data table reported by each equipment in the equipment group changes;
if the associated data table changes, the control device judges that the devices in the device group change;
the change of the association data table describes that the number of the devices in the device group changes and/or the association relationship between the devices changes.
8. The method of claim 1 or 2, the local network being a local router generated WIFI network.
9. A device-controlled method, the device including a target device in a local network and one or more devices in the local network that are pre-joined to the same device group, comprising:
The target device receives a group control command from a control device, wherein the group control command is generated based on an execution instruction, the execution instruction is used for instructing a designated device group in which the device is located to execute a predetermined action, the target device is selected as the target device based on an association data table generated by the target device and one or more association data tables generated by one or more devices in the local network, and each association data table describes the state of each device and the association of each device with each other;
the target device performs the predetermined action based on the group control command, and the target device controls other devices in the designated device group associated with the target device such that the other devices perform the predetermined action in synchronization with each other.
10. The method of claim 9, wherein the target device and each of the devices generating the association data table comprises:
the target equipment receives an equipment group joining instruction forwarded by the control equipment;
the target equipment analyzes the equipment group command to obtain an equipment group identifier;
the target device and each device synchronously broadcast the device group identification, join the device group corresponding to the device group identification and generate the association data table;
The association data table includes: device identifications, signal strengths of all devices in the same device group, and device group identifications of the device group.
11. The method of claim 9 or 10, wherein the target device performs the predetermined action based on the group control command, and the target device controls other devices in the specified group of devices comprises:
the target equipment analyzes the group control command to obtain an equipment group identifier of equipment to be controlled and a preset action indicated by an execution instruction in the group control command;
the target device performs the predetermined action or actions,
the target device reads the device identifiers of other devices related in the device group corresponding to the device group identifier from a pre-generated related data table;
the target equipment acquires the equipment identification transmitted by other equipment in the equipment group;
and the target device respectively sends the execution instruction to other associated devices in the device group corresponding to the device group identifier based on the device identifiers transmitted by the other devices in the device group, so that the other associated devices in the device group corresponding to the device group identifier execute the predetermined action synchronously with each other.
12. The method of claim 11, wherein the target device obtaining device identifications transmitted by other devices in the device group comprises:
and the target device receives the device identification actively broadcasted by the other device, or the target device broadcasts a device identification requesting the other device.
13. A routing device, comprising:
a memory for storing a control program;
a processor for executing the control program stored in the memory so that the routing device implements the device control method according to any one of claims 1 to 8.
14. A network device, comprising:
a memory for storing a computer program;
a processor for executing the computer program stored in the memory to implement the steps of the device controlled method according to any of claims 9-12.
15. An appliance control system, comprising:
control devices and device groups;
wherein the device group comprises a first device and at least one second device;
the control device selects the first device as a target device, the target device selects the target device based on an associated data table generated by the target device and associated data tables generated by one or more devices in the local network, and each associated data table describes the state of each device and the association between each device;
The control device sends a group control command to the target device, the group control command is generated based on an execution instruction received by the control device for instructing the device group to execute a predetermined action, for instructing the target device to execute the predetermined action, and instructs the target device to control other devices in the device group associated with the target device so that the other devices synchronously execute the predetermined action.
CN202010013854.9A 2020-01-07 2020-01-07 Equipment control method, equipment control method and equipment control system Active CN111176130B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010013854.9A CN111176130B (en) 2020-01-07 2020-01-07 Equipment control method, equipment control method and equipment control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010013854.9A CN111176130B (en) 2020-01-07 2020-01-07 Equipment control method, equipment control method and equipment control system

Publications (2)

Publication Number Publication Date
CN111176130A CN111176130A (en) 2020-05-19
CN111176130B true CN111176130B (en) 2022-05-24

Family

ID=70649229

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010013854.9A Active CN111176130B (en) 2020-01-07 2020-01-07 Equipment control method, equipment control method and equipment control system

Country Status (1)

Country Link
CN (1) CN111176130B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111913397B (en) * 2020-07-10 2022-08-26 青岛易来智能科技股份有限公司 Device control method, device, storage medium, and electronic apparatus
CN112040292A (en) * 2020-08-12 2020-12-04 深圳创维-Rgb电子有限公司 Control method of display device, and storage medium
CN113068250B (en) * 2021-04-01 2023-07-18 广东电网有限责任公司清远供电局 Time synchronization device, method, equipment and storage medium
CN114285685B (en) * 2021-11-09 2023-04-07 珠海格力电器股份有限公司 Equipment linkage control method and device, storage medium and electronic equipment
CN117354078B (en) * 2023-12-06 2024-02-09 深圳市千岩科技有限公司 Intelligent household appliance group control and response method and device, equipment and medium thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102271292A (en) * 2010-06-02 2011-12-07 索尼公司 Control device, control method, and program
CN105807618A (en) * 2014-12-29 2016-07-27 联想(北京)有限公司 Control method and first central control device
CN107976911A (en) * 2016-10-24 2018-05-01 腾讯科技(深圳)有限公司 Apparatus control method, apparatus and system

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10444715B2 (en) * 2014-05-01 2019-10-15 Belkin International, Inc. Controlling settings and attributes related to operation of devices in a network
CN105093942A (en) * 2014-10-26 2015-11-25 深圳市艾瑟网络技术有限公司 Intelligent household system and group control method based on the intelligent household system
CN107018165A (en) * 2016-01-28 2017-08-04 阿里巴巴集团控股有限公司 The method and device of control internet of things equipment, server, mobile device
CN105867145A (en) * 2016-04-07 2016-08-17 北京精益理想科技有限公司 Intelligent household equipment control method and apparatus
CN107566229A (en) * 2017-08-25 2018-01-09 西安电子科技大学 The packet control process of intelligent domestic system
CN108398888A (en) * 2018-02-26 2018-08-14 四川蓝景光电技术有限责任公司 Intelligent home furnishing control method, control device and intelligent home control system
CN108781174B (en) * 2018-05-31 2021-09-17 深圳市蚂蚁雄兵物联技术有限公司 Device connection method and device, electronic device and readable storage medium
CN108829076B (en) * 2018-09-12 2021-01-26 泛联(北京)科技有限公司 Intelligent equipment grouping linkage control method and system
CN109753034B (en) * 2018-12-10 2021-12-07 深圳绿米联创科技有限公司 Control method, control device, electronic equipment and storage medium
CN110167100A (en) * 2019-05-27 2019-08-23 重庆邮电大学 The selection method of relay node in a kind of Internet of Things

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102271292A (en) * 2010-06-02 2011-12-07 索尼公司 Control device, control method, and program
CN105807618A (en) * 2014-12-29 2016-07-27 联想(北京)有限公司 Control method and first central control device
CN107976911A (en) * 2016-10-24 2018-05-01 腾讯科技(深圳)有限公司 Apparatus control method, apparatus and system

Also Published As

Publication number Publication date
CN111176130A (en) 2020-05-19

Similar Documents

Publication Publication Date Title
CN111176130B (en) Equipment control method, equipment control method and equipment control system
US20240073266A1 (en) Audio Playback Network Joining
JP6207646B2 (en) System and method for connecting an audio controller to a hidden audio network
EP2932798B1 (en) Decentralized intelligent nodal lighting system
US20130136033A1 (en) One-click connect/disconnect feature for wireless devices forming a mesh network
CN105766016B (en) Method and apparatus for inter-profile debugging in a network
CN115334496A (en) Method for discovering and distributing network, electronic equipment and system
JP2015523035A (en) Device and service discovery method and device middleware
CN103248543B (en) Code verification method, code verification control equipment and code verification equipment
EP4008118B1 (en) Secure path discovery in a mesh network
CN108353442B (en) Delegating a second network using a network
CN109890065A (en) A kind of network-building method and system of household appliance
WO2017073667A1 (en) Audio device, audio apparatus, control method, and program
CN108289288A (en) A kind of method, apparatus of communication, communication equipment and storage medium
CN105812185A (en) Communication connection method for playing device
CN113794996B (en) Device communication, device control method, device, electronic device, and storage medium
CN105828253A (en) Wireless connection control method and device in audio playing system
WO2014051430A1 (en) Method and apparatus for transmitting, receiving and forwarding a gossip message using a gossip network
JP2011521492A (en) Wireless personal area network method
JP7405753B2 (en) Commissioning method and apparatus with controlled participation mode
WO2023151423A1 (en) Device connection method and apparatus, device, and storage medium
WO2021017053A1 (en) Network distribution control method and apparatus, household appliance, and storage medium
CN113395743A (en) Device connection method and system, corresponding terminal device and networking method
WO2022042170A1 (en) Iot device and authorization method therefor
CN112672335A (en) Bluetooth broadcast encryption communication method

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
GR01 Patent grant
GR01 Patent grant