CN109922516A - A kind of method of wifi equipment intelligent network distribution - Google Patents
A kind of method of wifi equipment intelligent network distribution Download PDFInfo
- Publication number
- CN109922516A CN109922516A CN201910156931.3A CN201910156931A CN109922516A CN 109922516 A CN109922516 A CN 109922516A CN 201910156931 A CN201910156931 A CN 201910156931A CN 109922516 A CN109922516 A CN 109922516A
- Authority
- CN
- China
- Prior art keywords
- wifi
- data
- wifi equipment
- length
- intelligent terminal
- 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.)
- Pending
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of methods of wifi equipment intelligent network distribution, and including the intelligent terminal and wifi equipment in same wifi environment, wherein intelligent terminal is connected in the wifi;Include the following steps: S1, open the wireless signal in the promiscuous mode monitoring space of wifi equipment;S2, intelligent terminal by broadcast or unicast in a manner of send the data of wifi frame;S3, intelligent terminal intercept the data of specified bit bit length according to the demand of transmission every time;S4, wifi equipment scan channel, capture data packet;S5, wifi equipment parse data after the data for receiving wifi frame, according to format is sent, and obtain password and network name, router in connection, and will determine that information is sent to designated ends slogan in the form broadcasted;Intelligent terminal receives confirmation message in identical port numbers simultaneously;S6, intelligent terminal receive the broadcast message of wifi equipment, can obtain wifi equipment.When the intelligent network distribution method avoids traditional hot spot distribution, the disadvantages of operating procedure is more, and the time is long.
Description
Technical field
The present invention relates to wireless radio-frequency fields, more particularly to a kind of method of wifi equipment intelligent network distribution.
Background technique
Wifi is that one kind can be wirelessly mutual by PC, handheld device (such as palm PC, mobile phone) terminal
The technology being connected, wifi are also known as wireless local area network technology.Wifi equipment connection router currently on the market generallys use
Two ways:
1, hot-spot mode exchanges data, transmits router rs name and password after the hot spot that mobile phone passes through connection wifi equipment, thus
Wifi equipment is set to connect router.This mode needs to toggle cell phone network, and operating procedure is more, and the time is long, it is desirable that user
There are certain mobile phone fundamental operation knowledge, victory inconvenient for use.
2, mobile phone after data encoding, will send specific wifi frame, then after being captured by wifi equipment, by specifically decoding
Algorithm obtains router rs name and password, such as the Airkiss of wechat, due to different coding techniques and transmission technology,
It body performance and is not quite similar to the compatibility of router and mobile phone.
Summary of the invention
The technical problem to be solved by the present invention is to provide a kind of method of wifi equipment intelligent network distribution, matched by the intelligence
When network method avoids traditional hot spot distribution, operating procedure is more, and the time is long, it is desirable that user has certain mobile phone fundamental operation knowledge
Disadvantage.
The technical solution of the invention is as follows, provides a kind of method of wifi equipment intelligent network distribution having follow steps,
Including the intelligent terminal and wifi equipment in same wifi environment, wherein intelligent terminal is connected in the wifi;The intelligence
It is achieved by the steps of with network method:
S1, the promiscuous mode for opening wifi equipment monitor the wireless signal in space;
S2, intelligent terminal by broadcast or unicast in a manner of send the data of wifi frame;
S3, intelligent terminal intercept the data of specified bit bit length according to the demand of transmission every time;
S4, wifi equipment scan channel, capture data packet;
S5, wifi equipment parse data after the data for receiving wifi frame, according to format is sent, and obtain password and network name,
Router in connection, and will determine that information is sent to designated ends slogan in the form broadcasted;Intelligent terminal is in identical port simultaneously
Number receive confirmation message;
S6, intelligent terminal receive the broadcast message of wifi equipment, can obtain wifi equipment.
After above step, the method for wifi equipment intelligent network distribution of the invention has following compared with prior art
Advantage:
When the method for wifi equipment intelligent network distribution of the present invention can avoid traditional hot spot distribution, operating procedure is more, and the time is long, it is desirable that uses
There is the shortcomings that certain mobile phone fundamental operation knowledge at family;In the content of carrying, using random port number, special identifier is added,
Port collision is avoided, avoids multiple wifi equipments and intelligent terminal while same way being used to connect router generating conflict, together
When can be with sender.
As an improvement, in step s 2, intelligent terminal according to 802.11 standards with 802.2 logic link control encapsulation come
IP package is carried, wifi equipment, from data link layer data intercept, obtains data as shown in the table with 802.2 SNAP formats
Packet:
DA | SA | Length | LLC | SNAP | DAT | FCS |
DA indicates the address target mac;SA indicates the address source mac;The length of Length expression subsequent data;LLC indicates LLC head;
SNAP includes the vendor code of 3bytes and the protocol type mark of 2bytes;DAT field is load, for encryption channel
It is ciphertext;FCS field identification frame check sequence.
As an improvement, in step s 4, wifi equipment captures data in 1 to 13 Channel cyclical, each channel is held time
T;The data of wifi frame follow following two rule:
The length of the data of regular 1:wifi frame is in unencryption or the specified cipher mode using a certain kind, clear data length
=ciphertext data length+data length increment constant;
The MAC Address of the data of regular 2:wifi frame follows following computation rule when multicast, with IP address: with 16 systems
The IP address format 0xWWXXYYZZ that converts subtracts 128, otherwise remains unchanged, be thus converted into if IP address XX is greater than 128
Then WW partial replacement is 0100.5E by 0xWWVXYYZZ, can obtain MAC Address is 0100.5EVX.YY.ZZ.
As an improvement, the T is 500ms.
As an improvement, in step s 4, when wifi equipment scans channel, if the length of the data of the continuous broadcast wifi frame of discovery
When spending difference equal to 11 or -11, that is, the channel is locked, prepares capture data packet;If it was found that the data of continuous multicast wifi frame
When value in the condition code of address is equal to condition code, the channel can be equally locked.
As an improvement, in step sl, intelligent terminal sends the data of wifi frame in a manner of broadcasting with unicast, with broadcast
Data content and serial number are indicated with the data length of unicast wifi frame;Or intelligent terminal sends the number of wifi frame in a manner of multicast
According to indicating data content with the IP address of multicast wifi frame, indicate serial number with the data length of multicast wifi frame;Or intelligent terminal
It is sent with broadcast-multicast-unicast cyclic, unicast is used with broadcast same way, sends gateway address.
As an improvement, in step s3, when broadcast, the plaintext DAT calculating formula of length of the data of wifi frame is as follows:
Length=serial number < < 3 | stream code intercepts 3bit in order;Group sowing time, the plaintext DA calculation formula of the data of wifi frame are as follows:
DA=01005E < < 1 | condition code < < 22 | serial number < < 14 | stream code intercepts 14bit in order.
As an improvement, stream code code/decode format is as follows:
Serial number | Field name | bit | Explanation |
1 | Total length | 7 | Password and network name length |
2 | Password Length | 7 | |
3 | Port numbers offset | 4 | Offset based on benchmark port, i.e. actual port number=benchmark port+offset |
4 | Whether compress | 1 | If password and network name are asciic code, when calculating stream code, ignore 0 on the position highest bit, only obtain 7bit |
5 | Effect and | 16 | Crc16_ccitt algorithm only calculates password+network name |
6 | Password | 8 | |
7 | Network name | 8 |
Specific embodiment
The following is specific embodiments of the present invention, and technical scheme of the present invention will be further described, but the present invention and unlimited
In these embodiments.
The invention discloses a kind of methods of wifi equipment intelligent network distribution, eventually including the intelligence in same wifi environment
End and wifi equipment, wherein intelligent terminal is connected in the wifi;The intelligent network distribution method is achieved by the steps of:
S1, the promiscuous mode for opening wifi equipment monitor the wireless signal in space;
S2, intelligent terminal by broadcast or unicast in a manner of send the data of wifi frame.Intelligent terminal is in a manner of broadcasting with unicast
The data for sending wifi frame indicate data content and serial number with the data length of broadcast and unicast wifi frame;Or intelligent terminal with
The mode of multicast sends the data of wifi frame, data content is indicated with the IP address of multicast wifi frame, with the number of multicast wifi frame
Serial number is indicated according to length;Or intelligent terminal is sent with broadcast-multicast-unicast cyclic, unicast is used with broadcast same way, is sent
Gateway address.
Intelligent terminal is encapsulated with 802.2 logic link control according to 802.11 standards to carry IP package, wifi equipment
With 802.2 SNAP formats from data link layer data intercept, data packet as shown in the table is obtained:
DA | SA | Length | LLC | SNAP | DAT | FCS |
DA indicates the address target mac;SA indicates the address source mac;The length of Length expression subsequent data;LLC indicates LLC head;
SNAP includes the vendor code of 3bytes and the protocol type mark of 2bytes;DAT field is load, for encryption channel
It is ciphertext;FCS field identification frame check sequence.
S3, intelligent terminal intercept the data of specified bit bit length according to the demand of transmission every time;
When broadcast, the plaintext DAT calculating formula of length of the data of wifi frame is as follows: Length=serial number < < 3 | stream code is cut in order
Take 3bit;Group sowing time, the plaintext DA calculation formula of the data of wifi frame are as follows: DA=01005E < < 1 | condition code < < 22 | serial number
< < 14 | stream code intercepts 14bit in order.
It is as follows to flow code code/decode format:
Serial number | Field name | bit | Explanation |
1 | Total length | 7 | Password and network name length |
2 | Password Length | 7 | |
3 | Port numbers offset | 4 | Offset based on benchmark port, i.e. actual port number=benchmark port+offset |
4 | Whether compress | 1 | If password and network name are asciic code, when calculating stream code, ignore 0 on the position highest bit, only obtain 7bit |
5 | Effect and | 16 | Crc16_ccitt algorithm only calculates password+network name |
6 | Password | 8 | |
7 | Network name | 8 |
S4, wifi equipment scan channel, capture data packet;Wifi equipment captures data, each channel dimension in 1 to 13 Channel cyclical
Hold time 500ms;The data of wifi frame follow following two rule:
The length of the data of regular 1:wifi frame is in unencryption or the specified cipher mode using a certain kind, clear data length
=ciphertext data length+data length increment constant;Such as intelligent terminal is followed with the data that length of the plaintext is 33,44 two length
When ring is sent, wifi equipment can receive the ciphertext that length is 33+x, 44+x.
The MAC Address of the data of regular 2:wifi frame follows following computation rule when multicast, with IP address: with 16
System conversion IP address format 0xWWXXYYZZ then subtracts 128, otherwise remains unchanged, thus turn if IP address XX is greater than 128
It is changed to 0xWWVXYYZZ, is then 0100.5E by WW partial replacement, can obtain MAC Address is 0100.5EVX.YY.ZZ.
In step s 4, when wifi equipment scanning channel, if the length difference etc. of the data of the continuous broadcast wifi frame of discovery
When 11 or -11, that is, the channel is locked, prepares capture data packet;The length of the data of shorter wifi frame is subtracted 33, as
X value in rule 1.If it was found that equally may be used when the value in the address condition code of the data of continuous multicast wifi frame is equal to condition code
To lock the channel.
S5, wifi equipment parse data after the data for receiving wifi frame, according to format is sent, and obtain password and network name
Claim, router in connection, and will determine that information (i.e. port numbers offset) is sent to designated ends slogan (i.e. base in the form of broadcast
Quasi- port+offset, in this specific embodiment, 25426) benchmark port is;Intelligent terminal is in identical port numbers simultaneously
Receive confirmation message;
S6, intelligent terminal receive the broadcast message of wifi equipment, can obtain wifi equipment.
The invention discloses a kind of methods of wifi equipment intelligent network distribution, have the advantage that
When avoiding traditional hot spot distribution, operating procedure is more, and the time is long, it is desirable that user has lacking for certain mobile phone fundamental operation knowledge
Point.
In the content of carrying, using random port number, special identifier is added, port collision is avoided, avoids multiple wifi
Equipment uses same way to connect router simultaneously and generates conflict with intelligent terminal, while can be with sender.
In the content of carrying, addition crc16-ccitt algorithm is calculated to be verified and provides easy data and sentence wrong error correction
Ability.
Using multiplexing of transmission mode, a degree of compatibility is done to the feature of different routers.In multiplexing of transmission mode,
Comprising the transmission mode being collocated with each other to router high load and low-load, mitigate router load to a certain extent, improves
The speed of wifi equipment connection router.
Simple compression, the efficiency of improve data transfer are done to the content of carrying.
Data are recompiled using stream code, so that wifi frame has enough length to carry serial number, wifi equipment can be with random ordering
Form receives data and recombinates, and reduces the influence of packet loss.
Claims (8)
1. a kind of method of wifi equipment intelligent network distribution, which is characterized in that including the intelligent terminal in same wifi environment
And wifi equipment, wherein intelligent terminal is connected in the wifi;The intelligent network distribution method is achieved by the steps of:
S1, the promiscuous mode for opening wifi equipment monitor the wireless signal in space;
S2, intelligent terminal by broadcast or unicast in a manner of send the data of wifi frame;
S3, intelligent terminal intercept the data of specified bit bit length according to the demand of transmission every time;
S4, wifi equipment scan channel, capture data packet;
S5, wifi equipment parse data after the data for receiving wifi frame, according to format is sent, and obtain password and network name,
Router in connection, and will determine that information is sent to designated ends slogan in the form broadcasted;Intelligent terminal is in identical port simultaneously
Number receive confirmation message;
S6, intelligent terminal receive the broadcast message of wifi equipment, can obtain wifi equipment.
2. the method for wifi equipment intelligent network distribution according to claim 1, it is characterised in that: in step s 2, intelligence is eventually
End is encapsulated with 802.2 logic link control according to 802.11 standards to carry IP package, and wifi equipment is with 802.2 SNAP lattice
Formula obtains data packet as shown in the table from data link layer data intercept:
DA indicates the address target mac;SA indicates the address source mac;The length of Length expression subsequent data;LLC indicates LLC head;
SNAP includes the vendor code of 3bytes and the protocol type mark of 2bytes;DAT field is load, for encryption channel
It is ciphertext;FCS field identification frame check sequence.
3. the method for wifi equipment intelligent network distribution according to claim 2, it is characterised in that: in step s 4, wifi is set
Standby to capture data in 1 to 13 Channel cyclical, each channel is held time T;The data of wifi frame follow following two rule:
The length of the data of regular 1:wifi frame is in unencryption or the specified cipher mode using a certain kind, clear data length
=ciphertext data length+data length increment constant;
The MAC Address of the data of regular 2:wifi frame follows following computation rule when multicast, with IP address: with 16 systems
The IP address format 0xWWXXYYZZ that converts subtracts 128, otherwise remains unchanged, be thus converted into if IP address XX is greater than 128
Then WW partial replacement is 0100.5E by 0xWWVXYYZZ, can obtain MAC Address is 0100.5EVX.YY.ZZ.
4. the method for wifi equipment intelligent network distribution according to claim 3, it is characterised in that: the T is 500ms.
5. the method for wifi equipment intelligent network distribution according to claim 4, it is characterised in that: in step s 4, wifi is set
When standby scanning channel, if the length difference of the data of the continuous broadcast wifi frame of discovery is equal to 11 or -11, that is, the channel is locked,
Prepare capture data packet;If it was found that when value in the address condition code of the data of continuous multicast wifi frame is equal to condition code, equally
The channel can be locked.
6. the method for wifi equipment intelligent network distribution according to claim 2, it is characterised in that: in step s 2, intelligence is eventually
End sends the data of wifi frame in a manner of broadcasting with unicast, indicates data content with the data length of broadcast and unicast wifi frame
And serial number;Or intelligent terminal sends the data of wifi frame in a manner of multicast, is indicated in data with the IP address of multicast wifi frame
Hold, indicates serial number with the data length of multicast wifi frame;Or intelligent terminal is sent with broadcast-multicast-unicast cyclic, unicast uses
With broadcast same way, gateway address is sent.
7. the method for wifi equipment intelligent network distribution according to claim 6, it is characterised in that: in step s3, when broadcast,
The plaintext DAT calculating formula of length of the data of wifi frame is as follows: Length=serial number < < 3 | stream code intercepts 3bit in order;Group
The plaintext DA calculation formula of sowing time, the data of wifi frame are as follows: DA=01005E < < 1 | condition code < < 22 | serial number < < 14 | stream code,
14bit are intercepted in order.
8. the method for wifi equipment intelligent network distribution according to claim 7, it is characterised in that: stream code code/decode format is such as
Under:
。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910156931.3A CN109922516A (en) | 2019-03-01 | 2019-03-01 | A kind of method of wifi equipment intelligent network distribution |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910156931.3A CN109922516A (en) | 2019-03-01 | 2019-03-01 | A kind of method of wifi equipment intelligent network distribution |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109922516A true CN109922516A (en) | 2019-06-21 |
Family
ID=66962979
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910156931.3A Pending CN109922516A (en) | 2019-03-01 | 2019-03-01 | A kind of method of wifi equipment intelligent network distribution |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109922516A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110972161A (en) * | 2019-10-22 | 2020-04-07 | 珠海格力电器股份有限公司 | Automatic networking method, device, equipment and readable medium |
CN111918365A (en) * | 2020-07-28 | 2020-11-10 | 宁波奥克斯电气股份有限公司 | Network distribution method, device and system of Internet of things and storage medium |
WO2021004014A1 (en) * | 2019-07-10 | 2021-01-14 | Zhejiang Dahua Technology Co., Ltd. | Systems and methods for connecting to a wireless network |
CN112261591A (en) * | 2020-09-15 | 2021-01-22 | 哈工大机器人(合肥)国际创新研究院 | Method for rapidly and stably configuring wifi through one key |
CN112637874A (en) * | 2020-12-22 | 2021-04-09 | 上海汉枫电子科技有限公司 | BLE Mesh-based intelligent device network distribution method |
CN115175110A (en) * | 2022-06-23 | 2022-10-11 | 深圳市爱培科技术股份有限公司 | Rapid distribution network method and system for equipment based on multicast |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2763493A1 (en) * | 2012-01-21 | 2014-08-06 | Huawei Device Co., Ltd. | Method for accessing network for device, access point, access network device and system |
CN105050087A (en) * | 2015-08-20 | 2015-11-11 | 惠州Tcl移动通信有限公司 | Method and system for accessing multi-protocol compatible equipment to WiFi (Wireless Fidelity) network |
CN106455001A (en) * | 2016-11-30 | 2017-02-22 | 青岛海尔科技有限公司 | Method and device for configuring WIFI module |
-
2019
- 2019-03-01 CN CN201910156931.3A patent/CN109922516A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2763493A1 (en) * | 2012-01-21 | 2014-08-06 | Huawei Device Co., Ltd. | Method for accessing network for device, access point, access network device and system |
CN105050087A (en) * | 2015-08-20 | 2015-11-11 | 惠州Tcl移动通信有限公司 | Method and system for accessing multi-protocol compatible equipment to WiFi (Wireless Fidelity) network |
CN106455001A (en) * | 2016-11-30 | 2017-02-22 | 青岛海尔科技有限公司 | Method and device for configuring WIFI module |
Non-Patent Citations (1)
Title |
---|
CSDN: "组播IP地址与组播MAC地址之间的换算方法, https://blog.csdn.net/zhaomax/article/details/52414403", 《CSDN博客》 * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021004014A1 (en) * | 2019-07-10 | 2021-01-14 | Zhejiang Dahua Technology Co., Ltd. | Systems and methods for connecting to a wireless network |
CN110493185B (en) * | 2019-07-10 | 2021-06-29 | 浙江大华技术股份有限公司 | Channel dwell method, apparatus, computer device and storage medium |
CN110972161A (en) * | 2019-10-22 | 2020-04-07 | 珠海格力电器股份有限公司 | Automatic networking method, device, equipment and readable medium |
WO2021077930A1 (en) * | 2019-10-22 | 2021-04-29 | 珠海格力电器股份有限公司 | Automatic networking method, apparatus, device, and readable medium |
CN110972161B (en) * | 2019-10-22 | 2022-04-15 | 珠海格力电器股份有限公司 | Automatic networking method, device, equipment and readable medium |
CN111918365A (en) * | 2020-07-28 | 2020-11-10 | 宁波奥克斯电气股份有限公司 | Network distribution method, device and system of Internet of things and storage medium |
CN112261591A (en) * | 2020-09-15 | 2021-01-22 | 哈工大机器人(合肥)国际创新研究院 | Method for rapidly and stably configuring wifi through one key |
CN112637874A (en) * | 2020-12-22 | 2021-04-09 | 上海汉枫电子科技有限公司 | BLE Mesh-based intelligent device network distribution method |
CN115175110A (en) * | 2022-06-23 | 2022-10-11 | 深圳市爱培科技术股份有限公司 | Rapid distribution network method and system for equipment based on multicast |
CN115175110B (en) * | 2022-06-23 | 2023-11-03 | 深圳市爱培科技术股份有限公司 | Method and system for rapidly distributing network for equipment based on multicast |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109922516A (en) | A kind of method of wifi equipment intelligent network distribution | |
EP2810478B1 (en) | Mac header compression in long-range wireless local area networks | |
US10880817B2 (en) | Wi-fi configuration method, Wi-Fi mobile terminal, and Wi-Fi device | |
KR101502105B1 (en) | Multicast to unicast conversion system | |
Kim et al. | Throughput enhancement of IEEE 802.11 WLAN via frame aggregation | |
US7792108B2 (en) | Method and apparatus for transmitting concatenated frames in a wireless communication system | |
US11831497B2 (en) | Self-configuration of wireless connections | |
WO2019233310A1 (en) | Method and apparatus for device to be configured with network to access network hotspot device | |
US20110243117A1 (en) | Base station and wireless terminal | |
CN110049353A (en) | Device and method for the transmitting multimedia data in broadcast system | |
CN107196834B (en) | Message processing method and device | |
US20100098033A1 (en) | Method for transmitting network data | |
WO2009026845A1 (en) | Method for data transmitting and receiving, wireless access point apparatus, gateway and communication system | |
WO2020253157A1 (en) | Volte data transmission method and apparatus, and access network device and storage medium | |
CN111555855A (en) | Wireless transmission method and device | |
EP1988655A1 (en) | Method and apparatus for using an error code in transmission of data | |
Wang et al. | A multiplex-multicast scheme that improves system capacity of voice-over-IP on wireless LAN by 100% | |
US9668238B1 (en) | Multicast file delivery | |
CN112105008B (en) | LoRaWAN gateway node data interaction method based on data unit | |
CN110839259B (en) | Data transmission method between service terminal and service main station | |
Saha et al. | Gratis: Free bits in the network | |
Jeon et al. | WiMAX multicast/broadcast services support in home environments | |
JP6994475B2 (en) | Data transmission system, data transmission method, data aggregation method and equipment | |
CN104363076A (en) | Method for exchanging data by wireless message length | |
KR200419293Y1 (en) | Apparatus for transmitting concatenated frames in a wireless communication system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190621 |
|
RJ01 | Rejection of invention patent application after publication |