CN104796965B - A kind of method that AP connection priorities are controlled under WiFi environment - Google Patents

A kind of method that AP connection priorities are controlled under WiFi environment Download PDF

Info

Publication number
CN104796965B
CN104796965B CN201510122884.2A CN201510122884A CN104796965B CN 104796965 B CN104796965 B CN 104796965B CN 201510122884 A CN201510122884 A CN 201510122884A CN 104796965 B CN104796965 B CN 104796965B
Authority
CN
China
Prior art keywords
priority
connection
user terminal
wifi
signal strength
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
CN201510122884.2A
Other languages
Chinese (zh)
Other versions
CN104796965A (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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201510122884.2A priority Critical patent/CN104796965B/en
Publication of CN104796965A publication Critical patent/CN104796965A/en
Application granted granted Critical
Publication of CN104796965B publication Critical patent/CN104796965B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • 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]

Abstract

The present invention relates to wireless communication fields, and it discloses a kind of methods that AP connection priorities are controlled under WiFi environment, provide the WiFi connections selection more optimized to the user.The interference problem severity that the present invention is encountered according to WiFi actual environments, define 12 recommended priority grades, for current WiFi system to be instructed to select suitable AP triggerings connection, wherein priority 12 to 7 for can normal connection communication AP, specific priority level is according to Round Card, priority 6 and 5 is can normally connect, but communication quality AP of problems, the size discrimination that specific priority level is influenced according to communication quality, there is abnormal AP for connection procedure in priority 4 to 1, specific priority level is distinguished according to abnormal cause.The present invention is suitable for quickly selecting optimal AP connections under user equipment WiFi environment.

Description

A kind of method that AP connection priorities are controlled under WiFi environment
Technical field
The present invention relates to wireless communication fields, and in particular to a kind of method that AP connection priorities are controlled under WiFi environment.
Background technology
It is well known that WiFi is as the highest wireless telecommunications means of current utilization rate, it is closely bound up with people’s lives. However, the working frequency range of WiFi has stringent limitation, be divided into two major class of 2.4G and 5G, 2.4G totally 13 channels, it is mutually independent only There are 1,6,11 channels, and 5G channels are because be related to the specific uses such as military affairs, channel also has it strictly to limit, thus more and more Router be operated in limited channel bandwidth, practical ability to communicate inevitably because of various environmental disturbances factors, There is different degrees of reduction.
The general fashion of control AP connection priorities is in the conventional technology:WiFi is scanned to AP lists, strong according to signal Degree sequence, the linkage record being then configured according to user, the highest AP triggerings connecting moves of automatic selecting signal intensity.
Aforesaid way is suitble under general state, however for the particular job state of some AP, such as:The current AP Working channel whether congestion, the device node of current AP subordinates connection whether the particular problems such as saturation simultaneously can not detecting real-time and Corresponding connection selection is provided.It can be seen that in traditional technology control AP connection priorities mode also there is defects.
Invention content
The technical problems to be solved by the invention are:A kind of method for proposing to control AP connection priorities under WiFi environment, Provide the WiFi connections selection more optimized to the user.
The technical solution adopted by the present invention to solve the technical problems is:AP connection priorities are controlled under a kind of WiFi environment Method, including:
User terminal scans AP lists, and according to the last WiFi connection states, AP connection priorities are ranked up, And corresponding priority serial number is distributed for each AP in AP lists, user can manually select the specific AP of connection or user terminal The highest AP of the automatic connection priority of system;
Wherein, the mode being ranked up to AP connection priorities is:
If some AP be the successful connection of user terminal the last time 5G frequency ranges AP, rssi signal strength more than -60db, The AP priority is then set as 12;The highest priority of the AP;
If some AP be the successful connection of user terminal the last time 5G frequency ranges AP, rssi signal strength in -60db hereinafter, The AP priority is then set as 11;
If some AP is the 2.4G frequency range AP of user terminal the last time successful connection, channel bandwidth 20M, rssi signal The AP priority is then set as 10 by intensity more than -60db;
If some AP is the 2.4G frequency range AP of user terminal the last time successful connection, channel bandwidth 40M, rssi signal The AP priority is then set as 9 by intensity more than -60db;
If some AP is the 2.4G frequency range AP of user terminal the last time successful connection, channel bandwidth 20M, rssi signal Intensity is in -60db hereinafter, the AP priority then is set as 8;
If some AP is the 2.4G frequency range AP of user terminal the last time successful connection, channel bandwidth 40M, rssi signal Intensity is in -60db hereinafter, the AP priority then is set as 7;
If some AP is the AP that user terminal connects into merits and demerits, but channel where the AP can not be according to BAsession modes Communication, then be set as 6 by the AP priority;
If some AP is the AP that user terminal connects into merits and demerits, but channel CTS/RTS token resources where the AP are in short supply, then The AP priority is set as 5;
If some AP is the AP that user terminal connects into merits and demerits, but manual Disable, then the AP priority is set as 4;
It, will if some AP is connected thereto the AP that there is Authorized/DHCP TimeOut mistakes for user terminal The AP priority is set as 3;
If some AP is connected thereto the AP that there is DHCP Failed mistakes for user terminal, which is set It is set to 2;
If some AP is connected thereto the AP that there is Authorized Failed mistakes for user terminal, and the AP is excellent First grade is set as 1;
If some AP has opened SSID broadcast, and the connectionless record of user terminal, then the AP priority is set as 0.
Further, some AP is successfully connected to before disconnecting in this user terminal, for the AP in the AP lists Connection priority do not make an amendment;After user terminal disconnects the connection with the AP, triggering AP connection priority rearrangements.
The beneficial effects of the invention are as follows:When carrying out the setting of AP connection priorities, the signal strength of the AP is not only considered, also Consider the practical negative factor to communicate between the AP and user terminal, so as to provide more optimization to the user, more reasonably WiFi connects Selecting is selected, and promotes user experience.
Specific embodiment
The present invention is directed to propose controlling the method for AP connection priorities under a kind of WiFi environment, provide what is more optimized to the user WiFi connections select.The interference problem severity that the present invention is encountered according to WiFi actual environments defines 12 recommended priorities Grade, for current WiFi system to be instructed to select suitable AP triggerings connection, wherein priority 12 to 7 is logical can normally to connect The AP of letter, specific priority level is according to Round Card, and priority 6 and 5 is can normally connect, but communication quality is deposited In the size discrimination that the AP of problem, specific priority level are influenced according to communication quality, priority 4 to 1 exists for connection procedure Abnormal AP, specific priority level are distinguished according to abnormal cause.
For the WiFi system of an equipment, five levels can be divided into from top to bottom, be followed successively by:User's control Layer, system logic layer, driving adaptation layer, driving layer, physical layer.The present invention will be apparent from for being encountered in WiFi actual environments Practical negative factor, from system logic layer and driving two levels of adaptation layer, provide it is a kind of relatively it is suitable connection selection patrol Volume.
System logic layer:
The interference problem severity encountered according to WiFi actual environments defines 12 recommended priority grades, for referring to It leads current WiFi system and selects suitable AP triggerings connection, wherein:
12:Problem influence degree is most light, most recommends
1:Problem influence degree is most heavy, least recommends
0:Default conditions
It is defined as follows shown in table:
Table one:Priority level corresponds to table
The arrangement of priority 12 to 7 foundation is in upper table:
(1) under 5G environment, each channel is mutual indepedent, and each channels of 2.4G are there are bandwidth overlay, and practical feelings in the several years at present Condition 5G communication environments are substantially better than 2.4G, by supports such as the 802.11n MIMO technologies newly defined, therefore 5G priority 2.4G it On;
(2) the 20/40M channel bandwidths of 2.4G, theoretically, under the premise of communication environment is clean, the throughput meeting of 40M bandwidth Better than 20M, however actual conditions are disturbed factor much larger than 20M since 40M bandwidth occupies multiple frequency ranges simultaneously, practical to communicate Ability is instead not as good as 20M, therefore the priority of 20M channel bandwidths is on 40M;
(3) rssi (received signal strength) characterizes the absolute signal strengths of AP, therefore rssi is higher, and connection priority is got over It is high.
Priority 6:Channel where AP can not be according to BAsession (BlockAssociationSession, in communication link It is a Block by multiple TCP/IP encapsulations when border is good, in addition BlockHead/Tail, disposable to transmit, is passed with improving Defeated efficiency) mode communicates, a TCP packet can only be sent according to original ICP/IP protocol, one ACK of reception is retransmited next It is a, illustrate that the AP is only operable on 802.11bg patterns, be limited to throughput bottleneck, influence practical communication to a certain extent.
Priority 5:Channel CTS/RTS where AP (request transmission/clear to send) token resource is in short supply, illustrates that the channel leads to Letter data high congestion can not obtain time tag and perform current transmission, seriously affect practical communication.
Priority 4:The AP connections that user cancelled manually are thought of as user and have more preferably to select, but the AP sheets in general manner Body might not have the failure problems that can not be used.
Priority 3:Client computer in the key exchange process with AP or DHCP (dynamic host configuration protocol) with obtaining IP In the flow of location, due to communication environment problem or the real data pickup and delivery problem of AP, there are data packet loss, cause with Upper two link time-out, the AP communication capacities under the priority are poor.
Priority 2:Once DHCP Failed (failure) mistake occurs client computer for the near and AP, illustrates carry under the AP Device node has been expired, and IP ponds are exhausted or dhcp server functionality of the AP is abnormal, which is directly reduced to 3. Priority 1:Once Authorized (mandate) Failed mistakes occur client computer for the near and AP, and failed authentication can there is no connection It can property.
Priority 0:The connectionless record of client computer, default conditions.
In system logic level, based on 12 kinds of AP states defined above, the AP lists scanned are resequenced, user The high AP preferential attachments of the automatic connection priority of manual or equipment can be passed through.
From job stability angle, from this successful connection to before disconnecting, AP connection priorities are not made an amendment, Before being connected after disconnecting to next time, the sequence logic of AP connection priorities is triggered.
Abnormality processing:When different degrees of communication abnormality occurs in the high AP of connection priority, the priority of the AP is pressed Definition influence factor in above-mentioned table one reduces, and the AP priority rankings come originally thereafter accordingly shift to an earlier date.
Drive adaptation layer:
By taking Linux platform wpa_supplicant as an example, Functional Design is carried out.Wpa_supplicant is realized The function that Station is managed wireless network and controls defines a series of ctrl i/f event to system platform, The two-way communication of upper layer commands and bottom state is realized by Local Socket, keeps the independence with system platform;To drive The dynamic driver i/f event for defining series of standards while directly docking driving event, and are maintained and each WiFi The independence of manufacturer's driving, therefore it is individually defined as to driving adaptation layer, meaning is under platform, on driving, is individually present. Methods herein will start with from the ctrl i/f event of extension wpa_supplicant.
1st, Command is extended:
SetWifiPriority (int netid, int priority) is extended, parameter netid is that the AP needed to configure exists The sequence number being assigned in actual scanning list, priority are set the AP one after system logic judges Desired value, the Command are called for control logic;
2nd, control logic:
(1), to AP lists, it is 0 to give tacit consent to the AP distribution priority of connectionless record for system scanning;
(2), the specific AP of connection is manually selected according to user, system connects two kinds of approach of WiFiPriority highests AP automatically Triggering connection;
(3) if, be successfully connected, according to the practical capacity interaction data of AP, priority is set as corresponding 12 to 7, Then Round Card is carried out, if there is no problem, then keeps priority constant, if you have questions, is set as 6 to 5;
(4) if, connection procedure exist abnormal, according to abnormal cause, priority is set as corresponding 4 to 1.
3rd, state recording:
Connection Wifi information can be stored in/data/misc/wifi/wpa_ by Linux platform Which supplicant.conf files for guidance system when being switched on or when WiFi is by enable next time, can connect One AP extends a WiFiPriority field attribute and (pays attention to and wpa_supplicant Optional Fields priority herein It distinguishes, the two effect is different, and priority defines up to 8 for indicating whether to support P2P GROUP, can not meet text Middle priority requirements), it is defined by state in the 12 of system management layer, is directly mapped in this.

Claims (2)

1. the method for AP connection priorities is controlled under a kind of WiFi environment, which is characterized in that including:
User terminal scans AP lists, according to the last WiFi connection states, AP connection priorities is ranked up, and be Each AP in AP lists distributes corresponding priority serial number, and user can manually select the specific AP of connection or client terminal system The highest AP of automatic connection priority;
Wherein, the mode being ranked up to AP connection priorities is:
If some AP be the successful connection of user terminal the last time 5G frequency ranges AP, rssi signal strength more than -60db, then will The AP priority is set as 12;The highest priority of the AP;
If some AP be the successful connection of user terminal the last time 5G frequency ranges AP, rssi signal strength in -60db hereinafter, will The AP priority is set as 11;
If some AP is the 2.4G frequency range AP of user terminal the last time successful connection, channel bandwidth 20M, rssi signal strength More than -60db, then the AP priority is set as 10;
If some AP is the 2.4G frequency range AP of user terminal the last time successful connection, channel bandwidth 40M, rssi signal strength More than -60db, then the AP priority is set as 9;
If some AP is the 2.4G frequency range AP of user terminal the last time successful connection, channel bandwidth 20M, rssi signal strength In -60db hereinafter, the AP priority then is set as 8;
If some AP is the 2.4G frequency range AP of user terminal the last time successful connection, channel bandwidth 40M, rssi signal strength In -60db hereinafter, the AP priority then is set as 7;
The AP of merits and demerits is connected into if some AP is user terminal, but channel where the AP can not be according to BlockAssociationSession modes communicate, then the AP priority are set as 6;
If some AP is the AP that user terminal connects into merits and demerits, but channel CTS/RTS token resources where the AP are in short supply, then should AP priority is set as 5;
If some AP is the AP that user terminal connects into merits and demerits, but manual Disable, then the AP priority is set as 4;
If some AP is connected thereto the AP that there is Authorized/DHCP TimeOut mistakes for user terminal, by the AP Priority is set as 3;
If some AP is connected thereto the AP that there is DHCP Failed mistakes for user terminal, which is set as 2;
If some AP is connected thereto the AP that there is Authorized Failed mistakes for user terminal, by the AP priority It is set as 1;
If some AP has opened SSID broadcast, and the connectionless record of user terminal, then the AP priority is set as 0.
2. the method for AP connection priorities is controlled under a kind of WiFi environment as described in claim 1, which is characterized in that at this User terminal is successfully connected to some AP to before disconnecting, and does not make an amendment for the connection priority of the AP in the AP lists; After user terminal disconnects the connection with the AP, triggering AP connection priority rearrangements.
CN201510122884.2A 2015-03-19 2015-03-19 A kind of method that AP connection priorities are controlled under WiFi environment Active CN104796965B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510122884.2A CN104796965B (en) 2015-03-19 2015-03-19 A kind of method that AP connection priorities are controlled under WiFi environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510122884.2A CN104796965B (en) 2015-03-19 2015-03-19 A kind of method that AP connection priorities are controlled under WiFi environment

Publications (2)

Publication Number Publication Date
CN104796965A CN104796965A (en) 2015-07-22
CN104796965B true CN104796965B (en) 2018-07-10

Family

ID=53561374

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510122884.2A Active CN104796965B (en) 2015-03-19 2015-03-19 A kind of method that AP connection priorities are controlled under WiFi environment

Country Status (1)

Country Link
CN (1) CN104796965B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105873176A (en) * 2015-11-23 2016-08-17 乐视致新电子科技(天津)有限公司 WLAN (Wireless Local Area Networks) connection method, WLAN access point information sending method, WLAN workstation and WLAN access point
CN105407542A (en) * 2015-12-25 2016-03-16 珠海奔图电子有限公司 Wireless communication connection automatic establishment method, station apparatus and system
CN107306429B (en) * 2016-04-21 2021-07-13 中兴通讯股份有限公司 Method and device for connecting network access points
CN106131929A (en) * 2016-08-03 2016-11-16 北京小米移动软件有限公司 WiFi access-in point information method for cleaning and device
CN107949033B (en) * 2018-01-02 2020-06-23 联想(北京)有限公司 Wireless access method and device
CN108471622B (en) * 2018-06-12 2021-08-17 Oppo广东移动通信有限公司 WiFi connection adjustment method and device, mobile terminal and storage medium
CN110113804A (en) * 2019-05-05 2019-08-09 Oppo广东移动通信有限公司 Wireless network access point selection method, device, terminal and computer storage medium
CN111148102B (en) * 2019-12-31 2024-01-30 京信网络系统股份有限公司 Network authentication method, device, computer equipment and storage medium
CN111866994B (en) * 2020-07-26 2021-02-05 广云物联网科技(广州)有限公司 Method and device for rapidly distributing network at hot spot
CN112165728A (en) * 2020-10-22 2021-01-01 Oppo广东移动通信有限公司 Network connection method, terminal and computer storage medium
CN115884237A (en) * 2021-09-27 2023-03-31 华为技术有限公司 Association method, AP and STA in WLAN
CN116981018B (en) * 2023-09-25 2024-02-13 杭州斯诺康技术有限公司 Method for automatically connecting intelligent equipment with router

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118419A (en) * 2013-01-24 2013-05-22 中兴通讯股份有限公司 Terminal wireless access point reclosure method and device using the same
CN103313350A (en) * 2013-06-24 2013-09-18 京信通信技术(广州)有限公司 Dual-frequency network access method and device, and access point equipment
WO2014088858A1 (en) * 2012-12-03 2014-06-12 Spreadtrum Communications Usa, Inc. Method and apparatus for signal scanning for multimode receiver
CN104105165A (en) * 2013-04-08 2014-10-15 中兴通讯股份有限公司 Method and terminal for processing accessing of WLAN

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014088858A1 (en) * 2012-12-03 2014-06-12 Spreadtrum Communications Usa, Inc. Method and apparatus for signal scanning for multimode receiver
CN103118419A (en) * 2013-01-24 2013-05-22 中兴通讯股份有限公司 Terminal wireless access point reclosure method and device using the same
CN104105165A (en) * 2013-04-08 2014-10-15 中兴通讯股份有限公司 Method and terminal for processing accessing of WLAN
CN103313350A (en) * 2013-06-24 2013-09-18 京信通信技术(广州)有限公司 Dual-frequency network access method and device, and access point equipment

Also Published As

Publication number Publication date
CN104796965A (en) 2015-07-22

Similar Documents

Publication Publication Date Title
CN104796965B (en) A kind of method that AP connection priorities are controlled under WiFi environment
US20210211965A1 (en) Data Transmission Method, Electronic Device, and Computer Readable Storage Medium
EP3793266B1 (en) Data transmission method and apparatus for terminal
US8374339B2 (en) Security setting method of wireless communication network, wireless communication network system, client device and recording medium
US8190716B2 (en) Method and system for managing bluetooth communication using software or firmware filtering
CN103491578B (en) Network shunt method and device
CN101383720B (en) Software updating method of controlled network element, controlled network element and operation maintaining center
CN102333357B (en) Management method in wireless local area network and wireless access controller
CN108738098B (en) Method for seamless switching among multiple access points of WLAN (Wireless local area network)
CN102685785B (en) The method and apparatus of radio resource control RRC connection re-establishment
EP3619970B1 (en) System and method for connection and hand-over management across networks and ssids
CN110177384B (en) Access method, device, wireless access point and readable storage medium
US20160373968A1 (en) Method of setting a plurality of parameters in a wireless telecommunication network
CN103501506A (en) Terminal self-adaptive data transmission system and method for Internet of Vehicles service
CN101951665A (en) Routing method of double-card mobile terminal and double-card mobile terminal
CN102111890B (en) Priority regulation method and relative equipment
US10028195B2 (en) Data forwarding control method and system, controller, and access device
WO2023173703A1 (en) Wireless network connection method, and control center and device
CN104869621A (en) Method and device for network awareness
EP1702485B1 (en) Autonomic reassociation of client in a wireless local area network
CN106255172A (en) Communication means based on multipath and device
KR102003195B1 (en) Apparatus and method for simultaneously transmitting data in heterogeneous network
CN104080093A (en) Spectrum sensing and dynamic channel binding method, device and system
CN107295602A (en) A kind of system and its implementation of control WiFi network connection priority
CN1886916A (en) Radio lan transmission/reception device and radio lan transmission/reception method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant