CN112543493A - Wifi connection method, terminal and computer storage medium - Google Patents

Wifi connection method, terminal and computer storage medium Download PDF

Info

Publication number
CN112543493A
CN112543493A CN201910890950.9A CN201910890950A CN112543493A CN 112543493 A CN112543493 A CN 112543493A CN 201910890950 A CN201910890950 A CN 201910890950A CN 112543493 A CN112543493 A CN 112543493A
Authority
CN
China
Prior art keywords
access point
wifi access
terminal
target
wifi
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
CN201910890950.9A
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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201910890950.9A priority Critical patent/CN112543493A/en
Publication of CN112543493A publication Critical patent/CN112543493A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • 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
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area 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 invention relates to the field of wireless network communication, in particular to a wifi connection method, a terminal and a computer storage medium, aiming at solving the problem of potential safety hazard during wifi automatic connection.

Description

Wifi connection method, terminal and computer storage medium
Technical Field
The invention relates to the field of wireless network communication, in particular to a wifi connection method, a terminal and a computer storage medium.
Background
With the rapid development of the internet, the use of wifi is an essential link in people's life, and through connecting wifi, users can use various multimedia applications including browsing pictures, characters, videos and the like on line and also can transmit data among a plurality of mobile devices.
Under the condition of opening wifi, the mobile device can automatically scan wifi access points which can be connected in the current area and interact with the wifi access points, and for some access points which do not need to pass encryption authentication or access points which are connected by the user before, the mobile device can also automatically connect. However, such information interaction and automatic connection are often performed under the condition that the user is not aware of, which easily causes the mobile device to automatically connect with some insecure wifi access points, thereby revealing the information of the user.
In conclusion, no effective solution exists for the problem of potential safety hazard of wifi automatic connection.
Disclosure of Invention
The invention provides a wifi connection method, a terminal and a computer storage medium, which are used for solving the problem that in the prior art, safety hazards exist in wifi automatic connection.
Based on the above problem, in a first aspect, an embodiment of the present invention provides a wifi connection method, including:
the method comprises the steps that after a terminal scans a wifi access point, network parameters of the wifi access point are obtained;
if the wifi access point is determined to be in the target access point set according to the network parameters of the wifi access point, the terminal is connected with the wifi access point;
and the target access point set comprises wifi access points for confirming safety.
In a second aspect, an embodiment of the present invention provides a terminal, including at least one storage unit and at least one processing unit;
wherein the storage unit stores program code that, when executed by the processing unit, causes the processing unit to perform the following:
after a wifi access point is scanned, acquiring network parameters of the wifi access point;
if the wifi access point is determined to be in the target access point set according to the network parameters of the wifi access point, connection with the wifi access point is established;
and the target access point set comprises wifi access points for confirming safety.
In a third aspect, an embodiment of the present invention provides a wifi connection device, including:
the acquisition module is used for acquiring network parameters of the wifi access point after the wifi access point is scanned;
the connection module is used for establishing connection with the wifi access point if the wifi access point is determined to be in the target access point set according to the network parameters of the wifi access point;
and the target access point set comprises wifi access points for confirming safety.
In a fourth aspect, embodiments of the present invention provide a computer-readable medium on which a computer program is stored, which when executed by a processor, performs the steps of the method according to the first aspect.
According to the wifi connection method provided by the embodiment of the invention, after the terminal scans the wifi access point, the network parameters of the wifi access point are obtained, if the wifi access point is determined to be in the target access point set according to the obtained network parameters, the wifi access point can be determined as a safe access point, and the terminal establishes connection with the wifi access point determined to be safe, wherein the target access point set comprises the wifi access point determined to be safe, so that the terminal is prevented from being automatically connected to the unsafe wifi access point, and the problem of potential safety hazard of wifi automatic connection in the prior art is well solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention and are not to be construed as limiting the invention.
Fig. 1 is a flowchart of a wifi connection method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating a connection process between a terminal and a wifi access point according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a first operation command triggered by a user according to a first embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating a terminal adding a target wifi access point selected by a user to trigger a first instruction to a set of target access points according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a second user triggering a first operation instruction according to the embodiment of the present invention;
FIG. 6 is a diagram illustrating a first user triggering a second operation instruction according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating a second operation command triggered by a second user according to the embodiment of the present invention;
FIG. 8 is a schematic diagram of a wifi access point where a terminal deletes a second operation instruction indicated by a user from a target access point set according to an embodiment of the present invention;
FIG. 9 is a diagram illustrating an embodiment of a white list option jumping to a white list;
FIG. 10 is a flowchart of a wifi connection completion method according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a first wifi connection terminal according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of a second wifi connection terminal according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of a wifi connection device according to an embodiment of the invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Some terms appearing herein are explained below:
1. the term "and/or" in the embodiments of the present invention describes an association relationship of associated objects, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
2. In the embodiment of the present invention, the term "wifi", also referred to as "mobile hotspot" in chinese, is a wireless local area network technology established in IEEE 802.11 standard, and actually converts a wired network signal into a wireless signal, and uses a wireless router for receiving related computers, mobile phones, tablets, etc. supporting the technology.
3. In the embodiment of the present invention, the term "Media Access Control (MAC) address" refers to an address for identifying a location of a network device, and is used to uniquely identify a network card in a network, where if one or more network cards exist in a device, each network card needs to have a unique MAC address.
4. In the embodiment of the present invention, the term "Service Set Identifier" may be used to divide a wireless local area network into several sub-networks requiring different authentication by setting different access point network names, where each sub-network requires independent authentication, and only a user who passes the authentication may enter the corresponding sub-network.
5. The term "WLAN (Wireless Local Area Network)" in the embodiments of the present invention refers to a Network system that interconnects computer devices by using a Wireless communication technology to communicate with each other and realize resource sharing, and is essentially characterized in that a computer is not connected to a Network by using a communication cable, but connected in a Wireless manner, so that the Network construction and the terminal movement are more flexible.
6. The term "terminal" in the embodiment of the present invention is a device that can install various applications and can display an object provided in an installed application, and the terminal device may be mobile or fixed. For example, a mobile phone, a tablet computer, various wearable devices, a vehicle-mounted device, a Personal Digital Assistant (PDA), a point of sale (POS), or other terminal devices capable of implementing the above functions.
At present, for the problem that a mobile device is easily connected to an unsafe wifi access point when wifi connection is automatically performed, unsafe wifi access points are monitored mainly by installing some network safety monitoring software in the mobile device, but safety monitoring of the third-party software cannot completely monitor all unsafe wifi access points, so that the problem that the wifi access points can be connected to the unsafe wifi access points still exists when wifi connection is automatically performed, and potential safety hazards existing when wifi connection is automatically performed cannot be completely avoided.
Based on the above problem, an embodiment of the present invention provides a wifi connection method, as shown in fig. 1, the method includes the following steps:
s101, after a terminal scans a wifi access point, acquiring network parameters of the wifi access point;
and S102, if the wifi access point is determined to be in a target access point set according to the network parameters of the wifi access point, the terminal is connected with the wifi access point.
In the embodiment of the invention, the target access point set comprises the wifi access point for confirming safety.
At present, the process of establishing connection between a terminal and a wifi access point is mainly divided into three steps, including scanning, authenticating, and associating, as shown in fig. 2, after the terminal scans the wifi access point in the current area, the terminal authenticates the access point and associates with the access point successfully authenticated; the authentication method comprises open system authentication, shared key authentication and pre-identity authentication.
On the basis of the process of establishing the connection between the terminal and the wifi access point, the embodiment of the invention mainly judges whether the wifi access point is in the target access point set according to the network parameters of the wifi access point acquired in the first scanning process, and establishes the connection with the wifi access point confirmed in the target access point set. Specifically, the terminal scans all available wifi access points in the current area, acquires all available wifi access points and network parameters corresponding to the access points, displays all available wifi access points in a WLAN interface of the terminal after acquiring the parameters, and judges whether the wifi access points are in a target access point set or not according to the network parameters; wherein the network parameters include: an access point network name and/or access point MAC address with which to establish a connection after confirming that the access point is in the target set of access points.
The network name of the access point in the embodiment of the invention can be the SSID of the wifi access point.
In the embodiment of the invention, the wifi access point scanning of the terminal can be divided into active scanning and passive scanning, and both scanning modes can obtain all available wifi access points and network parameters corresponding to the access points.
Before the terminal is connected with the wifi access point, whether the wifi access point is in a target access point set needs to be judged, wherein the target access point set comprises the wifi access point which confirms safety, if the wifi access point is confirmed to be in the target access point set, the wifi access point can be confirmed to be the safe access point, and the terminal is connected with the wifi access point which confirms safety, so that the problem that in the prior art, wifi automatic connection is easily connected to unsafe wifi access points, potential safety hazards exist, and the danger that personal information is leaked due to the fact that a user is connected to the unsafe wifi access points is avoided. The embodiment of the invention can determine the wifi access point in the target access point set according to the following modes:
the method comprises the steps of determining that the wifi access point is in a target access point set according to the network name of the wifi access point acquired by a terminal.
If the network parameter comprises a network name, after the terminal determines that the target access point set comprises the network name of the wifi access point, determining that the wifi access point is in the target access point set;
specifically, the terminal compares the acquired network name of the wifi access point with the network name of the access point in the target access point set, and if the target access point set contains the network name of the wifi access point, the terminal determines that the wifi access point is in the target access point set.
And secondly, determining the wifi access point in the target access point set according to the MAC address of the wifi access point acquired by the terminal.
If the network parameters comprise MAC addresses, after the terminal determines that the target access point set comprises the MAC addresses of the wifi access points, the wifi access points are determined to be in the target access point set;
specifically, the terminal compares the MAC address of the wifi access point with the MAC address of the access point in the target access point set, and if it is determined that the target access point set includes the MAC address of the wifi access point, the terminal determines that the wifi access point is in the target access point set.
Because each wifi access point has a unique MAC address, the terminal can be more accurately connected with the wifi access point which is confirmed to be safe in a mode of judging whether the wifi access point is in the target access point set or not by comparing the MAC addresses of the access points.
And thirdly, determining the wifi access point in the target access point set according to the network name and the MAC address of the wifi access point acquired by the terminal.
If the network parameters comprise a network name and an MAC address, after the terminal determines that the target access point set comprises the network name and/or the MAC address of the wifi access point, determining that the wifi access point is in the target access point set;
due to the network name and the MAC address in the network parameters, when judging whether the wifi access point is in the target access point set, the judgment can be carried out according to the network name and/or the MAC address;
specifically, the terminal may compare the network name of the wifi access point with the network name of the access point in the target access point set, and if it is determined that the target access point set includes the network parameters of the wifi access point, the terminal determines that the wifi access point is in the target access point set; or the terminal can compare the MAC address of the wifi access point with the MAC address of the access point in the target access point set, and if the target access point set contains the MAC address of the wifi access point, the terminal determines that the wifi access point is in the target access point set; or, the terminal may simultaneously compare the network name and the MAC address of the wifi access point with the network name and the MAC address of the access point in the target access point set, and if it is determined that the target access point set includes the network parameter and the MAC address of the wifi access point, the terminal determines that the wifi access point is in the target access point set.
After the terminal determines that the wifi access point is in the target access point set, authenticating the access point, and automatically establishing connection with the access point; otherwise, the terminal does not authenticate the wifi access point any more and does not establish connection with the wifi access point.
In the embodiment of the invention, the access points in the target access point set can be added and deleted according to the actual requirements of the user, so that the access points in the target access point set are all the safe access points required by the user.
1. Adding a wifi access point in a target access point set:
in an optional implementation manner, a terminal responds to a first operation instruction which is triggered by a user and used for indicating a target wifi access point as a safe access point, and adds the target wifi access point to a target access point set;
the target wifi access point is a wifi access point according to the connection operation instruction of the user and the terminal establishes manual connection, or the target wifi access point is a wifi access point scanned by the terminal.
Aiming at the situation that the wifi access point which establishes manual connection with the terminal is added to the wifi access point:
specifically, when a user triggers a connection operation instruction to establish manual connection with the wifi access point, the terminal prompts the user whether to select to trigger the first operation instruction, and if the user selects to trigger the first operation instruction, the terminal responds to the first operation instruction of the user and adds the wifi access point manually connected by the user to the target access point set.
As shown in the WLAN display interface of fig. 3, the first operation instruction is a saving instruction triggered by the user from the WLAN display interface, all available wifi access points in the current area scanned by the terminal are displayed in the WLAN display interface, when the user selects an access point with an access point name of "chibaoer" to connect, the terminal prompts the user whether to save the wifi access point in the target access point set, and after the user selects and saves, as shown in the target access point set display interface of fig. 4, the wifi access point "chibaoer" is added to the target access point set.
For the case that the wifi access point scanned by the terminal is added to the wifi access point: specifically, after the scanned wifi access point list, the user may select one wifi access point confirmed to be safe from the wifi access point list to add to the target access point set. As shown in the WLAN display interface shown in fig. 5, the first operation instruction is a saving instruction of the user, all available wifi access points in the current area scanned by the terminal are displayed in the WLAN display interface, and the user adds a wifi access point with an access point name of "chibaoer" to the target access point set.
2. Deleting the wifi access point in the target access point set:
the user may mistakenly determine the unsafe wifi access point as the safe wifi access point and store the access point in the target access point set, or after the terminal accesses the wifi access point in the target access point set, the user determines that the wifi access point currently connected is the unsafe access point, and at this time, the user needs to delete the wifi access point from the target access point set.
In an optional implementation manner, in response to a second operation instruction triggered by a user and used for indicating that wifi access points in the target access point set are unsafe access points, the terminal deletes the unsafe wifi access points indicated by the second operation instruction from the target access point set.
The second operation instruction may be a deletion instruction of the user; the user can select any access point in the target access point set display interface to trigger the deletion instruction. As shown in fig. 6, the target access point set display interface allows the user to select the access point with the network name "MZ" in the target access point set.
The second operation instruction can be an instruction of adding to a blacklist of the user, the user can select to add to the blacklist the connected wifi access point, or select any wifi access point from all available wifi access point lists displayed on the WLAN display interface to add to the blacklist, and the terminal deletes the access point from the target access point set after determining that the access point selected to be added to the blacklist by the user is in the target access point set.
As shown in fig. 7, the WLAN display interface shows, the terminal has established a connection with a wifi access point with network name "Ggu", the user chooses to add the wifi access point to the blacklist, as shown in fig. 8, the terminal determines that the wifi access point is in the target access point set according to the instruction triggered by the user, and then deletes the wifi access point from the target access point set.
The method for adding and deleting the wifi access point in the target access point set provided by the embodiment of the invention can dynamically add or delete the access point in the target access point set according to the requirements of the user, thereby updating the synchronous network change in time, meeting the requirements of the user and improving the use experience of the user.
In the embodiment of the invention, the target access point set can be stored in the terminal in a white list mode; as shown in fig. 9, the WLAN display interface of the terminal includes a white list option, and after clicking the white list option, the user may jump to the display interface of the white list, where the white list includes all wifi access points in the target access point set, so that the user may view and delete the wifi access points in the target access point set.
It should be noted that, the preset position of the white list option in the terminal may be preset in the WLAN display interface, or preset in a setting interface of the terminal system, which is not limited herein.
Fig. 10 is a flowchart illustrating a wifi connection completion method according to an exemplary embodiment, which specifically includes the following steps:
s1001, a terminal scans available wifi access points in a current region;
s1002, acquiring network parameters of a wifi access point;
step S1003, the terminal judges whether the wifi access point is in a target access point set or not according to the network parameters of the wifi access point; if yes, executing step S1004, otherwise executing step S1005;
step S1004, the terminal establishes connection with the wifi access point;
and step S1005, the terminal ignores the wifi access point.
Based on the same inventive concept, the embodiment of the invention also provides a terminal, and as the principle of the terminal for wifi connection is similar to the wifi connection method provided by the embodiment of the invention, the implementation of the terminal can refer to the implementation of the method, and repeated parts are not described again.
As shown in fig. 11, a terminal according to an embodiment of the present invention includes at least one storage unit 1100 and at least one processing unit 1101;
wherein the storage unit 1100 stores program code which, when executed by the processing unit 1101, causes the processing unit 1101 to perform the following:
after a wifi access point is scanned, acquiring network parameters of the wifi access point;
if the wifi access point is determined to be in the target access point set according to the network parameters of the wifi access point, connection with the wifi access point is established;
and the target access point set comprises wifi access points for confirming safety.
Optionally, the network parameter comprises a network name;
the processing unit 1101 is specifically configured to:
if the target access point set comprises the network name of the wifi access point, determining that the wifi access point is in the target access point set;
optionally, the network parameter comprises a MAC address;
the processing unit 1101 is specifically configured to:
if the target access point set comprises the MAC address of the wifi access point, determining that the wifi access point is in the target access point set;
optionally, the network parameter includes a network name and a MAC address;
the processing unit 1101 is specifically configured to:
if the target access point set comprises the network name and/or the MAC address of the wifi access point, determining that the wifi access point is in the target access point set;
optionally, the processing unit 1101 is further configured to:
responding to a first operation instruction which is triggered by a user and used for indicating that a target wifi access point is a safe access point, and adding the target wifi access point to the target access point set by the terminal;
the target wifi access point is a wifi access point according to the connection operation instruction of the user and the terminal establishes manual connection, or the target wifi access point is a wifi access point scanned by the terminal.
Optionally, the processing unit 1101 is further configured to:
and responding to a second operation instruction which is triggered by a user and used for indicating that the wifi access point in the target access point set is an unsafe access point, and deleting the unsafe wifi access point indicated by the second operation instruction from the target access point set.
As shown in fig. 12, another wifi connection terminal 1200 is provided in the embodiment of the present invention, which includes: radio Frequency (RF) circuit 1210, power supply 1220, processor 1230, memory 1240, input unit 1250, display unit 1260, camera 1270, communication interface 1280, and Wireless Fidelity (WiFi) module 1290. Those skilled in the art will appreciate that the configuration of the terminal shown in fig. 12 is not intended to be limiting, and that the terminal provided by the embodiments of the present application may include more or less components than those shown, or some components may be combined, or a different arrangement of components may be provided.
The following describes each component of the terminal 1200 in detail with reference to fig. 12:
the RF circuit 1210 may be used for receiving and transmitting data during a communication or conversation. In particular, the RF circuit 1210, after receiving downlink data of a base station, sends the downlink data to the processor 1230 for processing; and in addition, sending the uplink data to be sent to the base station. Generally, the RF circuit 1210 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
In addition, the RF circuit 1210 may also communicate with networks and other terminals through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The WiFi technology belongs to a short-distance wireless transmission technology, and the terminal 1200 is connected to an Access Point (AP) through a WiFi module 1290, so as to Access a data network. The WiFi module 1290 can be used for receiving and sending data during communication.
The terminal 1200 may be physically connected to other terminals through the communication interface 1280. Optionally, the communication interface 1280 is connected to the communication interfaces of the other terminals through a cable, so as to implement data transmission between the terminal 1200 and the other terminals.
In the embodiment of the present application, the terminal 1200 can implement a communication service and send information to other contacts, so the terminal 1200 needs to have a data transmission function, that is, the terminal 1200 needs to include a communication module inside. Although fig. 12 illustrates communication modules such as the RF circuit 1210, the WiFi module 1290, and the communication interface 1280, it is to be understood that at least one of the above components or other communication modules (e.g., bluetooth module) for implementing communication exists in the terminal 1200 for data transmission.
For example, when the terminal 1200 is a mobile phone, the terminal 1200 may include the RF circuit 1210, and may further include the WiFi module 1290; when the terminal 1200 is a computer, the terminal 1200 may include the communication interface 1280 and may further include the WiFi module 1290; when the terminal 1200 is a tablet computer, the terminal 1200 may include the WiFi module.
The memory 1240 may be used to store software programs and modules. The processor 1230 executes the software programs and modules stored in the memory 1240 to perform various functional applications and data processing of the terminal 1200, and when the processor 1230 executes the program codes in the memory 1240, part or all of the processes in fig. 1 to 10 according to the embodiments of the present invention can be implemented.
Alternatively, the memory 1240 may mainly include a program storage area and a data storage area. Wherein, the storage program area can store an operating system, various application programs (such as communication application), various modules for WLAN connection, and the like; the storage data area may store data created according to the use of the terminal, and the like.
Further, the memory 1240 may include high-speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The input unit 1250 may be used to receive numeric or character information input by a user and generate key signal inputs related to user settings and function control of the terminal 1200.
Alternatively, the input unit 1250 may include a touch panel 1251 and other input terminals 1252.
The touch panel 1251, also referred to as a touch screen, can collect touch operations performed by a user on or near the touch panel 1251 (for example, operations performed by the user on or near the touch panel 1251 using any suitable object or accessory such as a finger or a stylus), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 1251 may include two parts, namely, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1230, and can receive and execute commands sent by the processor 1230. In addition, the touch panel 1251 can be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave.
Optionally, the other input terminals 1252 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 1260 may be used to display information input by or provided to the user and various menus of the terminal 1200. The display unit 1260 is a display system of the terminal 1200, and is used for presenting an interface and realizing human-computer interaction.
The display unit 1260 may include a display panel 1261. Alternatively, the Display panel 1261 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
Further, the touch panel 1251 can cover the display panel 1261, and when the touch panel 1251 detects a touch operation on or near the touch panel 1251, the touch panel 1251 transmits the touch operation to the processor 1230 to determine the type of the touch event, and then the processor 1230 provides a corresponding visual output on the display panel 1261 according to the type of the touch event.
Although in fig. 12 the touch panel 1251 and the display panel 1261 are implemented as two separate components to implement the input and output functions of the terminal 1200, in some embodiments, the touch panel 1251 and the display panel 1261 may be integrated to implement the input and output functions of the terminal 1200.
The processor 1230 is a control center of the terminal 1200, connects various components using various interfaces and lines, performs various functions of the terminal 1200 and processes data by operating or executing software programs and/or modules stored in the memory 1240 and calling data stored in the memory 1240, thereby implementing various services based on the terminal.
Optionally, the processor 1230 may include one or more processing units. Optionally, the processor 1230 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, and the like, and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 1230.
The camera 1270 is configured to implement a shooting function of the terminal 1200, and shoot pictures or videos.
The terminal 1200 also includes a power supply 1220 (such as a battery) for powering the various components. Optionally, the power source 1220 may be logically connected to the processor 1230 through a power management system, so that the power management system may manage charging, discharging, power consumption, and the like.
Although not shown, the terminal 1200 may further include at least one sensor, an audio circuit, and the like, which are not described in detail herein.
As shown in fig. 13, a wifi connection device in an embodiment of the present invention includes:
the obtaining module 1300 is configured to obtain a network parameter of a wifi access point after the wifi access point is scanned;
the connection module 1301 is configured to determine, according to the network parameter of the wifi access point, that the wifi access point is in the target access point set, and then establish a connection with the wifi access point.
And the target access point set comprises wifi access points for confirming safety.
Optionally, the network parameter comprises a network name;
the connection module 1301 is specifically configured to:
if the target access point set comprises the network name of the wifi access point, determining that the wifi access point is in the target access point set;
optionally, the network parameter comprises a MAC address;
the connection module 1301 is specifically configured to:
if the target access point set comprises the MAC address of the wifi access point, determining that the wifi access point is in the target access point set;
optionally, the network parameter includes a network name and a MAC address;
the connection module 1301 is specifically configured to:
if the target access point set comprises the network name and/or the MAC address of the wifi access point, determining that the wifi access point is in the target access point set;
optionally, the connection module 1301 is further configured to:
responding to a first operation instruction which is triggered by a user and used for indicating that a target wifi access point is a safe access point, and adding the target wifi access point to the target access point set by the terminal;
the target wifi access point is a wifi access point according to the connection operation instruction of the user and the terminal establishes manual connection, or the target wifi access point is a wifi access point scanned by the terminal.
Optionally, the connection module 1301 is further configured to:
and responding to a second operation instruction which is triggered by a user and used for indicating that the wifi access point in the target access point set is an unsafe access point, and deleting the unsafe wifi access point indicated by the second operation instruction from the target access point set.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application 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 application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to 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.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A terminal, characterized in that it comprises at least one memory unit and at least one processing unit;
wherein the storage unit stores program code that, when executed by the processing unit, causes the processing unit to perform the following:
after a wireless fidelity wifi access point is scanned, acquiring network parameters of the wifi access point;
if the wifi access point is determined to be in the target access point set according to the network parameters of the wifi access point, connection with the wifi access point is established;
and the target access point set comprises wifi access points for confirming safety.
2. The terminal according to claim 1, wherein the network parameter includes a network name, and the processing unit is specifically configured to:
and if the target access point set comprises the network name of the wifi access point, determining that the wifi access point is in the target access point set.
3. The terminal according to claim 1, wherein the network parameter includes a MAC address, and the processing unit is specifically configured to:
and if the target access point set comprises the MAC address of the wifi access point, determining that the wifi access point is in the target access point set.
4. The terminal according to claim 1, wherein the network parameters include a network name and a MAC address, and the processing unit is specifically configured to:
and if the target access point set comprises the network name and/or the MAC address of the wifi access point, determining that the wifi access point is in the target access point set.
5. The terminal of any of claims 1-4, wherein the processing unit is further to:
responding to a first operation instruction which is triggered by a user and used for indicating that a target wifi access point is a safe access point, and adding the target wifi access point to the target access point set by the terminal;
the target wifi access point is a wifi access point according to the connection operation instruction of the user and the terminal establishes manual connection, or the target wifi access point is a wifi access point scanned by the terminal.
6. The terminal of any of claims 1-4, wherein the processing unit is further to:
and responding to a second operation instruction which is triggered by a user and used for indicating that the wifi access point in the target access point set is an unsafe access point, and deleting the unsafe wifi access point indicated by the second operation instruction from the target access point set.
7. A wireless fidelity wifi connection method is characterized by comprising the following steps:
the method comprises the steps that after a terminal scans a wifi access point, network parameters of the wifi access point are obtained;
and if the wifi access point is determined to be in the target access point set according to the network parameters of the wifi access point, the terminal is connected with the wifi access point.
8. The method of claim 7, further comprising:
responding to a first operation instruction which is triggered by a user and used for indicating that a target wifi access point is a safe access point, and adding the target wifi access point to the target access point set by the terminal;
the target wifi access point is a wifi access point according to the connection operation instruction of the user and the terminal establishes manual connection, or the target wifi access point is a wifi access point scanned by the terminal.
9. The method of claim 7, further comprising:
and responding to a second operation instruction which is triggered by the user and used for indicating that the wifi access point in the target access point set is an unsafe access point, and deleting the unsafe wifi access point indicated by the second operation instruction from the target access point set by the terminal.
10. A computer storage medium having computer program instructions stored therein, which when run on a computer, cause the computer to perform the method of any one of claims 7-9.
CN201910890950.9A 2019-09-20 2019-09-20 Wifi connection method, terminal and computer storage medium Pending CN112543493A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910890950.9A CN112543493A (en) 2019-09-20 2019-09-20 Wifi connection method, terminal and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910890950.9A CN112543493A (en) 2019-09-20 2019-09-20 Wifi connection method, terminal and computer storage medium

Publications (1)

Publication Number Publication Date
CN112543493A true CN112543493A (en) 2021-03-23

Family

ID=75012311

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910890950.9A Pending CN112543493A (en) 2019-09-20 2019-09-20 Wifi connection method, terminal and computer storage medium

Country Status (1)

Country Link
CN (1) CN112543493A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113225788A (en) * 2021-04-20 2021-08-06 Oppo广东移动通信有限公司 WiFi connection method and device, electronic equipment and readable storage medium
CN113709744A (en) * 2021-10-28 2021-11-26 连连(杭州)信息技术有限公司 Wi-Fi control method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658489A (en) * 2016-09-30 2017-05-10 广东欧珀移动通信有限公司 Terminal application processing method, device and mobile terminal
WO2017166639A1 (en) * 2016-03-28 2017-10-05 乐视控股(北京)有限公司 Wireless network security management method and apparatus, and electronic device
CN108076501A (en) * 2018-01-24 2018-05-25 维沃移动通信有限公司 A kind of Wi-Fi network connection management method and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017166639A1 (en) * 2016-03-28 2017-10-05 乐视控股(北京)有限公司 Wireless network security management method and apparatus, and electronic device
CN106658489A (en) * 2016-09-30 2017-05-10 广东欧珀移动通信有限公司 Terminal application processing method, device and mobile terminal
CN108076501A (en) * 2018-01-24 2018-05-25 维沃移动通信有限公司 A kind of Wi-Fi network connection management method and mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113225788A (en) * 2021-04-20 2021-08-06 Oppo广东移动通信有限公司 WiFi connection method and device, electronic equipment and readable storage medium
CN113709744A (en) * 2021-10-28 2021-11-26 连连(杭州)信息技术有限公司 Wi-Fi control method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US10142845B2 (en) Network connection method and apparatus, and computer storage medium
US10635449B2 (en) Method and apparatus for running game client
CN106851654B (en) Pseudo base station identification method, pseudo base station identification device and terminal
CN108255683B (en) Method for prompting message in terminal and terminal
CN106936676B (en) Household equipment control method and device
CN103475996A (en) Network connecting method, network sharing method and devices
EP3893595B1 (en) Establishment by a second terminal device of a wlan hotspot connection to a first terminal device for connecting to the internet
CN107071775B (en) Mobile terminal and method and device for redirecting access to base station
CN103458408A (en) Network connection method and network sharing method and device
CN111010663B (en) Information sharing method and device, storage medium and computer equipment
US20190327702A1 (en) Cell Registration Method and Device
CN107423099B (en) Key code programming method, server, terminal, key code programming system and storage medium
CN112543493A (en) Wifi connection method, terminal and computer storage medium
CN110602707A (en) Method and terminal for connecting wireless network
CN104573437A (en) Information authentication method, device and terminal
CN108702422B (en) Incoming call management method and device for one number and multiple terminals, managed equipment and server
CN111988867B (en) Communication method with limited radio resource control and terminal equipment
CN108605207B (en) Call record synchronization method, cloud platform and terminal
CN107592289B (en) Password setting method and device
CN115544464A (en) Firmware burning method, device and system for micro-control chip and storage medium
US10841422B2 (en) Multi-SIM call management method and apparatus, managed device, and server
CN106686577B (en) A kind of information processing method, terminal device and computer readable storage medium
CN108574664B (en) Account login method, client, server, system and storage medium
CN111970745B (en) WLAN (Wireless local area network) connection method of terminal and terminal
CN111225374B (en) Network sharing setting method, device, storage medium and terminal

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