CN103945369B - A kind of length by checking WIFI packets realizes the Internet-surfing configuration method of WIFI equipment - Google Patents

A kind of length by checking WIFI packets realizes the Internet-surfing configuration method of WIFI equipment Download PDF

Info

Publication number
CN103945369B
CN103945369B CN201310018532.3A CN201310018532A CN103945369B CN 103945369 B CN103945369 B CN 103945369B CN 201310018532 A CN201310018532 A CN 201310018532A CN 103945369 B CN103945369 B CN 103945369B
Authority
CN
China
Prior art keywords
data frame
length
ssid
wifi
password
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310018532.3A
Other languages
Chinese (zh)
Other versions
CN103945369A (en
Inventor
李志为
刘宗孺
姚博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Bolian Intelligent Technology Co., Ltd.
Original Assignee
Hangzhou Gubei Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Family has litigation
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=51192805&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=CN103945369(B) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.
Application filed by Hangzhou Gubei Electronic Technology Co Ltd filed Critical Hangzhou Gubei Electronic Technology Co Ltd
Priority to CN201310018532.3A priority Critical patent/CN103945369B/en
Priority to PCT/CN2013/001616 priority patent/WO2014110704A1/en
Publication of CN103945369A publication Critical patent/CN103945369A/en
Application granted granted Critical
Publication of CN103945369B publication Critical patent/CN103945369B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/04Key management, e.g. using generic bootstrapping architecture [GBA]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/30Security of mobile devices; Security of mobile applications
    • H04W12/37Managing security policies for mobile devices or for controlling mobile applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Landscapes

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

Abstract

The invention discloses a kind of Internet-surfing configuration method of WIFI equipment, generates the data frame for configuration of surfing the Net, and the data frame includes predetermined fixed character string MAGIC CODE, data frame length, SSID length, SSID, encryption type and password;The AES that data frame can be consulted by configuring and being configured both sides, is encrypted, is then transmitted the data frame after encryption.In transmission process, the number of the corresponding packet (UDP) sent of length of data frame, length corresponding to each UDP message bag is the numerical value of its data frame.

Description

A kind of length by checking WIFI packets realizes the online configuration of WIFI equipment Method
Technical field
The present invention relates to a kind of Internet-surfing configuration method of WIFI equipment.
Background technology
, it is necessary to take the SSID for the AP to be connected, auth type, close first when traditional WIFI equipment is connected with AP Code.
Current collocation method includes:
1st, required connection AP SSID, auth type and password are sent by external communication interface.
This method needs equipment, additionally draws communication interface, and to the appearance design of equipment, user's operation brings very big It is difficult.
2nd, WIFI equipment oneself will be configured to ap mode or AD-HOC patterns first, allow other WIFI equipments (android iOS mobile phones, notebook computer etc.), log in, be then transmitted across required configuration information by ICP/IP protocol Go to be configured
This method can cause other WIFI equipments to disconnect original WIFI network, cause network interruption;Have simultaneously A little operating system such as iOS, the exploitation of restricted software, have disabled the api interface of WIFI connections, so as to which cause cannot direct software reality Now, it is necessary to which user connects manually.
The content of the invention
The technical problems to be solved by the invention are to provide a kind of length by checking WIFI packets and realize that WIFI is set Standby Internet-surfing configuration method.
A kind of length by checking WIFI packets realizes the Internet-surfing configuration method of WIFI equipment, comprises the following steps:
The data frame for configuration of surfing the Net is generated, the data frame includes predetermined fixed character string MAGIC-CODE, number According to frame length, SSID length, SSID, encryption type and password;
The AES that data frame is consulted by configuring and being configured both sides, is encrypted, then by the number after encryption It is transmitted according to frame, in transmission process, the number of the corresponding UDP message bag sent of length of data frame, each UDP message bag pair The length answered is numerical value corresponding to each byte inside its data frame;
According to the MAC Address of WIFI equipment, the data for establishing different WIFI equipments respectively send the chained list of length;
Fixed character string MAGIC-CODE can be matched by checking whether;
If matching fixed character string, data frame is obtained;
Check whether verification summation checksum is correct, if correctly, obtaining SSID according to the data frame, encrypting class Type and password.
The positive effect of the present invention is:Technique effect:
1st, the WIFI equipment being configured, on the premise of it need not add AD-HOC or AP functions, you can complete its online Configuration, reduces the use of device resource
2nd, without external other communication interfaces, WIFI radio configurations are directly passed through
3rd, it is compatible well, need that the equipment that WIFI communicates can be supported for various, as long as being integrated with UDP communication protocols View, you can realize to the configuration for the WIFI equipment being configured,
4th, solve the operating system that such as iOS is limited WIFI api interfaces, realize the allocation problem of WIFI equipment
5th, this collocation method is not limited by the cryptographic protocol (WEP, WPA, WPA2) of legacy network, because this method It is that regardless of encryption method, packet content is encrypted, and data packet length is not come transmission information using the length of packet Become.
Brief description of the drawings
In order to illustrate more clearly of technical scheme, the required accompanying drawing used in being described below to the present invention It is briefly described.
Fig. 1 is the building form schematic diagram for the data frame that one embodiment of the present of invention provides.
Embodiment
The present invention is further detailed explanation with reference to the accompanying drawings and detailed description.
A kind of length by checking WIFI packets of the present invention realizes that the Internet-surfing configuration method of WIFI equipment is included such as Lower step:
WIFI configurations equipment generates the data frame for configuration of surfing the Net, and the data frame includes predetermined fixed character string MAGIC-CODE, data frame length, SSID length, SSID, encryption type and password;Optionally, the data frame also includes school Test word.Optionally, the fixed character string, data frame length, SSID length, SSID, encryption type, password and check word is suitable Sequence and the fixed character string, data frame length, SSID length, SSID, encryption type, the shared word of password or check word Corresponding relation between joint number and represented value is default or exterior arrangement.
Data frame is encrypted by AES encryption algorithm.
Send the UDP message bag quantity of data frame length.As data frame length be 60, send 60 UDP, each UDP numbers Numerical value according to the length of bag for the byte inside corresponding data frame, the content of UDP message bag is actually invalid content.
It is configured MAC Address of the WIFI equipment according to WIFI equipment, the data for establishing different WIFI equipments respectively send length The chained list of degree;
It is configured WIFI equipment and checks whether that fixed character string MAGIC-CODE can be matched;
If matching fixed character string, it is configured WIFI equipment and then obtains data frame;
Whether correct it is configured WIFI equipment inspection verification summation checksum, if correctly, according to the data frame Obtain SSID, encryption type and password.
Be configured WIFI equipment use the acquisition SSID, encryption type connected with password corresponding to WIFI AP networks, And confirmation broadcast data is sent, confirm that configuration is completed.
The implementation of above-described embodiment is specifically illustrated below:
The online of WIFI equipment needs to obtain its connection AP SSID (maximum 32 bytes) first, encryption type (NONE, WEP, WPA, WPA2), password.
For the equipment for being not yet connected to AP, although the packet of WIFI passages can be listened to, due to Most of AP networks cannot obtain the actual data content of its transmission all by encryption, intelligently listen to transmission The length of data.
Present invention design, it is exactly in its configuration WIFI equipment application program developed above, is sent out by WIFI network UDP hash strings are sent, the length of different pieces of information string corresponds to our encoded contents, is configured equipment and listens to same WIFI to set After standby (MAC Address differentiation) sends the serial data with configuration feature, its configuration information is obtained, realization is configured.
The present invention includes following several parts:The coding and hair of SSID, encryption type and password above configuration equipment Send;The monitoring and information for being configured equipment parse.
First, the data frame composition of SSID, encryption type and password
We configure the AP of online SSID as needed first, encryption type, password, generate the required data transmitted Frame, the composition of data frame is as shown in Figure 1.
MAGIC-CODE above, for configuration WIFI equipment and be configured WIFI equipment agreement fixed character string such as (BLK) 3 bytes also, are taken for the initial code of mark data frame.
The length of data, 1 byte.
Check word, check whether data frame is correct, 2 bytes.Obtained by the way that the numerical value in all data frames is added.
SSID length, 1 byte
SSID, to need the SSID character strings of the AP on configuring
Encryption type:0none (is not encrypted), 1WEP encryptions, 2WPA encryptions, 3WPA2 encryptions, takes 1 byte.
Password:The remaining part of data frame is password string.
2nd, the transmission of data frame
The transmission of data, it is as follows by sending a string of UDP method of packet.
By each byte inside data frame, corresponding numerical value, the length of transmission UDP message bag.In data frame Numerical value corresponding to character " 1 " is 31, then sends the UDP message bag of 31 bytes.
Such as:Some data frame length is 30, then cycles through 30 UDP packet, each UDP data packet length The numerical value of its corresponding correspondence position.
3rd, the WIFI equipment being configured
The WIFI equipment being configured, each WIFI of scan round passage, intercept possible configuration data bag.
The flow intercepted:
According to the MAC Address of WIFI equipment, the data for establishing distinct device respectively send the chained list of length
MAGIC-CODE can be matched by checking whether
Obtain data frame
Check whether checksum is correct
Due in transmission process, other packets may be inserted, it is thus possible to which data frame is abnormal, it is necessary to circulate prison Listen
4th, it is configured equipment connection WIFI network
After the WIFI equipment correct SSID of acquisition being configured, encryption type and password, WIFI AP corresponding to connection Network, while confirmation broadcast data is sent, confirm that configuration is completed.
Technique effect:
By the method for foregoing invention, solve the problems, such as following
1st, the WIFI equipment being configured, on the premise of it need not add AD-HOC or AP functions, you can complete its online Configuration, reduces the use of device resource
2nd, without external other communication interfaces, WIFI radio configurations are directly passed through
3rd, it is compatible well, need that the equipment that WIFI communicates can be supported for various, as long as being integrated with UDP communication protocols View, you can realize to the configuration for the WIFI equipment being configured,
4th, solve the operating system that such as iOS is limited WIFI api interfaces, realize the allocation problem of WIFI equipment
Realization in order to demonstrate the invention, describe above-mentioned embodiment.But other changes of the present invention Change and change, will be readily apparent to one having ordinary skill, in the range of essence disclosed in this invention and basic principle Any modification/change or imitate conversion belong to the present invention claims.

Claims (4)

  1. A kind of 1. Internet-surfing configuration method of WIFI equipment, it is characterised in that
    The data frame for configuration of surfing the Net is generated, the data frame includes predetermined fixed character string MAGIC-CODE, data frame Length, SSID length, SSID, encryption type and password;
    The AES that data frame is consulted by configuring and being configured both sides, is encrypted, then by the data frame after encryption It is transmitted, in transmission process, the number of the corresponding UDP message bag sent of the length of data frame, corresponding to each UDP message bag Length is numerical value corresponding to each byte inside its data frame;
    According to the MAC Address of WIFI equipment, the data for establishing different WIFI equipments respectively send the chained list of length;
    Fixed character string MAGIC-CODE can be matched by checking whether;
    If matching fixed character string, data frame is obtained;
    Check whether verification summation checksum correct, if correctly, SSID is obtained according to the data frame, encryption type and Password.
  2. 2. Internet-surfing configuration method according to claim 1, it is characterised in that the data frame also includes check word.
  3. 3. Internet-surfing configuration method according to claim 2, it is characterised in that the fixed character string, data frame length, SSID length, SSID, encryption type, the order and the fixed character string, data frame length, SSID of password and check word Corresponding relation between length, SSID, encryption type, password or the shared byte number of check word and represented value is default Or exterior arrangement.
  4. 4. Internet-surfing configuration method according to claim 1, it is characterised in that methods described also includes:
    Using the SSID of the acquisition, encryption type connected with password corresponding to WIFIAP networks, and send confirmation broadcast data, Confirm that configuration is completed.
CN201310018532.3A 2013-01-18 2013-01-18 A kind of length by checking WIFI packets realizes the Internet-surfing configuration method of WIFI equipment Active CN103945369B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310018532.3A CN103945369B (en) 2013-01-18 2013-01-18 A kind of length by checking WIFI packets realizes the Internet-surfing configuration method of WIFI equipment
PCT/CN2013/001616 WO2014110704A1 (en) 2013-01-18 2013-12-20 Method for implementing network access configuration of wifi device by checking length of wifi data packet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310018532.3A CN103945369B (en) 2013-01-18 2013-01-18 A kind of length by checking WIFI packets realizes the Internet-surfing configuration method of WIFI equipment

Publications (2)

Publication Number Publication Date
CN103945369A CN103945369A (en) 2014-07-23
CN103945369B true CN103945369B (en) 2017-12-19

Family

ID=51192805

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310018532.3A Active CN103945369B (en) 2013-01-18 2013-01-18 A kind of length by checking WIFI packets realizes the Internet-surfing configuration method of WIFI equipment

Country Status (2)

Country Link
CN (1) CN103945369B (en)
WO (1) WO2014110704A1 (en)

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104184668A (en) * 2014-07-29 2014-12-03 小米科技有限责任公司 Networking method, networking device, router and third-party device of Internet of things
CN104219662B (en) * 2014-08-19 2019-05-07 新华三技术有限公司 A kind of sending method and equipment of Beacon frame
CN104270744B (en) * 2014-09-28 2019-03-15 杭州雄迈信息技术有限公司 The rapid configuration system and method for wireless network
CN105657857B (en) * 2014-11-12 2019-11-19 深圳市腾讯计算机系统有限公司 Wireless network connecting method and device
CN104394577B (en) * 2014-12-09 2019-07-19 上海斐讯数据通信技术有限公司 The wireless network access method of wireless routing device and electronic equipment
CN104602112A (en) * 2014-12-12 2015-05-06 小米科技有限责任公司 Configuration method and device
CN104581647A (en) * 2015-01-30 2015-04-29 青岛海尔智能家电科技有限公司 Network access method and device of intelligent equipment
CN106470458B (en) 2015-08-17 2020-02-21 上海澜至半导体有限公司 Method and device for controlling in WiFi network
CN105101340B (en) * 2015-09-09 2019-02-01 深圳市唯传科技有限公司 Message multi-hop control method and system based on mobile terminal
CN105682183B (en) * 2016-01-14 2017-06-16 美的集团股份有限公司 The method and apparatus that control home appliance networks
CN107222372B (en) * 2016-03-22 2021-03-23 阿里巴巴集团控股有限公司 Information sending method and equipment
CN106028423A (en) * 2016-05-06 2016-10-12 武汉诚迈科技有限公司 Wireless network distribution method applicable to smart furniture device
CN107371219B (en) 2016-05-13 2020-08-25 华为终端有限公司 WiFi configuration method, WiFi mobile terminal and WiFi equipment
CN106338974B (en) * 2016-08-31 2018-11-23 杭州古北电子科技有限公司 A method of so that WiFi module is adapted to plurality of devices communications protocol
CN106254147B (en) * 2016-09-08 2019-06-28 珠海全志科技股份有限公司 It is a kind of for the configuration method of Wi-Fi network, internet-of-things terminal and control terminal
CN107360021A (en) * 2017-06-16 2017-11-17 上海庆科信息技术有限公司 A kind of LAN distribution method and device
CN108430091B (en) * 2017-12-27 2021-04-20 苏宁智能终端有限公司 Efficient wifi network distribution method and device for smart home
CN110213017B (en) * 2019-04-30 2021-11-12 普联技术有限公司 Data transmission method, device and system, storage medium and terminal equipment
CN113490209A (en) * 2021-06-29 2021-10-08 锐迪科创微电子(北京)有限公司 Data transmission method, system, transmitting device, receiving device and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101341710A (en) * 2005-12-16 2009-01-07 诺基亚公司 Supporting for integrated WLAN hot customer terminal
CN101375243A (en) * 2006-03-02 2009-02-25 思科技术公司 System and method for wireless network profile provisioning
CN102497667A (en) * 2011-12-20 2012-06-13 中国电信股份有限公司 Method and system for positioning WiFi (wireless fidelity) application focused areas

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188548B (en) * 2007-02-01 2010-09-29 中兴通讯股份有限公司 Method for transferring data by using HSDPA under the non-cell private channel status
KR101481038B1 (en) * 2008-01-16 2015-01-15 삼성전자주식회사 Apparatus and method for transmitting/receiving and efficient frame structure supporting variable cyclic prefix size in wireless communication system
CN101605329A (en) * 2009-06-30 2009-12-16 中兴通讯股份有限公司 Cut-in method and access device
CN102883315A (en) * 2012-08-28 2013-01-16 中兴通讯股份有限公司 Wireless fidelity (WiFi) authentication method and system, and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101341710A (en) * 2005-12-16 2009-01-07 诺基亚公司 Supporting for integrated WLAN hot customer terminal
CN101375243A (en) * 2006-03-02 2009-02-25 思科技术公司 System and method for wireless network profile provisioning
CN102497667A (en) * 2011-12-20 2012-06-13 中国电信股份有限公司 Method and system for positioning WiFi (wireless fidelity) application focused areas

Also Published As

Publication number Publication date
CN103945369A (en) 2014-07-23
WO2014110704A1 (en) 2014-07-24

Similar Documents

Publication Publication Date Title
CN103945369B (en) A kind of length by checking WIFI packets realizes the Internet-surfing configuration method of WIFI equipment
WO2017041675A1 (en) Method for sending and acquiring wifi networking information and corresponding apparatus
US10129031B2 (en) End-to-end service layer authentication
CN106254147B (en) It is a kind of for the configuration method of Wi-Fi network, internet-of-things terminal and control terminal
CN110891269B (en) Data protection method, equipment and system
WO2016196958A1 (en) Unified authentication for integrated small cell and wi-fi networks
CN107231627A (en) A kind of blueteeth network and with network method
CN108270554B (en) Terminal pairing method and system
CN106455001A (en) Method and device for configuring WIFI module
CN207766561U (en) A kind of system of control terminal and equipment access network
WO2016101494A1 (en) Wireless intelligent access method
CN107371219A (en) WiFi collocation methods, WiFi mobile terminals and WiFi equipment
CN105101102B (en) Multicast transmission method, information extracting method and corresponding terminal and equipment
CN103841523B (en) A kind of information transferring method for carrying out Wi Fi message lengths based on multicast physical address
CN105119900A (en) Information secure transmission method, network access method and corresponding terminals
CN104754565A (en) Wireless parameter sending and receiving method and device
KR100968472B1 (en) Method and apparatus for configuring signaling radio bearer in a wireless communications system
CN105120454A (en) Information transmission method, network access method and corresponding terminals
CN207652705U (en) A kind of system of control terminal and the equipment access network based on wifi Beacon frames
CN107454591A (en) Ensure the method, apparatus and system of WIFI LAN communication safeties
CN105704710A (en) Wi-Fi (Wireless Fidelity) parameter configuration method
Varadarajan et al. Implementing IPsec in wireless sensor networks
CN107529205A (en) A kind of Internet-surfing configuration method of the network equipment based on wifi hotspot
JP2021040308A (en) Methods and apparatus for end-to-end secure communications
CN105592030A (en) IP message processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: Binjiang District Hong Lu Jiang River Street Hangzhou city Zhejiang province 310052 No. 611 Building No. 1 room 106

Applicant after: Hangzhou Gubei Electronic Technology Co., Ltd.

Address before: Hengxin Building No. 588 Hangzhou 310052 Zhejiang Province, Binjiang District City Jiangnan Road, room 1201

Applicant before: Hangzhou Gubei Electronic Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant
CP03 "change of name, title or address"
CP03 "change of name, title or address"

Address after: 310052 Room 101, 1st Floor, Block C, No. 57, Changhe Street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Hangzhou Bolian Intelligent Technology Co., Ltd.

Address before: Room 106, Building No. 1, 611 Jianghong Road, Changhe Street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee before: Hangzhou Gubei Electronic Technology Co., Ltd.