CN103442377A - Method for WPS session negotiation between WIFI module and plurality of APs at same time - Google Patents

Method for WPS session negotiation between WIFI module and plurality of APs at same time Download PDF

Info

Publication number
CN103442377A
CN103442377A CN201310355150XA CN201310355150A CN103442377A CN 103442377 A CN103442377 A CN 103442377A CN 201310355150X A CN201310355150X A CN 201310355150XA CN 201310355150 A CN201310355150 A CN 201310355150A CN 103442377 A CN103442377 A CN 103442377A
Authority
CN
China
Prior art keywords
signal
wps
wifi module
time
module
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
Application number
CN201310355150XA
Other languages
Chinese (zh)
Other versions
CN103442377B (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.)
Rockchip Electronics Co Ltd
Original Assignee
Fuzhou Rockchip Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuzhou Rockchip Electronics Co Ltd filed Critical Fuzhou Rockchip Electronics Co Ltd
Priority to CN201310355150.XA priority Critical patent/CN103442377B/en
Publication of CN103442377A publication Critical patent/CN103442377A/en
Application granted granted Critical
Publication of CN103442377B publication Critical patent/CN103442377B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a method for WPS session negotiation between a WIFI module and a plurality of APs at the same time. The method comprises the following steps that AP signals existed around for the conduction of the WPS connection are obtained and the obtained AP signals are recorded; one AP signal is selected from the AP signals; WPS connection is conducted on the selected AP signal, and the connecting result is detected; if the connecting result is detected to be successful, the session negotiation process is ended or AP signal rejection frames are sent to all the unselected AP signals and the conversion negotiation process is ended, otherwise whether unselected AP signals exist is detected; if unselected AP signals exist, one AP signal is selected from the unselected AP signals, and the signal processing step is conducted; if no unselected AP signals exist, the session negotiation process is ended. The method for the WPS session negotiation between the WIFI module and the APs at the same time achieves WPS session negotiation between the WIFI module and the APs at the same time, and when one AP cannot be connected, the next AP is automatically connected, and the problem that an existing AP connecting process is troublesome is solved.

Description

A kind of WIFI module and a plurality of AP carry out the method for WPS session negotiation simultaneously
Technical field
The present invention relates to a kind of WIFI module and a plurality of AP and carry out the method for WPS session negotiation simultaneously.
Background technology
Nearly all smart machine is with the WIFI function, and the user can realize online by WIFI, obtains required Internet resources, and its application is ubiquitous.A kind of WPS technology connected for safety is arranged in the WIFI function, and WPS is the abbreviation of WIFI Protected Setup, is up-to-date a kind of mode that simple connection is provided be applied in wireless network at present, receives and is divided into PBC, PIN, and tri-kinds of NFC.WPS can effectively simplify the connection procedure between WIFI module and AP, and protection mechanism safely and efficiently is provided, and wherein AP is the abbreviation of Access Point, i.e. wireless access points.
Yet all there is a problem in existing WPS mechanism: when WIFI module and an AP carry out WPS when being connected, when the WIFI module receives beacon frame (the Beacon Frame of the WPS of other AP, that AP starts the data that externally send after the WPS connection, declare that this AP has started the WPS connection, the WIFI module can obtain by beacon frame the information of AP) time, according to the WPS agreement of standard the WIFI module at once the transmitted signal reject frame (be WSC_NACK, mean that WIFI equipment refusal carries out WPS with AP and is connected), cause the WIFI module not carry out WPS with other AP is connected simultaneously.This has just brought the place of an inconvenience: if after the WPS connection failure that WIFI module and this AP carry out, the WPS that the user must manually restart the WIFI module connects, and could be connected with second AP, has increased user's operating procedure.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of WIFI module and a plurality of AP to carry out the method for WPS session negotiation simultaneously, solves the existing loaded down with trivial details problem of WPS Connection Step.
The present invention is achieved in that
A kind of WIFI module and a plurality of AP carry out the method for WPS session negotiation simultaneously, it is characterized in that: comprise the steps:
Step 10, use WIFI module are obtained the AP signal that pending WPS connects on every side, the AP signal that record gets;
Step 20, select an AP signal from the AP signal recorded;
Step 30, use WIFI module are carried out the WPS connection to the AP signal of having selected, and detect connection result;
If step 40 connection result is successfully, end session negotiations process or all unselected AP signals are sent to AP signal reject frames end session negotiations process; Otherwise connection result is unsuccessfully, detects and whether also have non-selected AP signal;
If step 50 also has non-selected AP signal, from non-selected AP signal, select an AP signal, return to step 30; If there is no unselected AP signal, end session negotiations process.
Further, in described step 30, the concrete steps of using the WIFI module to carry out the WPS connection to the AP signal of having selected are:
Use the WIFI module to send the authentication start frame to the AP signal selected, set the first time-out time, wait for receiver module identification request frame, if the first time-out time to and do not receive module id claim frame, connection failure;
Otherwise receive the module id claim frame in the first time-out time, use WIFI module sending module sign acknowledgement frame, set the second time-out time, wait for and receive the initiation requests frame, if the second time-out time to and do not receive initiation requests frame, connection failure;
Otherwise receive the initiation requests frame in the second time-out time, use WIFI module sending module authentication information frame, set the 3rd time-out time, wait routing iinformation frame waiting, if the 3rd time-out time to and do not receive routing iinformation frame, connection failure;
Otherwise receive the initiation requests frame in the 3rd time-out time, successful connection.
Further, in step 50, if the AP signal of the Unrecorded pending WPS connection got is arranged, record this AP signal in step 20.
Further, described AP is Soft AP.
And the system that the present invention also provides a kind of while and a plurality of AP carry out the WPS session negotiation, include the WIFI module, it is characterized in that: comprise as lower module:
Signal acquisition module: for using the WIFI module, obtain the AP signal that pending WPS connects on every side, the AP signal that record gets;
Signal selection module: for the AP signal from having recorded, select an AP signal;
Signal link block: for using the WIFI module, the AP signal of having selected is carried out to the WPS connection, detect connection result;
Signal detection module: if be successfully for connection result, end session negotiations process or all unselected AP signals are sent to AP signal reject frames end session negotiations process; Otherwise connection result is unsuccessfully, detects and whether also have non-selected AP signal;
And signal is selected module again: if for also having non-selected AP signal, from non-selected AP signal, select an AP signal, and be delivered to the signal link block; If there is no unselected AP signal, end session negotiations process.
The present invention has following advantage: the user only needs to start a WPS and connects, and just can carry out the WPS session negotiation with the AP of a plurality of startup WPS, and complete the network connection when having available network to connect, and has simplified connection procedure, has played good effect.
The accompanying drawing explanation
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is method flowchart of the present invention.
Fig. 2 is system configuration schematic diagram of the present invention.
Embodiment
Please, in conjunction with Fig. 1 and Fig. 2, below will be elaborated to embodiments of the invention.
A kind of WIFI module and a plurality of AP carry out the method for WPS session negotiation simultaneously, and the flow process of this session negotiation starts from step S101, in step S101, use the WIFI module to obtain the AP signal that pending WPS connects on every side, the AP signal that record gets.The AP signal is meeting broadcast beacon frame (beacon frame) when work, and the WIFI module judges by getting beacon frame whether the AP signal is in pending WPS connection status, and the AP signal that has got pending WPS connection can directly be recorded on memory.
Then enter in step S102, select an AP signal in the AP signal recorded from step S101.Can select at random an AP signal or select in order an AP signal according to the connect hours that gets the AP signal.In step S103, first use the WIFI module to carry out the WPS connection to the AP signal of having selected in step S102, then detect connection result, whether successfully at step S104, detect connection result.
That the AP signal of having selected is carried out when WPS connects generally adopting is EAPOL or EAP authentication mechanism (Extensible Authentication Protocol, it is EAP, be an authentication mechanism generally used, often be used in the connection of wireless network or point-to-point).The key step that WPS connects is as follows: use the WIFI module to send authentication start frame (EAP-Start) to the AP signal selected, set the first time-out time, wait for receiver module identification request frame (EAP-Request/identity), if the first time-out time to and do not receive module id claim frame, connection failure.
Otherwise receive the module id claim frame in the first time-out time, use WIFI module sending module sign acknowledgement frame (EAP-Response/identity), set the second time-out time, wait for and receive initiation requests frame (EAP-Request (Start)), if the second time-out time to and do not receive initiation requests frame, connection failure.
Otherwise receive the initiation requests frame in the second time-out time, use WIFI module sending module authentication information frame (EAP-Response(M1)), set the 3rd time-out time, etc. routing iinformation frame waiting (EAP-Request (M2D)), if the 3rd time-out time to and do not receive routing iinformation frame, connection failure; Otherwise receive the initiation requests frame in the 3rd time-out time, successful connection.After time-out time of above-mentioned setting, do not receive reply if overtime, possibility AP work is undesired, connection failure.The connection that just can use the routing iinformation that gets to be surfed the Net after successful connection.
If connection result is successfully, entering step S107 sends AP signal reject frame and enters the negotiations process of step S108 end session all unselected AP signals, also can directly finish WPS session negotiation process, unselected AP signal not processed.Otherwise connection result is unsuccessfully, enters step S105 and detect whether also have non-selected AP signal.
If also have non-selected AP signal, also have untreated AP signal, enter step S106 and select an AP signal from non-selected AP signal, return to step S103, circular treatment, select an AP signal of not processing to be connected again after connection failure.If there is no unselected AP signal, all AP signals all are disposed, and enter the negotiations process of step S108 end session.
If the while in step S107, if the AP signal of the Unrecorded pending WPS connection got is arranged, is recorded this AP signal at step S103.The AP signal that Unrecorded pending WPS is connected is recorded when the session negotiation failure can connect trial to these AP signals.
The AP that carries out the WPS session negotiation can or be Soft AP for common router-A P, and Soft AP is software simulation AP, at notebook or intelligent movable equipment, can use software simulation AP.
The present invention simultaneously also provides a kind of system that realizes the inventive method, it is the system that a kind of while and a plurality of AP carry out the WPS session negotiation, as shown in Figure 2, native system comprises signal acquisition module 1, signal selection module 2, signal link block 3, signal detection module 4 and signal are selected module 5 again, wherein:
Signal acquisition module 1: for using the WIFI module, obtain the AP signal that pending WPS connects on every side, the AP signal that record gets;
Signal selection module 2: for the AP signal from having recorded, select an AP signal;
Signal link block 3: for using the WIFI module, the AP signal of having selected is carried out to the WPS connection, detect connection result;
Signal detection module 4: if be successfully for connection result, end session negotiations process or all unselected AP signals are sent to AP signal reject frames end session negotiations process; Otherwise connection result is unsuccessfully, detects and whether also have non-selected AP signal;
And signal is selected module 5 again: if for also having non-selected AP signal, from non-selected AP signal, select an AP signal, and be delivered to the signal link block; If there is no unselected AP signal, end session negotiations process.
By the present invention, a plurality of WPS sessions can be searched for simultaneously and store to the WIFI module, and order is carried out, until one of them WPS session success or all failures.The present invention only starts a WPS and connects, and just can carry out the WPS session negotiation with the AP of a plurality of startup WPS, has played good effect.
Although more than described the specific embodiment of the present invention; but being familiar with those skilled in the art is to be understood that; our described specific embodiment is illustrative; rather than for the restriction to scope of the present invention; those of ordinary skill in the art are in modification and the variation of the equivalence of doing according to spirit of the present invention, all should be encompassed in the scope that claim of the present invention protects.

Claims (5)

1. a WIFI module and a plurality of AP carry out the method for WPS session negotiation simultaneously, it is characterized in that: comprise the steps:
Step 10, use WIFI module are obtained the AP signal that pending WPS connects on every side, the AP signal that record gets;
Step 20, select an AP signal from the AP signal recorded;
Step 30, use WIFI module are carried out the WPS connection to the AP signal of having selected, and detect connection result;
If step 40 connection result is successfully, end session negotiations process or to all unselected AP signal transmitted signal reject frames end session negotiations process; Otherwise connection result is unsuccessfully, detects and whether also have non-selected AP signal;
If step 50 also has non-selected AP signal, from non-selected AP signal, select an AP signal, return to step 30; If there is no unselected AP signal, end session negotiations process.
2. a kind of WIFI module according to claim 1 and a plurality of AP carry out the method for WPS session negotiation simultaneously, it is characterized in that: in described step 30, the concrete steps of using the WIFI module to carry out the WPS connection to the AP signal of having selected are:
Use the WIFI module to send the authentication start frame to the AP signal selected, set the first time-out time, wait for receiver module identification request frame, if the first time-out time to and do not receive module id claim frame, connection failure;
Otherwise receive the module id claim frame in the first time-out time, use WIFI module sending module sign acknowledgement frame, set the second time-out time, wait for and receive the initiation requests frame, if the second time-out time to and do not receive initiation requests frame, connection failure;
Otherwise receive the initiation requests frame in the second time-out time, use WIFI module sending module authentication information frame, set the 3rd time-out time, wait routing iinformation frame waiting, if the 3rd time-out time to and do not receive routing iinformation frame, connection failure;
Otherwise receive the initiation requests frame in the 3rd time-out time, successful connection.
3. a kind of WIFI module according to claim 1 and a plurality of AP carry out the method for WPS session negotiation simultaneously, it is characterized in that: in step 20 in step 50, if the AP signal of the Unrecorded pending WPS connection got is arranged, records this AP signal.
4. a kind of WIFI module according to claim 1 and a plurality of AP carry out the method for WPS session negotiation simultaneously, it is characterized in that: described AP is Soft AP.
5. while and the system that a plurality of AP carry out the WPS session negotiation, include the WIFI module, it is characterized in that: comprise as lower module:
Signal acquisition module: for using the WIFI module, obtain the AP signal that pending WPS connects on every side, the AP signal that record gets;
Signal selection module: for the AP signal from having recorded, select an AP signal;
Signal link block: for using the WIFI module, the AP signal of having selected is carried out to the WPS connection, detect connection result;
Signal detection module: if be successfully for connection result, end session negotiations process or all unselected AP signals are sent to AP signal reject frames end session negotiations process; Otherwise connection result is unsuccessfully, detects and whether also have non-selected AP signal;
And signal is selected module again: if for also having non-selected AP signal, from non-selected AP signal, select an AP signal, and be delivered to the signal link block; If there is no unselected AP signal, end session negotiations process.
CN201310355150.XA 2013-08-15 2013-08-15 A kind of method that WIFI module and multiple AP carry out WPS session negotiation simultaneously Active CN103442377B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310355150.XA CN103442377B (en) 2013-08-15 2013-08-15 A kind of method that WIFI module and multiple AP carry out WPS session negotiation simultaneously

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310355150.XA CN103442377B (en) 2013-08-15 2013-08-15 A kind of method that WIFI module and multiple AP carry out WPS session negotiation simultaneously

Publications (2)

Publication Number Publication Date
CN103442377A true CN103442377A (en) 2013-12-11
CN103442377B CN103442377B (en) 2016-08-24

Family

ID=49696029

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310355150.XA Active CN103442377B (en) 2013-08-15 2013-08-15 A kind of method that WIFI module and multiple AP carry out WPS session negotiation simultaneously

Country Status (1)

Country Link
CN (1) CN103442377B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104853448A (en) * 2015-05-08 2015-08-19 乐视致新电子科技(天津)有限公司 Method for automatically establishing wireless connection and device thereof
WO2017107730A1 (en) * 2015-12-25 2017-06-29 珠海赛纳打印科技股份有限公司 Method, station device and system for automatically establishing wireless communication connection
CN109525992A (en) * 2017-09-19 2019-03-26 中兴通讯股份有限公司 Connection is established, machinery of consultation and device are established in connection

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1257092A1 (en) * 2001-05-08 2002-11-13 Agere Systems Guardian Corporation Dynamic frequency selection in a wireless LAN with channel swapping between access points
CN1929423A (en) * 2005-09-07 2007-03-14 三星电子株式会社 Method and apparatus for connecting to stable access point using connection history
CN102160416A (en) * 2008-02-29 2011-08-17 华为技术有限公司 System and method for providing connection handoffs in wireless networks
CN102378303A (en) * 2010-08-26 2012-03-14 中国移动通信有限公司 Method and device for selecting WIFI (Wireless Fidelity) access point to access to network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1257092A1 (en) * 2001-05-08 2002-11-13 Agere Systems Guardian Corporation Dynamic frequency selection in a wireless LAN with channel swapping between access points
CN1929423A (en) * 2005-09-07 2007-03-14 三星电子株式会社 Method and apparatus for connecting to stable access point using connection history
CN102160416A (en) * 2008-02-29 2011-08-17 华为技术有限公司 System and method for providing connection handoffs in wireless networks
CN102378303A (en) * 2010-08-26 2012-03-14 中国移动通信有限公司 Method and device for selecting WIFI (Wireless Fidelity) access point to access to network

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104853448A (en) * 2015-05-08 2015-08-19 乐视致新电子科技(天津)有限公司 Method for automatically establishing wireless connection and device thereof
WO2017107730A1 (en) * 2015-12-25 2017-06-29 珠海赛纳打印科技股份有限公司 Method, station device and system for automatically establishing wireless communication connection
CN109525992A (en) * 2017-09-19 2019-03-26 中兴通讯股份有限公司 Connection is established, machinery of consultation and device are established in connection

Also Published As

Publication number Publication date
CN103442377B (en) 2016-08-24

Similar Documents

Publication Publication Date Title
US10536856B2 (en) Communication control apparatus, system, and method therefor
EP2753108B1 (en) Wireless local area network authentication method and mobile terminal
US8582471B2 (en) Wireless ad-hoc network configuration method and apparatus
CN103379477B (en) The method of network configuration, device, wireless device and terminal are carried out to wireless device
CN104936266A (en) Network access method and network access device
CN105282868B (en) System and method for WiFi network to be temporarily added
EP2129189A2 (en) Wireless communication system, wireless communication apparatus, method for disconnection process thereof, and storage medium
CN105430603A (en) Secure connection method and system for Bluetooth equipment
CN105119776B (en) A kind of WiFi connection failures reason detection method and system
WO2013155768A1 (en) Single-card multi-mode multi-operator authentication method and device
CN111050415B (en) Wireless data transmission method convenient to operate
CN107979864B (en) Access method, device and system of access point
CN108605277A (en) Establish the method and device of WLAN connection
CN103108326A (en) Session relationship establishing method and device and system
CN105979509A (en) Intelligent equipment detection method, intelligent equipment detection device, WIFI module and automatic connection method thereof
CN112291862A (en) Method for establishing connection between terminal devices and terminal devices
US10932314B2 (en) Communication apparatus, control method, and storage medium
US10708775B2 (en) Method for establishing network connection by using WPS, and mobile Wi-Fi device
CN103442377A (en) Method for WPS session negotiation between WIFI module and plurality of APs at same time
US10117099B2 (en) Communication apparatus, method for controlling the same, and program
CN107592607B (en) Bluetooth composite device and communication method thereof
EP2597900B1 (en) Mobile terminal and method for accessing a network
CN101155106B (en) Method and device for building WLAN security system
CN108738010A (en) The network search method of terminal, the terminal with web search function
US20160323744A1 (en) Authentication and association method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 350000 Fuzhou Gulou District, Fujian, software Avenue, building 89, No. 18

Applicant after: FUZHOU ROCKCHIP ELECTRONICS CO., LTD.

Address before: 350000 Fuzhou Gulou District, Fujian, software Avenue, building 89, No. 18

Applicant before: Fuzhou Rockchip Semiconductor Co., Ltd.

COR Change of bibliographic data
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 350000 building, No. 89, software Avenue, Gulou District, Fujian, Fuzhou 18, China

Patentee after: Ruixin Microelectronics Co., Ltd

Address before: 350000 building, No. 89, software Avenue, Gulou District, Fujian, Fuzhou 18, China

Patentee before: Fuzhou Rockchips Electronics Co.,Ltd.