CN106454973A - Method and device for switching AP (Access Point) in Wi-Fi network - Google Patents

Method and device for switching AP (Access Point) in Wi-Fi network Download PDF

Info

Publication number
CN106454973A
CN106454973A CN201610932687.1A CN201610932687A CN106454973A CN 106454973 A CN106454973 A CN 106454973A CN 201610932687 A CN201610932687 A CN 201610932687A CN 106454973 A CN106454973 A CN 106454973A
Authority
CN
China
Prior art keywords
information
switching
abnormal
mobile terminal
performance
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
Application number
CN201610932687.1A
Other languages
Chinese (zh)
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.)
Oneplus Technology Shenzhen Co Ltd
Original Assignee
Oneplus Technology Shenzhen 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 Oneplus Technology Shenzhen Co Ltd filed Critical Oneplus Technology Shenzhen Co Ltd
Priority to CN201610932687.1A priority Critical patent/CN106454973A/en
Publication of CN106454973A publication Critical patent/CN106454973A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/08Reselecting an access point
    • 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 Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a method and a device for switching an AP (Access Point) in a Wi-Fi network. The method is applied to a mobile terminal and comprises the steps of when the mobile terminal needs to initiate switching the AP, scanning Wi-Fi hotspots in a current environment to generate AP information which can be used for switching; and according to pre-stored AP abnormal information, selecting the AP from the AP information which can be used for switching for connection, wherein the AP abnormal information includes an identity identifier of the abnormal AP. Through the method and the device provided by the invention, the abnormal AP which easily causes frequent network interruption can be effectively filtered to be taken as a selected object, and the effect of improving the network stability and the user experience degree in an AP switching process is achieved.

Description

AP switching method and apparatus in Wi-Fi network
Technical field
The present invention relates to the communications field, in particular to the AP in a kind of Wi-Fi network, (Access Point accesses Point) switching method and apparatus.
Background technology
Some application programs in mobile terminal (such as mobile phone, panel computer) require connect to the Internet could normally be made With therefore the stability of network signal has a direct impact to the Experience Degree of user.In numerous network accesses, Wi-Fi is wireless Network application is extensive;However, Wi-Fi network has a stronger region, single Wi-Fi launch point (i.e. AP, also referred to as wireless heat Point or WAP) area coverage is than relatively limited;Therefore, the environment residing for as user is to provide Wi-Fi network by multiple AP Environment, and when user carries mobile terminal and moved in a big way, in order to ensure that network connection do not interrupt, need to change and move The AP that dynamic terminal connects;During changing AP, part AP can be refused because of the problem of respective hardware, software or aspect of performance The connection of this mobile terminal exhausted, for example, mobile terminal, during Wi-Fi roaming switch, carries out pre-authentication (Pre- with AP When Auth), if this AP has reached the connection upper limit, return information carries corresponding association and unsuccessfully identifies to mobile whole End, after mobile terminal, extended meeting is repeated multiple times attempts being attached with this AP, leads to the suspension repeatedly of this mobile terminal, has a strong impact on use The Experience Degree at family.
Content of the invention
In view of this, the purpose of the embodiment of the present invention is to provide the AP switching method and apparatus in a kind of Wi-Fi network, The abnormal AP easily causing frequent suspension can effectively be filtered as the object being selected, reach in raising AP handoff procedure Network stabilization and the effect of user experience.
For solving above-mentioned technical problem, the first technical scheme that the present invention adopts is:A kind of AP switching in Wi-Fi network Method, the method is applied to mobile terminal, including:When mobile terminal needs to initiate switching AP, the Wi- in scanning current environment Fi focus generates the AP information that can be used for switching;Selected from the AP information that can be used for switching according to the AP abnormal information pre-saving AP is taken to be attached, AP abnormal information includes the identity of abnormal AP.
Further, the acquisition modes of AP abnormal information at least include one below:(1) return when mobile terminal receives AP Connection failure information when, AP abnormal information records the identity of this AP;(2) actively obtain AP to access controller different Often information;(3) receive the AP abnormal information that access controller active issues.
Further, choose AP from the AP information that can be used for switching according to the AP abnormal information pre-saving to be attached wrapping Include:According to can be used for the AP information that switches and in the AP abnormal information pre-saving identical AP switching performance strong and weak to selection AP Influence degree, the AP information that can be used for switching is carried out by AP removes operation;The AP letter that can be used for after removing operation switches Choose AP in breath to be attached.
Further, according to the switching performance that can be used for the AP information and identical AP in the AP abnormal information pre-saving switching The strong and weak influence degree to selection AP, carries out AP and removes operation inclusion to the AP information that can be used for switching:Determine and can be used for switching AP information and the AP abnormal information that pre-saves in AP occur simultaneously;When in the AP information that can be used for switching, switching performance is the strongest When AP is not in AP common factor, remove the AP during AP occurs simultaneously from the AP information that can be used for switching.
Further, said method also includes:When can be used for switch AP information except AP common factor in addition to AP in, there is connection When performance meets the AP setting performance requirement, remove the AP during AP occurs simultaneously from the AP information that can be used for switching.
Further, above-mentioned AP abnormal information also includes abnormal cause corresponding with the identity of AP and/or abnormal time Information, abnormal time information includes abnormal duration and/or the abnormal moment occurs;Correspondingly, said method also includes: When can be used for switch AP information except AP common factor in addition to AP in, do not exist switching performance meet set performance requirement AP when, According to the length of the abnormal cause of AP in occuring simultaneously and/or abnormal time information corresponding theory recovery time, to can be used for switching AP information carry out AP and remove operation.
Further, the length according to the abnormal cause of AP in common factor and/or abnormal time information corresponding theoretical recovery time Short, the AP information that can be used for switching is carried out with AP and removes operation inclusion:The corresponding abnormal cause of AP and/or different in judging to occur simultaneously Often whether temporal information belongs to default of short duration abnormal category;If it is, the AP during AP occurs simultaneously remaines in can be used for switching In AP information;If not, removing the AP during AP occurs simultaneously from the AP information that can be used for switching.
The present invention adopt the second technical scheme be:A kind of AP switching device in Wi-Fi network, this AP switching device should For mobile terminal, this device includes:Scan module, for when mobile terminal needs to initiate switching AP, scanning current environment In Wi-Fi Hotspot generate can be used for switch AP information;Link block, for according to the AP abnormal information that pre-saves from can It is attached for choosing AP in the AP information of switching, AP abnormal information includes the identity of abnormal AP.
Further, said apparatus also include:Abnormal information acquisition module, at least obtaining one of in the following ways AP Abnormal information:When mobile terminal receives the connection failure information of AP return, AP abnormal information records the identity of this AP Mark;Or, actively obtain AP abnormal information from access controller;Or, the AP that reception access controller active issues is abnormal Information.
Further, link block includes:Remove operating unit, can be used for the AP information of switching for basis and pre-save AP abnormal information in identical AP switching performance power to choose AP influence degree, to can be used for switch AP information enter Row AP removes operation;Connection unit, is attached for choosing AP from the AP information that can be used for switching after operation that removes.
Further, remove operating unit and be additionally operable to determine and can be used for the AP information switching and the AP abnormal information pre-saving In AP occur simultaneously, when in the AP information that can be used for switching, switching performance AP the strongest is not in AP common factor, from can be used for switching AP information in remove AP occur simultaneously in AP.
Further, remove operating unit to be additionally operable to work as in AP in addition to AP common factor for the AP information that can be used for switching, exist When switching performance meets the AP setting performance requirement, remove the AP during AP occurs simultaneously from the AP information that can be used for switching;Remove behaviour It is additionally operable to work as in AP in addition to AP common factor for the AP information that can be used for switching as unit, there is not switching performance and meet setting performance During the AP requiring, according to the length of the abnormal cause of AP in common factor and/or abnormal time information corresponding theoretical recovery time, right The AP information that can be used for switching carries out AP and removes operation.
The technical scheme that embodiment of the disclosure provides can include following beneficial effect:
By when mobile terminal needs the state initiating switching AP, getting the AP that can be used for switching in the way of scanning Information, and according to the AP abnormal information pre-saving, from the AP information that can be used for switching, selection AP is attached, this switching Consider AP abnormal information in the mode of AP, and then the abnormal AP easily causing frequent suspension can be effectively filtered out, improve Network stabilization in AP handoff procedure, improves the Experience Degree that user uses mobile terminal.
For enabling the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate Appended accompanying drawing, is described in detail below.
Brief description
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below will be attached to use required in embodiment Figure is briefly described it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, and it is right to be therefore not construed as The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 is the schematic flow sheet of the first embodiment of AP changing method in a kind of Wi-Fi network of the present invention;
Fig. 2 is the schematic flow sheet of the second embodiment of AP changing method in a kind of Wi-Fi network of the present invention;
Fig. 3 is the logical framework schematic diagram of the mobile terminal that the embodiment of the present invention is provided;
Fig. 4 is the schematic flow sheet of the 3rd embodiment of the AP changing method in a kind of Wi-Fi network of the present invention;
Fig. 5 is that the new switching that can be used in the AP changing method in the Wi-Fi network that the embodiment of the present invention is provided arranges The generation method schematic diagram of table;
Fig. 6 is the structural representation of the AP switching device in the Wi-Fi network that the embodiment of the present invention is provided;
Fig. 7 is another kind of structural representation of the AP switching device in the Wi-Fi network that the embodiment of the present invention is provided;
Fig. 8 is the third structural representation of the AP switching device in the Wi-Fi network that the embodiment of the present invention is provided.
Specific embodiment
Purpose, technical scheme and advantage for making the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention Middle accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described it is clear that described embodiment only It is a part of embodiment of the present invention, rather than whole embodiments.The present invention generally described and illustrated in accompanying drawing herein is real The assembly applying example can be arranged with various different configurations and design.Therefore, below to the present invention's providing in the accompanying drawings The detailed description of embodiment is not intended to limit the scope of claimed invention, but is merely representative of the selected reality of the present invention Apply example.Based on embodiments of the invention, the institute that those skilled in the art are obtained on the premise of not making creative work There is other embodiment, broadly fall into the scope of protection of the invention.
Unless otherwise defined, all of technology used herein and scientific terminology and the technical field belonging to the present invention The implication that technical staff is generally understood that is identical.Herein in the description of announcement information access method and announcement information access mechanism Used in term be intended merely to describe specific embodiment purpose it is not intended that limit the present invention.Used herein Term "and/or" includes the arbitrary and all of combination of the Listed Items of one or more correlations.
Below in conjunction with the accompanying drawings, the specific embodiment of the present invention is elaborated.
Embodiment 1
Fig. 1 is the schematic flow sheet of the first embodiment of AP changing method in a kind of Wi-Fi network of the present invention.The party Method is applied to mobile terminal, and the environment residing for this mobile terminal is the environment being provided Wi-Fi network by multiple AP, this embodiment The method flow illustrating comprises the steps:
Step S11, when mobile terminal needs to initiate switching AP, the Wi-Fi Hotspot in scanning current environment generates available AP information in switching;
Step S12, chooses AP from the AP information that can be used for switching according to the AP abnormal information pre-saving and is attached, This AP abnormal information includes the identity of abnormal AP.
The method being provided by the embodiment of the present disclosure, needs to initiate switching AP (for example, the current AP connecting in mobile terminal Signal intensity too weak) when, the AP that can be used for switching can be got by way of scanning, and different according to the AP pre-saving Often information is chosen AP from the AP information that can be used for switching and is attached, and considers AP and extremely believe in the mode of this switching AP Breath, and then the abnormal AP easily causing frequent suspension can be effectively filtered out, will not be connected with these abnormal AP, improve Network stabilization in AP handoff procedure, improves the Experience Degree that user uses mobile terminal.
In the present embodiment, the acquisition modes of AP abnormal information at least include one below:
(1) mobile terminal itself statistic record;
When mobile terminal receives the connection failure information of AP return, AP abnormal information records the identity mark of this AP Know;For example, in associated AP failure, MAC (Media Access Control, medium access control) layer is to SME for mobile terminal (System Management Entity system management entity) layer sends the event (Event) of association failure, and SME layer receives After the event of this association failure, by AP information such as SSID (Service Set Identifier, service set), BSSID (Basic Service Set Identifier, basic service set identification) etc. records in AP abnormal information, simultaneously acceptable The reason record connection failure, current time in system etc., if already recorded in AP abnormal information before the information of this AP, this Secondary the information of this AP can be updated, for example update the information such as failure cause and the system time of this AP.
(2) actively obtain AP abnormal information to AC (Access Controller, access controller);
(3) receive the AP abnormal information issuing to AC active;Generally AC can connect the multiple AP in the range of administration, can Obtain running status or the performance parameter of connected AP, and then it is abnormal to determine that each AC whether there is, and abnormal AP is recorded in AP In abnormal information, when implementing, AC can issue AP abnormal information according to the request of mobile terminal, and AC can also be to administration model Mobile terminal in enclosing actively issues this AP abnormal information.
It is appreciated that when choosing the AP of connection in step S12, different with AP in the AP information that can directly will can be used for switching The AP often overlapping in information removes, and is chosen only for can be used for remaining AP in the AP information that switches, this mode compares Simply, but after may existing and removing operation, can be used for remaining AP in the AP information switching and all do not meet connection request, this Will be unable in the case of kind choose the AP connection being suitable for.Based on this, the present embodiment is preferably according to can be used for the AP information that switches and pre- The influence degree to selection AP for the power of the switching performance of identical AP in the AP abnormal information first preserving, to the AP that can be used for switching Information carries out AP and removes operation, then chooses AP the AP information that can be used for switching after removing operation and be attached.
In aforesaid way, on the basis of combining the AP abnormal information pre-saving, it has been further introduced into the connection of each AP Performance, can ensure in the AP information that can be used for switching after removing operation there is the AP being suitable for connection to a certain extent, lift net The stability of network.
Embodiment 2
Fig. 2 is the schematic flow sheet of the second embodiment of AP changing method in a kind of Wi-Fi network of the present invention.The party Method is applied to mobile terminal, and the environment residing for this mobile terminal is the environment being provided Wi-Fi network by multiple AP, this embodiment The method flow illustrating comprises the steps:
Step S21, when mobile terminal needs to initiate switching AP, the Wi-Fi Hotspot in scanning current environment generates available AP information in switching;This AP information can be AP information table, and it can include the identity of AP and correspond to identity The information such as switching performance.
In an embodiment of the present invention, can be that mobile phone, panel computer, personal digital assistant etc. have various for mobile terminal The hardware device of operating system, supports Wi-Fi network savvy.Generally, if the Wi-Fi signal of the current AP connecting of mobile terminal When intensity is less than intensity threshold, need to carry out AP switching;Or, if the current AP connecting of mobile terminal breaks down, Need to carry out AP switching, now, mobile terminal can obtain can be used for the AP information of switching, such as AP list by scanning, is somebody's turn to do Switching performance (the example that can be used for the identity of the AP and AP corresponding with identity switching can be included in AP list As:The Wi-Fi signal strength of AP).
The identity of above-mentioned AP can be represented with SSID+BSSID compound mode, and wherein, SSID typically can refer to this AP The hotspot name of place Wi-Fi, BSSID refers generally to the MAC Address of AP.
Step S22, determines that the AP in the AP information that can be used for switching and the AP abnormal information pre-saving occurs simultaneously.
Step S23, judges that in the AP information can be used for switching, switching performance AP the strongest is whether in AP occurs simultaneously, if It is, execution step S25;If not, execution step S24.
Step S24, removes the AP during AP occurs simultaneously from the AP information that can be used for switching.
Step S25, when in the AP information that can be used for switching, switching performance AP the strongest is in AP common factor, judges can be used for In AP in addition to AP common factor for the AP information of switching, if there is switching performance and meet the AP setting performance requirement, if it is, holding Row step S24;If not, execution step S26.
If can be used for switch AP information except AP common factor in addition to AP in, exist switching performance meet set performance requirement AP, directly from can be used for switch AP information remove AP occur simultaneously in AP.
If can be used for switch AP information except AP common factor in addition to AP in, do not exist switching performance meet set performance will The AP asking, this situation is more complicated, and in order to ensure removing the reliability of operation, in preferably comprehensive common factor, AP's is specifically abnormal former Because and/or the length of abnormal time information corresponding theory recovery time carry out judging operation, this theoretical recovery time can be according to Carry out according to abnormal cause or the abnormal moment occurring that reckoning draws or empirically assessment is drawn with summary.Based on this, above-mentioned AP abnormal information can also include abnormal cause corresponding with the identity of AP and/or abnormal time information, this abnormal time Information includes abnormal duration and/or the abnormal moment occurs;Wherein, when abnormal duration can be understood as one Between section, the length of concrete time period flexibly can be arranged according to specific abnormal cause, causes AP to be connected up to the upper limit As a example exception, its abnormal duration could be arranged to 5 minutes, after rolling counters forward reaches 5 minutes, the exception system of this AP Meter lost efficacy, and can be considered as normal AP.The abnormal moment is occurred to can be understood as a time point, that is, system when occurring abnormal Time.
Step S26, when can be used for switch AP information except AP common factor in addition to AP in, do not exist switching performance meet set During the AP of performance requirement, according to the length of the abnormal cause of AP in common factor and/or abnormal time information corresponding theoretical recovery time Short, AP is carried out to the AP information that can be used for switching and removes operation.
Preferably, whether the corresponding abnormal cause of AP in can first judging to occur simultaneously and/or abnormal time information belong to pre- If of short duration abnormal category;If it is, the AP during AP occurs simultaneously remaines in the AP information that can be used for switching;If not, from can The AP during described AP occurs simultaneously is removed in AP information for switching.
In the present embodiment, abnormal cause at least includes one below:Connect user and reach the AP upper limit, hardware fault and soft Part logic goes wrong;Above-mentioned of short duration abnormal category includes one below:Abnormal cause be connected user reach the AP upper limit, When software logic goes wrong, abnormal duration is overtime or the difference of exception occurs moment and system current time exceedes Between threshold value.
Method flow diagram according to Fig. 2, when can be used for switch AP information in switching performance AP the strongest not in AP When in common factor, or, when can be used for switch AP information except AP common factor in addition to AP in, exist switching performance meet set performance During the AP requiring, all directly can remove the AP during AP occurs simultaneously from the AP information that can be used for switching.It is actually available for switching AP information except AP common factor in addition to AP in exist switching performance meet set performance requirement AP condition, also include available In the AP information of switching, not in AP common factor, the present embodiment is for the AP considering that selection to be switched for switching performance AP the strongest In, more preferably switching performance AP the strongest, it is therefore highly preferred that judge that in the AP information can be used for switching, switching performance AP the strongest is Mode in the no common factor in AP is processed.
The AP information that can be used for switching in above-described embodiment and AP abnormal information to be stored in the form of form can be It is easy to subsequent operation, can be used for be ranked up according to the switching performance of each AP in the AP information switching.This connection Performance can be to embody the various parameters of Wi-Fi connection stability, such as Wi-Fi signal strength, and mobile terminal can be by sweeping Retouch the Wi-Fi signal strength that Wi-Fi environment gets AP.Switching performance in the embodiment of the present invention can also be the signal speed of AP Rate, or the combining of Wi-Fi signal strength and signal rate, mobile terminal can obtain the corresponding signal rate of AP to AC.
It is appreciated that can be used for the AP information of switching and AP abnormal information can also be other forms, such as relational expression etc..
Except identity, above-mentioned abnormal cause and/or the abnormal time of AP can be included in above-mentioned AP abnormal information Outside information, can also flexibly be arranged according to practical application, such as the identity with AP in AP abnormal information, can also be included The counting of corresponding abnormal frequency, this counting can also reflect the network stabilization degree of an AP to a certain extent.
AP changing method in Wi-Fi network disclosed in above-described embodiment, can apply to mobile terminal and carries out AP switching Any scene under.For example, when the Wi-Fi signal strength of the current AP connecting of mobile terminal is less than intensity threshold or mobile When the current AP connecting of terminal breaks down, all can adopt above-mentioned AP changing method.
Embodiment 3
Present embodiments provide the AP changing method in a kind of Wi-Fi network, in the method, to be in Wi-Fi roaming field As a example mobile terminal (as smart mobile phone) under scape, the index embodying the switching performance of AP is specially Wi-Fi signal strength, Wi- Fi signal intensity can also be referred to as intensity, signal intensity or RSSI (Received Signal Strength Indication, received signal strength indicator) intensity.AP switching side in a kind of Wi-Fi network of the present invention shown in Figure 4 The schematic flow sheet of the 3rd embodiment of method, the environment residing for mobile terminal in the present embodiment is to provide Wi- by multiple AP The environment of Fi network, concrete grammar flow process comprises the steps:
Step S41, mobile terminal in use, whenever connecting AP failure, AP information is added to and associates unsuccessfully In table (hereinafter referred to as table 1), the information of this table record is equivalent to the AP abnormal information in above-described embodiment.
The logical framework schematic diagram of mobile terminal shown in Figure 3, mobile terminal in use, whenever associated AP During failure, its MAC layer can send association turkey (Event) to SME layer, and wherein, MAC layer includes setting up and connects/cancel Bind command receiver module (Assoc/Disassoc Command), roaming scan command sending module (Roaming Scan Command), association turkey reporting module (Assoc Fail Event) etc..Wherein, set up and connect/cancel bind command Receiver module is used for setting up of SME layer transmission and connects or cancel the order connecting, and is connected with the foundation of corresponding A P or cancels connection, overflows After trip scan command sending module is used for receiving the scan command that SME layer sends, carry out Wi-Fi Hotspot scanning;Associate unsuccessfully Reporting events module is responsible for reporting the event of association failure.
Reach as a example equipment connects the upper limit for AP only the reason to associate unsuccessfully in figure 3 and illustrated, other associations have been lost The reason lose not in the limit of consideration of the present embodiment, based on this, increased in Fig. 3 judge to associate failure cause be whether AP Reach the step that equipment connects the upper limit, if association failure cause has reached equipment for AP connects the upper limit, the information of AP is added to pass Join unsuccessfully in table, if the identification information of this AP Already in associates unsuccessfully table, update the corresponding other information of this AP, example Generation moment as failure cause or failure etc..In the present embodiment, the information in unsuccessfully table that associates can include SSID, BSSID, and the system of connection failure currently singly increases time counting etc..In the present embodiment, when association failure cause be not AP The equipment that reaches connects the upper limit, illustrates that this failure cause not in the limit of consideration of the present embodiment method, then abandons this event.
By the way, association failure the table record A-1, A-2 ... in Fig. 3.A-1 is currently at mobile terminal, Multiple available distributed Wi-Fi Hotspot environment such as A-2, A-3, A-4, and the current AP connecting is for as a example A-4.
Step S42, mobile terminal detects the RSSI signal weaker of AP of current connection and reaches roaming scan threshold When, mobile terminal initiates roaming scanning, generates one according to scanning result and can be used for handoff list (hereinafter referred to as table 2), should In table, the information of record is equivalent to the AP information that can be used for switching in above-described embodiment, and it comprises A-1, A-2, A-3 ..., can AP has been carried out by by force to weak sequence for handoff list according to RSSI intensity, as shown in figure 3, be specifically ordered as A-1, A-2, A-3 ....If can be used for the AP that the AP in handoff list alternatively switches connection, coming gauge outfit (List Head) AP would be as preferred AP, that is, prioritizing selection and this AP initiate to be connected.
Step S43, when initiating Wi-Fi roaming, mobile terminal determines the common factor of Tables 1 and 2, during this is occured simultaneously AP adds to table 3.
When initiating roaming, in mobile terminal check table 1, the AP of association failure before whether there is in table 2, tool The step of identical SSID and BSSID in the lookup Tables 1 and 2 that body may refer in Fig. 3, by finding out the friendship of Tables 1 and 2 Collection generates interim middle table (hereinafter referred to as table 3).As shown in figure 3, the AP that table 3 includes is specially A-1 and A-2.
Step S44, judges whether the AP in table 3 should remove from table 2, is generated according to judged result and new can be used for cutting Change list (hereinafter referred table 4), for the basis of the AP of alternatively roaming switch., according in table 3 taking shown in Fig. 3 as a example AP carries out to table 2 removing operation and obtains table 4;AP in table 4 is ordered as A-3 according to intensity ....
The specific implementation of above-mentioned steps S44 may refer to Fig. 5, specifically includes following steps:
Step S51, judges AP quantity and table 3 (corresponding centre of occuring simultaneously in table 2 (scanning obtain can be used for handoff list) Table) in AP number differences whether be zero, all had the record of connection failure if the AP that zero representative scans, currently without it He more preferably roams AP it is impossible to generation table 4, execution step S52, otherwise, execution step S53;
Step S52, follow-up roaming is still attempted using the table 2 that scanning obtains.
Step S53, judges the gauge outfit position that in table 3, whether AP is in table 2, if being not at gauge outfit, execution step S54, if being in gauge outfit, execution step S55;
Step S54, the AP that directly deletion table 3 comprises from table 2, generate table 4.
Step S55, searches in table 2 and is not included in AP in table 3.
When AP in table 2 is ranked up according to RSSI intensity, when the AP of gauge outfit comprises in table 3, can be according to by table Next AP in the sequential search table 2 from top to bottom that head starts, until find an AP being not included in table 3, root It is investigated that the RSSI intensity of the AP finding carries out subsequent treatment.
Step S56, judges whether the RSSI intensity of the AP finding is strong signal, if strong signal, then this AP is described Meet connection request, execution step S54, if this AP is weak signal, execution step S57;Specifically, whether AP is strong signal, May determine that whether the RSSI intensity of AP is more than default strong signal threshold value, if it is, AP is strong signal;Otherwise, AP is weak letter Number.
Step S57, judges whether the RSSI intensity of the AP finding is less than default minimum connection threshold value, if it is, holding Row step S58;Otherwise, execution step S54;
Step S58, record time and the current time in system of the AP that table 3 is comprised make the difference, and difference is more than preset value AP adds to table 4.
Above-mentioned steps S57 " check the RSSI intensity of the AP that table 3 comprises and non-gauge outfit AP of table 2 it is also possible to replace with Whether RSSI difference is more than a setting difference ", if result is more than illustrating that the RSSI intensity of non-gauge outfit AP of table 2 is non- Often weak, this AP is unsatisfactory for networking requirements, now can consider the AP in table 3, perhaps there is RSSI intensity in table 3 and compares Greatly, and the AP that disappeared of unusual condition, when the record time of the AP that can be comprised with check table 3 in the present embodiment is current with system Between difference whether be more than preset value, can use more than this AP then illustrating in table 3.If it is less, this AP in explanation table 3 may Also in abnormality.
When table 4 is obtained according to said method, roaming is initiated based on table 4, selects the AP in this table to be roamed, rather than AP in selection table 2 is roamed.As shown in figure 3, in the present embodiment, the gauge outfit of table 2 is A-1, without adopting the present embodiment In method, mobile terminal can preferred A-1 be roamed, and after generating table 4, the gauge outfit of table 4 is A-3, using the present embodiment Method, mobile terminal can preferred A-3 be roamed.
Above-mentioned Rule of judgment can be adjusted according to practical situation.
The method that above example provides, by introducing the abnormal corresponding statistical information of AP, can make not affecting user With in the case of, reduce and frequently occur in roam procedure to having been marked as the probability that abnormal AP initiates to connect before, and then subtract Lack the phenomenon frequently cutting off connection, ensure the normal use of user to a certain extent.
Embodiment 4
Fig. 6 is the structural representation of the AP switching device in the Wi-Fi network that the embodiment of the present invention is provided, and this AP switches Device is applied to mobile terminal, and this device includes:Scan module 62 and link block 64, wherein, the function of each module is as follows:
Scan module 62 is used for the Wi-Fi Hotspot life when mobile terminal needs to initiate switching AP, in scanning current environment Become the AP information that can be used for switching;
Link block 64 is used for being chosen from the described AP information that can be used for and switching according to the AP abnormal information pre-saving AP is attached, and described AP abnormal information includes the identity of abnormal AP.
Further, the AP switching device in the Wi-Fi network that the embodiment of the present invention shown in Figure 7 is provided another A kind of structural representation, this device, on the basis of above-mentioned Fig. 6, also includes:Abnormal information acquisition module 72, with link block 64 Connect, at least obtaining one of in the following ways AP abnormal information:When mobile terminal receives the connection failure of AP return In AP abnormal information, during information, record the identity of this AP;Or, actively obtain AP abnormal information from AC;Or receive The AP abnormal information that AC active issues.
Preferably, the 3rd of the AP switching device in the Wi-Fi network that the embodiment of the present invention shown in Figure 8 is provided Plant structural representation, on the basis of above-mentioned Fig. 7, link block 64 includes this device:Remove operating unit 641, for basis Can be used for the AP information that switches and in the AP abnormal information pre-saving identical AP the strong and weak impact to selection AP of switching performance Degree, carries out AP to the AP information that can be used for switching and removes operation;Connection unit 642, for from removing can be used for after operation Choose AP in the AP information of switching to be attached.
Remove operating unit to be additionally operable to determine the AP in the AP information that can be used for switching and the AP abnormal information pre-saving Occur simultaneously, when switching performance AP the strongest is not in AP common factor in the AP information that can be used for switching, believe from the AP that can be used for switching The AP during AP occurs simultaneously is removed in breath.
When can be used in the AP information that the switches AP in addition to AP common factor, there is switching performance and meet and set performance requirement During AP, remove operating unit and be additionally operable to remove the AP during AP occurs simultaneously from the AP information that can be used for switching.
Preferably, above-mentioned AP abnormal information also includes abnormal cause corresponding with the identity of AP and/or abnormal time Information, abnormal time information includes abnormal duration and/or the abnormal moment occurs.Correspondingly, when can be used for switch In AP in addition to AP common factor for the AP information, when there is not the AP that switching performance meets setting performance requirement, remove operating unit also For the length according to the abnormal cause of AP in occuring simultaneously and/or abnormal time information corresponding theory recovery time, to can be used for The AP information of switching carries out AP and removes operation.
Further, when can be used for switch AP information except AP common factor in addition to AP in, do not exist switching performance meet set During the AP of performance requirement, remove the corresponding abnormal cause of AP during operating unit is additionally operable to judge to occur simultaneously and/or abnormal time Whether information belongs to default of short duration abnormal category;If it is, the AP during AP occurs simultaneously remaines in the AP information that can be used for switching In;If not, removing the AP during described AP occurs simultaneously from the AP information that can be used for switching.Wherein, abnormal cause at least include with One of lower:Connect user and reached the AP upper limit, hardware fault and software logic and gone wrong;Of short duration abnormal category is included with purgation One:Abnormal cause be connected that user reaches the AP upper limit, software logic goes wrong, abnormal duration time-out or occur different Normal moment and the difference over-time threshold value of system current time.
In the present embodiment, mobile terminal is in during following state to be needed to initiate switching AP:The current AP connecting of mobile terminal Wi-Fi signal strength be less than intensity threshold when;Or when the current AP connecting of mobile terminal breaks down.
The device being provided by the embodiment of the present disclosure, needs to initiate switching AP (for example, the current AP connecting in mobile terminal Signal intensity too weak) when, the AP that can be used for switching can be got by way of scanning, and different according to the AP pre-saving Often information is chosen AP from the AP information that can be used for switching and is attached, and considers AP and extremely believe in the mode of this switching AP Breath, and then the abnormal AP easily causing frequent suspension can be effectively filtered out, improve the network stabilization in AP handoff procedure Property, improve the Experience Degree that user uses mobile terminal.
Mobile terminal in above example can also be DUT (Device Under Test, test equipment), specifically may be used To be the intelligent terminal using for test.Wherein, described mobile terminal includes memorizer and processor.Memorizer may comprise High-speed random access memory (RAM:Random Access Memory) it is also possible to also include non-labile memorizer (non-volatile memory), for example, at least one disk memory.
Described processor calls the mobile terminal described in various data and programme-control in memorizer to work.Described processor It is probably a kind of IC chip, there is the disposal ability of signal.Above-mentioned processor can be general processor, including in Central processor (Central Processing Unit, abbreviation CPU), network processing unit (Network Processor, referred to as NP) etc.;Can also be digital signal processor (DSP), special IC (ASIC), ready-made programmable gate array (FPGA) or Other PLDs of person, discrete gate or transistor logic, discrete hardware components.Can realize or execute basis Disclosed each method in inventive embodiments, step and logic diagram.General processor can be microprocessor or this process Device can also be any conventional processor etc..Step in conjunction with the method disclosed in the embodiment of the present invention can be embodied directly in Hardware decoding processor execution completes, or is completed with the hardware in decoding processor and software module combination execution.Software mould Block may be located at random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable storage In the ripe storage medium in this areas such as device, depositor.This storage medium is located at memorizer, and processor reads the letter in memorizer Breath.
The present invention by when mobile terminal carries out AP switching, in conjunction with the AP abnormal information pre-saving from can be used for switching AP information in choose AP be attached, the mode of this switching AP can effectively filter out and easily cause the different of frequent suspension Often AP, improves the network stabilization in AP handoff procedure, improves the Experience Degree that user uses mobile terminal.
The device that the embodiment of the present invention is provided, it realizes the technique effect of principle and generation and preceding method embodiment phase With for briefly describing, embodiment of the method part does not refer to part, refers to corresponding contents in preceding method embodiment.
Flow chart in accompanying drawing and block diagram show the system of multiple embodiments according to the present invention, method and computer journey The architectural framework in the cards of sequence product, function and operation.At this point, each square frame in flow chart or block diagram can generation A part for one module of table, program segment or code, the part of this module, program segment or code comprise one or more for Realize the executable instruction of the logic function of regulation.It should also be noted that at some as in the realization replaced, being marked in square frame Function can also be to occur different from the order that marked in accompanying drawing.For example, two continuous square frames can essentially be basic It is performed in parallel, they can also execute sometimes in the opposite order, this is depending on involved function.It is also noted that Each square frame in block diagram and/or flow chart and the combination of the square frame in block diagram and/or flow chart, can be with executing regulation Function or action special hardware based system realizing, or can combining with specialized hardware and computer instruction To realize.
It should be understood that disclosed mthods, systems and devices in several embodiments provided herein, permissible Realize by another way.Device embodiment described above is only schematically, for example, the division of this module, and only It is only a kind of division of logic function, actual can have other dividing mode when realizing, and for example, multiple module or components are permissible In conjunction with or be desirably integrated into another system, or some features can be ignored, or does not execute.Another, shown or discussed Coupling each other direct-coupling or communication connection can be by some communication interfaces, the indirect coupling of device or unit Close or communicate to connect, can be electrical, mechanical or other forms.
Embodiment described above only have expressed the several embodiments of the present invention, and its description is more concrete and detailed, but simultaneously Therefore the restriction to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, some deformation can also be made and improve, these broadly fall into the guarantor of the present invention Shield scope.Therefore, the protection domain of patent of the present invention should be defined by claims.

Claims (12)

1. the AP changing method in a kind of Wi-Fi network, methods described is applied to mobile terminal it is characterised in that including:
When mobile terminal needs to initiate switching AP, the Wi-Fi Hotspot in scanning current environment generates the AP letter that can be used for switching Breath;
Choose AP according to the AP abnormal information pre-saving from the described AP information that can be used for and switching to be attached, described AP is different Often information includes the identity of abnormal AP.
2. method according to claim 1 it is characterised in that the acquisition modes of described AP abnormal information at least include following One of:
When mobile terminal receives the connection failure information of AP return, described AP abnormal information records the identity mark of this AP Know;
Actively obtain AP abnormal information to access controller;
Receive the AP abnormal information that access controller active issues.
3. method according to claim 1 it is characterised in that the AP abnormal information that pre-saves of described basis from described can For switching AP information in choose AP be attached including:
Right with the switching performance power of identical AP in the AP abnormal information pre-saving according to the described AP information that can be used for switching Choose the influence degree of AP, AP is carried out to the described AP information that can be used for switching and removes operation;
Choose AP the AP information that can be used for switching after removing operation to be attached.
4. method according to claim 3 is it is characterised in that can be used for the AP information and in advance switching described in described basis The strong and weak influence degree to selection AP of the switching performance of identical AP in the AP abnormal information preserving, to the described AP that can be used for and switching Information carries out AP and removes operation inclusion:
The AP that can be used for described in determination in the AP information switching and the AP abnormal information pre-saving occurs simultaneously;
When in the described AP information that can be used for and switching, switching performance AP the strongest is not in described AP common factor, can be used for from described The AP during described AP occurs simultaneously is removed in the AP information of switching.
5. method according to claim 4 is it is characterised in that methods described also includes:
Will when in AP in addition to described AP occurs simultaneously for the described AP information that can be used for switching, there is switching performance satisfaction setting performance During the AP asking, remove the AP during described AP occurs simultaneously from the described AP information that can be used for and switching.
6. the method according to claim 4 or 5 is it is characterised in that described AP abnormal information also includes the identity mark with AP Know corresponding abnormal cause and/or abnormal time information, described abnormal time information includes abnormal duration and/or generation The abnormal moment;
Methods described also includes:When in AP in addition to described AP occurs simultaneously for the described AP information that can be used for switching, there is not connection When performance meets the described AP setting performance requirement, according to the abnormal cause of AP and/or abnormal time information pair in described common factor The length of the theoretical recovery time answered, carries out AP to the described AP information that can be used for switching and removes operation.
7. method according to claim 6 it is characterised in that described according to described occur simultaneously in AP abnormal cause and/or Abnormal time information corresponding theory recovery time length, to described can be used for switch AP information carry out AP remove operation bag Include:
Judge whether the corresponding abnormal cause of AP in described common factor and/or abnormal time information belong to default of short duration abnormal model Farmland;
If it is, by described AP occur simultaneously in AP remain in described in can be used for switch AP information in;
If not, removing the AP during described AP occurs simultaneously from the described AP information that can be used for and switching.
8. the AP switching device in a kind of Wi-Fi network, described AP switching device is applied to mobile terminal it is characterised in that being somebody's turn to do Device includes:
Scan module, for when mobile terminal needs to initiate switching AP, the Wi-Fi Hotspot in scanning current environment generates available AP information in switching;
Link block, is carried out for choosing AP according to the AP abnormal information pre-saving from the described AP information that can be used for and switching Connect, described AP abnormal information includes the identity of abnormal AP.
9. device according to claim 8 is it is characterised in that described device also includes:Abnormal information acquisition module, is used for At least obtain one of in the following ways AP abnormal information:
When mobile terminal receives the connection failure information of AP return, AP abnormal information records the identity of this AP;
Actively obtain AP abnormal information from access controller;
Receive the AP abnormal information that access controller active issues.
10. device according to claim 8 is it is characterised in that described link block includes:
Remove operating unit, for according to the described AP information that can be used for switching and identical AP in the AP abnormal information pre-saving Switching performance strong and weak to the influence degree choosing AP, AP is carried out to the described AP information that can be used for switching and removes operation;
Connection unit, is attached for choosing AP from the AP information that can be used for switching after operation that removes.
11. devices according to claim 10 are it is characterised in that the described operating unit that removes is additionally operable to determine described can use AP information in switching is occured simultaneously with the AP in the AP abnormal information pre-saving, when connection in the described AP information that can be used for and switching When performance AP the strongest is not in described AP common factor, remove from the described AP information that can be used for and switching in described AP common factor AP.
12. devices according to claim 10 or 11 it is characterised in that described remove operating unit be additionally operable to when described can During in the AP in addition to described AP occurs simultaneously for the AP information of switching, there is AP that switching performance meets setting performance requirement, from The AP during described AP occurs simultaneously is removed in the described AP information that can be used for switching;
The described operating unit that removes is additionally operable to described to can be used in the AP information that the switches AP in addition to described AP occurs simultaneously, and does not deposit When switching performance meets the described AP setting performance requirement, according to the abnormal cause of AP and/or abnormal time in described common factor The length of information corresponding theory recovery time, carries out AP and removes operation to the described AP information that can be used for switching.
CN201610932687.1A 2016-10-24 2016-10-24 Method and device for switching AP (Access Point) in Wi-Fi network Pending CN106454973A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610932687.1A CN106454973A (en) 2016-10-24 2016-10-24 Method and device for switching AP (Access Point) in Wi-Fi network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610932687.1A CN106454973A (en) 2016-10-24 2016-10-24 Method and device for switching AP (Access Point) in Wi-Fi network

Publications (1)

Publication Number Publication Date
CN106454973A true CN106454973A (en) 2017-02-22

Family

ID=58178326

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610932687.1A Pending CN106454973A (en) 2016-10-24 2016-10-24 Method and device for switching AP (Access Point) in Wi-Fi network

Country Status (1)

Country Link
CN (1) CN106454973A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108712741A (en) * 2017-04-01 2018-10-26 华为技术有限公司 A kind of method of wake-up device, equipment and system
WO2019149110A1 (en) * 2018-02-01 2019-08-08 中兴通讯股份有限公司 Wifi channel screening method and apparatus, and computer-readable storage medium
CN112449401A (en) * 2019-08-31 2021-03-05 Oppo广东移动通信有限公司 WiFi roaming method and device, mobile terminal and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1929423A (en) * 2005-09-07 2007-03-14 三星电子株式会社 Method and apparatus for connecting to stable access point using connection history
CN101801051A (en) * 2010-03-04 2010-08-11 杭州华三通信技术有限公司 Method and equipment for selecting access points (APs)
CN103997768A (en) * 2014-05-16 2014-08-20 深圳市欧珀通信软件有限公司 Method and device for preventing access to invalid Wi-Fi hot spots
CN104080148A (en) * 2013-03-29 2014-10-01 华为终端有限公司 Method and device for achieving rapid network connection
CN105357742A (en) * 2015-11-12 2016-02-24 小米科技有限责任公司 Accessing method, device and system for wireless local area network
CN105813221A (en) * 2014-12-31 2016-07-27 张义勇 WIFI disconnected network reconnection method of intelligent device in WIFI wireless local network environment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1929423A (en) * 2005-09-07 2007-03-14 三星电子株式会社 Method and apparatus for connecting to stable access point using connection history
CN101801051A (en) * 2010-03-04 2010-08-11 杭州华三通信技术有限公司 Method and equipment for selecting access points (APs)
CN104080148A (en) * 2013-03-29 2014-10-01 华为终端有限公司 Method and device for achieving rapid network connection
CN103997768A (en) * 2014-05-16 2014-08-20 深圳市欧珀通信软件有限公司 Method and device for preventing access to invalid Wi-Fi hot spots
CN105813221A (en) * 2014-12-31 2016-07-27 张义勇 WIFI disconnected network reconnection method of intelligent device in WIFI wireless local network environment
CN105357742A (en) * 2015-11-12 2016-02-24 小米科技有限责任公司 Accessing method, device and system for wireless local area network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
周洲: "WiFi网络切换技术的研究与实现", 《信息科技辑》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108712741A (en) * 2017-04-01 2018-10-26 华为技术有限公司 A kind of method of wake-up device, equipment and system
CN108712741B (en) * 2017-04-01 2020-12-04 华为技术有限公司 Method, device and system for awakening device
WO2019149110A1 (en) * 2018-02-01 2019-08-08 中兴通讯股份有限公司 Wifi channel screening method and apparatus, and computer-readable storage medium
CN110113769A (en) * 2018-02-01 2019-08-09 中兴通讯股份有限公司 A kind of WiFi channel screening technique, device and computer readable storage medium
CN110113769B (en) * 2018-02-01 2021-10-29 中兴通讯股份有限公司 WiFi channel screening method and device and computer readable storage medium
CN112449401A (en) * 2019-08-31 2021-03-05 Oppo广东移动通信有限公司 WiFi roaming method and device, mobile terminal and storage medium
CN112449401B (en) * 2019-08-31 2022-03-08 Oppo广东移动通信有限公司 WiFi roaming method and device, mobile terminal and storage medium

Similar Documents

Publication Publication Date Title
CN102572833B (en) A kind of holding successional method, system and device of customer service
KR101833841B1 (en) Method for distributing data to wireless local area network, terminal, and network device
CN102860078B (en) Failure event report correlation for distributed ran self-organization
CN102685785B (en) The method and apparatus of radio resource control RRC connection re-establishment
CN103262608B (en) A kind of method for handover control, Apparatus and system
CN102395175B (en) A kind of PLMN system of selection and mobile terminal
CN108243469A (en) User mobility method and apparatus
US10972971B2 (en) Access point handover method in wireless communications, network control node, and user equipment
CN109151921A (en) Cell measurement configuration method and device
CN102932857B (en) Radio resource control (RRC) connection recovery method, base station and terminal
EP2806676B1 (en) Method for analyzing cause of link failure and devices thereof
US20230098825A1 (en) Short message service ability updating method, device and apparatus
CN106454973A (en) Method and device for switching AP (Access Point) in Wi-Fi network
CN108696872A (en) A kind of reorientation method and device
CN106376015A (en) Selection method and device for re-establishing cell in network sharing
CN103797854B (en) Wireless connection restoration methods, mobile communication system, user equipment and base station
CN109548037A (en) A kind of control method, distributed unit, centralized unit and storage medium
CN110312259A (en) Pseudo-base station recognition methods, device, terminal and storage medium
CN107295559A (en) Terminal roaming management method and access control equipment
CN102547764B (en) Method, system and device for improving mobile robustness
CN105792301B (en) A kind of terminal of handover network, method and system
CN103379572B (en) The method and apparatus for fleeing from current service cell
CN108616939A (en) A kind of radio resource control RRC re-establishes treating method and apparatus
CN106713522A (en) Wireless fidelity (Wi-Fi) connection method and mobile terminal
CN107438266A (en) Wireless link reconstruction method, device and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170222

RJ01 Rejection of invention patent application after publication