Rapid networking method and system for equipment, equipment, medium and computer program

By broadcasting identity information in a multi-space multi-sub device environment and generating a sorted list, the problems of inefficiency and error-prone traditional distribution network methods are solved, a more efficient and accurate distribution network process is achieved, and privacy is protected by encrypting identity information.

CN119135519APending Publication Date: 2024-12-13GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410983316.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

In the complex network environment of multi-space multi-sub-device, traditional distribution networking methods are inefficient and prone to errors.

Method used

By responding to networking instructions, identity information is broadcast to other devices in the target space, and a sorting list of devices to be networked based on the identity information is generated, identity information is judged to determine the space unique identifier or distribution network identification, improving the efficiency and accuracy of distribution network .

Benefits of technology

The efficiency and accuracy of multi-space multi-sub-equipment distribution network is improved, ensuring the accuracy and success rate of the distribution network process, and protecting user privacy by encrypting identity information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119135519A_ABST
    Figure CN119135519A_ABST
Patent Text Reader

Abstract

The invention relates to a rapid networking method and system for equipment, the equipment, a storage medium and a computer program, and the method comprises the steps: responding to a networking instruction, broadcasting the identity information of the equipment to other equipment in a target space, generating a to-be-networked equipment sorting list based on the identity information of the equipment and the monitored identity information, and storing the to-be-networked equipment sorting list in the target space; judging whether the identity information of the first device is the same as the identity information of the first device in the to-be-networked device sorting list or not, if yes, generating a space unique identifier according to the to-be-networked device sorting list and broadcasting the space unique identifier to other to-be-networked devices in a target space, and if not, generating a local network distribution identifier according to the to-be-networked device sorting list and broadcasting the local network distribution identifier to the other to-be-networked devices in the target space; and the local network distribution identifier is compared with the monitored unique spatial identifier broadcasted by other to-be-networked equipment, when the local network distribution identifier is different from the monitored unique spatial identifier, a new networking instruction is waited, and when the local network distribution identifier is the same as the monitored unique spatial identifier, it is confirmed that local network distribution is completed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of intelligent device networking, and in particular to a method, system, device, storage medium and computer program for rapid device networking. Background Art

[0002] Currently, smart home has a very broad development prospect, and various smart devices need to be configured before use.

[0003] Although traditional home network configuration methods, such as single router and router cascade, meet the basic needs of smart home network configuration to a certain extent, they are very cumbersome, inefficient and prone to errors in complex network environments with multiple spaces and multiple sub-devices. Summary of the invention

[0004] The present invention provides a method, system, device, storage medium and computer program for rapid device networking to solve the current problem of low efficiency and easy error in multi-space multi-sub-device networking.

[0005] In a first aspect, the present disclosure provides a method for quickly networking a device, comprising:

[0006] In response to the networking instruction, broadcast its own identity information to other devices in the target space, and generate a sorted list of devices to be networked based on its own identity information and the identity information broadcasted by other devices;

[0007] Determine whether the identity information of the device is the same as the identity information of the first device in the sorted list of devices to be networked;

[0008] If they are the same, generating a space unique identifier according to the sorted list of devices to be networked, and broadcasting the space unique identifier to other devices to be networked in the target space;

[0009] If they are different, generating a local network configuration identifier according to the sorted list of devices to be networked, and comparing the local network configuration identifier with the spatial unique identifiers broadcasted by other devices to be networked that are monitored;

[0010] When the local network configuration identifier is different from the monitored spatial unique identifier, waiting for a new networking instruction;

[0011] When the local network configuration identifier is the same as the monitored spatial unique identifier, it is determined that the local network configuration is completed.

[0012] In some embodiments, broadcasting encrypted identity information of the device to other devices in the target space includes:

[0013] Encrypt your own identity information to obtain encrypted identity information;

[0014] Calculating a checksum of the encrypted identity information according to a preset CRC polynomial;

[0015] Adding the check value to the end of the encrypted identity information to obtain identity information;

[0016] The new identity information is broadcast using a preset broadcast frequency and a preset signal strength, wherein the signal strength is selected so that a device in a target space can receive the new identity information.

[0017] In some embodiments, encrypting one's own identity information to obtain encrypted identity information includes:

[0018] Filling the identity information to a preset length to obtain a filling character;

[0019] Encoding the identity information into a binary number to obtain a coded character;

[0020] Splicing the coded character to the end of the padding character to obtain a length character;

[0021] Splitting the length character into a first preset number of character blocks, and merging each character block with a preset initial variable to obtain a standard variable;

[0022] splicing the character blocks into a second preset number of character groups, and performing a logical operation on each character group and the standard variable to obtain a plurality of output values;

[0023] All output values ​​are concatenated to obtain the encrypted identity information.

[0024] In some embodiments, generating a sorted list of devices to be networked based on the identity information of the device and the identity information broadcasted by other devices includes:

[0025] Generate a list of devices to be networked based on its own identity information and the monitored identity information;

[0026] Extracting the header information of each identity information with a preset number of digits in the initial list of devices to be networked, to obtain a header information set;

[0027] Calculate the total weight value of each header information in the header information set according to the preset character weight;

[0028] According to the total weight value of each header information, the header information set is sorted in descending order according to the total weight value to obtain a sorting result of the header information set;

[0029] The list of devices to be networked is sorted according to the sorting result of the header information set to obtain a sorted list of devices to be networked.

[0030] In some embodiments, generating a spatially unique identifier according to the sorted list of devices to be networked includes:

[0031] The identity information of the first device to be networked in the sorted list of devices to be networked is used as the spatial unique identifier.

[0032] In some embodiments, the identity information includes a MAC address.

[0033] In a second aspect, the present disclosure provides a device rapid networking system, including:

[0034] The device sorting module, in response to the networking instruction, broadcasts its own identity information to other devices in the target space, and generates a sorting list of devices to be networked based on its own identity information and the identity information broadcasted by other devices;

[0035] A first item judgment module, judging whether its own identity information is the same as the identity information of the first device in the sorted list of devices to be networked;

[0036] An identification generation module generates a space unique identification according to the sorted list of devices to be networked, broadcasts the space unique identification to other devices to be networked in the target space, and generates a local network configuration identification according to the sorted list of devices to be networked;

[0037] The identification judgment module compares the local network configuration identification with the spatial unique identification broadcast by other devices to be networked. When the local network configuration identification is different from the spatial unique identification heard, it waits for new networking instructions. When the local network configuration identification is the same as the spatial unique identification heard, it confirms that the local network configuration is completed.

[0038] In a third aspect, the present disclosure provides a computer device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method described in the above aspects.

[0039] In a fourth aspect, the present disclosure provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the method described in the above aspects when executed by a processor.

[0040] In a fifth aspect, the present disclosure provides a computer program product, including a computer program / instructions, which implements the steps of the method described in the above aspects when the computer program is executed by a processor.

[0041] The present disclosure provides a method, system, device, storage medium and computer program for rapid networking of devices. In response to a networking instruction, the device broadcasts its own identity information to other devices in a target space, and generates a sorted list of devices to be networked based on its own identity information and the identity information broadcasted by other devices, thereby improving the efficiency of network configuration. The method judges whether its own identity information is the same as the identity information of the first device in the sorted list of devices to be networked. If they are the same, a spatial unique identifier is generated according to the sorted list of devices to be networked, and the spatial unique identifier is broadcasted to other devices to be networked in the target space. If they are different, a local network configuration identifier is generated according to the sorted list of devices to be networked, and the local network configuration identifier is compared with the spatial unique identifier broadcasted by other devices to be networked, thereby improving the accuracy of network configuration. When the local network configuration identifier is different from the spatial unique identifier listened to, a new networking instruction is waited for. When the local network configuration identifier is the same as the spatial unique identifier listened to, it is confirmed that the local network configuration is completed, thereby improving the accuracy and success rate of network configuration. This solves the current problem of low efficiency and easy errors in multi-space and multi-sub device network configuration, and improves the efficiency and accuracy of multi-space and multi-sub device network configuration.

[0042] 1. The spatial unique identifier is generated according to the sorted list of the devices to be networked. The technical effect is that by generating the spatial unique identifier, the device to be networked can judge whether it and the device broadcasting the spatial unique identifier are in the target space, thereby improving the accuracy of network configuration.

[0043] 2. The encrypted identity information is encrypted to obtain the encrypted identity information. The technical effect is to solve the problem of possible leakage of user privacy when broadcasting identity information.

[0044] 3. The method of generating a sorted list of devices to be networked based on its own identity information and identity information broadcast by other devices has the technical effect of improving the accuracy and efficiency of network configuration. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The present disclosure will be described in more detail below based on embodiments and with reference to the accompanying drawings:

[0046] Figure 1 A schematic diagram of a process flow of a method for rapid networking of devices provided in an embodiment of the present disclosure;

[0047] Figure 2 A schematic diagram of a process for encrypting identity information provided by an embodiment of the present disclosure;

[0048] Figure 3 A schematic diagram of the functional modules of a device rapid networking system provided in an embodiment of the present disclosure.

[0049] In the drawings, the same reference numerals are used for the same components and the drawings are not drawn to scale. DETAILED DESCRIPTION

[0050] In order to enable those skilled in the art to better understand the technical solution of the present disclosure, and to fully understand and implement how the present disclosure applies technical means to solve technical problems and achieve the corresponding technical effects, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only embodiments of a part of the present disclosure, not all of the embodiments. The embodiments of the present disclosure and the various features in the embodiments can be combined with each other without conflict, and the technical solutions formed are all within the scope of protection of the present disclosure. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work should fall within the scope of protection of the present disclosure.

[0051] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.

[0052] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0053] Based on the above background, this patent proposes a fast networking method for multi-space sub-devices, which can utilize the communication module of the target space sub-device and the identity information of the communication module to quickly self-allocate space for the device, realize self-networking, integrate reporting operations, and greatly improve the convenience of network distribution.

[0054] Embodiment 1

[0055] Figure 1 The following is a flow chart of a method for quickly networking a device provided by an embodiment of the present disclosure. Figure 1 As shown, a smart device control method includes:

[0056] S1. In response to a networking instruction, broadcast its own identity information to other devices in the target space, and generate a sorted list of devices to be networked based on its own identity information and the identity information broadcast by other devices monitored.

[0057] In the embodiment of the present invention, the networking instruction refers to a reset instruction sent by an installer to all devices using a dedicated device.

[0058] In detail, the reset instruction is a preset special character string, and the device will perform a specific operation after receiving the specific character string.

[0059] In the embodiment of the present invention, the broadcasting of the identity information to other devices in the target space is performed according to a preset duration, and the monitoring of the identity information broadcast by other devices is also performed according to a preset duration. The preset duration may be 2 minutes.

[0060] In the embodiment of the present invention, the broadcasting of one's own identity information to other devices in the target space is to broadcast the identity information through a weak network. The weak network refers to low-power Bluetooth or high-frequency low-power WiFi. Since the broadcast signal released by the weak network has extremely weak penetration, it can ensure as much as possible that the signal broadcast by each device can only be monitored by the device in the target space.

[0061] Specifically, in order to ensure that the identity information broadcast through the weak network can only be monitored by the devices in the target space, it is necessary to limit the frequency of the weak network to 2.4 GHz ISM and above, and limit the channel bandwidth of the weak network to 1 MHz and below.

[0062] In the embodiment of the present invention, broadcasting the encrypted identity information of the device to other devices in the target space includes:

[0063] The encrypted identity information is broadcasted to other devices in the target space using a weak network.

[0064] In the embodiment of the present invention, broadcasting the encrypted identity information of the device to other devices in the target space includes:

[0065] Encrypt your own identity information to obtain encrypted identity information;

[0066] Calculating a checksum of the encrypted identity information according to a preset CRC polynomial;

[0067] Adding the check value to the end of the encrypted identity information to obtain identity information;

[0068] The new identity information is broadcast using a preset broadcast frequency and a preset signal strength, wherein the signal strength is selected so that a device in a target space can receive the new identity information.

[0069] In the embodiment of the present invention, the identity information includes a MAC address.

[0070] In the embodiment of the present invention, the full name of the MAC address is Media Access Control Address, which is a unique identifier of a network device, and is usually used in a local area network (LAN) to identify the device at the network layer. The MAC address consists of 6 bytes (48 bits) and is usually represented by a 12-digit hexadecimal number, for example: 00:1A:2B:3C:4D:5E.

[0071] In detail, the CRC (Cyclic Redundancy Check) is a commonly used error detection method, which is mainly used to detect whether errors occur in data transmission or storage. CRC calculates a fixed-length check value of the data by using a specific polynomial and appends this check value to the end of the data. After receiving the data, the receiver will recalculate the CRC check value and compare it with the received check value to determine whether the data has errors.

[0072] In detail, the CRC polynomial is a polynomial used to generate a check value, and common CRC polynomials include CRC-8, CRC-16 and CRC-32.

[0073] In the embodiment of the present invention, the check value of the encrypted identity information is calculated according to a preset CRC polynomial to obtain a first check value, so that a subsequent device can check the integrity of the encrypted identity information according to the first check value of the encrypted identity information after monitoring the encrypted identity information.

[0074] In an embodiment of the present invention, the step of calculating the check value of the encrypted identity information according to a preset CRC polynomial includes:

[0075] The check value is calculated using the following formula:

[0076] C=x 16 +x 12 +x 5 +1

[0077] Wherein, C is the verification value, and x is the encrypted identity information.

[0078] In detail, the identity information includes encrypted identity information of the device and a check value corresponding to the encrypted identity information.

[0079] In detail, the preset broadcast frequency needs to be set according to the current network signal strength and interference level.

[0080] In the embodiment of the present invention, the network device to be configured needs to monitor the broadcast of other devices according to the broadcast frequency. After monitoring the encrypted identity information broadcast by other devices, the check value of the received encrypted identity information is calculated using the CRC polynomial, and it is determined whether the newly calculated check value is the same as the check value at the end of the encrypted identity information, so as to determine whether the received encrypted identity information is preserved intact during the transmission process. In the embodiment of the present invention, the encryption of one's own identity information to obtain the encrypted identity information is to encrypt the identity information of each device using the MD5 encryption algorithm.

[0081] In detail, the MD5 encryption algorithm is a widely used cryptographic hash function that can generate a 128-bit (16-byte) hash value, which is usually represented by a 32-bit hexadecimal string.

[0082] In the embodiment of the present invention, referring to Figure 2 As shown, a schematic diagram of a process flow of identity information encryption processing is provided in an embodiment of the present invention, wherein the process of encrypting one's own identity information to obtain encrypted identity information includes:

[0083] S21, padding the identity information to a preset length to obtain padding characters;

[0084] S22, encoding the identity information into a binary number to obtain a coded character;

[0085] S23, splicing the coded character to the end of the padding character to obtain a length character;

[0086] S24, splitting the length character into a first preset number of character blocks, and merging each character block with a preset initial variable to obtain a standard variable;

[0087] S25, splicing the character blocks into a second preset number of character groups, and performing a logical operation on each character group and the standard variable to obtain a plurality of output values;

[0088] S26. Concatenate all output values ​​to obtain the encrypted identity information.

[0089] In the actual application scenario of the present invention, the length character can be divided into multiple 512-bit groups, and each 512-bit group can be divided into 16 32-bit blocks; the 16 32-bit blocks are added to 4 preset initial variables to obtain 4 standard variables; each 512-bit group is added to the 4 standard variables, and bitwise XOR, bitwise AND, bitwise OR, and shift operations are performed to obtain 4 initial output values; the 4 initial output values ​​obtained from all 512-bit groups are merged to obtain 4 final output values; the 4 final output values ​​are spliced ​​to obtain the encrypted identity information.

[0090] In detail, padding the identity information to a preset length means adding a "1" at the end of the identity information and then padding the rest with "0" until the length reaches a multiple of 512 minus 64.

[0091] In detail, the encrypted identity information is a 128-bit hash value obtained after MD5 encryption.

[0092] In detail, the initial output value and the final output value are both 32-bit values.

[0093] In the embodiment of the present invention, by performing CRC check on the monitored encrypted identity information, it is ensured that the encrypted identity information is preserved intact during the transmission process, thereby improving the accuracy of subsequent device network configuration.

[0094] In the embodiment of the present invention, the generating of the sorted list of devices to be networked based on the identity information of the device and the identity information broadcasted by other devices includes:

[0095] Generate a list of devices to be networked based on its own identity information and the monitored identity information;

[0096] Extracting the header information of each identity information with a preset number of digits in the initial list of devices to be networked, to obtain a header information set;

[0097] Calculate the total weight value of each header information in the header information set according to the preset character weight;

[0098] According to the total weight value of each header information, the header information set is sorted in descending order according to the total weight value to obtain a sorting result of the header information set;

[0099] The list of devices to be networked is sorted according to the sorting result of the header information set to obtain a sorted list of devices to be networked.

[0100] In detail, the extracting of the header information of the preset number of digits of each encrypted identity information in the initial list of devices to be networked may be extracting the first eight characters of the encrypted identity information.

[0101] In detail, the total weight value of each header information in the header information set is calculated according to the preset character weight, which means that each character in the header information corresponds to a different weight value, and the weight values ​​of all characters are added together to obtain the total weight value. The setting of the weight corresponding to each character needs to be set according to the sorting requirements.

[0102] In the embodiment of the present invention, the to-be-networked sorting list generated by each to-be-networked device is the same.

[0103] In the embodiment of the present invention, the user's privacy security is improved by encrypting one's own identity information to obtain encrypted identity information, broadcasting one's own encrypted identity information to other devices located in the target space, and generating a sorted list of devices to be networked based on one's own encrypted identity information and the encrypted identity information broadcast by other devices monitored, thereby improving the efficiency and success rate of subsequent device networking.

[0104] S2. Determine whether the own identity information is the same as the identity information of the first device in the sorted list of devices to be networked.

[0105] In an embodiment of the present invention, the determination of whether its own identity information is the same as the identity information of the first device in the sorted list of devices to be networked is for comparing the encrypted identity information of each device itself with the encrypted identity information of the first device in the sorted list of devices obtained by sorting it, to determine whether the current device is the first device in the sorted list of devices.

[0106] In an embodiment of the present invention, since multi-device networking in the target space requires setting up a master device to broadcast the networking key, a device is found as the master device by comparing the encrypted identity information of each device with the encrypted identity information of the first item in the device sorting list.

[0107] In the embodiment of the present invention, by judging whether the identity information of the device itself is the same as the identity information of the first device in the sorted list of devices to be networked, the efficiency of network configuration is improved.

[0108] If they are the same, execute S3, generate a space unique identifier according to the sorted list of devices to be networked, and broadcast the space unique identifier to other devices to be networked in the target space.

[0109] In the embodiment of the present invention, the space unique identifier is an identifier used to determine whether the device is in the target space.

[0110] In the embodiment of the present invention, generating a spatial unique identifier according to the sorted list of devices to be networked refers to using the identity information of the first device to be networked in the sorted list of devices to be networked as the spatial unique identifier.

[0111] In the embodiment of the present invention, the generating of a spatial unique identifier according to the sorted list of devices to be networked includes:

[0112] The identity information of the first device to be networked in the sorted list of devices to be networked is used as the spatial unique identifier.

[0113] In the embodiment of the present invention, the spatial unique identifier is broadcast to other devices to be networked in the target space, and the spatial unique identifier is also broadcast through a weak network, and the spatial unique identifier is broadcast according to a preset time length, and the preset time length may be 2 minutes.

[0114] In the embodiment of the present invention, by generating a spatial unique identifier according to the sorted list of devices to be networked, and broadcasting the spatial unique identifier to other devices to be networked located in the target space, the efficiency and accuracy of network configuration are improved.

[0115] If they are not the same, execute S4, generate a local network configuration identifier according to the sorted list of devices to be networked, and compare the local network configuration identifier with the monitored spatial unique identifier broadcast by other devices to be networked.

[0116] In the embodiment of the present invention, generating the local network configuration identifier according to the sorted list of devices to be networked means that each device to be networked uses the identity information of the first device in the sorted list of devices to be networked as the network configuration identifier.

[0117] In the embodiment of the present invention, after the local network configuration identifier is generated according to the sorted list of devices to be networked, the spatial unique identifiers broadcasted by other devices to be networked are monitored according to a preset time period.

[0118] In the embodiment of the present invention, the comparison of the local network configuration identifier with the space unique identifier broadcasted by other devices to be networked is to determine whether the device to be networked and the device broadcasting the space unique identifier are in the target space.

[0119] In the embodiment of the present invention, the success rate of network configuration is improved by generating a local network configuration identifier according to the sorted list of devices to be networked, and comparing the local network configuration identifier with the spatial unique identifiers broadcast by other devices to be networked monitored.

[0120] S5. Determine whether the local network configuration identifier is the same as the monitored spatial unique identifier.

[0121] When the local network configuration identifier is different from the monitored spatial unique identifier, S6 is executed.

[0122] In an embodiment of the present invention, there may be a situation where the device to be networked receives a space unique identifier broadcast by a device to be networked in other spaces that is in a networking state. Therefore, it is necessary to determine whether the space unique identifier monitored by each device to be networked is the same as its own networking identifier to ensure that the networked sub-device and the main device are in the target space.

[0123] In an embodiment of the present invention, when there is a device to be networked whose network configuration identifier is inconsistent with the monitored space unique identifier, it means that a fault may have occurred in the network configuration process, or the device to be networked in the space has received the space unique identifier broadcast by the device to be networked in other spaces that are in the network configuration state, so it is necessary to terminate the network configuration and wait for new networking instructions.

[0124] In the embodiment of the present invention, when the local network configuration identifier is different from the monitored spatial unique identifier, a new networking instruction is waited for to avoid errors in the network configuration of the device to be networked, thereby improving the accuracy of the network configuration.

[0125] When the local network configuration identifier is the same as the monitored spatial unique identifier, S7 is executed to confirm that the local network configuration is completed.

[0126] In the embodiment of the present invention, when the local network configuration identifier is the same as the monitored space unique identifier, it indicates that the network configuration device to be networked participating in the network configuration and the network configuration device to be networked broadcasting the space unique identifier are in the target space, which meets the network configuration requirements.

[0127] In the embodiment of the present invention, after confirming that the local network configuration is completed, the method further includes:

[0128] When new equipment needs to be added, receive network configuration information;

[0129] Sending the network configuration information to each network-configured device;

[0130] Each network-configured device broadcasts the network configuration information;

[0131] After the new device monitors the network configuration information, it completes the network configuration according to the network configuration information, and broadcasts network configuration success information to other network configuration devices to confirm that the network configuration is completed.

[0132] In detail, the network configuration information refers to the spatial unique identifier of the target space that needs to be configured.

[0133] In detail, the receiving of network configuration information refers to pairing any network-configured device with a mobile device, and after pairing is completed, sending a spatial unique identifier required for network configuration of the new device to the paired network-configured device.

[0134] Furthermore, in order to ensure that the target space for network configuration and the space for actual network configuration are the target space, it is necessary to use a mobile device to send the spatial unique identifier of the target space to the network-configured device.

[0135] In the embodiment of the present invention, when the local network configuration identifier is the same as the monitored space unique identifier, it is confirmed that the local network configuration is completed, thereby improving the accuracy and efficiency of the network configuration of the equipment in the target space.

[0136] like Figure 3 The figure shows a functional module diagram of a device rapid networking system provided for this embodiment.

[0137] The device rapid networking system 100 of the present invention can be installed in an electronic device. According to the functions to be implemented, the device rapid networking system 100 can include a device sorting module 101, a master device identification module 102, an identification generation module 103, and an identification judgment module 104. The module of the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.

[0138] In this embodiment, the functions of each module / unit are as follows:

[0139] The device sorting module 101, in response to the networking instruction, broadcasts its own identity information to other devices in the target space, and generates a sorted list of devices to be networked based on its own identity information and the identity information broadcasted by other devices;

[0140] The first item determination module 102 determines whether its own identity information is the same as the identity information of the first device in the sorted list of devices to be networked;

[0141] The identifier generation module 103 generates a space unique identifier according to the sorted list of devices to be networked, broadcasts the space unique identifier to other devices to be networked in the target space, and generates a local network configuration identifier according to the sorted list of devices to be networked;

[0142] The identification judgment module 104 compares the local network configuration identification with the spatial unique identification broadcast by other devices to be networked. When the local network configuration identification is different from the spatial unique identification heard, it waits for new networking instructions. When the local network configuration identification is the same as the spatial unique identification heard, it confirms that the local network configuration is completed.

[0143] Based on the above embodiments, this embodiment provides an application example.

[0144] 1. The installation and maintenance personnel reset the sub-equipment needed in a room.

[0145] 2. Install the reset sub-device in the room and power on the sub-device. At this time, the sub-device will actively broadcast its encrypted MAC to other sub-devices in the same room through the weak network, and monitor the broadcasts of other devices at the same time for two minutes.

[0146] 3. This weak network can use low-power Bluetooth to achieve the purpose, or use high-frequency low-power WiFi to achieve this effect. MAC encryption can be directly encrypted through MD5.

[0147] 4. After the broadcast monitoring is completed, each sub-device will form a room device list. After using MD5, a 128-bit hash value will be generated. The first 8 bits of the hash value are used for sorting. The principle of sorting is that different characters correspond to different weights. All weights are added to get the current total weight, and then the total weight is arranged in ascending or descending order. The table is re-sorted by the sorting algorithm. In theory, the sorting results of each sub-device will be the same. After the sorting is completed, each sub-device will compare its own encrypted MAC ciphertext with the first item in the room device list. If they are the same, then the sub-device will generate a room unique identifier based on this table. At this time, the sub-device will broadcast The unique identifier is broadcast and used as the key for network configuration information. Other devices will monitor the logo broadcast by the weak network. If they find that it is different from their own logo, they will release a re-network configuration signal to the weak network and reset all sub-devices. The above steps are repeated until they are completely consistent. At this time, the mobile phone is used for network configuration. As long as one of the sub-devices is configured, the room will be prompted to be successfully configured. The room enters the network configuration ready state. At this time, the configured sub-devices in the room will broadcast network configuration information in the form of a weak network for 2 minutes. After the configuration of other sub-devices is completed, the successful configuration information will be broadcast to the strong network. Finally, the configuration of all devices in the room is completed.

[0148] Embodiment 2

[0149] On the basis of the above embodiments, this embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method described in the above embodiments.

[0150] In some implementations of this embodiment, a computer-readable storage medium is provided, on which a computer program is stored, characterized in that when the computer program is executed by a processor, the steps of the method described in the above embodiment are implemented.

[0151] In some implementations of this embodiment, a computer program product is provided, including a computer program / instructions, characterized in that when the computer program is executed by a processor, the steps of the method described in the above embodiment are implemented.

[0152] The processor may include, but is not limited to, one or more processors or microprocessors. Each processor may be an application specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a controller, a microcontroller, a microprocessor or other electronic components to execute the method in the above embodiments.

[0153] The computer-readable storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof, and the computer-readable storage medium may include but is not limited to, for example, random access memory (RAM), read-only memory (ROM), flash memory, EPROM memory, EEPROM memory, registers, computer storage media (e.g., hard disk, floppy disk, solid-state drive, removable disk, CD-ROM, DVD-ROM, Blu-ray disc, etc.).

[0154] The computer-readable storage medium may also store at least one computer executable program / instruction, which may be, for example, a computer-readable instruction. The computer-readable storage medium includes, but is not limited to, for example, a volatile memory and / or a non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The computer-readable storage medium may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. For example, a non-transitory computer-readable storage medium may be connected to a computing device such as a computer, and then, when the computing device runs the computer-readable instructions stored on the computer-readable storage medium, the various methods described above may be performed.

[0155] In addition, the computer device may also include (but not limited to) a data bus, an input / output (I / O) bus, a display, and input / output devices (eg, keyboard, mouse, speaker, etc.), etc.

[0156] The processor may communicate with external devices via an I / O bus via a wired or wireless network.

[0157] In one embodiment, the at least one computer executable instruction may also be compiled into or constitute a software product / computer program product, wherein one or more computer executable instructions are executed by a processor to perform the various functions and / or method steps in the embodiments described in the present technology.

[0158] In the embodiments provided in the present disclosure, it should be understood that the disclosed systems and methods can also be implemented in other ways. The system embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to the multiple embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the above-mentioned module, program segment or a part of the code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0159] It should be noted that in the present disclosure, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element limited by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0160] Although the embodiments disclosed in the present disclosure are as above, the above contents are only embodiments adopted for facilitating the understanding of the present disclosure and are not intended to limit the present disclosure. Any technician in the technical field to which the present disclosure belongs can make any modifications and changes in the form and details of the implementation without departing from the spirit and scope disclosed in the present disclosure, but the scope of patent protection of the present disclosure shall still be subject to the scope defined in the attached claims.

Claims

1. A method for rapid device networking, characterized in that: Perform the following steps: In response to the networking instruction, broadcast its own identity information to other devices in the target space, and generate a sorted list of devices to be networked based on its own identity information and the identity information broadcasted by other devices; Determine whether the identity information of the device is the same as the identity information of the first device in the sorted list of devices to be networked; If they are the same, generating a space unique identifier according to the sorted list of devices to be networked, and broadcasting the space unique identifier to other devices to be networked in the target space; If they are different, generating a local network configuration identifier according to the sorted list of devices to be networked, and comparing the local network configuration identifier with the spatial unique identifiers broadcasted by other devices to be networked that are monitored; When the local network configuration identifier is different from the monitored spatial unique identifier, waiting for a new networking instruction; When the local network configuration identifier is the same as the monitored spatial unique identifier, it is determined that the local network configuration is completed.

2. The method according to claim 1, characterized in that Broadcasts its own encrypted identity information to other devices in the target space, including: Encrypt your own identity information to obtain encrypted identity information; Calculating a checksum of the encrypted identity information according to a preset CRC polynomial; Adding the verification value to the end of the encrypted identity information to obtain new identity information; The new identity information is broadcast using a preset broadcast frequency and a preset signal strength, wherein the signal strength is selected so that a device in a target space can receive the new identity information.

3. The method according to claim 2, characterized in that The step of encrypting one's own identity information to obtain encrypted identity information includes: Filling the identity information to a preset length to obtain a filling character; Encoding the identity information into a binary number to obtain a coded character; Splicing the coded character to the end of the padding character to obtain a length character; Splitting the length character into a first preset number of character blocks, and merging each character block with a preset initial variable to obtain a standard variable; splicing the character blocks into a second preset number of character groups, and performing a logical operation on each character group and the standard variable to obtain a plurality of output values; All output values ​​are concatenated to obtain the encrypted identity information.

4. The method according to claim 2, characterized in that: The generating of a sorted list of devices to be networked based on the identity information of the device and the identity information broadcasted by other devices includes: Generate a list of devices to be networked based on its own identity information and the monitored identity information; Extracting the header information of each identity information with a preset number of digits in the initial list of devices to be networked, to obtain a header information set; Calculate the total weight value of each header information in the header information set according to the preset character weight; According to the total weight value of each header information, the header information set is sorted in descending order according to the total weight value to obtain a sorting result of the header information set; The list of devices to be networked is sorted according to the sorting result of the header information set to obtain a sorted list of devices to be networked.

5. The method according to claim 1, characterized in that The generating a spatial unique identifier according to the sorted list of devices to be networked includes: The identity information of the first device to be networked in the sorted list of devices to be networked is used as the spatial unique identifier.

6. The method according to any one of claims 1 to 5, characterized in that The identity information includes a MAC address.

7. A rapid equipment networking system, characterized in that: include: The device sorting module, in response to the networking instruction, broadcasts its own identity information to other devices in the target space, and generates a sorting list of devices to be networked based on its own identity information and the identity information broadcasted by other devices; A first item judgment module, judging whether its own identity information is the same as the identity information of the first device in the sorted list of devices to be networked; An identification generation module generates a space unique identification according to the sorted list of devices to be networked, broadcasts the space unique identification to other devices to be networked in the target space, and generates a local network configuration identification according to the sorted list of devices to be networked; The identification judgment module compares the local network configuration identification with the spatial unique identification broadcast by other devices to be networked. When the local network configuration identification is different from the spatial unique identification heard, it waits for new networking instructions. When the local network configuration identification is the same as the spatial unique identification heard, it confirms that the local network configuration is completed.

8. A computer device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product comprising a computer program / instructions, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.