CN109618421A - A kind of method and device, terminal, storage medium reconnecting AP - Google Patents

A kind of method and device, terminal, storage medium reconnecting AP Download PDF

Info

Publication number
CN109618421A
CN109618421A CN201910032986.3A CN201910032986A CN109618421A CN 109618421 A CN109618421 A CN 109618421A CN 201910032986 A CN201910032986 A CN 201910032986A CN 109618421 A CN109618421 A CN 109618421A
Authority
CN
China
Prior art keywords
candidate
terminal
score value
target
connecting quantity
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
CN201910032986.3A
Other languages
Chinese (zh)
Other versions
CN109618421B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910032986.3A priority Critical patent/CN109618421B/en
Publication of CN109618421A publication Critical patent/CN109618421A/en
Application granted granted Critical
Publication of CN109618421B publication Critical patent/CN109618421B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment
    • 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
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

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

Abstract

The embodiment of the present application discloses a kind of method and device, terminal, storage medium for reconnecting AP, wherein, the described method includes: if it is determined that being obtained in the candidate AP set that scanning obtains, the numerical value of at least two Connecting quantities of each candidate AP when needing to reconnect AP;The Connecting quantity is the parameter for influencing the connective stability between the terminal and corresponding candidate AP;The numerical value of each Connecting quantity of each candidate AP is converted into corresponding score value according to corresponding transformation rule;The score value of each Connecting quantity based on each candidate AP determines target AP from candidate AP set;Connection request is sent to the target AP, the connection request establishes connection with the target AP for requesting.

Description

A kind of method and device, terminal, storage medium reconnecting AP
Technical field
The invention relates to electronic technology, relate to, but are not limited to a kind of method and device for reconnecting AP, terminal, Storage medium.
Background technique
Under complex environment, especially in extended service set (Extended Service Set, ESS) network, because interference or Other reasons, website (Station, STA) be easy by Deauth package block with current service access point (Access Point, AP the connection between), frequently goes offline so as to cause STA.
Currently, each candidate AP in the candidate AP set that STA after receiving Deauth package, is usually obtained according to scanning Signal strength, therefrom select a suitable target AP, to complete AP reconnection function.Therefore, how to select one preferably Target AP, become current problem to be solved.
Summary of the invention
In view of this, the embodiment of the present application is solves the problems, such as present in the relevant technologies at least one and provide one kind again Connect method and device, the terminal, storage medium of AP.
The technical solution of the embodiment of the present application is achieved in that
In a first aspect, the embodiment of the present application provides a kind of method for reconnecting AP, the method is applied to terminal, described Method includes:
If it is determined that being obtained in the candidate AP set that scanning obtains, each candidate AP is at least when needing to reconnect AP The numerical value of two Connecting quantities;The Connecting quantity is the connective stability influenced between the terminal and corresponding candidate AP Parameter;
The numerical value of each Connecting quantity of each candidate AP is converted into corresponding according to corresponding transformation rule Score value;
The score value of each Connecting quantity based on each candidate AP determines target from candidate AP set AP;
Connection request is sent to the target AP, the connection request establishes connection with the target AP for requesting.
Second aspect, the embodiment of the present application provide a kind of device for reconnecting AP, comprising:
Module is obtained, is configured to if it is determined that being obtained in the candidate AP set that scanning obtains, often when needing to reconnect AP The numerical value of at least two Connecting quantities of one candidate AP;The Connecting quantity is influenced between described device and corresponding candidate AP Connective stability parameter;
Conversion module is configured to advise the numerical value of each Connecting quantity of each candidate AP according to corresponding conversion Then, it is converted into corresponding score value;
Determining module is configured to the score value of each Connecting quantity of each candidate AP, from the candidate AP Target AP is determined in set;
Sending module is configured to send connection request to the target AP, and the connection request is for requesting and the mesh Mark AP establishes connection.
The third aspect, the embodiment of the present application provide a kind of terminal, including memory and processor, and the memory is stored with The computer program that can be run on a processor, the processor execute the method for realizing above-mentioned reconnect AP when described program In step.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer program, The computer program realizes the step in the method for above-mentioned reconnect AP when being executed by processor.
It, being capable of numerical value based at least two Connecting quantities of each candidate AP and corresponding in the embodiment of the present application Score value carrys out selection target AP, in this way, after the terminal connects the target AP, the terminal and the target AP it Between connecting link be not easily disturbed, to enhance the connective stability of the terminal.
Detailed description of the invention
Fig. 1 is the composed structure schematic diagram of the embodiment of the present application network architecture;
Fig. 2 is the implementation process schematic diagram for the method that the embodiment of the present application reconnects AP;
Fig. 3 is the schematic diagram of the corresponding score mapping table of each Connecting quantity of the embodiment of the present application;
Fig. 4 is the embodiment of the present application display interface schematic diagram;
Fig. 5 is the composed structure schematic diagram for the device that the embodiment of the present application reconnects AP;
Fig. 6 is a kind of hardware entities schematic diagram of the embodiment of the present application terminal.
Specific embodiment
The technical solution of the application is further elaborated on reference to the accompanying drawings and examples.
The present embodiment first provides a kind of network architecture, and Fig. 1 is the composed structure schematic diagram of the embodiment of the present application network architecture, As shown in Figure 1, the network architecture includes multiple terminals 11 to 1N, multiple AP 21 to 2M and wireless network 31, wherein terminal 11 To 1N by establishing connection with an AP of the AP 21 into 2M, to be linked into wireless network 31, realize and wireless network 31 Between data interaction.In general, terminal can be various types of equipment for having and reconnecting AP ability, for example, institute Stating terminal may include mobile phone, tablet computer, desktop computer, personal digital assistant, navigator, digital telephone, visual telephone, TV Machine, sensing equipment etc. can also include personal computer, server or network equipment etc..It should be noted that in ability In domain, the terminal is also referred to as STA.
The present embodiment provides a kind of method for reconnecting AP, this method is applied to terminal, the function that this method is realized It can be realized by the processor caller code in terminal, certain program code can be stored in computer storage medium In, it is seen then that the terminal includes at least pocessor and storage media.
Fig. 2 is the implementation process schematic diagram for the method that the embodiment of the present application reconnects AP, as shown in Fig. 2, this method packet Step S201 is included to step S204:
S201, if it is determined that when needing to reconnect AP, obtain in the candidate AP set that scanning obtains, each candidate AP's The numerical value of at least two Connecting quantities;The Connecting quantity is the stable connection influenced between the terminal and corresponding candidate AP The parameter of property;
For example, if the signal strength (i.e. received signal strength) for the signal that terminal reception current service AP is sent is small In preset strength threshold value, it is determined that need to reconnect AP, the AP of reconnect is typically all in addition to the current service AP Other AP;For another example, if the terminal receives Deauth package, it is determined that need to reconnect AP.
It is to be appreciated that the parameter of the connective stability between the terminal and corresponding candidate AP is influenced, in general, Including at least following two: working frequency, the terminal of the candidate AP receives the reception when candidate AP sends signal The first success rate, the data of the candidate AP transmission speed of data are transmitted between signal strength, the terminal and the candidate AP Degree, the terminal connect the second success rate of the candidate AP;Wherein, the received signal strength be influence the terminal with it is right Answer the major parameter of the connective stability between AP.
S202, by the numerical value of each Connecting quantity of each candidate AP, according to corresponding transformation rule, be converted into pair The score value answered;
It should be noted that since different Connecting quantities is to the shadow of the connective stability between corresponding A P and the terminal The degree of sound is different, for example, the working frequency of the received signal strength and candidate AP are the main of the influence connective stability Parameter.Therefore, in practical applications, the transformation rule configured to each Connecting quantity is generally different, that is to say, that each Connecting quantity has corresponding transformation rule.
The score value of S203, each Connecting quantity based on each candidate AP are determined from candidate AP set Target AP;
It is to be appreciated that score value is higher, the connective stability between corresponding A P and the terminal is stronger.In other realities Apply in example, can based on the score value of each Connecting quantity of each candidate AP, determine corresponding candidate AP must score value, Be then based on each candidate AP must score value, from the candidate AP set in determine target AP, for example, must score value Highest candidate AP is determined as target AP.In this way, the terminal after establishing connection with target AP, can obtain preferably Connecting link quality.
S204, Xiang Suoshu target AP send connection request, and the connection request connects for requesting to establish with the target AP It connects.
In the embodiment of the present application, the score value of multiple Connecting quantities based on each candidate AP is gathered from candidate AP Middle selection target AP can obtain preferable connecting link to make the terminal after establishing connection with the target AP Quality.
The embodiment of the present application provides another method for reconnecting AP, and this method is applied to terminal, and the method comprising the steps of S301 to step S306:
S301, it is pre-loaded into the corresponding score mapping table of each Connecting quantity, the score mapping table is for recording correspondence Preset range belonging to the numerical value of Connecting quantity and the corresponding score value of the preset range;
Since influence degree of the different Connecting quantities to the connective stability between corresponding A P and the terminal is different, institute With when configuring corresponding score mapping table to each Connecting quantity, the configuration range of score value is different.For example, Fig. 3 is this Shen Please the corresponding score mapping table of each Connecting quantity of embodiment, as shown in figure 3, table 301 be the corresponding score of the working frequency Mapping table, table 302 are the corresponding score mapping table of the received signal strength, and table 303, which is that first success rate is corresponding, to be obtained Divide mapping table, table 304 is the corresponding score mapping table of the data transmission bauds, and table 305 is that second success rate is corresponding Score mapping table.
From figure 3, it can be seen that the corresponding score value configuration range of working frequency is 90 points -100 points, wherein work frequency The minimum of rate is scored at 90 points;The corresponding score value configuration range of received signal strength is 70 points -90 points, wherein receives signal The minimum of intensity is scored at 70 points;The corresponding score value configuration range of first success rate is 60 points -70 points, wherein the first success The minimum of rate is scored at 60 points;The corresponding score value configuration range of data transmission bauds is 50 points -60 points, wherein data transmission The minimum of speed is scored at 50 points;The corresponding score value configuration range of second success rate is 40 points -50 points, wherein the second success The minimum of rate is scored at 40 points;As can be seen that this is according to each Connecting quantity between the terminal and corresponding candidate AP The influence degree of connective stability, to the corresponding score value range of parameter configuration is correspondingly connected with, it is, according to influence degree Descending sequence, the minimum score value configured to each Connecting quantity are sequentially reduced.In this way, passing through step S303 and step When rapid S304 determines the score value of each Connecting quantity, it will be able to guarantee: the score value of the working frequency >=reception letter Score value >=first success rate score value >=data transmission bauds score value of number intensity >=the second one-tenth described The score value of power, so that the score value of each Connecting quantity be made to be more in line with actual conditions.
Certainly, in other embodiments, the configuration range of score value can also be identical, in this way, in implementation steps S305, It is needed when determining target AP from candidate AP set namely based on the score value of each Connecting quantity of each candidate AP Score value based on each Connecting quantity of each candidate AP and it to be correspondingly connected with the impact factor of parameter, determine corresponding wait That selects AP must score value;Then, based on each candidate AP must score value, from the candidate AP set in determine target AP;Its In, the impact factor is correspondingly connected with parameter to the connective stability between the terminal and corresponding candidate AP for characterizing Influence degree.For example, giving the working frequency, the received signal strength, first success rate, the data transmission bauds The impact factor being sequentially allocated with second success rate are as follows: 1.0,0.8,0.6,0.4 and 0.2.In this way, calculating each candidate AP must score value when, can first determine the score value of each Connecting quantity and the product of corresponding impact factor, then will wait That selects that the sum of products of all Connecting quantities of AP is determined as corresponding candidate AP must score value.
S302, if it is determined that when needing to reconnect AP, obtain in the candidate AP set that scanning obtains, each candidate AP's The numerical value of at least two Connecting quantities;
The numerical value of S303, each Connecting quantity based on each candidate AP, determined from corresponding score mapping table described in Target zone belonging to numerical value;
S304, it is based on the target zone, the score value for being correspondingly connected with parameter is determined from corresponding score mapping table;
For example, the working frequency of the candidate AP obtained is 5.725GHz, as shown in figure 3, from corresponding score mapping table 301 In, it can determine that the working frequency belongs to 5G frequency range, corresponding score value is 100 points.
Here, it should be noted that step S303 and step S304 is actually to implement step S202 in above-described embodiment A kind of example.
The score value of S305, each Connecting quantity based on each candidate AP are determined from candidate AP set Target AP;
S306, Xiang Suoshu target AP send connection request, and the connection request connects for requesting to establish with the target AP It connects.
The embodiment of the present application provides the another method for reconnecting AP, and this method is applied to terminal, and the method comprising the steps of S401 to step S405:
S401, if it is determined that when needing to reconnect AP, obtain in the candidate AP set that scanning obtains, each candidate AP's The numerical value of at least two Connecting quantities;The Connecting quantity is the stable connection influenced between the terminal and corresponding candidate AP The parameter of property;
S402, by the numerical value of each Connecting quantity of each candidate AP, according to corresponding transformation rule, be converted into pair The score value answered;
The score value of S403, each Connecting quantity based on each candidate AP determine the total score of corresponding candidate AP Value;
Here, it should be noted that when being configured to the corresponding score mapping table of each Connecting quantity, if each When the corresponding score value of Connecting quantity configures range difference, directly by the score value of all Connecting quantities of each candidate AP The sum of, be determined as corresponding candidate AP must score value;It, can if the corresponding score value configuration range of each Connecting quantity is identical First to determine the score value of each Connecting quantity and the product of corresponding impact factor, then by all Connecting quantities of candidate AP The sum of products be determined as corresponding candidate AP must score value.
S404, based on each candidate AP must score value, from the candidate AP set in determine target AP;
In general, be all must the highest candidate AP of score value be determined as target AP.It should be noted that step S403 It is actually a kind of example for implementing step S203 or step S305 in above-described embodiment with step S404.
S405, Xiang Suoshu target AP send connection request, and the connection request connects for requesting to establish with the target AP It connects.
The embodiment of the present application provides another method for reconnecting AP, and this method is applied to terminal, and the method comprising the steps of S501 to step S511:
S501, obtain the first transmission times, first transmission times be in preset time period the terminal to the time AP is selected to send the number of data;
S502, the first receive number is obtained, first receive number is that the terminal receives in record preset time period The number for the data that the candidate AP is sent;
S503, it is based on first transmission times and first receive number, determines first success rate;
It should be noted that first transmission times and first receive number be typically all the terminal in advance Recorded interactive information.When determining first success rate, these direct available interactive information, so that it is determined that described First success rate.For example, the ratio of first receive number and first transmission times can be determined as described first Success rate.
S504, obtain the second transmission times, second transmission times be in preset time period the terminal to the time AP is selected to send the number of connection request;
S505, the second receive number is obtained, second receive number is described in terminal reception described in preset time period Candidate AP sends the number of connection response;
S506, it is based on second transmission times and second receive number, determines second success rate;
Similarly, second transmission times and second receive number are typically also that the terminal is recorded in advance Interactive information.When determining second success rate, these direct available interactive information, so that it is determined that the second one-tenth described Power.For example, the ratio of second receive number and second transmission times can be determined as second success rate.
S507, first success rate and second success rate are saved;
It should be noted that in other embodiments, step S504 to step S506 can be first carried out, then execute step S501 to step S503, wherein when executing step S504 to step S506, do not limit the execution of step S504 and step S505 Sequentially;When executing step S501 to step S503, also do not limit step S501 and step S502 executes sequence.It is executing It after step S501 to step S507, does not need to be immediately performed following steps S508 to step S511, be needed again meeting When connecting the condition of AP, start to execute step S508 to step S511.
S508, if it is determined that when needing to reconnect AP, obtain in the candidate AP set that scanning obtains, each candidate AP's The numerical value of multiple Connecting quantities;Wherein, the Connecting quantity is including at least following two: the working frequency of the candidate AP, institute It states terminal and receives received signal strength when the candidate AP sends signal, the data transmission bauds of the candidate AP, described the One success rate and second success rate;
S509, by the numerical value of each Connecting quantity of each candidate AP, according to corresponding transformation rule, be converted into pair The score value answered;
The score value of S510, each Connecting quantity based on each candidate AP are determined from candidate AP set Target AP;
S511, Xiang Suoshu target AP send connection request, and the connection request connects for requesting to establish with the target AP It connects.
The embodiment of the present application provides another method for reconnecting AP, and this method is applied to terminal, and the method comprising the steps of S601 to step S608:
If S601, receiving attack message, to forbid generating disconnection notification, determination needs to reconnect AP, at this point, into Step S602;Wherein, the attack message is used to block the connection between the terminal and current service AP, the disconnection notification For notifying the user of the terminal, the terminal has been disconnected with the current service AP;
It should be noted that in practical applications, after receiving the attack message, not executing generation disconnection notification Program, but directly execute step S602, that is, obtain scanning obtain candidate AP set in each candidate AP at least two The numerical value of Connecting quantity.
In general, the attack message can be sent frequently, when the especially described attack message is Deauth package, greatly The Deauth package of amount may result in the terminal and frequently go offline, at this time if the terminal is receiving Deauth envelope every time After packet, disconnection notification is generated, and the disconnection notification is shown on the screen of the terminal, in this way, can not only consume institute The electricity of terminal is stated, also will affect the corresponding user's sense organ of the terminal.Therefore, after receiving the attack message, temporarily The disconnection notification is not generated, has not only saved the electric quantity consumption of the terminal in this way, also avoids frequently interfering the user.
S602, it obtains in the candidate AP set that scanning obtains, the numerical value of at least two Connecting quantities of each candidate AP;Institute Stating Connecting quantity is the parameter for influencing the connective stability between the terminal and corresponding candidate AP;
S603, by the numerical value of each Connecting quantity of each candidate AP, according to corresponding transformation rule, be converted into pair The score value answered;
The score value of S604, each Connecting quantity based on each candidate AP are determined from candidate AP set Target AP;
S605, Xiang Suoshu target AP send connection request, and the connection request connects for requesting to establish with the target AP It connects;
S606, determine whether to receive connection response in preset duration;If so, executing step S607;Otherwise, it executes Step S608;Wherein, for informing the terminal, the target AP is successfully established with the terminal to be connect the connection response.
It is to be appreciated that if being not received by the connection response in preset duration, illustrate the terminal with it is described Target AP establishes connection failure, at this point, just executing step S608, that is, disconnection notification is generated, and export the disconnection notification, with logical Know the user of the terminal, the terminal has been disconnected with current service AP;If receiving the company in preset duration Response is connect, illustrates that the terminal has been successfully established with the target AP and connect, at this moment just do not have to generate and exports the broken string Notice, to save the electric quantity consumption of the terminal.
S607, determination are successfully established with the target AP and connect;
S608, generate disconnection notification, and export the disconnection notification, to notify the user of the terminal, the terminal with Current service AP has been disconnected.
It should be noted that the mode that the terminal exports the disconnection notification is not limited here, for example, the terminal can To pass through disconnection notification described in voice broadcast, as shown in figure 4, can also be disconnected by being shown in the current interface 40 of the terminal Line notifies 401, and to inform the user of the terminal, the terminal has been disconnected with current service AP.It is to be appreciated that described Current service AP, it is as current to provide the AP of connection service for the terminal.
Under complex environment, especially in ESS network, because of interference or other reasons, STA is easy to be sent AP Deauth envelope Packet, so that the connection between STA and current service AP be made to be released.In traditional scheme, which can be uploaded to by STA The Deauth package is transferred to STA by WiFi linker (i.e. wpa_supplicant) again by kernel (Kernel), kernel Ccf layer (i.e. FWK layers), (exported to make STA that broken string behavior be presented on user interface (User Interface, UI) The disconnection notification), it causes a problem in that in this way, after receiving Deauth package, broken string behavior is presented on UI immediately, The power consumption for not only consuming STA, also makes user's sense organ bad.
If STA, after receiving the Deauth package, WIFI driving layer (i.e. WIFI driver layers) of STA is according to it Preceding linkage record is directly connected to a suitable target AP, and automatic recovery linkage function can be completed in this way.But problem at this time It is critical that how to select a suitable target AP so that STA is after linking objective AP, with the company between target AP Chain link road is more stable.
Based on this, in the embodiment of the present application, the WIFI of STA driving layer after receiving AP Deauth package directly on It is transmitted to upper layer, but searches suitable target AP in WIFI driving layer, and automatically initiate reconnection, to complete automatic recovery connection Function.For example, STA after receiving AP Deauth package, does not send out disconnection notification to kernel immediately, but, according to related item Part suitable target AP of selection one in AP scan list (the i.e. described candidate AP set) carries out line, while starting timing Device;Before timer reaches preset duration, if STA success establishes connection with target AP, cancel timer at this time;Otherwise, If STA does not still find suitable target AP when timer reaches preset duration, connect alternatively, STA and target AP is established Failure is connect, then reports disconnection notification to upper layer.
It should be noted that in other embodiments, according to correlated condition select in AP scan list one suitably Target AP can totally use marking mechanism, mainly can with reference to the AP in AP scan list whether be 5G channel, RSSI, it Before send and receive data transmission success rate (i.e. the first success rate described in above-described embodiment), select speed (i.e. above-mentioned reality Apply the data transmission bauds of candidate AP described in example), line success rate 3 times is (i.e. second described in above-described embodiment Success rate);Wherein, in the score value of each Connecting quantity, score value > RSSI score value > transmission success rate of 5G Score value selects score value > line success rate score value of speed.
Based on embodiment above-mentioned, the embodiment of the present application provides a kind of device for reconnecting AP, which is wrapped Each unit included by each module and each module included, can be realized by the processor in terminal;Certainly can also pass through Specific logic circuit is realized;In the process of implementation, processor can for central processing unit (CPU), microprocessor (MPU), Digital signal processor (DSP) or field programmable gate array (FPGA) etc..
Fig. 5 is the composed structure schematic diagram for the device that the embodiment of the present application reconnects AP, as shown in figure 5, described device 500 include:
Module 501 is obtained, is configured that if it is determined that obtaining the candidate AP set that scanning obtains when needing to reconnect AP In, the numerical value of at least two Connecting quantities of each candidate AP;The Connecting quantity is to influence described device 500 and corresponding time Select the parameter of the connective stability between AP;
Conversion module 502 is configured that by the numerical value of each Connecting quantity of each candidate AP, according to corresponding turn Rule is changed, corresponding score value is converted into;
First determining module 503 is configured that the score value of each Connecting quantity based on each candidate AP, from institute It states in candidate AP set and determines target AP;
Sending module 504 is configured that the target AP and sends connection request, and the connection request is for request and institute It states target AP and establishes connection.
In other embodiments, described device 500 further includes insmoding 505, described to insmod 505, is configured that pre- It is first loaded into the corresponding score mapping table of each Connecting quantity, the score mapping table is for recording the numerical value institute for being correspondingly connected with parameter The preset range of category and the corresponding score value of the preset range;Accordingly, conversion module 502 are configured that based on each candidate The numerical value of each Connecting quantity of AP determines target zone belonging to the numerical value from corresponding score mapping table;Based on institute Target zone is stated, the score value for being correspondingly connected with parameter is determined from corresponding score mapping table.
In other embodiments, the first determining module 503 is configured that each connection ginseng based on each candidate AP Several score value, determine corresponding candidate AP must score value;Based on each candidate AP must score value, from the candidate AP Target AP is determined in set.
In other embodiments, the Connecting quantity includes at least following two: the working frequency of the candidate AP, described Device 500 receives to be transmitted between received signal strength, described device 500 and the candidate AP when candidate AP sends signal First success rate of data, data transmission bauds, the described device 500 of the candidate AP connect the second success of the candidate AP Rate;
Accordingly, the score value of the working frequency >=received signal strength score value >=first success rate Score value >=data transmission bauds score value >=second success rate score value.
In other embodiments, described device 500 further includes the first acquisition module 506 and the second determining module 507;Its In,
First obtains module 506, is configured that and obtains the first transmission times, and first transmission times is preset time period Interior described device 500 sends the number of data to the candidate AP;
First obtains module 506, is additionally configured to: obtaining the first receive number, first receive number is that record is default Described device 500 receives the number for the data that the candidate AP is sent in period;
Second determining module 507 is configured that based on first transmission times and first receive number, determines institute State the first success rate.
In other embodiments, described device 500 further includes the second acquisition module 508 and third determining module 509;Its In,
Second obtains module 508, is configured that and obtains the second transmission times, and second transmission times is preset time period Interior described device 500 sends the number of connection request to the candidate AP;
Second obtains module 508, is additionally configured to: obtaining the second receive number, second receive number is preset time Described device 500 receives the number that the candidate AP sends connection response in section;
Third determining module 509 is configured that based on second transmission times and second receive number, determines institute State the second success rate.
In other embodiments, first determining module 503, is additionally configured to: if receiving attack message, determining is needed Reconnect AP;The attack message is used to block the connection between described device 500 and current service AP.
In other embodiments, described device 500 further includes disabled module 510, and disabled module 510 is configured that if connect The attack message is received, forbids generating disconnection notification, the disconnection notification is used to notify the user of described device 500, described Device 500 has been disconnected with the current service AP.
In other embodiments, described device 500 further include:
Generation module 511 is configured that if being not received by connection response in preset duration, generates disconnection notification, institute Connection response is stated for informing described device 500, the target AP is successfully established with described device 500 to be connect;
Output module 512 is configured that the output disconnection notification, to notify the user of described device 500, described device 500 have disconnected with current service AP.
The description of apparatus above embodiment, be with the description of above method embodiment it is similar, have same embodiment of the method Similar beneficial effect.For undisclosed technical detail in the application Installation practice, the application embodiment of the method is please referred to Description and understand.
It should be noted that in the embodiment of the present application, above-mentioned connect again if realized in the form of software function module The method for meeting AP, and when sold or used as an independent product, it also can store in a computer-readable storage medium In.Based on this understanding, the part that the technical solution of the embodiment of the present application substantially in other words contributes to the relevant technologies It can be embodied in the form of software products, which is stored in a storage medium, including several fingers It enables and using so that a terminal (can be personal computer, server or network equipment etc.) executes each implementation of the application The all or part of example the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read Only Memory, ROM), the various media that can store program code such as magnetic or disk.In this way, the embodiment of the present application does not limit It is combined in any specific hardware and software.
Accordingly, the embodiment of the present application provides a kind of terminal, and Fig. 6 is that a kind of hardware entities of the embodiment of the present application terminal are shown It is intended to, as shown in fig. 6, the hardware entities of the terminal 600 include: including memory 601 and processor 602, the memory 601 It is stored with the computer program that can be run on processor 602, the processor 602 realizes above-mentioned implementation when executing described program Step in the method for the reconnect AP provided in example.
Memory 601 is configured to store the instruction and application that can be performed by processor 602, can also cache device to be processed 602 and terminal 600 in each module it is to be processed or processed data (for example, image data, audio data, voice communication Data and video communication data), can by flash memory (FLASH) or random access storage device (Random Access Memory, RAM it) realizes.
Accordingly, the embodiment of the present application provides a kind of computer readable storage medium, is stored thereon with computer program, should Step in the method for the reconnect AP provided in above-described embodiment is provided when computer program is executed by processor.
It need to be noted that: the description of medium stored above and apparatus embodiments, with retouching for above method embodiment It is similar for stating, and has with embodiment of the method similar beneficial effect.For in the application storage medium and apparatus embodiments not The technical detail of disclosure please refers to the description of the application embodiment of the method and understands.
It should be understood that " one embodiment " or " embodiment " that specification is mentioned in the whole text mean it is related with embodiment A particular feature, structure, or characteristic includes at least one embodiment of the application.Therefore, occur everywhere in the whole instruction " in one embodiment " or " in one embodiment " not necessarily refer to identical embodiment.In addition, these specific features, knot Structure or characteristic can combine in any suitable manner in one or more embodiments.It should be understood that in the various implementations of the application In example, magnitude of the sequence numbers of the above procedures are not meant that the order of the execution order, the execution sequence Ying Yiqi function of each process It can be determined with internal logic, the implementation process without coping with the embodiment of the present application constitutes any restriction.Above-mentioned the embodiment of the present application Serial number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.Apparatus embodiments described above are merely indicative, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, such as: multiple units or components can combine, or It is desirably integrated into another system, or some features can be ignored or not executed.In addition, shown or discussed each composition portion Mutual coupling or direct-coupling or communication connection is divided to can be through some interfaces, the INDIRECT COUPLING of equipment or unit Or communication connection, it can be electrical, mechanical or other forms.
Above-mentioned unit as illustrated by the separation member, which can be or may not be, to be physically separated, aobvious as unit The component shown can be or may not be physical unit;Both it can be located in one place, and may be distributed over multiple network lists In member;Some or all of units can be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
In addition, each functional unit in each embodiment of the application can be fully integrated in one processing unit, it can also To be each unit individually as a unit, can also be integrated in one unit with two or more units;It is above-mentioned Integrated unit both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can store in computer-readable storage medium, which exists When execution, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes: movable storage device, read-only deposits The various media that can store program code such as reservoir (Read Only Memory, ROM), magnetic or disk.
If alternatively, the above-mentioned integrated unit of the application is realized in the form of software function module and as independent product When selling or using, it also can store in a computer readable storage medium.Based on this understanding, the application is implemented The technical solution of example substantially in other words can be embodied in the form of software products the part that the relevant technologies contribute, The computer software product is stored in a storage medium, including some instructions are used so that a terminal (can be individual Computer, server or network equipment etc. are also possible to mobile phone, tablet computer, desktop computer, personal digital assistant, navigation Instrument, digital telephone, visual telephone, television set, sensing equipment etc.) execute each embodiment the method for the application whole or portion Point.And storage medium above-mentioned includes: that movable storage device, ROM, magnetic or disk etc. are various can store program code Medium.
The above, only presently filed embodiment, but the protection scope of the application is not limited thereto, it is any to be familiar with Those skilled in the art within the technical scope of the present application, can easily think of the change or the replacement, and should all cover Within the protection scope of the application.Therefore, the protection scope of the application should be based on the protection scope of the described claims.

Claims (12)

1. a kind of method for reconnecting access point AP, which is characterized in that the method is applied to terminal, which comprises
If it is determined that being obtained in the candidate AP set that scanning obtains, at least two of each candidate AP when needing to reconnect AP The numerical value of Connecting quantity;The Connecting quantity is the ginseng for influencing the connective stability between the terminal and corresponding candidate AP Number;
The numerical value of each Connecting quantity of each candidate AP is converted into corresponding score according to corresponding transformation rule Value;
The score value of each Connecting quantity based on each candidate AP determines target AP from candidate AP set;
Connection request is sent to the target AP, the connection request establishes connection with the target AP for requesting.
2. the method according to claim 1, wherein the method also includes:
It is pre-loaded into the corresponding score mapping table of each Connecting quantity, the score mapping table is correspondingly connected with parameter for recording Preset range belonging to numerical value and the corresponding score value of the preset range;Accordingly,
The numerical value of each Connecting quantity by each candidate AP is converted into corresponding according to corresponding transformation rule Score value, comprising:
The numerical value of each Connecting quantity based on each candidate AP determines belonging to the numerical value from corresponding score mapping table Target zone;
Based on the target zone, the score value for being correspondingly connected with parameter is determined from corresponding score mapping table.
3. the method according to claim 1, wherein each Connecting quantity based on each candidate AP Score value, from the candidate AP set in determine target AP, comprising:
The score value of each Connecting quantity based on each candidate AP, determine corresponding candidate AP must score value;
Based on each candidate AP must score value, from the candidate AP set in determine target AP.
4. method according to any one of claims 1 to 3, which is characterized in that the Connecting quantity include at least it is following it Two: working frequency, the terminal of the candidate AP receives received signal strength when the candidate AP sends signal, the end The first success rate of data, the data transmission bauds of the candidate AP, the terminal is transmitted between end and the candidate AP to connect The second success rate of the candidate AP;
Accordingly, the score value of the working frequency >=received signal strength score value >=first success rate obtains Score value >=data transmission bauds score value >=second success rate score value.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
The first transmission times is obtained, first transmission times sends number to the candidate AP for the terminal in preset time period According to number;
The first receive number is obtained, first receive number is that the terminal receives the candidate AP in record preset time period The number of the data of transmission;
Based on first transmission times and first receive number, first success rate is determined.
6. according to the method described in claim 4, it is characterized in that, the method also includes:
The second transmission times is obtained, second transmission times is that the terminal connects to candidate AP transmission in preset time period Connect the number of request;
The second receive number is obtained, second receive number is that the terminal receives the candidate AP transmission in preset time period The number of connection response;
Based on second transmission times and second receive number, second success rate is determined.
7. method according to any one of claims 1 to 3, which is characterized in that the method also includes:
If receiving attack message, determination needs to reconnect AP;The attack message is for blocking the terminal and current Service the connection between AP.
8. the method according to the description of claim 7 is characterized in that the method also includes:
If receiving the attack message, forbid generating disconnection notification, the disconnection notification is used to notify the use of the terminal Family, the terminal have been disconnected with the current service AP.
9. the method according to the description of claim 7 is characterized in that the target AP send connection request after, it is described Method further include:
If being not received by connection response in preset duration, disconnection notification is generated, the connection response is described for informing Terminal, the target AP is successfully established with the terminal to be connect;
The disconnection notification is exported, to notify the user of the terminal, the terminal has been disconnected with current service AP.
10. a kind of device for reconnecting access point AP characterized by comprising
Module is obtained, is configured that if it is determined that acquisition scans in obtained candidate AP set, each when needing to reconnect AP The numerical value of at least two Connecting quantities of candidate AP;The Connecting quantity is influenced between described device and corresponding candidate AP The parameter of connective stability;
Conversion module, is configured that the numerical value of each Connecting quantity of each candidate AP, according to corresponding transformation rule, It is converted into corresponding score value;
Determining module is configured that the score value of each Connecting quantity based on each candidate AP, gathers from the candidate AP Middle determining target AP;
Sending module is configured that the target AP and sends connection request, and the connection request is for requesting and the target AP Establish connection.
11. a kind of terminal, including memory and processor, the memory is stored with the computer journey that can be run on a processor Sequence, which is characterized in that the processor realizes that any one of claim 1 to 9 is described and reconnects AP's when executing described program Step in method.
12. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt The step in any one of claim 1 to 9 method for reconnecting AP is realized when processor executes.
CN201910032986.3A 2019-01-14 2019-01-14 Method and device for reconnecting AP, terminal and storage medium Active CN109618421B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910032986.3A CN109618421B (en) 2019-01-14 2019-01-14 Method and device for reconnecting AP, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910032986.3A CN109618421B (en) 2019-01-14 2019-01-14 Method and device for reconnecting AP, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN109618421A true CN109618421A (en) 2019-04-12
CN109618421B CN109618421B (en) 2021-04-30

Family

ID=66018756

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910032986.3A Active CN109618421B (en) 2019-01-14 2019-01-14 Method and device for reconnecting AP, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109618421B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020238752A1 (en) * 2019-05-28 2020-12-03 菜鸟智能物流控股有限公司 Wireless access switching method, device and system, and electronic device
CN112672385A (en) * 2019-09-30 2021-04-16 广州慧睿思通科技股份有限公司 Device connection method, device, storage medium and device
CN113163407A (en) * 2021-05-24 2021-07-23 青岛中科英泰商用系统股份有限公司 Android device-based wifi communication security defense method and device

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022342A (en) * 2007-03-19 2007-08-22 杭州华为三康技术有限公司 Attack information processing method and device
CN101594695A (en) * 2008-05-30 2009-12-02 富士通株式会社 Wireless communication system, radio communication device, its method for disconnection process, storage medium
CN103874097A (en) * 2014-01-26 2014-06-18 上海自仪泰雷兹交通自动化系统有限公司 CBTC (communication based train control system) wireless communication system and method
KR101447469B1 (en) * 2013-12-31 2014-10-06 한국정보보호시스템(주) System and method of wireless intrusion prevention and wireless service
CN105307224A (en) * 2014-06-19 2016-02-03 中国移动通信集团公司 Method and device for intelligently switching terminal between access points and terminal
CN105491632A (en) * 2016-01-15 2016-04-13 北京小米移动软件有限公司 Wireless access point switching method and wireless access point switching device
CN106658484A (en) * 2016-11-15 2017-05-10 乐视控股(北京)有限公司 Method for preventing wireless network attacks, terminal and wireless access point
CN107241782A (en) * 2017-06-16 2017-10-10 广东欧珀移动通信有限公司 Method for network access, mobile terminal and computer-readable recording medium
CN107920359A (en) * 2017-07-01 2018-04-17 宇龙计算机通信科技(深圳)有限公司 Connection method, device and the user terminal of wireless access points
CN108055690A (en) * 2017-10-31 2018-05-18 深圳平安讯科技术有限公司 Wi-Fi hotspot recommends method, application server and computer readable storage medium
US20180310240A1 (en) * 2017-04-19 2018-10-25 Fortinet, Inc. Steering wireless local area network (wlan) clients
CN109040958A (en) * 2018-08-16 2018-12-18 Oppo广东移动通信有限公司 Method for connecting network, device, electronic equipment and computer readable storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022342A (en) * 2007-03-19 2007-08-22 杭州华为三康技术有限公司 Attack information processing method and device
CN101594695A (en) * 2008-05-30 2009-12-02 富士通株式会社 Wireless communication system, radio communication device, its method for disconnection process, storage medium
KR101447469B1 (en) * 2013-12-31 2014-10-06 한국정보보호시스템(주) System and method of wireless intrusion prevention and wireless service
CN103874097A (en) * 2014-01-26 2014-06-18 上海自仪泰雷兹交通自动化系统有限公司 CBTC (communication based train control system) wireless communication system and method
CN105307224A (en) * 2014-06-19 2016-02-03 中国移动通信集团公司 Method and device for intelligently switching terminal between access points and terminal
CN105491632A (en) * 2016-01-15 2016-04-13 北京小米移动软件有限公司 Wireless access point switching method and wireless access point switching device
CN106658484A (en) * 2016-11-15 2017-05-10 乐视控股(北京)有限公司 Method for preventing wireless network attacks, terminal and wireless access point
US20180310240A1 (en) * 2017-04-19 2018-10-25 Fortinet, Inc. Steering wireless local area network (wlan) clients
CN107241782A (en) * 2017-06-16 2017-10-10 广东欧珀移动通信有限公司 Method for network access, mobile terminal and computer-readable recording medium
CN107920359A (en) * 2017-07-01 2018-04-17 宇龙计算机通信科技(深圳)有限公司 Connection method, device and the user terminal of wireless access points
CN108055690A (en) * 2017-10-31 2018-05-18 深圳平安讯科技术有限公司 Wi-Fi hotspot recommends method, application server and computer readable storage medium
CN109040958A (en) * 2018-08-16 2018-12-18 Oppo广东移动通信有限公司 Method for connecting network, device, electronic equipment and computer readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020238752A1 (en) * 2019-05-28 2020-12-03 菜鸟智能物流控股有限公司 Wireless access switching method, device and system, and electronic device
CN112672385A (en) * 2019-09-30 2021-04-16 广州慧睿思通科技股份有限公司 Device connection method, device, storage medium and device
CN113163407A (en) * 2021-05-24 2021-07-23 青岛中科英泰商用系统股份有限公司 Android device-based wifi communication security defense method and device

Also Published As

Publication number Publication date
CN109618421B (en) 2021-04-30

Similar Documents

Publication Publication Date Title
CN109618421A (en) A kind of method and device, terminal, storage medium reconnecting AP
CN103412906B (en) Information transferring method and system
CN106101747A (en) A kind of barrage content processing method and application server, user terminal
CN110650255B (en) Method and device for editing color ring back tone, color ring back tone editing unit and storage medium
CN107483092A (en) antenna switching method, device and terminal
US20190124147A1 (en) Methods and Apparatus for Transmitting Service Information in a Neighborhood of Peer-to-Peer Communication Groups
CN104902295A (en) Intelligent TV business realization method, terminal device and system
CN107659850A (en) Media information processing method and device
CN106933839A (en) A kind of method for page jump and device
CN104662581A (en) Group management method and server in mobile social network service application
CN107147929A (en) Multiwindow method of outputting acoustic sound, television set and computer-readable recording medium
CN109861904A (en) Nametags display methods and device
CN107613091A (en) A kind of method and terminal for establishing communication
CN107508747A (en) Group communication method, server and the computer-readable storage medium of converged communication
WO2023125205A1 (en) Multi-device connection method, apparatus and system, and device and storage medium
WO2019015429A1 (en) Data transmission method, device, terminal and computer-readable storage medium
CN103108017A (en) Method and device for transmitting content
US9167084B2 (en) Apparatus and method for providing call connection notification to a caller by displaying public relation (PR) information of a callee
CN107493229A (en) Message group sending method, server and the computer-readable storage medium of converged communication
CN110109594B (en) Drawing data sharing method and device, storage medium and equipment
CN101442505A (en) Method and apparatus for implementing scene mode share
CN114816623A (en) Embedded interface rendering and communication system based on CEF kernel and UnrealEngine end
CN104092648A (en) File request method and device
CN103516566B (en) Method and system for realizing server controlling by home network equipment, and apparatuses
CN106330504A (en) Method for realizing application and service controller

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant