Equipment grouping method of local network, terminal and equipment
Through the intelligent control terminal, the distribution and grouping of intelligent devices is sequentially based on the signal strength, the problem of difficulty in grouping smart devices in the local network is solved and accurate and flexible grouping operations are achieved.
Patent Information
- Application Number
- CN202411133835.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-16
- Publication Date
- 2024-11-26
AI Technical Summary
In local network scenarios, especially when the Internet network is restricted or completely offline, it is difficult to accurately group a large number of smart devices in areas. The existing methods require multiple switching devices, which is prone to packet confusion.
The intelligent control terminal monitors the undistributed network information of the smart device and distributes and packets in sequence based on the signal strength from high to low, avoids switching equipment multiple times and ensures packet accuracy.
After the intelligent device is powered on uniformly, the intelligent control terminals can distribute networks and packets in turn, improving the flexibility and accuracy of packets, avoiding packet chaos, and simplifying the operation process.
Smart Images

Figure CN119030813A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a device grouping method, terminal and device of a local network. Background Art
[0002] In the current era of rapid development of smart devices and smart systems, various smart devices (such as smart lights, smart switches, smart sensors, etc.), smart networks and smart systems are emerging in an endless stream. However, all kinds of smart devices need to be configured with the network before they can be used. In the scenario of local network and in the scenario where the Internet network is limited or completely offline, when a single smart device or multiple smart devices are not grouped by region, it is very convenient to complete the network configuration with one click.
[0003] However, in the local network scenario and in the scenario where the Internet network is limited or completely offline, when a large number of smart devices need to be configured and grouped according to regional requirements, it is difficult to accurately group the smart devices. Specifically, when grouping a large number of smart devices in the local network, the smart devices that need to be grouped into the same group must first be powered on, and other smart devices must be powered off. Then, the smart control terminal must be used to configure the network and group the powered-on smart devices, and then the above-mentioned power-on, power-off, network distribution, and grouping operations must be repeated until all devices are grouped. However, this grouping method requires a large number of smart devices to be switched on and off multiple times, which can easily lead to confusion during grouping. And in this way, there must be no smart devices that need to be grouped into other groups in the power-on circuit where the smart devices that need to be grouped into the same group are located. Otherwise, when the power-on circuit is powered on, the smart control terminal will group the smart devices in the power-on circuit into the same group, and then the smart devices cannot be accurately grouped.
[0004] Therefore, there is an urgent need to provide a device grouping method that is easy to operate and accurate in grouping. Summary of the invention
[0005] In view of this, the present invention provides a device grouping method, terminal and device in a local network, which can accurately group smart devices.
[0006] In order to solve at least one of the above technical problems, the present invention adopts the following technical solutions:
[0007] According to an embodiment of the present invention, a method for grouping devices in a local network includes an intelligent control terminal and multiple intelligent devices. The method is applied to the intelligent control terminal and includes:
[0008] The intelligent control terminal monitors the unconfigured network information from the intelligent device;
[0009] When monitoring the unconfigured network information sent by multiple smart devices, the smart control terminal configures and groups the multiple smart devices through the local network according to a predetermined rule based on the signal strength of the unconfigured network information from the multiple smart devices.
[0010] In one embodiment of the present invention, configuring and grouping the multiple smart devices according to a predetermined rule includes:
[0011] Smart devices are networked and grouped in descending order according to signal strength.
[0012] In one embodiment of the present invention, configuring and grouping smart devices in descending order according to signal strength includes:
[0013] The intelligent control terminal measures the signal strength of multiple unconfigured network information;
[0014] The intelligent control terminal sorts the corresponding multiple intelligent devices based on the signal strength of the multiple unconfigured network information;
[0015] The intelligent control terminal sends a discovery protocol to the intelligent device with the highest signal strength based on the sorting result;
[0016] When the intelligent control terminal receives the discovery response information sent by the intelligent device, the intelligent control terminal interacts with the intelligent device through the network configuration protocol based on the discovery response information to implement network configuration of the intelligent device;
[0017] The intelligent control terminal groups the intelligent devices that have completed network distribution through the local network;
[0018] After the smart device is grouped, the smart control terminal configures and groups the next smart device based on the sorting result until all the smart devices that send out unconfigured network information are configured and grouped.
[0019] In one embodiment of the present invention, the intelligent control terminal interacts with the intelligent device through the network configuration protocol based on the discovery response information, including:
[0020] The intelligent control terminal sends a network configuration instruction and a network key to the intelligent device;
[0021] When the intelligent control terminal receives the network configuration preparation information sent by the intelligent device, the intelligent control terminal encrypts the network configuration protocol packet based on the network key, wherein the network configuration preparation information is the feedback made by the intelligent device after receiving the network configuration instruction;
[0022] The intelligent control terminal sends the encrypted network configuration protocol packet to the intelligent device;
[0023] The intelligent control terminal receives the network configuration response data sent by the intelligent device to complete the network configuration of the intelligent device, wherein the network configuration response data is generated by the intelligent device after decrypting and executing the network configuration protocol packet according to the network key.
[0024] In one embodiment of the present invention, the intelligent control terminal groups the intelligent devices that have completed network configuration through the local network, including:
[0025] The intelligent control terminal sends a grouping instruction to the intelligent device that has completed the network configuration;
[0026] When the intelligent control terminal receives the grouping preparation information sent by the intelligent device, the intelligent control terminal encrypts the grouping protocol packet based on the network key, wherein the grouping preparation information is the feedback made by the intelligent device after receiving the grouping instruction;
[0027] The intelligent control terminal sends the encrypted packet protocol packet to the intelligent device;
[0028] The intelligent control terminal receives the grouping response data sent by the intelligent device to complete the grouping of the intelligent device, wherein the grouping response data is generated by the intelligent device after decrypting and executing the grouping protocol packet according to the network key.
[0029] Another aspect of the present invention further provides a method for grouping devices in a local network, wherein the local network includes an intelligent control terminal and a plurality of intelligent devices, and the method is applied to the intelligent devices, and the method includes:
[0030] The smart device sends the unconfigured network information to the smart control terminal according to its own status, wherein the unconfigured network information is generated by the smart device based on its own device data;
[0031] Based on the unconfigured network information, the smart devices are configured with the smart control terminal through the local network according to the predetermined rules, and the smart control terminal completes the grouping.
[0032] In one embodiment of the present invention, the predetermined rule is that the intelligent control terminal configures and groups the intelligent devices in order from high to low according to the signal strength of the unconfigured network information from the multiple intelligent devices.
[0033] In one embodiment of the present invention, the intelligent device configures the network with the intelligent control terminal through the local network according to a predetermined rule based on the unconfigured network information and the intelligent control terminal completes the grouping, which includes:
[0034] The smart device monitors the discovery protocol sent by the smart control terminal, wherein the discovery protocol is sent to the smart device with the highest signal strength based on the sorting result after the smart control terminal measures the signal strength of the unconfigured network information sent by multiple smart devices and sorts them;
[0035] When the smart device receives the discovery protocol sent by the smart control terminal to the smart device, the smart device executes the discovery protocol and sends discovery response information to the smart control terminal;
[0036] The smart device interacts with the smart control terminal through a network configuration protocol, thereby realizing network configuration of the smart device, wherein the network configuration protocol is triggered by the smart control terminal based on the discovery response information;
[0037] After the smart device completes the network configuration, the smart device interacts with the smart control terminal via the local network using a grouping protocol so that the smart control terminal completes the grouping.
[0038] In one embodiment of the present invention, the interaction of the network configuration protocol between the smart device and the smart control terminal includes:
[0039] The smart device receives a network configuration instruction and a network key sent by the smart control terminal, wherein the network configuration instruction and the network key are triggered by the smart control terminal based on the discovery response information;
[0040] When the smart device completes the verification of the network configuration instruction and the network key, the smart device sends the network configuration preparation information to the smart control terminal;
[0041] The smart device monitors the encrypted network configuration protocol packet sent by the smart control terminal, and the encrypted network configuration protocol packet is obtained by the smart control terminal encrypting the network configuration protocol packet using the network key after receiving the network configuration preparation information of the smart device;
[0042] When the smart device receives the encrypted network configuration protocol packet sent by the smart control terminal, the smart device decrypts the network configuration protocol packet using the network key and generates network configuration response data after execution;
[0043] The smart device sends the network configuration response data to the smart control terminal to complete the network configuration of the smart device.
[0044] In one embodiment of the present invention, the intelligent device interacts with the intelligent control terminal via a local network using a packet protocol, including:
[0045] The intelligent device receives a grouping instruction sent by the intelligent control terminal;
[0046] When the intelligent device completes verification of the grouping instruction, the intelligent device sends grouping preparation information to the intelligent control terminal;
[0047] The smart device monitors the encrypted packet protocol packet sent by the smart control terminal, and the encrypted packet protocol packet is obtained by the smart control terminal encrypting the packet protocol packet using a network key after receiving the packet preparation information of the smart device;
[0048] When the smart device receives the encrypted packet protocol packet sent by the smart control terminal, the smart device decrypts the packet protocol packet using the network key and generates packet response data after execution;
[0049] The smart device sends the grouping response data to the smart control terminal so that the smart control terminal completes the grouping of the smart device.
[0050] Another aspect of the present invention further provides an intelligent control terminal, comprising:
[0051] A monitoring module, which is used to monitor the unconfigured network information sent by multiple smart devices;
[0052] A signal strength detection module, which is used to detect the received signal strength of unconfigured network information sent by multiple smart devices;
[0053] The terminal network configuration module is used to configure the network of multiple smart devices through the local network according to a predetermined rule based on the received signal strength of the unconfigured network information sent by the multiple smart devices;
[0054] The terminal grouping module is used to group multiple smart devices that have completed network configuration according to predetermined rules through the local network.
[0055] Another aspect of the present invention further provides a smart device, comprising:
[0056] An information generation module, which is used to generate unconfigured network information based on its own device data;
[0057] A sending module, which is used to send unconfigured network information to the intelligent control terminal according to its own status;
[0058] The equipment network configuration module is used to configure the network with the intelligent control terminal through the local network according to the predetermined rules based on the unconfigured network information;
[0059] The device grouping module is used to interact with the intelligent control terminal through the local network after network configuration to perform grouping protocol so that the intelligent control terminal can complete the grouping of the intelligent device.
[0060] Another aspect of the present invention further provides a local network device grouping system, comprising:
[0061] An intelligent control terminal, which is any one of the intelligent control terminals in the above embodiments;
[0062] Multiple smart devices, where the smart device is any one of the smart devices in the above embodiments.
[0063] The above technical solution of the present invention has at least one of the following beneficial effects:
[0064] In the device grouping method of the local network of the present invention, all the multiple smart devices can be powered on first, and the smart control terminal can perform network configuration and grouping of the smart devices in order from high to low according to the signal strength of the unconfigured network information sent by the multiple smart devices through the local network. Since the method of the embodiment of the present invention does not need to switch multiple smart devices on and off multiple times, but after the smart devices are uniformly powered on, the smart control terminal performs network configuration and grouping of the smart devices based on the signal strength of the unconfigured network information sent by the multiple smart devices, thereby avoiding the situation of grouping confusion. In addition, in the method of the embodiment of the present invention, the smart control terminal can perform network configuration and grouping of the smart devices in order from high to low according to the signal strength of the unconfigured network information sent by the multiple smart devices. On the one hand, there is no need to consider whether the smart devices are in the same power-on circuit, which can effectively improve the flexibility of grouping the smart devices. On the other hand, since the smart control terminal can perform network configuration and grouping operations on each smart device separately in turn, the accuracy of grouping the smart devices can be effectively improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 A schematic diagram of an implementation environment provided for an embodiment of the present invention;
[0066] Figure 2 A flowchart of a method for grouping devices in a local network provided by an embodiment of the present invention;
[0067] Figure 3 A flowchart of step S220 in a method for grouping devices in a local network provided by an embodiment of the present invention;
[0068] Figure 4 A flowchart of step S221 in a method for grouping devices in a local network provided by an embodiment of the present invention;
[0069] Figure 5 A flowchart of step S2214 in a method for grouping devices in a local network provided by an embodiment of the present invention;
[0070] Figure 6 A flowchart of step S2215 in a method for grouping devices in a local network provided by an embodiment of the present invention;
[0071] Figure 7 A flowchart of a method for grouping devices in a local network provided by another embodiment of the present invention;
[0072] Figure 8 A flowchart of step S320 in a method for grouping devices in a local network provided by another embodiment of the present invention;
[0073] Fig. 9A flowchart of step S323 in a method for grouping devices in a local network provided by another embodiment of the present invention;
[0074] Fig.10 A flowchart of step S324 in a method for grouping devices in a local network provided by another embodiment of the present invention;
[0075] Fig.11 A flowchart of a method for grouping gateways and smart lamps in a local network provided by another embodiment of the present invention;
[0076] Fig.12 A flow chart of network configuration and grouping of intelligent devices by an intelligent control terminal in some embodiments of the present invention;
[0077] Fig.13 A schematic diagram of the structure of an intelligent control terminal provided by an embodiment of the present invention;
[0078] Fig.14 A schematic diagram of the structure of an intelligent device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0079] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution of the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings of the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all of the embodiments. Based on the described embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of the present invention.
[0080] First, a method for grouping devices in a local network according to an embodiment of the present invention is described in detail below with reference to the accompanying drawings.
[0081] Figure 1 FIG. 1 is a schematic diagram of an implementation environment provided by an embodiment of the present invention. Figure 1 As shown, the implementation environment may include an intelligent control terminal 110 ( Figure 1 In the example, the case where the intelligent control terminal 110 is a gateway) and at least one intelligent device 120 ( Figure 1 In the example, the case where the smart device 120 is a smart lamp is shown, and the smart control terminal 110 and each smart device 120 can be connected via wireless communication. The smart control terminal 110 can be, but is not limited to, various gateways, personal computers, laptops, smart phones, tablet computers, portable wearable devices, etc. In addition to being a smart lamp, the smart device 120 can also be various local smart devices, such as a television, an air conditioner, a refrigerator, a sweeper, a water heater, etc., which is not limited in the embodiment of the present invention.
[0082] In an embodiment of the present invention, first, all of the multiple smart devices 120 can be powered on, and then the smart control terminal 110 can monitor the unconfigured network information generated based on the self-information sent by the multiple smart devices 120. In the case of monitoring the unconfigured network information sent by multiple smart devices 120, the smart control terminal 110 can perform network configuration and grouping of the smart devices 120 in sequence according to the predetermined rule of signal strength from high to low based on the signal strength of the unconfigured network information from the multiple smart devices 120 through the local network. In the embodiment of the present invention, since there is no need to switch the smart devices 120 on and off multiple times, but after the smart devices 120 are uniformly powered on, the smart control terminal 110 performs network configuration and grouping of the smart devices 120 based on the signal strength of the unconfigured network information sent by the multiple smart devices 120, which can avoid the situation of grouping confusion. In addition, since the smart control terminal 110 performs network configuration and grouping of the smart devices 120 in sequence according to the signal strength of the unconfigured network information sent by the multiple smart devices 120 from high to low, it is not necessary to consider whether the smart devices 120 are in the same power-on circuit, which can effectively improve the flexibility of grouping of the smart devices 120. At the same time, since the intelligent control terminal 110 can perform network configuration and grouping operations on each intelligent device 120 separately in turn, the accuracy of grouping the intelligent devices 120 can be effectively improved.
[0083] Figure 2 A method for grouping devices in a local network provided by an embodiment of the present invention is shown. The local network includes an intelligent control terminal and multiple intelligent devices. The method can be applied to Figure 1 Specifically, Figure 2 As shown, the method may include the following steps:
[0084] S210, the intelligent control terminal monitors the unconfigured network information from the intelligent device.
[0085] In the embodiment of the present invention, after the smart device is powered on, it will generate unconfigured network information based on its own information and periodically broadcast the unconfigured network information. The unconfigured network information may include the device identifier, device type, network configuration status, etc. of the smart device. At this time, the smart control terminal can monitor the unconfigured network information periodically broadcast by multiple smart devices on the channel to prepare for subsequent network configuration and grouping.
[0086] S220, when monitoring the unconfigured network information sent by the multiple smart devices, the smart control terminal configures and groups the multiple smart devices through the local network according to a predetermined rule based on the signal strength of the unconfigured network information from the multiple smart devices.
[0087] In the embodiment of the present invention, the local network composed of the intelligent control terminal and the intelligent devices can communicate based on communication technologies such as Bluetooth, Zigbee or WiFi, which is not limited here. After the intelligent control terminal monitors the unconfigured network information sent by multiple intelligent devices, the intelligent control terminal can measure the signal strength of each unconfigured network information respectively, and configure and group multiple intelligent devices according to predetermined rules based on the signal strength of the unconfigured network information.
[0088] In one possible embodiment, reference Figure 3 , the step S220 may include:
[0089] S221, network matching and grouping of smart devices are performed in descending order according to signal strength.
[0090] In this embodiment, the intelligent control terminal can measure the signal strength of the unconfigured network information sent by multiple smart devices respectively, and first configure the network and group with the smart device with the highest signal strength. After completing the configuration and grouping operation of the smart device, the intelligent control terminal configures and groups the remaining smart devices in order according to the ranking order of signal strength. In this way, the flexibility and accuracy of grouping smart devices are effectively improved. Of course, in some other embodiments of the present invention, the configuration and grouping of the multiple smart devices according to predetermined rules can also be that the intelligent control terminal configures and groups multiple smart devices whose signal strength is within a predetermined range at one time, or the intelligent control terminal predetermines the grouping rules according to the device type, device physical area, etc. contained in the unconfigured network information and configures and groups in turn according to the grouping rules. The above two predetermined rules are only exemplary rules, and the embodiments of the present invention do not impose specific restrictions on this.
[0091] Below Figure 1 Taking the example where the intelligent control terminal 110 is a gateway and the intelligent devices 120 are three groups of intelligent lamps, step S221 is specifically described.
[0092] In one possible embodiment, reference Figure 4 , the step S221 may include:
[0093] S2211, the gateway measures the signal strength of the unconnected network information sent by the three groups of smart lamps.
[0094] In this embodiment, the gateway can measure the signal strength values (Received Signal Strength Indicator, RSSI) of the unconfigured information sent by the three groups of smart lamps respectively. The higher the signal strength value, the stronger the signal strength of the smart lamp that sent the unconfigured information. After the measurement, the gateway measured that the signal strength of the unconfigured information sent by lamp No. 1 was -30dBm, the signal strength of the unconfigured information sent by lamp No. 2 was -40dBm, and the signal strength of the unconfigured information sent by lamp No. 3 was -50dBm. In addition, in order to improve the accuracy of the signal strength measurement, the gateway can measure the signal strength of each smart lamp multiple times and take the average value. In this way, the signal fluctuation caused by environmental interference can be reduced.
[0095] S2212: The gateway sorts the three groups of smart lamps corresponding to the three unconfigured network information based on their signal strengths.
[0096] In this embodiment, the gateway can sort the three groups of smart lamps according to the rule of signal strength from high to low, and then network and group the three groups of smart lamps in the order of lamp No. 1 (corresponding to the strongest signal strength of the unconfigured information), lamp No. 2 (corresponding to the second strongest signal strength of the unconfigured information), and lamp No. 3 (corresponding to the weakest signal strength of the unconfigured information). In some other embodiments of the present invention, the gateway can also network and group multiple smart lamps whose signal strength is within a predetermined range at one time according to the sorting results, or can predetermine the grouping rules according to the device type and physical area of the device contained in the unconfigured information and perform network and grouping in sequence according to the grouping rules to improve the flexibility of network and grouping. The above two predetermined rules are only exemplary rules, and the embodiments of the present invention do not impose specific restrictions on this.
[0097] S2213: The gateway sends a discovery protocol to lamp No. 1 with the highest signal strength based on the sorting result.
[0098] In this embodiment, the intelligent control terminal can send a discovery protocol to the No. 1 lamp with the strongest signal strength of the unconfigured network information, wherein the discovery protocol includes parameters such as device identification and action instructions. After the No. 1 lamp receives the discovery protocol, the No. 1 lamp can execute the action instructions in the discovery protocol to flash or emit a beep to remind the operator to use the gateway to perform the next network configuration action, and at the same time generate a discovery response message and send it to the gateway.
[0099] S2214, when the gateway receives the discovery response information sent by lamp No. 1, the gateway interacts with the lamp No. 1 through the network configuration protocol based on the discovery response information to implement the network configuration of lamp No. 1.
[0100] In this embodiment, when the gateway receives the discovery response information sent by lamp No. 1, it will flash to remind the operator. At the same time, lamp No. 1 will also flash or make a beep to remind the operator to use the gateway to perform the next network configuration action.
[0101] S2215, the gateway groups the No. 1 lamps that have completed the network distribution through the local network.
[0102] In this embodiment, after the gateway completes the network configuration of lamp No. 1, it can further interact with lamp No. 1 via grouping protocol packets to complete the grouping of lamp No. 1.
[0103] S2216, after the grouping of lamp No. 1 is completed, the gateway configures the network and groups the next smart lamp based on the sorting result until all the smart lamps that send out unconfigured network information are configured and grouped.
[0104] In the embodiment of the present invention, after completing the network configuration and grouping of lamp No. 1, the gateway can continue to perform network configuration and grouping on lamp No. 2 and lamp No. 3 in sequence based on the sorting result, that is, the gateway can loop through steps S2213 to S2215 until lamp No. 2 and lamp No. 3 complete network configuration and grouping. Since the gateway can perform network configuration and grouping operations on each smart lamp in sequence, the accuracy of grouping smart lamps can be effectively improved.
[0105] In one possible embodiment, reference Figure 5 , the step S2214 may include:
[0106] S22141, the gateway sends a network configuration instruction and a network key to lamp No. 1.
[0107] In one embodiment of the present invention, the gateway can generate multiple network keys and multiple indexes corresponding to the multiple network keys based on its own unique information. For example, the gateway can generate multiple network keys M1-Mn and multiple indexes Index 1-Index n corresponding to the network keys M1-Mn respectively through an encryption algorithm based on its own unique information such as MAC address and global unique identifier UUID. In other words, lamp No. 1 can index the corresponding network key using the index sent by the gateway, for example, the corresponding network key M2 can be indexed using index Index 2. Since multiple network keys and multiple indexes corresponding to multiple network keys are used, even if one network key is cracked, the other network keys are still safe. Since the network configuration information and interaction information only contain indexes and the keys used for each communication are different, it is difficult for the cracker to successfully decrypt the intercepted command by repeatedly using the cracked key, which reduces the possibility of the local network system being hacked and effectively improves the security of the local network.
[0108] S22142, when the gateway receives the network configuration preparation information sent by lamp No. 1, the gateway encrypts the network configuration protocol packet based on the network key, wherein the network configuration preparation information is the feedback made by lamp No. 1 after receiving the network configuration instruction.
[0109] In one embodiment of the present invention, when lamp No. 1 receives a network configuration instruction, multiple network keys and multiple indexes, it will confirm whether the multiple network keys and multiple indexes are complete, and after confirming that they are complete, it will broadcast network configuration preparation information used to indicate that it is ready for network configuration. After receiving the network configuration preparation information, the gateway can randomly select a first index from the multiple indexes, and index the corresponding first network key from the multiple network keys according to the first index, encrypt the network configuration protocol packet by the first network key, and add the first index corresponding to the first network key to the header of the encrypted network configuration protocol packet before sending the network configuration protocol packet to lamp No. 1.
[0110] S22143, the gateway sends the encrypted network distribution protocol packet to lamp No. 1.
[0111] S22144, the gateway receives the network configuration response data sent by lamp No. 1 to complete the network configuration of lamp No. 1, wherein the network configuration response data is generated by lamp No. 1 after decrypting and executing the network configuration protocol packet according to the network key.
[0112] In one embodiment of the present invention, after receiving the encrypted network configuration protocol packet, lamp No. 1 can read the first index in the header of the network configuration protocol packet, and retrieve the corresponding first network key from the multiple network keys pre-stored in itself according to the first index to decrypt the encrypted network configuration protocol packet. Then lamp No. 1 can configure its own network in response to the network configuration protocol in the network configuration protocol packet, generate network configuration response data and send the network configuration response data to the gateway. After receiving the network configuration response data sent by lamp No. 1, the gateway completes the network configuration of lamp No. 1.
[0113] Of course, in some other embodiments of the present invention, the gateway may also only generate a set of periodically updated fixed network keys, and encrypt the network configuration protocol packet by the fixed network key to reduce the computing power consumption of the gateway, which is not limited here.
[0114] In one possible embodiment, reference Figure 6 , the step S2215 may include:
[0115] S22151, the gateway sends a grouping instruction to lamp No. 1 that has completed network distribution.
[0116] S22152, when the gateway receives the grouping preparation information sent by lamp No. 1, the gateway encrypts the grouping protocol packet based on the network key, wherein the grouping preparation information is the feedback made by lamp No. 1 after receiving the grouping instruction.
[0117] In one embodiment of the present invention, the gateway can randomly select a second index from multiple indexes that does not overlap with the first index, index a corresponding second network key from multiple network keys according to the second index, encrypt the grouping protocol packet using the second network key, and then add the second index corresponding to the second network key to the header of the encrypted grouping protocol packet, wherein the grouping protocol packet contains grouping information for grouping lamp No. 1.
[0118] S22153, the gateway sends the encrypted group protocol packet to lamp No. 1.
[0119] S22154, the gateway accepts the grouping response data sent by lamp No. 1 to complete the grouping of lamp No. 1, wherein the grouping response data is generated by lamp No. 1 after decrypting and executing the grouping protocol packet according to the network key.
[0120] In one embodiment of the present invention, after receiving the encrypted packet protocol packet, lamp No. 1 can read the second index in the packet protocol packet header, and retrieve the corresponding second network key from the plurality of network keys pre-stored in itself according to the second index to decrypt the encrypted packet protocol packet. Then lamp No. 1 can group itself in response to the packet protocol in the packet protocol packet and generate packet response data. After receiving the packet response data sent by lamp No. 1, the gateway completes the grouping of lamp No. 1.
[0121] Figure 7 A device grouping method for a local network provided by another embodiment of the present invention is shown. The local network includes an intelligent control terminal and multiple intelligent devices. The method can be applied to Figure 1 In the smart device 120, the following Figure 1 In the example, the intelligent control terminal 110 is a gateway, the intelligent device 120 is three groups of intelligent lamps, and lamp No. 1 among the three groups of intelligent lamps is the intelligent lamp with the highest signal strength, and steps S310-S320 are specifically described. Figure 7 As shown, the method may include the following steps:
[0122] S310, lamp No. 1 sends network unconfigured information to the gateway according to its own status, wherein the network unconfigured information is generated by lamp No. 1 based on its own device data.
[0123] In the embodiment of the present invention, after being powered on, lamp No. 1 will generate unconfigured network information based on its own information and periodically broadcast the unconfigured network information. The unconfigured network information may include the device identifier, device type, and network configuration status of lamp No. 1.
[0124] S320, based on the unconfigured network information, the lamp No. 1 is configured with the gateway through the local network according to a predetermined rule, and the gateway completes the grouping.
[0125] In the embodiment of the present invention, after the gateway monitors the unconfigured network information sent by multiple smart lamps, the gateway can measure the signal strength of each unconfigured network information respectively. After the measurement, the gateway measures that the signal strength of the unconfigured network information sent by lamp No. 1 is -30dBm, the signal strength of the unconfigured network information sent by lamp No. 2 is -40dBm, and the signal strength of the unconfigured network information sent by lamp No. 3 is -50dBm, that is, the signal strength of the unconfigured network information sent by lamp No. 1 is the strongest. At this time, the gateway can configure the network and group the lamp No. 1 with the highest signal strength according to the predetermined rules.
[0126] In one embodiment of the present invention, the predetermined rule is that the gateway configures and groups the smart lamps in order from high to low according to the signal strength of the unconfigured information from the multiple smart lamps.
[0127] Specifically, the gateway can determine the smart lamp that sends the unconfigured information based on the device identifier contained in the unconfigured information with the highest signal strength, and first configure the network and group with the smart lamp. After completing the configuration and grouping operations of the smart lamp, the gateway configures the network and groups other smart lamps in turn according to the ranking of signal strength. In this way, the flexibility and accuracy of grouping smart lamps are effectively improved. Of course, in some other embodiments of the present invention, configuring the network and grouping of the multiple smart lamps according to the predetermined rules may also be that the gateway configures the network and groups multiple smart lamps whose signal strength is within a predetermined range at one time, or the gateway may predetermine the grouping rules based on the device type, device physical area, etc. contained in the unconfigured information and configure the network and group in turn according to the grouping rules. The above two predetermined rules are only exemplary rules, and the embodiments of the present invention do not impose specific restrictions on this.
[0128] In one possible embodiment, reference Figure 8 , the step S320 may include:
[0129] S321, lamp No. 1 monitors the discovery protocol sent by the gateway, wherein the discovery protocol is sent to the lamp No. 1 with the highest signal strength based on the sorting result after the gateway measures the signal strength of the unconfigured network information sent by multiple lamps No. 1 and sorts them.
[0130] In this embodiment, the gateway can send the discovery protocol to the No. 1 lamp with the strongest signal strength of the unconfigured network information first according to the sorting result. The discovery protocol may include parameters such as device identification and action instructions.
[0131] S322, when lamp No. 1 receives the discovery protocol sent by the gateway to lamp No. 1, lamp No. 1 executes the discovery protocol and sends discovery response information to the gateway.
[0132] In this embodiment, after lamp No. 1 accepts the discovery protocol, lamp No. 1 can execute the action instructions in the discovery protocol to flash or emit a buzzer to remind the operator to use the gateway to perform the next network configuration action, and at the same time generate a discovery response message and send it to the gateway.
[0133] S323, the lamp No. 1 interacts with the gateway through the network distribution protocol, thereby realizing the network distribution of the lamp No. 1, wherein the network distribution protocol is triggered by the gateway based on the discovery response information.
[0134] In this embodiment, after receiving the discovery response information, the gateway will trigger the generation of the network configuration protocol. At this time, lamp No. 1 can interact with the gateway through the network configuration protocol to achieve network configuration of lamp No. 1.
[0135] S324, after the lamp No. 1 completes the network distribution, the lamp No. 1 interacts with the gateway via the local network through the grouping protocol so that the gateway completes the grouping.
[0136] In one embodiment of the present invention, after completing the network distribution, lamp No. 1 may further interact with the gateway via a packet protocol packet to complete the grouping of lamp No. 1.
[0137] In one possible embodiment, reference Fig. 9 , the step S323 may include:
[0138] S3231, lamp No. 1 receives the network configuration instruction and network key sent by the gateway, wherein the network configuration instruction and network key are triggered by the gateway based on the discovery response information.
[0139] In the embodiment of the present invention, after receiving the discovery response information sent by lamp No. 1, the gateway can generate multiple network keys and multiple indexes corresponding to the multiple network keys based on its own unique information, and send the multiple network keys and multiple indexes corresponding to the multiple network keys to lamp No. 1. Lamp No. 1 can store the multiple network keys sent by the gateway and the multiple indexes corresponding to the multiple network keys in its own directory, and then use the index to index the corresponding key from the multiple network keys. When lamp No. 1 is configuring the network with the gateway, it can select the corresponding key from the pre-stored multiple network keys according to the index in the encrypted information packet sent by the gateway, and decrypt the information packet sent by the gateway to complete the network configuration.
[0140] S3232: When lamp No. 1 completes the verification of the network configuration instruction and the network key, lamp No. 1 sends network configuration preparation information to the gateway.
[0141] In an embodiment of the present invention, when lamp No. 1 receives a network configuration instruction, multiple network keys, and multiple indexes, it will confirm whether the signature and format of the network configuration instruction are correct, and confirm whether the multiple network keys and multiple indexes are complete, and after the confirmation is completed, it will broadcast the network configuration preparation information to indicate that it is ready for network configuration.
[0142] S3233, lamp No. 1 monitors the encrypted network configuration protocol packet sent by the gateway. The encrypted network configuration protocol packet is obtained by the gateway encrypting the network configuration protocol packet using the network key after receiving the network configuration preparation information of lamp No. 1.
[0143] In an embodiment of the present invention, after receiving the network configuration preparation information of lamp No. 1, the gateway can randomly select a first index from multiple indexes, and index the corresponding first network key from multiple network keys according to the first index, encrypt the network configuration protocol packet by the first network key, and add the first index corresponding to the first network key to the header of the encrypted network configuration protocol packet before sending the network configuration protocol packet to lamp No. 1.
[0144] S3234, when lamp No. 1 receives the encrypted network configuration protocol packet sent by the gateway, lamp No. 1 decrypts the network configuration protocol packet using the network key and generates network configuration response data after execution.
[0145] In the embodiment of the present invention, lamp No. 1 can obtain the corresponding first network key from the pre-stored multiple network keys according to the first index in the header of the network configuration protocol packet, and use the first network key to decrypt the network configuration protocol packet. Then lamp No. 1 can execute the network configuration protocol in the network configuration protocol packet to configure its own network and generate network configuration response data.
[0146] S3235, lamp No. 1 sends the network configuration response data to the gateway to complete the network configuration of lamp No. 1.
[0147] In one possible embodiment, reference Fig.10 , the step S324 may include:
[0148] S3241, lamp No. 1 receives the grouping instruction sent by the gateway.
[0149] S3242: When lamp No. 1 completes verification of the grouping instruction, lamp No. 1 sends grouping preparation information to the gateway.
[0150] In the embodiment of the present invention, when lamp No. 1 receives the grouping instruction, it will confirm whether the signature and format of the grouping instruction are correct, and after confirming that they are correct, it will broadcast the grouping preparation information used to indicate that it is ready to perform grouping.
[0151] S3243, lamp No. 1 monitors the encrypted packet protocol packet sent by the gateway, and the encrypted packet protocol packet is obtained by the gateway encrypting the packet protocol packet using the network key after receiving the packet preparation information from lamp No. 1.
[0152] In the embodiment of the present invention, after receiving the broadcast grouping preparation information of lamp No. 1, the gateway can randomly select a second index that is not repeated with the first index from multiple indexes, index the corresponding second network key from multiple network keys according to the second index, and encrypt the grouping protocol packet by the second network key, and then add the second index corresponding to the second network key to the header of the encrypted grouping protocol packet, wherein the grouping protocol packet includes the grouping information for grouping lamp No. 1. Lamp No. 1 can monitor the channel to obtain the encrypted grouping protocol packet sent by the gateway.
[0153] S3244, when lamp No. 1 receives the encrypted packet protocol packet sent by the gateway, lamp No. 1 decrypts the packet protocol packet using the network key and generates packet response data after execution.
[0154] In the embodiment of the present invention, lamp No. 1 can index the corresponding second network key from the pre-stored multiple network keys according to the second index in the packet protocol packet header, and use the second network key to decrypt the packet protocol packet. Then lamp No. 1 can execute the packet protocol in the packet protocol packet to group itself and generate packet response data.
[0155] S3245, lamp No. 1 sends the grouping response data to the gateway so that the gateway completes the grouping of lamp No. 1.
[0156] Fig.11 FIG. 1 is a flow chart showing a method for grouping gateways and smart lamps in a local network provided by another embodiment of the present invention. This embodiment is described by taking a local network consisting of a gateway and three groups of smart lamps as an example. Specifically, Fig.11 As shown, the method may include the following steps:
[0157] S410, the gateway monitors the unconnected network information from the three groups of smart lamps.
[0158] In this embodiment, after being powered on, the three groups of smart lamps will generate unconfigured network information based on their own information and periodically broadcast the unconfigured network information. The unconfigured network information may include the device identifier, device type, and network configuration status of the smart lamp. At this time, the gateway can monitor the unconfigured network information periodically broadcast by the three groups of smart lamps on the channel to prepare for subsequent network configuration and grouping.
[0159] S420, when monitoring the unconfigured network information sent by the three groups of smart lamps, the gateway measures the signal strength of the three unconfigured network information.
[0160] In this embodiment, the gateway can measure the signal strength values (Received Signal Strength Indicator, RSSI) of multiple unconfigured network information. The higher the signal strength value, the stronger the signal of the smart lamp that sends the unconfigured network information. In addition, in order to improve the accuracy of signal strength measurement, the gateway can measure the signal strength of each smart lamp multiple times and take the average value. In this way, the signal fluctuation caused by environmental interference can be reduced.
[0161] S430: The gateway sorts the three groups of smart lamps corresponding to the three unconfigured network information based on their signal strengths.
[0162] In this embodiment, after the gateway sorts the three groups of smart lamps corresponding to the three unconfigured network information based on the signal strength of the three unconfigured network information, it can configure the network and group the three groups of smart lamps in the order of lamp No. 1 (the signal strength of the unconfigured network information is the strongest), lamp No. 2 (the second strongest signal strength of the unconfigured network information), and lamp No. 3 (the signal strength of the unconfigured network information is the weakest).
[0163] S440: The gateway sends a discovery protocol to lamp No. 1 having the highest signal strength based on the sorting result.
[0164] In this embodiment, the gateway can send a discovery protocol to lamp No. 1 with the strongest unconfigured network information signal strength. The discovery protocol can include parameters such as device identification and action instructions. After receiving the discovery protocol, lamp No. 1 can execute the action instructions in the discovery protocol to flash or beep to remind the operator to use the gateway to perform the next network configuration action, and at the same time generate a discovery response message and send it to the gateway.
[0165] S450, when the gateway receives the discovery response information sent by lamp No. 1, the gateway interacts with lamp No. 1 via the network configuration protocol based on the discovery response information to implement network configuration of lamp No. 1.
[0166] In this embodiment, when lamp No. 1 sends the discovery response information, it will also flash to remind the operator to use the intelligent control terminal to perform the next network configuration action. When the operator continues to configure the network, the gateway can generate multiple network keys and multiple indexes corresponding to the multiple network keys based on its own unique information. For example, the gateway can generate multiple network keys M1-Mn and multiple indexes Index 1-Index n corresponding to the network keys M1-Mn through an encryption algorithm based on its own unique information such as MAC address and global unique identifier UUID.
[0167] When lamp No. 1 receives the network configuration instruction, multiple network keys and multiple indexes, it will confirm whether the multiple network keys and multiple indexes are complete, and broadcast the network configuration preparation information indicating that it is ready for network configuration after confirming that they are complete. After receiving the network configuration preparation information, the gateway can randomly select a first index from the multiple indexes, and index the corresponding first network key from the multiple network keys according to the first index, encrypt the network configuration protocol packet by the first network key, and add the first index corresponding to the first network key to the header of the encrypted network configuration protocol packet. After receiving the encrypted network configuration protocol packet, lamp No. 1 can read the first index in the header of the network configuration protocol packet, retrieve the corresponding first network key from the multiple network keys pre-stored in itself according to the first index to decrypt the encrypted network configuration protocol packet, and configure its own network in response to the network configuration protocol in the network configuration protocol packet, and generate network configuration response data at the same time. After receiving the network configuration response data sent by lamp No. 1, the gateway completes the network configuration of lamp No. 1.
[0168] S460, the gateway groups the No. 1 lamps that have completed the network distribution through the local network.
[0169] In this embodiment, when lamp No. 1 completes network configuration, the gateway sends a grouping instruction to lamp No. 1 that has completed network configuration. When the gateway receives the grouping preparation information sent by lamp No. 1, the gateway encrypts the grouping protocol packet based on the network key. The grouping protocol packet contains the grouping information for grouping lamp No. 1. The gateway can randomly select a second index that is not repeated with the first index from multiple indexes, and index the corresponding second network key from multiple network keys according to the second index, encrypt the grouping protocol packet by the second network key, and add the second index corresponding to the second network key to the header of the encrypted grouping protocol packet. After receiving the encrypted grouping protocol packet, lamp No. 1 can read the second index in the header of the grouping protocol packet, retrieve the corresponding second network key from multiple network keys pre-stored in itself according to the second index to decrypt the encrypted grouping protocol packet, and group itself in response to the grouping protocol in the grouping protocol packet, and generate grouping response data at the same time. After receiving the grouping response data sent by lamp No. 1, the gateway completes the grouping of lamp No. 1.
[0170] S470, after the grouping of lamp No. 1 is completed, the gateway configures the network and groups the next smart lamp based on the sorting result until all the smart lamps that send out the information of not configuring the network are configured and grouped.
[0171] In the embodiment of the present invention, after the network configuration and grouping of lamp No. 1 are completed, lamp No. 1 stops flashing, and then the gateway can perform network configuration and grouping on lamp No. 2 and lamp No. 3 in sequence based on the sorting result, that is, the gateway will loop through steps S440 to S460 until all three groups of smart lamps have completed network configuration and grouping. Since the gateway can perform network configuration and grouping operations on each smart lamp in sequence, the accuracy of grouping smart lamps can be effectively improved.
[0172] Below Figure 1 In the local network composed of the intelligent control terminal 110 and the intelligent device 120, the intelligent control terminal 110 performs network configuration and grouping on the intelligent device 120, and introduces the local network communication method based on dynamic encryption provided by the embodiment of the present invention in detail, such as Fig.12 Specifically, the method includes:
[0173] S501 , the intelligent control terminal 110 monitors the unconfigured network information sent by the intelligent device 120 .
[0174] In this embodiment, after the smart device 120 is powered on, it will generate unconfigured network information based on its own information and periodically broadcast the unconfigured network information, which may include the device identifier, device type, and network configuration status of the smart device 120. At this time, the smart control terminal 110 can monitor the unconfigured network information periodically broadcast by multiple smart devices 120 on the channel to prepare for subsequent network configuration and grouping.
[0175] S502 , the smart device 120 sends network unconfigured information to the smart control terminal 110 .
[0176] S503 , the smart device 120 monitors the discovery protocol sent by the smart control terminal 110 .
[0177] In this embodiment, after sending the unconfigured network information, the smart device 120 will enter a listening state, waiting for the smart control terminal 110 to send a discovery protocol for network configuration and grouping.
[0178] S504, the intelligent control terminal 110 measures the signal strength of multiple unconfigured network information.
[0179] In this embodiment, the intelligent control terminal 110 can measure the signal strength values (Received Signal Strength Indicator, RSSI) of multiple unconfigured network information. The higher the signal strength value, the stronger the signal of the smart device 120 that sends the unconfigured network information. In addition, in order to improve the accuracy of the signal strength measurement, the intelligent control terminal 110 can measure the signal strength of each smart device 120 multiple times and take the average value. In this way, the signal fluctuation caused by environmental interference can be reduced.
[0180] S505 , the intelligent control terminal 110 sorts the corresponding multiple intelligent devices 120 based on the signal strengths of the multiple unconfigured network information.
[0181] In this embodiment, the intelligent control terminal 110 can preferentially select the intelligent device 120 with the strongest signal strength of the unconfigured network information to perform network configuration and grouping operations according to the sorting results. In this way, the flexibility and accuracy of grouping the intelligent devices 120 can be improved. Of course, the intelligent control terminal 110 can also perform network configuration and grouping for multiple intelligent devices 120 whose signal strength is within a predetermined range at one time according to the sorting results, or can predetermine the grouping rules according to the device type, device physical area, etc. contained in the unconfigured network information and perform network configuration and grouping in sequence according to the grouping rules to improve the flexibility of network configuration and grouping. The above two predetermined rules are only exemplary rules, and the embodiments of the present invention do not impose specific restrictions on this.
[0182] S506 , the intelligent control terminal 110 sends a discovery protocol to the intelligent device 120 with the highest signal strength based on the ranking result.
[0183] In this embodiment, the intelligent control terminal 110 may send a discovery protocol to the intelligent device 120 with the highest signal strength. The discovery protocol may include parameters such as device identification and action instructions.
[0184] S507 , the smart device 120 executes a discovery protocol.
[0185] In this embodiment, the smart device 120 with the highest signal strength can execute the action instruction in the discovery protocol to flash or emit a buzzer to remind the operator to use the smart control terminal 110 to perform the next network configuration action, and generate discovery response information at the same time.
[0186] S508 , the smart device 120 sends a discovery response message to the smart control terminal 110 .
[0187] S509 , the intelligent control terminal 110 sends a network configuration instruction and a network key to the intelligent device 120 .
[0188] In this embodiment, the intelligent control terminal 110 can generate multiple network keys and multiple indexes corresponding to the multiple network keys based on its own unique information. For example, the intelligent control terminal 110 can generate multiple network keys M1-Mn and multiple indexes Index 1-Index n corresponding to the network keys M1-Mn respectively through an encryption algorithm based on its own unique information such as MAC address and global unique identifier UUID. In other words, the smart device 120 can use the index to index the corresponding network key, for example, the corresponding network key M2 can be indexed using index Index 2. Since multiple network keys and multiple indexes corresponding to multiple network keys are used, even if one network key is cracked, the other network keys are still safe. Since the network configuration information and interaction information only contain indexes and the keys used for each communication are different, it is difficult for the cracker to successfully decrypt the intercepted command by repeatedly using the cracked key, which reduces the possibility of the local network system being hacked and effectively improves the security of the local network.
[0189] S510 , the smart device 120 sends network configuration preparation information to the smart control terminal 110 .
[0190] In this embodiment, when the smart device 120 receives a network configuration instruction, multiple network keys, and multiple indexes, it will confirm whether the signature and format of the network configuration instruction are correct, and confirm whether the multiple network keys and multiple indexes are complete, and after the confirmation is completed, it will broadcast the network configuration preparation information to indicate that it is ready for network configuration.
[0191] S511, the intelligent control terminal 110 encrypts the network configuration protocol packet based on the network key.
[0192] In this embodiment, after receiving the network configuration preparation information, the intelligent control terminal 110 can randomly select a first index from multiple indexes, and index the corresponding first network key from multiple network keys according to the first index, encrypt the network configuration protocol packet by the first network key, and add the first index corresponding to the first network key to the header of the encrypted network configuration protocol packet.
[0193] S512 , the intelligent control terminal 110 sends the encrypted network configuration protocol packet to the intelligent device 120 .
[0194] S513, the smart device 120 decrypts the network configuration protocol packet and generates network configuration response data after execution.
[0195] In this embodiment, after receiving the encrypted network configuration protocol packet, the smart device 120 can read the first index in the header of the network configuration protocol packet, and retrieve the corresponding first network key from the multiple network keys pre-stored in the smart device 120 according to the first index to decrypt the encrypted network configuration protocol packet. Then the smart device 120 can execute the network configuration protocol in the network configuration protocol packet to configure its own network and generate network configuration response data.
[0196] S514 , the smart device 120 sends network configuration response data to the smart control terminal 110 .
[0197] S515, the intelligent control terminal 110 sends a grouping instruction to the intelligent device 120 that has completed the network configuration.
[0198] S516 , the smart device 120 sends grouping preparation information to the smart control terminal 110 .
[0199] In this embodiment, after receiving the grouping instruction, the smart device 120 will confirm whether the signature and format of the grouping instruction are correct, and after confirming that they are correct, broadcast the grouping preparation information used to indicate that it is ready to perform grouping.
[0200] S517, the intelligent control terminal 110 encrypts the packet protocol packet based on the network key.
[0201] In this embodiment, the grouping protocol packet includes grouping information for grouping the smart device 120. The smart control terminal 110 can randomly select a second index that does not overlap with the first index from multiple indexes, and index a corresponding second network key from multiple network keys according to the second index, encrypt the grouping protocol packet using the second network key, and add a second index corresponding to the second network key to the header of the encrypted grouping protocol packet.
[0202] S518 , the intelligent control terminal 110 sends the encrypted packet protocol packet to the intelligent device 120 .
[0203] S519, the intelligent control terminal 110 decrypts the packet protocol packet and generates packet response data after execution.
[0204] In this embodiment, after receiving the encrypted packet protocol packet, the smart device 120 can read the second index in the packet protocol packet header, and retrieve the corresponding second network key from the plurality of network keys pre-stored in the smart device 120 according to the second index to decrypt the encrypted packet protocol packet. Then the smart device 120 can execute the packet protocol in the packet protocol packet to packetize itself and generate packet response data.
[0205] S520 , the intelligent control terminal 110 sends the group response data to the intelligent control terminal 110 .
[0206] Fig.13 The structure of the intelligent control terminal 110 provided by one embodiment of the present invention is shown as follows: Fig.13 As shown, the intelligent control terminal 110 may include:
[0207] A monitoring module 111, the monitoring module 111 is used to monitor the unconfigured network information sent by multiple smart devices;
[0208] A signal strength detection module 112, the signal strength detection module 112 is used to detect the received signal strength of the unconfigured network information sent by multiple smart devices;
[0209] The terminal network configuration module 113 is used to configure the network of multiple smart devices through the local network according to a predetermined rule based on the received signal strength of the unconfigured network information sent by the multiple smart devices;
[0210] The terminal grouping module 114 is used to group multiple intelligent devices that have completed network configuration according to a predetermined rule through a local network.
[0211] The specific functions of each module and the specific operations to implement these functions can be found in the above description of the method part, which will not be described in detail here.
[0212] Fig.14 The structure of the smart device 120 provided by one embodiment of the present invention is shown as follows: Fig.14 As shown, the smart device 120 may include:
[0213] The information generation module 121 is used to generate unconfigured network information based on its own device data;
[0214] The sending module 122 is used to send the unconfigured network information to the intelligent control terminal according to its own status;
[0215] The device network configuration module 123 is used to configure the network with the intelligent control terminal through the local network according to a predetermined rule based on the unconfigured network information;
[0216] The device grouping module 124 is used to interact with the intelligent control terminal through the local network via the grouping protocol after network configuration, so that the intelligent control terminal can complete the grouping of the intelligent devices.
[0217] Similarly, the specific functions of each module and the specific operations to implement these functions can be found in the above description of the method part, and will not be described in detail here.
[0218] Another aspect of the present invention further provides a local network device grouping system, comprising:
[0219] An intelligent control terminal, which is any one of the intelligent control terminals in the above embodiments;
[0220] Multiple smart devices, where the smart device is any one of the smart devices in the above embodiments.
[0221] It should be noted that the device provided in the above embodiment, when implementing its functions, only uses the division of the above functional modules as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device provided in the above embodiment and the corresponding method embodiment belong to the same concept, and the specific implementation process is detailed in the corresponding method embodiment, which will not be repeated here.
[0222] Unless otherwise defined, the technical terms or scientific terms used in the present invention shall have the usual meanings understood by persons with ordinary skills in the field to which the present invention belongs. The words "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, words such as "one" or "one" do not indicate quantity restrictions, but indicate the existence of at least one. Words such as "connect" or "connected" are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the object being described changes, the relative positional relationship also changes accordingly.
[0223] The above are preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as within the scope of protection of the present invention.
Claims
1. A method for grouping devices in a local network, wherein the local network includes an intelligent control terminal and a plurality of intelligent devices, and the method is applied to the intelligent control terminal, and is characterized in that: The method comprises: The intelligent control terminal monitors the unconfigured network information from the intelligent device; When monitoring the unconfigured network information sent by the plurality of smart devices, the smart control terminal configures and groups the plurality of smart devices through the local network according to a predetermined rule based on the signal strength of the unconfigured network information from the plurality of smart devices.
2. The method according to claim 1, characterized in that The network configuration and grouping of the plurality of smart devices according to a predetermined rule includes: The smart devices are networked and grouped in order from high to low according to the signal strength.
3. The method according to claim 2, characterized in that The smart devices are configured and grouped in order according to the signal strength from high to low, including: The intelligent control terminal measures the signal strength of the plurality of unconfigured network information; The intelligent control terminal sorts the corresponding multiple intelligent devices based on the signal strength of the multiple unconfigured network information; The intelligent control terminal sends a discovery protocol to the intelligent device with the highest signal strength based on the sorting result; When the intelligent control terminal receives the discovery response information sent by the intelligent device, the intelligent control terminal interacts with the intelligent device through a network configuration protocol based on the discovery response information to implement network configuration of the intelligent device; The intelligent control terminal groups the intelligent devices that have completed network distribution through the local network; After the smart device is grouped, the smart control terminal performs network configuration and grouping on the next smart device based on the sorting result until all the smart devices that send out unconfigured network information are network configured and grouped.
4. The method according to claim 3, characterized in that The intelligent control terminal interacting with the intelligent device through a network configuration protocol based on the discovery response information includes: The intelligent control terminal sends a network configuration instruction and a network key to the intelligent device; When the intelligent control terminal receives the network configuration preparation information sent by the intelligent device, the intelligent control terminal encrypts the network configuration protocol packet based on the network key, wherein the network configuration preparation information is the feedback made by the intelligent device after receiving the network configuration instruction; The intelligent control terminal sends the encrypted network configuration protocol packet to the intelligent device; The intelligent control terminal receives the network configuration response data sent by the intelligent device to complete the network configuration of the intelligent device, wherein the network configuration response data is generated by the intelligent device after decrypting and executing the network configuration protocol packet according to the network key.
5. The method according to claim 4, characterized in that The intelligent control terminal groups the intelligent devices that have completed network configuration through the local network, including: The intelligent control terminal sends a grouping instruction to the intelligent device that has completed network configuration; When the intelligent control terminal receives the grouping preparation information sent by the intelligent device, the intelligent control terminal encrypts the grouping protocol packet based on the network key, wherein the grouping preparation information is feedback made by the intelligent device after receiving the grouping instruction; The intelligent control terminal sends the encrypted packet protocol packet to the intelligent device; The intelligent control terminal receives the grouping response data sent by the intelligent device to complete the grouping of the intelligent device, wherein the grouping response data is generated by the intelligent device after decrypting and executing the grouping protocol packet according to the network key.
6. A method for grouping devices in a local network, wherein the local network includes an intelligent control terminal and a plurality of intelligent devices, and the method is applied to the intelligent devices, characterized in that: The method comprises: The smart device sends unconfigured network information to the smart control terminal according to its own status, wherein the unconfigured network information is generated by the smart device based on its own device data; The smart device is networked with the smart control terminal through the local network according to a predetermined rule based on the unnetworked information, and the smart control terminal completes the grouping.
7. The method according to claim 6, characterized in that The predetermined rule is that the intelligent control terminal configures and groups the intelligent devices in order from high to low according to the signal strength of the unconfigured network information from the plurality of intelligent devices.
8. The method according to claim 7, characterized in that The smart device configures the network with the smart control terminal through the local network according to a predetermined rule based on the unconfigured network information and the smart control terminal completes the grouping, which includes: The smart device monitors the discovery protocol sent by the smart control terminal, wherein the discovery protocol is sent to the smart device with the highest signal strength based on the sorting result after the smart control terminal measures the signal strength of the unconfigured network information sent by multiple smart devices and sorts them; When the smart device receives the discovery protocol sent by the smart control terminal to the smart device, the smart device executes the discovery protocol and sends discovery response information to the smart control terminal; The smart device interacts with the smart control terminal through a network configuration protocol, thereby implementing network configuration of the smart device, wherein the network configuration protocol is triggered by the smart control terminal based on the discovery response information; After the smart device completes network configuration, the smart device interacts with the smart control terminal via the local network using a packet protocol so that the smart control terminal completes the packetization.
9. The method according to claim 8, characterized in that The interaction of the network distribution protocol between the smart device and the smart control terminal includes: The smart device receives a network configuration instruction and a network key sent by the smart control terminal, wherein the network configuration instruction and the network key are triggered by the smart control terminal based on the discovery response information; When the smart device completes verification of the network configuration instruction and the network key, the smart device sends network configuration preparation information to the smart control terminal; The smart device monitors the encrypted network configuration protocol packet sent by the smart control terminal, wherein the encrypted network configuration protocol packet is obtained by the smart control terminal encrypting the network configuration protocol packet using the network key after receiving the network configuration preparation information of the smart device; When the smart device receives the encrypted network configuration protocol packet sent by the smart control terminal, the smart device decrypts the network configuration protocol packet by using the network key and generates network configuration response data after execution; The smart device sends the network configuration response data to the smart control terminal to complete the network configuration of the smart device.
10. The method according to claim 9, characterized in that The intelligent device interacting with the intelligent control terminal through the local network through a packet protocol includes: The intelligent device receives the grouping instruction sent by the intelligent control terminal; When the intelligent device completes verification of the grouping instruction, the intelligent device sends grouping preparation information to the intelligent control terminal; The smart device monitors the encrypted packet protocol packet sent by the smart control terminal, wherein the encrypted packet protocol packet is obtained by the smart control terminal encrypting the packet protocol packet using the network key after receiving the packet preparation information of the smart device; When the smart device receives the encrypted packet protocol packet sent by the smart control terminal, the smart device decrypts the packet protocol packet by using the network key and generates packet response data after execution; The smart device sends the grouping response data to the smart control terminal so that the smart control terminal completes the grouping of the smart device.
11. An intelligent control terminal, characterized in that: include: A monitoring module, the monitoring module is used to monitor the unconfigured network information sent by multiple smart devices; A signal strength detection module, the signal strength detection module is used to detect the received signal strength of the unconfigured network information sent by the plurality of smart devices; A terminal network configuration module, the terminal network configuration module is used to configure the network of the plurality of smart devices through a local network according to a predetermined rule based on the received signal strength of the unconfigured network information sent by the plurality of smart devices; A terminal grouping module, the terminal grouping module is used to group the multiple smart devices that have completed network configuration according to a predetermined rule through the local network.
12. A smart device, characterized in that: include: An information generation module, the information generation module is used to generate unconfigured network information based on its own device data; A sending module, the sending module is used to send the unconfigured network information to the intelligent control terminal according to its own status; A device network configuration module, the device network configuration module is used to configure a network with the intelligent control terminal through a local network according to a predetermined rule based on the unconfigured network information; A device grouping module is used to interact with the intelligent control terminal through the local network after network configuration to perform grouping protocol so that the intelligent control terminal can complete the grouping of the intelligent devices.
13. A device grouping system for a local network, characterized in that: include: An intelligent control terminal, wherein the intelligent control terminal is the intelligent control terminal according to claim 11; Multiple smart devices, wherein the smart devices are the smart devices described in claim 12.
