CN108307484B - Connection method and device of wireless access point, mobile terminal and storage medium - Google Patents

Connection method and device of wireless access point, mobile terminal and storage medium Download PDF

Info

Publication number
CN108307484B
CN108307484B CN201810039497.6A CN201810039497A CN108307484B CN 108307484 B CN108307484 B CN 108307484B CN 201810039497 A CN201810039497 A CN 201810039497A CN 108307484 B CN108307484 B CN 108307484B
Authority
CN
China
Prior art keywords
wireless access
access point
coverage area
user
optimal
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.)
Active
Application number
CN201810039497.6A
Other languages
Chinese (zh)
Other versions
CN108307484A (en
Inventor
俞义
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810039497.6A priority Critical patent/CN108307484B/en
Publication of CN108307484A publication Critical patent/CN108307484A/en
Application granted granted Critical
Publication of CN108307484B publication Critical patent/CN108307484B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • H04W4/026Services making use of location information using location based information parameters using orientation information, e.g. compass
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • H04W4/027Services making use of location information using location based information parameters using movement velocity, acceleration 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 invention discloses a connection method and device of a wireless access point, a mobile terminal and a storage medium. The method comprises the following steps: acquiring current position information of a user; judging whether the current position information is positioned in the coverage area of the target wireless access point; if yes, judging whether the user does not enter the coverage area of the target wireless access point for the first time; if so, acquiring at least one wireless access point to be scanned in the coverage area from a pre-established relationship table of the coverage area and the optimal wireless access point, wherein the relationship table comprises a plurality of coverage areas and the optimal wireless access point contained in each coverage area; searching a wireless access point with the highest priority from at least one wireless access point to be scanned; and controlling the mobile terminal to be connected with the wireless access point with the highest priority. The method can save the scanning matching time of the wireless AP, achieves the aim of quickly matching the optimal WiFi, and improves the user experience.

Description

Connection method and device of wireless access point, mobile terminal and storage medium
Technical Field
The present invention relates to the field of wireless communication technologies, and in particular, to a method and an apparatus for connecting a wireless access point, a mobile terminal, and a computer-readable storage medium.
Background
Currently, the process of connecting a mobile terminal to a wireless access point (e.g. a WiFi hotspot) is generally as follows: the mobile terminal initiates WiFi hotspot scanning, scans all WiFi routes around according to the scanning command, meanwhile stores information according to the routes, and matches the priority order of the scanned routes, if a user switches among a plurality of WiFi coverage areas continuously, when the routes needing to be connected are not the same, all stored WiFi hotspots in the mobile terminal and WiFi hotspots at the current position need to be matched and searched for each scanning, so as to search for a WiFi hotspot with the highest priority for connection, however, the user can return to a certain WiFi coverage area which is idle for a long time before again, and the requirement of quickly matching and searching for the optimal WiFi cannot be met.
Disclosure of Invention
The object of the present invention is to solve at least to some extent one of the above mentioned technical problems.
To this end, a first object of the present invention is to provide a method for connecting a wireless access point. The method can save the scanning matching time of the wireless AP, achieves the aim of quickly matching the optimal WiFi, and improves the user experience.
A second objective of the present invention is to provide a connection device for wireless access points.
A third object of the present invention is to provide a mobile terminal.
A fourth object of the invention is to propose a computer-readable storage medium.
In order to achieve the above object, an embodiment of the present invention provides a method for connecting a wireless access point, including: acquiring current position information of a user; judging whether the current position information is positioned in the coverage area of the target wireless access point; if yes, judging whether the user does not enter the coverage area of the target wireless access point for the first time; if yes, acquiring at least one wireless access point to be scanned in the coverage area from a pre-established relationship table of the coverage area and the optimal wireless access point, wherein the relationship table comprises a plurality of coverage areas and the optimal wireless access point contained in each coverage area; searching a wireless access point with the highest priority from the at least one wireless access point to be scanned; and controlling the mobile terminal to be connected with the wireless access point with the highest priority.
According to the method for connecting the wireless access points, when the user is judged to not enter the coverage area of the target wireless access point for the first time, at least one wireless access point to be scanned in the coverage area can be obtained from a pre-established relation table between the coverage area and the optimal wireless access point, the wireless access point with the highest priority level is searched from the at least one wireless access point to be scanned, and finally, the mobile terminal is controlled to be connected with the wireless access point with the highest priority level. When a user returns to a certain WiFi coverage area, the wireless access point in the WiFi coverage area is obtained from the pre-established relationship table between the coverage area and the optimal wireless access point, and the mobile terminal is controlled to scan and match the wireless access point in the WiFi coverage area, so that the matching range of WiFi hotspots is reduced, all wireless APs stored in the mobile terminal do not need to be scanned and matched, the scanning and matching time of the wireless APs is saved, the purpose of quickly matching the optimal WiFi is realized, and the user experience is improved.
In order to achieve the above object, a connection device for a wireless access point according to an embodiment of a second aspect of the present invention includes: the first acquisition module is used for acquiring the current position information of a user; the first judging module is used for judging whether the current position information is positioned in the coverage area of the target wireless access point; the second judgment module is used for judging whether the user enters the coverage area of the target wireless access point for the first time or not when the current position information is located in the coverage area of the target wireless access point; a second obtaining module, configured to obtain, when the user does not enter a coverage area of the target wireless access point for the first time, at least one wireless access point to be scanned located in the coverage area from a pre-established relationship table between the coverage area and an optimal wireless access point, where the relationship table includes a plurality of coverage areas and the optimal wireless access point included in each coverage area; the searching module is used for searching the wireless access point with the highest priority from the at least one wireless access point to be scanned; and the connection control module is used for controlling the mobile terminal to be connected with the wireless access point with the highest priority.
According to the connecting device of the wireless access point, when the situation that the user does not enter the coverage area of the target wireless access point for the first time is judged, at least one wireless access point to be scanned in the coverage area can be obtained from a pre-established relation table between the coverage area and the optimal wireless access point, the wireless access point with the highest priority level is searched from the at least one wireless access point to be scanned, and finally, the mobile terminal is controlled to be connected with the wireless access point with the highest priority level. When a user returns to a certain WiFi coverage area, the wireless access point in the WiFi coverage area is obtained from the pre-established relationship table between the coverage area and the optimal wireless access point, and the mobile terminal is controlled to scan and match the wireless access point in the WiFi coverage area, so that the matching range of WiFi hotspots is reduced, all wireless APs stored in the mobile terminal do not need to be scanned and matched, the scanning and matching time of the wireless APs is saved, the purpose of quickly matching the optimal WiFi is realized, and the user experience is improved.
In order to achieve the above object, a mobile terminal according to an embodiment of a third aspect of the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the method for connecting a wireless access point according to the embodiment of the first aspect of the present invention.
To achieve the above object, a non-transitory computer-readable storage medium is provided in an embodiment of a fourth aspect of the present invention, and stores thereon a computer program, which when executed by a processor, implements a method for connecting a wireless access point according to an embodiment of the first aspect of the present invention.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a flowchart of a connection method of a wireless access point according to one embodiment of the present invention;
FIG. 2 is a flow chart of establishing a table of relationships between coverage areas and optimal wireless access points according to an embodiment of the present invention;
fig. 3 is a flowchart of a connection method of a wireless access point according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of a connection device of a wireless access point according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a connection device of a wireless access point according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of a connection device of a wireless access point according to still another embodiment of the present invention;
fig. 7 is a schematic structural diagram of a connection apparatus of a wireless access point according to still another embodiment of the present invention;
fig. 8 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
A connection method, apparatus, mobile terminal, and computer-readable storage medium of a wireless access point according to embodiments of the present invention are described below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a connection method of a wireless access point according to one embodiment of the present invention. It should be noted that the method for connecting a wireless access point according to the embodiment of the present invention is applicable to a connection device for a wireless access point according to the embodiment of the present invention. Wherein, the connecting device can be configured on the mobile terminal. As an example, the wireless access point may be a wireless WiFi hotspot.
As shown in fig. 1, the connection method of the wireless access point may include:
s110, acquiring the current position information of the user.
Alternatively, the current location information of the user may be acquired through a GPS (Global Positioning System) module in the mobile terminal.
And S120, judging whether the current position information is positioned in the coverage area of the target wireless access point.
Optionally, the coverage area of the target wireless access point may be predetermined, for example, the coverage area of the target wireless access point may be predetermined by: when detecting that the mobile terminal is connected to the target wireless access point, the position information of a first place corresponding to the maximum signal strength of the target wireless access point can be acquired, when detecting that a user moves and detecting that the current mobile terminal starts to be disconnected from the target wireless access point, the position information of a second place at the moment is determined, the second place is recorded as a critical point of a coverage area of the target wireless access point, and then, the circular area formed by taking the first place as a circle center and taking the distance between the first place and the second place as a radius is the coverage area of the target wireless access point.
In this step, it may be determined whether the current location information is included in the coverage area of the target wireless access point, and if not, it may be determined that there is no wireless access point around the user currently; if so, the user may be considered to have wireless access points currently around.
And S130, if yes, judging whether the user does not enter the coverage area of the target wireless access point for the first time.
In an embodiment of the present invention, when a user first enters a coverage area of a certain wireless AP, the mobile terminal may record and store identification information of the wireless AP, so that, when the user enters the coverage area of the wireless AP again, whether the user enters the coverage area of the wireless AP for a non-first time may be determined by the previously stored identification information.
In another embodiment of the present invention, a motion trajectory of the user after leaving the coverage area of the previous wireless access point may be obtained, and it is determined whether the user has not entered the coverage area of the target wireless access point for the first time according to the motion trajectory.
As an example, acceleration information after the user leaves the coverage area of the previous wireless access point may be obtained by an acceleration sensor in the mobile terminal, and a motion direction after the user leaves the coverage area of the previous wireless access point may be obtained by a gyroscope in the mobile terminal, and then a motion trajectory after the user leaves the coverage area of the previous wireless access point may be calculated according to the acceleration information and the motion direction.
As an example, the specific implementation manner of determining whether the user enters the coverage area of the target wireless access point for the non-first time according to the motion trajectory may be as follows: and acquiring starting position information in the motion track, and judging whether the starting position information is positioned in the coverage area of the target wireless access point, if so, judging that the user does not enter the coverage area of the target wireless access point for the first time.
That is to say, acceleration information and a motion direction of the user after leaving the last WiFi coverage area can be obtained according to an acceleration sensor, a gyroscope and the like in the mobile summary, and a motion trajectory of the user after leaving the last WiFi coverage area can be calculated according to the acceleration information and the motion direction. After the user moves for multiple times, calculating through a motion track, if the current position of the user is judged to be in a coverage area of a certain WiFi, obtaining starting position information in the motion track, and judging whether the starting position information is in the coverage area of the certain WiFi, if so, judging that the user does not enter the coverage area of the target wireless access point for the first time.
And S140, if yes, acquiring at least one wireless access point to be scanned in the coverage area from a pre-established relationship table of the coverage area and the optimal wireless access point, wherein the relationship table comprises a plurality of coverage areas and the optimal wireless access point contained in each coverage area.
Optionally, when it is determined that the user does not enter the coverage area of the target wireless access point for the first time, all the optimal wireless access points located in the coverage area may be obtained from a pre-established relationship table between the coverage area and the optimal wireless access points, where all the optimal wireless access points are wireless access points to be scanned and matched. For example, assume that all the stored wireless APs in the mobile terminal are: when the user returns to a coverage area of a hot spot of the wireless AP4, which is not first entered, the wireless AP1, the wireless AP2, the wireless AP3, the wireless AP4 and the wireless AP5 may obtain, from the relationship table between the coverage area and the optimal wireless access point, that all the wireless access points located in the coverage area of the hot spot of the wireless AP4 are "wireless AP1 and wireless AP 5", that is, the coverage area only includes the wireless AP4, the wireless AP1 and the wireless AP5, but the wireless AP2 and the wireless AP3 are not in the coverage area, and at this time, the wireless AP4, the wireless AP1 and the wireless AP5 may be used as the wireless access points to be scanned.
It is to be understood that the table of the relationship of the coverage area to the optimal wireless access point may be pre-established. As an example, as shown in fig. 2, the relationship table between the coverage area and the optimal wireless access point may be pre-established by the following steps:
s210, when the mobile terminal is detected to be connected to the sample wireless access point, obtaining the sample coverage area information of the sample wireless access point;
optionally, when it is detected that the mobile terminal is connected to the sample wireless access point, the location information of a location a corresponding to the maximum signal strength of the sample wireless access point (the location a may be understood as a location where a route corresponding to the sample wireless access point is located) may be obtained, and when it is detected that the user moves and it is detected that the current mobile terminal starts to disconnect from the sample wireless access point, the location information of a location B at this time is determined, and the location B is recorded as a critical point of the coverage area of the sample wireless access point, and then, with the location a as a center of a circle and a distance between the location a and the location B as a radius, the formed circular area may be the sample coverage area of the sample wireless access point.
S220, acquiring all optimal wireless access point information in a sample coverage area;
optionally, the wireless WiFi scanning module of the mobile terminal may scan the wireless access points in the coverage area of the sample, use the scanned and matched wireless access points as the optimal wireless access points, and obtain related information of the optimal wireless access points, such as identification information (e.g., WiFi names, etc.).
And S230, establishing a relation table of the coverage area and the optimal wireless access point according to the sample coverage area information and all the optimal wireless access point information.
Optionally, a corresponding relationship between the sample coverage area information and all the optimal wireless access point information is established, and the sample coverage area information, all the optimal wireless access point information and the corresponding relationship are written into a table, so as to establish a relationship table between the coverage area and the optimal wireless access point.
Therefore, by establishing the corresponding relation between the coverage area of the wireless access point and all the wireless access points contained in the coverage area, when a subsequent user returns to a certain WiFi coverage area again, the matching range of the WiFi hotspot can be reduced to the wireless access point in the coverage area through the corresponding relation, all the wireless APs stored in the mobile terminal do not need to be scanned and matched, and the scanning and matching time of the wireless APs is saved.
S150, searching the wireless access point with the highest priority from at least one wireless access point to be scanned.
Optionally, the priority level of the wireless access point may be determined by the following conditions: 1) the priority of the wireless access point is higher as the connection time of the wireless access point is longer, and the priority of the wireless access point is lower as the connection time of the wireless access point is shorter; 2) the signal strength of a wireless access point is ranked, for example, the stronger the signal of the wireless access point, the higher the priority of the wireless access point, the weaker the signal of the wireless access point, the lower the priority of the wireless access point, and the like.
As an example, the wireless access point with the longest connection time and the strongest signal strength can be searched from the at least one wireless access point to be scanned as the wireless access point with the highest priority.
And S160, controlling the mobile terminal to be connected with the wireless access point with the highest priority.
According to the method for connecting the wireless access points, when the user is judged to not enter the coverage area of the target wireless access point for the first time, at least one wireless access point to be scanned in the coverage area can be obtained from a pre-established relation table between the coverage area and the optimal wireless access point, the wireless access point with the highest priority level is searched from the at least one wireless access point to be scanned, and finally, the mobile terminal is controlled to be connected with the wireless access point with the highest priority level. When a user returns to a certain WiFi coverage area, the wireless access point in the WiFi coverage area is obtained from the pre-established relationship table between the coverage area and the optimal wireless access point, and the mobile terminal is controlled to scan and match the wireless access point in the WiFi coverage area, so that the matching range of WiFi hotspots is reduced, all wireless APs stored in the mobile terminal do not need to be scanned and matched, the scanning and matching time of the wireless APs is saved, the purpose of quickly matching the optimal WiFi is realized, and the user experience is improved.
In order to improve the usability and feasibility of the present invention, the content of the relation table between the coverage area and the optimal wireless access point is extended, further, in an embodiment of the present invention, as shown in fig. 3, on the basis of that shown in fig. 1, the method for connecting the wireless access point may further include:
s310, if the user enters the coverage area of the target wireless access point for the first time, whether the mobile terminal is connected with the target wireless access point is judged.
Optionally, when it is determined that the user enters the coverage area of the target wireless access point for the first time, it may be further determined whether the mobile terminal is currently connected to the target wireless access point.
And S320, if so, acquiring the coverage area information of the target wireless access point.
Optionally, when it is determined that the mobile terminal is currently connected to the target wireless access point, the location information of the first location corresponding to the maximum signal strength of the target wireless access point may be obtained, and when it is detected that the user moves and it is detected that the current mobile terminal starts to disconnect from the target wireless access point, the location information of the second location at that time is determined, and the second location is recorded as a critical point of the coverage area of the target wireless access point, and then, the circular area formed by taking the first location as a circle center and the distance between the first location and the second location as a radius is the coverage area of the target wireless access point.
S330, acquiring all optimal wireless access point information in the coverage area of the target wireless access point.
Optionally, the wireless WiFi scanning module of the mobile terminal may scan the wireless access points in the coverage area, take the scanned and matched wireless access points as the optimal wireless access points, and obtain related information of the optimal wireless access points, such as identification information (for example, WiFi names).
S340, adding the coverage area information of the target wireless access point and all the optimal wireless access point information into a relation table of the coverage area and the optimal wireless access point. Thereby, the content of the relation table of the coverage area and the optimal wireless access point can be expanded.
Corresponding to the connection methods of the wireless access points provided in the foregoing embodiments, an embodiment of the present invention further provides a connection device of a wireless access point, and since the connection device of the wireless access point provided in the embodiment of the present invention corresponds to the connection methods of the wireless access points provided in the foregoing embodiments, the foregoing embodiments of the connection method of the wireless access point are also applicable to the connection device of the wireless access point provided in this embodiment, and will not be described in detail in this embodiment. Fig. 4 is a schematic structural diagram of a connection device of a wireless access point according to an embodiment of the present invention. As shown in fig. 4, the connection device 400 of the wireless access point may include: a first obtaining module 410, a first judging module 420, a second judging module 430, a second obtaining module 440, a searching module 450 and a connection control module 460.
Specifically, the first obtaining module 410 is configured to obtain current location information of the user.
The first determining module 420 is configured to determine whether the current location information is located in a coverage area of the target wireless access point.
The second determining module 430 is configured to determine whether the user is not entering the coverage area of the target wireless access point for the first time when the current location information is located in the coverage area of the target wireless access point. As an example, as shown in fig. 5, the second judging module 430 may include an acquiring unit 431 and a judging unit 432. The obtaining unit 431 is configured to obtain a motion trajectory after the user leaves a coverage area of a previous wireless access point; the determining unit 432 is configured to determine whether the user is not entering the coverage area of the target wireless access point for the first time according to the motion trajectory.
As an example implementation manner, the obtaining unit 431 may specifically be configured to: acquiring acceleration information of a user after the user leaves a coverage area of a last wireless access point through an acceleration sensor in the mobile terminal; acquiring the motion direction of a user after the user leaves the coverage area of the last wireless access point through a gyroscope in the mobile terminal; and calculating the motion trail of the user after leaving the coverage area of the last wireless access point according to the acceleration information and the motion direction.
As an example implementation manner, the determining unit 432 may specifically be configured to: acquiring starting position information in a motion track; judging whether the starting position information is positioned in the coverage area of the target wireless access point; and if so, judging that the user does not enter the coverage area of the target wireless access point for the first time.
The second obtaining module 440 is configured to, when the user is not entering the coverage area of the target wireless access point for the first time, obtain at least one wireless access point to be scanned located in the coverage area from a pre-established relationship table between the coverage area and the optimal wireless access point, where the relationship table includes a plurality of coverage areas and the optimal wireless access point contained in each coverage area.
The searching module 450 is configured to search for a wireless access point with the highest priority from at least one wireless access point to be scanned.
The connection control module 460 is used to control the mobile terminal to connect with the wireless access point with the highest priority.
It is to be understood that the table of the relationship of the coverage area to the optimal wireless access point may be pre-established. Further, in an embodiment of the present invention, as shown in fig. 6, the connection device 400 of the wireless access point may further include: a pre-establishing module 470 may be configured to pre-establish a relationship table between the coverage area and the optimal wireless access point. As shown in fig. 6, the pre-establishing module 470 may include: a first obtaining unit 471, a second obtaining unit 472, and a creating unit 473. The first obtaining unit 471 is configured to obtain sample coverage area information of the sample wireless access point when it is detected that the mobile terminal is connected to the sample wireless access point; the second obtaining unit 472 is configured to obtain all the optimal wireless access point information in the coverage area of the sample; the establishing unit 473 is configured to establish a relationship table between the coverage area and the optimal wireless access point according to the sample coverage area information and all the optimal wireless access point information.
In order to improve the usability and feasibility of the present invention, the content of the relation table between the coverage area and the optimal wireless access point is extended, further, in an embodiment of the present invention, as shown in fig. 7, the connection apparatus 400 of the wireless access point may further include: a third judging module 480, a third acquiring module 490, a fourth acquiring module 4100 and an adding module 4110. The third determining module 480 is configured to determine whether the mobile terminal is connected to the target wireless access point when the user enters the coverage area of the target wireless access point for the first time; the third obtaining module 490 is configured to obtain coverage area information of the target wireless access point when the mobile terminal is connected to the target wireless access point; the fourth obtaining module 4100 is configured to obtain all optimal wireless access point information in a coverage area of the target wireless access point; the adding module 4110 is configured to add the coverage area information of the target wireless access point and all the optimal wireless access point information thereof to a relationship table between the coverage area and the optimal wireless access point.
According to the connecting device of the wireless access point, when the situation that the user does not enter the coverage area of the target wireless access point for the first time is judged, at least one wireless access point to be scanned in the coverage area can be obtained from a pre-established relation table between the coverage area and the optimal wireless access point, the wireless access point with the highest priority level is searched from the at least one wireless access point to be scanned, and finally, the mobile terminal is controlled to be connected with the wireless access point with the highest priority level. When a user returns to a certain WiFi coverage area, the wireless access point in the WiFi coverage area is obtained from the pre-established relationship table between the coverage area and the optimal wireless access point, and the mobile terminal is controlled to scan and match the wireless access point in the WiFi coverage area, so that the matching range of WiFi hotspots is reduced, all wireless APs stored in the mobile terminal do not need to be scanned and matched, the scanning and matching time of the wireless APs is saved, the purpose of quickly matching the optimal WiFi is realized, and the user experience is improved.
In order to implement the above embodiments, the present invention further provides a mobile terminal.
Fig. 8 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention. As shown in fig. 8, the mobile terminal 800 may include: a memory 810, a processor 820 and a computer program 830 stored in the memory 810 and operable on the processor 820, wherein the processor 820 executes the program 830 to implement the method for connecting a wireless access point according to any of the above embodiments of the present invention.
In order to implement the above embodiments, the present invention also proposes a non-transitory computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the method for connecting a wireless access point according to any of the above embodiments of the present invention.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. A method for connecting to a wireless access point, comprising the steps of:
acquiring current position information of a user;
judging whether the current position information is positioned in the coverage area of the target wireless access point;
if yes, judging whether the user does not enter the coverage area of the target wireless access point for the first time;
if so, determining at least one wireless access point to be scanned from all the optimal wireless access points corresponding to the coverage area according to a pre-established relation table of the coverage area and the optimal wireless access points, wherein the relation table comprises a plurality of coverage areas and all the optimal wireless access points contained in each coverage area; the priority of all the optimal wireless access points contained in each coverage area is sorted according to the connection time and arranged according to the signal intensity of the wireless access points;
searching a wireless access point with the highest priority from the at least one wireless access point to be scanned; the wireless access point with the highest priority is the wireless access point with the longest connection time and the strongest strength;
controlling the mobile terminal to be connected with the wireless access point with the highest priority;
wherein the method further comprises:
if the user enters the coverage area of the target wireless access point for the first time, judging whether the mobile terminal is connected with the target wireless access point;
if yes, acquiring the coverage area information of the target wireless access point;
acquiring all optimal wireless access point information in the coverage area of the target wireless access point;
adding the coverage area information of the target wireless access point and all the optimal wireless access point information thereof into a relation table of the coverage area and the optimal wireless access point;
the relation table of the coverage area and the optimal wireless access point is pre-established in the following mode:
when the mobile terminal is detected to be connected to a sample wireless access point, obtaining sample coverage area information of the sample wireless access point;
acquiring all optimal wireless access point information in the coverage area of the sample;
and establishing a relation table of the coverage area and the optimal wireless access point according to the sample coverage area information and all the optimal wireless access point information.
2. The method of claim 1, wherein the determining whether the user is not entering the coverage area of the target wireless access point for the first time comprises:
acquiring a motion track of the user after the user leaves a coverage area of a last wireless access point;
and judging whether the user enters the coverage area of the target wireless access point for the non-first time according to the motion trail.
3. The method for connecting to the wireless access point according to claim 2, wherein the obtaining the motion trajectory of the user after leaving the coverage area of the previous wireless access point comprises:
acquiring acceleration information of the user after the user leaves a coverage area of a last wireless access point through an acceleration sensor in the mobile terminal;
acquiring the motion direction of the user after the user leaves the coverage area of the last wireless access point through a gyroscope in the mobile terminal;
and calculating the motion track of the user after the user leaves the coverage area of the last wireless access point according to the acceleration information and the motion direction.
4. The method for connecting to the wireless access point according to claim 2, wherein the determining whether the user is not entering the coverage area of the target wireless access point for the first time according to the motion trajectory comprises:
acquiring starting position information in the motion trail;
judging whether the starting position information is positioned in the coverage area of the target wireless access point;
and if so, judging that the user does not enter the coverage area of the target wireless access point for the first time.
5. An apparatus for connecting a wireless access point, comprising:
the first acquisition module is used for acquiring the current position information of a user;
the first judging module is used for judging whether the current position information is positioned in the coverage area of the target wireless access point;
the second judgment module is used for judging whether the user enters the coverage area of the target wireless access point for the first time or not when the current position information is located in the coverage area of the target wireless access point;
a second obtaining module, configured to determine, when the user does not enter a coverage area of the target wireless access point for the first time, at least one wireless access point to be scanned from all optimal wireless connection points corresponding to the coverage area according to a pre-established relationship table between the coverage area and an optimal wireless access point, where the relationship table includes a plurality of coverage areas and all optimal wireless access points included in each coverage area; the priority of all the optimal wireless access points contained in each coverage area is sorted according to the connection time and arranged according to the signal intensity of the wireless access points;
the searching module is used for searching the wireless access point with the highest priority from the at least one wireless access point to be scanned; the wireless access point with the highest priority is the wireless access point with the longest connection time and the strongest strength;
the connection control module is used for controlling the mobile terminal to be connected with the wireless access point with the highest priority;
wherein the apparatus further comprises:
a third judging module, configured to judge whether the mobile terminal is connected to the target wireless access point when the user enters a coverage area of the target wireless access point for the first time;
a third obtaining module, configured to obtain coverage area information of the target wireless access point when the mobile terminal is connected to the target wireless access point;
a fourth obtaining module, configured to obtain information of all optimal wireless access points in a coverage area of the target wireless access point;
the adding module is used for adding the coverage area information of the target wireless access point and all the optimal wireless access point information thereof into a relation table of the coverage area and the optimal wireless access point;
the pre-establishing module is used for pre-establishing a relation table between the coverage area and the optimal wireless access point;
wherein the pre-established module comprises:
the mobile terminal comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring sample coverage area information of a sample wireless access point when the mobile terminal is detected to be connected to the sample wireless access point;
a second obtaining unit, configured to obtain information of all optimal wireless access points in the coverage area of the sample;
and the establishing unit is used for establishing a relation table of the coverage area and the optimal wireless access point according to the sample coverage area information and all the optimal wireless access point information.
6. The apparatus for connecting to a wireless access point of claim 5, wherein the second determining module comprises:
the acquisition unit is used for acquiring a motion track of the user after the user leaves a coverage area of the last wireless access point;
and the judging unit is used for judging whether the user enters the coverage area of the target wireless access point for the first time or not according to the motion track.
7. The apparatus for connecting to a wireless access point of claim 6, wherein the obtaining unit is specifically configured to:
acquiring acceleration information of the user after the user leaves a coverage area of a last wireless access point through an acceleration sensor in the mobile terminal;
acquiring the motion direction of the user after the user leaves the coverage area of the last wireless access point through a gyroscope in the mobile terminal;
and calculating the motion track of the user after the user leaves the coverage area of the last wireless access point according to the acceleration information and the motion direction.
8. The apparatus for connecting to a wireless access point according to claim 6, wherein the determining unit is specifically configured to:
acquiring starting position information in the motion trail;
judging whether the starting position information is positioned in the coverage area of the target wireless access point;
and if so, judging that the user does not enter the coverage area of the target wireless access point for the first time.
9. A mobile terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor, when executing the program, implements the method of connection of a wireless access point according to any of claims 1 to 4.
10. A non-transitory computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing the method for connecting of a wireless access point according to any one of claims 1 to 4.
CN201810039497.6A 2018-01-16 2018-01-16 Connection method and device of wireless access point, mobile terminal and storage medium Active CN108307484B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810039497.6A CN108307484B (en) 2018-01-16 2018-01-16 Connection method and device of wireless access point, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810039497.6A CN108307484B (en) 2018-01-16 2018-01-16 Connection method and device of wireless access point, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN108307484A CN108307484A (en) 2018-07-20
CN108307484B true CN108307484B (en) 2022-04-26

Family

ID=62868935

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810039497.6A Active CN108307484B (en) 2018-01-16 2018-01-16 Connection method and device of wireless access point, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN108307484B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020124356A1 (en) * 2018-12-18 2020-06-25 深圳市大疆创新科技有限公司 Coverage information determining method, signal coverage information determining device and unmanned aerial vehicle
CN109743676B (en) * 2019-01-03 2021-04-06 中国联合网络通信集团有限公司 Network connection control method, device and equipment
US11202339B2 (en) * 2019-04-10 2021-12-14 Mediatek Inc. Apparatuses and methods for packet distribution on multiple subscriber identities
CN113873609B (en) * 2021-09-24 2023-11-03 新华三技术有限公司成都分公司 Method and AC for guiding client to access AP
CN115604818B (en) * 2022-10-19 2023-06-06 中国标准化研究院 Positioning method based on sensor and recording system thereof

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102970733A (en) * 2012-12-06 2013-03-13 惠州Tcl移动通信有限公司 Mobile terminal and wireless connection method thereof
CN103916816A (en) * 2014-03-25 2014-07-09 深圳市宏电技术股份有限公司 Wireless access method and access controller
CN104584621A (en) * 2012-09-28 2015-04-29 英特尔公司 Mixed off-site / on-site prediction computation for reducing wireless reconnection time of a computing device
CN105009645A (en) * 2013-03-12 2015-10-28 高通股份有限公司 Method and apparatus for scanning for wireless access point
WO2017020550A1 (en) * 2015-08-03 2017-02-09 上海连尚网络科技有限公司 Method and device for generating access point attribute information of wireless access point
CN107466015A (en) * 2017-09-23 2017-12-12 东莞市腾盛软件科技有限公司 Access control method and Related product
CN107548032A (en) * 2016-06-27 2018-01-05 上海连尚网络科技有限公司 For providing the method and apparatus of WAP information

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015041663A1 (en) * 2013-09-20 2015-03-26 Intel Corporation Selective utilization of consumer shared access points to facilitate optimized wireless communications

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104584621A (en) * 2012-09-28 2015-04-29 英特尔公司 Mixed off-site / on-site prediction computation for reducing wireless reconnection time of a computing device
CN102970733A (en) * 2012-12-06 2013-03-13 惠州Tcl移动通信有限公司 Mobile terminal and wireless connection method thereof
CN105009645A (en) * 2013-03-12 2015-10-28 高通股份有限公司 Method and apparatus for scanning for wireless access point
CN103916816A (en) * 2014-03-25 2014-07-09 深圳市宏电技术股份有限公司 Wireless access method and access controller
WO2017020550A1 (en) * 2015-08-03 2017-02-09 上海连尚网络科技有限公司 Method and device for generating access point attribute information of wireless access point
CN107548032A (en) * 2016-06-27 2018-01-05 上海连尚网络科技有限公司 For providing the method and apparatus of WAP information
CN107466015A (en) * 2017-09-23 2017-12-12 东莞市腾盛软件科技有限公司 Access control method and Related product

Also Published As

Publication number Publication date
CN108307484A (en) 2018-07-20

Similar Documents

Publication Publication Date Title
CN108307484B (en) Connection method and device of wireless access point, mobile terminal and storage medium
KR101665573B1 (en) Methods for providing a navigation route based on network availability and device attributes
KR101339698B1 (en) Method and apparatus for handover between unlicensed mobile access network and cellular communication network
KR100677604B1 (en) Method and mobile device for performing fast hand-over in wireless LAN, and method of switching services using GPS information
KR100889893B1 (en) Wireless communication system, wireless communication apparatus, wireless communication method, and recording medium
CN111757411B (en) Cell selection method and device
US20190357112A1 (en) Cell Access Method And Apparatus, And Device
US20190281441A1 (en) Terminal mobility management method and network device
CN110740482B (en) Area switching method and device, train access unit and train
US20100330982A1 (en) Mobile station, mobile exchange station and mobile communication method
JP2006229756A (en) Apparatus and network system of radio communication
CN111954278B (en) Information reporting method and device, mobile terminal and storage medium
JP2008148136A (en) Radio communication terminal
CN102469542A (en) Network reselection method of multimode terminal, multimode terminal and base station
US20120220248A1 (en) Mobile communication terminal and control method
CN115529646A (en) Low-delay network switching method, device, equipment and storage medium
CN107306428B (en) Aviation communication method, aircraft and base station
JP5068399B2 (en) Mobile radio communication terminal
US10057874B2 (en) Communication apparatus, control method of communication apparatus, and non-transitory computer-readable storage medium
JP4876140B2 (en) Wireless communication terminal and cell list creation method
CN114204979B (en) Unmanned aerial vehicle ad hoc network method and device based on relative positions
US10075909B2 (en) Method to select a candidate cell during cell selection
JP2007228242A (en) Mobile communications terminal, and cell search method and program
JP2001069548A (en) Mobile communication system and recording medium
CN105101150A (en) Wireless terminal roaming method and 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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant