CN107949031A - A kind of scan method of wireless network, mobile terminal and storage medium - Google Patents

A kind of scan method of wireless network, mobile terminal and storage medium Download PDF

Info

Publication number
CN107949031A
CN107949031A CN201711384483.XA CN201711384483A CN107949031A CN 107949031 A CN107949031 A CN 107949031A CN 201711384483 A CN201711384483 A CN 201711384483A CN 107949031 A CN107949031 A CN 107949031A
Authority
CN
China
Prior art keywords
wireless network
geographical location
network
target radio
radio network
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
CN201711384483.XA
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.)
Shenzhen City Wang Keming Communication Software Co Ltd
Original Assignee
Shenzhen City Wang Keming Communication Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen City Wang Keming Communication Software Co Ltd filed Critical Shenzhen City Wang Keming Communication Software Co Ltd
Priority to CN201711384483.XA priority Critical patent/CN107949031A/en
Publication of CN107949031A publication Critical patent/CN107949031A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions
    • H04W48/04Access restriction performed under specific conditions based on user or terminal location or mobility data, e.g. moving direction, speed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

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

Abstract

The application is suitable for wireless communication technology field, there is provided a kind of scan method of wireless communication, including:Obtain the current geographical location of mobile terminal, and judge the current geographical location whether with the distance at least one geographical location prestored within a preset range, if the distance in the current geographical location and at least one geographical location prestored is within a preset range, the geographical location prestored with the distance in current geographical location within a preset range is then arranged to target geographic position, and obtain the channel of the associated target radio network of the target geographic position, in the channel of the target radio network, scan the target radio network, the scan efficiency of wireless network can be improved by the application.

Description

A kind of scan method of wireless network, mobile terminal and storage medium
Technical field
The application belongs to wireless communication technology field, more particularly to a kind of scan method of wireless network, mobile terminal and Storage medium.
Background technology
With the development of information technology, the application of mobile terminal is more and more extensive.Mobile terminal can be wireless by connecting Network is surfed the Internet, and realizes the functions such as shopping, consumption, Query Information, video communication.At present, WLAN compares mainstream A kind of wireless networking mode.
WLAN has certain coverage, and mobile terminal can be arrived when wireless network is arrived in scanning to scanning Wireless network initiate connection request be attached.At present, mobile terminal scans Wi-Fi by poll all channel, then Connection request is initiated to the wireless network scanned again.However, at present by way of poll all channel Wlan scanning It is less efficient.
The content of the invention
In view of this, the embodiment of the present application provides a kind of scan method of wireless network, mobile terminal and storage medium, To solve the problems, such as that current wireless network scan efficiency is low.
The first aspect of the embodiment of the present application provides a kind of scan method of wireless network, including:
Obtain the current geographical location of mobile terminal, and judge the current geographical location whether with it is at least one in advance The distance in the geographical location of storage is within a preset range;
If the distance in the current geographical location and at least one geographical location prestored is within a preset range, The geographical location prestored with the distance in current geographical location within a preset range is arranged to target geographic position, and The channel of the associated wireless network of the target geographic position is obtained, the associated wireless network of target geographic position is target Wireless network;
In the channel of the target radio network, the target radio network is scanned.
The second aspect of the embodiment of the present application provides a kind of mobile terminal, including:
Judgment module, the geographical location current for obtaining mobile terminal, and whether judge the current geographical location With the distance at least one geographical location prestored within a preset range;
Target radio network acquisition module, if for the current geographical location and at least one geography prestored The distance of position within a preset range, then by the geography prestored with the distance in current geographical location within a preset range Position is arranged to target geographic position, and obtains the channel of the associated wireless network of the target geographic position, the target It is target radio network to manage the associated wireless network in position;
Scan module, for the channel in the target radio network, scans the target radio network.
The third aspect of the embodiment of the present application provides a kind of mobile terminal, including memory, processor and is stored in In the memory and the computer program that can run on the processor, when the processor performs the computer program The step of realizing the method that the embodiment of the present application first aspect provides.
The fourth aspect of the embodiment of the present application provides a kind of computer-readable recording medium, the computer-readable storage Media storage has computer program, and the computer program realizes the embodiment of the present application when being executed by one or more processors On the one hand the step of the method provided.
5th aspect of the embodiment of the present application provides a kind of computer program product, and the computer program product includes Computer program, the computer program realize that the embodiment of the present application first aspect provides when being executed by one or more processors The method the step of.
The embodiment of the present application obtains the current geographical location of mobile terminal, and judge the current geographical location whether with The distance at least one geographical location prestored within a preset range, if the current geographical location with it is at least one pre- The distance in the geographical location first stored within a preset range, then by with the distance in current geographical location within a preset range pre- The geographical location first stored is arranged to target geographic position, and obtains the associated target radio network of the target geographic position Channel, in the channel of the target radio network, scans the target radio network, since the application is worked as by mobile terminal Preceding geographical location determines the letter of the wireless network that can be connected in current geographical location and the wireless network that can be connected Road is in current geographical location, and the attachable wireless network of scan channel in attachable wireless network, can shorten Scan the time of wireless network.
Brief description of the drawings
, below will be to embodiment or description of the prior art in order to illustrate more clearly of the technical solution in the embodiment of the present application Needed in attached drawing be briefly described, it should be apparent that, drawings in the following description are only some of the application Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is that a kind of scan method for wireless network that the application one embodiment provides realizes flow diagram;
Fig. 2 is that the scan method of wireless network that the another embodiment of the application provides a kind of realizes flow diagram;
Fig. 3 is the schematic block diagram for the mobile terminal that one embodiment of the application provides;
Fig. 4 is the schematic block diagram for the mobile terminal that the another embodiment of the application provides.
Embodiment
In being described below, in order to illustrate rather than in order to limit, it is proposed that such as tool of particular system structure, technology etc Body details, to understand thoroughly the embodiment of the present application.However, it will be clear to one skilled in the art that these are specific The application can also be realized in the other embodiments of details.In other situations, omit to well-known system, device, electricity Road and the detailed description of method, in case unnecessary details hinders the description of the present application.
It should be appreciated that ought be special described by the instruction of term " comprising " use in this specification and in the appended claims Sign, entirety, step, operation, the presence of element and/or component, but be not precluded from one or more of the other feature, entirety, step, Operation, element, component and/or its presence or addition for gathering.
It is also understood that the term used in this present specification is merely for the sake of the mesh for describing specific embodiment And be not intended to limit the application.As present specification and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is Refer to any combinations and all possible combinations of one or more of the associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In order to illustrate technical solution described herein, illustrated below by specific embodiment.
Fig. 1 is that the scan method for the wireless network that the application one embodiment provides realizes flow diagram, as shown in the figure This method may comprise steps of:
Step S101, obtains the current geographical location of mobile terminal, and judge the current geographical location whether with extremely The distance in a few geographical location prestored is within a preset range.
In the embodiment of the present application, user carries mobile terminal movement, when user is wanted by mobile terminal connection wirelessly During network, can first it be obtained by the global positioning system (Global PositioningSystem, GPS) in the mobile terminal Take the geographical location that mobile terminal is current.Certainly, in practical applications, can also obtain by other means, for example, passing through shifting The base station information that dynamic terminal currently connects, obtains according to the geographical location of the base station information currently connected, alternatively, by mobile whole The Bluetooth information currently connected is held, is obtained according to the corresponding geographical location of the bluetooth currently connected.
In the memory space of mobile terminal, geographical location is prestored, the geographical location prestored can be used Family is pre-set, for example, prestoring geographical location A, geographical location B, geographical location in the memory space of mobile terminal C, the geographical location prestored are the geographical locations for having attachable wireless network, for example, family, company, having at home can The wireless network of the family of connection, has the wireless network of attachable company in company.After current geographical location is obtained, Just need to obtain the distance between the current geographical location of mobile terminal and the geographical location each prestored, and judge to move Within a preset range whether the distance between the current geographical location of terminal and the geographical location that each prestores.
Step S102, if the distance in the current geographical location and at least one geographical location prestored is being preset In the range of, then by the geographical location prestored with the distance in current geographical location within a preset range with being arranged to target Position is managed, and obtains the channel of the associated wireless network of the target geographic position, the target geographic position is associated wireless Network is target radio network.
In the embodiment of the present application, if the distance of current geographical location and the geographical location A prestored are 100 meters, The distance of current geographical location and the geographical location B prestored are 3 meters, current geographical location and the geography prestored The distance of position C is 9 meters, and preset range is 0-5 meters, and the geographical location B that at this moment can determine to prestore is target geographic Position, if the preset range is 0-10 meters, it is determined that the geographical location B and C prestored is target geographic position.Determine The purpose of target geographic position is to determine attachable wireless network.So when prestoring geographical location, just set accordingly The attachable wireless network in the geographical location prestored and the channel of the wireless network are put.For example, there is provided geographical position Put the letter of the channel 2 of A association Wi-Fis 1 and wireless network 1, geographical location B associated with wireless network 2 and wireless network 2 The channel 1 of road 5, geographical location C associated with wireless network 3 and wireless network 3.Can be associated by definite target geographic position Wireless network is defined as target radio network.Such as, however, it is determined that target geographic position is the geographical location B and C prestored, then Target radio network is wireless network 2 and wireless network 3, and the channel where target radio network is followed successively by channel 5 and channel 1.
Certainly, in practical applications, a geographical location prestored can also associate multiple wireless networks.If it is determined that Target geographic position be associated with multiple wireless networks, can also obtain multiple target radio networks.
Step S103, in the channel of the target radio network, scans the target radio network.
In the embodiment of the present application, can be in the target radio network if the target radio network only has one Channel, scans the target radio network, can be according to default order point if the number of target radio network is more than 1 Target radio network described in scan channel not in target radio network, for example, first according to target geographic position and mobile terminal The target geographic position is from small to large sorted in the distance between current geographical location, is ordered as:Target geographic position Put B, target geographic position C;Then, Target Wireless is scanned in the channel 5 of the associated target radio networks 2 of target geographic position B Network 2, if scanning successfully, stops scanning;If scanning failure, continues in the associated Target Wireless nets of target geographic position C The channel 1 of network 3 scans target radio network 3 ... ....
The embodiment of the present application obtains the current geographical location of mobile terminal, and judge the current geographical location whether with The distance at least one geographical location prestored within a preset range, if the current geographical location with it is at least one pre- The distance in the geographical location first stored within a preset range, then by with the distance in current geographical location within a preset range pre- The geographical location first stored is arranged to target geographic position, and obtains the associated target radio network of the target geographic position Channel, in the channel of the target radio network, scans the target radio network, since the application is worked as by mobile terminal Preceding geographical location determines the letter of the wireless network that can be connected in current geographical location and the wireless network that can be connected Road is in current geographical location, and the attachable wireless network of scan channel in attachable wireless network, can shorten Scan the time of wireless network.
Fig. 2 is the flow diagram of the scan method for the wireless network that the another embodiment of the application provides, and as shown in the figure should Method may comprise steps of:
Step S201, obtains the historical record of the mobile scanning terminal wireless network.
Step S202, obtains the first wireless network, the channel of the first wireless network, the first geography from the historical record Position, first wireless network connect into the wireless network of merits and demerits for the mobile terminal, and first geographical location is institute State the geographical location where when mobile terminal succeeds with first wireless network connection.
In the embodiment of the present application, illustrate that user can pre-set described prestore by the embodiment shown in Fig. 1 The wireless network of geographic location association and the channel of the wireless network.It is, of course, also possible to the historical record from mobile terminal Middle acquisition.For example, it can be obtained from the relevant information of the scanned wireless network of the mobile terminal history.Can also from institute State and obtained in the relevant information for the wireless network that mobile terminal history connected.This also just needs mobile terminal per successful connection one Secondary wireless network, it is necessary to will be moved eventually when the channel where the wireless network of current successful connection, wireless network, successful connection Geographic location association storage where end.Such as:
Wireless network 1, geographical location A, channel 2;
Wireless network 2, geographical location B, channel 5;
Wireless network 3, geographical location C, channel 1;
Wherein, wireless network 1, wireless network 2, wireless network 3 are the wireless network for connecting into merits and demerits.Assuming that wireless network 4 mobile terminal of network had once scanned, but mobile terminal never connects into merits and demerits, then can not have to set above-mentioned association to close System.This is because the wireless network 4 connected not successfully, even if current scanning again is arrived, it is possible that because not close Code or other reasons and cause currently can not successful connection wireless network 4, avoid invalid scan event.
Step S203, obtains the first wireless network, the parameter of the first wireless network from the historical record, and according to institute The parameter for stating the first wireless network generates priority level, the parameter bag of first wireless network for each first wireless network Include the average signal strength values of first wireless network.
In the embodiment of the present application, the average signal strength values of the first wireless network, the first wireless network can also be obtained Average signal strength values represent average signal strength values (Received of first wireless network during connection Signal Strength Indication, RSSI) is certain, and the signal strength values represent the nothing that mobile dynamic terminal receives The signal strength values of gauze network, can be each first wireless network according to the average signal strength values of each first wireless network Generate priority level.For example, represented in the form of specific score value or represented in the form of grade.
Step S204, according to the generation of the first geographical location and each first geographical location obtained from the historical record Associated first wireless network, the channel of first wireless network, the priority level of first wireless network.
In the embodiment of the present application, can be by the wireless network of the history successful connection of above-mentioned associated storage, the wireless network Geographical location when channel where network, successful connection where mobile terminal regenerates the letter with the first geographic location association Breath.Certainly, can be with associated priority grade, if not generating priority level if generating priority level, can be with Without associated priority grade.By taking associated priority grade as an example:
Geographical location A, wireless network 1, channel 2, priority 90 are divided;
Geographical location B, wireless network 2, channel 5, priority 30 divide;
Geographical location C, wireless network 3, channel 1, priority 10 are divided;
Assuming that also wireless network 4 is also the wireless network being successfully connected, geographical location C then can be by wireless network The relevant information of network 4 also serve as with the associated wireless networks of geographical location C, while store the channel where wireless network 4 and Priority level.
Generation with the channel of the first wireless network of each first geographic location association and first wireless network, The priority level of first wireless network can be stored in the memory space of mobile terminal in advance.
Step S205, obtains the current geographical location of mobile terminal, and judge the current geographical location whether with extremely The distance in a few geographical location prestored is within a preset range.
The step is consistent with step S101 contents, specifically can refer to the description of step S 101, details are not described herein.
Step S206, if the distance in the current geographical location and at least one geographical location prestored is being preset In the range of, then by the geographical location prestored with the distance in current geographical location within a preset range with being arranged to target Position is managed, and obtains the channel of the associated wireless network of the target geographic position, the target geographic position is associated wireless Network is target radio network.
The step is consistent with step S102 contents, specifically can refer to the description of step S 102, details are not described herein.
Step S207, if the number of the target radio network is more than 1, obtains the priority of each target radio network Grade, and the target radio network is ranked up according to the priority level.
In the embodiment of the present application, the number such as target radio network is more than 1, then can be according to reality as shown in Figure 1 The method for applying example, is first ranked up according to each target geographic position and the distance in current geographical location, then further according to this Order scans successively.It is, of course, also possible to it will be carried out with the associated all target radio network unifications of all target geographic positions Sequence, for example, being ranked up by pre-set priority level to target radio network;It is, of course, also possible to first by target Geographical location is ranked up, if there is a situation where, a target geographic position is associated with multiple target radio networks, can be incited somebody to action Multiple target radio networks associated by the target geographic position of multiple target radio networks are associated to be ranked up again.
Step S208, based on the current order of the target radio network, successively in the channel of each target radio network The target radio network is scanned, until successful scan is to the target radio network or until in each target radio network Channel do not scan the target radio network.
In the embodiment of the present application, according to the order of target radio network after sequence, successively in each Target Wireless net The scan channel target radio network of network,
It is assumed that target radio network is wireless network 1, wireless network 2, wireless network 3, the channel at place is followed successively by channel 2nd, channel 5, channel 1, the target radio network after sequence are:Wireless network 2, wireless network 1, wireless network 3, then it is now wireless The channel 5 of network 2 scans wireless network 2, if wireless network 2 is arrived in scanning, stops scanning;If do not scanned in channel 5 wireless Network 2, then continue to scan wireless network 1 in the channel 2 where wireless network 1, if wireless network 1 is arrived in scanning, stop scanning, If not scanning wireless network 1 in channel 2, continue to scan wireless network 3 in the channel 1 where wireless network 3, if successfully sweeping Retouch, then stop scanning, if not scanning wireless network 3 in channel 1, stop scanning.By the example above, it is known that stopping The condition only scanned is:Successful scan does not scan to the target radio network or in the channel of each target radio network To the target radio network.
Step S209, if the target radio network is arrived in scanning, initiating wireless connection to the target radio network please Ask.
Step S210, if not scanning the Target Wireless network, is scanned by all channel, is passing through all channel After scanning wireless network, the wireless network arrived to scanning initiates radio connection request.
In the embodiment of the present application, can be to the Target Wireless net that scanning is arrived if the target radio network is arrived in scanning Network initiates radio connection request, if be not connected with successfully, can be continued to scan on according to scanning sequency before.If do not scan The Target Wireless network is, it is necessary to recover normal scan mode (such as all channel scanning), it is necessary to explanation, all channel scanning Simply one of embodiment, in practical applications, can also be and switch to other scan modes.If swept by all channel Retouch mode or other scan modes scan the other wireless networks arrived outside target radio network, the then target arrived to scanning Other wireless networks outside wireless network initiate connection request.
The embodiment of the present application by obtained from historical record the channel of wireless network for connecting into merits and demerits, geographical location with And priority generates relevant information and the storage of the wireless network associated with geographical location, determining mobile terminal currently After geographical location, it is possible to by current geographical location compared with the geographical location prestored, so as to obtain current Geographical location can be with the channel where the wireless network of successful connection, and in the scan channel wireless network, since this is wireless Network is the wireless network of the mistake of history successful connection, so in current geographical location, the probability scanned again can be larger, Meanwhile the probability of successful connection is also larger.In this way, not only increasing the scan efficiency of wireless network, wireless network is also improved Joint efficiency.
It is to be understood that the size of the sequence number of each step is not meant to the priority of execution sequence, each process in above-described embodiment Execution sequence should determine that the implementation process without tackling the embodiment of the present application forms any limit with its function and internal logic It is fixed.
Fig. 3 is the schematic block diagram for the mobile terminal that one embodiment of the application provides, and for convenience of description, is only shown and this Shen Please the relevant part of embodiment.
The mobile terminal 3 can be software unit, the hardware list being built in the mobile terminals such as existing mobile phone, notebook The unit of first or soft or hard combination, it is mobile eventually can also to be integrated into the existing mobile phone, notebook etc. as independent suspension member In end, it is also used as independent mobile terminal and exists.
The mobile terminal 3 includes:
Judgment module 31, the geographical location current for obtaining mobile terminal, and judge that the current geographical location is The no and distance at least one geographical location prestored is within a preset range;
Target radio network acquisition module 32, if for the current geographical location and at least one ground prestored Manage position distance within a preset range, then by the ground prestored with the distance in current geographical location within a preset range Reason position is arranged to target geographic position, and obtains the channel of the associated wireless network of the target geographic position, the target The wireless network of geographic location association is target radio network;
Scan module 33, for the channel in the target radio network, scans the target radio network.
Optionally, the mobile terminal 3 further includes:
Historical record acquisition module 34, for judging whether the current geographical location prestores with least one Geographical location distance within a preset range before, obtain the historical record of the mobile scanning terminal wireless network;
First wireless network acquisition module 35, for obtaining the first wireless network, first wireless from the historical record Channel, the first geographical location where network, first wireless network connect into the wireless network of merits and demerits for the mobile terminal Network, the geographical location where when first geographical location is the mobile terminal and first wireless network connection success;
First setup module 36, for according to the first geographical location generation and each the obtained from the historical record Channel where first wireless network of one geographic location association and first wireless network.
Optionally, the scan module 33 includes:
Priority acquiring unit 331, if for the target radio network number be more than 1, obtain each target without The priority level of gauze network, and the target radio network is ranked up according to the priority level;
Scanning element 332, for based on the current order of the target radio network, successively in each target radio network Scan channel described in target radio network, until successful scan to the target radio network or until each target without The channel of gauze network does not scan the target radio network.
Optionally, the mobile terminal 3 further includes:
The first wireless network acquisition module 35, be additionally operable to obtain from the historical record the first wireless network and The parameter of first wireless network, first wireless network connect into the wireless network of merits and demerits, institute for the mobile terminal Stating the parameter of the first wireless network includes the average signal strength values of first wireless network;
Second setup module 37, it is excellent for being generated according to the parameter of first wireless network for each first wireless network First level grade.
Optionally, the mobile terminal 3 further includes:
First connection request sending module, if the target radio network is arrived for scanning, to the Target Wireless net Network initiates radio connection request.
Second connection request sending module, if for not scanning the Target Wireless network, is carried out by all channel Scanning, after by all channel scanning to wireless network, the wireless network arrived to scanning initiates radio connection request.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work( Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different Functional unit, module are completed, will the internal structure of the mobile terminal be divided into different functional units or module, to complete All or part of function described above.Each functional unit, module in embodiment can be integrated in a processing unit, Can also be that unit is individually physically present, can also two or more units integrate in a unit, above-mentioned collection Into unit can both have been realized in the form of hardware, can also be realized in the form of SFU software functional unit.In addition, each function Unit, the specific name of module are not limited to the protection domain of the application also only to facilitate mutually distinguish.Above-mentioned dress Middle unit, the specific work process of module are put, may be referred to the corresponding process in preceding method embodiment, details are not described herein.
Fig. 4 is the schematic block diagram for the mobile terminal that the another embodiment of the application provides.As shown in figure 4, the shifting of the embodiment Dynamic terminal 4 includes:One or more processors 40, memory 41 and it is stored in the memory 41 and can be in the processing The computer program 42 run on device 40.The processor 40 realizes above-mentioned each wireless network when performing the computer program 42 Step in the scan method embodiment of network, such as the step S101 to S103 shown in Fig. 1.Alternatively, the processor 40 performs The function of each module/unit in above-mentioned mobile terminal embodiment, such as module 31 shown in Fig. 3 are realized during the computer program 42 To 33 function.
Exemplary, the computer program 42 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 41, and are performed by the processor 40, to complete the application.Described one A or multiple module/units can be the series of computation machine programmed instruction section that can complete specific function, which is used for Implementation procedure of the computer program 42 in the mobile terminal 4 is described.For example, the computer program 42 can be divided It is cut into judgment module, target radio network acquisition module, scan module.
The judgment module, the geographical location current for obtaining mobile terminal, and judge the current geographical location Whether with the distance at least one geographical location prestored within a preset range;
The target radio network acquisition module, if being prestored for the current geographical location with least one The distance in geographical location within a preset range, then by the prestoring within a preset range with the distance in current geographical location Geographical location is arranged to target geographic position, and obtains the channel of the associated wireless network of the target geographic position, the mesh The wireless network for marking geographic location association is target radio network;
The scan module, for the channel in the target radio network, scans the target radio network.
Other modules or unit can refer to the description in the embodiment shown in Fig. 3, and details are not described herein.
The mobile terminal includes but are not limited to processor 40, memory 41.It will be understood by those skilled in the art that figure 4 be only an example of mobile terminal 4, does not form the restriction to mobile terminal 4, can be included more more or less than illustrating Component, either combine some components or different components, such as the mobile terminal can also include input equipment, defeated Go out equipment, network access equipment, bus etc..
The processor 40 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor Deng.
The memory 41 can be the internal storage unit of the mobile terminal 4, such as the hard disk of mobile terminal 4 or interior Deposit.The memory 41 can also be the External memory equipment of the mobile terminal 4, such as be equipped with the mobile terminal 4 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, dodges Deposit card (Flash Card) etc..Further, the memory 41 can also both include the storage inside list of the mobile terminal 4 Member also includes External memory equipment.The memory 41 is used to store needed for the computer program and the mobile terminal Other programs and data.The memory 41 can be also used for temporarily storing the data that has exported or will export.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and is not described in detail or remembers in some embodiment The part of load, may refer to the associated description of other embodiments.
Those of ordinary skill in the art may realize that each exemplary list described with reference to the embodiments described herein Member and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, application-specific and design constraint depending on technical solution.Professional technician Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed Scope of the present application.
In embodiment provided herein, it should be understood that disclosed mobile terminal and method, can pass through it Its mode is realized.For example, mobile terminal embodiment described above is only schematical, for example, the module or list The division of member, is only a kind of division of logic function, can there is other dividing mode when actually realizing, for example, multiple units or Component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, show Show or the mutual coupling discussed or direct-coupling or communication connection can be by some interfaces, between device or unit Coupling or communication connection are connect, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit The component shown may or may not be physical location, you can with positioned at a place, or can also be distributed to multiple In network unit.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated module/unit realized in the form of SFU software functional unit and as independent production marketing or In use, it can be stored in a computer read/write memory medium.Based on such understanding, the application realizes above-mentioned implementation All or part of flow in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a computer-readable recording medium, the computer program when being executed by processor, it can be achieved that on The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation Code can be source code form, object identification code form, executable file or some intermediate forms etc..The computer-readable medium It can include:Any entity or device, recording medium, USB flash disk, mobile hard disk, the magnetic of the computer program code can be carried Dish, CD, computer storage, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It is it should be noted that described The content that computer-readable medium includes can carry out appropriate increasing according to legislation in jurisdiction and the requirement of patent practice Subtract, such as in some jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and Telecommunication signal.
Embodiment described above is only to illustrate the technical solution of the application, rather than its limitations;Although with reference to foregoing reality Example is applied the application is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to foregoing each Technical solution described in embodiment is modified, or carries out equivalent substitution to which part technical characteristic;And these are changed Or replace, the essence of appropriate technical solution is departed from the spirit and scope of each embodiment technical solution of the application, should all Within the protection domain of the application.

Claims (10)

  1. A kind of 1. scan method of wireless network, it is characterised in that including:
    The current geographical location of mobile terminal is obtained, and judges whether the current geographical location prestores with least one Geographical location distance within a preset range;
    , will be with if the distance in the current geographical location and at least one geographical location prestored is within a preset range The geographical location prestored of the distance in current geographical location within a preset range is arranged to target geographic position, and obtains The channel of the associated wireless network of target geographic position, the associated wireless network of target geographic position are Target Wireless Network;
    In the channel of the target radio network, the target radio network is scanned.
  2. 2. the scan method of wireless network as claimed in claim 1, it is characterised in that judging the current geographical location Whether with the distance at least one geographical location prestored within a preset range before, further include:
    Obtain the historical record of the mobile scanning terminal wireless network;
    Obtain the first wireless network, the channel of the first wireless network, the first geographical location from the historical record, described first Wireless network connects into the wireless network of merits and demerits for the mobile terminal, and first geographical location is the mobile terminal and institute State the geographical location where when the first wireless network connection succeeds;
    According to the generation of the first geographical location and the first nothing of each first geographic location association obtained from the historical record The channel of gauze network and first wireless network.
  3. 3. the scan method of Wi-Fi as claimed in claim 1, it is characterised in that described in the target radio network Channel, scanning the target radio network includes:
    If the number of the target radio network is more than 1, the priority level of each target radio network is obtained, and according to institute Priority level is stated to be ranked up the target radio network;
    Based on the current order of the target radio network, successively target described in the scan channel in each target radio network without Gauze network, until successful scan is to the target radio network or until the channel in each target radio network does not scan To the target radio network.
  4. 4. the scan method of wireless network as claimed in claim 3, it is characterised in that obtaining each target radio network Before priority level, further include:
    Obtain the historical record of the mobile scanning terminal wireless network;
    The parameter of the first wireless network and first wireless network, first wireless network are obtained from the historical record Network connects into the wireless network of merits and demerits for the mobile terminal, and the parameter of first wireless network includes first wireless network The average signal strength values of network;
    Priority level is generated for each first wireless network according to the parameter of first wireless network.
  5. 5. such as the scan method of Claims 1-4 any one of them wireless network, it is characterised in that in the Target Wireless The channel of network, after scanning the target radio network, further includes:
    If the target radio network is arrived in scanning, radio connection request is initiated to the target radio network.
    If not scanning the Target Wireless network, it is scanned by all channel, is passing through all channel scanning to wireless network After network, the wireless network arrived to scanning initiates radio connection request.
  6. A kind of 6. mobile terminal, it is characterised in that including:
    Judgment module, the geographical location current for obtaining mobile terminal, and judge the current geographical location whether with extremely The distance in a few geographical location prestored is within a preset range;
    Target radio network acquisition module, if for the current geographical location and at least one geographical location prestored Distance within a preset range, then by the geographical location prestored with the distance in current geographical location within a preset range Target geographic position is arranged to, and obtains the channel of the associated wireless network of the target geographic position, the target geographic position It is target radio network to put associated wireless network;
    Scan module, for the channel in the target radio network, scans the target radio network.
  7. 7. mobile terminal as claimed in claim 6, it is characterised in that further include:
    Historical record acquisition module, for judge the current geographical location whether with least one geography prestored The distance of position within a preset range before, obtain the historical record of the mobile scanning terminal wireless network;
    First wireless network acquisition module, for obtaining the first wireless network, the first wireless network institute from the historical record Channel, the first geographical location, first wireless network connects into the wireless networks of merits and demerits for the mobile terminal, described Geographical location where when first geographical location is the mobile terminal and first wireless network connection success;
    First setup module, for geographical according to the first geographical location generation obtained from the historical record and each first Channel where associated first wireless network in position and first wireless network.
  8. 8. mobile terminal as claimed in claim 6, it is characterised in that the scan module includes:
    Priority acquiring unit, if the number for the target radio network is more than 1, obtains each target radio network Priority level, and the target radio network is ranked up according to the priority level;
    Scanning element, for based on the current order of the target radio network, successively in the channel of each target radio network The target radio network is scanned, until successful scan is to the target radio network or until in each target radio network Channel do not scan the target radio network.
  9. 9. a kind of mobile terminal, including memory, processor and it is stored in the memory and can be on the processor The computer program of operation, it is characterised in that the processor realizes such as claim 1 to 5 when performing the computer program The step of any one the method.
  10. 10. a kind of computer-readable recording medium, it is characterised in that the computer-readable recording medium storage has computer journey Sequence, is realized such as the step of any one of claim 1 to 5 the method when the computer program is executed by one or more processors Suddenly.
CN201711384483.XA 2017-12-20 2017-12-20 A kind of scan method of wireless network, mobile terminal and storage medium Pending CN107949031A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711384483.XA CN107949031A (en) 2017-12-20 2017-12-20 A kind of scan method of wireless network, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711384483.XA CN107949031A (en) 2017-12-20 2017-12-20 A kind of scan method of wireless network, mobile terminal and storage medium

Publications (1)

Publication Number Publication Date
CN107949031A true CN107949031A (en) 2018-04-20

Family

ID=61941990

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711384483.XA Pending CN107949031A (en) 2017-12-20 2017-12-20 A kind of scan method of wireless network, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN107949031A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108960811A (en) * 2018-05-29 2018-12-07 阿里巴巴集团控股有限公司 A kind of method of payment and client
CN109327915A (en) * 2018-09-29 2019-02-12 Oppo广东移动通信有限公司 A kind of connection method, device and terminal
CN110392412A (en) * 2019-07-23 2019-10-29 歌尔科技有限公司 Network distribution method, device, equipment and medium for Internet of things equipment
CN111107605A (en) * 2018-10-26 2020-05-05 九阳股份有限公司 Network distribution method of household electrical appliance and household electrical appliance
CN112987612A (en) * 2021-02-24 2021-06-18 浙江优纳特科学仪器有限公司 Position scanning method, device and system, electronic device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101203024A (en) * 2006-12-15 2008-06-18 华为技术有限公司 Method and system for searching wireless network and multi-mode equipment
CN101606405A (en) * 2006-10-24 2009-12-16 捷讯研究有限公司 Wlan network information caching
US20140287751A1 (en) * 2011-10-04 2014-09-25 North Carolina State University Methods, systems, and computer readable media for reducing wi-fi scanning using cellular network to wi-fi access point mapping information
CN104427587A (en) * 2013-08-23 2015-03-18 联想移动通信科技有限公司 Connection method for wireless local area network access point, and mobile equipment
CN104602324A (en) * 2015-01-27 2015-05-06 广东欧珀移动通信有限公司 Wireless access point scanning method and device and terminal device
CN105517192A (en) * 2016-01-27 2016-04-20 广东欧珀移动通信有限公司 Wireless network connecting method and device
CN106793015A (en) * 2017-02-20 2017-05-31 广东欧珀移动通信有限公司 A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101606405A (en) * 2006-10-24 2009-12-16 捷讯研究有限公司 Wlan network information caching
CN101203024A (en) * 2006-12-15 2008-06-18 华为技术有限公司 Method and system for searching wireless network and multi-mode equipment
US20140287751A1 (en) * 2011-10-04 2014-09-25 North Carolina State University Methods, systems, and computer readable media for reducing wi-fi scanning using cellular network to wi-fi access point mapping information
CN104427587A (en) * 2013-08-23 2015-03-18 联想移动通信科技有限公司 Connection method for wireless local area network access point, and mobile equipment
CN104602324A (en) * 2015-01-27 2015-05-06 广东欧珀移动通信有限公司 Wireless access point scanning method and device and terminal device
CN105517192A (en) * 2016-01-27 2016-04-20 广东欧珀移动通信有限公司 Wireless network connecting method and device
CN106793015A (en) * 2017-02-20 2017-05-31 广东欧珀移动通信有限公司 A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108960811A (en) * 2018-05-29 2018-12-07 阿里巴巴集团控股有限公司 A kind of method of payment and client
WO2019228001A1 (en) * 2018-05-29 2019-12-05 阿里巴巴集团控股有限公司 Payment method and client
CN108960811B (en) * 2018-05-29 2021-01-15 创新先进技术有限公司 Payment method and client
CN109327915A (en) * 2018-09-29 2019-02-12 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
CN110392412A (en) * 2019-07-23 2019-10-29 歌尔科技有限公司 Network distribution method, device, equipment and medium for Internet of things equipment
CN112987612A (en) * 2021-02-24 2021-06-18 浙江优纳特科学仪器有限公司 Position scanning method, device and system, electronic device and storage medium
CN112987612B (en) * 2021-02-24 2022-06-07 浙江优纳特科学仪器有限公司 Position scanning method, device and system, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN107949031A (en) A kind of scan method of wireless network, mobile terminal and storage medium
TWI324470B (en) Method, article and apparatus for radio communication
CN111405466B (en) Site identification method, arrival reminding method, device, terminal and storage medium
CN109017344B (en) Charging pile automatic authentication method
CN108337707A (en) A kind of switching method of wireless network, mobile terminal and storage medium
CN105376757A (en) Mobile device Wi-Fi channel configuration method and device
CN104541282A (en) Unlocking method, apparatus and device
CN105392142B (en) A kind of Wireless Fidelity Wi-Fi access-in point information storage method and device
CN104053155A (en) Data protection method, device and system for iBeacon base station
CN108055089A (en) The working frequency of NFC device determines method and device
CN106686587B (en) Wireless fidelity Wi-Fi connection method, mobile terminal and medium
WO2019184009A1 (en) Network access method and terminal device
CN103490466A (en) Battery electric quantity sharing method and device and server
CN104782192A (en) Cloud-aware collaborative mobile platform power management using mobile sensors
CN106101989A (en) A kind of method selecting safe unit and mobile terminal
CN108617023A (en) Self-organized network communication method and terminal device
CN110380925A (en) A kind of network equipment detection middle port selection method and system
CN109905840A (en) Localization method, device, system and radio reception device
CN107205210B (en) Method, device, system and computer program for configuring wireless network node
CN107256380A (en) Fingerprint register method and Related product
CN107968848A (en) A kind of method, terminal device and storage medium for obtaining IP address
CN108235233A (en) A kind of method and device for finding wireless charging device
CN105868597A (en) Fingerprint unlocking method and mobile terminal
CN107708141A (en) A kind of scan method of wireless network, mobile terminal and storage medium
CN107277896A (en) Wifi hotspot management method, device and terminal device

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: 20180420

RJ01 Rejection of invention patent application after publication