CN106254147A - A kind of collocation method for Wi Fi network, internet-of-things terminal and control end - Google Patents
A kind of collocation method for Wi Fi network, internet-of-things terminal and control end Download PDFInfo
- Publication number
- CN106254147A CN106254147A CN201610811373.6A CN201610811373A CN106254147A CN 106254147 A CN106254147 A CN 106254147A CN 201610811373 A CN201610811373 A CN 201610811373A CN 106254147 A CN106254147 A CN 106254147A
- Authority
- CN
- China
- Prior art keywords
- frame
- configuration
- collocation method
- internet
- network
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The present invention provides a kind of collocation method for Wi Fi network, internet-of-things terminal and control end, collocation method includes the step sending or receiving configuration frame, configuration frame is 802.11 Frames, the destination-mac address of configuration frame includes filtering code, configuration data, configuration frame identification and verification data, filtering code associates with the source MAC of router side, configuration data include service set or password, configuration frame identification and configuration data association, and verification data are the check results of configuration data.And use the internet-of-things terminal of this collocation method and control end.Relevant configuration data are stored in destination-mac address and can obtain bigger capacity so that send identical configuration information and have only to send less Frame, decrease the time of internet-of-things terminal Wi Fi configuration.By adding the measures such as synchronization frame, ancillary frame, filtering code, frame identification, verification, make internet-of-things terminal Wi Fi network configuration more efficiency further and stablize.
Description
Technical field
The present invention relates to network communication field, particularly relate to a kind of collocation method for Wi-Fi network, and use should
The internet-of-things terminal of collocation method and control end.
Background technology
Along with the high speed development of technology of Internet of things and becoming increasingly popular of Wi-Fi network, increasing internet-of-things terminal
Can possess Wi-Fi module, with access network or high in the clouds.For the internet-of-things terminal comprising Wi-Fi module, accessing Wi-
Before Fi network, need to get the service set (SSID) of Wi-Fi network and password come and AP(Access Point) build
Vertical connection, could connect this Wi-Fi network.But for some internet-of-things terminals, especially headless device(is the most not
Equipment including man machine interface), owing to being difficult to enter SSID and the password configuration of Wi-Fi network, therefore accessing Wi-Fi net
The when of network, generally require the most various operation, domestic consumer is caused puzzlement greatly.
In order to simplify the configuration flow of Wi-Fi, existing WPS standard can support three kinds of method: PBC(Push-at present
Button configuration), PIN(Personal Identification Number) and NFC(Near Field
Communication).Wherein PBC method configures the simplest, it is only necessary to pressed AP and internet-of-things terminal respectively at 120 seconds
On WPS button, it is possible to configured the Wi-Fi module of internet-of-things terminal, but official document highlighted PBC method to master
The dynamic defence attacked is the most fragile, is subject to network attack.And PIN method is the method for WPS certification compulsive requirement, the method
Needing to input the PIN code of internet-of-things terminal, such as, internet-of-things terminal needs to access home network, due to the AP in home network
Generally also there is no inputting interface, it is therefore desirable to access AP by individual PC or flat board etc. and the webpage at interface is set, then by Internet of Things
The PIN code of network termination is input to correspondence position.Visible operation is the most comparatively laborious, and domestic consumer uses the most inconvenient.And NFC
Method needs internet-of-things terminal to possess NFC hardware, which adds the cost of equipment, is unfavorable for promoting.Additionally,
Internet of things equipment and Wi-Fi AP must support WPS function, could use WPS method, but in reality, and not all
Wi-Fi equipment all have passed through WPS certification, and add equipment cost by WPS certification is the most invisible.
It addition, by internet-of-things terminal Wi-Fi module, prior art can also support that AP or Soft ap mode enters
Row Wi-Fi configures.The method configuration process is as follows: internet-of-things terminal Wi-Fi module initially enters AP or Soft ap mode, i.e.
Build a Wi-Fi network (network A);Control end (such as mobile phone, notebook etc.) to disconnect and the connection of Wi-Fi router, search
To network A and connect, internet-of-things terminal and control end and can communicate after successful connection, now runs specific controlling end
Application program, is sent to internet-of-things terminal by configuration informations such as the SSID of Wi-Fi router and passwords;Internet-of-things terminal successfully connects
After receiving these configuration informations, Wi-Fi module is converted to Station pattern, connects Wi-Fi road according to the configuration information received
By device, meanwhile, mobile phone disconnection is connected and connect to Wi-Fi router with network A, then completes whole configuration process.
Therefore, the method needs internet-of-things terminal Wi-Fi module to support AP or Soft ap mode, and configuration flow is complicated simultaneously,
Needing user's repeatedly handover network, user is also required to possess certain network technology basis, is not easy to operating with of user.
Existing also a kind of allocation plan is the Wi-Fi mould configuring internet of things equipment by controlling the broadcast/group broadcast of end
Block.The method configuration process is as follows: internet of things equipment Wi-Fi module initially enters monitor pattern, controls end and connects Wi-Fi
After the router of network, running specific application program controlling end, Wi-Fi is route by this application program according to specific rule
The configuration informations such as the SSID of device and password are embedded in packet, are then sent out by these packets by the form of broadcast/group broadcast
Deliver in router Wi-Fi network, after internet of things equipment Wi-Fi module listens to these broadcast/multicast frames, by specific rule
Then resolve the configuration information such as SSID and password obtaining Wi-Fi router, then automatically access Wi-Fi according to these configuration informations
Router.
One of which specifically rule is such as: be mapped in the middle of the length information of packet by Wi-Fi configuration information, by extensively
The mode broadcast is sent in Wi-Fi network, but due to by frame MTU(Maximum Transmission Unit) limited,
The space that every frame data can be used to deposit Wi-Fi configuration information in theory is 11 bits to the maximum, in one 8 byte of transmission
During the encrypted message of SSID and 8 bytes, also it is to need to send 14 Frames under ideal state, can complete
Wi-Fi configures.
Another specific rule is such as: is filled into by Wi-Fi configuration information in rear three bytes of multicast ip address, passes through
The mode of multicast is sent in Wi-Fi network, and the space that every frame can be used to deposit Wi-Fi configuration information in theory is 24 bits.
When transmitting the encrypted message of the SSID of 8 bytes and 8 bytes, also it is to need to send 12 under ideal state
Frame.
The transmission capacity of above-mentioned both arrangements information is the most relatively small, and the configuration information of equal length sends the time
Long.Additionally, due to broadcast packet proportion is the biggest in network, resolving can be caused certain interference, cause stability the highest,
If there is packet loss or the situation of wrong bag, setup time can be longer.
Summary of the invention
The first object of the present invention is to provide a kind of end that controls and improves allocative efficiency, configuration stability and ease of use
Collocation 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 collocation method for Wi-Fi network of property.
The third object of the present invention is to provide and a kind of improves allocative efficiency, configuration stability and the control of ease of use
End.
The fourth object of the present invention is to provide and a kind of improves allocative efficiency, configuration stability and the Internet of Things of ease of use
Terminal.
In order to realize the first object of the present invention, the present invention provides a kind of and controls the end collocation method for Wi-Fi network,
Wherein, collocation method includes the step sending configuration frame, and configuration frame is 802.11 Frames, the destination-mac address bag of configuration frame
Including configuration data, configuration data include service set or password.
By being the encapsulation principle schematic of host-host protocol seen from such scheme and with reference to Fig. 1, Fig. 1, the superiors are
Ethernet frame format, is then passed 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 specifications, for WEP, WPA,
For WPA2 safe mode, when sending 802.11 Frame, need the Payload data of 802.11 frames are encrypted.Cause
This, after terminal is linked into Wi-Fi network, the Frame of transmission only MAC Header territory is transparent, other Payload parts
All have passed through encryption.Owing to the MAC Header field of 802.11 frames always exposes, it is possible to obtain from MAC Header
Win the confidence breath;Owing to Payload is typically all through encryption, the data of this part can not be resolved in the case of not having key.
Can be seen that according to the encapsulation of 802.11 mac frames, the destination-mac address (Destination in Ethernet frame
MAC) can join in 802.11 MAC header with source MAC (Source MAC) address information.The two can be utilized
Field formulates a set of specific communication protocol, carries out information transmission.But for Wi-Fi network, for sending
802.11 frames, if the Source MAC Address in frame is not in this Wi-Fi network, this Frame can constantly be retransmitted, and draws
Play mistake, so source MAC (Source MAC) can not be revised, but destination-mac address (Destination can be revised
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
Monitoring pattern, can grab this 802.11 Frame.The space that every frame can be used to deposit Wi-Fi configuration information in theory is 48
Bits, much larger than other allocation plans mentioned in technical background.Owing to destination-mac address capacity is big, so number as much
Send less Frame according to having only to, which improves allocative efficiency, make whole Wi-Fi configuration process faster.
Control end and send these configuration frames comprising Wi-Fi configuration information, specifically, the destination-mac address bag of configuration frame
Including configuration data, configuration data include SSID or password.
Further scheme is, the destination-mac address of configuration frame also includes that filtering code, configuration frame identification and first follow
Ring redundancy check code and sequence number, filtering code is to control the default mark between end and internet-of-things terminal, configures frame identification and joins
Putting data association, the first CRC is the check results of configuration data, sequence number and configuration data association.
Therefore, filtering code can help judge information source rapidly and filter out required frame, cyclic redundancy
Check code is the check results of configuration data, is used for ensureing that correctness and the integrity that packet transmits, configuration frame identification are used for
The type of mark Frame, when configuring data and being more, needs segment transmissions, can be identified configuration data by sequence number,
And whether made mistakes by check code verification data, it is ensured that the high efficiency of configuration data transmission and stability.
Further scheme is, collocation method also included sending synchronization frame or transmission before sending the step of configuration frame
The step of ancillary frame, synchronization frame is 802.11 Frames;The destination-mac address of synchronization frame includes filtering code, synchronous code, synchronization
Frame identification and the second CRC, the second CRC is the check results of synchronous code.Ancillary frame is
802.11 Frames, the destination-mac address of ancillary frame includes filtering code, the string length of service set, the word of password
Symbol string length, safe encryption mode, ancillary frame mark and the 3rd CRC, the 3rd CRC is service
The string length of set identifier, the string length of password and the check results of safe encryption mode
Therefore, real-life wireless network is the most extremely complex, in same space, it is understood that there may be multiple Wi-
Fi network, the channel of each Wi-Fi network work may be different, and each Wi-Fi network is likely to comprise multiple transmission terminal, this
A little terminals that send are again at continual transmission packet radio.If internet-of-things terminal opens monitoring pattern, its packet obtained will
It is magnanimity.Therefore internet-of-things terminal is sending the packet with Wi-Fi configuration information it needs to be determined which controls end.Work as thing
When networked terminals receives synchronization frame, the MAC Address of transmission terminal, the transmission of this Frame can be obtained by analyzing this synchronization frame
Terminal is the control end of correspondence.
The transmission of ancillary frame can make internet-of-things terminal obtain the string length of service set, password character string long
Degree, safe encryption mode, it can be ensured that configuration information is correct, reduce Wi-Fi and configure process time.
In order to realize the second object of the present invention, the present invention provides a kind of internet-of-things terminal for the configuration of Wi-Fi network
Method, wherein, collocation method includes the step receiving configuration frame, and configuration frame is 802.11 Frames;The Destination MAC ground of configuration frame
Location includes configuring data, and configuration data include SSID or password.
Further scheme is, collocation method also includes Connection Step, and Connection Step includes: resolve configuration frame and acquisition is joined
Put data;Wi-Fi network is connected according to service set and password.
Further scheme is, the destination-mac address of described configuration frame also includes: filtering code, configuration frame identification, first
CRC and sequence number;Described filtering code is to control the default mark between end and described internet-of-things terminal, described
Configuration frame identification and described configuration data association, described first CRC is the check results of described configuration data,
Described sequence number and described configuration data association.
Therefore, filtering code can help judge information source rapidly and filter out required frame, cyclic redundancy
Check code is the check results of configuration data, is used for ensureing that correctness and the integrity that packet transmits, configuration frame identification are used for
The type of mark Frame, when configuring data and being more, needs segment transmissions, can be identified configuration data by sequence number,
And whether made mistakes by check code verification data, it is ensured that the high efficiency of configuration data transmission and stability.
Further scheme is, described collocation method also included receiving synchronization frame before receiving the step of described configuration frame
Or receive the step of ancillary frame;Described synchronization frame is 802.11 Frames, and the destination-mac address of described synchronization frame includes described mistake
Filter code, synchronous code, synchronization frame mark and the second CRC;Described second CRC is described synchronization
The check results of code;Described ancillary frame is 802.11 Frames, and the destination-mac address of described ancillary frame includes described filtration generation
Code, the string length of described service set, the string length of described password, safe encryption mode, ancillary frame mark and
3rd CRC;Described safe encryption mode is the cipher mode of Wi-Fi network, described 3rd cyclic redundancy check (CRC)
Code is the verification knot of the string length of described service set, the string length of described password and described safe encryption mode
Really.
Therefore, real-life wireless network is the most extremely complex, in same space, it is understood that there may be multiple
Wi-Fi network, the channel of each Wi-Fi network work may be different, and each Wi-Fi network is likely to comprise multiple transmission eventually
End, these send terminal again at continual transmission packet radio.If internet-of-things terminal opens monitoring pattern, its data obtained
Bag will be magnanimity.Therefore internet-of-things terminal is sending the packet with Wi-Fi configuration information it needs to be determined which controls end.
When internet-of-things terminal receives synchronization frame, the MAC Address of transmission terminal can be obtained by analyzing this synchronization frame, this Frame
Send terminal and be the control end of correspondence.
The transmission of ancillary frame can make internet-of-things terminal obtain the string length of service set, password character string long
Degree, safe encryption mode, it can be ensured that configuration information is correct, reduce Wi-Fi and configure process time.
Further scheme is, before receiving the step of described synchronization frame, described collocation method also includes: switch to prison
Listen pattern, and 802.11 Frames are monitored on exchange-column shift channel ground;Receive described synchronization frame when for the first time, then lock described same
The channel at step-frame place.
Therefore, internet-of-things terminal, before receiving synchronization frame, needs exchange-column shift channel-monitoring packet, works as reception
Lock this channel during to synchronization frame and continue to packet, and receive synchronization frame, ancillary frame or configuration frame by mode of unicast,
Configuration process can be made more stable and efficient.
In order to realize the third object of the present invention, the present invention provides a kind of and controls end, including processor and wireless telecommunications mould
Block, processor is received by wireless communication module and sends data, and wherein, processor performs the collocation method in such scheme.
From such scheme, controlling end and is connected with internet-of-things terminal when configuring, control end outwards exports 802.11 join
Put frame, and configuration information is left 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, it is possible to filters out faster
Required frame, configuration frame identification is for identifying the type of Frame, and verification data are for ensureing the correctness that packet transmits
And integrity.
In order to realize the fourth object of the present invention, the present invention provides a kind of internet-of-things terminal, including processor and channel radio
News module, processor is received by wireless communication module and sends data, and wherein, processor performs the configuration side in such scheme
Method.
From such scheme, when control end is connected configuration with internet-of-things terminal, joining of internet-of-things terminal reception 802.11
Put frame, these configuration frames comprise Wi-Fi configuration information, specifically, the destination-mac address of configuration frame includes filtering code, joins
Put data, configuration frame identification and verification data.Wherein, filter out required frame rapidly by resolving filtering code, logical
Cross parsing configuration frame identification to identify the type of Frame, by resolve verification data check configuration data whether make mistakes.
Accompanying drawing explanation
Fig. 1 is the encapsulation principle schematic 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 end 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.
Below in conjunction with drawings and Examples, the invention will be further described.
Detailed description of the invention
Control end is for the collocation method embodiment of Wi-Fi network:
With reference to Fig. 2 and Fig. 3, Internet of things system includes router side 11, internet-of-things terminal 12 and controls end 13, controls end 13 and sends
Synchronization frame, ancillary frame and configuration frame all by router side 11 transmission be sent to internet-of-things terminal 12.
When using first, end 13(such as mobile phone, computer and flat board etc. first will be controlled) the Wi-Fi net of couple in router end 11
Network, i.e. step S11, perform step S12 subsequently, and SSID and password to Wi-Fi network are encrypted.
Perform step S13 subsequently, control end 13 and send synchronization frame set by mode of unicast, with reference to Fig. 4, a synchronization frame
Set includes two different synchronization frames, and synchronization frame is 802.11 Frames, and sends synchronization frame set six times successively, specifically
Ground, as shown in Figure 4, the destination-mac address of synchronization frame includes filtering code to the structure of the destination-mac address of synchronization frame successively
(filter code), synchronization frame mark (1), CRC (crc) and synchronous code (sync code), a byte
Filter code, the synchronization frame mark of a byte, the CRC of a byte, the synchronous code of three bytes, two
The synchronous code of individual synchronization frame is respectively { 0x11,0x22,0x33} and { 0x33,0x22,0x11}.
Filtering code is to control the default mark between end 13 and internet-of-things terminal 12, in the present embodiment, filtering code
XOR for each byte of source MAC draws, 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 destination-mac address and adds and the association of source MAC, can help
Helping and quickly judge source, it is possible to filter out required frame faster, for synchronization frame, synchronization frame identifier is set to 1,
CRC is the check results of synchronous code, is the crc verification of rear three byte of sync codes.
Performing step S14 subsequently, control end 13 and send ancillary frame set by mode of unicast, an ancillary frame set includes
One ancillary frame, ancillary frame is 802.11 Frames, and sends ancillary frame set six times, specifically, the target of ancillary frame successively
As shown in Figure 4, the destination-mac address of ancillary frame includes filtering code (filter Code), auxiliary to the structure of MAC Address successively
Frame identification (2), CRC (crc), the string length (SSID length) of service set, the character of password
String length (password length) and safe encryption mode (secure mode), the filter code of a byte, one
The ancillary frame mark of individual byte, the CRC of a byte, the SSID length of a byte, a byte
Password length, the secure mode of a byte.
For ancillary frame, ancillary frame identifier is set to 2, and CRC is the character string of service set
Length, the string length of password and the check results of safe encryption mode, be the crc verification of the data of rear three bytes.
Performing step S15 subsequently, control end 13 and send configuration frame set by mode of unicast, a configuration frame set includes
The configuration frame of the multiple SSID of having data and multiple have code data configuration frame, the number of configuration frame can be according to SSID and password
Length depending on, configuration frame is 802.11 Frames, and sends configuration frame set four times successively, specifically, the target of configuration frame
As shown in Figure 4, the destination-mac address of configuration frame includes filtering code (filter code), configuration to the structure of MAC Address successively
Frame identification (3/4), verification data (index | crc) and configure data, the filter code of a byte, joining of a byte
Put 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
Saying, configuration frame identifier is set to 3, and for the configuration frame with the code data of encryption, configuration frame identifier is set to
4。
Configuration data include service set or password, are respectively adopted different configuration frame in the present embodiment and deposit encryption
SSID and password, and deposit the SSID of encryption and password also can realize at same configuration frame simultaneously.Verification packet
Including sequence number index and CRC crc, crc is the low three of this byte, and the crc for rear three byte datas verifies knot
Fruit and 0x07 phase with, index is high five, represents that the sequence number of these configuration data (is owing to SSID and password are usually more than 3 words
Joint, needs fragmented storage).
Then perform step S16, wait the internet-of-things terminal confirmation signal sent by internet-of-things terminal to be received, and judgement is
No receive, as no, then return step S13, in this way, then show that internet-of-things terminal receives configuration data can be according to configuring data
Access Wi-Fi network, therefore finally perform step S17, control end 13 transmission and control end confirmation signal.
Internet-of-things terminal is for the collocation method embodiment of Wi-Fi network:
With reference to Fig. 5, during internet-of-things terminal 12 first connection Wi-Fi network, step S21 is first carried out, it is fixed that circulation is set after powering on
Time device, exchange-column shift monitor Wi-Fi channel, then perform step S22, internet-of-things terminal 12 is switched to monitoring pattern, in institute
The circulation of Wi-Fi interchannel is had to monitor.Perform step S23 subsequently, receive a Frame, then perform step S24, it is judged that receive
Whether have been received by synchronization frame before this Frame, as no, then perform step S25, it is judged that whether this Frame is synchronization frame,
As no, then return and perform step S23, continue executing with crawl Frame, if this Frame is synchronization frame, then perform step S26,
Analyze the source MAC in this synchronization frame getting frame, lock the channel at this synchronization frame place simultaneously so that internet-of-things terminal 12
Only at this channel-monitoring.
It is then returned to perform step S23, continues to capture the Frame of unicast transmission on the channel of locking, capturing another
After Frame, perform step S24, it is judged that received synchronization frame, in this way, then perform step S27, according to source MAC
The Frame monitored is filtered by address, and this Frame is probably synchronization frame, ancillary frame or configuration frame, therefore can be same to meet
Step-frame, ancillary frame and configuration frame resolve, and detect whether destination-mac address therein mates predefined rule, the most as above
Shown in the structure of the destination-mac address stating the synchronization frame in embodiment, ancillary frame and configuration frame, if synchronization frame, ancillary frame and
The destination-mac address structure matching of configuration frame, then solve according to the information that the sequence number in destination-mac address, labelling etc. are relevant
Analysis, and obtain SSID and the password of the Partial encryption deposited in this destination-mac address.
Perform step S28 subsequently, it may be judged whether resolve completely, as no, perform step S23 and S24 the most successively, continue to capture
Frame also resolves, and draws router side Wi-Fi net after encryption until resolving completely according to SSID length and Password Length
The SSID of network and password.Then performing step S29, SSID and password to encryption are decrypted, and obtain the configuration number of Wi-Fi
According to, it is then switched to Station pattern, and according to SSID and the Wi-Fi network of password connection route device end.
Perform step S30 subsequently, it may be judged whether be successfully connected Wi-Fi network, as otherwise returned step S21, reconnect
Wi-Fi network, the most then perform step S31, and internet-of-things terminal sends internet-of-things terminal confirmation signal, finally performs step S32,
Judging whether to receive by controlling the control end confirmation signal that end sends, as received, configuration flow terminates.Configured it addition, whole
Journey is provided with timeout mechanism, if overtime, can automatically exit from configuration flow.
Internet of things system embodiment:
With reference to Fig. 6, Internet of things system includes router side 11, controls end 13 and multiple internet-of-things terminal, multiple internet-of-things terminals
Including internet-of-things terminal 12,14 and 15, owing to internet-of-things terminal is the most identical, illustrate as a example by internet-of-things terminal 12 below.
Internet-of-things terminal 12 includes processor 121 and wireless communication module 122, and processor 121 is by wireless communication module 122 and route
Device end 21 connects and receives and send data, controls end 13 and includes processor 131 and wireless communication module 132, controls end 13 and leads to
Crossing communication module 132 to be connected with router side 11, processor 131 is by communication module 132 and router side 11 and each Internet of Things
Network termination alternately and receives and sends data.
Control end 13 and can realize SSID and password encryption, control end 13 by communication module 132 and router side 11
Send synchronization frame set, send ancillary frame set, transmission configuration frame set, reception internet-of-things terminal confirmation signal and send confirmation letter
Number, the most also realize filtering code, configuration data, frame identification, verification data, source MAC, synchronous code, cyclic redundancy school
Test leaving in of code, the string length of service set, the string length of password and safe encryption mode correspondence respectively same
In the destination-mac address of step-frame, ancillary frame and configuration frame.
Processor 121 can perform such as internet-of-things terminal collocation method embodiment in step, the most such as switch monitor channel;Cut
Change jobs pattern;Synchronization frame, ancillary frame and configuration frame is received by wireless communication module 122;Analysis draws source MAC, joins
Put data etc.;Deciphering SSID and password;Wi-Fi network is connected according to SSID and password;By communication module 122 and router side
11 send and receive confirmation signal.
Therefore, when control end is connected configuration with internet-of-things terminal, synchronization frame, ancillary frame and the configuration by 802.11
The transmission of frame, and configuration information is left in configuration frame, specifically, the destination-mac address of configuration frame includes filtering code, joins
Put data, configuration frame identification and verification data.Wherein, filtering code can help quickly to judge information source, it is possible to faster mistake
Leach required frame;Configuration frame identification is for identifying the type of Frame;Verification data can verify that whether configuration data go out
Wrong.Bigger capacity is obtained so that send more when connecting configuration by relevant configuration data being stored in destination-mac address
Few Frame, improves and connects allocative efficiency, makes Wi-Fi network configuration more quickly with stable simultaneously.And relative to broadcast
Or the mode of multicast, its capacity is greatly promoted, and the configuration information time sending equal length is shorter, improves internet of things equipment
The speed of Wi-Fi configuration, it is big due to every frame capacity, and transmission times is less, and resolving difficulty reduces the most accurate, increases
Added the stability of internet-of-things terminal Wi-Fi configuration, and owing to every frame capacity is big, can by adding more verification scheme,
Effectively resist some complicated Wi-Fi environment such as wrong bag, packet loss, improve 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
Receiving a configuration frame, the configuration that just can realize Wi-Fi network connects, and and for example under some network environments, can send reception
One synchronization frame set, an ancillary frame set and a configuration frame set, also can realize configuration and connect, for another example, and root
According to different network environments and the size of 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, be also to be capable of purpose equally.Target simultaneously for Frame
MAC Address deposits relevant information and configuration data, in addition to such as the depositing of above-described embodiment, it is also possible to sequentially deposit with other,
Or deposit data with different byte capacity forms.The most such as filtering code also can use other computings with associating of source MAC
Mode draws, code that more such as filtering code could be arranged to preset (such as 00 etc.), as long as control end and internet-of-things terminal
Predefined rule be mutually matched, mutual default mark can be mutually distinguishable, internet-of-things terminal just can be made to determine control
End processed is transmitting terminal.Just can be real as long as configuration data and relevant information are stored on the destination-mac address of 802.11 Frames
The existing purpose of the present invention.
Claims (10)
1. one kind controls the end collocation method for Wi-Fi network, it is characterised in that:
Described collocation method includes the step sending configuration frame, and described configuration frame is 802.11 Frames;
The destination-mac address of described configuration frame includes configuring data, and described configuration data include service set or password.
Collocation method the most according to claim 1, it is characterised in that:
The destination-mac address of described configuration frame also includes filtering code, configuration frame identification, the first CRC and sequence
Number;
Described filtering code is the default mark between described control end and internet-of-things terminal, and described configuration frame identification is joined with described
Putting data association, described first CRC is the check results of described configuration data, described sequence number and described configuration
Data association.
3. according to the collocation method described in any one of claim 1 to 2, it is characterised in that:
Described collocation method also included sending synchronization frame or sending the step of ancillary frame before sending the step of described configuration frame;
Described synchronization frame is 802.11 Frames, the destination-mac address of described synchronization frame include described filtering code, synchronous code,
Synchronization frame mark and the second CRC, described second CRC is the check results of described synchronous code;
Described ancillary frame is 802.11 Frames, and the destination-mac address of described ancillary frame includes described filtering code, described service
The string length of set identifier, the string length of described password, safe encryption mode, ancillary frame mark and the 3rd cyclic redundancy
Check code, described safe encryption mode is the cipher mode of Wi-Fi network, and described 3rd CRC is described service
The string length of set identifier, the string length of described password and the check results of described safe encryption mode.
4. an internet-of-things terminal is for the collocation method of Wi-Fi network, it is characterised in that:
Described collocation method includes the step receiving configuration frame, and described configuration frame is 802.11 Frames;
The destination-mac address of described configuration frame includes configuring data, and described configuration data include service set or password.
Collocation method the most according to claim 4, it is characterised in that:
Described collocation method also includes that Connection Step, described Connection Step include:
Resolve described configuration frame and obtain described configuration data;
Described Wi-Fi network is connected according to described service set and described password.
Collocation method the most according to claim 4, it is characterised in that:
The destination-mac address of described configuration frame also includes: filtering code, configuration frame identification, the first CRC and sequence
Number;
Described filtering code is to control the default mark between end and described internet-of-things terminal, and described configuration frame identification is joined with described
Putting data association, described first CRC is the check results of described configuration data, described sequence number and described configuration
Data association.
7. according to the collocation method described in any one of claim 4 to 6, it is characterised in that:
Described collocation method also included receiving synchronization frame or receiving the step of ancillary frame before receiving the step of described configuration frame;
Described synchronization frame is 802.11 Frames, the destination-mac address of described synchronization frame include described filtering code, synchronous code,
Synchronization frame mark and the second CRC;Described second CRC is the check results of described synchronous code;
Described ancillary frame is 802.11 Frames, and the destination-mac address of described ancillary frame includes described filtering code, described service
The string length of set identifier, the string length of described password, safe encryption mode, ancillary frame mark and the 3rd cyclic redundancy
Check code;Described safe encryption mode is the cipher mode of Wi-Fi network, and described 3rd CRC is described service
The string length of set identifier, the string length of described password and the check results of described safe encryption mode.
Collocation method the most according to claim 7, it is characterised in that:
Before receiving the step of described synchronization frame, described collocation method also includes:
Switch to monitoring pattern, and 802.11 Frames are monitored on exchange-column shift channel ground;
Receive described synchronization frame when for the first time, then lock the channel at described synchronization frame place.
9. controlling end, including processor and wireless communication module, described processor is received by described wireless communication module and is sent out
Send data, it is characterised in that:
Described processor performs the collocation method described in any one of claim 1-3.
10. internet-of-things terminal, including processor and wireless communication module, described processor is received by described wireless communication module
With transmission data, it is characterised in that:
Described processor performs the collocation method described in any one of claim 4-8.
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 true CN106254147A (en) | 2016-12-21 |
CN106254147B CN106254147B (en) | 2019-06-28 |
Family
ID=57599348
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610811373.6A Active 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) |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106856609A (en) * | 2017-02-28 | 2017-06-16 | 苏州福瑞思信息科技有限公司 | A kind of network collocating method and device |
WO2019037661A1 (en) * | 2017-08-22 | 2019-02-28 | 阿里巴巴集团控股有限公司 | Method, device, and system for monitoring network access status of network distribution device |
CN109905260A (en) * | 2017-12-08 | 2019-06-18 | 华为技术有限公司 | Method, management equipment and the service processing equipment of device configuration |
CN110035133A (en) * | 2018-01-12 | 2019-07-19 | 珠海全志科技股份有限公司 | The method and apparatus of peer device IP address is obtained in Android WiFi-Direct connection |
CN110225516A (en) * | 2018-03-01 | 2019-09-10 | 鸿合科技股份有限公司 | A kind of connection method and system of wireless network |
CN110807148A (en) * | 2019-10-08 | 2020-02-18 | 北京百度网讯科技有限公司 | Equipment identifier filtering method and device, electronic equipment and storage medium |
CN111225429A (en) * | 2018-11-26 | 2020-06-02 | 阿里巴巴集团控股有限公司 | Method, device, equipment and system for acquiring SSID of router |
CN111225393A (en) * | 2018-11-26 | 2020-06-02 | 阿里巴巴集团控股有限公司 | Channel correction method, device, equipment and system |
CN111480372A (en) * | 2017-12-22 | 2020-07-31 | 华为技术有限公司 | Apparatus and method for wireless communication |
CN112019357A (en) * | 2019-05-28 | 2020-12-01 | 阿里巴巴集团控股有限公司 | Network configuration method, device, equipment and system |
CN110351281B (en) * | 2019-07-15 | 2021-01-05 | 珠海格力电器股份有限公司 | Universal data frame analysis method, device and equipment |
CN112437463A (en) * | 2020-11-24 | 2021-03-02 | 展讯半导体(成都)有限公司 | Terminal Wi-Fi compatibility automatic test method, device, system, equipment and medium |
CN113473387A (en) * | 2021-06-11 | 2021-10-01 | 江苏大学 | WiFi module network distribution method based on UDP broadcast length coding |
CN113542340A (en) * | 2021-01-07 | 2021-10-22 | 腾讯科技(深圳)有限公司 | Multi-terminal configuration method, terminal and computer-readable storage medium |
CN115834374A (en) * | 2022-11-25 | 2023-03-21 | 上海掌门科技有限公司 | Method, device, medium and program product for connecting hotspots |
Citations (6)
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 |
-
2016
- 2016-09-08 CN CN201610811373.6A patent/CN106254147B/en active Active
Patent Citations (6)
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 |
Cited By (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106856609A (en) * | 2017-02-28 | 2017-06-16 | 苏州福瑞思信息科技有限公司 | A kind of network collocating method and device |
WO2019037661A1 (en) * | 2017-08-22 | 2019-02-28 | 阿里巴巴集团控股有限公司 | Method, device, and system for monitoring network access status of network distribution device |
CN109429243A (en) * | 2017-08-22 | 2019-03-05 | 阿里巴巴集团控股有限公司 | Monitor the methods, devices and systems of the network insertion state of distribution net equipment |
US11533225B2 (en) | 2017-08-22 | 2022-12-20 | Alibaba Group Holding Limited | Method, apparatus, and system for monitoring network access state of network distribution device |
CN109905260A (en) * | 2017-12-08 | 2019-06-18 | 华为技术有限公司 | Method, management equipment and the service processing equipment of device configuration |
CN111480372A (en) * | 2017-12-22 | 2020-07-31 | 华为技术有限公司 | Apparatus and method for wireless communication |
CN111480372B (en) * | 2017-12-22 | 2021-12-28 | 华为技术有限公司 | Apparatus and method for wireless communication |
CN110035133A (en) * | 2018-01-12 | 2019-07-19 | 珠海全志科技股份有限公司 | The method and apparatus of peer device IP address is obtained in Android WiFi-Direct connection |
CN110035133B (en) * | 2018-01-12 | 2021-09-21 | 珠海全志科技股份有限公司 | Method and device for acquiring IP address of peer-to-peer device in android WiFi-Direct connection |
CN110225516B (en) * | 2018-03-01 | 2023-11-17 | 鸿合科技股份有限公司 | Connection method and system of wireless network |
CN110225516A (en) * | 2018-03-01 | 2019-09-10 | 鸿合科技股份有限公司 | A kind of connection method and system of wireless network |
CN111225429A (en) * | 2018-11-26 | 2020-06-02 | 阿里巴巴集团控股有限公司 | Method, device, equipment and system for acquiring SSID of router |
CN111225393A (en) * | 2018-11-26 | 2020-06-02 | 阿里巴巴集团控股有限公司 | Channel correction method, device, equipment and system |
CN111225393B (en) * | 2018-11-26 | 2023-08-04 | 阿里巴巴集团控股有限公司 | Channel correction method, device, equipment and system |
CN112019357A (en) * | 2019-05-28 | 2020-12-01 | 阿里巴巴集团控股有限公司 | Network configuration method, device, equipment and system |
CN110351281B (en) * | 2019-07-15 | 2021-01-05 | 珠海格力电器股份有限公司 | Universal data frame analysis method, device and equipment |
CN110807148B (en) * | 2019-10-08 | 2022-09-27 | 北京百度网讯科技有限公司 | Equipment identifier filtering method and device, electronic equipment and storage medium |
CN110807148A (en) * | 2019-10-08 | 2020-02-18 | 北京百度网讯科技有限公司 | Equipment identifier filtering method and device, electronic equipment and storage medium |
CN112437463B (en) * | 2020-11-24 | 2022-09-16 | 展讯半导体(成都)有限公司 | Terminal Wi-Fi compatibility automatic test method, device, system, equipment and medium |
CN112437463A (en) * | 2020-11-24 | 2021-03-02 | 展讯半导体(成都)有限公司 | Terminal Wi-Fi compatibility automatic test method, device, system, equipment and medium |
CN113542340A (en) * | 2021-01-07 | 2021-10-22 | 腾讯科技(深圳)有限公司 | Multi-terminal configuration method, terminal and computer-readable storage medium |
CN113473387A (en) * | 2021-06-11 | 2021-10-01 | 江苏大学 | WiFi module network distribution method based on UDP broadcast length coding |
CN115834374A (en) * | 2022-11-25 | 2023-03-21 | 上海掌门科技有限公司 | Method, device, medium and program product for connecting hotspots |
Also Published As
Publication number | Publication date |
---|---|
CN106254147B (en) | 2019-06-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106254147A (en) | A kind of collocation method for Wi Fi network, internet-of-things terminal and control end | |
CN105050083B (en) | A kind of network collocating method and system of smart machine | |
US9154935B2 (en) | Wireless home mesh network bridging adaptor | |
US10986677B2 (en) | Method and apparatus for connecting to access point in WLAN network | |
CN103945369B (en) | A kind of length by checking WIFI packets realizes the Internet-surfing configuration method of WIFI equipment | |
US9019944B2 (en) | Diagnosing and resolving wireless network malfunctions | |
CN104782149B (en) | Adjacent service in the communications | |
CN108632056A (en) | A kind of smart machine network collocating method and system | |
CN108632814A (en) | A kind of terminal device network collocating method and system | |
CN105554754A (en) | Method and system for accessing WIFI module of the internet of things to network | |
CN105072704B (en) | The method and system of information are obtained between a kind of strange intelligent terminal | |
CN101621800A (en) | Method for exchanging authentication information between wireless terminal and wireless router | |
CN107920354A (en) | The connection method of multiband equipment and system | |
KR20160045772A (en) | Method for establishing wireless local area network by mobile terminal, and mobile terminal | |
CN106488447A (en) | A kind of method and system of smart machine access network | |
CN110366153A (en) | A kind of method of bluetooth ad hoc network | |
CN106656547A (en) | Method and apparatus for updating network configuration of household electrical appliances | |
CN105636159A (en) | Configuration method and device for connecting electric appliance with wireless router and mobile communication terminal | |
CN105228264A (en) | A kind of quick WI-FI network matching method being applicable to Internet of Things | |
CN106255177A (en) | The transmission method of a kind of equipment state and device | |
CN106304245A (en) | A kind of equipment networking collocation method and device | |
CN102612033B (en) | Mobile phone with thin wireless access point and communication method for mobile phone | |
CN107230335A (en) | Communication means and system for the live managing and control system of photovoltaic generation | |
CN106160852B (en) | A kind of network system and its remote upgrade method of transmission device | |
CN106535316A (en) | Method for connecting internet-of-things module to network, router and internet-of-things module |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |