CN106254147B - It is a kind of for the configuration method of Wi-Fi network, internet-of-things terminal and control terminal - Google Patents

It is a kind of for the configuration method of Wi-Fi network, internet-of-things terminal and control terminal Download PDF

Info

Publication number
CN106254147B
CN106254147B CN201610811373.6A CN201610811373A CN106254147B CN 106254147 B CN106254147 B CN 106254147B CN 201610811373 A CN201610811373 A CN 201610811373A CN 106254147 B CN106254147 B CN 106254147B
Authority
CN
China
Prior art keywords
configuration
frame
data
code
wi
Prior art date
Application number
CN201610811373.6A
Other languages
Chinese (zh)
Other versions
CN106254147A (en
Inventor
徐露
孙彦邦
谢林菲
Original Assignee
珠海全志科技股份有限公司
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 珠海全志科技股份有限公司 filed Critical 珠海全志科技股份有限公司
Priority to CN201610811373.6A priority Critical patent/CN106254147B/en
Publication of CN106254147A publication Critical patent/CN106254147A/en
Application granted granted Critical
Publication of CN106254147B publication Critical patent/CN106254147B/en

Links

Abstract

The present invention provides a kind of for the configuration method of Wi-Fi network, internet-of-things terminal and control terminal, configuration method includes the steps that sending or receiving configuration frame, configuration frame is 802.11 data frames, the destination-mac address of configuration frame includes filtering code, configuration data, configuration frame identification and verification data, filtering code is associated with the source MAC of router side, configuration data includes service set or password, and configuration frame identification is associated with configuration data, and verification data are the check results of configuration data.And internet-of-things terminal and control terminal using the configuration method.Relevant configuration data, which is stored in destination-mac address, can get bigger capacity, only need to send less data frame so that sending identical configuration information, reduce the time of internet-of-things terminal Wi-Fi configuration.By the way that the measures such as synchronization frame, ancillary frame, filtering code, frame identification, verification are added, the configuration of internet-of-things terminal Wi-Fi network is further made to have more efficiency and stabilization.

Description

It is a kind of for the configuration method of Wi-Fi network, internet-of-things terminal and control terminal

Technical field

The present invention relates to network communication field more particularly to a kind of configuration methods for Wi-Fi network, and using should The internet-of-things terminal and control terminal of configuration method.

Background technique

With the high speed development of technology of Internet of things and becoming increasingly popular for Wi-Fi network, more and more internet-of-things terminals Can have Wi-Fi module, to access network or cloud.For the internet-of-things terminal comprising Wi-Fi module, in access Wi- Before Fi network, need to get service set (SSID) and the password of Wi-Fi network to build with AP(Access Point) Vertical connection, could connect the Wi-Fi network.But i.e. not for some internet-of-things terminals, especially headless device( Equipment including man-machine interface), due to being difficult to that the SSID of Wi-Fi network and password configuration enter, in access Wi-Fi net When network, very numerous operations are generally required, great puzzlement is caused to ordinary user.

In order to simplify the configuration flow of Wi-Fi, existing WPS standard can support three kinds of methods: PBC(Push- at present Button configuration), PIN(Personal Identification Number) and NFC(Near Field Communication).Wherein PBC method configures most simple, it is only necessary to press AP and internet-of-things terminal respectively at 120 seconds On WPS key, so that it may configured the Wi-Fi module of internet-of-things terminal, but highlighted PBC method in official document to master The defence of dynamic attack is very fragile, is subject to network attack.And PIN method is the method for WPS certification mandatory requirement, the method Need to input the PIN code of internet-of-things terminal, for example, internet-of-things terminal needs to access home network, due to the AP in home network Generally also without input interface, it is therefore desirable to by the webpage of the access AP set interface such as personal PC or plate, then by Internet of Things The PIN code input of network termination is to corresponding position.It can be seen that operation is also comparatively laborious, ordinary user uses very inconvenient.And NFC Method needs internet-of-things terminal to have NFC near field communication hardware, which adds the cost of equipment, is unfavorable for promoting.In addition, Internet of things equipment and Wi-Fi AP must support WPS function, could use WPS method, but in reality, and it is not all Wi-Fi equipment all have passed through WPS certification, and equipment cost also invisible is increased by WPS certification.

In addition, in the prior art can also by internet-of-things terminal Wi-Fi module support AP Soft ap mode come into Row Wi-Fi configuration.This method configuration process is as follows: internet-of-things terminal Wi-Fi module initially enters AP or Soft ap mode, i.e., Construct a Wi-Fi network (network A);Control terminal (such as mobile phone, notebook) disconnects and the connection of Wi-Fi router, search It to network A and connects, internet-of-things terminal and control terminal can communicate after successful connection, specific in control terminal operation at this time The configuration informations such as the SSID of Wi-Fi router and password are sent to internet-of-things terminal by application program;Internet-of-things terminal successfully connects After receiving these configuration informations, Wi-Fi module is converted into Station mode, connects the road Wi-Fi according to received configuration information By device, at the same time, mobile phone disconnection is connected and connect to Wi-Fi router with network A, then completes entire configuration process. Therefore this method needs internet-of-things terminal Wi-Fi module to support AP Soft ap mode, while configuration flow is complicated, The multiple handover network of user is needed, user is also required to the network technology basis for having certain, is not easy to operating with for user.

A kind of existing also allocation plan is the Wi-Fi mould that internet of things equipment is configured by the broadcast/group broadcast of control terminal Block.This method configuration process is as follows: internet of things equipment Wi-Fi module initially enters monitor mode, and control terminal connects Wi-Fi After the router of network, specific application program is run in control terminal, which routes Wi-Fi according to specific rule The configuration informations such as the SSID and password of device are embedded into data packet, are then sent out these data packets by way of broadcast/group broadcast It is sent in router Wi-Fi network, after internet of things equipment Wi-Fi module listens to these broadcast/multicast frames, by specifically advising Then parsing obtains the configuration informations such as SSID and the password of Wi-Fi router, then automatically accesses Wi-Fi according to these configuration informations Router.

One of specific rule is such as: Wi-Fi configuration information being mapped in the length information of data packet, by wide The mode broadcast is sent in Wi-Fi network, but due to by frame MTU(Maximum Transmission Unit) limited, The space that theoretically every frame data can be used to store Wi-Fi configuration information is up to 11 bits, in one 8 byte of transmitting When the encrypted message of SSID and 8 byte, it is also to need to send 14 data frames in the state of ideal, can completes Wi-Fi configuration.

Another specific rule is such as: Wi-Fi configuration information being filled into rear three byte of multicast ip address, is passed through The mode of multicast is sent in Wi-Fi network, and the space that theoretically every frame can be used to store Wi-Fi configuration information is 24 bits. It is also to need to send 12 in the state of ideal when transmitting the encrypted message of SSID and 8 byte of 8 byte Data frame.

The transmission capacity of both above-mentioned arrangements information is relatively small, the configuration information sending time of equal length It is long.Further, since broadcast packet specific gravity is often larger in network, resolving can be caused centainly to interfere, cause stability not high, The case where if there is packet loss or wrong packet, setup time can be longer.

Summary of the invention

The first object of the present invention is to provide a kind of control terminal and improves allocative efficiency, configuration stability and ease of use Configuration method for Wi-Fi network.

The second object of the present invention is to provide a kind of internet-of-things terminal and improves allocative efficiency, configuration stability and easy to use The configuration method for Wi-Fi network of property.

The third object of the present invention is to provide the control of a kind of raising allocative efficiency, configuration stability and ease of use End.

The fourth object of the present invention is to provide a kind of Internet of Things for improving allocative efficiency, configuring stability and ease of use Terminal.

In order to realize the first object of the present invention, the present invention provides the configuration method that a kind of control terminal is used for Wi-Fi network, Wherein, configuration method includes the steps that sending configuration frame, and configuration frame is 802.11 data frames, configures the destination-mac address packet of frame Configuration data is included, configuration data includes service set or password.

Visible by above scheme and referring to Fig.1, Fig. 1 is the encapsulation schematic illustration of transport protocol, and top layer is Then Ethernet frame format passes through LLC(Logic Link Control) sublayer encapsulation, finally according to 802.11 MAC (Medium Access Control) sublayer is packaged, and forms 802.11 frames.According to 802.11 standardize, for WEP, WPA, For WPA2 safe mode, when sending 802.11 data frame, need to encrypt the Payload data of 802.11 frames.Cause This, terminal is linked into after Wi-Fi network, and only the domain MAC Header is transparent, other parts Payload to the data frame of transmission It all have passed through encryption.It is always exposed due to the MAC Header field of 802.11 frames, it is possible to be obtained from MAC Header It wins the confidence breath;Since Payload is typically all that cannot parse the data of the part in the case where no key by encryption.

It can be seen that according to the encapsulation of 802.11 mac frames, the destination-mac address (Destination in Ethernet frame MAC it) can be added in 802.11 MAC header with source MAC (Source MAC) address information.It can use the two Field formulates a set of specific communication protocol, carries out information transmitting.But for Wi-Fi network, for sending 802.11 frames, if the Source MAC Address in frame is not in the Wi-Fi network, which can constantly be retransmitted, and be drawn Mistake is played, so source MAC (Source MAC) cannot be modified, but destination-mac address (Destination can be modified MAC).

Therefore the configuration information of Wi-Fi can be stored in the destination address of 802.11 frames.If internet-of-things terminal is in Listening mode can grab 802.11 data frame.The space that theoretically every frame can be used to store Wi-Fi configuration information is 48 Bits, much larger than the other configurations scheme mentioned in technical background.Since destination-mac address capacity is big, so number as much According to only needing to send less data frame, which improves allocative efficiencys, make entire Wi-Fi configuration process faster.

Control terminal sends the configuration frame that these include Wi-Fi configuration information, specifically, the destination-mac address packet of configuration frame Configuration data is included, configuration data includes SSID or password.

Further scheme is that configure the destination-mac address of frame further include that filtering code, configuration frame identification and first follow Ring redundancy check code and serial number, default mark of the filtering code between control terminal and internet-of-things terminal configure frame identification and match Data correlation is set, first circulation redundancy check code is the check results of configuration data, and serial number is associated with configuration data.

Therefore filtering code can help rapidly to judge information source and filter out required frame, cyclic redundancy Check code is the check results of configuration data, and for guaranteeing the correctness and integrality of data packet transmission, configuration frame identification is used for The type of mark data frame needs segment transmissions when configuration data is more, can be identified by serial number to configuration data, And verify whether data malfunction by check code, guarantee the high efficiency and stability of configuration data transmission.

Further scheme is that configuration method further includes sending synchronization frame or transmission before sending the step of configuring frame The step of ancillary frame, synchronization frame are 802.11 data frames;The destination-mac address of synchronization frame includes filtering code, synchronous code, synchronization Frame identification and second circulation redundancy check code, second circulation redundancy check code are the check results of synchronous code.Ancillary frame is 802.11 data frames, the destination-mac address of ancillary frame include the word of filtering code, the string length of service set, password String length, safe encryption mode, auxiliary frame identification and third cyclic redundancy check code are accorded with, third cyclic redundancy check code is service The check results of the string length of set identifier, the string length of password and safe encryption mode

Therefore real-life wireless network is often extremely complex, in the same space, it is understood that there may be multiple The channel of Wi-Fi network, each Wi-Fi network work may be different, and each Wi-Fi network may also be comprising multiple transmissions eventually End, these send terminal again in continual transmission packet radio.If internet-of-things terminal opens listening mode, the data obtained Packet will be magnanimity.Therefore internet-of-things terminal is it needs to be determined which control terminal is sending the data packet with Wi-Fi configuration information. When internet-of-things terminal receives synchronization frame, the MAC Address of transmission terminal can be obtained by analyzing the synchronization frame, the data frame Sending terminal is corresponding control terminal.

String length, the character string of password that the transmission of ancillary frame can make internet-of-things terminal obtain service set are long Degree, safe encryption mode, it can be ensured that configuration information is correct, reduces the Wi-Fi configuration process time.

In order to realize the second object of the present invention, the present invention provides the configuration that a kind of internet-of-things terminal is used for Wi-Fi network Method, wherein configuration method, which includes the steps that receiving, configures frame, and configuration frame is 802.11 data frames;With configuring the Destination MAC of frame Location includes configuration data, and configuration data includes SSID or password.

Further scheme is that configuration method further includes Connection Step, and Connection Step includes: parsing configuration frame and acquisition is matched Set data;Wi-Fi network is connected with password according to service set.

Further scheme is the destination-mac address of the configuration frame further include: filtering code, configuration frame identification, first Cyclic redundancy check code and serial number;Default mark of the filtering code between control terminal and the internet-of-things terminal, it is described Configuration frame identification is associated with the configuration data, and the first circulation redundancy check code is the check results of the configuration data, The serial number is associated with the configuration data.

Therefore filtering code can help rapidly to judge information source and filter out required frame, cyclic redundancy Check code is the check results of configuration data, and for guaranteeing the correctness and integrality of data packet transmission, configuration frame identification is used for The type of mark data frame needs segment transmissions when configuration data is more, can be identified by serial number to configuration data, And verify whether data malfunction by check code, guarantee the high efficiency and stability of configuration data transmission.

Further scheme is that the configuration method further includes receiving synchronization frame before the step of receiving the configuration frame Or the step of receiving ancillary frame;The synchronization frame is 802.11 data frames, and the destination-mac address of the synchronization frame includes the mistake Filter code, synchronous code, synchronous frame identification and second circulation redundancy check code;The second circulation redundancy check code is the synchronization The check results of code;The ancillary frame is 802.11 data frames, and the destination-mac address of the ancillary frame includes the filtering generation Code, the string length of the service set, the string length of the password, safe encryption mode, auxiliary frame identification and Third cyclic redundancy check code;The safe encryption mode is the cipher mode of Wi-Fi network, the third cyclic redundancy check Code is the verification knot of the string length of the service set, the string length of the password and the safe encryption mode Fruit.

Therefore real-life wireless network is often extremely complex, in the same space, it is understood that there may be multiple The channel of Wi-Fi network, each Wi-Fi network work may be different, and each Wi-Fi network may also be comprising multiple transmissions eventually End, these send terminal again in continual transmission packet radio.If internet-of-things terminal opens listening mode, the data obtained Packet will be magnanimity.Therefore internet-of-things terminal is it needs to be determined which control terminal is sending the data packet with Wi-Fi configuration information. When internet-of-things terminal receives synchronization frame, the MAC Address of transmission terminal can be obtained by analyzing the synchronization frame, the data frame Sending terminal is corresponding control terminal.

String length, the character string of password that the transmission of ancillary frame can make internet-of-things terminal obtain service set are long Degree, safe encryption mode, it can be ensured that configuration information is correct, reduces the Wi-Fi configuration process time.

Further scheme is, before the step of receiving the synchronization frame, the configuration method further include: switch to prison Listen mode, and exchange-column shift channel monitor 802.11 data frames;When receiving the synchronization frame for the first time, then lock described same Channel where step-frame.

Therefore internet-of-things terminal needs exchange-column shift channel-monitoring data packet, works as reception before receiving synchronization frame The channel is locked when to synchronization frame and continues to data packet, and synchronization frame, ancillary frame or configuration frame are received by mode of unicast, Configuration process can be made more stable and efficient.

In order to realize that the third object of the present invention, the present invention provide a kind of control terminal, including processor and wireless telecommunications mould Block, processor send and receive data by wireless communication module, wherein processor executes the configuration method in above scheme.

By above scheme as it can be seen that when control terminal connect configuration with internet-of-things terminal, control terminal outward exports 802.11 and matches Frame is set, and configuration information is stored in configuration frame, specifically, the destination-mac address of configuration frame includes filtering code, configuration number According to, configuration frame identification and verification data, wherein filtering code can help quickly to judge information source, can also filter out faster Required frame, configuration frame identification are used for the type of mark data frame, and verification data are used to guarantee the correctness of data packet transmission And integrality.

In order to realize that the fourth object of the present invention, the present invention provide a kind of internet-of-things terminal, including processor and channel radio Module is interrogated, processor sends and receivees data by wireless communication module, wherein processor executes the configuration side in above scheme Method.

By above scheme as it can be seen that when control terminal connect configuration with internet-of-things terminal, internet-of-things terminal reception 802.11 is matched Frame is set, includes Wi-Fi configuration information in these configuration frames, specifically, the destination-mac address of configuration frame includes filtering code, matches Set data, configuration frame identification and verification data.Wherein, required frame is rapidly filtered out by parsing filtering code, led to Parsing configuration frame identification is crossed to identify the type of data frame, examines whether configuration data malfunctions by parsing verification data.

Detailed description of the invention

Fig. 1 is the encapsulation schematic illustration of 802.11 wireless network transmissions agreements.

Fig. 2 is the Internet of Things catenation principle schematic diagram of Wi-Fi configuration method embodiment of the present invention.

Fig. 3 is control terminal configuration flow figure in Wi-Fi configuration method embodiment of the present invention.

Fig. 4 is data frame structure schematic diagram in Wi-Fi configuration method embodiment of the present invention.

Fig. 5 is internet-of-things terminal configuration flow figure in Wi-Fi configuration method embodiment of the present invention.

Fig. 6 is the system block diagram of Internet of things system embodiment of the present invention.

The invention will be further described with reference to the accompanying drawings and embodiments.

Specific embodiment

Control terminal is used for the configuration method embodiment of Wi-Fi network:

Referring to Fig. 2 and Fig. 3, Internet of things system includes router side 11, internet-of-things terminal 12 and control terminal 13, control terminal 13 Synchronization frame, ancillary frame and the configuration frame of transmission pass through the transmitting of router side 11 and are sent to internet-of-things terminal 12.

For the first time in use, first by control terminal 13(such as mobile phone, computer and plate etc.) the Wi-Fi net at couple in router end 11 Network, i.e. step S11 then execute step S12, encrypt to the SSID and password of Wi-Fi network.

Step S13 is then executed, control terminal 13 sends synchronization frame set by mode of unicast, referring to Fig. 4, a synchronization frame Set includes two different synchronization frames, and synchronization frame is 802.11 data frames, and successively transmission synchronization frame set six times, specifically Ground, the structure of the destination-mac address of synchronization frame is as shown in figure 4, the destination-mac address of synchronization frame successively includes filtering code (filter code), synchronous frame identification (1), cyclic redundancy check code (crc) and synchronous code (sync code), byte Filter code, the synchronization frame identification of a byte, the cyclic redundancy check code of a byte, the synchronous code of three bytes, two The synchronous code of a synchronization frame is respectively { 0x11,0x22,0x33 } and { 0x33,0x22,0x11 }.

Default mark of the filtering code between control terminal 13 and internet-of-things terminal 12, in the present embodiment, filtering code XOR operation for each byte of source MAC obtains, i.e. filter code=s_addr [0] ^s_addr [1] ^s_addr [2] ^s_addr [3] ^s_addr [4] ^s_addr [5], this is in the association being added in destination-mac address with source MAC, can help It helps and quickly judges source, required frame can also be filtered out faster, for synchronization frame, synchronous frame identifier is set as 1, Cyclic redundancy check code is the check results of synchronous code, the crc verification of as rear three byte of sync codes.

Step S14 is then executed, control terminal 13 sends ancillary frame set by mode of unicast, and an ancillary frame set includes One ancillary frame, ancillary frame is 802.11 data frames, and successively sends ancillary frame set six times, specifically, the target of ancillary frame The structure of MAC Address is as shown in figure 4, the destination-mac address of ancillary frame successively includes filtering code (filter Code), auxiliary Frame identification (2), cyclic redundancy check code (crc), the string length of service set (SSID length), password character String length (password length) and safe encryption mode (secure mode), the filter code of byte, one The auxiliary frame identification of a byte, the cyclic redundancy check code of a byte, the SSID length of byte, byte Password length, the secure mode of a byte.

For ancillary frame, auxiliary frame identifier is set as 2, and cyclic redundancy check code is the character string of service set The check results of length, the string length of password and safe encryption mode, the crc verification of the data of as rear three bytes.

Step S15 is then executed, control terminal 13 sends configuration frame set by mode of unicast, and a configuration frame set includes Multiple configuration frames with SSID data and it is multiple there is code data to configure frame, the number for configuring frame can be according to SSID and password Length depending on, configuration frame be 802.11 data frames, and successively send configuration frame set four times, specifically, configure the target of frame The structure of MAC Address is as shown in figure 4, the destination-mac address of configuration frame successively includes filtering code (filter code), configuration Frame identification (3/4), verification data (index | crc) and configuration data, the filter code of byte, byte are matched Set frame identification, the verification data of a byte, the configuration data of three bytes.For having the configuration frame of the SSID data of encryption It says, configuration frame identifier is set as 3, and for having for the configuration frame of the code data of encryption, configuration frame identifier is set as 4。

Configuration data includes service set or password, and different configuration frame storage encryptions are respectively adopted in the present embodiment SSID and password, and the SSID of encryption is stored simultaneously in the same configuration frame and password also can be achieved on.Verify data packet Including serial number index and cyclic redundancy check code crc, crc is low three of the byte, is that the crc of rear three byte data verifies knot Fruit and 0x07 phase with index Gao Wuwei indicates that the serial number of the configuration data (is since SSID and password are usually more than 3 words Section, needs fragmented storage).

Then step S16 is executed, waits the internet-of-things terminal confirmation signal to be received issued by internet-of-things terminal, and judgement is It is no to receive, if not, return step S13, if so, then showing that internet-of-things terminal receives configuration data and can be according to configuration data Wi-Fi network is accessed, therefore finally executes step S17, control terminal 13 sends control terminal confirmation signal.

Internet-of-things terminal is used for the configuration method embodiment of Wi-Fi network:

Step S21 is first carried out when internet-of-things terminal 12 connects Wi-Fi network for the first time referring to Fig. 5, setting follows after powering on Ring timer, exchange-column shift monitor Wi-Fi channel, then execute step S22, internet-of-things terminal 12 is switched to listening mode, It recycles and monitors in all Wi-Fi interchannels.Step S23 is then executed, a data frame is received, then executes step S24, judgement Whether synchronization frame has been received before receiving the data frame, if not, thening follow the steps S25, judges whether the data frame is same Step-frame continues to execute crawl data frame if not, returning to step S23, if the data frame is synchronization frame, executes step Rapid S26 analyzes the source MAC in the synchronization frame and getting frame, while locking the channel where the synchronization frame, so that Internet of Things Terminal 12 is only in the channel-monitoring.

It is then returned to and executes step S23, continue the data frame for grabbing unicast transmission on the channel of locking, it is another grabbing After data frame, step S24 is executed, whether judgement has received synchronization frame before, if so, S27 is thened follow the steps, according to source MAC Address is filtered the data frame of monitoring, which may be synchronization frame, ancillary frame or configure frame, therefore can be same to what is met Step-frame, ancillary frame and configuration frame are parsed, and detect whether destination-mac address therein matches predefined rule, i.e., as above State synchronization frame in embodiment, ancillary frame and configure frame destination-mac address structure shown in, if synchronization frame, ancillary frame and The destination-mac address structure matching of frame is configured, then is solved according to relevant information such as serial number, labels in destination-mac address Analysis, and obtain the SSID and password for the Partial encryption stored in the destination-mac address.

Step S28 is then executed, judges whether that parsing completely, if not, successively executing step S23 and S24, continues to grab Data frame is simultaneously parsed, until parsed completely according to SSID length and Password Length obtain encryption after router side Wi-Fi net The SSID and password of network.Then step S29 is executed, the SSID and password of encryption are decrypted, the configuration number of Wi-Fi is obtained According to being then switched to Station mode, and connect the Wi-Fi network of router side with password according to SSID.

Step S30 is then executed, judges whether to be successfully connected Wi-Fi network, such as otherwise return step S21 is reconnected Wi-Fi network thens follow the steps S31 in this way, and internet-of-things terminal sends internet-of-things terminal confirmation signal, finally executes step S32, Judge whether to receive the control terminal confirmation signal sent by control terminal, as received, configuration flow terminates.In addition, entirely configuring Journey is provided with timeout mechanism, if overtime, can automatically exit from configuration flow.

Internet of things system embodiment:

Referring to Fig. 6, Internet of things system includes router side 11, control terminal 13 and multiple internet-of-things terminals, multiple Internet of Things Terminal includes internet-of-things terminal 12,14 and 15, since internet-of-things terminal is all the same, is said by taking internet-of-things terminal 12 as an example below It is bright.Internet-of-things terminal 12 include processor 121 and wireless communication module 122, processor 121 by wireless communication module 122 with Router side 21 connects and sends and receivees data, and control terminal 13 includes processor 131 and wireless communication module 132, control terminal 13 are connect by communication module 132 with router side 11, processor 131 pass through communication module 132 and router side 11 with it is each Internet-of-things terminal interaction simultaneously sends and receivees data.

Control terminal 13 can realize that, to SSID and password encryption, control terminal 13 is sent out by communication module 132 and router side 11 Synchronization frame set is sent, ancillary frame set is sent, sends configuration frame set, receives internet-of-things terminal confirmation signal and send confirmation letter Number, while also realizing filtering code, configuration data, frame identification, verification data, source MAC, synchronous code, cyclic redundancy school Test code, the string length of service set, the string length of password and safe encryption mode it is corresponding be stored in it is same In the destination-mac address of step-frame, ancillary frame and configuration frame.

The executable step as in internet-of-things terminal configuration method embodiment of processor 121, i.e., such as switching monitor channel;It cuts Change jobs mode;Synchronization frame, ancillary frame and configuration frame are received by wireless communication module 122;Analysis obtains source MAC, matches Set data etc.;Decrypt SSID and password;Wi-Fi network is connected with password according to SSID;Pass through communication module 122 and router side 11 send and receive confirmation signal.

Therefore control terminal is connect when configuring with internet-of-things terminal, passes through 802.11 synchronization frame, ancillary frame and configuration The transmission of frame, and configuration information is stored in configuration frame, specifically, the destination-mac address of configuration frame includes filtering code, matches Set data, configuration frame identification and verification data.Wherein, filtering code can help quickly to judge information source, can also faster mistake Filter out required frame;Configure the type that frame identification is used for mark data frame;Verification data can examine whether configuration data goes out It is wrong.Bigger capacity is obtained by the way that relevant configuration data is stored in destination-mac address, so that sending more when connecting configuration Few data frame improves connection allocative efficiency, while keeping Wi-Fi network configuration more quickly and stable.And relative to broadcast Or the mode of multicast, capacity greatly promote, the configuration information time for sending equal length is shorter, improves internet of things equipment The speed of Wi-Fi configuration, since every frame capacity is big, transmission times is less, and resolving difficulty reduces more accurate simultaneously, increasing The stability for having added internet-of-things terminal Wi-Fi to configure, and since every frame capacity is big, can by adding more verification schemes, Effectively to resist some complexity Wi-Fi environment such as wrong packet, packet loss, improves the anti-interference energy of internet-of-things terminal Wi-Fi configuration Power.

Above-described embodiment is present pre-ferred embodiments, in the network environment of some perfect conditions, can only send and A configuration frame is received, the configuration connection of Wi-Fi network can be realized, for another example under some network environments, can transmit and receive One synchronization frame set, an ancillary frame set and a configuration frame set also can be achieved on configuration connection, for another example, root According to the size of different network environment and configuration data, the quantity forwarded of frame set can be adjusted, i.e. five synchronization frame collection Conjunction, three ancillary frame set, six configuration frame set, and equally can be realized purpose.Simultaneously for the target of data frame MAC Address stores relevant information and configuration data, other than the storage of such as above-described embodiment, can also be stored with other sequences, Or data are stored in the form of different byte capacities.Other operations also can be used with being associated with for source MAC in such as filtering code again Mode obtains, then can be set to preset code (as 00) such as filtering code, as long as control terminal and internet-of-things terminal Predefined rule be mutually matched, interactive default mark can be mutually distinguishable, can make internet-of-things terminal determine control End processed is transmitting terminal.It can be real as long as configuration data and relevant information are stored on the destination-mac address of 802.11 data frames The existing purpose of the present invention.

Claims (5)

1. the configuration method that a kind of control terminal is used for Wi-Fi network, it is characterised in that:
The configuration method, which includes the steps that sending, configures frame, and the configuration frame is 802.11 data frames;
The destination-mac address of the configuration frame includes configuration data, and the configuration data includes service set or password;
The destination-mac address of the configuration frame further includes filtering code, configuration frame identification, first circulation redundancy check code and sequence Number;Default mark of the filtering code between the control terminal and internet-of-things terminal, the configuration frame identification are matched with described Data correlation is set, the first circulation redundancy check code is the check results of the configuration data, the serial number and the configuration Data correlation;The configuration method further includes sending synchronization frame or transmission ancillary frame before the step of sending the configuration frame Step;
The synchronization frame be 802.11 data frames, the destination-mac address of the synchronization frame include the filtering code, synchronous code, Synchronous frame identification and second circulation redundancy check code, the second circulation redundancy check code are the check results of the synchronous code;
The ancillary frame is 802.11 data frames, and the destination-mac address of the ancillary frame includes the filtering code, the service The string length of set identifier, the string length of the password, safe encryption mode, auxiliary frame identification and third cyclic redundancy Check code, the safe encryption mode are the cipher mode of Wi-Fi network, and the third cyclic redundancy check code is the service The check results of the string length of set identifier, the string length of the password and the safe encryption mode.
2. the configuration method that a kind of internet-of-things terminal is used for Wi-Fi network, it is characterised in that:
The configuration method, which includes the steps that receiving, configures frame, and the configuration frame is 802.11 data frames;
The destination-mac address of the configuration frame includes configuration data, and the configuration data includes service set or password;
The configuration method further includes Connection Step, and the Connection Step includes:
It parses the configuration frame and obtains the configuration data;
The Wi-Fi network is connected with the password according to the service set;
The destination-mac address of the configuration frame further include: filtering code, configuration frame identification, first circulation redundancy check code and sequence Number;Default mark of the filtering code between control terminal and the internet-of-things terminal, the configuration frame identification are matched with described Data correlation is set, the first circulation redundancy check code is the check results of the configuration data, the serial number and the configuration Data correlation;The configuration method further includes receiving synchronization frame or reception ancillary frame before the step of receiving the configuration frame Step;
The synchronization frame be 802.11 data frames, the destination-mac address of the synchronization frame include the filtering code, synchronous code, Synchronous frame identification and second circulation redundancy check code;The second circulation redundancy check code is the check results of the synchronous code;
The ancillary frame is 802.11 data frames, and the destination-mac address of the ancillary frame includes the filtering code, the service The string length of set identifier, the string length of the password, safe encryption mode, auxiliary frame identification and third cyclic redundancy Check code;The safe encryption mode is the cipher mode of Wi-Fi network, and the third cyclic redundancy check code is the service The check results of the string length of set identifier, the string length of the password and the safe encryption mode.
3. configuration method according to claim 2, it is characterised in that:
Before the step of receiving the synchronization frame, the configuration method further include:
Switch to listening mode, and exchange-column shift channel monitor 802.11 data frames;
When receiving the synchronization frame for the first time, then the channel where the synchronization frame is locked.
4. control terminal, including processor and wireless communication module, the processor are received and are sent out by the wireless communication module Send data, it is characterised in that:
Configuration method described in the processor perform claim requirement 1.
5. internet-of-things terminal, including processor and wireless communication module, the processor are received by the wireless communication module With transmission data, it is characterised in that:
Configuration method described in the processor perform claim requirement 2 or 3.
CN201610811373.6A 2016-09-08 2016-09-08 It is a kind of for the configuration method of Wi-Fi network, internet-of-things terminal and control terminal CN106254147B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610811373.6A CN106254147B (en) 2016-09-08 2016-09-08 It is a kind of for the configuration method of Wi-Fi network, internet-of-things terminal and control terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610811373.6A CN106254147B (en) 2016-09-08 2016-09-08 It is a kind of for the configuration method of Wi-Fi network, internet-of-things terminal and control terminal

Publications (2)

Publication Number Publication Date
CN106254147A CN106254147A (en) 2016-12-21
CN106254147B true CN106254147B (en) 2019-06-28

Family

ID=57599348

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610811373.6A CN106254147B (en) 2016-09-08 2016-09-08 It is a kind of for the configuration method of Wi-Fi network, internet-of-things terminal and control terminal

Country Status (1)

Country Link
CN (1) CN106254147B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109429243A (en) * 2017-08-22 2019-03-05 阿里巴巴集团控股有限公司 Monitor the methods, devices and systems of the network insertion state of distribution net equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007028210A (en) * 2005-07-15 2007-02-01 Mitsubishi Electric Corp Wireless lan base station and wireless terminal
CN101084687A (en) * 2004-12-23 2007-12-05 科胜讯系统公司 Systems and methods for the connection and remote configuration of wireless clients
CN103945369A (en) * 2013-01-18 2014-07-23 杭州古北电子科技有限公司 Internet access configuration method for WIFI device by checking length of WIFI data packets
CN104410970A (en) * 2014-12-23 2015-03-11 北京极科极客科技有限公司 Wireless intelligent accessing method
CN104602112A (en) * 2014-12-12 2015-05-06 小米科技有限责任公司 Configuration method and device
CN105554907A (en) * 2015-12-11 2016-05-04 深圳市奥金瑞科技有限公司 General method for configuring WiFi device to make same to connect WiFi router

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101084687A (en) * 2004-12-23 2007-12-05 科胜讯系统公司 Systems and methods for the connection and remote configuration of wireless clients
JP2007028210A (en) * 2005-07-15 2007-02-01 Mitsubishi Electric Corp Wireless lan base station and wireless terminal
CN103945369A (en) * 2013-01-18 2014-07-23 杭州古北电子科技有限公司 Internet access configuration method for WIFI device by checking length of WIFI data packets
CN104602112A (en) * 2014-12-12 2015-05-06 小米科技有限责任公司 Configuration method and device
CN104410970A (en) * 2014-12-23 2015-03-11 北京极科极客科技有限公司 Wireless intelligent accessing method
CN105554907A (en) * 2015-12-11 2016-05-04 深圳市奥金瑞科技有限公司 General method for configuring WiFi device to make same to connect WiFi router

Also Published As

Publication number Publication date
CN106254147A (en) 2016-12-21

Similar Documents

Publication Publication Date Title
KR100991031B1 (en) Native wi-fi architecture for 802.11 networks
RU2589331C2 (en) Apparatus and methods for medium access control header compression
CN101084687B (en) Systems and methods for the connection and remote configuration of wireless clients
JP6431592B2 (en) Method and apparatus for self-configuring a base station
KR100980152B1 (en) A method and system for monitoring the local area network
KR101364298B1 (en) Authentication for a multi-tier wireless home mesh network
US9674030B2 (en) Methods and apparatus for a common control protocol for wired and wireless nodes
US8126145B1 (en) Enhanced association for access points
JP4506856B2 (en) Communication apparatus, and communication method
US8572700B2 (en) Method and system for exchanging setup configuration protocol information in beacon frames in a WLAN
US6674738B1 (en) Decoding and detailed analysis of captured frames in an IEEE 802.11 wireless LAN
US9444639B2 (en) Multi-tier wireless home mesh network with a secure network discovery protocol
CN103825788B (en) One kind wifi network configuration method and system
US20090119760A1 (en) Method for reconfiguring security mechanism of a wireless network and the mobile node and network node thereof
KR101689270B1 (en) The block check device and method for compression response
CN102308528B (en) Wireless home mesh network bridging adaptor
US9271136B2 (en) Probe messaging for direct link connections
CN1883154B (en) Method and apparatus of communicating security/encryption information to a physical layer transceiver
EP1902590A2 (en) Direct wireless client-to-client communication
JP2013529869A (en) Changing the rate matching mode in the presence of transmission of the channel state information reference signal
JP2015529998A (en) Fast initial link set search frame
CN1653837A (en) Detecting a hidden node in a wireless local area network
US20090016529A1 (en) Method and system for prevention of unauthorized communication over 802.11w and related wireless protocols
US20060149858A1 (en) Establishing wireless universal serial bus (WUSB) connection via a trusted medium
JP2014241598A (en) Method for processing radio protocol in mobile telecommunications system and transmitter of mobile telecommunications

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
GR01 Patent grant