CN109041173A - A kind of connection method, device and terminal - Google Patents
A kind of connection method, device and terminal Download PDFInfo
- Publication number
- CN109041173A CN109041173A CN201811147204.2A CN201811147204A CN109041173A CN 109041173 A CN109041173 A CN 109041173A CN 201811147204 A CN201811147204 A CN 201811147204A CN 109041173 A CN109041173 A CN 109041173A
- Authority
- CN
- China
- Prior art keywords
- hiding
- time
- chosen
- connection
- choose
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/20—Selecting an access point
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
Abstract
This application involves fields of communication technology.This application provides a kind of connection method, device and terminal, which includes: to record the time connecting with the hiding AP after connecting with hiding AP;According to the time being connect with the hiding AP, the hiding AP having connected is ranked up;According to the sequence to the hiding AP having connected, chooses one or more being most recently connected and hide AP;Scan one or more the described hiding AP chosen.The application considerably increases the success rate that the hiding AP of connection is wanted in connection.
Description
Technical field
This application involves fields of communication technology, in particular to a kind of connection method, device and terminal.
Background technique
Wireless Fidelity (Wireless Fidelity, Wi-Fi) is brought great convenience to the work and life of people, is answered
With more more and more universal.Access point (Access Point, AP) is the access point of wireless network, is commonly called as " hot spot ", AP can be created
Wi-Fi network.
It in order to increase the safety of Wi-Fi network, can set hiding for AP, that is, make not including in the broadcast of AP
Service set (Service Set Identifier, SSID) information.
Android (Android) system, which scans the number for hiding AP, at present maximum limitation, is being more than maximum scan
In the case where number, may result in the hiding AP for wanting to connect can not be scanned, and lead to not connect.
Summary of the invention
This application provides a kind of connection method, device and terminal, the scheme of the application considerably increases and wants connection
Hiding AP establish the success rate of connection.
In a first aspect, this application provides a kind of connection methods, comprising:
After connecting with hiding AP, the time connecting with the hiding AP is recorded;
According to the time being connect with the hiding AP, the hiding AP having connected is ranked up;
According to the sequence to the hiding AP having connected, chooses one or more being most recently connected and hide AP;
Scan one or more the described hiding AP chosen.
Wherein, further includes:
After being disconnected with the hiding AP, the time of record and the hiding AP disconnection;
The use of the hiding AP is calculated according to the time connecting with the hiding AP, with the hiding AP time disconnected
Time span;
It is sorted using time span to the hiding AP having connected according to described;
It chooses and hides AP using longest one or more of time span;
The hiding AP chosen is scanned, the hiding AP includes the hiding AP and root chosen according to the time of connection
According to the hiding AP for using time span to choose.
Wherein, the hiding AP that the scanning is chosen, the hiding AP include according to the selection of the time of connection
It hides AP and includes: according to the hiding AP for using time span to choose
The N number of hiding AP chosen is scanned, N number of hiding AP includes the N/2 institute chosen according to the time of connection
It states hiding AP and according to the N/2 hiding AP for using time span to choose, N is even number.
Wherein, the hiding AP that the scanning is chosen, the hiding AP include according to the selection of the time of connection
Hide AP and according to the hiding AP for using time span to choose further include:
When the hiding AP chosen according to the time of connection has with according to the hiding AP for using time span to choose
When identical, the identical hiding AP is scanned.
Wherein, it is described connect with hiding AP after, record with the hiding AP time connecting includes:
When connecting multiple with the first hiding AP, time connect with the described first hiding AP last time is recorded as and
The time of the first hiding AP connection.
Wherein, further includes:
Record the access times of the hiding AP;
It is sorted according to access times to the hiding AP having connected;
Choose one or more most described hiding AP of access times;
The hiding AP chosen is scanned, the hiding AP includes the hiding AP, the root chosen according to the time of connection
According to the hiding AP for using time span to choose and the hiding AP chosen according to access times.
Second aspect, present invention also provides a kind of attachment devices, comprising:
Recording unit, for recording the time connecting with the hiding AP after connecting with hiding AP;
Sequencing unit, for arranging the hiding AP having connected according to the time being connect with the hiding AP
Sequence;
Selection unit, for according to sequence to the hiding AP having connected, choose one be most recently connected or
Multiple hiding AP;
Scanning element, for scanning one or more the described hiding AP chosen.
It wherein, further include computing unit;
After the recording unit is also used to disconnect with the hiding AP, the time of record and the hiding AP disconnection;
The computing unit is used to calculate according to the time connecting with the hiding AP, with the hiding AP time disconnected
The use time span of the hiding AP;
The sequencing unit is also used to sort to the hiding AP having connected using time span according to described;
The selection unit, which is also used to choose, hides AP using longest one or more of time span;
The scanning element is used to scan the hiding AP chosen, and the hiding AP includes being chosen according to the time of connection
The hiding AP and according to use time span choose the hiding AP.
Wherein, the scanning element is used for:
The N number of hiding AP chosen is scanned, N number of hiding AP includes the N/2 institute chosen according to the time of connection
It states hiding AP and according to the N/2 hiding AP for using time span to choose, N is even number.
The third aspect, present invention also provides a kind of terminal, including memory, processor and storage are on a memory and can
The computer program run on a processor, the processor realize the step of any of the above-described the method when executing described program
Suddenly.
Fourth aspect, present invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, institute
State the step of any of the above-described the method is realized when computer program is executed by processor.
The application connection method has the following beneficial effects:
In the application connection method, is connected when hiding AP every time, record the time of connection, the time using connection is to having connected
The multiple hiding AP sequences taken over, one or more being most recently connected is chosen from sequence and hides AP, terminal scanning is hidden
When AP, one or more being most recently connected for scanning selection hides AP.Because this time user wants the hiding AP of connection very
May be multiple hiding AP for being most recently connected one of those, so the present embodiment is from the multiple hiding AP being most recently connected
It chooses hiding AP to be scanned, in the case where terminal, which scans hiding AP, maximum number limitation, considerably increases and connect with desired
The hiding AP connect establishes the success rate of connection.
Detailed description of the invention
Fig. 1 is the exemplary application schematic diagram of a scenario that terminal is connect with hiding AP;
Fig. 2 is the flow chart one of the application connection method;
Fig. 3 is the flowchart 2 of the application connection method;
Fig. 4 is the flow chart 3 of the application connection method;
Fig. 5 is the structural schematic diagram one of the application attachment device;
Fig. 6 is the structural schematic diagram two of the application attachment device.
Specific embodiment
The application is further introduced with reference to the accompanying drawings and examples.
In following introductions, term " first ", " second " only for descriptive purposes, and should not be understood as instruction or dark
Show relative importance.Following introductions provide multiple embodiments of the application, can replace or merge between different embodiments
Combination, therefore the application is it is also contemplated that all possible combinations comprising documented identical and/or different embodiments.Thus, such as
Fruit one embodiment include feature A, B, C, another embodiment include feature B, D, then the application also should be regarded as include containing
A, the every other possible combined embodiment of one or more of B, C, D, although the embodiment may be in the following contents
In have specific literature record.
In following introductions, statement " having ", " can have ", "comprising" and " comprising " or " may include " and " can be with
Including " indicate that there are corresponding feature (for example, elements of such as numerical value, function, operation or component etc), but be not excluded for depositing
In additional feature.
In following introductions, when an element (for example, first element) is referred to as " (operation or communication) is couple to " or " connects
Be connected to " another element (for example, second element) when, other elements can be directly coupled or connected, or may exist
Intermediary element (for example, third element).On the other hand, when an element (for example, first element) referred to as " is directly coupled to "
Or when " being directly connected to " another element (for example, second element), it should be appreciated that be not present intermediary element (for example, third element).
Following description provides example, and does not carry out to range, applicability described in claims or example
Limitation.The function and arrangement of the element of description can be made a change in the case where not departing from the range of teachings herein.Respectively
Various processes or component can suitably be omitted, substitute or be added to a example.Such as described method can be with described suitable
Sequence different sequence executes, and can add, omits or combine various steps.Furthermore, it is possible to will be retouched about some examples
The feature stated is combined in other examples.
Fig. 1 is the exemplary application schematic diagram of a scenario that terminal is connect with hiding AP, as shown in Figure 1, terminal 10 and access point
It is wireless connection between 20.Wherein, terminal 10 for example can be mobile phone, tablet computer, personal computer, notebook, desk-top meter
Calculation machine, server, personal digital assistant (Personal Digital Assistant, PDA), E-book reader, mobile doctor
Equipment, camera, wearable device, multimedia player etc. are treated, but not limited to this.Access point 20 is the access point of wireless network,
It is commonly called as " hot spot ", access point 20 can for example create Wi-Fi network.
After there is access point 20 service set SSID, user service set SSID is arranged to access point 20, access
Point 20 is write service set SSID in beacon (beacon), in the form of broadcast, every a beacon interval (beacon
Interval it) sends in the sky primary.Receive beacon terminal read beacon in service set SSID parameter, then
Service set SSID is presented on the interface of terminal, and user is it is seen that service set SSID, user click the service
Set identifier SSID, input password (if having saved password, not needing input password) can be connect with access point 20.
In order to increase the safety used, user can be set access point 20 be it is hiding, such access point 20 just becomes one
A hiding AP.Access point 20 is set as after hiding, the position SSID in beacon be it is empty, without any value, i.e. the transmission of access point 20
Broadcast in do not include SSID information, conceal SSID, such terminal 10 can not just read the value of SSID, terminal from beacon
The SSID of access point 20 will not be shown on 10 interface.As shown in Figure 1, if the scanning of terminal 10, which is arrived, is hidden access point 20, terminal
10 will connect with access point 20, it is necessary to which network name (SSID) and the network security for inputting access point 20 in terminal 10 are close
Key.
And current terminal, such as the terminal of installation Android (Android) system can will be searched when scanning hiding AP
All hiding AP be all issued to terminal scan service layer and driving (driver) layer.Since terminal scans the number of hiding AP
There is maximum limitation, so being generally impossible to scan all hiding AP, terminal can randomly choose N number of swept from all hiding AP
It retouches, this may result in the hiding AP that user wants to connect and can not be scanned.
In view of problem above, present applicant proposes a kind of connection method, device and terminals, when connecting hiding AP every time, note
The time for recording connection sorts to the multiple hiding AP having connected using the time of connection, chooses and be most recently connected from sequence
One or more hide AP, terminal scanning choose one or more being most recently connected hide AP.Because this time using
The hiding AP that connection is wanted at family be likely to the multiple hiding AP being most recently connected one of those, so the present embodiment is from nearest
It chooses hiding AP in the multiple hiding AP connected to be scanned, scanning hiding AP in terminal has the case where maximum number limitation
Under, considerably increase the success rate that connection is established with the hiding AP for wanting connection.
For the ease of the understanding of those skilled in the art, the application is by following embodiment to technical side provided by the present application
The specific implementation process of case is illustrated.
Embodiment one
Fig. 2 is the flow chart one of the application connection method, as shown in Fig. 2, the present embodiment connection method includes step 101,
After connecting with hiding AP, the time connecting with hiding AP is recorded;Step 103, according to the time being connect with hiding AP, to having connected
The hiding AP crossed is ranked up;Step 105, according to the sequence to the hiding AP having connected, choose one be most recently connected or
The multiple hiding AP of person;Step 107, one or more hiding AP of selection is scanned.Step 101-107 is described below.
Step 101, after connecting with hiding AP, the time connecting with hiding AP is recorded.
In some embodiments, as shown in Figs. 1-2, after terminal 10 is connect with hiding AP, when recording the connection with hiding AP
Between.Terminal 10 in different times may from different hiding AP connections because the location of user's different time may not
Together, such as the work hours are in office, After Hours go home, other places is gone to go on business sometimes, even the possible morning is 4 in office
Building meeting, afternoon have a meeting at 26 layers, in short, terminal 10 may need and different hiding AP connections in different times.
In this step, it after being connect every time with hiding AP, records and hides the time that AP is connect with this.Such as:
9 users of morning December 16 are connected to hiding AP1 in office, then when recording this connection with hiding AP1
Between 9 points of the morning of December 16;
December 16, afternoon, user went to Guangzhou to go on business, and at 5 points in afternoon December 16 is connected to the hiding AP2 in Guangzhou, then recorded
This time at 5 points in afternoon December 16 Connection Time of hiding AP2;
11 users of morning December 18 return to office, connect and hide AP1, then the record this time connection with hiding AP1
11 points of the morning of December 18 time;
December 18 afternoon, 7 users went back home, the hiding AP3 being connected in family, then record is this time with hiding AP3's
At 7 points in afternoon December 18 Connection Time;
Morning December 19,10 users had a meeting in 4 layers of meeting room, were connected to 4 layers of hiding AP4, then record this time with it is hidden
Hide 10 points of the morning of December 19 Connection Time of AP4;
Afternoon December 19,3 users had a meeting in 26 layers of meeting room, were connected to 26 layers of hiding AP5, then record this time with
Hide at 3 points in afternoon December 19 Connection Time of AP5;
December 19,6 pm user finished the meeting, and returned to office, was connected to the hiding AP1 of office, then recorded this time
With 6 pm December 19 Connection Time of hiding AP1.
In some embodiments, this step include: when connecting multiple with the first hiding AP, will be last with the first hiding AP
The time once connected is recorded as the time connecting with the first hiding AP.For example, in the above example, being had altogether with hiding AP1
Being connected to the 3 times: 1st Connection Time is 9 points of the morning of December 16;2nd Connection Time is 11 points of the morning of December 18;Third
The secondary Connection Time is 6 pm December 19, and 6 pm December 19 time of last time connection is recorded as and is hidden
The Connection Time of AP1.
Step 103, according to the time being connect with hiding AP, the hiding AP having connected is ranked up.
In some embodiments, as shown in Figs. 1-2, terminal 10 is according to the Connection Time for hiding AP with each, to having connected
The hiding AP sequence taken over.For example, in a step 101, having recorded and being hidden the time that AP is connect with each, in this step, press
It is ranked up (can also be according to the Connection Time by as far as nearly sequence, the application is without limitation), row from the near to the remote according to the Connection Time
Sequence result is as follows:
AP1 (6 pm December 19) is hidden, AP5 (at 3 points in afternoon December 19) is hidden, hides AP4 (on December 19
10 points of noon), hide AP3 (at 7 points in afternoon December 18), hide AP2 (at 5 points in afternoon December 16).
Step 105, it according to the sequence to the hiding AP having connected, chooses one or more being most recently connected and hides
AP。
In some embodiments, as shown in Figs. 1-2, terminal 10 is chosen most according to the sequence to the hiding AP having connected
One or more closely connected hides AP, specifically chooses how many hiding AP, can set according to actual needs.For example,
It in step 104, is sorted to the hiding AP connected, sequence is as follows:
AP1 (6 pm December 19) is hidden, AP5 (at 3 points in afternoon December 19) is hidden, hides AP4 (on December 19
10 points of noon), hide AP3 (at 7 points in afternoon December 18), hide AP2 (at 5 points in afternoon December 16).
In this step, a hiding AP being most recently connected can be chosen, that is, hides AP1;Nearest two can also be chosen
AP is hidden, that is, hides AP1 and hiding AP5;Three nearest hiding AP can also be chosen, that is, hides AP1, hide AP4 and hide
AP5;Nearest four hiding AP etc. can also be chosen, it is specific choose hide AP number can according to the actual situation depending on.
Step 107, one or more hiding AP of selection is scanned.
In some embodiments, as shown in Figs. 1-2, one or more hiding AP that the scanning of terminal 10 is chosen, such as eventually
The service set SSID of the hiding AP of selection is issued to scan service layer at end 10 and driving (driver) layer, terminal 10 scan
The hiding AP chosen.Such as when choosing hiding AP1, terminal 10, which scans, hides AP1;When choosing hiding AP1 and hiding AP5,
Terminal 10, which scans, hides AP1 and hiding AP5;When choosing hiding AP1, hiding AP4 and hiding AP5, the scanning of terminal 10 is hidden
AP1, AP4 and hiding AP5 is hidden.
In the present embodiment connection method, when connecting hiding AP every time, the time of connection is recorded, using the time of connection to
The multiple hiding AP sequences connected, one or more being most recently connected is chosen from sequence and hides AP, terminal scanning is hidden
When hiding AP, one or more being most recently connected for scanning selection hides AP.Because this time user wants the hiding AP of connection
Be likely to the multiple hiding AP being most recently connected one of those, so the present embodiment is from the multiple hiding AP being most recently connected
Middle selection is hidden AP and is scanned, and in the case where terminal, which scans hiding AP, maximum number limitation, considerably increases and wants
The hiding AP of connection establishes the success rate of connection.
Embodiment two
Fig. 3 is the flowchart 2 of the application connection method, as shown in figure 3, the present embodiment connection method includes step 201,
After connecting with hiding AP, the time connecting with hiding AP is recorded;After being disconnected with hiding AP, the time of record and hiding AP disconnection;
Step 202, the use time span of hiding AP is calculated according to the time connecting with hiding AP, with the time that hiding AP is disconnected;Step
Rapid 203, according to the time being connect with hiding AP, the hiding AP having connected is ranked up;According to use time span to
The hiding AP sequence connected;Step 205, according to the sequence to the hiding AP having connected, choose one be most recently connected or
The multiple hiding AP of person;It chooses and hides AP using longest one or more of time span;Step 207, hiding for selection is scanned
AP, hiding AP include according to the hiding AP of the time of connection selection and according to the hiding AP for using time span to choose.It is situated between below
The step that continues 201-207.
Step 201, after connecting with hiding AP, the time connecting with hiding AP is recorded;With hiding AP disconnect after, record with it is hidden
Hide the time that AP is disconnected.
In this step, after connecting with hiding AP, the time that record is connect with hiding AP is situated between in a step 101
It continues, please refers to related introduction.
After being disconnected with hiding AP, the time that record is disconnected with hiding AP, such as 10 users of morning December 19 are in 4 layers of meeting
Discuss room meeting, be connected to 4 layers of hiding AP4, then record this time with 10 points of the morning of December 19 Connection Time of hiding AP4;In
It 12 points of noon, finishes the meeting, user leaves 4 layers of meeting room, and terminal 10 is disconnected with hiding AP4, and the record of terminal 10 and hiding AP are disconnected
The 12 noon on December 19 time opened.
Step 202, hiding AP is calculated according to the time connecting with hiding AP, with the time that hiding AP is disconnected uses the time
Length.
In some embodiments, as shown in figure 3, what terminal 10 was disconnected according to the time connecting with hiding AP, with hiding AP
Time calculates use the time span for hiding AP, such as 10 points of the morning of December 19 Connection Time of terminal 10 and hiding AP4, end
The 12 noon on December 19 time that end 10 and hiding AP4 is disconnected, the use of hiding AP4 can be calculated according to the two times
Time span is 2 hours.
Step 203, according to the time being connect with hiding AP, the hiding AP having connected is ranked up;When according to using
Between length sort to the hiding AP that had connected.
In this step, according to the time being connect with hiding AP, the hiding AP having connected is ranked up in step 103
In be introduced, please refer to.
In some embodiments, as shown in figure 3, terminal 10 is according to using time span to arrange the hiding AP that had connected
Sequence, such as using time span sort (can also sort from short to long, the application is without limitation) from long to short and is as follows: it hides
AP3 (12 hours), AP1 (6 hours) are hidden, AP5 (3 hours) is hidden, hides AP4 (2 hours), hides AP2 (1 hour).
Step 205, it according to the sequence to the hiding AP having connected, chooses one or more being most recently connected and hides
AP;It chooses and hides AP using longest one or more of time span.
In this step, according to the sequence to the hiding AP having connected, chooses one or more being most recently connected and hide
AP is introduced in step 105, is please referred to.
In some embodiments, longest one or more of time span is used to hide as shown in figure 3, terminal 10 is chosen
AP, for example, can choose using the longest hiding AP3 of time span;It can also choose hidden using time span longest two
AP is hidden, that is, hides AP3 and hiding AP1;It can also choose using time longest three hiding AP, that is, hide AP3, hide AP1
With hiding AP5.
Step 207, the hiding AP of selection is scanned, hiding AP includes the hiding AP chosen according to the time of connection and according to making
The hiding AP chosen with time span.
As shown in figure 3, in some embodiments, the hiding AP that 10 scanning step 205 of terminal is chosen, hiding AP includes basis
Hiding AP that time of connection is chosen and according to the hiding AP for using time span to choose, according to hiding of choosing of the time of connection
AP number can be set according to the actual situation according to the hiding AP number for using time span to choose.For example, terminal 10 scans
N number of hiding AP that step 205 is chosen, N number of hiding AP include hiding AP of N/2 chosen according to the time of connection and according to using
The hiding AP of the N/2 that time span is chosen, N is even number, that is to say, that the hiding AP that is chosen according to the time of connection and according to making
The hiding AP number chosen with time span is equal.
In some embodiments, when the hiding AP chosen according to the time of connection with according to use time span choose it is hidden
When hiding AP has identical, identical hiding AP is scanned.For example, including hiding AP1 according to the hiding AP that the time of connection is chosen, hiding
AP4, AP5 is hidden, according to the hiding AP for using time span to choose including hiding AP3, hiding AP1, hiding AP5, identical portion
It is divided into hiding AP1 and hiding AP5, then hiding AP1 can be chosen and hiding AP5 is scanned, on the one hand can increases in this way
The success rate that the hiding AP of connection is wanted in connection, on the other hand decreases the number for scanning and hiding AP, more can be suitably used for sweeping
Retouch the scene that hiding AP has maximum number to limit.
In the present embodiment connection method, when connecting hiding AP every time, the time of connection is recorded, after being disconnected with hiding AP, note
The time that record is disconnected with hiding AP;The use time span for hiding AP is calculated with the time disconnected according to connection;Utilize connection
Time and sorted using time span to the multiple hiding AP having connected, chosen from sequence one be most recently connected or
Multiple hiding AP choose and hide AP using longest one or more of time span;Terminal scans when hiding AP in scanning
The hiding AP that one step is chosen.Because this time user want connection hiding AP be likely to the multiple hiding AP being most recently connected its
In one, be also likely to be user have used time longest multiple hiding AP one of those, so the present embodiment is whole
It holds from the multiple hiding AP being most recently connected and is chosen in longest multiple hiding AP using the time and is scanned, scanned in terminal
In the case that hiding AP has maximum number limitation, the success rate that connection is established with the hiding AP for wanting connection is considerably increased.
Embodiment three
Fig. 4 is the flow chart 3 of the application connection method, as shown in figure 4, the present embodiment connection method includes step 301,
After connecting with hiding AP, the time connecting with hiding AP is recorded;After being disconnected with hiding AP, the time of record and hiding AP disconnection;
Record the access times for hiding AP;Step 302, it is calculated according to the time being connect with hiding AP, with the time that hiding AP is disconnected hidden
Hide the use time span of AP;Step 303, according to the time being connect with hiding AP, the hiding AP having connected is ranked up;
According to using time span to sort the hiding AP that had connected;It is sorted according to access times to the hiding AP having connected;Step
Rapid 305, according to the sequence to the hiding AP having connected, chooses one or more being most recently connected and hide AP;It chooses and uses
Longest one or more of time span hides AP;Choose one or more most hiding AP of access times;Step
307, scan the hiding AP of selection, hiding AP includes the hiding AP chosen according to the time of connection, according to using time span to select
The hiding AP taken the and hiding AP chosen according to access times.Step 301-307, the part in step 301-307 is described below
Content was introduced in step 201-207, and related content please refers to the introduction of step 201-207, is mainly introduced and is walked below
The difference of rapid 201-207.
Step 301, after connecting with hiding AP, the time connecting with hiding AP is recorded;With hiding AP disconnect after, record with it is hidden
Hide the time that AP is disconnected;Record the access times for hiding AP.
In some embodiments, the access times for hiding AP are recorded, are used 3 times for example, hiding AP1, AP2 is hidden and uses 1
It is secondary, it hides AP3 and uses 1 time, hide AP4 and use 1 time, hide AP5 and use 1 time.
Step 302, hiding AP is calculated according to the time connecting with hiding AP, with the time that hiding AP is disconnected uses the time
Length.
This step is essentially identical with step 202, please refers to.
Step 303, according to the time being connect with hiding AP, the hiding AP having connected is ranked up;When according to using
Between length sort to the hiding AP that had connected;It is sorted according to access times to the hiding AP having connected.
In some embodiments, terminal 10 sorts to the hiding AP having connected according to access times, such as hiding AP1 makes
It with 3 times, hides AP2 and uses 1 time, hide AP3 and use 1 time, hide AP4 and use 1 time, hide AP5 and use 1 time.
Step 305, it according to the sequence to the hiding AP having connected, chooses one or more being most recently connected and hides
AP;It chooses and hides AP using longest one or more of time span;Choose access times it is most one or more is hidden
Hide AP.
In some embodiments, terminal 10 chooses one or more most hiding AP of access times, such as selection makes
With the most hiding AP1 of number, two most hiding AP of access times can also be chosen, that is, hide AP1 and hiding AP3.When
Hide AP2, hide AP3, hide AP4, hide AP5 access times it is equal when, can at random from hiding AP2, hide AP3, hide
AP4, it hides in AP5 and chooses, can also be selected from hiding AP2, hiding AP3, hiding AP4, hiding AP5 according to the time of connection
Take, can also according to use time span from hiding AP2, hide AP3, hide AP4, hide AP5 in choose.
Step 307, the hiding AP of selection is scanned, hiding AP includes making according to the hiding AP of the time of connection selection, basis
The hiding AP chosen with time span the and hiding AP chosen according to access times.
In some embodiments, according to the time of connection choose hiding AP, according to use time span choose hide
The ratio of quantity may be set according to actual conditions between AP and the hiding AP chosen according to access times.
The connection method of the present embodiment also records the access times for hiding AP in addition to having the effect of embodiment two;According to
Access times sort to the hiding AP having connected;Choose one or more most hiding AP of access times;When scanning, no
Only include the hiding AP chosen according to the time of connection, according to the hiding AP for using time span to choose, further includes according to using
The hiding AP that number is chosen, because the hiding AP of access times at most is also likely to be that this user wants the hiding AP connected,
Therefore the present embodiment further increases the success rate that connection is established with the hiding AP for wanting connection.
Present invention also provides attachment devices, as shown in figure 5, the application attachment device includes:
Recording unit 31, for recording the time connecting with hiding AP after connecting with hiding AP;
Sequencing unit 33, for being ranked up to the hiding AP having connected according to the time being connect with hiding AP;
Selection unit 35, for choosing one be most recently connected or more according to the sequence to the hiding AP having connected
A hiding AP;
Scanning element 37 hides AP for scanning one or more chosen.
Fig. 6 is the structural schematic diagram two of the application attachment device, as shown in fig. 6, the present embodiment attachment device further includes meter
Calculate unit 32;
After recording unit 31 is also used to disconnect with hiding AP, the time of record and hiding AP disconnection;
Computing unit 32 is used for according to the time connecting with hiding AP, calculates with the time that hiding AP is disconnected and hide making for AP
Use time span;
Sequencing unit 33 is also used to according to the hiding AP sequence for using time span to having connected;
Selection unit 35, which is also used to choose, hides AP using longest one or more of time span;
Scanning element 37 be used for scan choose hiding AP, hiding AP include according to the time of connection choose hiding AP with
According to the hiding AP for using time span to choose.
Optionally, scanning element 37 is used for:
The N number of hiding AP chosen is scanned, N number of hiding AP includes the N/2 hiding AP and root chosen according to the time of connection
According to N/2 that use time span to choose hiding AP, N is even number.
Optionally, scanning element 37 is also used to:
When the hiding AP chosen according to the time of connection is with having identical according to the hiding AP for using time span to choose, sweep
Retouch identical hiding AP.
Optionally, recording unit 31 is also used to:
When connecting multiple with the first hiding AP, the time connecting with the first hiding AP last time is recorded as and first
Hide the time of AP connection.
Optionally, recording unit 31 is also used to record the access times of hiding AP;
Sequencing unit 33 is also used to sort to the hiding AP having connected according to access times;
Selection unit 35 is also used to choose one or more most hiding AP of access times;
Scanning element 37 is also used to scan the hiding AP of selection, and hiding AP includes hiding according to the selection of the time of connection
AP, according to use time span choose hiding AP and according to access times choose hiding AP.
In this specification, for attachment device embodiment, content and connection method embodiment are essentially identical, related
Place refers to the introduction of connection method embodiment.
Those skilled in the art can be understood that the technical solution of the application can be come by software and/or hardware
It realizes." unit " and " module " in this specification refers to complete independently or cooperates with other component complete specific function
Software and/or hardware, wherein hardware for example can be FPGA (Field-ProgrammaBLE Gate Array, scene can compile
Journey gate array), IC (Integrated Circuit, integrated circuit) etc..
Unit and/or module are managed everywhere in the application, can pass through the analog circuit reality of realization function described herein
It is existing, it can also be realized by executing the software of function described herein.
Present invention also provides a kind of terminal, including memory, processor and storage are on a memory and can be in processor
The step of computer program of upper operation, processor realizes the above method when executing program.
Present invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, which is located
Manage the step of realizing the above method when device executes.Wherein, computer readable storage medium can include but is not limited to any type
Disk, including floppy disk, CD, DVD, CD-ROM, mini drive and magneto-optic disk, ROM, RAM, EPROM, EEPROM, DRAM,
VRAM, flash memory device, magnetic or optical card, nanosystems (including molecular memory IC), or be suitable for store instruction and/
Or any kind of medium or equipment of data.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it
Its mode is realized.The apparatus embodiments described above are merely exemplary, 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.
Each functional unit in each embodiment of the application can be fully integrated in one processing unit, be also possible to each
Unit can also be integrated in one unit individually as a 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.
Described above is only preferred embodiment of the present application, is not intended to limit this application, for the skill of this field
For art personnel, various changes and changes are possible in this application.Within the spirit and principles of this application, made any to repair
Change, equivalent replacement, improvement etc., should be included within the scope of protection of this application.
Claims (11)
1. a kind of connection method characterized by comprising
After connecting with hiding AP, the time connecting with the hiding AP is recorded;
According to the time being connect with the hiding AP, the hiding AP having connected is ranked up;
According to the sequence to the hiding AP having connected, chooses one or more being most recently connected and hide AP;
Scan one or more the described hiding AP chosen.
2. connection method according to claim 1, which is characterized in that further include:
After being disconnected with the hiding AP, the time of record and the hiding AP disconnection;
The hiding AP is calculated according to the time connecting with the hiding AP, with the hiding AP time disconnected uses the time
Length;
It is sorted using time span to the hiding AP having connected according to described;
It chooses and hides AP using longest one or more of time span;
Scan the hiding AP chosen, the hiding AP includes the hiding AP chosen according to the time of connection and according to making
The hiding AP chosen with time span.
3. connection method according to claim 2, which is characterized in that the hiding AP that the scanning is chosen, it is described hidden
Hiding AP include according to the time of connection choose the hiding AP and according to use time span choose the hiding AP include:
The N number of hiding AP chosen is scanned, N number of hiding AP includes a described hidden according to the N/2 of the time of connection selection
It hides AP and according to the N/2 hiding AP for using time span to choose, N is even number.
4. connection method according to claim 2, which is characterized in that the hiding AP that the scanning is chosen, it is described hidden
Hiding AP includes the hiding AP chosen according to the time of connection and is also wrapped according to the hiding AP for using time span to choose
It includes:
When the hiding AP chosen according to the time of connection is identical as according to using the hiding AP of time span selection to have
When, scan the identical hiding AP.
5. connection method described in any one of -4 according to claim 1, which is characterized in that it is described connect with hiding AP after, note
It records with the hiding AP time connecting and includes:
When connecting multiple with the first hiding AP, by the time being connect with the described first hiding AP last time be recorded as with it is described
The time of first hiding AP connection.
6. the connection method according to any one of claim 2-4, which is characterized in that further include:
Record the access times of the hiding AP;
It is sorted according to access times to the hiding AP having connected;
Choose one or more most described hiding AP of access times;
The hiding AP chosen is scanned, the hiding AP includes making according to the hiding AP of the time of connection selection, basis
The hiding AP chosen with time span the and hiding AP chosen according to access times.
7. a kind of attachment device characterized by comprising
Recording unit, for recording the time connecting with the hiding AP after connecting with hiding AP;
Sequencing unit, for being ranked up to the hiding AP having connected according to the time being connect with the hiding AP;
Selection unit, for choosing one or more being most recently connected according to the sequence to the hiding AP having connected
Hide AP;
Scanning element, for scanning one or more the described hiding AP chosen.
8. attachment device according to claim 7, which is characterized in that further include computing unit;
After the recording unit is also used to disconnect with the hiding AP, the time of record and the hiding AP disconnection;
Described in the computing unit is used to calculate according to the time connecting with the hiding AP, with the hiding AP time disconnected
Hide the use time span of AP;
The sequencing unit is also used to sort to the hiding AP having connected using time span according to described;
The selection unit, which is also used to choose, hides AP using longest one or more of time span;
The scanning element is used to scan the hiding AP chosen, and the hiding AP includes the institute chosen according to the time of connection
State hiding AP and according to the hiding AP for using time span to choose.
9. attachment device according to claim 8, which is characterized in that the scanning element is used for:
The N number of hiding AP chosen is scanned, N number of hiding AP includes a described hidden according to the N/2 of the time of connection selection
It hides AP and according to the N/2 hiding AP for using time span to choose, N is even number.
10. a kind of terminal including memory, processor and stores the computer journey that can be run on a memory and on a processor
Sequence, which is characterized in that the processor realizes the step of any one of claim 1-6 the method when executing described program
Suddenly.
11. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of any one of claim 1-6 the method is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811147204.2A CN109041173A (en) | 2018-09-29 | 2018-09-29 | A kind of connection method, device and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811147204.2A CN109041173A (en) | 2018-09-29 | 2018-09-29 | A kind of connection method, device and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109041173A true CN109041173A (en) | 2018-12-18 |
Family
ID=64615000
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811147204.2A Pending CN109041173A (en) | 2018-09-29 | 2018-09-29 | A kind of connection method, device and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109041173A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105144608A (en) * | 2013-04-25 | 2015-12-09 | Lg电子株式会社 | Method and apparatus for transmitting traffic indication in wireless communication system |
CN105246131A (en) * | 2015-09-29 | 2016-01-13 | 东软集团股份有限公司 | Method and device for connecting terminal with AP (Wireless Access Point) |
CN105491642A (en) * | 2015-11-25 | 2016-04-13 | 小米科技有限责任公司 | Network connection method and device |
CN105636170A (en) * | 2015-12-25 | 2016-06-01 | 深圳Tcl数字技术有限公司 | Wireless hotspot scanning and displaying method and device |
CN106792984A (en) * | 2016-11-29 | 2017-05-31 | 努比亚技术有限公司 | A kind of WIFI hot spot scanning connection control method and terminal |
CN106973384A (en) * | 2017-02-20 | 2017-07-21 | 广东欧珀移动通信有限公司 | A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal |
CN107135529A (en) * | 2017-04-27 | 2017-09-05 | 深圳市友华通信技术有限公司 | Realize the method that AP and STA connects simultaneously synchronous AP configuration modifications automatically |
WO2018096106A1 (en) * | 2016-11-25 | 2018-05-31 | Bull Sas | Device for sharing internet connections |
-
2018
- 2018-09-29 CN CN201811147204.2A patent/CN109041173A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105144608A (en) * | 2013-04-25 | 2015-12-09 | Lg电子株式会社 | Method and apparatus for transmitting traffic indication in wireless communication system |
CN105246131A (en) * | 2015-09-29 | 2016-01-13 | 东软集团股份有限公司 | Method and device for connecting terminal with AP (Wireless Access Point) |
CN105491642A (en) * | 2015-11-25 | 2016-04-13 | 小米科技有限责任公司 | Network connection method and device |
CN105636170A (en) * | 2015-12-25 | 2016-06-01 | 深圳Tcl数字技术有限公司 | Wireless hotspot scanning and displaying method and device |
WO2018096106A1 (en) * | 2016-11-25 | 2018-05-31 | Bull Sas | Device for sharing internet connections |
CN106792984A (en) * | 2016-11-29 | 2017-05-31 | 努比亚技术有限公司 | A kind of WIFI hot spot scanning connection control method and terminal |
CN106973384A (en) * | 2017-02-20 | 2017-07-21 | 广东欧珀移动通信有限公司 | A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal |
CN107135529A (en) * | 2017-04-27 | 2017-09-05 | 深圳市友华通信技术有限公司 | Realize the method that AP and STA connects simultaneously synchronous AP configuration modifications automatically |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11568338B2 (en) | Task map providing apparatus and method thereof | |
van de Kaa et al. | Factors for winning format battles: A comparative case study | |
US20120265814A1 (en) | Software Application for Managing Personal Matters and Personal Interactions through a Personal Network | |
CN105872178A (en) | Contact person information sharing method and mobile terminal | |
US9633057B2 (en) | Method and system for collecting, searching and determining the strength of contacts from a mobile contact list | |
CN103095900A (en) | Information integration method in cellphone and cellphone | |
CN105989102A (en) | Method and device for deleting backup data | |
CN114661164A (en) | Meta-universe technology-based display equipment correlation method | |
CN103874019A (en) | Voice interaction method and device | |
CN114780301B (en) | Disaster recovery method and system supporting multi-cloud production environment | |
CN106231586A (en) | A kind of multi-card terminal and communication means thereof | |
CN104967732A (en) | Information processing method and electronic device | |
CN103209166A (en) | Mobile phone address book sharing system and method | |
CN109348258A (en) | The anti-brush method, apparatus of user's interaction, server and medium based on live streaming platform | |
KR20180081021A (en) | Method and apparatus for assisting strategy map management based on todo-assessment item | |
CN106331891A (en) | Information interaction method and electronic device | |
CN110190975A (en) | One kind referring to people's recommended method, device, terminal device and storage medium | |
KR100718873B1 (en) | Method for auto-management of an address directory and system | |
CN109041173A (en) | A kind of connection method, device and terminal | |
CN108648017A (en) | It is easy to user demand matching process, device, equipment and the storage medium of extension | |
US11907303B2 (en) | Job candidate listing from multiple sources | |
CN106161575A (en) | User matching method and device | |
CN103391635B (en) | Run the method for storage device and a kind of wireless memory apparatus | |
CN106033296A (en) | A contact search method and device | |
CN109618038A (en) | A kind of contact person's adding method, mobile terminal and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181218 |
|
RJ01 | Rejection of invention patent application after publication |