CN111817866A - Equipment network distribution method - Google Patents

Equipment network distribution method Download PDF

Info

Publication number
CN111817866A
CN111817866A CN201910288577.XA CN201910288577A CN111817866A CN 111817866 A CN111817866 A CN 111817866A CN 201910288577 A CN201910288577 A CN 201910288577A CN 111817866 A CN111817866 A CN 111817866A
Authority
CN
China
Prior art keywords
data
length
character string
packet
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910288577.XA
Other languages
Chinese (zh)
Other versions
CN111817866B (en
Inventor
殷久超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ningbo Fotile Kitchen Ware Co Ltd
Original Assignee
Ningbo Fotile Kitchen Ware Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ningbo Fotile Kitchen Ware Co Ltd filed Critical Ningbo Fotile Kitchen Ware Co Ltd
Priority to CN201910288577.XA priority Critical patent/CN111817866B/en
Publication of CN111817866A publication Critical patent/CN111817866A/en
Application granted granted Critical
Publication of CN111817866B publication Critical patent/CN111817866B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes

Abstract

The invention relates to a method for distributing a network by equipment, which is characterized in that equipment to be distributed is firstly put into a network distribution mode, so that the equipment is close to the equipment, and the signal intensity sent by a mobile phone is higher for the equipment to be distributed, so that the equipment to be distributed is easy to capture; the device to be distributed screens out multicast according to the addr3 field of 802.11, screens out data packets according to the type field, and screens out uplink packets in the toDS direction according to the subtype field, so that background noise can be effectively reduced, signals are monitored, distribution network information is acquired, and the distribution network success rate can be effectively improved.

Description

Equipment network distribution method
Technical Field
The invention relates to a network distribution method for equipment.
Background
In the era of internet of things, network access of devices is particularly important. Some devices are difficult to directly input network information for distribution network due to lack of human-computer interaction interfaces such as touch screen keyboards and cameras, and for the devices, two main distribution network methods are generally adopted: SmartConfig mode and Soft-AP mode.
In the SmartConfig mode, a device to be configured enters a network distribution mode firstly, a network card of the device is set to be a monitoring mode, wireless data packets of all channels are scanned and monitored, main equipment (mostly user mobile phones or other wireless mobile equipment) broadcasts/multicasts encrypted network distribution information to a wireless router, and the network distribution information is forwarded through the wireless router; and the equipment to be configured is set to be in a monitoring mode, all channels are scanned, after the equipment to be configured captures a synchronous head sequence with a specific length forwarded by the wireless router, the channel for sending the distribution network information and the MAC address of the main equipment are locked, the monitoring is continued until the complete distribution network information is obtained, the distribution network information is analyzed, the network configuration obtained by the analysis is actively modified, and then the network is restarted to complete the distribution network. However, SmartConfig is not a standard protocol specified by the Wi-Fi alliance, the data transmission mode is inefficient and unreliable, the requirement on channel strength is high, and the success rate of one-time distribution network is low in partial environment. The main reasons are: the distance between the equipment to be networked and the wireless router is long, the signal intensity is insufficient, the current channel is congested, and part of the routers shield and forward the networking packet in the multicast/broadcast mode.
In the Soft-AP mode, after the device to be networked enters the network distribution mode, the network card is started in the AP mode, which allows the device to be networked to broadcast its ssid to the environment and allows other wireless devices to access as workstations. After the main device (mostly the user's mobile phone or other wireless mobile devices) scans the ssid, it calculates the password according to the agreed rule and connects to the hotspot. The wireless mobile device then sends the distribution network information (the target can be the IP address or other multicast/broadcast address of the device to be distributed) to the device to be distributed under the network, and after receiving the distribution network packet, the device to be distributed modifies the network configuration of the device to be distributed, restarts the network, and completes the distribution network. In the mode, the main equipment is required to disconnect the WiFi network of the main equipment, the network communication between the main equipment and the outside is influenced, and the network can be distributed only for single equipment at the same time.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a method for distributing network without screen equipment, which has low requirement on the signal intensity of a router and can effectively improve the success rate of distribution network, aiming at the prior art.
The technical scheme adopted by the invention for solving the technical problems is as follows: a device network distribution method is characterized in that a master device is used for carrying out network distribution on a target device, a sending device of a network distribution packet is called as a master device, and a device of a network to be received is called as a target device, and the method comprises the following steps:
step 1, enabling target equipment to enter a distribution network mode, enabling the target equipment to circularly scan each communication channel and capture a wireless data packet;
step 2, inputting distribution network information on the main equipment, wherein the distribution network information comprises a network name and a networking password, the main equipment generates distribution network data according to the distribution network information, the distribution network data comprises synchronization header data and text data, and the text data comprises the network name and the networking password; then connecting the master device with the wireless router or directly opening a hot spot of the master device, wherein the master device sends synchronization header data to a first specific multicast address set ADDR1_ MAC, and the first specific multicast address set ADDR1_ MAC comprises N specific addresses; the master device sends the text data to a second specific multicast address set ADDR2_ MAC; the synchronization header data comprises N data packets, wherein N is 3, 4 or 5, the N data packets are respectively sent to N specific addresses in a first specific multicast address set ADDR1_ MAC in a one-to-one correspondence manner, the plaintext lengths of the N data packets are increased in an equal difference manner from Length _ H, and the Length _ H takes 500-600 bytes; the text data is encoded according to a preset encoding rule, the Length of the encoded plaintext is more than 30 bytes so as to avoid confusion with a large number of short packets in the environment, and the Length is less than the Length _ H so as to ensure that the text data is not confused with a synchronous head;
and 3, after receiving the wireless data packet, the equipment to be configured sequentially filters the wireless data packet according to the following three conditions to filter out asynchronous header data so as to reduce the system load:
the condition is that a useless wireless data packet is discarded, and the specific method is as follows: distinguishing according to the data type of the wireless data packet, namely the subtype field of the wireless data packet, if the wireless data packet is not a data frame, namely the wireless data packet is a management frame or a control frame, directly discarding without processing, otherwise entering a condition II;
the condition II is to discard the wireless data packet of the non-target address, and the specific method is as follows: directly discarding the wireless data packet with the target address not being the first specific multicast address set ADDR1_ MAC without processing, otherwise entering the condition c;
condition (c), abandon the wireless data packet of the asynchronous header, the concrete method is: directly discarding the wireless data packet with the data Length smaller than the Length _ H byte without processing, reserving the rest, and entering the step 4;
step 4, classifying the wireless data packets possibly belonging to the synchronous header data, which specifically comprises the following steps:
4-1, if the source MAC address of the wireless data packet is not in the existing node, creating a new node for the wireless data packet, recording the source MAC address of the node, creating N null records under the node, and calculating the address sequence number of the wireless data packet according to the target MAC address of the wireless data packet; calculating the plaintext length according to the address serial number, the data length and the data transmission direction, writing the plaintext length into the record with the number corresponding to the address serial number, and returning to the step 3;
4-2, if the source MAC address of the wireless data packet is in the existing node, calculating the address sequence number according to the target MAC address of the wireless data packet, calculating the plaintext length according to the address sequence number, the data length and the data transmission direction, writing the plaintext length into the record corresponding to the address sequence number and the serial number of the corresponding node, and then entering the step 5;
step 5, checking whether the N records under the node which is updated recently are complete and legal, and sequentially judging according to the following two conditions:
the condition 5-1 is that whether N data packets of the synchronous header data are acquired or not is checked, if yes, the condition 5-2 is entered, and if not, the step 3 is returned;
condition 5-2, checking whether the plaintext lengths of N data packets of the synchronization header data are increased progressively from Length _ H, if so, indicating that the original information source is successfully positioned, and entering step 6, otherwise, returning to step 3, wherein the source MAC address recorded by the node is the original sending address of the synchronization header data;
step 6, the equipment to be distributed finds wireless data packets which are the same as the source MAC address of the synchronous head data and have the target address of a second specific multicast address set ADDR2_ MAC according to the source MAC address of the synchronous head data, wherein the wireless data packets are text data of the distribution network data, and the step 7 is entered;
step 7, analyzing the text data, extracting network names and networking passwords included in the distribution network information, and entering step 8;
step 8, configuring network settings of the equipment to be networked according to the network name and the networking password, lasting for M seconds, wherein M is 20-40 seconds, and if the networking is successful, finishing the network distribution; otherwise, the target equipment exits the distribution network mode due to overtime, the distribution network fails, and the step 1 is returned again.
As an improvement, in the step 1, a distribution network key is arranged on the device to be distributed, when a user presses the distribution network key, the device to be distributed enters a distribution network mode, and the device to be distributed starts to cyclically scan each communication channel and capture a data packet.
In step 2, the text data is generated by the following encoding method:
step a, according to distribution network information input on the main equipment, taking a network name as a first character string, taking a networking password as a second character string, respectively calculating the length of the first character string and the length of the second character string, and respectively calculating a CRC8 check code of the first character string and a CRC8 check code of the second character string;
b, splicing the length of the first character string, the CRC8 check code of the first character string, the length of the second character string, the CRC8 check code of the second character string, the first character string and the second character string into a third character string, and allocating a unique packet serial number for each byte in the third character string; the length of the first character string, the CRC8 check code of the first character string, the length of the second character string and the CRC8 check code of the second character string are all 1 byte;
and c, carrying out amplification coding on the third character string, and amplifying each byte into two bytes to obtain a fourth character string, wherein the fourth character string is the text data.
The packet sequence number in the step b is obtained according to the following rule, and the third character string is stored in an integer array DArray1.1 with the same length as the third character string:
rule 1, the range of packet sequence numbers is 0-127;
rule 2, the packet number of the length of the first string is 0, the packet number of the CRC8 check code of the first string is 1, the packet number of the length of the second string is 2, and the packet number of the CRC8 check code of the second string is 3;
rule 3, the packet sequence number of each byte of the first character string is 8-40, and the length of the first character string is not more than 32 bytes, wherein 33 bytes are distributed for the convenience of processing at a receiving end;
rule 4, the packet sequence number of each byte of the second character is 41-105, and because the length of the second character does not exceed 64 bytes, 65 bytes are allocated for the convenience of processing at the receiving end.
In the step 2, the master device sends distribution network data with a time interval of T1, and the initial value of T1 is 20 ms; every 20s, the T1 is increased by 10ms to reduce the influence of network congestion, and the T1 does not exceed 100ms at most; when the main device sends the distribution network data, the main device sends two bytes of text data when sending one byte of synchronization head data, so that the efficiency of positioning the distribution network packet by the target device is improved, and the phenomenon that the target device does not scan the synchronization head when scanning a channel, so that multi-round scanning is caused and the distribution network efficiency is reduced is avoided.
In the process of circularly scanning the channels, if a data frame with a target address of synchronous head data or text data is detected in a certain channel, the channel is marked, and a certain retention time is added in the channel.
In step 4, step 5, and step 6, it is necessary to convert the length of the wireless data packet by using the characteristic that the length of the uplink data packet is equal to the length of the downlink data packet-2, so that the wireless data packet is independent of the direction, and data in different transmission directions are merged, thereby improving the capturing efficiency.
And then, improving the method, after the original information source is successfully positioned, in the process of acquiring the text data, the channel is not locked, the acquisition quantity of the distribution network packets in the current channel is periodically detected and compared with a preset parameter (namely the quantity of the data packets acquired theoretically), if the acquisition efficiency of the distribution network data of the receiving end is lower than the preset value, channel switching is executed, and the problems that the receiving end is stopped for a long time on a wrong channel due to the channel overlapping problem and the distribution network time is long are avoided.
And then improving, after the original information source is successfully positioned, locking a small neighborhood of the channel by taking the current channel as a center, and if the current channel is m, taking the small neighborhood of the channel as { m-1, m, m +1, m +2}, n {1,2,3, … …, 13}), and in the process of acquiring the text data, if the channel needs to be switched due to poor signal quality, performing a plurality of rounds of cyclic switching in the small neighborhood of the channel, and then switching to other channels.
Compared with the prior art, the invention has the advantages that: the requirement on the signal strength of the router is low, and the success rate of the distribution network can be effectively improved; the problem that part of router models do not support forwarding and distribution network packets is solved; the transmission frequency is completely controlled, the router is prevented from being incapable of transmitting the network distribution packet in time or limiting the transmission frequency of the multicast/broadcast, data are completely decoupled, decoding does not depend on a receiving sequence, and the packet disorder tolerance is high when the network is congested; compared with the traditional packet sequence number-data-check code triple, the coding protocol is higher in transmission rate.
Drawings
Fig. 1 is a flowchart of a device distribution method in an embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the accompanying examples.
The invention provides a method for distributing network without screen equipment, which uses main equipment to distribute network to target equipment, the sending equipment of a network distribution packet is called as the main equipment, the equipment of the network distribution to be received is called as the target equipment, and the method comprises the following steps, as shown in figure 1:
step 1, enabling target equipment to enter a distribution network mode, enabling the target equipment to circularly scan each communication channel and capture a wireless data packet;
step 2, inputting distribution network information on the main equipment, wherein the distribution network information comprises a network name and a networking password, the main equipment generates distribution network data according to the distribution network information, the distribution network data comprises synchronization header data and text data, and the text data comprises the network name and the networking password; then connecting the master device with the wireless router or directly opening a hot spot of the master device, wherein the master device sends synchronization header data to a first specific multicast address set ADDR1_ MAC, and the first specific multicast address set ADDR1_ MAC comprises N specific addresses; the master device sends the text data to a second specific multicast address set ADDR2_ MAC; the synchronization header data comprises N data packets, wherein N is 3, 4 or 5, the N data packets are respectively sent to N specific addresses in a first specific multicast address set ADDR1_ MAC in a one-to-one correspondence manner, the plaintext lengths of the N data packets are increased in an equal difference manner from Length _ H, and the Length _ H takes 500-600 bytes; the text data is encoded according to a preset encoding rule, and the Length of the encoded plaintext is smaller than Length _ H;
and 3, after receiving the wireless data packet, the equipment to be configured sequentially filters the wireless data packet according to the following three conditions to filter out asynchronous header data so as to reduce the system load:
the condition is that a useless wireless data packet is discarded, and the specific method is as follows: distinguishing according to the data type of the wireless data packet, namely the subtype field of the wireless data packet, if the wireless data packet is not a data frame, namely the wireless data packet is a management frame or a control frame, directly discarding without processing, otherwise entering a condition II;
the condition II is to discard the wireless data packet of the non-target address, and the specific method is as follows: directly discarding the wireless data packet with the target address not being the first specific multicast address set ADDR1_ MAC without processing, otherwise entering the condition c;
condition (c), abandon the wireless data packet of the asynchronous header, the concrete method is: directly discarding the wireless data packet with the data Length smaller than the Length _ H byte without processing, reserving the rest, and entering the step 4;
step 4, judging whether complete synchronous head data is received, and specifically comprising the following steps:
4-1, if the source MAC address of the wireless data packet is not in the existing node, creating a new node for the wireless data packet, recording the source MAC address of the node, creating N null records under the node, and calculating the address sequence number of the wireless data packet according to the target MAC address of the wireless data packet; calculating the plaintext length according to the address serial number, the data length and the data transmission direction, writing the plaintext length into the record with the number corresponding to the address serial number, and returning to the step 3;
4-2, if the source MAC address of the wireless data packet is in the existing node, calculating the address sequence number according to the target MAC address of the wireless data packet, calculating the plaintext length according to the address sequence number, the data length and the data transmission direction, writing the plaintext length into the record corresponding to the address sequence number and the serial number of the corresponding node, and then entering the step 5;
step 5, checking whether the N records under the node which is updated recently are complete and legal, and sequentially judging according to the following two conditions:
the condition 5-1 is that whether N data packets of the synchronous header data are acquired or not is checked, if yes, the condition 5-2 is entered, and if not, the step 3 is returned;
condition 5-2, checking whether the plaintext lengths of N data packets of the synchronization header data are increased progressively from Length _ H, if so, indicating that the original information source is successfully positioned, and entering step 6, otherwise, returning to step 3, wherein the source MAC address recorded by the node is the original sending address of the synchronization header data;
step 6, the device to be configured finds wireless data packets which have the same source address as the source address of the synchronization header data and have the target address of a second specific multicast address set ADDR2_ MAC according to the original data source of the synchronization header data, wherein the wireless data packets are text data of the distribution network data, and the step 7 is entered;
step 7, analyzing the text data, extracting network names and networking passwords included in the distribution network information, and entering step 8;
step 8, configuring network settings of the equipment to be networked according to the network name and the networking password, lasting for M seconds, wherein M is 20-40 seconds, and if the networking is successful, finishing the network distribution; otherwise, the target equipment exits the distribution network mode due to overtime, the distribution network fails, and the step 1 is returned again.
In the step 1, a distribution network key is arranged on the equipment to be distributed, when a user presses the distribution network key, the equipment to be distributed enters a distribution network mode, and the equipment to be distributed starts to cyclically scan each communication channel and capture a data packet.
In step 2, the text data is generated by the following encoding method:
step a, according to distribution network information input on the main equipment, taking a network name as a first character string, taking a networking password as a second character string, respectively calculating the length of the first character string and the length of the second character string, and respectively calculating a CRC8 check code of the first character string and a CRC8 check code of the second character string;
b, splicing the length of the first character string, the CRC8 check code of the first character string, the length of the second character string, the CRC8 check code of the second character string, the first character string and the second character string into a third character string, and allocating a unique packet serial number for each byte in the third character string; the length of the first character string, the CRC8 check code of the first character string, the length of the second character string and the CRC8 check code of the second character string are all 1 byte;
and c, carrying out amplification coding on the third character string, and amplifying each byte into two bytes to obtain a fourth character string, wherein the fourth character string is the text data.
The packet sequence number in the step b is obtained according to the following rule, and the third character string is stored in an integer array DArray1.1 with the same length as the third character string:
rule 1, the range of packet sequence numbers is 0-127;
rule 2, the packet number of the length of the first string is 0, the packet number of the CRC8 check code of the first string is 1, the packet number of the length of the second string is 2, and the packet number of the CRC8 check code of the second string is 3;
rule 3, the packet sequence number of each byte of the first character string is 8-40, and the length of the first character string is not more than 32 bytes, wherein 33 bytes are distributed for the convenience of processing at a receiving end;
rule 4, the packet sequence number of each byte of the second character is 41-105, and because the length of the second character does not exceed 64 bytes, 65 bytes are allocated for the convenience of processing at the receiving end.
In the step 2, the master device sends distribution network data with a time interval of T1, and the initial value of T1 is 20 ms; every 20s, the T1 is increased by 10ms, and the T1 does not exceed 100ms at most; when the main device sends the distribution network data, the main device sends two bytes of text data when sending one byte of synchronization head data, so that the efficiency of positioning the distribution network packet by the target device is improved, and the phenomenon that the target device does not scan the synchronization head when scanning a channel, so that multi-round scanning is caused and the distribution network efficiency is reduced is avoided.
In the process of circularly scanning the channels, if a data frame with a target address of synchronous header data or text data is detected in a certain channel, the channel is marked, and certain staying time is added in the channel.
In the steps 4, 5, and 6, the data length of the wireless data packet is converted by using the characteristic that the uplink packet data length is equal to the downlink packet length-2, so that the data length is independent of the direction, and the data in different transmission directions are merged, thereby improving the capturing efficiency.
And in the process of acquiring the text data after the original information source is successfully positioned, the channel is not locked, the acquisition quantity of the distribution network packets in the current channel is periodically detected and compared with preset parameters, and if the acquisition efficiency of the distribution network data at the receiving end is lower than a preset value, channel switching is executed.
After the original source is successfully located, the actual source is more likely to be in a small neighborhood of the current channel. And locking a small neighborhood of a channel by taking the current channel as a center, if the current channel is m, taking the small neighborhood of the channel as { m-1, m, m +1, m +2 }. andd {1,2,3, … …, 13}), and carrying out a plurality of rounds of cyclic switching in the small neighborhood of the channel and then switching to other channels if the channel needs to be switched due to poor signal quality in the process of acquiring the text data.

Claims (9)

1. A device network distribution method is characterized in that a master device is used for carrying out network distribution on a target device, a sending device of a network distribution packet is called as a master device, and a device of a network to be received is called as a target device, and the method comprises the following steps:
step 1, enabling target equipment to enter a distribution network mode, enabling the target equipment to circularly scan each communication channel and capture a wireless data packet;
step 2, inputting distribution network information on the main equipment, wherein the distribution network information comprises a network name and a networking password, the main equipment generates distribution network data according to the distribution network information, the distribution network data comprises synchronization header data and text data, and the text data comprises the network name and the networking password; then connecting the master device with the wireless router or directly opening a hot spot of the master device, wherein the master device sends synchronization header data to a first specific multicast address set ADDR1_ MAC, and the first specific multicast address set ADDR1_ MAC comprises N specific addresses; the master device sends the text data to a second specific multicast address set ADDR2_ MAC; the synchronization header data comprises N data packets, wherein N is 3, 4 or 5, the N data packets are respectively sent to N specific addresses in a first specific multicast address set ADDR1_ MAC in a one-to-one correspondence manner, the plaintext lengths of the N data packets are increased in an equal difference manner from Length _ H, and the Length _ H takes 500-600 bytes; the text data is encoded according to a preset encoding rule, and the Length of the encoded plaintext is smaller than Length _ H;
and 3, after receiving the wireless data packet, the equipment to be configured sequentially filters the wireless data packet according to the following three conditions to filter out asynchronous header data so as to reduce the system load:
the condition is that a useless wireless data packet is discarded, and the specific method is as follows: distinguishing according to the data type of the wireless data packet, namely the subtype field of the wireless data packet, if the wireless data packet is not a data frame, namely the wireless data packet is a management frame or a control frame, directly discarding without processing, otherwise entering a condition II;
the condition II is to discard the wireless data packet of the non-target address, and the specific method is as follows: directly discarding the wireless data packet with the target address not being the first specific multicast address set ADDR1_ MAC without processing, otherwise entering the condition c;
condition (c), abandon the wireless data packet of the asynchronous header, the concrete method is: directly discarding the wireless data packet with the data Length smaller than the Length _ H byte without processing, reserving the rest, and entering the step 4;
step 4, judging whether complete synchronous head data is received, and specifically comprising the following steps:
4-1, if the source MAC address of the wireless data packet is not in the existing node, creating a new node for the wireless data packet, recording the source MAC address of the node, creating N null records under the node, and calculating the address sequence number of the wireless data packet according to the target MAC address of the wireless data packet; calculating the plaintext length according to the address serial number, the data length and the data transmission direction, writing the plaintext length into the record with the number corresponding to the address serial number, and returning to the step 3;
4-2, if the source MAC address of the wireless data packet is in the existing node, calculating the address sequence number according to the target MAC address of the wireless data packet, calculating the plaintext length according to the address sequence number, the data length and the data transmission direction, writing the plaintext length into the record corresponding to the address sequence number and the serial number of the corresponding node, and then entering the step 5;
step 5, checking whether the N records under the node which is updated recently are complete and legal, and sequentially judging according to the following two conditions:
the condition 5-1 is that whether N data packets of the synchronous header data are acquired or not is checked, if yes, the condition 5-2 is entered, and if not, the step 3 is returned;
condition 5-2, checking whether the plaintext lengths of N data packets of the synchronization header data are increased progressively from Length _ H, if so, indicating that the original information source is successfully positioned, and entering step 6, otherwise, returning to step 3, wherein the source MAC address recorded by the node is the original sending address of the synchronization header data;
step 6, the equipment to be distributed finds wireless data packets which are the same as the source MAC address of the synchronous head data and have the target address of a second specific multicast address set ADDR2_ MAC according to the source MAC address of the synchronous head data, wherein the wireless data packets are text data of the distribution network data, and the step 7 is entered;
step 7, analyzing the text data, extracting network names and networking passwords included in the distribution network information, and entering step 8;
step 8, configuring network settings of the equipment to be networked according to the network name and the networking password, lasting for M seconds, wherein M is 20-40 seconds, and if the networking is successful, finishing the network distribution; otherwise, the target equipment exits the distribution network mode due to overtime, the distribution network fails, and the step 1 is returned again.
2. The device network distribution method according to claim 1, wherein: in the step 1, a distribution network key is arranged on the equipment to be distributed, when a user presses the distribution network key, the equipment to be distributed enters a distribution network mode, and the equipment to be distributed starts to cyclically scan each communication channel and capture a data packet.
3. The device network distribution method according to claim 1, wherein: in step 2, the text data is generated by the following encoding method:
step a, according to distribution network information input on the main equipment, taking a network name as a first character string, taking a networking password as a second character string, respectively calculating the length of the first character string and the length of the second character string, and respectively calculating a CRC8 check code of the first character string and a CRC8 check code of the second character string;
b, splicing the length of the first character string, the CRC8 check code of the first character string, the length of the second character string, the CRC8 check code of the second character string, the first character string and the second character string into a third character string, and allocating a unique packet serial number for each byte in the third character string; the length of the first character string, the CRC8 check code of the first character string, the length of the second character string and the CRC8 check code of the second character string are all 1 byte;
and c, carrying out amplification coding on the third character string, and amplifying each byte into two bytes to obtain a fourth character string, wherein the fourth character string is the text data.
4. The device network distribution method according to claim 3, wherein: the packet sequence number in the step b is obtained according to the following rule, and the third character string is stored in an integer array DArray1.1 with the same length as the third character string:
rule 1, the range of packet sequence numbers is 0-127;
rule 2, the packet number of the length of the first string is 0, the packet number of the CRC8 check code of the first string is 1, the packet number of the length of the second string is 2, and the packet number of the CRC8 check code of the second string is 3;
rule 3, the packet serial number of each byte of the first character string is 8-40;
rule 4, packet number of each byte of the second character is 41-105.
5. The device network distribution method according to claim 1, wherein: in the step 2, the master device sends distribution network data with a time interval of T1, and the initial value of T1 is 20 ms; every 20s, the T1 is increased by 10ms, and the T1 does not exceed 100ms at most; when the main device sends the distribution network data, the main device sends two bytes of text data when sending one byte of synchronous head data.
6. The device network distribution method according to claim 1, wherein: in the process of circularly scanning the channels, if a data frame with a target address of synchronous header data or text data is detected in a certain channel, the channel is marked, and certain staying time is added in the channel.
7. The device network distribution method according to claim 1, wherein: in steps 4, 5, and 6, the data length of the wireless packet is converted to be independent of the direction by using the characteristic that the uplink packet data length is equal to the downlink packet length-2, and the data in different transmission directions are merged.
8. The device network distribution method according to claim 1, wherein: and in the process of acquiring the text data after the original information source is successfully positioned, the channel is not locked, the acquisition quantity of the distribution network packets in the current channel is periodically detected and compared with preset parameters, and if the acquisition efficiency of the distribution network data at the receiving end is lower than a preset value, channel switching is executed.
9. The device network distribution method according to claim 8, wherein: after the original information source is successfully positioned, a small neighborhood of the channel is locked by taking the current channel as a center, if the current channel is m, the small neighborhood of the channel is { m-1, m, m +1, m +2 }. andd {1,2,3, … …, 13}), and in the process of acquiring the text data, if the channel needs to be switched due to poor signal quality, a plurality of rounds of circular switching are firstly carried out in the small neighborhood of the channel, and then the channel is switched to other channels.
CN201910288577.XA 2019-04-11 2019-04-11 Equipment network distribution method Active CN111817866B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910288577.XA CN111817866B (en) 2019-04-11 2019-04-11 Equipment network distribution method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910288577.XA CN111817866B (en) 2019-04-11 2019-04-11 Equipment network distribution method

Publications (2)

Publication Number Publication Date
CN111817866A true CN111817866A (en) 2020-10-23
CN111817866B CN111817866B (en) 2022-03-18

Family

ID=72843756

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910288577.XA Active CN111817866B (en) 2019-04-11 2019-04-11 Equipment network distribution method

Country Status (1)

Country Link
CN (1) CN111817866B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112672277A (en) * 2020-12-16 2021-04-16 珠海格力电器股份有限公司 Network distribution method and network distribution system
CN112788140A (en) * 2021-01-14 2021-05-11 珠海格力电器股份有限公司 Data synchronization method and system
WO2024000087A1 (en) * 2022-06-27 2024-01-04 Qualcomm Incorporated Techniques for voice call stall detection and mitigation

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060176835A1 (en) * 2005-02-07 2006-08-10 Samsung Electronics Co.; Ltd System and method for providing internet protocol based broadcast services
CN104660726A (en) * 2015-02-03 2015-05-27 普联技术有限公司 Network configuration method, device and system for intelligent device
CN104883268A (en) * 2014-02-28 2015-09-02 海尔集团公司 Method for transmitting and receiving network configuration information based on multicast technology, and terminal thereof
CN105119957A (en) * 2015-07-10 2015-12-02 普联技术有限公司 Information transmission method and device used for intelligent device
CN105554907A (en) * 2015-12-11 2016-05-04 深圳市奥金瑞科技有限公司 General method for configuring WiFi device to make same to connect WiFi router
CN106028423A (en) * 2016-05-06 2016-10-12 武汉诚迈科技有限公司 Wireless network distribution method applicable to smart furniture device
CN108243482A (en) * 2017-12-25 2018-07-03 惠州Tcl移动通信有限公司 A kind of network collocating method, storage medium and electronic equipment
CN109451502A (en) * 2018-12-27 2019-03-08 广东美的厨房电器制造有限公司 Household appliance matches network method, network distribution device and computer readable storage medium
CN109548019A (en) * 2017-08-01 2019-03-29 苏宁云商集团股份有限公司 A kind of distribution method and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060176835A1 (en) * 2005-02-07 2006-08-10 Samsung Electronics Co.; Ltd System and method for providing internet protocol based broadcast services
CN104883268A (en) * 2014-02-28 2015-09-02 海尔集团公司 Method for transmitting and receiving network configuration information based on multicast technology, and terminal thereof
CN104660726A (en) * 2015-02-03 2015-05-27 普联技术有限公司 Network configuration method, device and system for intelligent device
CN105119957A (en) * 2015-07-10 2015-12-02 普联技术有限公司 Information transmission method and device used for intelligent device
CN105554907A (en) * 2015-12-11 2016-05-04 深圳市奥金瑞科技有限公司 General method for configuring WiFi device to make same to connect WiFi router
CN106028423A (en) * 2016-05-06 2016-10-12 武汉诚迈科技有限公司 Wireless network distribution method applicable to smart furniture device
CN109548019A (en) * 2017-08-01 2019-03-29 苏宁云商集团股份有限公司 A kind of distribution method and system
CN108243482A (en) * 2017-12-25 2018-07-03 惠州Tcl移动通信有限公司 A kind of network collocating method, storage medium and electronic equipment
CN109451502A (en) * 2018-12-27 2019-03-08 广东美的厨房电器制造有限公司 Household appliance matches network method, network distribution device and computer readable storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112672277A (en) * 2020-12-16 2021-04-16 珠海格力电器股份有限公司 Network distribution method and network distribution system
CN112672277B (en) * 2020-12-16 2022-12-20 珠海格力电器股份有限公司 Network distribution method and network distribution system
CN112788140A (en) * 2021-01-14 2021-05-11 珠海格力电器股份有限公司 Data synchronization method and system
WO2024000087A1 (en) * 2022-06-27 2024-01-04 Qualcomm Incorporated Techniques for voice call stall detection and mitigation

Also Published As

Publication number Publication date
CN111817866B (en) 2022-03-18

Similar Documents

Publication Publication Date Title
CN111817866B (en) Equipment network distribution method
CN106332224B (en) Equipment network distribution method, device and system
US9439094B2 (en) Monitoring probe for identifying a user plane identifier of a user device
CN106413033B (en) method and device for configuring new device to access network by using on-network device
US20060153156A1 (en) Systems and methods for the connection and remote configuration of wireless clients
CN108696588B (en) Information sending method and equipment
JP5982690B2 (en) Network convergence method, device, and communication system
CN102231887A (en) Method, system for finding AP (access point) with hidden SSID (service set identifier) and terminal device
WO2018090949A1 (en) Csi acquisition method and device for 802.11-based network
CN109495594B (en) Data transmission method, PNF SDN controller, VNF SDN controller and system
US11451286B2 (en) Communication method and communications device thereof
CN104270744A (en) Rapid configuration system and method for wireless network
US20180145905A1 (en) Data link layer-based communication method, device, and system
CN112261591B (en) Method for rapidly and stably configuring wifi through one key
EP2369791B1 (en) Apparatus and method for establishing connections with a plurality of virtual networks
US20220294551A1 (en) Upstream resource grant method, related device, and computer-readable storage medium
WO2019080312A1 (en) Wps-based quick connection method and wireless device
US8320316B2 (en) Method for accelerating terminal of wireless communication system accessing network
US20200351156A1 (en) Method and system for fast onboarding new device into existing iot network
CN105323128B (en) method, device and system for accessing front-end equipment to server
CN113613251A (en) Information synchronization method and system, storage medium and electronic device
CN105992162A (en) Method for communication through multicast frame embedded data under unrelated WIFI environment
JP6377760B2 (en) ProSe information transmission method, terminal, and communication device
WO2018049655A1 (en) Device networking method, apparatus and system
US8400963B2 (en) System and method for accelerated network entrance

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant