CN110708657A - Wireless access point connection method and device for mobile terminal - Google Patents

Wireless access point connection method and device for mobile terminal Download PDF

Info

Publication number
CN110708657A
CN110708657A CN201810660137.8A CN201810660137A CN110708657A CN 110708657 A CN110708657 A CN 110708657A CN 201810660137 A CN201810660137 A CN 201810660137A CN 110708657 A CN110708657 A CN 110708657A
Authority
CN
China
Prior art keywords
wireless access
access point
base station
position information
mobile terminal
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
CN201810660137.8A
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.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201810660137.8A priority Critical patent/CN110708657A/en
Publication of CN110708657A publication Critical patent/CN110708657A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • 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
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The embodiment of the application discloses a wireless access point connection method and device for a mobile terminal. One embodiment of the method comprises: acquiring current position information of a mobile terminal; searching wireless access point position information matched with the position information in a pre-stored wireless access point position information set; responding to the position information of the wireless access points matched with the position information, and acquiring a wireless access point list consisting of the wireless access points in the first preset area; and selecting the wireless access point from the wireless access point list for connection. The embodiment avoids frequent scanning of the wireless access point list, and can realize automatic connection of the wireless access points under the condition of reducing the power consumption of the mobile terminal.

Description

Wireless access point connection method and device for mobile terminal
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a wireless access point connection method and device for a mobile terminal.
Background
With the continuous development of WIreless communication technology, a WIreless-Fidelity (WI-FI) network has become an important way for users to access the network on a daily basis, and brings great convenience to the users. For example, in some public areas, free open wireless access points are configured, and a user can connect the free open wireless access points without inputting a password; private wireless access points are often configured in a home and are usually provided with passwords, when a user connects the private wireless access points, the user needs to input the passwords, and the private wireless access points can be connected after the authentication is successful.
Currently, after a wireless access point is disconnected, an existing wireless access point connection method generally scans a wireless access point list at certain time intervals to detect whether a connectable wireless access point exists currently, so as to implement automatic connection of the wireless access point. But frequently scanning the list of wireless access points is typically relatively power hungry.
Disclosure of Invention
The embodiment of the application provides a wireless access point connection method and device for a mobile terminal.
In a first aspect, an embodiment of the present application provides a wireless access point connection method for a mobile terminal, where the method includes: acquiring current position information of a mobile terminal; searching wireless access point position information matched with the position information in a pre-stored wireless access point position information set; responding to the position information of the wireless access points matched with the position information, and acquiring a wireless access point list consisting of the wireless access points in the first preset area; and selecting the wireless access point from the wireless access point list for connection.
In some embodiments, obtaining the current location information of the mobile terminal includes: and acquiring the position information of a target base station which is in communication connection with the mobile terminal at present, and taking the position information of the target base station as the current position information of the mobile terminal.
In some embodiments, the mobile terminal locally pre-stores a base station information set and a base station identifier of the target base station, wherein the base station information includes the base station identifier and position information corresponding to the base station identifier; and acquiring the position information of the target base station which is in communication connection with the mobile terminal at present, wherein the position information comprises the following steps: and searching base station information comprising the base station identification of the target base station in the base station information set, and determining the position information in the searched base station information as the position information of the target base station.
In some embodiments, the base station information in the base station information set is obtained by: and in response to detecting that the area identifier associated with the mobile terminal is changed, determining whether the mobile terminal locally stores the base station information of the base station in the area indicated by the currently associated area identifier, if not, downloading the base station information of the base station in the area from a base station information storage server in communication connection with the mobile terminal, and storing the downloaded base station information.
In some embodiments, the acquisition operation is performed in the event that the mobile terminal has accessed the wireless access point and is charging.
In some embodiments, finding the wireless access point location information matching the location information from a pre-stored set of wireless access point location information comprises: and for the wireless access point position information in the wireless access point position information set, determining whether the distance between the wireless access point position information and the current position information of the mobile terminal is greater than a preset distance, and if not, determining the wireless access point position information as the wireless access point position information matched with the current position information of the mobile terminal.
In some embodiments, selecting a wireless access point from the list of wireless access points for connection includes: acquiring a password of at least one wireless access point in the wireless access point list; and selecting a wireless access point from the at least one wireless access point as a target wireless access point, and connecting the target wireless access point by using the password of the target wireless access point.
In a second aspect, an embodiment of the present application provides a wireless access point connection apparatus for a mobile terminal, including: a first acquisition unit configured to acquire current location information of a mobile terminal; a searching unit configured to search the position information of the wireless access point matched with the position information in a pre-stored position information set of the wireless access point; a second obtaining unit configured to obtain a wireless access point list composed of wireless access points in the first preset area in response to finding the wireless access point position information matching the position information; and the connecting unit is configured to select the wireless access point from the wireless access point list to connect.
In some embodiments, the first obtaining unit includes: and the acquisition subunit is configured to acquire the position information of the target base station which is currently in communication connection with the mobile terminal, and the position information of the target base station is taken as the current position information of the mobile terminal.
In some embodiments, the mobile terminal locally pre-stores a base station information set and a base station identifier of the target base station, wherein the base station information includes the base station identifier and position information corresponding to the base station identifier; and the obtaining subunit is further configured to: and searching base station information comprising the base station identification of the target base station in the base station information set, and determining the position information in the searched base station information as the position information of the target base station.
In some embodiments, the base station information in the base station information set is obtained by: and in response to detecting that the area identifier associated with the mobile terminal is changed, determining whether the mobile terminal locally stores the base station information of the base station in the area indicated by the currently associated area identifier, if not, downloading the base station information of the base station in the area from a base station information storage server in communication connection with the mobile terminal, and storing the downloaded base station information.
In some embodiments, the acquisition operation is performed in the event that the mobile terminal has accessed the wireless access point and is charging.
In some embodiments, the lookup unit is further configured to: and for the wireless access point position information in the wireless access point position information set, determining whether the distance between the wireless access point position information and the current position information of the mobile terminal is greater than a preset distance, and if not, determining the wireless access point position information as the wireless access point position information matched with the current position information of the mobile terminal.
In some embodiments, the connection unit is further configured to: acquiring a password of at least one wireless access point in the wireless access point list; and selecting a wireless access point from the at least one wireless access point as a target wireless access point, and connecting the target wireless access point by using the password of the target wireless access point.
In a third aspect, an embodiment of the present application provides an electronic device, including: one or more processors; a storage device having one or more programs stored thereon; when executed by the one or more processors, cause the one or more processors to implement a method as described in any implementation of the first aspect.
In a fourth aspect, the present application provides a computer-readable medium, on which a computer program is stored, which when executed by a processor implements the method described in any implementation manner of the first aspect.
According to the wireless access point connection method and device for the mobile terminal, the current position information of the mobile terminal is obtained, the position information of the wireless access point matched with the position information is searched in the pre-stored position information set of the wireless access point, and then the wireless access point list consisting of the wireless access points in the first preset area is obtained in response to the searched position information of the wireless access point matched with the position information, so that the wireless access points are selected from the wireless access point list for connection. Therefore, frequent scanning of the wireless access point list is avoided, and automatic connection of the wireless access points can be realized under the condition of reducing the power consumption of the mobile terminal.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which one embodiment of the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a wireless access point connection method for a mobile terminal according to the present application;
fig. 3 is a schematic diagram of an application scenario of a wireless access point connection method for a mobile terminal according to the present application;
FIG. 4 is a flow chart of yet another embodiment of a wireless access point connection method for a mobile terminal according to the present application;
FIG. 5 is a schematic block diagram illustrating one embodiment of a wireless access point connection apparatus for a mobile terminal according to the present application;
FIG. 6 is a schematic block diagram of a computer system suitable for use in implementing an electronic device according to embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 illustrates an exemplary system architecture 100 to which embodiments of the wireless access point connection method for a mobile terminal or the wireless access point connection apparatus for a mobile terminal of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include mobile terminals 101, 102, 103, a network 104, and a server 105. The network 104 is used to provide a medium for communication links between the mobile terminals 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
A user may use mobile terminals 101, 102, 103 to interact with a server 105 over a network 104 to receive or send messages or the like. For example, the mobile terminals 101, 102, and 103 may obtain the wireless access point list from the server 105 after the wireless access points are disconnected, and perform corresponding processing on the wireless access point list, for example, select a wireless access point from the wireless access point list for connection. The mobile terminals 101, 102, 103 may have various communication client applications installed thereon, such as a wireless access point connection application, a positioning application (e.g., global positioning system), and the like.
The mobile terminals 101, 102, 103 may be hardware or software. When the mobile terminals 101, 102, 103 are hardware, they may be various electronic devices including, but not limited to, smart phones, tablet computers, laptop computers, and the like. When the mobile terminals 101, 102, 103 are software, they can be installed in the electronic devices listed above. It may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The server 105 may be a server that provides various services, such as a server for providing a list of wireless access points to the mobile terminals 101, 102, 103.
It should be noted that the wireless access point connection method for the mobile terminal provided in the embodiment of the present application is generally executed by the mobile terminal 101, 102, 103, and accordingly, the wireless access point connection apparatus for the mobile terminal is generally disposed in the mobile terminal 101, 102, 103.
It is noted that the system architecture 100 may not include the server 105 if the list of wireless access points acquired by the mobile terminal is not acquired from the server 105. The server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be understood that the number of mobile terminals, networks, and servers in fig. 1 is merely illustrative. There may be any number of mobile terminals, networks, and servers, as desired for implementation.
With continued reference to fig. 2, a flow 200 of one embodiment of a wireless access point connection method for a mobile terminal according to the present application is shown. The process 200 of the wireless access point connection method for the mobile terminal comprises the following steps:
step 201, obtaining the current position information of the mobile terminal.
In the present embodiment, the execution subject of the wireless access point connection method for a mobile terminal (e.g., mobile terminals 101, 102, 103 shown in fig. 1) may acquire current location information in response to the wireless access point being disconnected. Wherein the location information may be represented in latitude and longitude coordinates.
As an example, the execution subject may be locally pre-installed with a Global Positioning System (GPS), and the execution subject may acquire current location information using the GPS.
In some optional implementation manners of this embodiment, the execution main body may obtain location information of a target base station of a current communication connection, and the execution main body may use the location information as its current location information. Here, the execution main body may locally store the location information of the target base station in advance, so the execution main body may locally acquire the location information. The location information may be obtained by the execution main body when registering with the target base station.
Step 202, searching the wireless access point position information matched with the acquired position information in a pre-stored wireless access point position information set.
In this embodiment, after the execution main body obtains the location information, the execution main body may search for the location information of the wireless access point matching the location information in a pre-stored set of location information of the wireless access point. Wherein the wireless access point location information may be pre-associated with the wireless access point identity. The location information of the wireless access point may be information of a location where the execution body connects to the wireless access point indicated by the wireless access point identifier.
In practice, the executing body may record the position (for example, the position indicated by latitude and longitude coordinates) of the wireless access point in response to the successful connection of the wireless access point, and may put the recorded position as the wireless access point position information into the wireless access point position information set, at the time of connecting a new wireless access point or each time of connecting a wireless access point. The executing body can use GPS to locate the position of the executing body. Alternatively, the execution body may take the position of the base station that is currently in communication connection as the position where the base station is currently located.
In this embodiment, if the location information and the wireless access point location information acquired in step 201 are both location information obtained by using GPS positioning, the execution main body may search for wireless access point location information that is consistent with the acquired location information in the wireless access point location information set, and if the wireless access point location information is found, the execution main body may determine the found wireless access point location information as the wireless access point location information that is matched with the acquired location information.
It should be noted that, by searching the wireless access point location information set for the wireless access point location information matching the acquired location information, the execution subject determines whether there is a connectable wireless access point in the first preset area. The first preset area may be an area covered by a base station where the execution subject currently performs communication connection, or an area defined by a range with a radius of a preset length (for example, 100 meters or 200 meters) and a position where the execution subject currently locates as a center. The first preset area may be set according to actual needs, and this embodiment does not limit this aspect at all.
If the execution main body does not find the wireless access point position information matched with the acquired position information, the execution main body can determine that no connectable wireless access point exists in the first preset area, and the execution main body can not acquire a wireless access point list formed by the wireless access points in the first preset area and scan the wireless access point list. Since the wireless access point list is scanned and power is consumed, the frequent scanning of the wireless access point list can be avoided by performing step 202, and thus the power consumption of the mobile terminal can be effectively reduced.
Step 203, in response to finding the wireless access point position information matched with the obtained position information, obtaining a wireless access point list composed of wireless access points in the first preset area.
In this embodiment, the executing body may obtain a wireless access point list composed of wireless access points in the first preset area in response to finding the wireless access point location information matching the obtained location information. The executing entity may obtain the wireless access point list from a connected server (for example, the server 105 shown in fig. 1), or may detect the wireless access point in the first preset area by using a preset WI-FI chip, so as to obtain the wireless access point list.
And step 204, selecting a wireless access point from the wireless access point list for connection.
In this embodiment, the execution subject may select a wireless access point from the acquired list of wireless access points to connect to. As an example, the executing entity may extract a previously connected wireless access point from the wireless access point list based on a wireless access point identifier associated with the wireless access point location information in the wireless access point location information set, and then may select a wireless access point with a stronger signal strength from the extracted wireless access points as a target wireless access point. Finally, the executing agent may obtain a password of the target wireless access point from a local place, and connect the wireless access point using the password.
In some optional implementations of this embodiment, the executing entity may obtain a password of at least one wireless access point in the wireless access point list (e.g., a previously connected wireless access point). The executing entity may then select (e.g., randomly select, etc.) a wireless access point from the at least one wireless access point as a target wireless access point, and connect the target wireless access point using the password of the target wireless access point.
With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the wireless access point connection method for a mobile terminal according to the present embodiment. In the application scenario of fig. 3, the wireless access point connection of the smart phone of the user is set to an on state. When the wireless access point is disconnected, the smart phone may obtain the current location information thereof as shown by reference numeral 301. Then, as indicated by reference numeral 302, the smart phone may search, in a locally pre-stored wireless access point location information set, for wireless access point location information matching the obtained location information, where the wireless access point location information may be pre-associated with a wireless access point identifier, and a wireless access point indicated by the wireless access point identifier is a wireless access point to which the smart phone has been previously connected. Then, as indicated by reference numeral 303, in response to finding the wireless access point location information that matches the obtained location information, the smartphone may obtain a wireless access point list composed of wireless access points within a domain defined by a range having a radius of 200 meters and centered at the location indicated by the obtained location information. Then, as indicated by reference numeral 304, the smart phone may select a previously connected wireless access point with strong signal strength from the wireless access point list for connection based on the wireless access point identifier associated with the wireless access point location information in the wireless access point location information set.
In the method provided by the above embodiment of the application, the current location information of the mobile terminal is acquired, then the location information of the wireless access point matched with the location information is searched in the pre-stored location information set of the wireless access point, and then the wireless access point list composed of the wireless access points in the first preset area is acquired in response to the searched location information of the wireless access point matched with the location information, so that the wireless access point is selected from the wireless access point list for connection. Therefore, frequent scanning of the wireless access point list is avoided, and automatic connection of the wireless access points can be realized under the condition of reducing the power consumption of the mobile terminal.
With further reference to fig. 4, a flow 400 of yet another embodiment of a wireless access point connection method for a mobile terminal is shown. The process 400 of the wireless access point connection method for mobile terminals includes the following steps:
step 401, searching base station information including a base station identifier of a target base station in a pre-stored base station information set, and using position information in the searched base station information as current position information of the mobile terminal.
In this embodiment, an executing subject of the wireless access point connection method for a mobile terminal (e.g., mobile terminals 101, 102, 103 shown in fig. 1) may search for base station information including a base station identification of a target base station in a preset base station information set in response to disconnection of a wireless access point. The execution main body may locally pre-store the base station information set and the base station identifier of the target base station. The base station information may include a base station identification and location information corresponding to the base station identification (location information of the base station indicated by the base station identification). The target base station may be the base station performing the current communication connection of the subject as described above. Since the location information in the base station information including the base station identifier of the target base station is the location information of the target base station, the execution main body may use the location information in the searched base station information as its current location information.
It should be noted that, the base station information in the base station information set may be acquired by the executing entity by performing the following acquisition operations:
first, the executing entity may determine whether the base station information of the base station in the area indicated by the currently associated area identifier is stored locally in response to detecting that the area identifier associated with the executing entity is changed. Here, the area indicated by the area identification may be an area divided by province, city, or county, etc. The area indicated by the area identifier currently associated with the execution main body may refer to an area where the execution main body is currently located. It should be noted that the base station information in the base station information set may be associated with the area identifier in advance. The executing agent may search for a currently associated area identifier from area identifiers associated with base station information in a stored base station information set, and if the currently associated area identifier is found, the executing agent may determine that the base station information of a base station in an area indicated by a locally stored currently associated area identifier; otherwise, the executing entity may determine that the base station information of the base station in the area is not locally stored.
Then, the execution main body may download the base station information of the base station in the area from the connected base station information storage-use server side in response to determining that the base station information of the base station in the area indicated by the currently associated area identification is not stored locally, and store the downloaded base station information. E.g., by attributing the downloaded base station information to a local set of base station information.
It should be noted that, by performing the above-mentioned obtaining operation, it can be ensured that, after a user arrives at an area (e.g. province, city, county, etc.), the mobile terminal of the user stores the base station information of the base stations in the area. In addition, the acquiring operation may be performed by the executing entity in a state where the executing entity has accessed the wireless access point and is charging. Therefore, the mobile data flow of the user and the electric quantity of the mobile terminal can be effectively avoided from being wasted.
Step 402, searching the position information of the wireless access point, the distance between which and the current position information of the mobile terminal is not more than the preset distance, in the pre-stored position information set of the wireless access point.
In this embodiment, after obtaining the location information, the executing entity may search, in a pre-stored wireless access point location information set, for wireless access point location information whose distance from the current location information is not greater than a preset distance (e.g., 100 meters, etc.). The wireless access point position information set can be pre-stored locally in the execution main body. The wireless access point location information may be represented in latitude and longitude coordinates. In addition, the preset distance may be set according to actual needs, and this embodiment does not limit this aspect at all.
As an example, for any piece of wireless access point location information, the executing entity may invoke a preset interface for calculating the distance between the longitude and latitude coordinates to calculate the distance between the wireless access point location information and the current location information. The performing agent may then compare the distance to a predetermined distance (e.g., 100 meters, etc.) to determine whether the distance is greater than the predetermined distance. Then, the executing entity may determine that the location information of the wireless access point is the location information of the wireless access point matching the current location information in response to determining that the distance is not greater than the preset distance, and the executing entity may end the search process and go to execute step 403.
Step 403, in response to the wireless access point position information that is found to have a distance with the current position information of the mobile terminal not greater than the preset distance, obtaining a wireless access point list composed of wireless access points in the first preset area.
In this embodiment, the executing entity may obtain the wireless access point list composed of the wireless access points in the first preset area in response to finding the wireless access point location information whose distance from the current location information is not greater than the preset distance. The first preset area may be an area covered by a base station where the execution subject currently performs communication connection, or an area defined by a range with a radius of a preset length (for example, 100 meters or 200 meters) and a position where the execution subject currently locates as a center. The first preset area may be set according to actual needs, and this embodiment does not limit this aspect at all.
Step 404, selecting a wireless access point from the wireless access point list for connection.
In this embodiment, the execution subject may select a wireless access point from the acquired list of wireless access points to connect to. As an example, the executing entity may extract a previously connected wireless access point from the wireless access point list based on a wireless access point identifier associated with the wireless access point location information in the wireless access point location information set, and then may select a wireless access point with a stronger signal strength from the extracted wireless access points as a target wireless access point. Finally, the executing agent may obtain a password of the target wireless access point from a local place, and connect the wireless access point using the password.
As can be seen from fig. 4, compared with the embodiment corresponding to fig. 2, the flow 400 of the wireless access point connection method for a mobile terminal in this embodiment highlights a step of determining current location information of the mobile terminal by using a pre-stored base station information set and a base station identifier of a target base station; searching wireless access point position information of which the distance from the current position information of the mobile terminal is not more than a preset distance in a pre-stored wireless access point position information set; and a step of acquiring a wireless access point list composed of wireless access points in a first preset area in response to the wireless access point position information, the distance between which and the current position information of the mobile terminal is not greater than a preset distance, being found. Therefore, the scheme described in the embodiment can realize the positioning of the position of the mobile terminal under the condition of not using the GPS and the mobile data traffic of the user. And the wireless access point position information with the distance between the wireless access point position information and the current position information of the mobile terminal not greater than the preset distance is searched in the pre-stored wireless access point position information set, so that frequent scanning of a wireless access point list can be effectively avoided, the power consumption of the mobile terminal can be reduced, and the automatic connection of the wireless access points can be realized.
With further reference to fig. 5, as an implementation of the methods shown in the above-mentioned figures, the present application provides an embodiment of a wireless access point connection apparatus for a mobile terminal, where the apparatus embodiment corresponds to the method embodiment shown in fig. 2, and the apparatus may be applied to various electronic devices in particular.
As shown in fig. 5, the wireless access point connection apparatus 500 for a mobile terminal of the present embodiment includes: the first obtaining unit 501 is configured to obtain current location information of the mobile terminal; the searching unit 502 is configured to search a pre-stored wireless access point position information set for wireless access point position information matching the position information; the second obtaining unit 503 is configured to obtain a wireless access point list of wireless access points in the first preset area in response to finding the wireless access point location information matching the location information; the connection unit 504 is configured to select a wireless access point from the list of wireless access points for connection.
In the present embodiment, in the wireless access point connection apparatus 500 for a mobile terminal: the specific processing of the first obtaining unit 501, the searching unit 502, the second obtaining unit 503 and the connecting unit 504 and the technical effects thereof can refer to the related descriptions of step 201, step 202, step 203 and step 204 in the corresponding embodiment of fig. 2, which are not described herein again.
In some optional implementations of this embodiment, the first obtaining unit 501 may include: and an obtaining subunit (not shown in the figure) configured to obtain the position information of the target base station currently in communication connection with the mobile terminal, and use the position information of the target base station as the current position information of the mobile terminal.
In some optional implementation manners of this embodiment, the mobile terminal may locally pre-store a base station information set and a base station identifier of the target base station, where the base station information may include the base station identifier and location information corresponding to the base station identifier; and the obtaining subunit may be further configured to: and searching base station information comprising the base station identification of the target base station in the base station information set, and determining the position information in the searched base station information as the position information of the target base station.
In some optional implementations of this embodiment, the base station information in the base station information set may be obtained through the following obtaining operations: and in response to detecting that the area identifier associated with the mobile terminal is changed, determining whether the mobile terminal locally stores the base station information of the base station in the area indicated by the currently associated area identifier, if not, downloading the base station information of the base station in the area from a base station information storage server in communication connection with the mobile terminal, and storing the downloaded base station information.
In some optional implementations of the present embodiment, the obtaining operation may be performed in a case where the mobile terminal has accessed the wireless access point and is charging.
In some optional implementations of this embodiment, the lookup unit 502 may be further configured to: and for the wireless access point position information in the wireless access point position information set, determining whether the distance between the wireless access point position information and the current position information of the mobile terminal is greater than a preset distance, and if not, determining the wireless access point position information as the wireless access point position information matched with the current position information of the mobile terminal.
In some optional implementations of this embodiment, the connection unit 504 may be further configured to: acquiring a password of at least one wireless access point in the wireless access point list; and selecting a wireless access point from the at least one wireless access point as a target wireless access point, and connecting the target wireless access point by using the password of the target wireless access point.
The device provided by the above embodiment of the application obtains the current location information of the mobile terminal, then searches the location information of the wireless access point matched with the location information in the pre-stored location information set of the wireless access point, and then obtains the wireless access point list composed of the wireless access points in the first preset area in response to the found location information of the wireless access point matched with the location information, so as to select the wireless access point from the wireless access point list for connection. Therefore, frequent scanning of the wireless access point list is avoided, and automatic connection of the wireless access points can be realized under the condition of reducing the power consumption of the mobile terminal.
Referring now to FIG. 6, a block diagram of a computer system 600 suitable for use in implementing an electronic device (e.g., mobile terminals 101, 102, 103 shown in FIG. 1) of an embodiment of the present application is shown. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The above-described functions defined in the system of the present application are executed when the computer program is executed by the Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium shown in the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a first acquisition unit, a lookup unit, a second acquisition unit, and a connection unit. The names of these units do not in some cases constitute a limitation to the unit itself, and for example, the first acquiring unit may also be described as a "unit that acquires current location information of the mobile terminal".
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by an electronic device, cause the electronic device to: acquiring current position information of the electronic equipment; searching wireless access point position information matched with the position information in a pre-stored wireless access point position information set; responding to the position information of the wireless access points matched with the position information, and acquiring a wireless access point list consisting of the wireless access points in the first preset area; and selecting the wireless access point from the wireless access point list for connection.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (16)

1. A wireless access point connection method for a mobile terminal, comprising:
acquiring current position information of the mobile terminal;
searching wireless access point position information matched with the position information in a pre-stored wireless access point position information set;
responding to the position information of the wireless access points matched with the position information, and acquiring a wireless access point list consisting of the wireless access points in a first preset area;
and selecting a wireless access point from the wireless access point list for connection.
2. The method of claim 1, wherein the obtaining the current location information of the mobile terminal comprises:
and acquiring the position information of a target base station which is in communication connection with the mobile terminal at present, and taking the position information of the target base station as the current position information of the mobile terminal.
3. The method of claim 2, wherein the mobile terminal locally pre-stores a base station information set and a base station identifier of the target base station, the base station information comprising the base station identifier and position information corresponding to the base station identifier; and
the acquiring the position information of the target base station which is in communication connection with the mobile terminal currently comprises the following steps:
and searching base station information including the base station identifier of the target base station in the base station information set, and determining the position information in the searched base station information as the position information of the target base station.
4. The method of claim 3, wherein the base station information in the set of base station information is obtained by:
and in response to detecting that the area identifier associated with the mobile terminal is changed, determining whether the mobile terminal has locally stored the base station information of the base station in the area indicated by the currently associated area identifier, if not, downloading the base station information of the base station in the area from a base station information storage server in communication connection with the mobile terminal, and storing the downloaded base station information.
5. The method of claim 4, wherein the obtaining operation is performed if the mobile terminal has accessed a wireless access point and is charging.
6. The method according to one of claims 1 to 5, wherein the searching for the wireless access point location information matching the location information in a pre-stored set of wireless access point location information comprises:
and determining whether the distance between the wireless access point position information and the current position information of the mobile terminal is greater than a preset distance or not for the wireless access point position information in the wireless access point position information set, and if not, determining the wireless access point position information as the wireless access point position information matched with the current position information of the mobile terminal.
7. The method of claim 1, wherein the selecting a wireless access point from the list of wireless access points for connection comprises:
acquiring a password of at least one wireless access point in the wireless access point list;
and selecting a wireless access point from the at least one wireless access point as a target wireless access point, and connecting the target wireless access point by using the password of the target wireless access point.
8. A wireless access point connection apparatus for a mobile terminal, comprising:
a first obtaining unit configured to obtain current location information of the mobile terminal;
a searching unit configured to search a pre-stored wireless access point position information set for wireless access point position information matched with the position information;
a second obtaining unit configured to obtain a wireless access point list composed of wireless access points in a first preset area in response to finding the wireless access point position information matched with the position information;
a connection unit configured to select a wireless access point from the wireless access point list for connection.
9. The apparatus of claim 8, wherein the first obtaining unit comprises:
an obtaining subunit, configured to obtain location information of a target base station currently in communication connection with the mobile terminal, and use the location information of the target base station as the current location information of the mobile terminal.
10. The apparatus of claim 9, wherein the mobile terminal locally pre-stores a base station information set and a base station identifier of the target base station, the base station information comprising the base station identifier and location information corresponding to the base station identifier; and
the acquisition subunit is further configured to:
and searching base station information including the base station identifier of the target base station in the base station information set, and determining the position information in the searched base station information as the position information of the target base station.
11. The apparatus of claim 10, wherein the base station information in the set of base station information is obtained by:
and in response to detecting that the area identifier associated with the mobile terminal is changed, determining whether the mobile terminal has locally stored the base station information of the base station in the area indicated by the currently associated area identifier, if not, downloading the base station information of the base station in the area from a base station information storage server in communication connection with the mobile terminal, and storing the downloaded base station information.
12. The apparatus of claim 11, wherein the obtaining operation is performed if the mobile terminal has accessed a wireless access point and is charging.
13. The apparatus according to one of claims 8-12, wherein the lookup unit is further configured to:
and determining whether the distance between the wireless access point position information and the current position information of the mobile terminal is greater than a preset distance or not for the wireless access point position information in the wireless access point position information set, and if not, determining the wireless access point position information as the wireless access point position information matched with the current position information of the mobile terminal.
14. The apparatus of claim 8, wherein the connection unit is further configured to:
acquiring a password of at least one wireless access point in the wireless access point list;
and selecting a wireless access point from the at least one wireless access point as a target wireless access point, and connecting the target wireless access point by using the password of the target wireless access point.
15. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
16. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-7.
CN201810660137.8A 2018-06-25 2018-06-25 Wireless access point connection method and device for mobile terminal Pending CN110708657A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810660137.8A CN110708657A (en) 2018-06-25 2018-06-25 Wireless access point connection method and device for mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810660137.8A CN110708657A (en) 2018-06-25 2018-06-25 Wireless access point connection method and device for mobile terminal

Publications (1)

Publication Number Publication Date
CN110708657A true CN110708657A (en) 2020-01-17

Family

ID=69192497

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810660137.8A Pending CN110708657A (en) 2018-06-25 2018-06-25 Wireless access point connection method and device for mobile terminal

Country Status (1)

Country Link
CN (1) CN110708657A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112040564A (en) * 2020-08-25 2020-12-04 北京大米科技有限公司 Information transmission method, readable storage medium and electronic device
CN115811703A (en) * 2022-11-26 2023-03-17 广州市柯洱斯电子有限责任公司 POS machine use area limit management method, system and readable medium thereof

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067852A (en) * 2011-10-21 2013-04-24 北京百度网讯科技有限公司 Mobile terminal location method and mobile terminal location device
CN103209464A (en) * 2012-01-11 2013-07-17 联想(北京)有限公司 Wireless access method and electronic device using same
CN103874018A (en) * 2014-02-21 2014-06-18 小米科技有限责任公司 Access point information sharing method and device
CN104717610A (en) * 2015-03-04 2015-06-17 惠州Tcl移动通信有限公司 Wireless data network automatic shift method and mobile terminal based on LBS
CN106453953A (en) * 2016-11-24 2017-02-22 维沃移动通信有限公司 Wireless access point connection method and mobile terminal
CN106455004A (en) * 2015-08-05 2017-02-22 上海连尚网络科技有限公司 Method and apparatus for providing wireless access points
CN107241727A (en) * 2017-07-28 2017-10-10 上海连尚网络科技有限公司 Method and apparatus for obtaining WAP information

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067852A (en) * 2011-10-21 2013-04-24 北京百度网讯科技有限公司 Mobile terminal location method and mobile terminal location device
CN103209464A (en) * 2012-01-11 2013-07-17 联想(北京)有限公司 Wireless access method and electronic device using same
CN103874018A (en) * 2014-02-21 2014-06-18 小米科技有限责任公司 Access point information sharing method and device
CN104717610A (en) * 2015-03-04 2015-06-17 惠州Tcl移动通信有限公司 Wireless data network automatic shift method and mobile terminal based on LBS
CN106455004A (en) * 2015-08-05 2017-02-22 上海连尚网络科技有限公司 Method and apparatus for providing wireless access points
CN106453953A (en) * 2016-11-24 2017-02-22 维沃移动通信有限公司 Wireless access point connection method and mobile terminal
CN107241727A (en) * 2017-07-28 2017-10-10 上海连尚网络科技有限公司 Method and apparatus for obtaining WAP information

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112040564A (en) * 2020-08-25 2020-12-04 北京大米科技有限公司 Information transmission method, readable storage medium and electronic device
CN115811703A (en) * 2022-11-26 2023-03-17 广州市柯洱斯电子有限责任公司 POS machine use area limit management method, system and readable medium thereof
CN115811703B (en) * 2022-11-26 2023-07-14 广州市柯洱斯电子有限责任公司 POS machine use area limit management method, POS machine use area limit management system and readable medium thereof

Similar Documents

Publication Publication Date Title
CN107172209B (en) Information pushing method and device
US10743183B2 (en) Method and device for realizing wireless access point connection authentication
CN110377440B (en) Information processing method and device
US10614621B2 (en) Method and apparatus for presenting information
US20130036429A1 (en) System and method for circulating map-based application
KR20110103398A (en) Method and apparatus for obtaining location information using smart card
CN112672278A (en) Positioning method and device of wearable equipment
CN110708657A (en) Wireless access point connection method and device for mobile terminal
CN110619101B (en) Method and apparatus for processing information
CN106549860B (en) Information acquisition method and device
CN110740418A (en) Method and device for generating user visit information
CN107507094A (en) A kind of information processing method, device and storage medium
CN108833506B (en) Information acquisition method and equipment
CN111597439A (en) Information processing method and device and electronic equipment
CN111260445A (en) House resource information display method, device, terminal and storage medium
CN107889191B (en) Connection method, device and equipment of wireless local area network and computer readable storage medium
CN114827060B (en) Interaction method and device and electronic equipment
CN111339394B (en) Method and device for acquiring information
CN108811036B (en) Method and apparatus for displaying wireless access point information
CN115705476A (en) Information display method and device, electronic equipment and computer readable medium
CN112153091B (en) Method and device for determining relevance of equipment
CN108471635B (en) Method and apparatus for connecting wireless access points
CN110619089B (en) Information retrieval method and device
CN104717228A (en) Method and device for authorizing account number
US20130137461A1 (en) Method and apparatus for inserting location data into messages at a communication gateway

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200117