CN105472616B - Wireless access point connection method and electronic equipment - Google Patents

Wireless access point connection method and electronic equipment Download PDF

Info

Publication number
CN105472616B
CN105472616B CN201510891936.2A CN201510891936A CN105472616B CN 105472616 B CN105472616 B CN 105472616B CN 201510891936 A CN201510891936 A CN 201510891936A CN 105472616 B CN105472616 B CN 105472616B
Authority
CN
China
Prior art keywords
access point
wireless access
electronic equipment
wireless
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510891936.2A
Other languages
Chinese (zh)
Other versions
CN105472616A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201510891936.2A priority Critical patent/CN105472616B/en
Publication of CN105472616A publication Critical patent/CN105472616A/en
Application granted granted Critical
Publication of CN105472616B publication Critical patent/CN105472616B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

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

Abstract

The invention discloses a wireless access point connecting method and electronic equipment, wherein the method comprises the following steps: obtaining, by an antenna of an electronic device, at least one wireless access point covering the electronic device; wirelessly connecting a first wireless access point, wherein the first wireless access point belongs to the at least one wireless access point; determining whether the access of the electronic equipment to the network side through the first wireless access point is effective or not under the condition that the wireless connection between the electronic equipment and the first wireless access point is successful based on a preset rule; determining whether to maintain the wireless connection with the first wireless access point based on whether the access of the electronic equipment to the network side through the first wireless access point is effective. The method and the device disclosed by the invention solve the problem that the use experience of a user is poor due to false connection of the wireless access point in the prior art.

Description

Wireless access point connection method and electronic equipment
Technical Field
The present invention relates to the field of data processing, and in particular, to a wireless access point connection method and an electronic device.
Background
Wireless networks have somewhat dropped the network wires on which wired networks must rely, allowing users to access the network using wireless access devices in any area with network coverage, rather than having to move to the wired location of the network interface as has been done previously. However, the signal transmission of the wireless network is different from that of the wired network, the data transmission of the wired network is transmitted through a cable, and the data transmission of the wireless network is broadcast in the air, so that the security problem of the wireless network is more serious than that of the wired network.
In the prior art, a wireless network may be provided in some public places, and according to the wireless connection mode of the existing electronic equipment: when the user enters the coverage area of a certain wireless access point, the connection is automatically carried out. However, the wireless network provided in the public place may often be a false connection, which cannot allow the user to access the network, but may cause the network to which the user originally connects to be disconnected suddenly, so that the user may feel bad. In addition, such a false connection may also be a fraudulent phishing access point, which may be detrimental to the user's property and personal safety if the user enters authentication information.
Disclosure of Invention
The invention provides a wireless access point connection method and electronic equipment, and solves the problem that the use experience of a user is poor due to false connection of a wireless access point in the prior art.
In one aspect, the present invention provides a method for connecting a wireless access point, including:
obtaining, by an antenna of an electronic device, at least one wireless access point covering the electronic device;
wirelessly connecting a first wireless access point, wherein the first wireless access point belongs to the at least one wireless access point;
determining whether the access of the electronic equipment to the network side through the first wireless access point is effective or not under the condition that the wireless connection between the electronic equipment and the first wireless access point is successful based on a preset rule;
determining whether to maintain the wireless connection with the first wireless access point based on whether the access of the electronic equipment to the network side through the first wireless access point is effective.
Optionally, the determining, based on a predetermined rule, whether access of the electronic device to the network via the first wireless access point is valid when the electronic device is successfully wirelessly connected to the first wireless access point includes:
the electronic equipment makes a data request to a network terminal through the first wireless access point by using predetermined information;
the electronic equipment obtains data feedback of the network terminal based on the data request through the first wireless access point, and the electronic equipment determines that the electronic equipment is successfully wirelessly connected with the first wireless access point and the access of the electronic equipment with the network terminal through the first wireless access point is effective.
Optionally, the determining, based on a predetermined rule, whether access of the electronic device to the network via the first wireless access point is valid when the electronic device is successfully wirelessly connected to the first wireless access point includes:
the electronic equipment makes a data request to a network terminal through the first wireless access point by using predetermined information;
the electronic equipment determines that the wireless connection between the electronic equipment and the first wireless access point is unsuccessful and the access of the electronic equipment and the network terminal is invalid through the first wireless access point when data feedback based on the data request of the network terminal is not received within preset time; or
After the electronic equipment is successfully wirelessly connected with the first wireless access point, push data are directly obtained through the first wireless access point, the electronic equipment determines that the electronic equipment is successfully wirelessly connected with the first wireless access point, and the electronic equipment is ineffectively accessed with the network terminal through the first wireless access point.
Optionally, the determining, based on a predetermined rule, whether access of the electronic device to the network via the first wireless access point is valid when the electronic device is successfully wirelessly connected to the first wireless access point includes:
after the electronic equipment is successfully in wireless connection with the first wireless access point, push data are obtained through the first wireless access point;
obtaining scene information of the electronic equipment;
when the scene information meets a specific scene, analyzing the push data in a safe environment to obtain the sending source information of the push data;
when the sending source information meets the safety information source in the specific scene, determining that the electronic equipment is successfully wirelessly connected with the first wireless access point, and the electronic equipment is effectively accessed with the network terminal through the first wireless access point;
and when the sending source information does not meet the safety information source in the specific scene, determining that the electronic equipment is successfully wirelessly connected with the first wireless access point, and the electronic equipment is ineffectively accessed with the network terminal through the first wireless access point.
Optionally, the method further includes:
when the electronic equipment is effectively accessed to the network side through the first wireless access point, maintaining wireless connection with the first wireless access point; and controlling the electronic device to turn off the cellular mobile network;
when the access of the electronic equipment to the network side through the first wireless access point is invalid, controlling the electronic equipment to maintain the connection with a cellular mobile network; alternatively, the first and second electrodes may be,
and when the access of the electronic equipment to the network side through the first wireless access point is invalid, controlling the electronic equipment to close the cellular mobile network, and switching to a second wireless access point to determine whether the access of the electronic equipment to the network side is valid or not until at least one wireless access point has a wireless access point which can be successfully connected and has valid access to the network side, and controlling the electronic equipment to close the cellular mobile network.
In another aspect, the present invention also provides an electronic device, including:
a housing;
a storage unit disposed within the housing for storing at least one program module;
at least one processor disposed in the housing and connected to the storage unit, the at least one processor obtaining and running the at least one program module from the storage unit for obtaining at least one wireless access point covering the electronic device through an antenna of the electronic device; wirelessly connecting a first wireless access point, wherein the first wireless access point belongs to the at least one wireless access point; determining whether the access of the electronic equipment to the network side through the first wireless access point is effective or not under the condition that the wireless connection between the electronic equipment and the first wireless access point is successful based on a preset rule; the electronic equipment determines whether to maintain the wireless connection with the first wireless access point through whether the access of the first wireless access point and the network side is effective.
Optionally, the at least one processor is further configured to:
performing a data request to a network terminal through the first wireless access point by using predetermined information; and obtaining data feedback of the network terminal based on the data request through the first wireless access point, and determining that the electronic equipment is successfully wirelessly connected with the first wireless access point and the access of the electronic equipment with the network terminal is effective through the first wireless access point.
Optionally, the at least one processor is further configured to:
performing a data request to a network terminal through the first wireless access point by using predetermined information; the data feedback of the network terminal based on the data request is not received within preset time, and it is determined that the wireless connection between the electronic equipment and the first wireless access point is unsuccessful and the access of the electronic equipment and the network terminal is invalid through the first wireless access point; or
After the wireless connection with the first wireless access point is successful, push data is directly obtained through the first wireless access point, the fact that the wireless connection between the electronic equipment and the first wireless access point is successful is determined, and the electronic equipment is invalid in access with the network end through the first wireless access point.
Optionally, the at least one processor is further configured to:
after the wireless connection with the first wireless access point is successful, obtaining push data through the first wireless access point;
obtaining scene information of the electronic equipment;
when the scene information meets a specific scene, analyzing the push data in a safe environment to obtain the sending source information of the push data;
when the sending source information meets the safety information source in the specific scene, determining that the electronic equipment is successfully wirelessly connected with the first wireless access point, and the electronic equipment is effectively accessed with the network terminal through the first wireless access point;
and when the sending source information does not meet the safety information source in the specific scene, determining that the electronic equipment is successfully wirelessly connected with the first wireless access point, and the electronic equipment is ineffectively accessed with the network terminal through the first wireless access point.
Optionally, the at least one processor is further configured to:
when the electronic equipment is effectively accessed to the network side through the first wireless access point, maintaining wireless connection with the first wireless access point; and controlling the electronic device to turn off the cellular mobile network;
when the access of the electronic equipment to the network side through the first wireless access point is invalid, controlling the electronic equipment to maintain the connection with a cellular mobile network; alternatively, the first and second electrodes may be,
and when the electronic equipment does not have access to the network side through the first wireless access point, controlling the electronic equipment to close the cellular mobile network, and switching to a second wireless access point to determine whether the access of the electronic equipment to the network side is valid or not until at least one wireless access point has a wireless access point which can be successfully connected and has valid access to the network side, and controlling the electronic equipment to close the cellular mobile network.
In another aspect, the present invention provides another electronic device, including:
a scanning module for obtaining at least one wireless access point covering an electronic device through an antenna of the electronic device;
a connection module, configured to connect to a first wireless access point in a wireless manner, where the first wireless access point belongs to the at least one wireless access point;
the validity judging module is used for determining whether the access of the electronic equipment to the network terminal through the first wireless access point is valid or not under the condition that the wireless connection between the electronic equipment and the first wireless access point is successful based on a preset rule;
a maintaining module, configured to determine whether to maintain the wireless connection with the first wireless access point based on whether access of the electronic device to the network through the first wireless access point is valid.
One or two of the above technical solutions have at least the following technical effects:
after entering the coverage area of a certain wireless access point, the electronic device provided by the embodiment of the invention firstly distinguishes whether the wireless access point provides true connection or false connection, and then judges whether the electronic device is connected with the wireless access point according to the condition of the true connection or the false connection of the wireless access point, thereby providing the use feeling of a user and improving the safety of network connection.
In addition, the method provided by the embodiment can also judge whether to disconnect the original connection with the wireless access point according to the true and false connection condition of the wireless access point, thereby reducing the invalid switching of the electronic equipment.
Drawings
Fig. 1 is a flowchart illustrating a method for connecting a wireless access point according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of another electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
After the electronic equipment enters the coverage range of a certain wireless access point, the method provided by the embodiment of the invention firstly distinguishes whether the wireless access point provides true connection or false connection (false connection means that the electronic equipment is invalid in access with a network end through the wireless access point, or although the electronic equipment is successfully connected with the wireless access point, the access point does not have an available data transmission network, for example, wifi in a home is connected but the situation of arrearage is short), and then judges whether the electronic equipment is connected with the wireless access point according to the situation of the true and false connection of the wireless access point, thereby providing the use experience of a user and improving the safety of network connection.
The embodiments of the present invention will be described in further detail with reference to the drawings attached hereto.
Example one
As shown in fig. 1, an embodiment of the present invention provides a method for connecting a wireless access point, where the method includes:
step 101, obtaining at least one wireless access point covering an electronic device through an antenna of the electronic device;
step 102, connecting a first wireless access point in a wireless mode, wherein the first wireless access point belongs to the at least one wireless access point;
103, determining whether the access of the electronic equipment to the network side through the first wireless access point is effective under the condition that the wireless connection between the electronic equipment and the first wireless access point is successful based on a preset rule;
in this embodiment of the present invention, whether the access between the first radio access point and the network is valid refers to: if the access point can not provide the available data transmission network, the access point is judged to be invalid; if yes, the judgment is valid.
Step 104, determining whether to maintain the wireless connection with the first wireless access point based on whether the access of the electronic equipment to the network side through the first wireless access point is effective.
In this embodiment, after determining whether the first wireless connection provides a valid network through step 103, the electronic device may maintain a connection with the first wireless access point in the case of a valid network; otherwise, the connection with the first wireless access point is disconnected.
In this example, the manners for determining whether the access of the electronic device to the network via the first wireless access point is effective in the case that the electronic device is successfully wirelessly connected to the first wireless access point based on the predetermined rule include a plurality of manners, and several optimized implementations are provided as follows:
firstly, whether the access of the first wireless access point and the network side is valid is verified in a data sending mode, and the specific implementation can be as follows:
a11, the electronic device makes a data request to the network end through the first wireless access point by using the predetermined information;
a12, the electronic device obtains data feedback of the network terminal based on the data request through a first wireless access point, and the electronic device determines that the electronic device is successfully wirelessly connected with the first wireless access point and that the electronic device is effectively accessed with the network terminal through the first wireless access point.
Because in some specific circumstances the first wireless access point may provide an effective network connection but requires the user to provide private information, this situation may cause leakage of the user's private information or may pose a threat to people and property when encountering phishing sites. Therefore, in this embodiment, a specific manner for determining that the access between the first radio access point and the network is invalid may be:
a21, the electronic device makes a data request to the network end through the first wireless access point by using the predetermined information;
a22, when data feedback based on the data request is not received by the network terminal within a preset time, the electronic device determines that the wireless connection between the electronic device and a first wireless access point is unsuccessful and the access between the electronic device and the network terminal is invalid through the first wireless access point; or
A23, after the electronic device is successfully wirelessly connected with the first wireless access point, the electronic device directly obtains push data through the first wireless access point, the electronic device determines that the electronic device is successfully wirelessly connected with the first wireless access point, and the electronic device is ineffectively accessed with the network terminal through the first wireless access point.
In this embodiment, if the first access point has no feedback data, it may be directly determined that the electronic device is not valid for access with the network side through the first wireless access point; another case is: the access point feeds back push data (the push data is used for indicating that authentication information needs to be input to access the network through the first access point), and the user needs to input some authentication information according to the push data to access the network through the first access point, which may be an illegal access point, so in this example, the network connection provided by the access point is also determined to be invalid. For example: the method comprises the steps that a lawbreaker obtains information of a user by setting a false wifi hotspot, an access point pushes data to a user terminal to indicate the user to input information such as a mobile phone number, an identity card number and the like, and the access point which can reveal private information is determined to be invalid, so that the safety of wireless access is improved.
The example is applied to a specific implementation environment, and the specific implementation can be as follows:
the electronic equipment can automatically send a default network address to the first wireless access point after being connected with the first access point by presetting the default network address, request to acquire the webpage content corresponding to the network address, and if the first wireless access point feeds back the corresponding webpage content, the access of the first wireless access point and the network terminal is effective; otherwise it is not valid. This example is for the purpose of describing the above mode specifically, and the scheme is not limited to sending the data request to the first wireless access point only by using the default network address as the predetermined information, and any other mode that can send the data request to the first wireless access point may be applied to the scheme provided in this example.
Determining whether the access of the electronic device to the network terminal through the first wireless access point is valid or not according to the environment where the electronic device is located, wherein the specific implementation may be:
b1, after the electronic device is successfully connected with the first wireless access point in a wireless mode, obtaining push data through the first wireless access point;
b2, obtaining scene information of the electronic device according to the push data;
the push data can be scene marking data sent by the first wireless access point (for example, a publicity page pushed by the airport wireless access point, etc.); or the name of the wireless access point, etc. From the push data, the environment in which the electronic device is located can be determined. For example, a promotional web page for an airport is received, it may be determined that the electronic device is currently near the airport.
B3, when the scene information meets the specific scene, analyzing the push data in a secure environment to obtain the sending source information of the push data;
for example, if it is determined that the environment in which the electronic device is currently located is an airport, and it is determined that the detected access point is not server-pushed information of the airport through the pushed information, it may be determined that there is a certain risk in the current access point. The specific manner of determining the transmission source information includes various manners, which are not described again.
B4, when the sending source information meets the security information source in the specific scenario, determining that the wireless connection between the electronic device and the first wireless access point is successful, and the electronic device is effectively accessed to the network terminal through the first wireless access point;
for example: it is determined that the first wireless access point is a trusted official network access point and if the access point needs to be authenticated and then access the network, authentication information can be entered and then accessed. For example, in an airport scenario, if it is found that the first access point is an official access point provided by an airport, the authentication information may be entered in an authentication page pushed by the access point, so as to access the network after the authentication is passed.
B5, when the transmission source information does not satisfy the security information source in the specific scenario, determining that the wireless connection between the electronic device and the first wireless access point is successful, and the electronic device is not accessible to the network side through the first wireless access point.
In addition, because wifi false connection provided in some public places can cause the electronic equipment to be disconnected from a normally used data network, so that the user experience is poor. The method provided by the embodiment can also judge whether to disconnect the original connection according to the true and false connection condition of the wireless access point, and the specific implementation steps can be as follows:
when the electronic equipment is effectively accessed to the network side through the first wireless access point, maintaining wireless connection with the first wireless access point; and controlling the electronic device to turn off the cellular mobile network;
when the access of the electronic equipment to the network side through the first wireless access point is invalid, controlling the electronic equipment to maintain the connection with a cellular mobile network; alternatively, the first and second electrodes may be,
and when the access of the electronic equipment to the network side through the first wireless access point is invalid, controlling the electronic equipment to close the cellular mobile network, and switching to a second wireless access point to determine whether the access of the electronic equipment to the network side is valid or not until at least one wireless access point has a wireless access point which can be successfully connected and has valid access to the network side, and controlling the electronic equipment to close the cellular mobile network.
After entering the coverage area of a certain wireless access point, the electronic device provided by the embodiment of the invention firstly distinguishes whether the wireless access point provides true connection or false connection, and then judges whether the electronic device is connected with the wireless access point according to the condition of the true connection or the false connection of the wireless access point, thereby providing the use feeling of a user and improving the safety of network connection.
Example two
As shown in fig. 2, an embodiment of the present invention provides an electronic device, including:
a housing 201;
a storage unit 202 provided within the housing for storing at least one program module;
at least one processor 203, disposed in the housing, connected to the storage unit, for obtaining at least one wireless access point covering the electronic device through an antenna of the electronic device by obtaining and running the at least one program module from the storage unit; wirelessly connecting a first wireless access point, wherein the first wireless access point belongs to the at least one wireless access point; determining whether the access of the electronic equipment to the network side through the first wireless access point is effective or not under the condition that the wireless connection between the electronic equipment and the first wireless access point is successful based on a preset rule; the electronic equipment determines whether to maintain the wireless connection with the first wireless access point through whether the access of the first wireless access point and the network side is effective.
Optionally, the at least one processor is further configured to:
performing a data request to a network terminal through the first wireless access point by using predetermined information; and obtaining data feedback of the network terminal based on the data request through the first wireless access point, and determining that the electronic equipment is successfully wirelessly connected with the first wireless access point and the access of the electronic equipment with the network terminal is effective through the first wireless access point.
Optionally, the at least one processor is further configured to:
performing a data request to a network terminal through the first wireless access point by using predetermined information; the data feedback of the network terminal based on the data request is not received within preset time, and it is determined that the wireless connection between the electronic equipment and the first wireless access point is unsuccessful and the access of the electronic equipment and the network terminal is invalid through the first wireless access point; or
After the wireless connection with the first wireless access point is successful, push data is directly obtained through the first wireless access point, the fact that the wireless connection between the electronic equipment and the first wireless access point is successful is determined, and the electronic equipment is invalid in access with the network end through the first wireless access point.
Optionally, the at least one processor is further configured to:
after the wireless connection with the first wireless access point is successful, obtaining push data through the first wireless access point;
obtaining scene information of the electronic equipment;
when the scene information meets a specific scene, analyzing the push data in a safe environment to obtain the sending source information of the push data;
when the sending source information meets the safety information source in the specific scene, determining that the electronic equipment is successfully wirelessly connected with the first wireless access point, and the electronic equipment is effectively accessed with the network terminal through the first wireless access point;
and when the sending source information does not meet the safety information source in the specific scene, determining that the electronic equipment is successfully wirelessly connected with the first wireless access point, and the electronic equipment is ineffectively accessed with the network terminal through the first wireless access point.
Optionally, the at least one processor is further configured to:
when the electronic equipment is effectively accessed to the network side through the first wireless access point, maintaining wireless connection with the first wireless access point; and controlling the electronic device to turn off the cellular mobile network;
when the access of the electronic equipment to the network side through the first wireless access point is invalid, controlling the electronic equipment to maintain the connection with a cellular mobile network; alternatively, the first and second electrodes may be,
and when the electronic equipment does not have access to the network side through the first wireless access point, controlling the electronic equipment to close the cellular mobile network, and switching to a second wireless access point to determine whether the access of the electronic equipment to the network side is valid or not until at least one wireless access point has a wireless access point which can be successfully connected and has valid access to the network side, and controlling the electronic equipment to close the cellular mobile network.
EXAMPLE III
As shown in fig. 3, based on the method provided by the first embodiment, the embodiment of the present invention further provides a corresponding electronic device, including:
a scanning module 301, configured to obtain at least one wireless access point covering an electronic device through an antenna of the electronic device;
a connection module 302, configured to wirelessly connect a first wireless access point, where the first wireless access point belongs to the at least one wireless access point;
a validity judging module 303, configured to determine, based on a predetermined rule, whether access of the electronic device to the network via the first wireless access point is valid when the electronic device and the first wireless access point are successfully wirelessly connected;
a maintaining module 304, configured to determine whether to maintain the wireless connection with the first wireless access point based on whether the access of the electronic device to the network through the first wireless access point is valid.
One or more technical solutions in the embodiments of the present application have at least the following technical effects:
after entering the coverage area of a certain wireless access point, the electronic device provided by the embodiment of the invention firstly distinguishes whether the wireless access point provides true connection or false connection, and then judges whether the electronic device is connected with the wireless access point according to the condition of the true connection or the false connection of the wireless access point, thereby providing the use feeling of a user and improving the safety of network connection.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Specifically, the computer program instructions corresponding to the information processing method in the embodiment of the present application may be stored on a storage medium such as an optical disc, a hard disc, a usb disk, or the like, and when the computer program instructions corresponding to the information processing method in the storage medium are read or executed by an electronic device, the method includes the following steps:
obtaining, by an antenna of an electronic device, at least one wireless access point covering the electronic device;
wirelessly connecting a first wireless access point, wherein the first wireless access point belongs to the at least one wireless access point;
determining whether the access of the electronic equipment to the network side through the first wireless access point is effective or not under the condition that the wireless connection between the electronic equipment and the first wireless access point is successful based on a preset rule;
determining whether to maintain the wireless connection with the first wireless access point based on whether the access of the electronic equipment to the network side through the first wireless access point is effective.
Optionally, the step "determining whether the access of the electronic device to the network via the first wireless access point is valid when the electronic device is successfully wirelessly connected to the first wireless access point based on the predetermined rule" includes the following specific steps when the computer program instruction corresponding to the step is executed:
the electronic equipment makes a data request to a network terminal through the first wireless access point by using predetermined information;
the electronic equipment obtains data feedback of the network terminal based on the data request through the first wireless access point, and the electronic equipment determines that the electronic equipment is successfully wirelessly connected with the first wireless access point and the access of the electronic equipment with the network terminal through the first wireless access point is effective.
Optionally, the step "determining whether the access of the electronic device to the network via the first wireless access point is valid when the electronic device is successfully wirelessly connected to the first wireless access point based on the predetermined rule" includes the following specific steps when the computer program instruction corresponding to the step is executed:
the electronic equipment makes a data request to a network terminal through the first wireless access point by using predetermined information;
the electronic equipment determines that the wireless connection between the electronic equipment and the first wireless access point is unsuccessful and the access of the electronic equipment and the network terminal is invalid through the first wireless access point when data feedback based on the data request of the network terminal is not received within preset time; or
After the electronic equipment is successfully wirelessly connected with the first wireless access point, push data are directly obtained through the first wireless access point, the electronic equipment determines that the electronic equipment is successfully wirelessly connected with the first wireless access point, and the electronic equipment is ineffectively accessed with the network terminal through the first wireless access point.
Optionally, the step "determining whether the access of the electronic device to the network via the first wireless access point is valid when the electronic device is successfully wirelessly connected to the first wireless access point based on the predetermined rule" includes the following specific steps when the computer program instruction corresponding to the step is executed:
after the electronic equipment is successfully in wireless connection with the first wireless access point, push data are obtained through the first wireless access point;
obtaining scene information of the electronic equipment;
when the scene information meets a specific scene, analyzing the push data in a safe environment to obtain the sending source information of the push data;
when the sending source information meets the safety information source in the specific scene, determining that the electronic equipment is successfully wirelessly connected with the first wireless access point, and the electronic equipment is effectively accessed with the network terminal through the first wireless access point;
and when the sending source information does not meet the safety information source in the specific scene, determining that the electronic equipment is successfully wirelessly connected with the first wireless access point, and the electronic equipment is ineffectively accessed with the network terminal through the first wireless access point.
Optionally, when the corresponding computer program instruction is executed, the method specifically includes the following steps:
when the electronic equipment is effectively accessed to the network side through the first wireless access point, maintaining wireless connection with the first wireless access point; and controlling the electronic device to turn off the cellular mobile network;
when the access of the electronic equipment to the network side through the first wireless access point is invalid, controlling the electronic equipment to maintain the connection with a cellular mobile network; alternatively, the first and second electrodes may be,
and when the access of the electronic equipment to the network side through the first wireless access point is invalid, controlling the electronic equipment to close the cellular mobile network, and switching to a second wireless access point to determine whether the access of the electronic equipment to the network side is valid or not until at least one wireless access point has a wireless access point which can be successfully connected and has valid access to the network side, and controlling the electronic equipment to close the cellular mobile network.
The method of the present invention is not limited to the examples described in the specific embodiments, and those skilled in the art can derive other embodiments according to the technical solutions of the present invention, and also fall into the technical innovation scope of the present invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (9)

1. A wireless access point connection method, the method comprising:
obtaining, by an antenna of an electronic device, at least one wireless access point covering the electronic device;
wirelessly connecting a first wireless access point, wherein the first wireless access point belongs to the at least one wireless access point;
determining whether the access of the electronic equipment to a network side through the first wireless access point is effective under the condition that the electronic equipment is successfully wirelessly connected with the first wireless access point based on a preset rule;
determining whether to maintain a wireless connection with the first wireless access point based on whether access of the electronic device to the network side through the first wireless access point is effective;
the method further comprises the following steps:
controlling the electronic device to maintain a connection with a cellular mobile network before determining that the wireless connection of the electronic device with the first wireless access point is valid;
wherein the determining, based on a predetermined rule, whether the access of the electronic device to the network via the first wireless access point is valid when the electronic device is successfully wirelessly connected to the first wireless access point comprises:
after the electronic equipment is successfully in wireless connection with the first wireless access point, push data are obtained through the first wireless access point;
obtaining scene information of the electronic equipment;
when the scene information meets a specific scene, analyzing the push data in a safe environment to obtain the sending source information of the push data;
when the sending source information meets the safety information source in the specific scene, determining that the electronic equipment is successfully wirelessly connected with the first wireless access point, and the electronic equipment is effectively accessed with the network terminal through the first wireless access point;
and when the sending source information does not meet the safety information source in the specific scene, determining that the electronic equipment is successfully wirelessly connected with the first wireless access point, and the electronic equipment is ineffectively accessed with the network terminal through the first wireless access point.
2. The method of claim 1, wherein the determining whether the access of the electronic device to the network via the first wireless access point is valid if the electronic device is successfully wirelessly connected to the first wireless access point based on a predetermined rule comprises:
the electronic equipment makes a data request to a network terminal through the first wireless access point by using predetermined information;
the electronic equipment obtains data feedback of the network terminal based on the data request through the first wireless access point, and the electronic equipment determines that the electronic equipment is successfully wirelessly connected with the first wireless access point and the access of the electronic equipment with the network terminal through the first wireless access point is effective.
3. The method of claim 1, wherein the determining whether the access of the electronic device to the network via the first wireless access point is valid if the electronic device is successfully wirelessly connected to the first wireless access point based on a predetermined rule comprises:
the electronic equipment makes a data request to a network terminal through the first wireless access point by using predetermined information;
the electronic equipment determines that the wireless connection between the electronic equipment and the first wireless access point is unsuccessful and the access of the electronic equipment and the network terminal is invalid through the first wireless access point when data feedback based on the data request of the network terminal is not received within preset time; or
After the electronic equipment is successfully wirelessly connected with the first wireless access point, push data are directly obtained through the first wireless access point, the electronic equipment determines that the electronic equipment is successfully wirelessly connected with the first wireless access point, and the electronic equipment is ineffectively accessed with the network terminal through the first wireless access point.
4. The method of any of claims 1 to 3, further comprising:
when the electronic equipment is effectively accessed to the network side through the first wireless access point, maintaining wireless connection with the first wireless access point; and controlling the electronic device to turn off the cellular mobile network;
when the access of the electronic equipment to the network side through the first wireless access point is invalid, controlling the electronic equipment to maintain the connection with a cellular mobile network; alternatively, the first and second electrodes may be,
when the access of the electronic equipment to the network side through the first wireless access point is invalid, the electronic equipment is controlled to maintain the connection with the cellular mobile network, and the electronic equipment is switched to a second wireless access point to determine whether the access of the electronic equipment to the network side is valid or not until the at least one wireless access point has a wireless access point which can be successfully connected and has valid access to the network side, the electronic equipment is controlled to close the cellular mobile network.
5. An electronic device, comprising:
a housing;
a storage unit disposed within the housing for storing at least one program module;
at least one processor disposed in the housing and connected to the storage unit, the at least one processor obtaining and running the at least one program module from the storage unit for obtaining at least one wireless access point covering the electronic device through an antenna of the electronic device; wirelessly connecting a first wireless access point, wherein the first wireless access point belongs to the at least one wireless access point; determining whether the access of the electronic equipment to a network side through the first wireless access point is effective under the condition that the electronic equipment is successfully wirelessly connected with the first wireless access point based on a preset rule; the electronic equipment determines whether to maintain the wireless connection with the first wireless access point through whether the access of the first wireless access point to the network side is effective or not;
the at least one processor is further configured to:
controlling the electronic device to maintain a connection with a cellular mobile network prior to determining that the wireless connection of the electronic device with the first wireless access point is valid,
the at least one processor is further configured to:
after the wireless connection with the first wireless access point is successful, obtaining push data through the first wireless access point;
obtaining scene information of the electronic equipment;
when the scene information meets a specific scene, analyzing the push data in a safe environment to obtain the sending source information of the push data;
when the sending source information meets the safety information source in the specific scene, determining that the electronic equipment is successfully wirelessly connected with the first wireless access point, and the electronic equipment is effectively accessed with the network terminal through the first wireless access point;
and when the sending source information does not meet the safety information source in the specific scene, determining that the electronic equipment is successfully wirelessly connected with the first wireless access point, and the electronic equipment is ineffectively accessed with the network terminal through the first wireless access point.
6. The electronic device of claim 5, wherein the at least one processor is further to:
performing a data request to a network terminal through the first wireless access point by using predetermined information; and obtaining data feedback of the network terminal based on the data request through the first wireless access point, and determining that the electronic equipment is successfully wirelessly connected with the first wireless access point and the access of the electronic equipment with the network terminal is effective through the first wireless access point.
7. The electronic device of claim 5, wherein the at least one processor is further to:
performing a data request to a network terminal through the first wireless access point by using predetermined information; the data feedback of the network terminal based on the data request is not received within preset time, and it is determined that the wireless connection between the electronic equipment and the first wireless access point is unsuccessful and the access of the electronic equipment and the network terminal is invalid through the first wireless access point; or
After the wireless connection with the first wireless access point is successful, push data is directly obtained through the first wireless access point, the fact that the wireless connection between the electronic equipment and the first wireless access point is successful is determined, and the electronic equipment is invalid in access with the network end through the first wireless access point.
8. The electronic device of any of claims 5-7, wherein the at least one processor is further configured to:
when the electronic equipment is effectively accessed to the network side through the first wireless access point, maintaining wireless connection with the first wireless access point; and controlling the electronic device to turn off the cellular mobile network;
when the access of the electronic equipment to the network side through the first wireless access point is invalid, controlling the electronic equipment to maintain the connection with a cellular mobile network; alternatively, the first and second electrodes may be,
when the access of the electronic equipment to the network side through the first wireless access point is invalid, the electronic equipment is controlled to maintain the connection with the cellular mobile network, and the electronic equipment is switched to a second wireless access point to determine whether the access of the electronic equipment to the network side is valid or not until at least one wireless access point has a wireless access point which can be successfully connected and has valid access to the network side, the electronic equipment is controlled to close the cellular mobile network.
9. An electronic device, comprising:
a scanning module for obtaining at least one wireless access point covering an electronic device through an antenna of the electronic device;
a connection module, configured to connect to a first wireless access point in a wireless manner, where the first wireless access point belongs to the at least one wireless access point;
the validity judging module is used for determining whether the access of the electronic equipment to a network end through the first wireless access point is valid under the condition that the wireless connection between the electronic equipment and the first wireless access point is successful based on a preset rule;
a maintaining module, configured to determine whether to maintain a wireless connection with the first wireless access point based on whether access of the electronic device to the network through the first wireless access point is valid; the maintenance module is further to:
controlling the electronic device to maintain a connection with a cellular mobile network prior to determining that the wireless connection of the electronic device with the first wireless access point is valid,
the validity judging module is further configured to:
after the electronic equipment is successfully in wireless connection with the first wireless access point, push data are obtained through the first wireless access point;
obtaining scene information of the electronic equipment;
when the scene information meets a specific scene, analyzing the push data in a safe environment to obtain the sending source information of the push data;
when the sending source information meets the safety information source in the specific scene, determining that the electronic equipment is successfully wirelessly connected with the first wireless access point, and the electronic equipment is effectively accessed with the network terminal through the first wireless access point;
and when the sending source information does not meet the safety information source in the specific scene, determining that the electronic equipment is successfully wirelessly connected with the first wireless access point, and the electronic equipment is ineffectively accessed with the network terminal through the first wireless access point.
CN201510891936.2A 2015-12-07 2015-12-07 Wireless access point connection method and electronic equipment Active CN105472616B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510891936.2A CN105472616B (en) 2015-12-07 2015-12-07 Wireless access point connection method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510891936.2A CN105472616B (en) 2015-12-07 2015-12-07 Wireless access point connection method and electronic equipment

Publications (2)

Publication Number Publication Date
CN105472616A CN105472616A (en) 2016-04-06
CN105472616B true CN105472616B (en) 2020-02-21

Family

ID=55609799

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510891936.2A Active CN105472616B (en) 2015-12-07 2015-12-07 Wireless access point connection method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105472616B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109068372B (en) * 2018-07-25 2020-10-30 Oppo广东移动通信有限公司 Proximity-aware network creation method and related product
CN110113744B (en) * 2019-04-18 2020-12-04 杭州涂鸦信息技术有限公司 Communication method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102450090A (en) * 2009-05-28 2012-05-09 汤姆森特许公司 System and method for redirecting a mobile device
CN103997768A (en) * 2014-05-16 2014-08-20 深圳市欧珀通信软件有限公司 Method and device for preventing access to invalid Wi-Fi hot spots
CN104066129A (en) * 2014-06-30 2014-09-24 深圳市中兴移动通信有限公司 Network switching method and system
CN104080111A (en) * 2013-03-29 2014-10-01 宏碁股份有限公司 Network diversity based error reporting method, user equipment and communication system
CN104170460A (en) * 2013-12-03 2014-11-26 华为终端有限公司 Network switching method and terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546903B (en) * 2013-10-29 2017-05-03 广东欧珀移动通信有限公司 Method and device for handheld device wifi testing
CN105119901B (en) * 2015-07-17 2018-07-17 中国科学院信息工程研究所 A kind of detection method and system of fishing hot spot

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102450090A (en) * 2009-05-28 2012-05-09 汤姆森特许公司 System and method for redirecting a mobile device
CN104080111A (en) * 2013-03-29 2014-10-01 宏碁股份有限公司 Network diversity based error reporting method, user equipment and communication system
CN104170460A (en) * 2013-12-03 2014-11-26 华为终端有限公司 Network switching method and terminal
CN103997768A (en) * 2014-05-16 2014-08-20 深圳市欧珀通信软件有限公司 Method and device for preventing access to invalid Wi-Fi hot spots
CN104066129A (en) * 2014-06-30 2014-09-24 深圳市中兴移动通信有限公司 Network switching method and system

Also Published As

Publication number Publication date
CN105472616A (en) 2016-04-06

Similar Documents

Publication Publication Date Title
US11310239B2 (en) Network connection method, hotspot terminal and management terminal
CN105119939B (en) The cut-in method and device, providing method and device and system of wireless network
US10171997B2 (en) Method and apparatus for interconnection between terminal device and gateway device
CN106559783B (en) Authentication method, device and system for WIFI network
CN104767713B (en) Account binding method, server and system
CN106412901B (en) Anti-network-rubbing wireless routing method and routing system
CN112822756B (en) Communication method, system, base station and terminal
EP3675541B1 (en) Authentication method and device
US10750369B2 (en) Method, apparatus, and platform for sharing wireless local area network
CN106304264B (en) Wireless network access method and device
CN104363665A (en) Terminal
CN107766713B (en) Face template data entry control method and related product
CN104093164A (en) Wireless network access control method and system thereof
CN105577619B (en) Client login method, client and system
CN110719583B (en) Communication method and device
CN111865731A (en) Intelligent equipment adding method and device, intelligent household control panel and storage medium
CN105592463B (en) Access authentication method and device
CN105472616B (en) Wireless access point connection method and electronic equipment
CN110730446A (en) Login method, terminal and computer storage medium
CN104980420A (en) Business processing method, device, terminal and server
CN106332000B (en) Terminal position information acquisition method and device
CN105516054A (en) User authentication method and user authentication device
CN106060825B (en) Client identification card copying reminding method and server
CN106559850B (en) Network access switching method and device
CN109379744B (en) Pseudo base station identification method and device and communication terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant