WO2019019811A1 - 用于获取无线接入点信息的方法和装置 - Google Patents

用于获取无线接入点信息的方法和装置 Download PDF

Info

Publication number
WO2019019811A1
WO2019019811A1 PCT/CN2018/090059 CN2018090059W WO2019019811A1 WO 2019019811 A1 WO2019019811 A1 WO 2019019811A1 CN 2018090059 W CN2018090059 W CN 2018090059W WO 2019019811 A1 WO2019019811 A1 WO 2019019811A1
Authority
WO
WIPO (PCT)
Prior art keywords
access point
wireless access
point information
list
information
Prior art date
Application number
PCT/CN2018/090059
Other languages
English (en)
French (fr)
Inventor
张培
崔英林
Original Assignee
上海连尚网络科技有限公司
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
Family has litigation
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=59988847&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=WO2019019811(A1) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.
Application filed by 上海连尚网络科技有限公司 filed Critical 上海连尚网络科技有限公司
Publication of WO2019019811A1 publication Critical patent/WO2019019811A1/zh
Priority to US16/749,962 priority Critical patent/US11012926B2/en

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
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/04Key management, e.g. using generic bootstrapping architecture [GBA]
    • H04W12/043Key management, e.g. using generic bootstrapping architecture [GBA] using a trusted network node as an anchor
    • H04W12/0431Key distribution or pre-distribution; Key agreement
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • 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]

Definitions

  • the present application relates to the field of communications technologies, and in particular, to the field of wireless communications technologies, and in particular, to a method and a device for acquiring wireless access point information.
  • WI-FI WIreless-Fidelity
  • APs free open access points
  • private wireless access points are often configured in the home.
  • These private wireless access points are usually provided with a password.
  • users connect to these private wireless access points they need to enter a password. After the authentication is successful, these private wireless access points can be connected.
  • a terminal device installed with iOS must have a wireless access point connection in the system wireless access point list in addition to the specific WiFi connection through the installation description file.
  • the system wireless access point list cannot provide personalized sorting and filtering capabilities.
  • the purpose of the embodiments of the present application is to provide an improved method and apparatus for acquiring wireless access point information to solve the technical problems mentioned in the above background art.
  • the embodiment of the present application provides a method for acquiring wireless access point information, where the method includes: acquiring Wifi permission in response to detecting an operation of a user launching a target application, where the Wifi right includes acquiring wireless
  • the access point information list is privileged; in response to detecting that the user opens the interface of the system for displaying the wireless access point information list, acquiring the wireless access point information list, where the wireless access point information includes an access point identifier;
  • the wireless access point information list is presented in an interface of the target application in response to detecting an interface switched from the system for displaying the wireless access point information list to the target application.
  • the method further includes: in response to receiving the selection operation of the wireless access point information in the wireless access point information list presented by the user in the interface of the target application, connecting the selection operation The wireless access point indicated by the targeted wireless access point information.
  • the method further includes: presenting, in an interface in the target application, prompt information for instructing the user to open the wireless access point information list.
  • the wireless access point information further includes a first identifier for indicating whether the wireless access point is set with a password, where the first identifier is used to indicate that the wireless access point is set with a password or is used for And indicating that the wireless access point does not set a password; and after obtaining the foregoing wireless access point information list, the method further includes: according to the wireless access point information list, the first identifier is the identified wireless access The point information generates a first wireless access point information list; the first wireless access point information list is sent to a server that provides support for the target application, and the server generates a wireless connection in the first wireless access point information list. The cryptographic wireless access point information of the entry information and the cryptographic information found; receiving at least one cryptographic wireless access point information sent by the server.
  • the foregoing first wireless access point information list is sent to a server that provides support for the target application, and the server generates the wireless access point information and the information included in the first wireless access point information list.
  • the password-enabled wireless access point information of the password information includes: dividing the first wireless access point information list into at least one first wireless access point information sub-list according to a preset rule; every preset transmission period And transmitting, to the server that provides support for the target application, the first wireless access point information sub-list in the at least one first wireless access point information sub-list, wherein the server is configured to receive the first wireless access point
  • Each wireless access point information in the information sub-list is queried in a preset database for password information corresponding to the wireless access point information, and in response to detecting the password information, generating the wireless access point information and the location The password-based wireless access point information of the password information found.
  • the method further includes: acquiring current positioning information;
  • the preset transmission period sends each first wireless access point information sub-list in the at least one first wireless access point information sub-list to a server that provides support for the target application, and the server receives the first
  • Each wireless access point information in the wireless access point information sub-list queries the password information corresponding to the wireless access point information in a preset database, and generates the wireless access in response to detecting the password information.
  • the cryptographic wireless access point information of the point information and the found cryptographic information includes: each first wireless access point information in the at least one first wireless access point information sub-list in every preset transmission period
  • the sub-list and the current positioning information are sent to a server that provides support for the target application, and the server is configured to receive the first wireless
  • Each wireless access point information in the in-point information sub-list queries the password information corresponding to the wireless access point information in a preset database according to the current positioning information, and generates and includes the response to the password information.
  • the presenting the foregoing wireless access point information list in the interface of the target application includes: presenting an open wireless access point information list, an encrypted wireless access point information list, and input in an interface of the target application.
  • the cryptographic wireless access point information list wherein the open wireless access point information list includes each wireless access point information in the wireless access point information list that is identified by the first identifier, and the encrypted wireless access point information list And including, in the foregoing first wireless information list, pieces of wireless access point information that are found in the server, and the input wireless access point information list includes the first wireless information list not in the server.
  • Each wireless access point information to the corresponding password information is included in the server.
  • the wireless access point indicated by the wireless access point information that is connected to the foregoing selection operation includes: determining, in response to determining that the first identifier of the wireless access point information for the selecting operation is the identifier And in response to determining to find the password information corresponding to the wireless access point information for the selection operation, connecting the wireless connection for the selection operation according to the password information corresponding to the wireless access point information for the selection operation.
  • the wireless access point indicated by the entry information includes: determining, in response to determining that the first identifier of the wireless access point information for the selecting operation is the identifier And in response to determining to find the password information corresponding to the wireless access point information for the selection operation, connecting the wireless connection for the selection operation according to the password information corresponding to the wireless access point information for the selection operation.
  • the wireless access point indicated by the wireless access point information for the selection operation is further configured to: determine, in response to determining, that the wireless access point information corresponding to the selection operation is not found.
  • the password information is used to display a password input control in the target application; in response to receiving the password input by the user in the password input control, according to the password input by the user, connecting the wireless access point information for the selection operation Wireless access point.
  • the wireless access point indicated by the wireless access point information for which the selecting operation is performed further includes: determining, in response to determining that the first identifier of the wireless access point information for the selecting operation is The identifier is connected to the wireless access point indicated by the wireless access point information for the selection operation.
  • the embodiment of the present application provides an apparatus for acquiring information of a wireless access point, where the apparatus includes: a first acquiring unit, configured to obtain a Wifi right in response to detecting an operation of a user to start a target application,
  • the WLAN authority includes the right to obtain the wireless access point information list, and the second acquiring unit is configured to obtain the wireless access in response to detecting that the user opens the interface of the system for displaying the wireless access point information list.
  • the wireless access point information includes an access point identifier
  • the first presentation unit is configured to, in response to detecting detecting an interface from the system for displaying the wireless access point information list, to an interface of the target application,
  • the above wireless access point information list is presented in an interface of the above target application.
  • the apparatus further includes: a connection unit configured to respond to the selection operation of the wireless access point information in the wireless access point information list presented in the interface of the target application by the user And connecting to the wireless access point indicated by the wireless access point information for the above selection operation.
  • the apparatus further includes: a second presentation unit configured to present, in an interface in the target application, prompt information for instructing the user to open the wireless access point information list.
  • the wireless access point information further includes a first identifier for indicating whether the wireless access point is set with a password, where the first identifier is used to indicate that the wireless access point is set with a password or is used for And indicating that the wireless access point does not set a password; and the foregoing apparatus further includes: a generating unit, configured to generate, according to the pieces of wireless access point information whose first identifier is the identifier in the wireless access point information list a wireless access point information list, the sending unit, configured to send the first wireless access point information list to a server that provides support for the target application, where the server generates the wireless information in the first wireless access point information list The cryptographic wireless access point information of the access point information and the cryptographic information that is found; the receiving unit is configured to receive at least one cryptographic wireless access point information sent by the server.
  • the sending unit includes: a dividing module, configured to divide the first wireless access point information list into at least one first wireless access point information sub-list according to a preset rule; Sending, in each preset transmission period, each first wireless access point information sub-list in the at least one first wireless access point information sub-list to a server supporting the target application, where the server receives Each wireless access point information in the first wireless access point information sub-list is queried in a preset database for password information corresponding to the wireless access point information, and in response to detecting the password information, generating the Wireless access point information and passwordd wireless access point information for the password information found.
  • the sending unit further includes: an acquiring module, configured to acquire current positioning information; and the sending module is further configured to: use the at least one first wireless access point information every preset transmission period
  • Each of the first wireless access point information sub-lists in the list and the current positioning information are sent to a server that provides support for the target application, and the server is configured for each of the received first wireless access point information sub-lists
  • the wireless access point information, the password information corresponding to the wireless access point information is queried in a preset database according to the current positioning information, and the wireless access point information is generated and found in response to the found password information.
  • the password information is encrypted with the wireless access point information.
  • the first presentation unit is further configured to: present an open wireless access point information list, an encrypted wireless access point information list, and an input password wireless access point information list in an interface of the target application, where
  • the open wireless access point information list includes pieces of wireless access point information that are identified by the first identifier in the wireless access point information list, where the encrypted wireless access point information list includes the first wireless information list.
  • Each of the wireless access point information of the corresponding password information is found in the server; the input password wireless access point information list includes each wireless in the first wireless information list that does not find the corresponding password information in the server. Access point information.
  • the connecting unit includes: a first connection module, configured to respond to the determining to determine the selection operation in response to determining that the first identifier of the wireless access point information for the selecting operation is The password information corresponding to the wireless access point information is connected to the wireless access point indicated by the wireless access point information for the selection operation according to the password information corresponding to the wireless access point information for the selection operation. .
  • the connecting unit further includes: a presentation module, configured to present a password input control in the target application in response to determining that the password information corresponding to the wireless access point information for the selection operation is not found.
  • the second connection module is configured to, in response to receiving the password input by the user in the password input control, connect the wireless access indicated by the wireless access point information for the selection operation according to the password input by the user point.
  • the connecting unit further includes: a third connection module, configured to connect to the wireless for the selecting operation in response to determining that the first identifier of the wireless access point information for the selecting operation is not The wireless access point indicated by the access point information.
  • an embodiment of the present application provides a terminal device, where the terminal device includes: one or more processors; and a storage device, configured to store one or more programs, when the one or more programs are When executed by a plurality of processors, the one or more processors described above are implemented as described in any one of the first aspects.
  • the embodiment of the present application provides a computer readable storage medium, where a computer program is stored, wherein the computer program is executed by a processor to implement the method as described in any one of the first aspects. .
  • the method and apparatus for acquiring wireless access point information obtained by the embodiment of the present application obtains Wifi permission by detecting when the user starts the operation of the target application, and then detects that the user opens the system for displaying the wireless access point information.
  • the wireless access point information list is obtained, and when the interface for displaying the wireless access point information list is switched to the interface of the target application, the wireless access point information is presented in the interface of the target application. List, thereby realizing display of the wireless access point information list in the interface of the target application of the terminal device.
  • FIG. 1 is an exemplary system architecture diagram to which the present application can be applied;
  • FIG. 2 is a flow diagram of one embodiment of a method for acquiring wireless access point information in accordance with the present application
  • FIG. 3 is a schematic diagram of an application scenario of a method for acquiring wireless access point information according to the present application
  • 4A is a flowchart of still another embodiment of a method for acquiring wireless access point information in accordance with the present application
  • FIG. 4B is an exploded flow chart of step 407 in the flow chart shown in FIG. 4A according to the present application;
  • FIG. 5 is a schematic structural diagram of an embodiment of an apparatus for acquiring wireless access point information according to the present application.
  • FIG. 6 is a schematic structural diagram of a computer system suitable for implementing the terminal device of the embodiment of the present application.
  • FIG. 1 illustrates an exemplary system architecture 100 of an embodiment of a method for acquiring wireless access point information or means for acquiring wireless access point information to which the present application may be applied.
  • system architecture 100 can include terminal devices 101, 102, 103, network 104, and server 105.
  • the network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105.
  • Network 104 may include various types of connections, such as wired, wireless communication links, fiber optic cables, and the like.
  • the user can interact with the server 105 over the network 104 using the terminal devices 101, 102, 103 to receive or transmit messages and the like.
  • Various client applications such as a wireless access point information acquisition application, a wireless access point connection application, a web browser application, a shopping application, a search application, and an instant communication, may be installed on the terminal devices 101, 102, and 103. Tools, email client, social platform software, etc.
  • the terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting the connection of wireless access points, including but not limited to smartphones, tablets, laptop portable computers, desktop computers, and the like.
  • the terminal devices 101, 102, 103 may be various mobile terminal devices having a display screen, supporting connection to a wireless access point, and an installed operating system being iOS.
  • the server 105 may be a server that provides various services, such as a background server that provides support for wireless access point connection type applications displayed on the terminal devices 101, 102, 103.
  • the background server may perform processing such as analyzing the received wireless access point password information query request and the like, and feed back the processing result (for example, the password information corresponding to the wireless access point information) to the terminal device.
  • the method for acquiring the wireless access point information provided by the embodiment of the present application is generally performed by the terminal device 101, 102, and 103. Accordingly, the device for acquiring the wireless access point information is generally set in the terminal. In the devices 101, 102, 103. In some cases, the method for obtaining wireless access point information provided by the embodiment of the present application may also be performed by the terminal device 101, 102, and 103 only without the network 104 and the server 105. This application does not limit this.
  • terminal devices, networks, and servers in Figure 1 is merely illustrative. Depending on the implementation needs, there can be any number of terminal devices, networks, and servers.
  • the method for obtaining wireless access point information includes the following steps:
  • Step 201 Acquire Wifi permission in response to detecting that the user starts the operation of the target application.
  • the electronic device (for example, the terminal device shown in FIG. 1) on which the method for acquiring the wireless access point information runs may detect the operation of the target application to the electronic device.
  • the operating system obtains Wifi permissions.
  • the Wifi authority may include permission to obtain a wireless access point information list.
  • the Wifi permission may further include a right to connect to the wireless access point.
  • the target application may be an application of a method for acquiring wireless access point information installed in the foregoing electronic device.
  • the target application may implement other methods for acquiring the wireless access point information, and the target application may also implement other operations, such as: connecting the wireless access point, information push, and news push. , instant messaging, and more.
  • the operating system of the above electronic device may be iOS, so that the Wifi permission can be obtained by the following method:
  • the electronic device may perform the following operations after the step 201, before the step 202: presenting a prompt for instructing the user to open the wireless access point information list in the interface in the target application. information.
  • the user can open the interface of the system for displaying the wireless access point information list as soon as possible, thereby improving the efficiency of connecting the wireless access point.
  • Step 202 Acquire a wireless access point information list in response to detecting that the user opens an interface of the system for displaying the wireless access point information list.
  • the electronic device may detect whether the user has opened the interface of the system for displaying the wireless access point information list by the system of the electronic device, and if it is detected that the user opens the system of the electronic device, The interface for displaying the wireless access point information list may obtain the wireless access point information list.
  • the wireless access point information list is a list of at least one wireless access point information provided by an operating system of the electronic device, where the wireless access point information may include an access point identifier, for example, an access point identifier. It may be an SSID (Service Set Identifier) and/or a BSSID (Basic Service Set Identifier).
  • the wireless access point information may also include signal strength.
  • the wireless access point information list may be obtained after detecting that the wireless access point information list is opened.
  • the operating system of the above electronic device may be iOS, so that the wireless access point information list can be obtained by the following method:
  • Step 203 in response to detecting that the interface for displaying the wireless access point information list from the system is switched to the interface of the target application, presenting the wireless access point information list in the interface of the target application.
  • the current display interface of the electronic device is not the interface of the target application in step 202, in order to perform subsequent operations.
  • the user is required to switch from the interface of the system for displaying the wireless access point information list to the interface of the target application. If it is detected that the current display interface of the electronic device is switched from the interface for displaying the wireless access point information list to the interface of the target application, the wireless access point information acquired in step 202 may be presented in the interface of the target application. List. Thereby, the list of wireless access point information is displayed in the interface of the target application instead of in the interface provided by the operating system for displaying the list of wireless access point information.
  • the user may pop up for prompting before opening the interface of the system for displaying the wireless access point information list in step 202.
  • the user After the user opens the interface for displaying the wireless access point information list, the user returns the prompt information of the interface of the target application, so that the user is prompted to improve the efficiency of the user returning to the target application interface.
  • a notification message may be popped up, and the user may click on the notification message to switch from the interface for displaying the wireless access point information list to the interface of the target application.
  • the electronic device may display the wireless access point information list personalized in the interface of the target application in various combinations.
  • the foregoing electronic device may sort according to the signal strength of the wireless access point information in the wireless access point information list, and display according to the sorting result, for example, display the wireless access point information with a large signal strength in front.
  • the wireless access point information with low signal strength is displayed behind.
  • the wireless access point information may further include information for characterizing whether the wireless access point is set with a password, such that the electronic device may display the wireless access point information of the wireless access point provided with the password as a category.
  • the wireless access point information of the wireless access point that is not set with the password is displayed as another category.
  • the foregoing electronic device may further perform the following step 204 after step 203:
  • Step 204 In response to receiving a selection operation of the wireless access point information in the wireless access point information list presented by the user in the interface of the target application, the wireless connection indicated by the wireless access point information for the connection selection operation is connected. Entry point.
  • the user can select the wireless access point information of the wireless access point to be connected therein.
  • the electronic device may connect the wireless access point information for the selection operation of the user after receiving the selection operation of the wireless access point information in the wireless access point information list presented by the user in the interface of the target application. Indicated wireless access point. Since the Wifi right has been acquired to the operating system in step 201, the electronic device can connect to the wireless access point indicated by the wireless access point information for the user's selection operation in the target application.
  • FIG. 3 is a schematic diagram of an application scenario of a method for acquiring wireless access point information according to the embodiment.
  • the user first starts the target application on the terminal device, and then in step 301, the terminal device detects that the user starts the operation of the target application, and then acquires the Wifi right. Then, the user opens an interface of the system for displaying the wireless access point information list on the terminal device, and then in step 302, the terminal device detects that the user opens the interface of the system for displaying the wireless access point information list, and then obtains the wireless connection. A list of inbound information.
  • the terminal device detects the interface for the slave system to display the wireless access point information list. Switching to the interface of the target application, the wireless access point information list is presented in the interface of the target application. Finally, the user selects the wireless access point information to be connected in the wireless access point information list presented in the interface of the target application of the terminal device, and then in step 304, the terminal device receives the user's interface to the target application. The selection operation of the wireless access point information in the presented wireless access point information list is then connected to the wireless access point indicated by the wireless access point information for which the selection operation is directed.
  • the foregoing embodiment of the present application provides a method for acquiring a Wifi right by detecting a user launching a target application, and then acquiring a wireless access point when detecting that the user opens an interface for displaying a wireless access point information list by the system.
  • the information list when detecting the interface switched from the system for displaying the wireless access point information list to the interface of the target application, presenting the wireless access point information list in the interface of the target application, thereby realizing the target in the terminal device
  • a list of wireless access point information is displayed in the interface of the application.
  • the process 400 for the method for obtaining wireless access point information includes the following steps:
  • Step 401 Acquire Wifi permission in response to detecting that the user starts the operation of the target application.
  • Step 402 Acquire a wireless access point information list in response to detecting that the user opens an interface of the system for displaying the wireless access point information list.
  • step 401 and step 402 are substantially the same as those of step 201 and step 202 in the embodiment shown in FIG. 2, and details are not described herein again.
  • the wireless access point information may further include a first identifier for indicating whether the wireless access point is set with a password, where the first identifier may be an identifier for indicating that the wireless access point is set with a password or A flag indicating that the wireless access point has not set a password.
  • Step 403 Generate a first wireless access point information list according to the pieces of wireless access point information whose first identifier is the identifier in the wireless access point information list.
  • the electronic device may be configured by the first wireless access point information that is identified by the first identifier in the wireless access point information list.
  • the information list that is, the wireless access point indicated by each wireless access point information in the generated first wireless access point information list is set with a password, in order to connect to the first wireless access point information list.
  • the wireless access point indicated by any wireless access point information needs to obtain the corresponding password to connect.
  • Step 404 Send the first wireless access point information list to a server that provides support for the target application.
  • the electronic device may send the first wireless access point information list to a server that provides support for the target application, and the server may receive the first a wireless access point information in a wireless access point information list, querying a password information corresponding to the wireless access point information in a preset database, and if the corresponding password information is found, generating the wireless connection The password-based wireless access point information of the entry information and the found password information, if the corresponding password information is not found, the wireless access point information with the password is not generated.
  • the server performs a query operation on each wireless access point information in the first wireless access point information list, at least one wireless access point information with a password is generated, and at least one generated password is wirelessly connected.
  • the entry information is returned to the above electronic device.
  • the preset database has correspondingly stored wireless access point information and password information, wherein the password information may include a password and an encryption method.
  • the encryption method may be WPA (Wi-Fi Protected Access), WEP (Wired Equivalent Privacy), or the like.
  • step 404 can also be performed as follows:
  • the first wireless access point information list is divided into at least one first wireless access point information sub-list according to a preset rule.
  • the preset rule may be: dividing the first wireless access point information list into at least one first wireless access point information sub-list, wherein each of the first wireless access point information sub-lists is in the wireless access The number of point information is less than or equal to the first preset number.
  • the preset rule may be: dividing the first wireless access point information list into a second preset number of first wireless access point information sub-lists, wherein each of the first wireless access point information sub-lists The difference between the number of wireless access point information in any two first wireless access point information sub-lists is less than a third preset number.
  • each first wireless access point information sub-list in the at least one first wireless access point information sub-list is sent to the server supporting the target application every preset transmission period.
  • the server may query, in the received database, the password information corresponding to the wireless access point information, and the response, for each wireless access point information in the received first wireless access point information sub-list.
  • the password information is found, and the wireless access point information including the wireless access point information and the checked password information is generated.
  • the electronic device may further obtain the current after the first wireless access point information list is divided into the at least one first wireless access point information sub-list according to the preset rule. Positioning information.
  • the electronic device may acquire the current positioning information of the electronic device, for example, the current positioning information may be obtained by opening the positioning function.
  • each first wireless access point information sub-list in the at least one first wireless access point information sub-list is sent to the server every preset transmission period, or may be performed as follows: every preset transmission period will be Each of the first wireless access point information sub-lists and the current positioning information in the at least one first wireless access point information sub-list are sent to the server.
  • the server may query, for each wireless access point information in the received first wireless access point information sub-list, a password corresponding to the wireless access point information in a preset database according to the current positioning information. Information, and in response to finding the password information, generating cryptographic wireless access point information including the wireless access point information and the cryptographic information found.
  • the amount of data transmission with the server can be reduced, thereby speeding up the transmission, and thereby improving the user experience.
  • Step 405 Receive at least one cryptographic wireless access point information sent by the server.
  • Step 406 in response to detecting that the interface for displaying the wireless access point information list from the system is switched to the interface of the target application, presenting the wireless access point information list in the interface of the target application.
  • step 406 may be substantially the same as the operation of step 203 in the embodiment shown in FIG. 2, and details are not described herein again.
  • step 406 can also be performed as follows:
  • the open wireless access point information list may include pieces of wireless access point information that are identified by the first identifier in the wireless access point information list. That is, the wireless access point indicated by each wireless access point information in the open wireless access point information list is not provided with a password, and the electronic device is connected to any one of the open wireless access point information lists. When entering the wireless access point indicated by the information, you can connect directly without entering a password.
  • the encrypted wireless access point information list may include pieces of wireless access point information in the first wireless information list in which the corresponding password information is found in the server. That is, the wireless access point information in the encrypted wireless access point information list is in one-to-one correspondence with the wireless access point information in the at least one cryptographic wireless access point information received by the electronic device. For each wireless access point information in the encrypted wireless access point information list, at least one wireless access point information with the wireless access point information in the encrypted wireless access point information and the wireless access point information may be the same The password information of the information is determined as the password of the wireless access point indicated by the wireless access point information.
  • the input password wireless access point information list includes pieces of wireless access point information in the first wireless information list that are not found in the server. That is, for each wireless access point information in the input password wireless access point information list, the wireless access point indicated by the wireless access point information is provided with a password, but the server does not find the wireless connection.
  • the password information corresponding to the entry information so that there is no cryptographic wireless access point information corresponding to the wireless access point information in the at least one cryptographic wireless access point information received from the server.
  • Step 407 In response to receiving a selection operation of the wireless access point information in the wireless access point information list presented by the user in the interface of the target application, the wireless connection indicated by the wireless access point information for the connection selection operation is connected. Entry point.
  • the electronic device may perform a selection operation of the wireless access point information in the wireless access point information list presented by the user in the interface of the target application, and connect the wireless access point for the selection operation.
  • the wireless access point indicated by the message please refer to FIG. 4B, which shows sub-step 4071, sub-step 4072, sub-step 4072', sub-step 4073, sub-step 4073', and sub-step 4074' of step 407.
  • Sub-step 4071 determining whether the first identifier of the wireless access point information for which the selection operation is directed is a flag. If yes, go to sub-step 4072, if no, go to sub-step 4072'.
  • the process proceeds to sub-step 4072.
  • Sub-step 4072' connects the wireless access point indicated by the wireless access point information for which the selection operation is directed.
  • Sub-step 4072 determining whether the password information corresponding to the wireless access point information for which the selection operation is directed is found, and if it is determined to be found, proceeds to sub-step 4073, and if it is determined not to be found, then proceeds to sub-step 4073'.
  • the first identifier of the wireless access point information for the selection operation is an identifier, indicating that the wireless access point indicated by the wireless access point information for the selection operation is configured with a password
  • the sub-step 4073' is passed.
  • the cryptographic wireless access point information may be determined.
  • the password information corresponding to the wireless access point information for the selection operation is found, and vice versa, the password information corresponding to the wireless access point information for the selection operation is not found.
  • Sub-step 4073 according to the password information corresponding to the wireless access point information for the selection operation, the wireless access point indicated by the wireless access point information for the selection operation is connected.
  • the wireless information for the selection operation may be connected according to the password information corresponding to the wireless access point information for the selection operation.
  • the wireless access point indicated by the access point information may be connected according to the password information corresponding to the wireless access point information for the selection operation.
  • the password information of the cryptographic wireless access point information that is the same as the wireless access point information for the at least one cryptographic wireless access point information and the wireless access point information for the selection operation may be determined as being related to the selection operation.
  • Sub-step 4073' presents a password input control in the target application.
  • the password input control may be presented in the target application, and the user inputs the password therein.
  • Sub-step 4074' in response to receiving the password entered by the user in the password input control, according to the password input by the user, the wireless access point indicated by the wireless access point information for which the selection operation is directed is connected.
  • the wireless access point indicated by the wireless access point information for the selection operation may be connected according to the password input by the user.
  • the process 400 for obtaining the wireless access point information in the embodiment is more than querying the password of the wireless access point from the server. Steps, and steps to connect to the wireless access point according to whether a password is set and whether a password is queried.
  • the solution described in this embodiment can achieve a more complete connection of wireless access points.
  • the present application provides an embodiment of an apparatus for acquiring wireless access point information, and the apparatus embodiment and the method embodiment shown in FIG.
  • the device can be specifically applied to various electronic devices.
  • the apparatus 500 for acquiring wireless access point information in this embodiment includes: a first obtaining unit 501, a second obtaining unit 502, and a first rendering unit 503.
  • the first obtaining unit 501 is configured to acquire the Wifi right in response to detecting the operation of the user to start the target application, where the Wifi right includes the right to obtain the wireless access point information list;
  • the second obtaining unit 502 is configured to use Acquiring to acquire the wireless access point information list, where the wireless access point information includes an access point identifier, in response to detecting that the user opens the interface for displaying the wireless access point information list, the first presentation unit 503, the configuration
  • the wireless access point information list is presented in an interface of the target application.
  • the specific processing of the first acquiring unit 501, the second obtaining unit 502, and the first rendering unit 503 of the apparatus 500 for acquiring the wireless access point information and the technical effects thereof may be respectively referred to the figure. 2
  • Corresponding descriptions of the steps 201, 202, and 203 in the embodiment are not described herein again.
  • the apparatus 500 may further include: a connecting unit 504, configured to respond to the received wireless access point information list presented in an interface of the user to the target application.
  • the selection operation of the wireless access point information in the connection is to connect the wireless access point indicated by the wireless access point information for the selection operation.
  • the foregoing apparatus 500 may further include: a second presentation unit 505, configured to display, in an interface in the target application, the user to open the wireless access point information List of tips.
  • the wireless access point information further includes a first identifier for indicating whether the wireless access point is set with a password, where the first identifier is used to indicate that the wireless access point is set
  • the password is an identifier or a non-identification indicating that the wireless access point does not set a password
  • the apparatus 500 further includes: a generating unit 506, configured to use, according to the first identifier in the wireless access point information list, that the identifier is Each of the wireless access point information generates a first wireless access point information list, and the sending unit 507 is configured to send the first wireless access point information list to a server that provides support for the target application, where the server generation includes the foregoing The wireless access point information in the first wireless access point information list and the cryptographic wireless access point information of the cryptographic information that is found; the receiving unit 508 is configured to receive at least one cryptographic wireless connection sent by the server Entry information.
  • the sending unit 507 may include: a dividing module 5071 configured to divide the first wireless access point information list into at least one first wireless access according to a preset rule. a point information sub-list; the sending module 5072 is configured to send, according to the preset sending period, each first wireless access point information sub-list in the at least one first wireless access point information sub-list to the target application Providing a supported server, wherein the server queries, in a preset database, password information corresponding to the wireless access point information for each wireless access point information in the received first wireless access point information sub-list, And in response to finding the password information, generating the cryptographic wireless access point information including the wireless access point information and the found password information.
  • the sending unit 507 may further include: an obtaining module 5073 configured to acquire current positioning information; and the sending module 5072 may be further configured to: use a preset sending period Sending each first wireless access point information sub-list in the at least one first wireless access point information sub-list and the current positioning information to a server that provides support for the target application, where the server receives the Each wireless access point information in a wireless access point information sub-list queries the password information corresponding to the wireless access point information in a preset database according to the current positioning information, and responds to the password information, A cryptographic wireless access point information including the wireless access point information and the found cryptographic information is generated.
  • the first presentation unit 503 may be further configured to: present an open wireless access point information list, an encrypted wireless access point information list, and an input in an interface of the target application.
  • the cryptographic wireless access point information list wherein the open wireless access point information list includes each wireless access point information in the wireless access point information list that is identified by the first identifier, and the encrypted wireless access point information list And including, in the foregoing first wireless information list, pieces of wireless access point information that are found in the server, and the input wireless access point information list includes the first wireless information list not in the server.
  • the foregoing connecting unit 504 may include: a first connection module 5041, configured to respond to determining that the first identifier of the wireless access point information for the selecting operation is an identifier And in response to determining to find the password information corresponding to the wireless access point information for the selection operation, connecting the wireless connection for the selection operation according to the password information corresponding to the wireless access point information for the selection operation.
  • the connecting unit 504 may further include: a presentation module 5042, configured to respond to determining that the password information corresponding to the wireless access point information for the selection operation is not found. a password input control is presented in the target application; the second connection module 5043 is configured to, in response to receiving the password input by the user in the password input control, connect the selection operation according to the password input by the user. The wireless access point indicated by the wireless access point information.
  • the foregoing connecting unit 504 may further include: a third connection module 5044, configured to respond to determining whether the first identifier of the wireless access point information for the selecting operation is The identifier is connected to the wireless access point indicated by the wireless access point information for the selection operation.
  • FIG. 6 a block diagram of a computer system 600 suitable for use in implementing the terminal device of the embodiments of the present application is shown.
  • the terminal device shown in FIG. 6 is merely an example, and should not impose any limitation on the function and scope of use of the embodiments of the present application.
  • the computer system 600 includes a central processing unit (CPU) 601, which can be loaded into random access according to a program stored in a read only memory (ROM) 602 or from the storage portion 608. Various appropriate operations and processes are executed by programs in the memory (RAM, Random Access Memory) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored.
  • the CPU 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604.
  • An input/output (I/O, Input/Output) interface 605 is also coupled to bus 604.
  • the following components are connected to the I/O interface 605: an input portion 606 including a touch screen, a stylus, etc.; including, for example, a cathode ray tube (CRT), a liquid crystal display (LCD), a touch screen, and the like. And an output portion 607 of a speaker or the like; a storage portion 608 including a hard disk or the like; and a communication portion 609 including a network interface card such as a LAN (Local Area Network) card, a modem, and the like.
  • the communication section 609 performs communication processing via a network such as the Internet.
  • Driver 610 is also coupled to I/O interface 605 as needed.
  • a removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory or the like, is mounted on the drive 610 as needed so that a computer program read therefrom is installed into the storage portion 608 as needed.
  • an embodiment of the present disclosure includes a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for executing the method illustrated in the flowchart.
  • the computer program can be downloaded and installed from the network via communication portion 609, and/or installed from removable media 611.
  • the central processing unit (CPU) 601 the above-described functions defined in the method of the present application are performed.
  • the computer readable medium described herein may be a computer readable signal medium or a computer readable storage medium or any combination of the two.
  • the computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
  • a computer readable storage medium may be any tangible medium that can contain or store a program, which can be used by or in connection with an instruction execution system, apparatus or device.
  • a computer readable signal medium may include a data signal that is propagated in the baseband or as part of a carrier, carrying computer readable program code. Such propagated data signals can take a variety of forms including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer readable signal medium can also be any computer readable medium other than a computer readable storage medium, which can transmit, propagate, or transport a program for use by or in connection with the instruction execution system, apparatus, or device.
  • Program code embodied on a computer readable medium can be transmitted by any suitable medium, including but not limited to wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
  • each block of the flowchart or block diagram can represent a module, a program segment, or a portion of code that includes one or more of the logic functions for implementing the specified.
  • Executable instructions can also occur in a different order than that illustrated in the drawings. For example, two successively represented blocks may in fact be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts can be implemented in a dedicated hardware-based system that performs the specified function or operation. Or it can be implemented by a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments of the present application may be implemented by software or by hardware.
  • the described unit may also be provided in the processor, for example, as described in one of the following: a processor includes a first acquisition unit, a second acquisition unit, and a first presentation unit.
  • the name of these units does not constitute a limitation on the unit itself in some cases.
  • the second obtaining unit may also be described as “a unit that acquires a list of wireless access point information”.
  • the present application also provides a computer readable medium, which may be included in the apparatus described in the above embodiments, or may be separately present and not incorporated into the apparatus.
  • the computer readable medium carries one or more programs, when the one or more programs are executed by the device, causing the device to: obtain Wifi rights in response to detecting an operation of the user launching the target application, wherein the Wifi rights Having the right to obtain a wireless access point information list; in response to detecting that the user opens an interface for displaying the wireless access point information list, acquiring the wireless access point information list, where the wireless access point information includes accessing Point identification; in response to detecting an interface switched from the system for displaying the wireless access point information list to the interface of the target application, presenting the wireless access point information list in an interface of the target application.

Landscapes

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

Abstract

本申请实施例公开了用于获取无线接入点信息的方法和装置。该方法的一具体实施方式包括:响应于检测到用户启动目标应用的操作,获取Wifi权限;响应于检测到用户打开系统用于显示无线接入点信息列表的界面,获取无线接入点信息列表;响应于检测到从系统用于显示无线接入点信息列表的界面切换到目标应用的界面,在目标应用的界面中呈现无线接入点信息列表。该实施方式实现了在终端设备的目标应用的界面中显示无线接入点信息列表。

Description

用于获取无线接入点信息的方法和装置 技术领域
本申请涉及通信技术领域,具体涉及无线通信技术领域,尤其涉及用于获取无线接入点信息的方法和设备。
背景技术
随着无线通信技术的不断发展,WI-FI(WIreless-Fidelity,无线保真)网络已经成为用户日常访问网络的一种重要方式,同时也给用户带来了极大的便利。例如,在某些公共区域配置有免费开放的无线接入点(AP,Access Point),用户无需输入密码即可连接这些免费开放的无线接入点;而家庭中往往会配置私有无线接入点,这些私有无线接入点通常设置有密码,用户连接这些私有无线接入点时,需要输入密码,在认证成功后即可连接这些私有无线接入点。
然而,安装有iOS(苹果公司的移动操作系统)的终端设备除了通过安装描述文件进行特定WiFi的连接之外,必须要在系统无线接入点列表中才能有选择的进行无线接入点连接,而系统无线接入点列表无法提供个性化的排序、筛选等能力。
发明内容
本申请实施例的目的在于提出一种改进的用于获取无线接入点信息的方法和装置,来解决以上背景技术部分提到的技术问题。
第一方面,本申请实施例提供了一种用于获取无线接入点信息的方法,该方法包括:响应于检测到用户启动目标应用的操作,获取Wifi权限,其中,上述Wifi权限包括获取无线接入点信息列表的权限;响应于检测到上述用户打开系统用于显示上述无线接入点信息列表的界面,获取上述无线接入点信息列表,上述无线接入点信息包括接入点标识;响应于检测到从系统用于显示上述无线接入点信息列表的界 面切换到上述目标应用的界面,在上述目标应用的界面中呈现上述无线接入点信息列表。
在一些实施例中,上述方法还包括:响应于接收到上述用户对上述目标应用的界面中所呈现的上述无线接入点信息列表中的无线接入点信息的选择操作,连接上述选择操作所针对的无线接入点信息所指示的无线接入点。
在一些实施例中,上述获取Wifi权限之后,上述方法还包括:在上述目标应用中的界面中呈现用于指示上述用户打开上述无线接入点信息列表的提示信息。
在一些实施例中,上述无线接入点信息还包括用于指示无线接入点是否设置有密码的第一标识,第一标识为用于指示无线接入点设置有密码的是标识或者用于指示无线接入点未设置密码的否标识;以及上述获取上述无线接入点信息列表之后,上述方法还包括:根据上述无线接入点信息列表中第一标识为是标识的各条无线接入点信息生成第一无线接入点信息列表;将上述第一无线接入点信息列表发送到对上述目标应用提供支持的服务器,上述服务器生成包括上述第一无线接入点信息列表中的无线接入点信息和所查到的密码信息的带密码无线接入点信息;接收上述服务器发来的至少一条带密码无线接入点信息。
在一些实施例中,上述将上述第一无线接入点信息列表发送到对上述目标应用提供支持的服务器,上述服务器生成包括上述第一无线接入点信息列表中的无线接入点信息和所查到的密码信息的带密码无线接入点信息,包括:按照预设规则将上述第一无线接入点信息列表划分成至少一个第一无线接入点信息子列表;每隔预设发送周期将上述至少一个第一无线接入点信息子列表中的每个第一无线接入点信息子列表发送到对上述目标应用提供支持的服务器,上述服务器对于所接收到的第一无线接入点信息子列表中的每个无线接入点信息,在预设的数据库中查询与该无线接入点信息对应的密码信息,以及响应于查到密码信息,生成包括该无线接入点信息和所查到的密码信息的带密码无线接入点信息。
在一些实施例中,上述按照预设规则将上述第一无线接入点信息列表划分成至少一个第一无线接入点信息子列表之后,上述方法还包括:获取当前定位信息;以及上述每隔预设发送周期将上述至少一个第一无线接入点信息子列表中的每个第一无线接入点信息子列表发送到对上述目标应用提供支持的服务器,上述服务器对于所接收到的第一无线接入点信息子列表中的每个无线接入点信息,在预设的数据库中查询与该无线接入点信息对应的密码信息,以及响应于查到密码信息,生成包括该无线接入点信息和所查到的密码信息的带密码无线接入点信息,包括:每隔预设发送周期将上述至少一个第一无线接入点信息子列表中的每个第一无线接入点信息子列表和上述当前定位信息发送到对上述目标应用提供支持的服务器,上述服务器对于所接收到的第一无线接入点信息子列表中的每个无线接入点信息,根据上述当前定位信息在预设的数据库中查询与该无线接入点信息对应的密码信息,以及响应于查到密码信息,生成包括该无线接入点信息和所查到的密码信息的带密码无线接入点信息。
在一些实施例中,上述在上述目标应用的界面中呈现上述无线接入点信息列表,包括:在上述目标应用的界面中呈现开放无线接入点信息列表、加密无线接入点信息列表和输入密码无线接入点信息列表,其中,上述开放无线接入点信息列表包括上述无线接入点信息列表中第一标识为否标识的各条无线接入点信息,上述加密无线接入点信息列表包括上述第一无线信息列表中在上述服务器中查到对应的密码信息的各条无线接入点信息;上述输入密码无线接入点信息列表包括上述第一无线信息列表中在上述服务器中未查到对应的密码信息的各条无线接入点信息。
在一些实施例中,上述连接上述选择操作所针对的无线接入点信息所指示的无线接入点,包括:响应于确定上述选择操作所针对的无线接入点信息的第一标识为是标识,响应于确定查到与上述选择操作所针对的无线接入点信息对应的密码信息,根据与上述选择操作所针对的无线接入点信息对应的密码信息,连接上述选择操作所针对的无线接入点信息所指示的无线接入点。
在一些实施例中,上述连接上述选择操作所针对的无线接入点信息所指示的无线接入点,还包括:响应于确定未查到与上述选择操作所针对的无线接入点信息对应的密码信息,在上述目标应用中呈现密码输入控件;响应于接收到上述用户在上述密码输入控件中输入的密码,根据上述用户输入的密码,连接上述选择操作所针对的无线接入点信息所指示的无线接入点。
在一些实施例中,上述连接上述选择操作所针对的无线接入点信息所指示的无线接入点,还包括:响应于确定上述选择操作所针对的无线接入点信息的第一标识为否标识,连接上述选择操作所针对的无线接入点信息所指示的无线接入点。
第二方面,本申请实施例提供了一种用于获取无线接入点信息的装置,该装置包括:第一获取单元,配置用于响应于检测到用户启动目标应用的操作,获取Wifi权限,其中,上述Wifi权限包括获取无线接入点信息列表的权限;第二获取单元,配置用于响应于检测到上述用户打开系统用于显示上述无线接入点信息列表的界面,获取上述无线接入点信息列表,上述无线接入点信息包括接入点标识;第一呈现单元,配置用于响应于检测到从系统用于显示上述无线接入点信息列表的界面切换到上述目标应用的界面,在上述目标应用的界面中呈现上述无线接入点信息列表。
在一些实施例中,上述装置还包括:连接单元,配置用于响应于接收到上述用户对上述目标应用的界面中所呈现的上述无线接入点信息列表中的无线接入点信息的选择操作,连接上述选择操作所针对的无线接入点信息所指示的无线接入点。
在一些实施例中,上述装置还包括:第二呈现单元,配置用于在上述目标应用中的界面中呈现用于指示上述用户打开上述无线接入点信息列表的提示信息。
在一些实施例中,上述无线接入点信息还包括用于指示无线接入点是否设置有密码的第一标识,第一标识为用于指示无线接入点设置有密码的是标识或者用于指示无线接入点未设置密码的否标识;以及上述装置还包括:生成单元,配置用于根据上述无线接入点信息列表 中第一标识为是标识的各条无线接入点信息生成第一无线接入点信息列表;发送单元,配置用于将上述第一无线接入点信息列表发送到对上述目标应用提供支持的服务器,上述服务器生成包括上述第一无线接入点信息列表中的无线接入点信息和所查到的密码信息的带密码无线接入点信息;接收单元,配置用于接收上述服务器发来的至少一条带密码无线接入点信息。
在一些实施例中,上述发送单元包括:划分模块,配置用于按照预设规则将上述第一无线接入点信息列表划分成至少一个第一无线接入点信息子列表;发送模块,配置用于每隔预设发送周期将上述至少一个第一无线接入点信息子列表中的每个第一无线接入点信息子列表发送到对上述目标应用提供支持的服务器,上述服务器对于所接收到的第一无线接入点信息子列表中的每个无线接入点信息,在预设的数据库中查询与该无线接入点信息对应的密码信息,以及响应于查到密码信息,生成包括该无线接入点信息和所查到的密码信息的带密码无线接入点信息。
在一些实施例中,上述发送单元还包括:获取模块,配置用于获取当前定位信息;以及上述发送模块进一步配置用于:每隔预设发送周期将上述至少一个第一无线接入点信息子列表中的每个第一无线接入点信息子列表和上述当前定位信息发送到对上述目标应用提供支持的服务器,上述服务器对于所接收到的第一无线接入点信息子列表中的每个无线接入点信息,根据上述当前定位信息在预设的数据库中查询与该无线接入点信息对应的密码信息,以及响应于查到密码信息,生成包括该无线接入点信息和所查到的密码信息的带密码无线接入点信息。
在一些实施例中,上述第一呈现单元进一步配置用于:在上述目标应用的界面中呈现开放无线接入点信息列表、加密无线接入点信息列表和输入密码无线接入点信息列表,其中,上述开放无线接入点信息列表包括上述无线接入点信息列表中第一标识为否标识的各条无线接入点信息,上述加密无线接入点信息列表包括上述第一无线信息列表中在上述服务器中查到对应的密码信息的各条无线接入点信息;上 述输入密码无线接入点信息列表包括上述第一无线信息列表中在上述服务器中未查到对应的密码信息的各条无线接入点信息。
在一些实施例中,上述连接单元包括:第一连接模块,配置用于响应于确定上述选择操作所针对的无线接入点信息的第一标识为是标识,响应于确定查到与上述选择操作所针对的无线接入点信息对应的密码信息,根据与上述选择操作所针对的无线接入点信息对应的密码信息,连接上述选择操作所针对的无线接入点信息所指示的无线接入点。
在一些实施例中,上述连接单元还包括:呈现模块,配置用于响应于确定未查到与上述选择操作所针对的无线接入点信息对应的密码信息,在上述目标应用中呈现密码输入控件;第二连接模块,配置用于响应于接收到上述用户在上述密码输入控件中输入的密码,根据上述用户输入的密码,连接上述选择操作所针对的无线接入点信息所指示的无线接入点。
在一些实施例中,上述连接单元还包括:第三连接模块,配置用于响应于确定上述选择操作所针对的无线接入点信息的第一标识为否标识,连接上述选择操作所针对的无线接入点信息所指示的无线接入点。
第三方面,本申请实施例提供了一种终端设备,该终端设备包括:一个或多个处理器;存储装置,用于存储一个或多个程序,当上述一个或多个程序被上述一个或多个处理器执行时,使得上述一个或多个处理器实现如第一方面中任一实现方式描述的方法。
第四方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该计算机程序被处理器执行时实现如第一方面中任一实现方式描述的方法。
本申请实施例提供的用于获取无线接入点信息的方法和装置,通过在检测到用户启动目标应用的操作时,获取Wifi权限,然后在检测到用户打开系统用于显示无线接入点信息列表的界面时,获取无线接入点信息列表,再在检测到从系统用于显示无线接入点信息列表的界面切换到目标应用的界面时,在目标应用的界面中呈现无线接入点信 息列表,从而实现了在终端设备的目标应用的界面中显示无线接入点信息列表。
附图说明
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:
图1是本申请可以应用于其中的示例性系统架构图;
图2是根据本申请的用于获取无线接入点信息的方法的一个实施例的流程图;
图3是根据本申请的用于获取无线接入点信息的方法的一个应用场景的示意图;
图4A是根据本申请的用于获取无线接入点信息的方法的又一个实施例的流程图;
图4B是根据本申请的图4A所示的流程图中步骤407的分解流程图;
图5是根据本申请的用于获取无线接入点信息的装置的一个实施例的结构示意图;
图6是适于用来实现本申请实施例的终端设备的计算机系统的结构示意图。
具体实施方式
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。
图1示出了可以应用本申请的用于获取无线接入点信息的方法或用于获取无线接入点信息的装置的实施例的示例性系统架构100。
如图1所示,系统架构100可以包括终端设备101、102、103,网络104和服务器105。网络104用以在终端设备101、102、103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。
用户可以使用终端设备101、102、103通过网络104与服务器105交互,以接收或发送消息等。终端设备101、102、103上可以安装有各种客户端应用,例如无线接入点信息获取类应用、无线接入点连接类应用、网页浏览器应用、购物类应用、搜索类应用、即时通信工具、邮箱客户端、社交平台软件等。
终端设备101、102、103可以是具有显示屏并且支持连接无线接入点的各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机和台式计算机等等。作为示例,终端设备101、102、103可以是具有显示屏、支持连接无线接入点并且所安装的操作系统为iOS的各种移动终端设备。
服务器105可以是提供各种服务的服务器,例如对终端设备101、102、103上显示的无线接入点连接类应用提供支持的后台服务器。后台服务器可以对接收到的无线接入点密码信息查询请求等数据进行分析等处理,并将处理结果(例如无线接入点信息对应的密码信息)反馈给终端设备。
需要说明的是,本申请实施例所提供的用于获取无线接入点信息的方法一般由终端设备101、102、103执行,相应地,用于获取无线接入点信息的装置一般设置于终端设备101、102、103中。一些情况下,本申请实施例所提供的用于获取无线接入点信息的方法也可以不需要网络104和服务器105,而只由终端设备101、102、103执行即可。本申请对此不做限定。
应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。
继续参考图2,其示出了根据本申请的用于获取无线接入点信息的方法的一个实施例的流程200。该用于获取无线接入点信息的方法,包括以下步骤:
步骤201,响应于检测到用户启动目标应用的操作,获取Wifi权限。
在本实施例中,用于获取无线接入点信息的方法运行于其上的电子设备(例如图1所示的终端设备)可以在检测到用户启动目标应用的操作时,向上述电子设备的操作系统获取Wifi权限。其中,上述Wifi权限可以包括获取无线接入点信息列表的权限。
可选地,上述Wifi权限还可以包括连接无线接入点的权限。
在本实施例的一些可选的实现方式中,目标应用可以是安装在上述电子设备中的用于获取无线接入点信息的方法的应用。
在本实施例的一些可选的实现方式中,目标应用除了可以实现用于获取无线接入点信息的方法,目标应用还可以实现其他操作,例如:连接无线接入点、信息推送、新闻推送、即时通讯等等。
作为示例,上述电子设备的操作系统可以为iOS,这样,可以通过如下方法获取Wifi权限:
<<NEHotspotHelper>>
registerWithOptions:queue:handler():bool
在本实施例的一些可选的实现方式中,上述电子设备可以在步骤201之后,步骤202之前执行以下操作:在目标应用中的界面中呈现用于指示用户打开无线接入点信息列表的提示信息。这样,有助于用户尽快打开系统用于显示无线接入点信息列表的界面,从而可以提高连接无线接入点的效率。
步骤202,响应于检测到用户打开系统用于显示无线接入点信息列表的界面,获取无线接入点信息列表。
在本实施例中,上述电子设备可以在目标应用启动后,检测用户是否打开了上述电子设备的系统用于显示无线接入点信息列表的界面,如果检测到用户打开了上述电子设备的系统用于显示无线接入点信息列表的界面,则可以获取上述无线接入点信息列表。其中,上述无线接入点信息列表是由上述电子设备的操作系统提供的包括至少一条无线接入点信息的列表,这里,无线接入点信息可以包括接入点标识,例如,接入点标识可以是SSID(Service Set Identifier,服务集标 识)和/或BSSID(Basic Service Set Identifier,基础服务集标识)。
可选地,无线接入点信息还可以包括信号强度。
由于步骤201中已经从操作系统获取了Wifi权限,这里就可以在检测到无线接入点信息列表被打开后,获取上述无线接入点信息列表。
作为示例,上述电子设备的操作系统可以为iOS,这样,可以通过如下方法获取无线接入点信息列表:
<<NEHotspotHelperCommand>>
kNeHotspotHelperCommandTypeFilterScanList()
步骤203,响应于检测到从系统用于显示无线接入点信息列表的界面切换到目标应用的界面,在目标应用的界面中呈现无线接入点信息列表。
在本实施例中,由于步骤202中用户打开了系统用于显示无线接入点信息列表的界面,因此,在步骤202中上述电子设备的当前显示界面不是目标应用的界面,为了执行后续的操作需要用户从系统用于显示无线接入点信息列表的界面切换到目标应用的界面。如果检测到上述电子设备的当前显示界面从系统用于显示无线接入点信息列表的界面切换到目标应用的界面,则可以在目标应用的界面中呈现步骤202中所获取的无线接入点信息列表。从而实现在目标应用的界面中而不是在操作系统所提供的用于显示无线接入点信息列表的界面中显示无线接入点信息列表。
作为示例,为了使得用户从系统用于显示无线接入点信息列表的界面切换到目标应用的界面,可以在步骤202中用户打开系统用于显示无线接入点信息列表的界面之前弹出用于提示用户在打开系统用于显示无线接入点信息列表的界面之后返回目标应用的界面的提示信息,这样,会给用户以提示,提高用户返回目标应用界面的效率。或者,也可以弹出一个通知消息,用户点击这个通知消息就可以从系统用于显示无线接入点信息列表的界面切换到目标应用的界面。
在本实施例中,上述电子设备可以采用各种组合方式在目标应用的界面中个性化的显示无线接入点信息列表。作为示例,上述电子设备可以根据无线接入点信息列表中无线接入点信息的信号强度的大小 进行排序,并根据排序结果进行显示,比如将信号强度大的无线接入点信息显示在前面,将信号强度小的无线接入点信息显示在后面。作为示例,无线接入点信息还可以包括用于表征无线接入点是否设置有密码的信息,这样上述电子设备可以将设置有密码的无线接入点的无线接入点信息作为一个类别显示,将未设置有密码的无线接入点的无线接入点信息作为另一个类别显示。
在本实施例的一些可选的实现方式中,上述电子设备还可以在步骤203之后,执行以下步骤204:
步骤204,响应于接收到用户对目标应用的界面中所呈现的无线接入点信息列表中的无线接入点信息的选择操作,连接选择操作所针对的无线接入点信息所指示的无线接入点。
在本实施例中,由于步骤203中已经在目标应用的界面中呈现无线接入点信息列表,这样,用户可以在其中选择要连接的无线接入点的无线接入点信息。上述电子设备可以在接收到用户对目标应用的界面中所呈现的无线接入点信息列表中的无线接入点信息的选择操作后,连接上述用户的选择操作所针对的无线接入点信息所指示的无线接入点。由于步骤201中已经向操作系统获取了Wifi权限,这样,上述电子设备可以在目标应用中连接用户的选择操作所针对的无线接入点信息所指示的无线接入点。
继续参见图3,图3是根据本实施例的用于获取无线接入点信息的方法的应用场景的一个示意图。在图3的应用场景中,用户首先在终端设备上启动目标应用,然后在步骤301中,终端设备检测到用户启动目标应用的操作,于是获取Wifi权限。接着,用户在终端设备上打开系统用于显示无线接入点信息列表的界面,然后在步骤302中,终端设备检测到用户打开系统用于显示无线接入点信息列表的界面,于是获取无线接入点信息列表。而后,用户在终端设备上从系统用于显示无线接入点信息列表的界面切换到目标应用的界面,接着在步骤303中,终端设备检测到从系统用于显示无线接入点信息列表的界面切换到目标应用的界面,于是在目标应用的界面中呈现无线接入点信 息列表。最后,用户在终端设备的目标应用的界面中所呈现的无线接入点信息列表中选择想要连接的无线接入点信息,接着在步骤304中,终端设备接收到用户对目标应用的界面中所呈现的无线接入点信息列表中的无线接入点信息的选择操作,于是连接选择操作所针对的无线接入点信息所指示的无线接入点。
本申请的上述实施例提供的方法通过在检测到用户启动目标应用的操作时,获取Wifi权限,然后在检测到用户打开系统用于显示无线接入点信息列表的界面时,获取无线接入点信息列表,再在检测到从系统用于显示无线接入点信息列表的界面切换到目标应用的界面时,在目标应用的界面中呈现无线接入点信息列表,从而实现了在终端设备的目标应用的界面中显示无线接入点信息列表。
进一步参考图4A,其示出了用于获取无线接入点信息的方法的又一个实施例的流程400。该用于获取无线接入点信息的方法的流程400,包括以下步骤:
步骤401,响应于检测到用户启动目标应用的操作,获取Wifi权限。
步骤402,响应于检测到用户打开系统用于显示无线接入点信息列表的界面,获取无线接入点信息列表。
在本实施例中,步骤401和步骤402的具体操作分别与图2所示的实施例中步骤201和步骤202的操作基本相同,在此不再赘述。
在本实施例中,无线接入点信息还可以包括用于指示无线接入点是否设置有密码的第一标识,这里第一标识可以为用于指示无线接入点设置有密码的是标识或者用于指示无线接入点未设置密码的否标识。
步骤403,根据无线接入点信息列表中第一标识为是标识的各条无线接入点信息生成第一无线接入点信息列表。
在本实施例中,上述电子设备可以在获取到无线接入点信息列表后,由无线接入点信息列表中第一标识为是标识的各条无线接入点信息组成第一无线接入点信息列表,也就是说,所生成的第一无线接入 点信息列表中的每条无线接入点信息所指示的无线接入点均设置有密码,为了连接第一无线接入点信息列表中的任一条无线接入点信息所指示的无线接入点,均需要获取到相应的密码才能连接。
步骤404,将第一无线接入点信息列表发送到对目标应用提供支持的服务器。
在本实施例中,上述电子设备可以在生成第一无线接入点信息列表后,将第一无线接入点信息列表发送到对目标应用提供支持的服务器,上述服务器可以对于所接收到的第一无线接入点信息列表中的每个无线接入点信息,在预设的数据库中查询与该无线接入点信息对应的密码信息,如果查到对应的密码信息,就生成包括该无线接入点信息和所查到的密码信息的带密码无线接入点信息,如果未查到对应的密码信息,则不会生成带密码无线接入点信息。在服务器对第一无线接入点信息列表中的每个无线接入点信息均执行完查询操作后,会生成至少一条带密码无线接入点信息,并将所生成的至少一条带密码无线接入点信息返回给上述电子设备。
这里,上述预设的数据库中对应存储有无线接入点信息和密码信息,其中,密码信息可以包括密码和加密方式。作为示例,加密方式可以是WPA(Wi-Fi Protected Access,Wi-Fi网络安全接入)、WEP(Wired Equivalent Privacy,有线等效保密)等等。
在本实施例的一些可选的实现方式中,步骤404也可以如下进行:
首先,按照预设规则将第一无线接入点信息列表划分成至少一个第一无线接入点信息子列表。
作为示例,预设规则可以是:将第一无线接入点信息列表划分成至少一个第一无线接入点信息子列表,其中,每个第一无线接入点信息子列表中的无线接入点信息的个数小于等于第一预设数目。
作为示例,预设规则也可以是:将第一无线接入点信息列表划分成第二预设数目个第一无线接入点信息子列表,其中,各个第一无线接入点信息子列表中任两个第一无线接入点信息子列表中无线接入点信息的数量之差小于第三预设数目。
然后,每隔预设发送周期将上述至少一个第一无线接入点信息子 列表中的每个第一无线接入点信息子列表发送到对上述目标应用提供支持的服务器。
这样,上述服务器可以对于所接收到的第一无线接入点信息子列表中的每个无线接入点信息,在预设的数据库中查询与该无线接入点信息对应的密码信息,以及响应于查到密码信息,生成包括该无线接入点信息和所查到的密码信息的带密码无线接入点信息。
在本实施例的一些可选的实现方式中,上述电子设备还可以在按照预设规则将上述第一无线接入点信息列表划分成至少一个第一无线接入点信息子列表之后,获取当前定位信息。这里,上述电子设备可以获取上述电子设备的当前定位信息,例如可以通过打开定位功能来获取当前定位信息。这样,每隔预设发送周期将至少一个第一无线接入点信息子列表中的每个第一无线接入点信息子列表发送到上述服务器,也可以如下进行:每隔预设发送周期将至少一个第一无线接入点信息子列表中的每个第一无线接入点信息子列表和当前定位信息发送到对上述服务器。这样,上述服务器可以对于所接收到的第一无线接入点信息子列表中的每个无线接入点信息,根据当前定位信息在预设的数据库中查询与该无线接入点信息对应的密码信息,以及响应于查到密码信息,生成包括该无线接入点信息和所查到的密码信息的带密码无线接入点信息。
通过上述对第一无线接入点信息列表进行划分以及分别发送的操作,可以减少每次与服务器的数据发送量,从而加快发送速度,继而提高用户体验。
步骤405,接收服务器发来的至少一条带密码无线接入点信息。
步骤406,响应于检测到从系统用于显示无线接入点信息列表的界面切换到目标应用的界面,在目标应用的界面中呈现无线接入点信息列表。
在本实施例中,步骤406的具体操作可以与图2所示的实施例中步骤203的操作基本相同,在此不再赘述。
在本实施例的一些可选的实现方式中,步骤406也可以如下进行:
响应于检测到从系统用于显示无线接入点信息列表的界面切换到 目标应用的界面,在目标应用的界面中呈现开放无线接入点信息列表、加密无线接入点信息列表和输入密码无线接入点信息列表。
这里,开放无线接入点信息列表可以包括无线接入点信息列表中第一标识为否标识的各条无线接入点信息。也就是说,开放无线接入点信息列表中的每个无线接入点信息所指示的无线接入点未设置有密码,上述电子设备在连接开放无线接入点信息列表中的任一个无线接入点信息所指示的无线接入点时,不需输入密码即可直接连接。
这里,加密无线接入点信息列表可以包括第一无线信息列表中在服务器中查到对应的密码信息的各条无线接入点信息。也就是说,加密无线接入点信息列表中的无线接入点信息与上述电子设备接收到的至少一条带密码无线接入点信息中的无线接入点信息一一对应且相同。对于加密无线接入点信息列表中的每个无线接入点信息,可以将至少一条带密码无线接入点信息中无线接入点信息与该无线接入点信息相同的带密码无线接入点信息的密码信息,确定为该无线接入点信息所指示的无线接入点的密码。
这里,输入密码无线接入点信息列表包括第一无线信息列表中在服务器中未查到对应的密码信息的各条无线接入点信息。也就是说,对于输入密码无线接入点信息列表中的每个无线接入点信息,该无线接入点信息所指示的无线接入点设置有密码,但是服务器并未查找到与该无线接入点信息对应的密码信息,从而在从服务器所接收到的至少一条带密码无线接入点信息中没有与无线接入点信息对应的带密码无线接入点信息。
通过将无线接入点信息列表分成上述三个类别,并按照上述三个类别在目标应用的界面中呈现上述三个类别,可以实现个性化的呈现无线接入点信息,让用户更方便选择无线接入点信息。
步骤407,响应于接收到用户对目标应用的界面中所呈现的无线接入点信息列表中的无线接入点信息的选择操作,连接选择操作所针对的无线接入点信息所指示的无线接入点。
在本实施例中,上述电子设备可以在接收到用户对目标应用的界面中所呈现的无线接入点信息列表中的无线接入点信息的选择操作, 连接选择操作所针对的无线接入点信息所指示的无线接入点。具体地,请参考图4B,图4B示出了步骤407的子步骤4071、子步骤4072、子步骤4072’、子步骤4073、子步骤4073’和子步骤4074’。
子步骤4071,确定选择操作所针对的无线接入点信息的第一标识是否为是标识。如果为是标识,转到子步骤4072,如果为否标识,转到子步骤4072’。
如果确定选择操作所针对的无线接入点信息的第一标识为是标识,表明选择操作所针对的无线接入点信息所指示的无线接入点设置有密码,则转到子步骤4072。
如果确定选择操作所针对的无线接入点信息的第一标识为否标识,表明选择操作所针对的无线接入点信息所指示的无线接入点未设置有密码,则转到子步骤4072’。
子步骤4072’,连接选择操作所针对的无线接入点信息所指示的无线接入点。
如果在子步骤4071中确定选择操作所针对的无线接入点信息的第一标识为否标识,表明选择操作所针对的无线接入点信息所指示的无线接入点未设置有密码,则可以直接连接选择操作所针对的无线接入点信息所指示的无线接入点。
子步骤4072,确定是否查到与选择操作所针对的无线接入点信息对应的密码信息,如果确定查到,转到子步骤4073,如果确定未查到,则转到子步骤4073’。
如果子步骤4071中确定选择操作所针对的无线接入点信息的第一标识为是标识,表明选择操作所针对的无线接入点信息所指示的无线接入点设置有密码,则可以确定是否查到与选择操作所针对的无线接入点信息对应的密码信息。
如果确定查到与选择操作所针对的无线接入点信息对应的密码信息,则转到子步骤4073。
如果确定未查到与选择操作所针对的无线接入点信息对应的密码信息,则转到子步骤4073’。
这里,可以在从服务器接收到的至少一条带密码无线接入点信息 中存在无线接入点信息与选择操作所针对的无线接入点信息相同的带密码无线接入点信息的情况下,确定查到与选择操作所针对的无线接入点信息对应的密码信息,反之,确定未查到与选择操作所针对的无线接入点信息对应的密码信息。
子步骤4073,根据与选择操作所针对的无线接入点信息对应的密码信息,连接选择操作所针对的无线接入点信息所指示的无线接入点。
如果子步骤4072中确定查到与选择操作所针对的无线接入点信息对应的密码信息,则可以根据与选择操作所针对的无线接入点信息对应的密码信息,连接选择操作所针对的无线接入点信息所指示的无线接入点。
这里,可以将至少一条带密码无线接入点信息中无线接入点信息与选择操作所针对的无线接入点信息相同的带密码无线接入点信息的密码信息,确定为与选择操作所针对的无线接入点信息对应的密码信息。
子步骤4073’,在目标应用中呈现密码输入控件。
如果子步骤4072中确定未查到与选择操作所针对的无线接入点信息对应的密码信息,则可以在目标应用中呈现密码输入控件,用户在其中输入密码。
子步骤4074’,响应于接收到用户在密码输入控件中输入的密码,根据用户输入的密码,连接选择操作所针对的无线接入点信息所指示的无线接入点。
这里,如果接收到用户在密码输入控件中输入的密码,则可以根据用户输入的密码,连接选择操作所针对的无线接入点信息所指示的无线接入点。
从图4中可以看出,与图2对应的实施例相比,本实施例中的用于获取无线接入点信息的方法的流程400多出了从服务器中查询无线接入点的密码的步骤,以及按照是否设置有密码以及是否查询到密码进行连接无线接入点的步骤。由此,本实施例描述的方案可以实现更全面地连接无线接入点。
进一步参考图5,作为对上述各图所示方法的实现,本申请提供了一种用于获取无线接入点信息的装置的一个实施例,该装置实施例与图2所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。
如图5所示,本实施例的用于获取无线接入点信息的装置500包括:第一获取单元501、第二获取单元502和第一呈现单元503。其中,第一获取单元501,配置用于响应于检测到用户启动目标应用的操作,获取Wifi权限,其中,上述Wifi权限包括获取无线接入点信息列表的权限;第二获取单元502,配置用于响应于检测到上述用户打开系统用于显示上述无线接入点信息列表的界面,获取上述无线接入点信息列表,上述无线接入点信息包括接入点标识;第一呈现单元503,配置用于响应于检测到从系统用于显示上述无线接入点信息列表的界面切换到上述目标应用的界面,在上述目标应用的界面中呈现上述无线接入点信息列表。
在本实施例中,用于获取无线接入点信息的装置500的第一获取单元501、第二获取单元502和第一呈现单元503的具体处理及其所带来的技术效果可分别参考图2对应实施例中步骤201、步骤202和步骤203的相关说明,在此不再赘述。
在本实施例的一些可选的实现方式中,上述装置500还可以包括:连接单元504,配置用于响应于接收到上述用户对上述目标应用的界面中所呈现的上述无线接入点信息列表中的无线接入点信息的选择操作,连接上述选择操作所针对的无线接入点信息所指示的无线接入点。
在本实施例的一些可选的实现方式中,上述装置500还可以包括:第二呈现单元505,配置用于在上述目标应用中的界面中呈现用于指示上述用户打开上述无线接入点信息列表的提示信息。
在本实施例的一些可选的实现方式中,上述无线接入点信息还包括用于指示无线接入点是否设置有密码的第一标识,第一标识为用于指示无线接入点设置有密码的是标识或者用于指示无线接入点未设置密码的否标识;以及上述装置500还可以包括:生成单元506,配置用于根据上述无线接入点信息列表中第一标识为是标识的各条无线接 入点信息生成第一无线接入点信息列表;发送单元507,配置用于将上述第一无线接入点信息列表发送到对上述目标应用提供支持的服务器,上述服务器生成包括上述第一无线接入点信息列表中的无线接入点信息和所查到的密码信息的带密码无线接入点信息;接收单元508,配置用于接收上述服务器发来的至少一条带密码无线接入点信息。
在本实施例的一些可选的实现方式中,上述发送单元507可以包括:划分模块5071,配置用于按照预设规则将上述第一无线接入点信息列表划分成至少一个第一无线接入点信息子列表;发送模块5072,配置用于每隔预设发送周期将上述至少一个第一无线接入点信息子列表中的每个第一无线接入点信息子列表发送到对上述目标应用提供支持的服务器,上述服务器对于所接收到的第一无线接入点信息子列表中的每个无线接入点信息,在预设的数据库中查询与该无线接入点信息对应的密码信息,以及响应于查到密码信息,生成包括该无线接入点信息和所查到的密码信息的带密码无线接入点信息。
在本实施例的一些可选的实现方式中,上述发送单元507还可以包括:获取模块5073,配置用于获取当前定位信息;以及上述发送模块5072可以进一步配置用于:每隔预设发送周期将上述至少一个第一无线接入点信息子列表中的每个第一无线接入点信息子列表和上述当前定位信息发送到对上述目标应用提供支持的服务器,上述服务器对于所接收到的第一无线接入点信息子列表中的每个无线接入点信息,根据上述当前定位信息在预设的数据库中查询与该无线接入点信息对应的密码信息,以及响应于查到密码信息,生成包括该无线接入点信息和所查到的密码信息的带密码无线接入点信息。
在本实施例的一些可选的实现方式中,上述第一呈现单元503可以进一步配置用于:在上述目标应用的界面中呈现开放无线接入点信息列表、加密无线接入点信息列表和输入密码无线接入点信息列表,其中,上述开放无线接入点信息列表包括上述无线接入点信息列表中第一标识为否标识的各条无线接入点信息,上述加密无线接入点信息列表包括上述第一无线信息列表中在上述服务器中查到对应的密码信息的各条无线接入点信息;上述输入密码无线接入点信息列表包括上 述第一无线信息列表中在上述服务器中未查到对应的密码信息的各条无线接入点信息。
在本实施例的一些可选的实现方式中,上述连接单元504可以包括:第一连接模块5041,配置用于响应于确定上述选择操作所针对的无线接入点信息的第一标识为是标识,响应于确定查到与上述选择操作所针对的无线接入点信息对应的密码信息,根据与上述选择操作所针对的无线接入点信息对应的密码信息,连接上述选择操作所针对的无线接入点信息所指示的无线接入点。
在本实施例的一些可选的实现方式中,上述连接单元504还可以包括:呈现模块5042,配置用于响应于确定未查到与上述选择操作所针对的无线接入点信息对应的密码信息,在上述目标应用中呈现密码输入控件;第二连接模块5043,配置用于响应于接收到上述用户在上述密码输入控件中输入的密码,根据上述用户输入的密码,连接上述选择操作所针对的无线接入点信息所指示的无线接入点。
在本实施例的一些可选的实现方式中,上述连接单元504还可以包括:第三连接模块5044,配置用于响应于确定上述选择操作所针对的无线接入点信息的第一标识为否标识,连接上述选择操作所针对的无线接入点信息所指示的无线接入点。
需要说明的是,本申请实施例提供的用于获取无线接入点信息的装置中各单元的实现细节和技术效果可以参考本申请中其它实施例的说明,在此不再赘述。
下面参考图6,其示出了适于用来实现本申请实施例的终端设备的计算机系统600的结构示意图。图6示出的终端设备仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。
如图6所示,计算机系统600包括中央处理单元(CPU,Central Processing Unit)601,其可以根据存储在只读存储器(ROM,Read Only Memory)602中的程序或者从存储部分608加载到随机访问存储器(RAM,Random Access Memory)603中的程序而执行各种适当的动作和处理。在RAM 603中,还存储有系统600操作所需的各种程序和 数据。CPU 601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O,Input/Output)接口605也连接至总线604。
以下部件连接至I/O接口605:包括触控屏、手写笔等的输入部分606;包括诸如阴极射线管(CRT,Cathode Ray Tube)、液晶显示器(LCD,Liquid Crystal Display)、触控屏等以及扬声器等的输出部分607;包括硬盘等的存储部分608;以及包括诸如LAN(局域网,Local Area Network)卡、调制解调器等的网络接口卡的通信部分609。通信部分609经由诸如因特网的网络执行通信处理。驱动器610也根据需要连接至I/O接口605。可拆卸介质611,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器610上,以便于从其上读出的计算机程序根据需要被安装入存储部分608。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分609从网络上被下载和安装,和/或从可拆卸介质611被安装。在该计算机程序被中央处理单元(CPU)601执行时,执行本申请的方法中限定的上述功能。需要说明的是,本申请所述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的 程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。
附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本申请实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括第一获取单元、第二获取单元和第一呈现单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,第二获取单元还可以被描述为“获取无线接入点信息列表的单元”。
作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的装置中所包含的;也可以是单独存在,而未装配入该装置中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该装置执行时,使得该装置:响应于检测到用户启动目标应用的操作,获取Wifi权限,其中,上述Wifi权限包括获取无线接入点信息列表的权限;响应于检测到上述用 户打开系统用于显示上述无线接入点信息列表的界面,获取上述无线接入点信息列表,上述无线接入点信息包括接入点标识;响应于检测到从系统用于显示上述无线接入点信息列表的界面切换到上述目标应用的界面,在上述目标应用的界面中呈现上述无线接入点信息列表。
以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。

Claims (12)

  1. 一种用于获取无线接入点信息的方法,其特征在于,所述方法包括:
    响应于检测到用户启动目标应用的操作,获取Wifi权限,其中,所述Wifi权限包括获取无线接入点信息列表的权限;
    响应于检测到所述用户打开系统用于显示所述无线接入点信息列表的界面,获取所述无线接入点信息列表,所述无线接入点信息包括接入点标识;
    响应于检测到从系统用于显示所述无线接入点信息列表的界面切换到所述目标应用的界面,在所述目标应用的界面中呈现所述无线接入点信息列表。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    响应于接收到所述用户对所述目标应用的界面中所呈现的所述无线接入点信息列表中的无线接入点信息的选择操作,连接所述选择操作所针对的无线接入点信息所指示的无线接入点。
  3. 根据权利要求2所述的方法,其特征在于,所述获取Wifi权限之后,所述方法还包括:
    在所述目标应用中的界面中呈现用于指示所述用户打开所述无线接入点信息列表的提示信息。
  4. 根据权利要求3所述的方法,其特征在于,所述无线接入点信息还包括用于指示无线接入点是否设置有密码的第一标识,第一标识为用于指示无线接入点设置有密码的是标识或者用于指示无线接入点未设置密码的否标识;以及
    所述获取所述无线接入点信息列表之后,所述方法还包括:
    根据所述无线接入点信息列表中第一标识为是标识的各条无线接入点信息生成第一无线接入点信息列表;
    将所述第一无线接入点信息列表发送到对所述目标应用提供支持的服务器,所述服务器生成包括所述第一无线接入点信息列表中的无线接入点信息和所查到的密码信息的带密码无线接入点信息;
    接收所述服务器发来的至少一条带密码无线接入点信息。
  5. 根据权利要求4所述的方法,其特征在于,所述将所述第一无线接入点信息列表发送到对所述目标应用提供支持的服务器,所述服务器生成包括所述第一无线接入点信息列表中的无线接入点信息和所查到的密码信息的带密码无线接入点信息,包括:
    按照预设规则将所述第一无线接入点信息列表划分成至少一个第一无线接入点信息子列表;
    每隔预设发送周期将所述至少一个第一无线接入点信息子列表中的每个第一无线接入点信息子列表发送到对所述目标应用提供支持的服务器,所述服务器对于所接收到的第一无线接入点信息子列表中的每个无线接入点信息,在预设的数据库中查询与该无线接入点信息对应的密码信息,以及响应于查到密码信息,生成包括该无线接入点信息和所查到的密码信息的带密码无线接入点信息。
  6. 根据权利要求5所述的方法,其特征在于,所述按照预设规则将所述第一无线接入点信息列表划分成至少一个第一无线接入点信息子列表之后,所述方法还包括:
    获取当前定位信息;以及
    所述每隔预设发送周期将所述至少一个第一无线接入点信息子列表中的每个第一无线接入点信息子列表发送到对所述目标应用提供支持的服务器,所述服务器对于所接收到的第一无线接入点信息子列表中的每个无线接入点信息,在预设的数据库中查询与该无线接入点信息对应的密码信息,以及响应于查到密码信息,生成包括该无线接入点信息和所查到的密码信息的带密码无线接入点信息,包括:
    每隔预设发送周期将所述至少一个第一无线接入点信息子列表中的每个第一无线接入点信息子列表和所述当前定位信息发送到对所述 目标应用提供支持的服务器,所述服务器对于所接收到的第一无线接入点信息子列表中的每个无线接入点信息,根据所述当前定位信息在预设的数据库中查询与该无线接入点信息对应的密码信息,以及响应于查到密码信息,生成包括该无线接入点信息和所查到的密码信息的带密码无线接入点信息。
  7. 根据权利要求6所述的方法,其特征在于,所述在所述目标应用的界面中呈现所述无线接入点信息列表,包括:
    在所述目标应用的界面中呈现开放无线接入点信息列表、加密无线接入点信息列表和输入密码无线接入点信息列表,其中,所述开放无线接入点信息列表包括所述无线接入点信息列表中第一标识为否标识的各条无线接入点信息,所述加密无线接入点信息列表包括所述第一无线信息列表中在所述服务器中查到对应的密码信息的各条无线接入点信息;所述输入密码无线接入点信息列表包括所述第一无线信息列表中在所述服务器中未查到对应的密码信息的各条无线接入点信息。
  8. 根据权利要求7所述的方法,其特征在于,所述连接所述选择操作所针对的无线接入点信息所指示的无线接入点,包括:
    响应于确定所述选择操作所针对的无线接入点信息的第一标识为是标识,响应于确定查到与所述选择操作所针对的无线接入点信息对应的密码信息,根据与所述选择操作所针对的无线接入点信息对应的密码信息,连接所述选择操作所针对的无线接入点信息所指示的无线接入点。
  9. 根据权利要求8所述的方法,其特征在于,所述连接所述选择操作所针对的无线接入点信息所指示的无线接入点,还包括:
    响应于确定未查到与所述选择操作所针对的无线接入点信息对应的密码信息,在所述目标应用中呈现密码输入控件;
    响应于接收到所述用户在所述密码输入控件中输入的密码,根据 所述用户输入的密码,连接所述选择操作所针对的无线接入点信息所指示的无线接入点。
  10. 根据权利要求9所述的方法,其特征在于,所述连接所述选择操作所针对的无线接入点信息所指示的无线接入点,还包括:
    响应于确定所述选择操作所针对的无线接入点信息的第一标识为否标识,连接所述选择操作所针对的无线接入点信息所指示的无线接入点。
  11. 一种终端设备,包括:
    一个或多个处理器;
    存储装置,用于存储一个或多个程序,
    当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如权利要求1-10中任一所述的方法。
  12. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-10中任一所述的方法。
PCT/CN2018/090059 2017-07-28 2018-06-06 用于获取无线接入点信息的方法和装置 WO2019019811A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US16/749,962 US11012926B2 (en) 2017-07-28 2020-01-22 Methods and apparatus for acquiring wireless access points information

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710631214.2A CN107241727A (zh) 2017-07-28 2017-07-28 用于获取无线接入点信息的方法和装置
CN201710631214.2 2017-07-28

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/749,962 Continuation US11012926B2 (en) 2017-07-28 2020-01-22 Methods and apparatus for acquiring wireless access points information

Publications (1)

Publication Number Publication Date
WO2019019811A1 true WO2019019811A1 (zh) 2019-01-31

Family

ID=59988847

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/090059 WO2019019811A1 (zh) 2017-07-28 2018-06-06 用于获取无线接入点信息的方法和装置

Country Status (3)

Country Link
US (1) US11012926B2 (zh)
CN (2) CN107241727A (zh)
WO (1) WO2019019811A1 (zh)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10313351B2 (en) * 2016-02-22 2019-06-04 At&T Intellectual Property I, L.P. Dynamic passcodes in association with a wireless access point
CN108076464B (zh) * 2017-12-13 2021-03-19 上海连尚网络科技有限公司 一种在终端的WiFi热点连接引导方法、设备以及介质
CN108093461B (zh) * 2017-12-14 2020-07-28 上海连尚网络科技有限公司 一种连接无线接入点的方法
CN108811036B (zh) * 2018-05-24 2020-07-31 上海连尚网络科技有限公司 用于显示无线接入点信息的方法和装置
CN110708657A (zh) * 2018-06-25 2020-01-17 百度在线网络技术(北京)有限公司 用于移动终端的无线接入点连接方法和装置
CN108898383A (zh) * 2018-07-03 2018-11-27 深圳市必发达科技有限公司 一种基于Wi-Fi无线接入点的付款方法
CN108834202B (zh) * 2018-09-05 2021-03-02 上海连尚网络科技有限公司 信息展示方法和设备
CN109450993B (zh) * 2018-10-24 2021-11-02 上海尚往网络科技有限公司 用于呈现信息的方法和设备
CN110062323A (zh) * 2018-12-31 2019-07-26 王伟涛 识别信息发送设备、用户端、服务器、定位方法及其系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8583777B1 (en) * 2013-08-13 2013-11-12 Joingo, Llc Method and system for providing real-time end-user WiFi quality data
CN105682015A (zh) * 2016-04-05 2016-06-15 上海连尚网络科技有限公司 一种用于建立无线连接的方法与设备
CN105873239A (zh) * 2015-12-14 2016-08-17 上海连尚网络科技有限公司 用于为用户设备的应用建立无线连接的方法
CN106686527A (zh) * 2016-12-20 2017-05-17 腾讯科技(深圳)有限公司 一种wifi信息识别方法及终端
CN106973425A (zh) * 2017-04-06 2017-07-21 上海掌门科技有限公司 一种连接无线接入点的方法与设备

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI399942B (zh) * 2008-02-20 2013-06-21 Ind Tech Res Inst 無線網路連線管理系統與其方法
US9241239B2 (en) * 2012-05-03 2016-01-19 Time Warner Cable Enterprises Llc Establishing network connectivity based on location
CN104378758B (zh) * 2014-05-12 2016-08-17 腾讯科技(深圳)有限公司 接入点连接方法、终端及服务器
CN105246075B (zh) * 2014-07-09 2017-09-12 腾讯科技(深圳)有限公司 接入点连接方法及装置
CN108124297B (zh) * 2015-08-05 2021-09-28 上海尚往网络科技有限公司 用于提供无线接入点的接入点信息的方法与设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8583777B1 (en) * 2013-08-13 2013-11-12 Joingo, Llc Method and system for providing real-time end-user WiFi quality data
CN105873239A (zh) * 2015-12-14 2016-08-17 上海连尚网络科技有限公司 用于为用户设备的应用建立无线连接的方法
CN105682015A (zh) * 2016-04-05 2016-06-15 上海连尚网络科技有限公司 一种用于建立无线连接的方法与设备
CN106686527A (zh) * 2016-12-20 2017-05-17 腾讯科技(深圳)有限公司 一种wifi信息识别方法及终端
CN106973425A (zh) * 2017-04-06 2017-07-21 上海掌门科技有限公司 一种连接无线接入点的方法与设备

Also Published As

Publication number Publication date
US20200163007A1 (en) 2020-05-21
CN108112060A (zh) 2018-06-01
US11012926B2 (en) 2021-05-18
CN107241727A (zh) 2017-10-10
CN108112060B (zh) 2018-07-17

Similar Documents

Publication Publication Date Title
WO2019019811A1 (zh) 用于获取无线接入点信息的方法和装置
US11310239B2 (en) Network connection method, hotspot terminal and management terminal
US10616739B2 (en) Method and apparatus for local data monitoring and actuator control in an internet of things network
EP3217758B1 (en) Establishment of a wireless connection between a first device and a second device
US11063934B2 (en) Information pushing method, server, sharer client and third-party client
US11108761B2 (en) Method, apparatus and system for remote control of intelligent device
US11824854B2 (en) Communication system and computer readable storage medium
US9521116B2 (en) Apparatus, method, and system for securing a public wireless network
CN109995876B (zh) 文件传输方法、装置、系统和计算机存储介质
US12067136B2 (en) Display method, display device, and electronic device
US20240291875A1 (en) Method, apparatus, device and medium for processing group information
CN113204759A (zh) 一种身份认证方法及装置、电子设备和存储介质
WO2022205906A1 (zh) 数据加密方法、装置、电子设备及存储介质
WO2022083589A1 (zh) 终端的控制方法、装置、终端和存储介质
US20230379279A1 (en) Interaction method and apparatus, and electronic device
CN111767550B (zh) 数据存储方法和装置
US11115905B2 (en) Method and apparatus for publishing information at wireless routing device end
WO2023131263A1 (zh) 一种群成员添加方法、装置、设备及介质
JP6021723B2 (ja) 管理サーバ、通信端末、ユーザ登録システム及びユーザ登録方法
CN108811036B (zh) 用于显示无线接入点信息的方法和装置
CN110765445B (zh) 处理请求的方法和装置
CN113885341B (zh) 一种设备管理的方法和装置
CN110611894B (zh) 用于在用户端连接热点、服务端和路由端设置热点的方法
US10834594B1 (en) Systems and methods for authentication sharing
WO2022222794A1 (zh) 交互方法、装置和电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18837669

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 19.05.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18837669

Country of ref document: EP

Kind code of ref document: A1