CN107426798B - WIFI module network distribution method and device - Google Patents

WIFI module network distribution method and device Download PDF

Info

Publication number
CN107426798B
CN107426798B CN201710328930.3A CN201710328930A CN107426798B CN 107426798 B CN107426798 B CN 107426798B CN 201710328930 A CN201710328930 A CN 201710328930A CN 107426798 B CN107426798 B CN 107426798B
Authority
CN
China
Prior art keywords
data
wifi module
ssid
password
channel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710328930.3A
Other languages
Chinese (zh)
Other versions
CN107426798A (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.)
GD Midea Air Conditioning Equipment Co Ltd
Original Assignee
GD Midea Air Conditioning Equipment 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 GD Midea Air Conditioning Equipment Co Ltd filed Critical GD Midea Air Conditioning Equipment Co Ltd
Priority to CN201710328930.3A priority Critical patent/CN107426798B/en
Publication of CN107426798A publication Critical patent/CN107426798A/en
Application granted granted Critical
Publication of CN107426798B publication Critical patent/CN107426798B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The WIFI module network distribution method comprises the following steps: when the WIFI module is detected to enter a distribution network mode, effective data sensed by the WIFI module are acquired, the acquired effective data of each channel are stored in a corresponding buffer pool of the WIFI module and are subjected to channel locking, when the channel locking is completed based on the effective data, the effective data are collected and sequenced to judge whether all effective data required by internet connection are collected or not, and if all effective data required by the internet connection are collected, the collected effective data are sorted to complete the internet connection of the WIFI module. The invention further provides a corresponding device on the basis of the WIFI module network distribution method. According to the invention, the effective data in the data packets are received in batch, and the effective data are processed after the effective data are received completely, so that the data receiving time is shortened, and the WIFI distribution network efficiency and success rate are improved.

Description

WIFI module network distribution method and device
Technical Field
The invention relates to the field of intelligent household appliances, in particular to a WIFI module network distribution method and device.
Background
At present, more and more smart mobile phone brands are provided, the success rate of a distribution network is different, and the distribution time is different when each large smart cloud platform is accessed, so that the success rate and compatibility of the distribution network are seriously influenced.
In the existing process of utilizing a wireless distribution network of a fast connection technology, data needs to be acquired respectively according to a certain sequence, namely, network information is transmitted to equipment A which is not networked through packet transmitting data by networking equipment B, one data packet is provided with a plurality of data, if the equipment A does not receive the required data, other data in the data packet are not processed, the networking equipment B is waited for circularly transmitting the data until the equipment A receives the required data, the time for distribution network is prolonged due to the sequential acquisition of the distribution network data, and distribution network failure can be displayed because the distribution network has limited time and the distribution network data cannot be acquired within the limited time; for example, a mobile phone with a high packet loss rate needs a longer time to obtain an SSID and a password when the network is configured, and the failure rate of the network is high because the mobile phone sets the network for a limited time.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a WIFI module network distribution method and device, and aims to shorten the time of network distribution by a quick connection technology.
In order to achieve the above object, the network distribution method for the WIFI module provided by the present invention comprises the following steps:
when the WIFI module is detected to enter a distribution network mode, acquiring effective data sensed by the WIFI module;
storing the acquired effective data of each channel into a corresponding buffer pool of the WIFI module;
when channel locking is completed based on the effective data, the effective data is collected and sequenced to judge whether all effective data required by internet connection are collected;
and if all effective data required by the connection to the Internet are collected, the collected effective data are sorted to finish the connection to the Internet of the WIFI module.
Optionally, the buffer pool corresponds to the channels one by one, and the buffer pool comprises a plurality of buffer areas for storing effective data detected by the WIFI module;
the step of collecting and sorting the valid data when channel locking is completed based on the valid data comprises:
storing the acquired effective data of each channel into a buffer pool corresponding to the channel, and correspondingly placing the stored effective data according to a preset buffer area;
and judging whether the WIFI module completes channel locking according to effective data stored in a preset buffer area of the buffer pool.
Optionally, the valid data stored in the buffer pool includes: SSID length data, password length data, SSID data, and password data;
the step of collecting and sorting the valid data when channel locking is completed based on the valid data comprises:
when channel locking is completed based on the effective data, whether SSID length data and password length data are received in a buffer pool corresponding to the locked channel is judged;
and if the SSID length data and the password length data are received in the buffer pool corresponding to the locked channel, marking the received SSID length data and the password length data so as to process the received SSID data and the received password data.
Optionally, the step of tagging the received SSID length data and password length data so as to process the received SSID data and password data is followed by the step of:
judging whether the marked SSID length data and password length data are valid or not by using valid data stored in the buffer area;
and if the marked SSID length data and password length data are valid, judging whether the obtained SSID data and password data are complete.
Optionally, the step of processing all the acquired data required for connecting to the internet and using the processed data to connect to the internet includes:
and correspondingly adjusting the data processing sequence during data processing according to the sequence of the SSID length data, the password length data, the SSID data and the password data obtained by monitoring.
In addition, in order to achieve the above object, the present invention further provides a WIFI module network distribution device, including:
the detection and interception module is used for acquiring effective data intercepted by the WIFI module when the WIFI module is detected to enter a distribution network mode;
the acquisition and storage module is used for storing the acquired effective data of each channel into a corresponding buffer pool of the WIFI module;
the locking judgment module is used for collecting and sequencing the effective data when channel locking is completed based on the effective data so as to judge whether all the effective data required by internet connection are collected;
and the connection internet surfing module is used for sorting the collected effective data to finish the connection internet surfing of the WIFI module if all effective data required by the connection internet surfing are collected.
Optionally, the buffer pool corresponds to the channels one by one, and the buffer pool comprises a plurality of buffer areas for storing effective data detected by the WIFI module; the acquisition and storage module comprises:
the monitoring storage unit is used for storing the acquired effective data of each channel into a buffer pool corresponding to the channel and correspondingly storing the stored effective data according to a preset buffer area;
and the storage judging unit is used for judging whether the WIFI module completes channel locking according to effective data stored in the buffer area preset by the buffer pool.
Optionally, the valid data stored in the buffer pool includes: SSID length data, password length data, SSID data, and password data; the locking judgment module comprises:
the channel locking unit is used for judging whether SSID length data and password length data are received in a buffer pool corresponding to a locked channel or not when channel locking is finished based on the effective data;
and the first judging unit is used for marking the received SSID length data and password length data so as to process the received SSID data and password data if the SSID length data and the password length data are received in the buffer pool corresponding to the locked channel.
Optionally, the locking determining module includes:
the second judging unit is used for judging whether the marked SSID length data and the marked password length data are valid or not by using the valid data stored in the buffer area;
and the third judging unit is used for judging whether the obtained SSID data and password data are complete or not if the marked SSID length data and password length data are valid.
Optionally, the WIFI module distribution network device further includes a processing adjustment module, and the processing adjustment module is configured to:
and correspondingly adjusting the data processing sequence during data processing according to the sequence of the SSID length data, the password length data, the SSID data and the password data obtained by monitoring.
According to the WIFI module network distribution method, when the WIFI module is detected to enter a network distribution mode, the WIFI module starts to monitor data and acquire monitored effective data, the one-to-one corresponding relation between channels and buffer pools is preset, the acquired effective data of each channel is stored in the corresponding buffer pool of the WIFI module, whether channel locking can be performed by utilizing the effective data is judged, and when channel locking is completed based on the effective data, the effective data are collected and sequenced to judge whether all effective data required by connection to the Internet are collected; in the distribution network of the WIFI module, the WIFI module receives all effective data packets sent by the networking equipment and processes all the received effective data, so that the packet loss rate of the equipment can be reduced, the time for the WIFI module to receive the networking data for distribution is shortened, and the efficiency and the success rate of the distribution network of the WIFI module are further improved.
Drawings
Fig. 1 is a detailed scene schematic diagram of a network distribution method and device for a WIFI module according to the present invention;
fig. 2 is a schematic flowchart of an embodiment of a WIFI module network distribution method of the present invention;
fig. 3 is a detailed flowchart of step S20 of the WIFI module network distribution method in fig. 2;
fig. 4 is a detailed flowchart of step S30 of the WIFI module network distribution method in fig. 2;
fig. 5 is a schematic view of a specific scene flow of a WIFI module network distribution method and apparatus of the present invention;
fig. 6 is a schematic flow diagram of another specific scenario of the WIFI module network distribution method and apparatus of the present invention;
fig. 7 is a schematic functional module diagram of a WIFI module distribution network apparatus according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a detailed functional module for acquiring the storage module 20 in the WIFI module distribution network device in fig. 7;
fig. 9 is a schematic diagram of a detailed functional module of the locking determination module 30 in the distribution network device of the WIFI module in fig. 7;
fig. 10 is a schematic functional module diagram of another embodiment of a WIFI module distribution network apparatus of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides a WIFI module network distribution method.
Referring to fig. 1, fig. 1 is a detailed view of a network distribution method of a WIFI module, a networking device B packages network routing information to a device a (WIFI module) without networking by sending package data, one data package has a plurality of SSID data and password data, the device a (WIFI module) receives valid data in the data package, since the device a (WIFI module) cannot receive all data in the data package at one time, therefore, data needs to be sent by the networking device B in a circulating manner until the device a receives all the data, and it needs to be added to explain that the WIFI fast connection technology refers to that in the device connection process of the internet of things, the method comprises the steps that a broadcast packet and a multicast packet are sent to configured household appliances (the configured household appliances can be intelligent air conditioners, intelligent televisions and other intelligent household appliances with WIFI modules) through networked devices, so that other intelligent appliances can configure the wireless router. The configuration mode is generally that the SSID and the password of the wireless router are sent to the WIFI module through an air interface in a mode of sending wireless electromagnetic waves through a mobile phone or the router, and after receiving the wireless electromagnetic waves, the WIFI module is connected to corresponding router equipment according to SSID and password information carried in the electromagnetic waves to achieve network configuration.
Referring to fig. 2, in an embodiment of the WIFI module network distribution method of the present invention, the method includes the following steps:
step S10, when the WIFI module is detected to enter the distribution network mode, effective data sensed by the WIFI module is obtained;
in the process of installing a distribution network on equipment, when the WIFI module is detected to enter a distribution network mode, the WIFI module installed in the equipment starts a data interception mode (data interception: receiving data sent by other hardware equipment or intercepting and receiving required data and intercepting redundant data by utilizing the prior art), and the networked equipment correspondingly acquires intercepted effective data.
Step S20, storing the acquired effective data of each channel into a corresponding buffer pool of the WIFI module;
storing the acquired effective data of each channel into a corresponding buffer pool according to the one-to-one correspondence relationship between the channels and the buffer pools, and judging whether channel locking can be performed or not by using the acquired effective data; it should be added that, after step S10, channel detection is required, that is, in a wireless communication system shared by multiple channels, a free channel needs to be searched and detected to determine a channel to which a WIFI module in a device is connected, 13 buffer pools are correspondingly provided for 13 channels of a wireless network, (a buffer pool is a database connection pool that allows an application to reuse a database connection already in the pool to avoid repeatedly establishing a new database connection, and store the obtained data in the buffer pool for uniform management), store the obtained valid data of each channel in the corresponding buffer pool, and determine whether channel locking is possible by using the obtained valid data, and perform channel locking by using data in the received data packet.
Step S30, when channel locking is completed based on the effective data, the effective data is collected and sequenced to judge whether all the effective data required by connecting to the Internet is collected;
if channel locking can be completed by using the effective data in the buffer pool (channel locking: according to the received data, if the data in the buffer pool meets the channel locking rule, the data in the locked channel is processed), the effective data is collected and sequenced, whether all data required for connecting to the Internet is received in the buffer pool is further judged, the data required in the WIFI fast connection technology distribution network is SSID data and password data (password), and SSID length data and password length data are also involved in the data processing process.
And step S40, if all effective data required by the connection to the Internet are collected, the collected effective data are sorted to finish the connection to the Internet of the WIFI module.
The method comprises the steps of arranging SSID data and password data required by the equipment for monitoring and receiving connection and surfing, namely, sequencing the SSID data and the password data, and inputting the sequenced SSID data and password data into corresponding positions to complete connection and surfing of a WIFI module.
In this embodiment, when it is detected that the WIFI module enters the distribution network mode, data monitoring is started, monitored effective data is obtained, the obtained effective data of each channel is stored in a corresponding buffer pool of the WIFI module according to a one-to-one correspondence relationship between the channel and the buffer pool, whether channel locking can be performed is judged by using the obtained effective data, and when channel locking is completed based on the effective data, the effective data is collected and sorted to judge whether all effective data required for connecting to the internet are collected; the buffer pool is used for receiving all SSID data and password data, and after the data validity is analyzed and judged, the data is processed by using a related algorithm and then connected to the Internet, so that the data receiving time is shortened, and the success rate of the distribution network is increased.
Referring to fig. 3, in the distribution network method for the WIFI module of the present invention, the buffer pools are in one-to-one correspondence with the channels, and each buffer pool includes a plurality of buffer areas for storing valid data listened by the WIFI module; step S20 includes:
step S21, storing the obtained effective data of each channel into a buffer pool corresponding to the channel, and correspondingly placing the stored effective data according to a preset buffer area;
when the WIFI module receives the packet data sent by the networking device, referring to fig. 1, the device a (WIFI module) is not connected to any AP, and the device a (WIFI module) enters a promiscuous mode, that is, the device a (WIFI module) can receive all the WIFI data packets transmitted over the air, in order to prevent the data packets received by the device a (WIFI module) from being confused, the packet sending device B needs to encrypt the sent data packets, and the data packets received by the device a (WIFI module) need to decrypt, so that it is not feasible to transmit the information of the AP to the fast connection (wireless router) through the data segments of the data packets, so by setting the length and the multicast address of the data packets, the data is encoded and sent by the length of the packets or the multicast address of the AP (wireless router) information, but the amount of information of one data is limited, and the SSID and the Password (Password) of the AP (wireless router) have a few bytes, the method comprises the steps that a series of data packets need to be transmitted instead of being coded by one data packet, effective data of a distribution network are further determined by confirming the sequence of the packets, equipment A (a WIFI module) monitors and receives the effective data in the packet sending data, the effective data required by the distribution network can refer to the data shown in a table 1, the conditions such as the packet sending sequence, the packet receiving sequence, the number of the received packets and the like of the data and related data are required to be placed in a buffer area for processing in a channel locking stage, the stored effective data are correspondingly placed according to the preset buffer area, namely the buffer area preset in the buffer pool can be provided with an SSID related data storage area, a password related data storage area, a signal locking data storage area and the like.
Figure BDA0001291219390000071
Table 1
The WIFI module is used for intercepting received effective data, namely, the device A can receive the effective data in a data packet, the data index of the received effective data (the effective data: data required by a distribution network, such as a password 6 with an index of 3 is received in a first received data packet, the password 6 with the index of 3 is still received in a second data packet, and the data in the second data packet is not stored) is utilized, the effective data is stored in a corresponding position, the packet receiving is not required according to the index sequence of the data, the effective data is correspondingly stored in a buffer pool data table according to a preset sequence (the buffer pool data table does not really exist but is stored according to the logic after the data sequence is processed, the table 2 is referred to the table 2 and is the logic for storing the password or SSID data, the effective data is obtained and is filled in a corresponding buffer pool after each channel is scanned, wherein, if the same data appears in the same buffer pool, the data is not recorded; note that since the packets are not necessarily received sequentially, the logic for receiving the buffer pool Data is which Data is received, e.g., Index2Data2, Index5Data5, Index1Data 1. Then the recording sequence when recording into the buffer pool is: 1. storing Index2Data2 into buffer pool Data space 2; 2. storing Index5Data5 into buffer pool Data space 5; 3. storing Index1Data1 into buffer pool Data space 1; note that, as shown in the table in table 2, two sets should be provided in the same buffer, one set being for storing SSID-related data and the other set being for storing password data).
Data ID Indexing Data of
0 Index1 Data1
1 Index2 Data2
2 Index3 Data3
n indexn DataN
TABLE 2
And step S22, judging whether the WIFI module completes channel locking according to effective data stored in a preset buffer area of the buffer pool.
According to the data stored in the buffer pool buffer area table, whether channel locking can be carried out on the sensed effective data is judged, the channel locking is carried out by processing encrypted data and correspondingly calculating the data in the received packet to judge whether channel locking can be carried out, namely, the data packet received by the WIFI module meets the requirement of encryption calculation, and then a corresponding channel can be locked. It should be noted that, after channel locking, only data in a corresponding channel can be processed, and a situation that two channels are locked at the same time does not occur.
In this embodiment, the obtained effective data of each channel is stored in a buffer pool corresponding to the channel, the stored effective data is correspondingly stored according to a preset buffer area, and whether channel locking of the WIFI module is completed is judged according to the effective data stored in the preset buffer area of the buffer pool; data in the received data packets are stored according to data storage logic, and the packets received by the WIFI module are subjected to channel locking by using the data in the packets, so that packet sending quantity of networking equipment is reduced, and effective data is obtained at the fastest speed, so that the data processing efficiency is improved, and the success rate of a distribution network is improved.
Referring to fig. 4, the valid data stored in the buffer pool in this embodiment includes: SSID length data, password length data, SSID data, and password data, step S30 includes:
step S31, when channel locking is completed based on the effective data, judging whether SSID length data and password length data are received in a buffer pool corresponding to the locked channel;
channel locking can be performed according to the obtained effective data (that is, after decryption calculation, data in data packets received by the WIFI module can obtain corresponding data values through corresponding decryption operation, and then the WIFI module is considered to be capable of receiving all data packets sent by the networking device).
Judging whether SSID length data and password length data are received in a buffer pool corresponding to the locked channel, namely, all the effective data received by the WIFI module are processed, the effective data are processed in a logical sequence, after the channel is locked, it is necessary to further determine whether SSID length data and password length data are received in the buffer pool, as shown in table 2, when the WIFI module logically processes data, the WIFI module corresponds to two tables shown in table 2, one table is used for storing SSID data, the other table is used for storing password data, according to the index value of the data in the table, if the maximum index data plus 1 equals to the length data, it is considered that the length data corresponding to the password or the SSID is received, specifically, the password length is "6", and if the index value is "5", it is considered that the password length data is received in the buffer pool.
Step S32, if SSID length data and password length data are received in a buffer pool corresponding to the locked channel, the received SSID length data and password length data are marked so as to process the received SSID data and password data;
and if the SSID length data and the password length data are received in the buffer pool corresponding to the locked channel, marking the obtained SSID length data and the obtained password length data so as to further process the obtained SSID data and the obtained password data by using the SSID length data and the password length data.
Step S33, judging whether the marked SSID length data and password length data are valid by using the valid data stored in the buffer area;
and comparing the marked SSID length data and password length data with a theoretical value required by connection and Internet surfing according to a preset algorithm in a distribution network of the WIFI module by using the effective data stored in the buffer area to determine whether the marked SSID length data and password length data are effective, namely judging whether the number of the SSID data and the number of the password data in the effective data received in the buffer pool are equal to the number of the SSID data and the number of the password data connected with the Internet surfing.
Step S34, if the SSID length data and the password length data marked are valid, determine whether the obtained SSID data and password data are complete.
When the SSID length data and the password length data obtained through identification are valid, whether the detected SSID data and the detected password data are complete is further judged, that is, each index value in a table shown in table 2 has corresponding data or symbols, so that all SSID data and password data are determined to be received.
In this embodiment, when channel locking is completed based on valid data, it is determined whether SSID length data and password length data are received in a buffer pool corresponding to a locked channel, and if SSID length data and password length data are received in a buffer pool corresponding to a locked channel, the SSID length data and the password length data are marked to be received, so that the received SSID data and the received password data are processed, all the received data are processed, the data processing efficiency is improved, and the distribution network efficiency is further improved. The method comprises the steps of judging whether marked SSID length data and password length data are effective or not by using effective data stored in a buffer pool, further judging whether the obtained SSID data and password data are complete or not if the marked SSID length data and password length data are effective, processing the data in the corresponding buffer pool when network connection data are collected completely, and connecting to the Internet by using the processed effective data, so that the efficiency of the quick connection technology distribution network is accelerated.
In another embodiment of the present invention, the WIFI module network distribution method further includes:
and step S50, correspondingly adjusting the data processing sequence during data processing according to the sequence of the SSID length data, the password length data, the SSID data and the password data obtained by monitoring.
Further, according to the sequence of the SSID length data, the password length data, the SSID data and the password data obtained by monitoring, in the process of connecting the device to the internet and the distribution network, if the password data is received first, adjusting data processing logic, processing the password data first and then processing the SSID data, as shown in fig. 5, if the SSID data is received first, correspondingly adjusting the data processing logic, processing the SSID data first and then processing the password data, as shown in fig. 6, and correspondingly adjusting the data processing sequence during data processing; it should be noted that the data processing sequence here refers to a logical sequence of data processing, and when the WIFI module receives data, the sequence is not divided, but only valid data in the data packet is stored in the buffer pool.
In this embodiment, in the process of distribution network data processing in the WIFI module fast connection technology, according to the sequence of obtaining SSID length data, password length data, SSID data and password data through interception, the data processing sequence is adjusted correspondingly during data processing, so that the data processing efficiency is improved, the distribution network time is shortened, and the distribution network success rate is further improved.
Referring to fig. 7, an embodiment of the network distribution device with the WIFI module of the present invention includes:
the detection and interception module 10 is used for acquiring effective data intercepted by the WIFI module when the WIFI module is detected to enter a distribution network mode;
in the process of installing a distribution network on the equipment, when the detection interception module 10 detects that the WIFI module enters a distribution network mode, the WIFI module installed in the equipment starts a data interception mode (data interception: using the prior art to receive data sent by other hardware equipment, or to intercept and receive needed data and intercept redundant data), and the networked equipment correspondingly acquires effective data obtained by interception.
The obtaining and storing module 20 is configured to store the obtained effective data of each channel into a corresponding buffer pool of the WIFI module;
according to the one-to-one correspondence relationship between the channels and the buffer pools, the obtaining and storing module 20 stores the obtained effective data of each channel into the corresponding buffer pool, and judges whether channel locking can be performed or not by using the obtained effective data; it should be added that, after step S10, channel detection is required, that is, in a wireless communication system shared by multiple channels, a free channel needs to be searched and detected to determine a channel to which a WIFI module in a device is connected, 13 buffer pools are correspondingly provided for 13 channels of a wireless network, (a buffer pool is a database connection pool that allows an application to reuse a database connection already in the pool to avoid repeatedly establishing a new database connection, and store the obtained data in the buffer pool for uniform management), store the obtained valid data of each channel in the corresponding buffer pool, and determine whether channel locking is possible by using the obtained valid data, and perform channel locking by using data in the received data packet.
A locking judgment module 30, configured to collect and sort the valid data when channel locking is completed based on the valid data, so as to judge whether all valid data required for connecting to the internet is collected;
if channel locking can be completed by using the valid data in the buffer pool (channel locking: according to the received data, if the data in the buffer pool meets the channel locking rule, the data in the locked channel is processed), the locking judgment module 30 collects and sequences the valid data, further judges whether all data required for connecting to the internet is received in the buffer pool, the data required in the distribution network of the WIFI fast connection technology is SSID data and password data (password), and SSID length data and password length data are also involved in the data processing process.
And the connection internet surfing module 40 is used for sorting all the collected effective data to finish the connection internet surfing of the WIFI module if all the effective data required by the connection internet surfing are collected.
The SSID data and the password data which are required by the equipment for monitoring and receiving the connection and the internet surfing are sorted, namely, the connection and the internet surfing module 40 sorts the collected data according to the SSID data and the password data, and the sorted SSID data and the sorted password data are input into corresponding positions to complete the connection and the internet surfing of the WIFI module.
In this embodiment, when it is detected that the WIFI module enters the distribution network mode, data monitoring is started, monitored effective data is obtained, the obtained effective data of each channel is stored in a corresponding buffer pool of the WIFI module according to a one-to-one correspondence relationship between the channel and the buffer pool, whether channel locking can be performed is judged by using the obtained effective data, and when channel locking is completed based on the effective data, the effective data is collected and sorted to judge whether all effective data required for connecting to the internet are collected; the buffer pool is used for receiving all SSID data and password data, and after the data validity is analyzed and judged, the data is processed by using a related algorithm and then connected to the Internet, so that the data receiving time is shortened, and the success rate of the distribution network is increased.
Referring to fig. 8, in the distribution network device for the WIFI module of the present invention, the buffer pools are in one-to-one correspondence with the channels, and each buffer pool includes a plurality of buffer areas for storing valid data listened by the WIFI module; the acquisition and storage module 20 includes:
the monitoring storage unit 21 is configured to store the acquired effective data of each channel into a buffer pool corresponding to the channel, and correspondingly store the stored effective data according to a preset buffer area;
when the WIFI module receives the packet data sent by the networking device, referring to fig. 1, the device a (WIFI module) is not connected to any AP, and the device a (WIFI module) enters a promiscuous mode, that is, the device a (WIFI module) can receive all the WIFI data packets transmitted over the air, in order to prevent the data packets received by the device a (WIFI module) from being confused, the packet sending device B needs to encrypt the sent data packets, and the data packets received by the device a (WIFI module) need to decrypt, so that it is not feasible to transmit the information of the AP to the fast connection (wireless router) through the data segments of the data packets, so by setting the length and the multicast address of the data packets, the data is encoded and sent by the length of the packets or the multicast address of the AP (wireless router) information, but the amount of information of one data is limited, and the SSID and the Password (Password) of the AP (wireless router) have a few bytes, the data is not coded by one data packet, a series of data packets need to be transmitted, the effective data of the distribution network is further determined by confirming the sequence of the packets, the device A (WIFI module) monitors and receives the effective data in the packet sending data, the effective data required by the distribution network can refer to the data shown in the table 3, the monitoring storage unit 21 needs to process the conditions of the packet sending sequence, the packet receiving sequence, the number of the received packets and the like and related data in a buffer area in a channel locking stage, and the stored effective data are correspondingly placed according to the preset buffer area, namely, the preset buffer area of the buffer pool can be provided with an SSID related data storage area, a password related data storage area, a signal locking data storage area and the like.
Figure BDA0001291219390000131
Table 3
The WIFI module listens to the received valid data, that is, the device a may receive the valid data in the data packet, and uses the data index of the received valid data (valid data: data required by the distribution network, for example, a password "6" with an index of "3" is received in the first received data packet, a password "6" with an index of "3" is still received in the second data packet, and data in the second data packet is not stored), the listening and storing unit 21 stores the valid data in the corresponding position, does not need to receive packets according to the index sequence of the data, and correspondingly stores the valid data in the buffer pool data table according to the preset sequence (the buffer pool data table does not really exist, but stores the valid data in the buffer pool data table according to the data sequence, referring to the logic shown in table 4, where table 4 is the logic for storing the password or SSID data, and scans each channel to obtain the valid data and fills the valid data in the corresponding buffer pool, wherein, if the same data appears in the same buffer pool, the data is not recorded; note that since the packets are not necessarily received sequentially, the logic for receiving the buffer pool Data is which Data is received, e.g., Index2Data2, Index5Data5, Index1Data 1. Then the recording sequence when recording into the buffer pool is: 1. storing Index2Data2 into buffer pool Data space 2; 2. storing Index5Data5 into buffer pool Data space 5; 3. storing Index1Data1 into buffer pool Data space 1; note that, as shown in the table in table 4, two sets should be provided in the same buffer, one set being for storing SSID-related data and the other set being for storing password data).
Data ID Indexing Data of
0 Index1 Data1
1 Index2 Data2
2 Index3 Data3
n indexn DataN
TABLE 4
And the storage judging unit 22 is used for judging whether the WIFI module completes channel locking according to the valid data stored in the preset buffer area of the buffer pool.
According to the data stored in the buffer pool buffer area table, the storage judging unit 22 judges whether the sensed valid data can be subjected to channel locking, the channel locking is to process encrypted data, and correspondingly calculate the data in the received packet to judge whether the channel locking can be performed, namely, the data packet received by the WIFI module meets the requirement of encryption calculation, and then a corresponding channel can be locked. It should be noted that, after channel locking, only data in a corresponding channel can be processed, and a situation that two channels are locked at the same time does not occur.
In this embodiment, the obtained effective data of each channel is stored in a buffer pool corresponding to the channel, the stored effective data is correspondingly stored according to a preset buffer area, and whether channel locking of the WIFI module is completed is judged according to the effective data stored in the preset buffer area of the buffer pool; data in the received data packets are stored according to data storage logic, and the packets received by the WIFI module are subjected to channel locking by using the data in the packets, so that packet sending quantity of networking equipment is reduced, and effective data is obtained at the fastest speed, so that the data processing efficiency is improved, and the success rate of a distribution network is improved.
Referring to fig. 9, the valid data stored in the buffer pool in this embodiment includes: SSID length data, password length data, SSID data, and password data, the locking determination module 30 includes:
the channel locking unit 31 is configured to determine whether SSID length data and password length data are received in a buffer pool corresponding to a locked channel when channel locking is completed based on valid data;
channel locking can be performed according to the obtained valid data (that is, after decryption calculation, data in the data packets received by the WIFI module can obtain corresponding data values through corresponding decryption operation, and then the WIFI module is considered to receive all the data packets sent by the networking device), after channel locking, the channel locking unit 31 correspondingly processes the data in the buffer pool corresponding to the locked channel, and other received data are not processed.
Judging whether SSID length data and password length data are received in a buffer pool corresponding to the locked channel, namely, all the effective data received by the WIFI module are processed, the effective data are processed in a logical sequence, after the channel is locked, it is further determined whether SSID length data and password length data are received in the buffer pool, as shown in table 4, when the WIFI module logically processes data, the WIFI module corresponds to two tables shown in table 4, one table is used for storing SSID data, the other table is used for storing password data, according to the index value of the data in the table, if the maximum index data plus 1 equals to the length data, it is considered that the length data corresponding to the password or the SSID is received, specifically, the password length is "6", and if the index value is "5", it is considered that the password length data is received in the buffer pool.
A first determining unit 32, configured to mark the received SSID length data and password length data if the SSID length data and the password length data are received in the buffer pool corresponding to the locked channel, so as to process the received SSID data and the received password data;
if the SSID length data and the password length data are received in the buffer pool corresponding to the locked channel, the first determining unit 32 marks the acquired SSID length data and the acquired password length data, so that the acquired SSID data and the acquired password data are further processed by using the SSID length data and the password length data.
A second judging unit 33, configured to judge whether the SSID length data and the password length data marked by the mark are valid by using valid data stored in the buffer;
by using the valid data stored in the buffer area, the second determination unit 33 compares the SSID length data and the password length data that are marked with a theoretical value required for connecting to the internet according to a preset algorithm in the distribution network of the WIFI module to determine whether the SSID length data and the password length data that are marked are valid, that is, determines whether the SSID data number and the password data number in the valid data received in the buffer pool are equal to the SSID data number and the password data number that are connected to the internet.
And a third determining unit 34, configured to determine whether the obtained SSID data and the obtained password data are complete if the marked SSID length data and the marked password length data are valid.
When the SSID length data and the password length data are identified to be valid, the third determining unit 34 further determines whether the sensed SSID data and the sensed password data are complete, that is, each index value has corresponding data or symbols in the table shown in table 2, so as to determine that all SSID data and password data are received.
In this embodiment, valid data stored in the buffer pool is used to determine whether the SSID length data and the password length data are valid, and further, if the SSID length data and the password length data are valid, it is determined whether the SSID data and the password data obtained by interception are complete, when network connection data are collected completely, the data in the corresponding buffer pool are processed, and the processed valid data are used to connect to the internet, so that the efficiency of a fast connection technology distribution network is improved.
Referring to fig. 10, in another embodiment of the present invention, the WIFI module network distribution apparatus further includes a processing adjustment module 50, where the processing adjustment module 50 is configured to:
and correspondingly adjusting the data processing sequence during data processing according to the sequence of the SSID length data, the password length data, the SSID data and the password data obtained by monitoring.
According to the sequence of the SSID length data, the password length data, the SSID data and the password data obtained by monitoring, in the process of connecting the equipment with the network access and distribution network, if the password data is received first, the data processing logic is adjusted, the password data is processed first and then the SSID data is processed, as shown in figure 5, if the SSID data is received first, the data processing logic is adjusted correspondingly, the SSID data is processed first and then the password data is processed, as shown in figure 6, the data processing sequence is adjusted correspondingly when the data is processed by the processing and adjusting module 50; it should be noted that the data processing sequence here refers to a logical sequence of data processing, and when the WIFI module receives data, the sequence is not divided, but only valid data in the data packet is stored in the buffer pool.
In this embodiment, in the process of distribution network data processing in the WIFI module fast connection technology, according to the sequence of obtaining SSID length data, password length data, SSID data and password data through interception, the data processing sequence is adjusted correspondingly during data processing, so that the data processing efficiency is improved, the distribution network time is shortened, and the distribution network success rate is further improved.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A WIFI module network distribution method is characterized by comprising the following steps:
when the WIFI module is detected to enter a distribution network mode, acquiring effective data sensed by the WIFI module;
storing the acquired effective data of each channel into a corresponding buffer pool of the WIFI module according to the one-to-one correspondence relationship between the channel and the buffer pool, and correspondingly placing the stored effective data according to a preset buffer area;
when channel locking is completed based on the effective data, the effective data is collected and sequenced to judge whether all effective data required by internet connection are collected;
and if all effective data required by the connection to the Internet are collected, the collected effective data are sorted to finish the connection to the Internet of the WIFI module.
2. The network distribution method for the WIFI modules according to claim 1, wherein the buffer pools are in one-to-one correspondence with the channels, and each buffer pool comprises a plurality of buffer areas for storing valid data listened by the WIFI modules;
the step of collecting and sorting the valid data when channel locking is completed based on the valid data comprises:
storing the acquired effective data of each channel into a buffer pool corresponding to the channel, and correspondingly placing the stored effective data according to a preset buffer area;
and judging whether the WIFI module completes channel locking according to effective data stored in a preset buffer area of the buffer pool.
3. The WIFI module network distribution method of claim 2, wherein the valid data stored in the buffer pool comprises: SSID length data, password length data, SSID data, and password data;
the step of collecting and sorting the valid data when channel locking is completed based on the valid data comprises:
when channel locking is completed based on the effective data, whether SSID length data and password length data are received in a buffer pool corresponding to the locked channel is judged;
and if the SSID length data and the password length data are received in the buffer pool corresponding to the locked channel, marking the received SSID length data and the password length data so as to process the received SSID data and the received password data.
4. The WIFI module network distribution method of claim 3 wherein said step of tagging received SSID length data and password length data to process the received SSID data and password data is followed by the step of:
judging whether the marked SSID length data and password length data are valid or not by using valid data stored in the buffer area;
and if the marked SSID length data and password length data are valid, judging whether the obtained SSID data and password data are complete.
5. The network distribution method for the WIFI module according to any one of claims 1 to 4, wherein the step of processing all the acquired data required for connecting to the Internet comprises the following steps:
and correspondingly adjusting the data processing sequence during data processing according to the sequence of the SSID length data, the password length data, the SSID data and the password data obtained by monitoring.
6. The utility model provides a WIFI module joins in marriage net device which characterized in that, WIFI module joins in marriage net device includes:
the detection and interception module is used for acquiring effective data intercepted by the WIFI module when the WIFI module is detected to enter a distribution network mode;
the acquisition and storage module is used for storing the acquired effective data of each channel into a corresponding buffer pool of the WIFI module according to the one-to-one correspondence relationship between the channels and the buffer pools and correspondingly placing the stored effective data according to a preset buffer area;
the locking judgment module is used for collecting and sequencing the effective data when channel locking is completed based on the effective data so as to judge whether all the effective data required by internet connection are collected;
and the connection internet surfing module is used for sorting the collected effective data to finish the connection internet surfing of the WIFI module if all effective data required by the connection internet surfing are collected.
7. The WIFI module network distribution apparatus of claim 6, wherein the buffer pools are corresponding to the channels one to one, and the buffer pools comprise a plurality of buffer areas for storing valid data detected by the WIFI module; the acquisition and storage module comprises:
the monitoring storage unit is used for storing the acquired effective data of each channel into a buffer pool corresponding to the channel and correspondingly storing the stored effective data according to a preset buffer area;
and the storage judging unit is used for judging whether the WIFI module completes channel locking according to effective data stored in the buffer area preset by the buffer pool.
8. The WIFI module network distribution apparatus of claim 7, wherein the buffer pool stores valid data comprising: SSID length data, password length data, SSID data, and password data; the locking judgment module comprises:
the channel locking unit is used for judging whether SSID length data and password length data are received in a buffer pool corresponding to a locked channel or not when channel locking is finished based on the effective data;
and the first judging unit is used for marking the received SSID length data and password length data so as to process the received SSID data and password data if the SSID length data and the password length data are received in the buffer pool corresponding to the locked channel.
9. The WIFI module network distribution apparatus of claim 8, wherein the lock determination module comprises:
the second judging unit is used for judging whether the marked SSID length data and the marked password length data are valid or not by using the valid data stored in the buffer area;
and the third judging unit is used for judging whether the obtained SSID data and password data are complete or not if the marked SSID length data and password length data are valid.
10. The WIFI module network distribution apparatus of any of claims 6 to 9, wherein the WIFI module network distribution apparatus further comprises a process adjustment module, the process adjustment module configured to:
and correspondingly adjusting the data processing sequence during data processing according to the sequence of the SSID length data, the password length data, the SSID data and the password data obtained by monitoring.
CN201710328930.3A 2017-05-10 2017-05-10 WIFI module network distribution method and device Active CN107426798B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710328930.3A CN107426798B (en) 2017-05-10 2017-05-10 WIFI module network distribution method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710328930.3A CN107426798B (en) 2017-05-10 2017-05-10 WIFI module network distribution method and device

Publications (2)

Publication Number Publication Date
CN107426798A CN107426798A (en) 2017-12-01
CN107426798B true CN107426798B (en) 2020-08-14

Family

ID=60425168

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710328930.3A Active CN107426798B (en) 2017-05-10 2017-05-10 WIFI module network distribution method and device

Country Status (1)

Country Link
CN (1) CN107426798B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109640377A (en) * 2018-12-19 2019-04-16 深圳市金刚蚁机器人技术有限公司 The method that smart machine carries out networking operation is controlled by mobile terminal
CN109451502A (en) * 2018-12-27 2019-03-08 广东美的厨房电器制造有限公司 Household appliance matches network method, network distribution device and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104144034A (en) * 2013-12-04 2014-11-12 腾讯科技(深圳)有限公司 Password sharing and obtaining methods and devices
CN105050083A (en) * 2015-05-25 2015-11-11 深圳创维数字技术有限公司 Network configuration method and system for intelligent equipment
CN105228264A (en) * 2015-07-01 2016-01-06 利尔达科技集团股份有限公司 A kind of quick WI-FI network matching method being applicable to Internet of Things
CN105682253A (en) * 2016-03-02 2016-06-15 上海小蚁科技有限公司 Method and equipment for communication establishment, terminal and computer readable storage medium
CN106412886A (en) * 2015-08-13 2017-02-15 大唐半导体设计有限公司 Method, device and system for secure access of intelligent device to wireless network
CN106604305A (en) * 2016-12-13 2017-04-26 深圳市江波龙科技有限公司 Wireless network configuration method and device, and terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104144034A (en) * 2013-12-04 2014-11-12 腾讯科技(深圳)有限公司 Password sharing and obtaining methods and devices
CN105050083A (en) * 2015-05-25 2015-11-11 深圳创维数字技术有限公司 Network configuration method and system for intelligent equipment
CN105228264A (en) * 2015-07-01 2016-01-06 利尔达科技集团股份有限公司 A kind of quick WI-FI network matching method being applicable to Internet of Things
CN106412886A (en) * 2015-08-13 2017-02-15 大唐半导体设计有限公司 Method, device and system for secure access of intelligent device to wireless network
CN105682253A (en) * 2016-03-02 2016-06-15 上海小蚁科技有限公司 Method and equipment for communication establishment, terminal and computer readable storage medium
CN106604305A (en) * 2016-12-13 2017-04-26 深圳市江波龙科技有限公司 Wireless network configuration method and device, and terminal

Also Published As

Publication number Publication date
CN107426798A (en) 2017-12-01

Similar Documents

Publication Publication Date Title
CN106332224B (en) Equipment network distribution method, device and system
CN108632056B (en) Intelligent equipment network configuration method and system
US9439094B2 (en) Monitoring probe for identifying a user plane identifier of a user device
CN102215474B (en) Method and device for carrying out authentication on communication equipment
CN106656547A (en) Method and apparatus for updating network configuration of household electrical appliances
CN107426798B (en) WIFI module network distribution method and device
CN109068330A (en) Pseudo-base station identifying processing method, equipment and storage medium
CN104270744A (en) Rapid configuration system and method for wireless network
CN103297224A (en) Encryption key information distribution method and related device
CN110784865A (en) Network distribution method and terminal of Internet of things equipment, Internet of things equipment and network distribution system
CN105898733A (en) Machine changing method and device based on eSIM card, mobile terminal and server
CN112261707A (en) Method for realizing automatic network distribution between intelligent equipment and WIFI6 router
CN104581886A (en) Method and system for data transmission and wireless connection of terminal and wireless device
US20190261436A1 (en) Device networking method, apparatus and system
CN106571986A (en) Household electrical appliance distribution network method and system, household electrical appliance and router
CN104053159B (en) The frequency collocation method and device of a kind of Multi-Carrier basestation
CN105992208A (en) Wireless connection authentication method and wireless connection authentication device
CN109219049B (en) Pseudo base station identification method, pseudo base station identification device and computer readable storage medium
CN111191703A (en) Method and system for analyzing wireless local area network flow
CN107969004B (en) Networking system and networking method
CN103152801A (en) Method and device for establishing connection with wireless access device
CN105262732A (en) Method and apparatus for detecting MAC address spoofing
CN106060824A (en) Method of utilizing broadcast frame embedded data mode to feed back state of smart device (SD) during SD networking process
CN106973423A (en) WiFi automatic connection methods and device
US10999070B2 (en) System and method for decrypting communication over a UMTS network

Legal Events

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