CN105246131A - Method and device for connecting terminal with AP (Wireless Access Point) - Google Patents

Method and device for connecting terminal with AP (Wireless Access Point) Download PDF

Info

Publication number
CN105246131A
CN105246131A CN201510633095.5A CN201510633095A CN105246131A CN 105246131 A CN105246131 A CN 105246131A CN 201510633095 A CN201510633095 A CN 201510633095A CN 105246131 A CN105246131 A CN 105246131A
Authority
CN
China
Prior art keywords
channel frequency
channel
connect hours
connect
recorded
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510633095.5A
Other languages
Chinese (zh)
Inventor
李旭东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Neusoft Corp
Original Assignee
Neusoft Corp
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 Neusoft Corp filed Critical Neusoft Corp
Priority to CN201510633095.5A priority Critical patent/CN105246131A/en
Publication of CN105246131A publication Critical patent/CN105246131A/en
Pending legal-status Critical Current

Links

Classifications

    • 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

Landscapes

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

Abstract

The invention discloses a method and a device for connecting a terminal with an AP (Wireless Access Point). The method comprises the following steps: recording channel frequencies of connected APs and corresponding last connection times; under the situation that one AP needs to be connected, screening one channel frequency of which the corresponding last connection time satisfies an extraction condition from the recorded channel frequencies to serve as a channel frequency to be scanned; scanning the screened channel frequency to determine a target AP; and establishing a connection with the target AP. During determination of the target AP, scanning of all channels is not needed, so that the range of the channels needing to be scanned is narrowed, and a high efficiency of scanning is ensured, thereby increasing the terminal-AP connection speed.

Description

Method and the device of AP is connected for terminal
Technical field
The present invention relates to internet arena, particularly, relate to a kind of method and the device that connect AP for terminal.
Background technology
At present, user the equipment of opening a terminal Wi-Fi (such as, automatically Wi-Fi is opened when being started by the switch on UI or terminal) after, terminal equipment jumps to certain channel and sends the ProbeRequest frame of 802.11, monitor Beacon frame and the ProbeResponse frame of AP transmission simultaneously, jump to next channel after collection information again and proceed scanning motion.Whole scanning process needs all to carry out single pass to the channel of all supports.Terminal equipment chooses certain AP again as target AP from scanning result, connects with target AP.
Summary of the invention
But, owing to needing all to carry out single pass to the channel of all supports, cause the speed of terminal connection AP lower, the requirement that terminal is connected with AP fast can not be met.
In view of this, order of the present invention is to provide a kind of method and the device that connect AP for terminal, to realize the object promoting the speed that terminal is connected with AP.
In in first of the embodiment of the present invention, provide a kind of method connecting AP for terminal.Described method comprises: record the AP (WirelessAccessPoint connected, wireless access points) channel frequency and last connect hours of correspondence, when needs connect AP, from recorded channel frequency, the last connect hours filtering out correspondence meets the channel frequency of extraction conditions as channel frequency to be scanned, scan to determine target AP to the channel frequency filtered out, connect with described target AP.
In a kind of possible execution mode in first of the embodiment of the present invention, described method also comprises: the SSID (ServiceSetIdentifier recording the AP connected, service set), cipher mode, password, after determining target AP, the SSID of described target AP, cipher mode and password is found out from the SSID of the AP of recorded connection, cipher mode, password, described connecting with target AP comprises, according to the SSID of the described target AP found out, cipher mode and password, automatically connect with described target AP.
In a kind of possible execution mode in first of the embodiment of the present invention, the channel frequency of AP that described record connected and the last connect hours of correspondence comprise: under the state connecting AP, obtain the channel frequency of the AP of current successful connection and the current connect hours of correspondence, judge the channel frequency that obtains whether in channel list, described channel list, for recording the channel frequency of the AP connected and last connect hours, if the channel frequency obtained is in channel list, according to the obtained current connect hours, upgrade and to record in described channel list, the last connect hours that the channel frequency of the AP of current successful connection is corresponding, if the channel frequency obtained is not in channel list, the channel frequency of the AP of obtained current successful connection and current connect hours are recorded in described channel list.
In a kind of possible execution mode in first of the embodiment of the present invention, the channel frequency obtained if described is not in channel list, the channel frequency of the AP of obtained current successful connection and current connect hours are recorded to described channel list comprise: judge whether the channel quantity recorded in described channel list reaches the channel quantity upper limit, if reached, by in described channel list, connect hours the earliest time and the channel frequency deletion of correspondence, the channel frequency of the AP of obtained current successful connection and current connect hours are recorded in described channel list.
In a kind of possible execution mode in first of the embodiment of the present invention, described method also comprises: when recorded any one or last connect hours corresponding to multiple channel frequency reach default aging duration apart from the duration of current time, is deleted from record the last connect hours of described any one or multiple channel frequency and correspondence.
In a kind of possible execution mode in first of the embodiment of the present invention, described extraction conditions comprises: temporally from evening to early sorting in front default figure place.It is described when needs connect AP, from recorded channel frequency, extract the channel frequency that the corresponding last connect hours meets extraction conditions to comprise as channel frequency to be scanned: when needs connect AP, from recorded channel frequency, extract the corresponding last connect hours meet temporally from evening to early sequence at the channel frequency of front default figure place as channel frequency to be scanned.
In in second of the embodiment of the present invention, provide a kind of device connecting AP for terminal.Described device comprises: logging modle, is configured to record the channel frequency of AP (WirelessAccessPoint, wireless access points) that connected and the last connect hours of correspondence.Screening module, be configured to when needs connect AP, from recorded channel frequency, the last connect hours filtering out correspondence meets the channel frequency of extraction conditions as channel frequency to be scanned.Scan module, is configured to scan to determine target AP to the channel frequency filtered out.Link block, is configured to connect with described target AP.
In a kind of possible execution mode in second of the embodiment of the present invention, described logging modle is also configured to the SSID (ServiceSetIdentifier, service set), cipher mode, the password that record the AP connected.Described device also comprises: search module, be configured to after described scan module determination target AP, the SSID of the AP of the connection of recording from described logging modle, cipher mode, password, find out the SSID of described target AP, cipher mode and password.Described link block, be configured to according to described in search the SSID of the described target AP that module searches goes out, cipher mode and password, automatically connect with described target AP.
In a kind of possible execution mode in second of the embodiment of the present invention, described logging modle comprises: obtain submodule, is configured to, under the state connecting AP, obtain the channel frequency of the AP of current successful connection and the current connect hours of correspondence.Channel exists and judges submodule, is configured to judge the channel frequency that obtains whether in channel list, described channel list, for recording channel frequency and connect hours for the last time of the AP connected.Upgrade submodule, if the channel frequency being configured to obtain is in channel list, according to the obtained current connect hours, upgrade the last connect hours that the channel frequency of the AP of that record in described channel list, current successful connection is corresponding.Record sub module, if the channel frequency being configured to obtain is not in channel list, is recorded to the channel frequency of the AP of obtained current successful connection and current connect hours in described channel list.
In a kind of possible execution mode in second of the embodiment of the present invention, described record sub module comprises: channel quantity judges submodule, whether the channel quantity being configured to judge to record in described channel list reaches the channel quantity upper limit, if reached, by in described channel list, connect hours the earliest time and the channel frequency deletion of correspondence.Record implementation sub-module, is configured to the channel frequency of the AP of obtained current successful connection and current connect hours to be recorded in described channel list.
In a kind of possible execution mode in second of the embodiment of the present invention, described device also comprises: removing module, be configured to when recorded any one or last connect hours corresponding to multiple channel frequency reach default aging duration apart from the duration of current time, the last connect hours of described any one or multiple channel frequency and correspondence is deleted from record.
In a kind of possible execution mode in second of the embodiment of the present invention, described extraction conditions comprises: temporally from evening to early sorting in front default figure place.Described screening module is configured to when needs connect AP, from recorded channel frequency, extract the corresponding last connect hours meet temporally from evening to early sequence at the channel frequency of front default figure place as channel frequency to be scanned.
Pass through technique scheme, the channel frequency of AP connected due to embodiment of the present invention record and the last connect hours of correspondence, and when needs connect AP, from recorded channel frequency, the last connect hours filtering out correspondence meets the channel frequency of extraction conditions as channel frequency to be scanned, scan to determine target AP to the channel frequency filtered out, therefore, determine in the process of target AP, do not need to scan all channels, reduce the scope of the channel needing scanning, ensure that the high efficiency of scanning, thus improve the speed that terminal is connected with AP.
Other features and advantages of the present invention are described in detail in embodiment part subsequently.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for specification, is used from explanation the present invention, but is not construed as limiting the invention with embodiment one below.In the accompanying drawings:
Fig. 1 is the structural representation of a kind of implementation environment according to an exemplary embodiment.
Fig. 2 is the flow chart connecting the method for AP for terminal according to an exemplary embodiment.
Fig. 3 is the flow chart connecting the method for AP for terminal according to another exemplary embodiment.
Fig. 4 is the flow chart connecting the method for AP for terminal according to another exemplary embodiment.
Fig. 5 is a kind of channel list schematic diagram according to an exemplary embodiment.
Fig. 6 is the flow chart connecting the method for AP for terminal Gen Ju an exemplary embodiment again.
Fig. 7 is the block diagram connecting the device of AP for terminal according to an exemplary embodiment.
Fig. 8 is the block diagram connecting the device of AP for terminal according to another exemplary embodiment.
Embodiment
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in detail.Should be understood that, embodiment described herein, only for instruction and explanation of the present invention, is not limited to the present invention.
Fig. 1 is the structural representation of a kind of implementation environment according to an exemplary embodiment.As shown in Figure 1, this implementation environment can comprise: terminal equipment 110, wireless aps 120.Wherein, AP, refers to WirelessAccessPoint, wireless access points.Wherein, terminal equipment 110 can be smart mobile phone, panel computer, PC, notebook computer etc.In FIG, terminal equipment 110 is illustrated for smart mobile phone.
Such as, Wi-Fi chip can be built-in with in terminal equipment 110.Such as, can for operating in the Wi-Fi chip in the frequency range of 2.4GHz and 5GHz.After the Wi-Fi of terminal equipment 110 opens, can automatically load the driving for supporting WI-FI chip normally to work, middleware, etc.Wherein, wireless channel totally 13 fixed frequencies (2412MHz-2472MHz) of licensing of 2.4GHz frequency range; The wireless channel that 5GHz frequency range is licensed is divided into 9 fixed frequency ranges (5180MHz-5240MHz, 5745MHz-5825MHz) and 4 Dynamic Selection frequency ranges (5260MHz-5320MHz).Wireless aps 120 can select one as its working channel from these channels.
Such as, wireless aps 120 can be an AP or multiple AP.Wherein, the wireless network of an AP composition has more present home scenarios, and many AP common networking appears at office mostly, the common scenes such as airport.In the scene of many AP common networking, these AP have identical SSID (ServiceSetIdentifier, service set), cipher mode and password, but can be operated on similar and different wireless channel.
Fig. 2 is the flow chart connecting the method for AP for terminal according to an exemplary embodiment.The method can be applied to terminal equipment.Such as, the terminal equipment 110 shown in Fig. 1 can be applied to.As shown in Figure 2, the method can comprise:
The channel frequency of AP (WirelessAccessPoint, wireless access points) that S210, record connected and the last connect hours of correspondence.
Such as, can by creating configuration file, or, the channel frequency of AP connected by other mode keeping records of database and the channel list of the last connect hours of correspondence.
S220, when needs connect AP, from recorded channel frequency, filtering out the corresponding last connect hours meets the channel frequency of extraction conditions as channel frequency to be scanned.
It should be noted that, the embodiment of the present invention does not limit for the extraction conditions for screening channel frequency to be scanned, as long as this extraction conditions can filter out the list of most recently used efficient channel.Such as, described extraction conditions can be in nearest preset number of days, described extraction conditions can in current one month, described extraction conditions can for temporally from evening to early sequence front default figure place, described extraction conditions can in the nearest time period by connect the frequency from many to few sequence in front default figure place, etc.Such as, can when needs connect AP, from recorded channel frequency, extract the corresponding last connect hours meet temporally from evening to early sequence at the channel frequency of front default figure place (such as, first 6) as channel frequency to be scanned.
S230, scan to determine target AP to the channel frequency filtered out.
S240, to connect with described target AP.
In the present embodiment, due to the last connect hours of the channel frequency and correspondence that have recorded the AP connected, and from recorded channel frequency, the last connect hours filtering out correspondence meets the channel frequency of extraction conditions as channel frequency to be scanned, scan to determine target AP to the channel frequency filtered out, therefore, determine in the process of target AP, do not need to scan all channels, reduce the scope of the channel needing scanning, ensure that the high efficiency of scanning, thus improve the speed that terminal is connected with AP.
It should be noted that, the embodiment of the present invention may be used in the enforcement scene automatically connected with AP, also can be applied to and need user to select voluntarily for the target AP scanned in the enforcement scene connected.The present invention does not limit this.Below in conjunction with the enforcement scene automatically connected with AP, the embodiment of the present invention is described in detail.
Fig. 3 is the flow chart connecting the method for AP for terminal according to another exemplary embodiment.The method can be applied to terminal equipment.Such as, the terminal equipment 110 shown in Fig. 1 can be applied to.As shown in Figure 3, the method can comprise:
AP (the WirelessAccessPoint that S310, record connected, wireless access points) SSID (ServiceSetIdentifier, service set), cipher mode, password, channel frequency and correspondence the last connect hours.
Such as, corresponding structure can be created to preserve the SSID of AP for each AP connected, password, the information such as cipher mode, and increase corresponding link table entry for this structure, wherein, in chained list, each can preserve the channel frequency that this AP works and the timestamp representing the last connect hours.
S320, when needs connect AP, from recorded channel frequency, filtering out the corresponding last connect hours meets the channel frequency of extraction conditions as channel frequency to be scanned.
S330, scan to determine target AP to the channel frequency filtered out.
The SSID of described target AP, cipher mode and password is found out S331, SSID from the AP of recorded connection, cipher mode, password.
S340, SSID, cipher mode and password according to the described target AP that finds out, connect automatically with described target AP.
In the present embodiment, for opening the scene of Wi-Fi from the AP that is dynamically connected, the AP connected connected before being user, and the working channel of these AP is substantially fixing, can not change, therefore, be particularly suited for when needs connect AP, from recorded channel frequency, the last connect hours filtering out correspondence meets the channel frequency of extraction conditions as channel frequency to be scanned, scan to determine target AP to the channel frequency filtered out, avoid and all channels are all scanned and causes unnecessary consuming time, and, after user uses terminal equipment to connect certain AP for the first time, the relevant information of this AP can be preserved, as SSID, cipher mode, password etc., thus connection afterwards, no longer need to re-enter the information such as password, further improve the speed that terminal is connected with AP.
Also it should be noted that, the embodiment of the embodiment of the present invention to the last connect hours of the channel frequency and correspondence that how to record the AP connected is not limit.Such as, can the constantly channel frequency of AP that connected of cumulative record and the connect hours of correspondence, thus to make in record a channel frequency may corresponding multiple connect hours, wherein the latest be the last connect hours.Again such as, for the same AP connected, the recorded time can be upgraded, thus make the channel frequency only corresponding time in record, i.e. the last connect hours.Below, in conjunction with making the channel frequency only corresponding time in record, namely the execution mode of last connect hours, is described in detail to the embodiment of the present invention.
Fig. 4 is the flow chart connecting the method for AP for terminal according to another exemplary embodiment.The method can be applied to terminal equipment.Such as, the terminal equipment 110 shown in Fig. 1 can be applied to.As shown in Figure 4, the method can comprise:
S410, connect AP state under, obtain the channel frequency of the AP of current successful connection and the current connect hours of correspondence.
The AP that terminal equipment connects can be the family wireless network of independent AP, also can be the public wireless network of multiple AP compositions with identical SSID.Wherein, the AP of identical SSID can belong to same wireless network, and different SSID can belong to different networks.When terminal equipment successfully connects the arbitrary AP in the public wireless network of multiple AP composition, when roaming in multiple AP, roam the channel frequency and current connect hours that successfully all obtain the AP that current roaming arrives at every turn.Such as, Fig. 5 is a kind of channel list schematic diagram according to an exemplary embodiment.As shown in Figure 5, " last_freqs " is for recording channel frequency and representing the timestamp of last connect hours.The wireless network of family only has an AP, and its SSID is " HomeAP ", do not arrange encryption, the channel frequency of work is at 5825MHz.The wireless network of office is made up of multiple AP, and the SSID of these AP is unified is " OfficeAP ", do not arrange encryption, the channel frequency of work is at 2412MHz, 2437MHz and 2462MHz.
S411, judge the channel frequency that obtains whether in channel list, described channel list, for recording channel frequency and connect hours for the last time of the AP connected.
In some possible execution modes, a channel list can be created for multiple wireless network and record the channel frequency of the AP connected and last connect hours.
In other possible execution modes, a channel list can be created for a wireless network and record the channel frequency of the AP connected and last connect hours.
If the channel frequency that S412 obtains is in channel list, according to the obtained current connect hours, upgrade the last connect hours that the channel frequency of the AP of that record in described channel list, current successful connection is corresponding.
If the channel frequency that S413 obtains is not in channel list, the channel frequency of the AP of obtained current successful connection and current connect hours are recorded in described channel list.
In some possible execution modes, in order to improve the speed of screening channel frequency, can limit the quantity of the channel frequency recorded in channel list.Particularly, such as, can judge whether the channel quantity recorded in described channel list reaches the channel quantity upper limit (such as, 8), if reached, by in described channel list, connect hours the earliest time and the channel frequency deletion of correspondence, be recorded to the channel frequency of the AP of obtained current successful connection and current connect hours in described channel list.Wherein, the described channel quantity upper limit can carry out different settings according to the difference of use scenes by user or system.
In some possible execution modes, for the ease of follow-up fast by connect hours the earliest time in channel list and the channel frequency deletion of correspondence, channel list can also be sorted by the last connect hours that all channel frequencys are corresponding.
S420, when needs connect AP, from described channel list, filtering out the corresponding last connect hours meets the channel frequency of extraction conditions as channel frequency to be scanned.
Such as, user reopens WI-FI or the equipment that opens a terminal opens WI-FI automatically, can need the situation connecting AP.
Creating in the channel frequency and the execution mode of last connect hours that a channel list records the AP connected for a wireless network, for the ease of screening all channel list, can first the channel list that different networks in terminal equipment is corresponding respectively be merged.When merging, multiple identical channel frequency being distinguished to the situation of corresponding different last connect hours, only can retain the last connect hours the latest.
S430, scan to determine target AP to the channel frequency filtered out.
S440, to connect with described target AP.
In the present embodiment, owing to making the only corresponding time of a channel frequency in channel list record, the i.e. last connect hours, therefore, the amount of information recorded in channel list is few, from described channel list, when filtering out channel frequency that the corresponding last connect hours meets extraction conditions as channel frequency to be scanned, breakneck acceleration is fast, further improves the speed that terminal is connected with AP.
In one embodiment of the invention, in order to the channel frequency filtered out is the channel frequency often used, guarantee the high efficiency scanned, be also provided with channel aging mechanism and eliminate the channel seldom used.Particularly, default aging duration is reached (such as apart from the duration of current time in recorded any one or last connect hours corresponding to multiple channel frequency, 30 days) when, the last connect hours of described any one or multiple channel frequency and correspondence is deleted from record.Such as, can filtering channel list, deleting according to presetting the expired project of aging duration.Such as, suppose that user's carried terminal equipment is gone on business to other places, and access the wireless network in hotel.Now terminal equipment can preserve channel frequency and the connect hours of the wireless network in this hotel.Treat that user terminates to go on business after a period of time, the last connect hours corresponding due to the channel frequency of the wireless network in hotel reaches default aging duration apart from the duration of current time, such as 30 days, then the last connect hours of the channel frequency of the wireless network in hotel and correspondence is deleted from channel list.The aging mechanism of this channel ensure that in channel list, channel frequency is most recently used, effective channel frequency.
Below, in conjunction with the various embodiments described above of the present invention, the execution mode possible to the present invention one is described in detail.Fig. 6 is the flow chart connecting the method for AP for terminal Gen Ju an exemplary embodiment again.The method can be applied to terminal equipment.Such as, the terminal equipment 110 shown in Fig. 1 can be applied to.As shown in Figure 6, the method can comprise:
S610, connect AP state under, obtain the SSID (ServiceSetIdentifier, service set) of the AP of current successful connection, the last connect hours of cipher mode, password, channel frequency and correspondence.
S611, judge the channel frequency that obtains whether in channel list, described channel list, for recording channel frequency and connect hours for the last time of the AP connected.
If the channel frequency that S612 obtains is in channel list, according to the obtained current connect hours, upgrade the last connect hours that the channel frequency of the AP of that record in described channel list, current successful connection is corresponding.
If the channel frequency that S613 obtains is not in channel list, judge whether the channel quantity recorded in described channel list reaches the channel quantity upper limit.
If S614 reaches, by described channel list, connect hours the earliest time and the channel frequency deletion of correspondence, be recorded to the channel frequency of the AP of obtained current successful connection and current connect hours in described channel list.
If S615 does not reach, the channel frequency of the AP of obtained current successful connection and current connect hours are recorded in described channel list.
S620, when WI-FI again open need connect AP, the channel list that different networks in terminal equipment is corresponding respectively merges, wherein, multiple identical channel frequency is distinguished to the situation of corresponding different last connect hours, only retain the last connect hours the latest.
S621, from the channel list after merging, extract the corresponding last connect hours meet temporally from evening to early sequence at the channel frequency of front default figure place as channel frequency to be scanned.
S630, scan to determine target AP to the channel frequency filtered out.
S631, when scanning target AP, by being mated with the SSID of the AP of recorded connection by the SSID of described target AP, from the SSID of the AP of recorded connection, cipher mode, password, find out the SSID of described target AP, cipher mode and password.
S632, when not scanning target AP or mating unsuccessful, in channel list after being combined, remaining channel frequency carries out scanning to determine target AP, by by the SSID of described target AP with merge after channel list in the SSID of AP that records mate, from the SSID of the AP of recorded connection, cipher mode, password, find out the SSID of described target AP, cipher mode and password.
S640, SSID, cipher mode and password according to the described target AP that finds out, connect automatically with described target AP.
In this embodiment, terminal equipment opens Wi-Fi when carrying out preliminary scan, what scan is meet the corresponding last connect hours temporally from evening to early sorting at the channel frequency of front default figure place, when not scanning target AP, second time scanning can scan remaining channel, thus guarantees that AP can both be scanned around.
Fig. 7 is the block diagram connecting the device of AP for terminal according to an exemplary embodiment.This device can be configured at terminal equipment.Such as, the terminal equipment 110 shown in Fig. 1 can be configured at.As shown in Figure 7, this device can comprise: logging modle 710, screening module 720, scan module 730 and link block 740.
Described logging modle 710, can be configured to record the channel frequency of AP (WirelessAccessPoint, wireless access points) that connected and the last connect hours of correspondence.
Described screening module 720, can be configured to when needs connect AP, from recorded channel frequency, the last connect hours filtering out correspondence meets the channel frequency of extraction conditions as channel frequency to be scanned.
Described scan module 730, can be configured to scan to determine target AP to the channel frequency filtered out.
Described link block 740, can be configured to connect with described target AP.
In the present embodiment, because logging modle 710 have recorded the channel frequency of the AP connected and the last connect hours of correspondence, and screen module 720 from recorded channel frequency, the last connect hours filtering out correspondence meets the channel frequency of extraction conditions as channel frequency to be scanned, scan module 730 scans to determine target AP to the channel frequency filtered out, therefore, determine in the process of target AP, do not need to scan all channels, reduce the scope of the channel needing scanning, ensure that the high efficiency of scanning, thus improve the speed that terminal is connected with AP.
Fig. 8 is the block diagram connecting the device of AP for terminal according to another exemplary embodiment.This device can be configured at terminal equipment.Such as, the terminal equipment 110 shown in Fig. 1 can be configured at.As shown in Figure 8, the described logging modle 710 of this device can also be configured to the SSID (ServiceSetIdentifier, service set), cipher mode, the password that record the AP connected.Correspondingly, described device also comprises: search module 750, can be configured to after described scan module determination target AP, the SSID of the AP of the connection of recording from described logging modle 710, cipher mode, password, find out the SSID of described target AP, cipher mode and password.Wherein, described link block 740, can be configured to according to described in search the SSID of the described target AP that module 750 finds out, cipher mode and password, automatically connect with described target AP.
In a kind of possible execution mode, as shown in Figure 8, described logging modle 710 can comprise: obtain submodule 711, can be configured to, under the state connecting AP, obtain the channel frequency of the AP of current successful connection and the current connect hours of correspondence.Channel exists and judges submodule 712, can be configured to judge the channel frequency that obtains whether in channel list, described channel list, for recording channel frequency and connect hours for the last time of the AP connected.Upgrade submodule 713, if the channel frequency that can be configured to obtain is in channel list, according to the obtained current connect hours, upgrade the last connect hours that the channel frequency of the AP of that record in described channel list, current successful connection is corresponding.Record sub module 714, if the channel frequency that can be configured to obtain is not in channel list, is recorded to the channel frequency of the AP of obtained current successful connection and current connect hours in described channel list.
In a kind of possible execution mode, as shown in Figure 8, described record sub module 714 can comprise: channel quantity judges submodule 7141, whether the channel quantity that can be configured to judge to record in described channel list reaches the channel quantity upper limit, if reached, by in described channel list, connect hours the earliest time and the channel frequency deletion of correspondence.Record implementation sub-module 7142, can be configured to the channel frequency of the AP of obtained current successful connection and current connect hours to be recorded in described channel list.
In a kind of possible execution mode, as shown in Figure 8, described device can also comprise: removing module 760, can be configured to when recorded any one or last connect hours corresponding to multiple channel frequency reach default aging duration apart from the duration of current time, the last connect hours of described any one or multiple channel frequency and correspondence is deleted from record.
In a kind of possible execution mode, described extraction conditions can comprise: temporally from evening to early sorting in front default figure place.Described screening module 720 can be configured to when needs connect AP, from recorded channel frequency, extract the corresponding last connect hours meet temporally from evening to early sequence at the channel frequency of front default figure place as channel frequency to be scanned.
Below the preferred embodiment of the present invention is described in detail by reference to the accompanying drawings; but; the present invention is not limited to the detail in above-mentioned execution mode; within the scope of technical conceive of the present invention; can carry out multiple simple variant to technical scheme of the present invention, these simple variant all belong to protection scope of the present invention.
It should be noted that in addition, each concrete technical characteristic described in above-mentioned embodiment, in reconcilable situation, can be combined by any suitable mode, in order to avoid unnecessary repetition, the present invention illustrates no longer separately to various possible compound mode.
In addition, also can carry out combination in any between various different execution mode of the present invention, as long as it is without prejudice to thought of the present invention, it should be considered as content disclosed in this invention equally.

Claims (12)

1. connect a method of AP for terminal, it is characterized in that, comprising:
Record the channel frequency of AP (WirelessAccessPoint, wireless access points) and the last connect hours of correspondence that connected;
When needs connect AP, from recorded channel frequency, the last connect hours filtering out correspondence meets the channel frequency of extraction conditions as channel frequency to be scanned;
Scan to determine target AP to the channel frequency filtered out;
Connect with described target AP.
2. method according to claim 1, is characterized in that, described method also comprises:
Record the SSID (ServiceSetIdentifier, service set) of the AP connected, cipher mode, password;
After determining target AP, from the SSID of the AP of recorded connection, cipher mode, password, find out the SSID of described target AP, cipher mode and password;
Described connecting with target AP comprises:
According to the SSID of the described target AP found out, cipher mode and password, automatically connect with described target AP.
3. method according to claim 1, is characterized in that, the channel frequency of AP that described record connected and the last connect hours of correspondence comprise:
Under the state connecting AP, obtain the channel frequency of the AP of current successful connection and the current connect hours of correspondence;
Judge the channel frequency that obtains whether in channel list, described channel list, for recording channel frequency and connect hours for the last time of the AP connected;
If the channel frequency obtained is in channel list, according to the obtained current connect hours, upgrade the last connect hours that the channel frequency of the AP of that record in described channel list, current successful connection is corresponding;
If the channel frequency obtained is not in channel list, the channel frequency of the AP of obtained current successful connection and current connect hours are recorded in described channel list.
4. method according to claim 3, is characterized in that, the channel frequency of the AP of obtained current successful connection and current connect hours, not in channel list, are recorded to described channel list and comprise by the channel frequency obtained if described:
Judge whether the channel quantity recorded in described channel list reaches the channel quantity upper limit, if reached, by described channel list, connect hours the earliest time and the channel frequency deletion of correspondence;
The channel frequency of the AP of obtained current successful connection and current connect hours are recorded in described channel list.
5. method according to claim 1, is characterized in that, described method also comprises:
When recorded any one or last connect hours corresponding to multiple channel frequency reach default aging duration apart from the duration of current time, the last connect hours of described any one or multiple channel frequency and correspondence is deleted from record.
6. method according to claim 1, is characterized in that, described extraction conditions comprises: temporally from evening to early sorting in front default figure place;
Described when needs connect AP, from recorded channel frequency, extract the channel frequency that the corresponding last connect hours meets extraction conditions and comprise as channel frequency to be scanned:
When needs connect AP, from recorded channel frequency, extract the corresponding last connect hours meet temporally from evening to early sequence at the channel frequency of front default figure place as channel frequency to be scanned.
7. connect a device of AP for terminal, it is characterized in that, comprising:
Logging modle, is configured to record the channel frequency of AP (WirelessAccessPoint, wireless access points) that connected and the last connect hours of correspondence;
Screening module, be configured to when needs connect AP, from recorded channel frequency, the last connect hours filtering out correspondence meets the channel frequency of extraction conditions as channel frequency to be scanned;
Scan module, is configured to scan to determine target AP to the channel frequency filtered out;
Link block, is configured to connect with described target AP.
8. device according to claim 7, is characterized in that, described logging modle is also configured to the SSID (ServiceSetIdentifier, service set), cipher mode, the password that record the AP connected;
Described device also comprises: search module, be configured to after described scan module determination target AP, the SSID of the AP of the connection of recording from described logging modle, cipher mode, password, find out the SSID of described target AP, cipher mode and password;
Described link block, be configured to according to described in search the SSID of the described target AP that module searches goes out, cipher mode and password, automatically connect with described target AP.
9. device according to claim 7, is characterized in that, described logging modle comprises:
Obtain submodule, be configured to, under the state connecting AP, obtain the channel frequency of the AP of current successful connection and the current connect hours of correspondence;
Channel exists and judges submodule, is configured to judge the channel frequency that obtains whether in channel list, described channel list, for recording channel frequency and connect hours for the last time of the AP connected;
Upgrade submodule, if the channel frequency being configured to obtain is in channel list, according to the obtained current connect hours, upgrade the last connect hours that the channel frequency of the AP of that record in described channel list, current successful connection is corresponding;
Record sub module, if the channel frequency being configured to obtain is not in channel list, is recorded to the channel frequency of the AP of obtained current successful connection and current connect hours in described channel list.
10. device according to claim 9, is characterized in that, described record sub module comprises:
Channel quantity judges submodule, and whether the channel quantity being configured to judge to record in described channel list reaches the channel quantity upper limit, if reached, by described channel list, and connect hours the earliest time and the channel frequency deletion of correspondence;
Record implementation sub-module, is configured to the channel frequency of the AP of obtained current successful connection and current connect hours to be recorded in described channel list.
11. devices according to claim 7, is characterized in that, described device also comprises:
Removing module, be configured to when recorded any one or last connect hours corresponding to multiple channel frequency reach default aging duration apart from the duration of current time, the last connect hours of described any one or multiple channel frequency and correspondence is deleted from record.
12. devices according to claim 7, is characterized in that, described extraction conditions comprises: temporally from evening to early sorting in front default figure place;
Described screening module is configured to when needs connect AP, from recorded channel frequency, extract the corresponding last connect hours meet temporally from evening to early sequence at the channel frequency of front default figure place as channel frequency to be scanned.
CN201510633095.5A 2015-09-29 2015-09-29 Method and device for connecting terminal with AP (Wireless Access Point) Pending CN105246131A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510633095.5A CN105246131A (en) 2015-09-29 2015-09-29 Method and device for connecting terminal with AP (Wireless Access Point)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510633095.5A CN105246131A (en) 2015-09-29 2015-09-29 Method and device for connecting terminal with AP (Wireless Access Point)

Publications (1)

Publication Number Publication Date
CN105246131A true CN105246131A (en) 2016-01-13

Family

ID=55043549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510633095.5A Pending CN105246131A (en) 2015-09-29 2015-09-29 Method and device for connecting terminal with AP (Wireless Access Point)

Country Status (1)

Country Link
CN (1) CN105246131A (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105764158A (en) * 2016-02-04 2016-07-13 腾讯科技(深圳)有限公司 Data communication method and device
CN106358189A (en) * 2016-09-05 2017-01-25 北京小米移动软件有限公司 Device and method for accessing wireless local area network
CN106507444A (en) * 2016-10-24 2017-03-15 珠海市魅族科技有限公司 A kind of method and device of scanning WAP
CN106604304A (en) * 2016-12-07 2017-04-26 广东欧珀移动通信有限公司 Method and apparatus for accelerating wireless fidelity connection
CN107135546A (en) * 2017-04-13 2017-09-05 努比亚技术有限公司 A kind of system of selection of wireless network operation channel and device
CN107995672A (en) * 2017-12-13 2018-05-04 乐鑫信息科技(上海)有限公司 A kind of Wi-Fi selects the method and its system of optimal access point
CN109041173A (en) * 2018-09-29 2018-12-18 Oppo广东移动通信有限公司 A kind of connection method, device and terminal
CN110177393A (en) * 2018-02-20 2019-08-27 网件公司 The wireless network connection and registration of power saving for low power consuming devices
CN111107605A (en) * 2018-10-26 2020-05-05 九阳股份有限公司 Network distribution method of household electrical appliance and household electrical appliance
CN107493586B (en) * 2017-09-07 2020-09-11 深圳市兆驰数码科技股份有限公司 Channel self-adaptive modification and disconnection reconnection method in router WISP mode
CN113438711A (en) * 2021-05-21 2021-09-24 珠海全志科技股份有限公司 Wi-Fi connection control method and device
US11272189B2 (en) 2018-02-20 2022-03-08 Netgear, Inc. Adaptive encoding in security camera applications
CN114513750A (en) * 2020-11-16 2022-05-17 福建星网元智科技有限公司 Price tag searching method and storage device
CN115225818A (en) * 2022-07-13 2022-10-21 北京有竹居网络技术有限公司 Method, device, equipment and storage medium for configuring equipment
US11671606B2 (en) 2018-02-20 2023-06-06 Arlo Technologies, Inc. Transcoding in security camera applications
US11756390B2 (en) 2018-02-20 2023-09-12 Arlo Technologies, Inc. Notification priority sequencing for video security

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103533604A (en) * 2012-07-03 2014-01-22 华为终端有限公司 Scanning access point in wireless fidelity network, channel selecting method, equipment and system
CN104066146A (en) * 2013-03-18 2014-09-24 华为技术有限公司 Wi-fi network access method and wireless access device
WO2014182366A1 (en) * 2013-03-12 2014-11-13 Qualcomm Incorporated Adaptive wireless access point discovery

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103533604A (en) * 2012-07-03 2014-01-22 华为终端有限公司 Scanning access point in wireless fidelity network, channel selecting method, equipment and system
WO2014182366A1 (en) * 2013-03-12 2014-11-13 Qualcomm Incorporated Adaptive wireless access point discovery
CN104066146A (en) * 2013-03-18 2014-09-24 华为技术有限公司 Wi-fi network access method and wireless access device

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105764158A (en) * 2016-02-04 2016-07-13 腾讯科技(深圳)有限公司 Data communication method and device
CN106358189A (en) * 2016-09-05 2017-01-25 北京小米移动软件有限公司 Device and method for accessing wireless local area network
CN106358189B (en) * 2016-09-05 2020-01-10 北京小米移动软件有限公司 Method and device for accessing wireless local area network
CN106507444A (en) * 2016-10-24 2017-03-15 珠海市魅族科技有限公司 A kind of method and device of scanning WAP
CN106604304A (en) * 2016-12-07 2017-04-26 广东欧珀移动通信有限公司 Method and apparatus for accelerating wireless fidelity connection
CN106604304B (en) * 2016-12-07 2019-12-31 Oppo广东移动通信有限公司 Connection method and device for accelerating wireless fidelity
CN107135546B (en) * 2017-04-13 2020-09-01 努比亚技术有限公司 Method and device for selecting wireless network operation channel
CN107135546A (en) * 2017-04-13 2017-09-05 努比亚技术有限公司 A kind of system of selection of wireless network operation channel and device
CN107493586B (en) * 2017-09-07 2020-09-11 深圳市兆驰数码科技股份有限公司 Channel self-adaptive modification and disconnection reconnection method in router WISP mode
CN107995672A (en) * 2017-12-13 2018-05-04 乐鑫信息科技(上海)有限公司 A kind of Wi-Fi selects the method and its system of optimal access point
CN107995672B (en) * 2017-12-13 2021-06-29 乐鑫信息科技(上海)股份有限公司 Method and system for selecting optimal access point by Wi-Fi
US11558626B2 (en) 2018-02-20 2023-01-17 Netgear, Inc. Battery efficient wireless network connection and registration for a low-power device
CN110177393A (en) * 2018-02-20 2019-08-27 网件公司 The wireless network connection and registration of power saving for low power consuming devices
US11272189B2 (en) 2018-02-20 2022-03-08 Netgear, Inc. Adaptive encoding in security camera applications
US11671606B2 (en) 2018-02-20 2023-06-06 Arlo Technologies, Inc. Transcoding in security camera applications
US11756390B2 (en) 2018-02-20 2023-09-12 Arlo Technologies, Inc. Notification priority sequencing for video security
CN109041173A (en) * 2018-09-29 2018-12-18 Oppo广东移动通信有限公司 A kind of connection method, device and terminal
CN111107605A (en) * 2018-10-26 2020-05-05 九阳股份有限公司 Network distribution method of household electrical appliance and household electrical appliance
CN114513750A (en) * 2020-11-16 2022-05-17 福建星网元智科技有限公司 Price tag searching method and storage device
CN114513750B (en) * 2020-11-16 2024-02-23 福建星网元智科技有限公司 Price tag searching method and storage device
CN113438711A (en) * 2021-05-21 2021-09-24 珠海全志科技股份有限公司 Wi-Fi connection control method and device
CN113438711B (en) * 2021-05-21 2024-04-12 珠海全志科技股份有限公司 Wi-Fi connection control method and device
CN115225818A (en) * 2022-07-13 2022-10-21 北京有竹居网络技术有限公司 Method, device, equipment and storage medium for configuring equipment
CN115225818B (en) * 2022-07-13 2024-05-21 北京有竹居网络技术有限公司 Method, apparatus, device and storage medium for configuring device

Similar Documents

Publication Publication Date Title
CN105246131A (en) Method and device for connecting terminal with AP (Wireless Access Point)
US10779231B2 (en) Cell determining method, terminal device, and network device
CN102007800B (en) Access network selection in a multi-access network environment
RU2497311C2 (en) Device-managed access point lists in wireless communication
CN104853413B (en) A kind of method for network access and mobile communication terminal
CN108174433B (en) Method, network element and system for determining target
US10064122B2 (en) Method for selecting public land mobile network PLMN, and apparatus and device thereof
CN108322908B (en) Base station searching method and terminal
US9843999B2 (en) Communication apparatus, method for controlling the same, and computer-readable recording medium
EP2421302A1 (en) Core network selection in a shared radio access network
KR20130021441A (en) Method and apparatus for implementing tracking area update and cell reselection in a long term evolution system
CN105578544A (en) Circuit domain switched fallback method and terminal device
CN102014365B (en) Method and system for selecting core network operator from radio network sharing
US8504028B2 (en) Method, user equipment, and system for network selection
CN103392360A (en) Improved neighbour cell relation
EP3527006B1 (en) Base station a wireless communication system and a method for collecting data for multiple mobile network operators
KR20090117245A (en) Apparatus and method for cell selecting in a communication system
RU2590907C1 (en) Method and device for obtaining information of neighbouring cells
CN105828308B (en) Method for limiting communication function of electronic equipment, electronic equipment and micro base station
CN108449767B (en) Network load balancing method applied to WiFi roaming area
CN112512099A (en) Cell residence method, terminal and storage medium
EP3829226B1 (en) Communication apparatus, control method thereof, and program
CN114302405B (en) Network scanning method, device and storage medium
CN115396965B (en) Method, device and storage medium for cell residence
WO2022061586A1 (en) Using ap information for determining network operations

Legal Events

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

Application publication date: 20160113

RJ01 Rejection of invention patent application after publication