WO2015117467A1 - 一种终端及终端连接无线保真WiFi热点的方法、存储介质 - Google Patents

一种终端及终端连接无线保真WiFi热点的方法、存储介质 Download PDF

Info

Publication number
WO2015117467A1
WO2015117467A1 PCT/CN2014/092022 CN2014092022W WO2015117467A1 WO 2015117467 A1 WO2015117467 A1 WO 2015117467A1 CN 2014092022 W CN2014092022 W CN 2014092022W WO 2015117467 A1 WO2015117467 A1 WO 2015117467A1
Authority
WO
WIPO (PCT)
Prior art keywords
wifi hotspot
terminal
wifi
preset range
preset
Prior art date
Application number
PCT/CN2014/092022
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
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015117467A1 publication Critical patent/WO2015117467A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • 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 invention relates to a network connection technology of a mobile terminal, and in particular, to a method and a storage medium for a terminal and a terminal to connect a wireless fidelity (WiFi) hotspot.
  • WiFi wireless fidelity
  • WiFi hotspot almost all mobile terminals can connect to the WiFi hotspot for data services.
  • WiFi hotspots can provide data services for mobile terminals; that is, although the terminal has been connected to the WiFi hotspot normally, the terminal still cannot pass the terminal. Connect to the WiFi hotspot to browse the web page, etc.
  • Such situations are common in certain small-scale internal networks, such as the internal network of a company. The above situation may enable the terminal to know whether the WiFi hotspot connected to the mobile terminal provides data services by actually performing manual network data access after connecting the WiFi hotspot. The complexity of the mobile terminal user to know whether the WiFi hotspot has the data service capability is increased.
  • the embodiment of the present invention is to provide a method and a storage medium for connecting a terminal and a terminal to a WiFi hotspot, which can simplify the complexity of the mobile terminal user to know whether the WiFi hotspot has the data service capability.
  • an embodiment of the present invention provides a method for a terminal to connect to a WiFi hotspot, where the method includes:
  • the terminal After the terminal connects to the WiFi hotspot, the terminal sends a verification message to the preset network address.
  • the terminal Receiving, by the terminal, the verification of the return of the preset network address within a preset time limit
  • the terminal confirms that the data service of the WiFi hotspot is available, and indicates that the terminal successfully connects to the WiFi hotspot.
  • the terminal sends the verification message to the preset network address, including:
  • the terminal sends an Internet Control Message Protocol ICMP message to the preset network address, where the ICMP message is used to confirm the reachability of the preset network address.
  • ICMP message is used to confirm the reachability of the preset network address.
  • the method before the terminal connects the WiFi hotspot, the method further includes:
  • the terminal scans the WiFi hotspots in the preset range, and obtains the WiFi hotspot connection information in the preset range, where the WiFi hotspot connection information in the preset range includes the WiFi hotspot in the preset range.
  • the terminal arranges the WiFi hotspots in the preset range according to the WiFi hotspot connection information and the preset priority rule in the preset range, and generates a list of WiFi hotspots to be connected;
  • the terminal is connected to a WiFi hotspot with the highest priority among the WiFi hotspot lists.
  • the method further includes: the terminal The WiFi hotspot with the second highest priority is connected to the WiFi hotspot list.
  • the terminal according to the connection information of the WiFi hotspot in the preset range, and the preset priority rule, arranging the WiFi hotspots in the preset range to generate a list of the WiFi hotspots to be connected, including:
  • the terminal matches the identification information of the WiFi hotspot in the preset range with the WiFi hotspot information saved by the terminal, and obtains the WiFi hotspot that the terminal has connected in the preset range, and the preset The WiFi hotspots that have been connected in the range are arranged in a preset order to form a first WiFi hotspot set, wherein the WiFi hotspot information saved by the terminal itself includes the identification information of the WiFi hotspot saved by the terminal itself, The security mode indication information of the WiFi hotspot saved by the terminal itself, and the information of the WiFi hotspot saved by the terminal itself The right information, the disconnection time of the last connection of the terminal and the WiFi hotspot saved by the terminal;
  • the terminal is not connected in the preset range, and the WiFi hotspot in which the security mode indication information is empty in the WiFi hotspot connection information is arranged according to the signal strength of the WiFi hotspot connection information from strong to weak. a second WiFi hotspot collection;
  • the terminal is not connected in the preset range, and the WiFi hotspot in which the security mode indication information is not empty in the WiFi hotspot connection information is arranged according to the signal strength of the WiFi hotspot connection information from strong to weak. Forming a third WiFi hotspot collection;
  • the terminal is arranged in the order of the first WiFi hotspot set, the second WiFi hotspot set, and the third WiFi hotspot set, and generates the to-be-connected WiFi hotspot list.
  • the WLAN hotspots that have been connected in the preset range are arranged in a preset order to form a first WiFi hotspot set, including:
  • the terminal sums the signal strength of the WiFi hotspot that has been connected in the preset range, and the disconnection time of the last connection of the terminal and the WiFi hotspot that has been connected in the preset range, and obtains the The order weight of the WiFi hotspots that have been connected in the preset range;
  • the terminal arranges the WiFi hotspots that have been connected in the preset range according to the order weights of the WiFi hotspots that have been connected in the preset range from large to small to form the first WiFi hotspot set.
  • an embodiment of the present invention provides a terminal, where the terminal includes: a connection unit, a sending unit, a receiving unit, a confirming unit, and a prompting unit, where
  • the connecting unit is configured to connect to a WiFi hotspot
  • the sending unit is configured to send a verification message to the preset network address after the connection unit is connected to the WiFi hotspot;
  • the receiving unit is configured to receive a verification reply message returned by the network address
  • the determining unit is configured to: when the receiving unit receives the verification reply message returned by the network address within a preset time limit, confirm that the data service of the WiFi hotspot is available, and touch Sending prompt unit;
  • the prompting unit is configured to indicate that the terminal successfully connects to the WiFi hotspot.
  • the sending unit is configured to send an Internet Control Message Protocol (ICMP) message to the preset network address, where the ICMP message is used to confirm the reachability of the preset network address.
  • ICMP Internet Control Message Protocol
  • the terminal further includes an obtaining unit and a generating unit, where
  • the acquiring unit is configured to scan a WiFi hotspot in a preset range, and obtain the WiFi hotspot connection information in the preset range, where the WiFi hotspot connection information in the preset range includes the preset range Identification information of the WiFi hotspot within the preset range, security mode indication information of the WiFi hotspot within the preset range, and signal strength of the WiFi hotspot within the preset range;
  • the generating unit is configured to arrange the WiFi hotspots in the preset range according to the WiFi hotspot connection information and the preset priority rule in the preset range, and generate a list of WiFi hotspots to be connected;
  • the connecting unit is further configured to connect to a WiFi hotspot with the highest priority among the WiFi hotspot lists.
  • the connecting unit is further configured to: when the connecting unit is not connected to the WiFi hotspot with the highest priority, or the receiving unit does not receive the verification of returning the network address within a preset time limit.
  • the WiFi hotspot with the second highest priority in the list of WiFi hotspots is connected.
  • the generating unit is configured to:
  • WiFi hotspot information saved by the terminal itself includes The identification information of the WiFi hotspot saved by the terminal itself, the security mode indication information of the WiFi hotspot saved by the terminal itself, the authentication information of the WiFi hotspot saved by the terminal itself, and the WiFi hotspot saved by the terminal and itself The disconnection time of the connection; and,
  • the WiFi hotspots that are not connected within the preset range, and the security mode indication information in the WiFi hotspot connection information is empty are arranged according to the signal strength of the WiFi hotspot connection information from strong to weak, to form a second WiFi. Hotspot collection; and,
  • the WiFi hotspots that are not connected within the preset range, and the security mode indication information in the WiFi hotspot connection information is not empty are arranged according to the signal strength of the WiFi hotspot connection information from strong to weak, forming a third WiFi hotspot collection; and,
  • the first WiFi hotspot set, the second WiFi hotspot set, and the third WiFi hotspot set are arranged in an order, and the to-be-connected WiFi hotspot list is generated.
  • the generating unit is configured to:
  • the WiFi hotspots that have been connected in the preset range are arranged according to the order weights of the WiFi hotspots that have been connected in the preset range from large to small to form the first WiFi hotspot set.
  • a storage medium storing a computer program configured to perform the aforementioned method of connecting a wireless fidelity WiFi hotspot to a terminal.
  • the terminal performs the availability verification of the data service in the process of connecting the WiFi hotspot, so that the terminal user can learn whether the WiFi hotspot connected to the mobile terminal provides the data service without manual operation.
  • the complexity of the mobile terminal user to understand whether the WiFi hotspot has the data service capability is reduced, and the user experience is improved.
  • FIG. 1 is a schematic flowchart of a method for a terminal to connect to a WiFi hotspot according to an embodiment of the present disclosure
  • FIG. 2 is a schematic flowchart of a method for determining, by a terminal, a connection to a WiFi hotspot according to an embodiment of the present disclosure
  • FIG. 3 is a schematic flowchart of a method for a terminal to generate a list of WiFi hotspots to be connected according to an embodiment of the present disclosure
  • FIG. 4 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic structural diagram of another terminal according to an embodiment of the present invention.
  • the terminal may be a smart phone with a WiFi connection function.
  • the terminal may be a smart phone with a WiFi connection function.
  • tablet e-book reader
  • PDA Personal Digital Assistant
  • POS Point of Sales
  • car computer motion picture expert compression standard audio level 3 player (MP3, Moving Picture Experts Group Audio Layer III), a motion picture expert (Compress Picture Experts Group Audio Layer IV) player, etc.
  • the method may include:
  • the sending, by the terminal, the verification message to the preset network address may include:
  • the terminal sends an Internet Control Message Protocol (ICMP) message to the preset network address, where the ICMP message is used to confirm the reachability of the preset network address.
  • ICMP Internet Control Message Protocol
  • the WiFi hotspot can be connected through the connection.
  • a ping command can be sent to a local telecommunication server or a network address known to the public such as Baidu or Google, so that the WiFi hotspot can be verified to be connected.
  • the terminal receives the verification reply message returned by the preset network address, indicating that the terminal is connected to the preset network address, because the preset network address is usually the public.
  • the preset network address is usually the public.
  • Known network address therefore, it can be stated that the WiFi hotspot on the terminal connection is capable of supporting data services;
  • the terminal verifies the connectivity by using the ping command, when the terminal receives the response of the preset network address to the ping command within the preset time limit, the WiFi hotspot on the terminal connection is indicated.
  • Support data services since the terminal verifies the connectivity by using the ping command, when the terminal receives the response of the preset network address to the ping command within the preset time limit, the WiFi hotspot on the terminal connection is indicated.
  • the WiFi hotspot on the terminal connection is indicated. Data services are not supported.
  • the terminal can automatically determine whether the WiFi hotspot has the data service capability through the S110 and the S120, so that the actual data service is not required to be manually performed after the WiFi is connected. Judging, reducing the user's understanding of whether the WiFi hotspot has the complexity of data service capabilities, and improving the user experience.
  • the terminal scans the WiFi hotspot within the preset range around the WiFi hotspot before connecting to the WiFi hotspot, and then connects the scanned WiFi hotspot, the preset range is that the terminal can receive the WiFi.
  • the signal strength of the hotspot is determined. Therefore, before S110, referring to FIG. 2, the method may further include:
  • S100 The terminal scans the WiFi hotspot in the preset range, and obtains the WiFi hotspot connection information in the preset range.
  • the WiFi hotspot connection information in the preset range includes the identifier information of the WiFi hotspot in the preset range, the security mode indication information of the WiFi hotspot in the preset range, and the preset range. Signal strength of the WiFi hotspot;
  • the identifier information of the WiFi hotspot in the preset range may be represented by a Service Set Identifier (SSID) of the WiFi hotspot.
  • SSID Service Set Identifier
  • the SSID may be the owner of the WiFi hotspot.
  • the WiFi hotspot is named, so the SSID can be used to distinguish different WiFi hotspots;
  • the security mode indication information of the WiFi hotspot in the preset range is used to indicate whether the WiFi hotspot is in an open state, for example, when the WiFi hotspot can be directly connected without authentication, the security mode of the WiFi hotspot
  • the indication information may be set to be empty; when the WiFi hotspot needs to be authenticated to be able to connect, the security mode indication information of the WiFi hotspot may be set to 1; this embodiment does not specifically limit this;
  • the signal strength of the WiFi hotspot in the preset range may be represented by the signal to noise ratio of the WiFi signal received by the terminal, which is not specifically limited in this embodiment.
  • the WiFi hotspot connection information in the specific preset range may be as shown in Table 1. Show.
  • WiFi hotspots with SSIDs A and C are open WiFi. Hotspots; the WiFi hotspot signal strength of SSIDs A and B is higher than the WiFi hotspot signal strength of SSIDs C and D. Therefore, the signal quality of WiFi hotspots with SSIDs A and B is higher than that of WiFi hotspots with SSIDs of C and D. Signal quality.
  • S101 The terminal arranges the WiFi hotspots in the preset range according to the WiFi hotspot connection information and the preset priority rule in the preset range, and generates a list of the WiFi hotspots to be connected.
  • the terminal usually saves the WiFi hotspot information that has been connected to the terminal.
  • the WiFi hotspot information saved by the terminal itself includes the identification information of the WiFi hotspot saved by the terminal itself, and the WiFi hotspot saved by the terminal itself.
  • the identifier information of the WiFi hotspot saved by the terminal itself may be represented by the SSID of the WiFi hotspot;
  • the security mode indication information of the WiFi hotspot saved by the terminal itself indicates that the WiFi hotspot is in an open state
  • the security mode indication information of the WiFi hotspot is empty, and the authentication information of the WiFi hotspot is empty;
  • the terminal itself saves
  • the security mode indication information of the WiFi hotspot indicates that the WiFi hotspot is in a non-open state
  • the security mode indication information of the WiFi hotspot is 1, and the authentication information of the WiFi hotspot is the authentication information used for the last connection to the WiFi hotspot, such as a password. String and so on;
  • the disconnection time of the last connection of the terminal to the WiFi hotspot saved by itself may be the current time and the time period of the moment when the terminal and the last connection of the WiFi hotspot are disconnected.
  • the WiFi hotspot information saved by the terminal itself may be as shown in Table 2:
  • the WiFi hotspot with the SSID of A is in an open state, and the terminal is connected to the terminal one day ago; the WiFi hotspot with the SSID of B is in a non-open state, and the authentication information is 123456, which was performed with the terminal three days ago.
  • the WiFi hotspot with SSID E is open, connected to the terminal five days ago; the WiFi hotspot with SSID F is not open, the authentication information is 253614, and the terminal is connected two days ago; SSID is G
  • the WiFi hotspot is open and connected to the terminal six days ago.
  • step S101 in combination with the WiFi hotspot information saved by the terminal itself and the connection information of the WiFi hotspot in the preset range obtained by the terminal, referring to FIG. 3, step S101 may specifically include:
  • the terminal matches the identification information of the WiFi hotspot in the preset range with the WiFi hotspot information saved by the terminal, and obtains the WiFi hotspot that the terminal has connected in the preset range, and connects the preset range.
  • the WiFi hotspots are arranged in a preset order to form a first WiFi hotspot set;
  • the terminal can match the identification information of the WiFi hotspot in Table 1 with the WiFi hotspot information in Table 2. It can be known that the WiFi hotspot with the SSIDs A and B is the terminal in the preset range. Connected WiFi hotspot;
  • the terminal arranges the WiFi hotspots that have been connected in the preset range according to a preset sequence, and forms a first WiFi hotspot set, including:
  • the terminal sums the signal strength of the WiFi hotspot that has been connected in the preset range, and the disconnection time of the last connection of the terminal and the WiFi hotspot that has been connected in the preset range, to obtain the pre- Set the order weight of the WiFi hotspots that have been connected in the range;
  • the terminal connects the WiFi hotspot that has been connected in the preset range according to the preset range.
  • the sequence weights of the connected WiFi hotspots are arranged from large to small to form the first WiFi hotspot set.
  • the signal strength of the WiFi hotspot with the SSID of A is -45dbm
  • the signal strength of the WiFi hotspot with the SSID of B is -50dbm
  • the WiFi hotspot with the SSID of A is open and The WiFi hotspot with the SSID of B is in a non-open state and connected to the terminal three days ago. Therefore, the SSID of the WiFi hotspot in the first WiFi hotspot set is: A, B.
  • S1012 The terminal is not connected in the preset range, and the WiFi hotspot indicating that the security mode indication information is empty in the WiFi hotspot connection information is arranged according to the signal strength of the WiFi hotspot connection information from strong to weak. Two WiFi hotspot collections;
  • the WiFi hotspots with the SSIDs C and E are not linked with the terminal, and the two WiFi hotspots are all open. Therefore, the WiFi hotspot according to the SSID is C.
  • the signal strength is higher than the signal strength of the WiFi hotspot with the SSID being E. Therefore, the SSID of the WiFi hotspot in the second WiFi hotspot set is: C, E.
  • the terminal is not connected in the preset range, and the WiFi hotspot indicating that the security mode indication information is not empty in the WiFi hotspot connection information is arranged according to the signal strength of the WiFi hotspot connection information from strong to weak. a third WiFi hotspot collection;
  • the WiFi hotspots with the SSIDs D and F are not linked with the terminal, and the two WiFi hotspots are all non-open state, therefore, according to the SSID F
  • the signal strength of the WiFi hotspot is higher than the signal strength of the WiFi hotspot with the SSID D. Therefore, the SSID of the WiFi hotspot in the third WiFi hotspot set is: F, D.
  • S1014 The terminal is arranged according to the first WiFi hotspot set, the second WiFi hotspot set, and the third WiFi hotspot set, to generate a list of WiFi hotspots to be connected.
  • the list of WiFi hotspots to be connected is: A, B, C, E, F, D.
  • S102 The terminal connects to the WiFi hotspot with the highest priority among the WiFi hotspot lists.
  • the terminal is first connected to the WiFi hotspot with the SSID being A.
  • the specific connection process is the same as that of the normal connection of the terminal to the WiFi hotspot, and is not described here.
  • the data service of the WiFi hotspot with the highest priority is available to be confirmed by the steps S110 and S120 shown in FIG.
  • the method may further include:
  • the terminal connects to the WiFi hotspot with the second highest priority in the list of WiFi hotspots;
  • the WiFi hotspot with the second highest priority in the WiFi hotspot list is the WiFi hotspot with the SSID B; it can be understood that when the terminal is not connected to the WiFi hotspot with the SSID B, or the terminal is connected with the SSID B After the WiFi hotspot, the terminal may continue to connect the WiFi hotspots in the list according to the list of the WiFi hotspots in sequence according to the list of the WiFi hotspots. Until the terminal successfully connects to the WiFi hotspot.
  • the embodiment provides a method for the terminal to connect to the WiFi hotspot.
  • the terminal can perform the verification of the availability of the data service in the process of connecting the WiFi hotspot, so that the user can know whether the WiFi hotspot connected to the terminal is manually operated.
  • the terminal 40 may include: a connection unit 401, a sending unit 402, a receiving unit 403, a confirming unit 404, and a prompting unit 405, wherein
  • the connecting unit 401 is configured to connect to a WiFi hotspot
  • the sending unit 402 is configured to send a verification message to the preset network address after the connection unit 401 is connected to the WiFi hotspot;
  • the receiving unit 403 is configured to receive a verification reply message returned by the network address
  • the determining unit 404 is configured to: when the receiving unit 403 receives the verification reply message returned by the network address within a preset time limit, confirm that the data service of the WiFi hotspot is available, and trigger the prompting unit 405;
  • the prompting unit 405 is configured to indicate that the terminal 40 successfully connects to the WiFi hotspot.
  • the sending unit 402 is configured to send an ICMP message to the preset network address, where the ICMP message is used to confirm the reachability of the preset network address.
  • the sending unit 402 can send a ping command to the preset network address through the WiFi hotspot on the connection to perform connectivity check, so that it can be verified whether the WiFi hotspot on the connection supports the data service.
  • the sending unit 402 can send a ping command to a local telecommunication server or a network address known to Baidu, Google, etc., so that the WiFi hotspot can be verified.
  • the receiving unit 403 receives the verification reply message returned by the preset network address, indicating that the terminal 40 is connected to the preset network address, because the preset network address is Generally, it is a network address known to the public. Therefore, it can be stated that the WiFi hotspot connected to the connection unit 401 is capable of supporting data services;
  • WiFi hotspots support data services
  • the determining unit 404 may also be configured to determine that the WiFi hotspot on the connection does not support the data service, and the triggering prompting unit 405 indicates that the terminal 40 is not able to successfully connect to the WiFi hotspot.
  • the terminal 40 scans the WiFi hotspot within the preset range around the WiFi hotspot before connecting to the WiFi hotspot, and then connects the scanned WiFi hotspot, and the preset range is receivable by the terminal 40.
  • the signal strength to the WiFi hotspot is determined.
  • the terminal 40 may further include: an obtaining unit 406 and a generating unit 407, where
  • the acquiring unit 406 is configured to scan a WiFi hotspot in a preset range, and obtain WiFi hotspot connection information in the preset range;
  • the generating unit 407 is configured to arrange the WiFi hotspots in the preset range according to the WiFi hotspot connection information and the preset priority rule in the preset range, to generate a list of WiFi hotspots to be connected;
  • the connecting unit 401 is further configured to connect to a WiFi hotspot with the highest priority among the WiFi hotspot lists.
  • connection unit 401 is further configured to: when the connection unit 401 is not connected to the WiFi hotspot with the highest priority, or the receiving unit 403 does not receive the return of the network address within a preset time limit.
  • the connection unit 401 is not connected to the WiFi hotspot with the highest priority, or the receiving unit 403 does not receive the return of the network address within a preset time limit.
  • the WiFi hotspot with the second highest priority in the WiFi hotspot list is connected.
  • the WiFi hotspot connection information in the preset range includes the identification information of the WiFi hotspot in the preset range, the security mode indication information of the WiFi hotspot in the preset range, and the preset range. Signal strength of the WiFi hotspot;
  • the identifier information of the WiFi hotspot in the preset range may be represented by a Service Set Identifier (SSID) of the WiFi hotspot.
  • SSID Service Set Identifier
  • the SSID may be the owner of the WiFi hotspot.
  • the wifi hotspot is named, so the SSID can Used to distinguish between different WiFi hotspots;
  • the security mode indication information of the WiFi hotspot in the preset range is used to indicate whether the WiFi hotspot is in an open state, for example, when the WiFi hotspot can be directly connected without authentication, the security mode of the WiFi hotspot
  • the indication information may be set to be empty; when the WiFi hotspot needs to be authenticated to be able to connect, the security mode indication information of the WiFi hotspot may be set to 1; this embodiment does not specifically limit this;
  • the signal strength of the WiFi hotspot within the preset range may be represented by the receiving unit 403 receiving the signal to noise ratio of the WiFi signal.
  • the terminal 40 will save the WiFi hotspot information that has been connected to the terminal 40.
  • the WiFi hotspot information saved by the terminal 40 itself includes the identification information of the WiFi hotspot saved by the terminal 40 itself, and the terminal 40 saves itself.
  • the identifier information of the WiFi hotspot saved by the terminal 40 itself may be represented by the SSID of the WiFi hotspot;
  • the security mode indication information of the WiFi hotspot saved by the terminal 40 indicates that the WiFi hotspot is in an open state
  • the security mode indication information of the WiFi hotspot is empty, and the authentication information of the WiFi hotspot is empty;
  • the terminal 40 itself
  • the security mode indication information of the saved WiFi hotspot indicates that the WiFi hotspot is in a non-open state
  • the security mode indication information of the WiFi hotspot is 1, and the authentication information of the WiFi hotspot is the authentication information used for the last connection of the WiFi hotspot.
  • the disconnection time of the last connection of the terminal 40 with the WiFi hotspot saved by itself may be an interval between the current time and the time when the terminal 40 and the WiFi hotspot are disconnected last time.
  • the WiFi hotspot information saved by the terminal 40 itself is combined with The obtaining unit 406 obtains the connection information of the WiFi hotspot in the obtained preset range, and the generating unit 407 can be configured to:
  • the WiFi hotspots that are not connected within the preset range, and the security mode indication information in the WiFi hotspot connection information is empty are arranged according to the signal strength of the WiFi hotspot connection information from strong to weak, to form a second WiFi. Hotspot collection; and,
  • the WiFi hotspots that are not connected within the preset range, and the security mode indication information in the WiFi hotspot connection information is not empty are arranged according to the signal strength of the WiFi hotspot connection information from strong to weak, forming a third WiFi hotspot collection; and,
  • the first WiFi hotspot set, the second WiFi hotspot set, and the third WiFi hotspot set are arranged in an order, and the to-be-connected WiFi hotspot list is generated.
  • the generating unit 407 is configured to:
  • the WiFi hotspots that have been connected in the preset range are arranged according to the order weights of the WiFi hotspots that have been connected in the preset range, and are composed of the first WiFi hotspot set.
  • the terminal 40 of the present embodiment provides the availability verification of the data service of the WiFi hotspot in the process of connecting the WiFi hotspot, so that the user can know whether the WiFi hotspot connected to the terminal 40 provides the data service without manual operation. .
  • the complexity of the end user to understand whether the WiFi hotspot has the data service capability is reduced, and the user experience is improved.
  • the embodiment of the invention further describes a storage medium, wherein the storage medium stores a computer program, and the computer program is configured as a method for connecting a terminal to a wireless fidelity WiFi hotspot according to the foregoing embodiments.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • the invention can verify the availability of the data service of the WiFi hotspot in the process of connecting the WiFi hotspot, so that the terminal user can learn whether the WiFi hotspot connected to the mobile terminal provides the data service without manual operation.
  • the complexity of the mobile terminal user to understand whether the WiFi hotspot has the data service capability is reduced, and the user experience is improved.

Landscapes

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

Abstract

本发明实施例公开了一种终端及终端连接WiFi热点的方法,该方法包括:终端在连接上WiFi热点之后,向预设的网络地址发送验证消息;当所述终端在预设的时限内接收到所述预设的网络地址返回的验证回复消息时,所述终端确认所述WiFi热点的数据业务可用,并示意所述终端成功连接所述WiFi热点。

Description

一种终端及终端连接无线保真WiFi热点的方法、存储介质 技术领域
本发明涉及移动终端的网络连接技术,尤其涉及一种终端及终端连接无线保真(WiFi,Wireless Fidelity)热点的方法、存储介质。
背景技术
当前几乎所有的移动终端都可以通过连接WiFi热点进行数据业务,但是,并不是所有的WiFi热点都能够为移动终端提供数据业务;也就是说虽然终端已经正常连接上WiFi热点,但是终端依旧无法通过连接上的WiFi热点浏览网页等。这样的情况在某些特定的小范围内部网络中比较常见,例如某个公司的内部网络等。上述情况会使得终端在连接上WiFi热点之后,需要用户通过实际地手动进行网络数据访问才能够得知移动终端连接的WiFi热点是否提供数据业务。增加了移动终端用户了解WiFi热点是否具备数据业务能力的复杂度。
发明内容
为解决上述技术问题,本发明实施例期望提供一种终端及终端连接WiFi热点的方法、存储介质,能够简化移动终端用户了解WiFi热点是否具备数据业务能力的复杂度。
本发明的技术方案是这样实现的:
第一方面,本发明实施例提供了一种终端连接WiFi热点的方法,所述方法包括:
终端在连接上WiFi热点之后,向预设的网络地址发送验证消息;
当所述终端在预设的时限内接收到所述预设的网络地址返回的验证回 复消息时,所述终端确认所述WiFi热点的数据业务可用,并示意所述终端成功连接所述WiFi热点。
可选地,所述终端向预设的网络地址发送验证消息,包括:
所述终端向所述预设的网络地址发送Internet控制报文协议ICMP消息,所述ICMP消息用于确认所述预设的网络地址的可达性。
可选地,在所述终端连接所述WiFi热点之前,所述方法还包括:
所述终端扫描周围预设范围内的WiFi热点,并获取所述预设范围内的WiFi热点连接信息,其中,所述预设范围内的WiFi热点连接信息包括所述预设范围内的WiFi热点的标识信息、所述预设范围内的WiFi热点的安全模式指示信息以及所述预设范围内的WiFi热点的信号强度;
所述终端根据所述预设范围内的WiFi热点连接信息和预设的优先级规则将述预设范围内的WiFi热点进行排列,生成待连接WiFi热点名单;
所述终端连接所述WiFi热点名单中优先级最高的WiFi热点。
可选地,当所述终端未连接上所述优先级最高的WiFi热点,或在预设的时限内没有接收到所述网络地址返回的验证回复消息时,所述方法还包括:所述终端连接所述WiFi热点名单中优先级第二高的WiFi热点。
可选地,所述终端根据所述预设范围内的WiFi热点的连接信息和预设的优先级规则将述预设范围内的WiFi热点进行排列,生成待连接WiFi热点名单,包括:
所述终端将所述预设范围内的WiFi热点的标识信息与自身保存的WiFi热点信息进行匹配,获取所述终端在所述预设范围内曾经连接过的WiFi热点,并将所述预设范围内曾经连接过的WiFi热点按照预设的排列顺序进行排列,组成第一WiFi热点集合,其中,所述终端自身保存的WiFi热点信息包括所述终端自身保存的WiFi热点的标识信息、所述终端自身保存的WiFi热点的安全模式指示信息、所述终端自身保存的WiFi热点的鉴 权信息、所述终端与自身保存的WiFi热点最后一次连接的断开时间;
所述终端将在所述预设范围内未连接过,且所述WiFi热点连接信息中安全模式指示信息为空的WiFi热点按照所述WiFi热点连接信息中信号强度由强到弱进行排列,组成第二WiFi热点集合;
所述终端将在所述预设范围内未连接过,且所述WiFi热点连接信息中安全模式指示信息不为空的WiFi热点按照所述WiFi热点连接信息中信号强度由强到弱进行排列,组成第三WiFi热点集合;
所述终端按照所述第一WiFi热点集合、所述第二WiFi热点集合和第三WiFi热点集合的顺序进行排列,生成所述待连接WiFi热点名单。
可选地,所述将所述预设范围内曾经连接过的WiFi热点按照预设的排列顺序进行排列,组成第一WiFi热点集合,包括:
所述终端将所述预设范围内曾经连接过的WiFi热点的信号强度以及所述终端与所述预设范围内曾经连接过的WiFi热点最后一次连接的断开时间进行求和,得出所述预设范围内曾经连接过的WiFi热点的顺序权值;
所述终端将所述预设范围内曾经连接过的WiFi热点按照所述预设范围内曾经连接过的WiFi热点的顺序权值由大到小进行排列,组成所述第一WiFi热点集合。
第二方面,本发明实施例提供了一种终端,所述终端包括:连接单元、发送单元、接收单元、确认单元和提示单元,其中,
所述连接单元,配置为连接WiFi热点;
所述发送单元,配置为在所述连接单元连接上WiFi热点之后,向预设的网络地址发送验证消息;
所述接收单元,配置为接收所述网络地址返回的验证回复消息;
所述确定单元,配置为当所述接收单元在预设的时限内接收到所述网络地址返回的验证回复消息时,确认所述WiFi热点的数据业务可用,并触 发提示单元;
所述提示单元,配置为示意所述终端成功连接所述WiFi热点。
可选地,所述发送单元,配置为向所述预设的网络地址发送Internet控制报文协议ICMP消息,所述ICMP消息用于确认所述预设的网络地址的可达性。
可选地,所述终端还包括获取单元和生成单元,其中,
所述获取单元,配置为扫描周围预设范围内的WiFi热点,并获取所述预设范围内的WiFi热点连接信息,其中,所述预设范围内的WiFi热点连接信息包括所述预设范围内的WiFi热点的标识信息、所述预设范围内的WiFi热点的安全模式指示信息以及所述预设范围内的WiFi热点的信号强度;
所述生成单元,配置为根据所述预设范围内的WiFi热点连接信息和预设的优先级规则将述预设范围内的WiFi热点进行排列,生成待连接WiFi热点名单;
所述连接单元,还配置为连接所述WiFi热点名单中优先级最高的WiFi热点。
可选地,所述连接单元,还配置为当所述连接单元未连接上所述优先级最高的WiFi热点,或所述接收单元在预设的时限内没有接收到所述网络地址返回的验证回复消息时,连接所述WiFi热点名单中优先级第二高的WiFi热点。
可选地,所述生成单元,配置为:
将所述预设范围内的WiFi热点的标识信息与自身保存的WiFi热点信息进行匹配,获取所述终端在所述预设范围内曾经连接过的WiFi热点,并将所述预设范围内曾经连接过的WiFi热点按照预设的排列顺序进行排列,组成第一WiFi热点集合,其中,所述终端自身保存的WiFi热点信息包括 所述终端自身保存的WiFi热点的标识信息、所述终端自身保存的WiFi热点的安全模式指示信息、所述终端自身保存的WiFi热点的鉴权信息、所述终端与自身保存的WiFi热点最后一次连接的断开时间;以及,
将在所述预设范围内未连接过,且所述WiFi热点连接信息中安全模式指示信息为空的WiFi热点按照所述WiFi热点连接信息中信号强度由强到弱进行排列,组成第二WiFi热点集合;以及,
将在所述预设范围内未连接过,且所述WiFi热点连接信息中安全模式指示信息不为空的WiFi热点按照所述WiFi热点连接信息中信号强度由强到弱进行排列,组成第三WiFi热点集合;以及,
按照所述第一WiFi热点集合、所述第二WiFi热点集合和第三WiFi热点集合的顺序进行排列,生成所述待连接WiFi热点名单。
可选地,所述生成单元,配置为:
将所述预设范围内曾经连接过的WiFi热点的信号强度以及所述终端与所述预设范围内曾经连接过的WiFi热点最后一次连接的断开时间进行求和,得出所述预设范围内曾经连接过的WiFi热点的顺序权值;以及,
将所述预设范围内曾经连接过的WiFi热点按照所述预设范围内曾经连接过的WiFi热点的顺序权值由大到小进行排列,组成所述第一WiFi热点集合。
一种存储介质,所述存储介质中存储有计算机程序,所述计算机程序配置为执行前述的终端连接无线保真WiFi热点的方法。
本发明实施例通过终端在连接WiFi热点的过程中,对该WiFi热点进行数据业务的可用性验证,从而无需终端用户通过手动操作就能够了解移动终端连接的WiFi热点是否提供数据业务。降低了移动终端用户了解WiFi热点是否具备数据业务能力的复杂度,提高了用户体验。
附图说明
图1为本发明实施例提供的一种终端连接WiFi热点的方法的流程示意图;
图2为本发明实施例提供的一种终端确定连接WiFi热点的方法的流程示意图;
图3为本发明实施例提供的一种终端生成待连接WiFi热点名单的方法流程示意图;
图4为本发明实施例提供的一种终端的结构示意图;
图5为本发明实施例提供的另一种终端的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。
参见图1,其示出了本发明实施例提供的一种终端连接WiFi热点的方法的流程,在本发明实施例中,列举而非限定的,所述终端可以是具有WiFi连接功能的智能手机、平板电脑、电子书阅读器、个人数字助理(PDA,Personal Digital Assistant)、销售终端(POS,Point of Sales)、车载电脑、动态影像专家压缩标准音频层面3播放器(MP3,Moving Picture Experts Group Audio Layer III)、动态影像专家压缩标准音频层面4(MP4,Moving Picture Experts Group Audio Layer IV)播放器等等,所述方法可以包括:
S110:终端在连接上WiFi热点之后,向预设的网络地址发送验证消息;
示例性的,所述终端向预设的网络地址发送验证消息,可以包括:
所述终端向所述预设的网络地址发送Internet控制报文协议(ICMP,Internet Control Message Protocol)消息,所述ICMP消息用于确认所述预设的网络地址的可达性。
具体地,当终端连接上WiFi热点之后,可以通过连接上的WiFi热点 向预设的网络地址发送ping命令进行连通性检查,从而可以验证连接上的WiFi热点是否支持数据业务。比如,在本实施例中,可以向本地的电信服务器或者百度、谷歌等为公众所知的网络地址发送ping命令,从而可以验证WiFi热点是否连通。
S120:当所述终端在预设的时限内接收到所述预设的网络地址返回的验证回复消息时,所述终端确认所述WiFi热点的数据业务可用,并示意所述终端成功连接所述WiFi热点。
示例性地,在预设的时限内,终端接收到由预设的网络地址返回的验证回复消息,说明了终端与预设的网络地址之间是连通的,由于预设的网络地址通常是公众所知的网络地址,因此,可以说明终端连接上的WiFi热点是能够支持数据业务的;
在本实施例中,由于终端通过ping命令来对连通性进行验证,那么当终端在预设的时限内接收到由预设的网络地址对ping命令的响应的时候,说明终端连接上的WiFi热点支持数据业务;
当终端在预设的时限内没有接收到由预设的网络地址对ping命令的响应,或者终端接收到的是预设的网络地址对ping命令的超时响应的时候,说明终端连接上的WiFi热点不支持数据业务。
需要说明的是,终端通过S110和S120就可以在连接上WiFi热点之后,自动对WiFi热点的是否具备数据业务能力进行判断,从而无需在连接上WiFi后手动地通过进行真实的数据业务来实际进行判断,降低了用户了解WiFi热点是否具备数据业务能力的复杂度,提高了用户体验。
在通常情况下,终端在连接WiFi热点之前,会对自身周围预设范围内的WiFi热点进行扫描,然后对扫描的到的WiFi热点进行连接,所述预设范围由所述终端能够接收到WiFi热点的信号强度决定。因此,在S110之前,参见图2,该方法还可以包括:
S100:终端扫描周围预设范围内的WiFi热点,并获取所述预设范围内的WiFi热点连接信息;
示例性地,所述预设范围内的WiFi热点连接信息包括所述预设范围内的WiFi热点的标识信息、所述预设范围内的WiFi热点的安全模式指示信息以及所述预设范围内的WiFi热点的信号强度;
进一步地,在本实施例中,预设范围内的WiFi热点的标识信息可以用该WiFi热点的服务集标识(SSID,Service Set Identifier)表示,通常来说,SSID可以是WiFi热点的所有者为该WiFi热点进行的命名,因此,SSID可以用来区分不同的WiFi热点;
在本实施例中,预设范围内的WiFi热点的安全模式指示信息用来表征该WiFi热点是否为开放状态,比如,当WiFi热点无需鉴权就可以直接连接的时候,该WiFi热点的安全模式指示信息可以设置为空;当WiFi热点需要鉴权才能够连接的时候,该WiFi热点的安全模式指示信息可以设置为1;本实施例对此不作具体限定;
预设范围内的WiFi热点的信号强度则可以用终端接收该WiFi信号的信噪比来表示,本实施例对此不作具体限定,具体的预设范围内的WiFi热点连接信息可以如表1所示。
Figure PCTCN2014092022-appb-000001
表1
从表1中可以知道,SSID为A和C的WiFi热点是开放状态的WiFi 热点;SSID为A和B的WiFi热点信号强度高于SSID为C和D的WiFi热点信号强度,因此,SSID为A和B的WiFi热点的信号质量要高于SSID为C和D的WiFi热点的信号质量。
S101:终端根据所述预设范围内的WiFi热点连接信息和预设的优先级规则将述预设范围内的WiFi热点进行排列,生成待连接WiFi热点名单;
可以理解的,通常终端都会将自身曾经连接过的WiFi热点信息进行保存,在本实施例中,终端自身保存的WiFi热点信息包括终端自身保存的WiFi热点的标识信息、终端自身保存的WiFi热点的安全模式指示信息、终端自身保存的WiFi热点的鉴权信息、终端与自身保存的WiFi热点最后一次连接的断开时间;
需要说明的是,与表1类似的,在终端自身保存的WiFi热点信息中,终端自身保存的WiFi热点的标识信息可以用该WiFi热点的SSID表示;
但是,当终端自身保存的WiFi热点的安全模式指示信息表征该WiFi热点为开放状态时,该WiFi热点的安全模式指示信息为空,且该WiFi热点的鉴权信息为空;当终端自身保存的WiFi热点的安全模式指示信息表征该WiFi热点为非开放状态时,该WiFi热点的安全模式指示信息为1,该WiFi热点的鉴权信息为最后一次连接该WiFi热点使用的鉴权信息,例如密码字符串等等;
而且,终端与自身保存的WiFi热点最后一次连接的断开时间可以是当前时刻和终端与该WiFi热点最后一次连接断开的时刻的时间段。
具体地,终端自身保存的WiFi热点信息可以如表2所示:
Figure PCTCN2014092022-appb-000002
Figure PCTCN2014092022-appb-000003
表2
从表2中可以得知,SSID为A的WiFi热点处于开放状态,一天前与终端进行过连接;SSID为B的WiFi热点处于非开放状态,鉴权信息为123456,三天前与终端进行过连接;SSID为E的WiFi热点处于开放状态,五天前与终端进行过连接;SSID为F的WiFi热点处于非开放状态,鉴权信息为253614,两天前与终端进行过连接;SSID为G的WiFi热点处于开放状态,六天前与终端进行过连接。
进一步地,在本实施例中,结合终端自身保存的WiFi热点信息和终端获取得到的预设范围内的WiFi热点的连接信息,参见图3,步骤S101具体可以包括:
S1011:终端将预设范围内的WiFi热点的标识信息与自身保存的WiFi热点信息进行匹配,获取终端在所述预设范围内曾经连接过的WiFi热点,并将所述预设范围内曾经连接过的WiFi热点按照预设的排列顺序进行排列,组成第一WiFi热点集合;
在本实施例中,终端可以将表1中的WiFi热点的标识信息与表2中的WiFi热点信息进行匹配,可以得知,SSID为A和B的WiFi热点是所述预设范围内终端曾经连接过的WiFi热点;
具体地,终端将所述预设范围内曾经连接过的WiFi热点按照预设的排列顺序进行排列,组成第一WiFi热点集合,包括:
终端将所述预设范围内曾经连接过的WiFi热点的信号强度以及所述终端与所述预设范围内曾经连接过的WiFi热点最后一次连接的断开时间进行求和,得出所述预设范围内曾经连接过的WiFi热点的顺序权值;以及
终端将所述预设范围内曾经连接过的WiFi热点按照所述预设范围内曾 经连接过的WiFi热点的顺序权值由大到小进行排列,组成所述第一WiFi热点集合。
在本实施例中,根据表1,SSID为A的WiFi热点的信号强度为-45dbm,SSID为B的WiFi热点的信号强度为-50dbm;根据表2,SSID为A的WiFi热点为开放状态且在一天前与终端进行过连接,SSID为B的WiFi热点为非开放状态且三天前与终端进行过连接,因此,第一WiFi热点集合中WiFi热点的SSID为:A、B。
S1012:终端将所述预设范围内未连接过,且所述WiFi热点连接信息中安全模式指示信息为空的WiFi热点按照所述WiFi热点连接信息中信号强度由强到弱进行排列,组成第二WiFi热点集合;
在本实施例中,根据S1011和表1所知,SSID为C和E的WiFi热点均未和终端进行过链接,而且这两个WiFi热点均为开放状态,因此,根据SSID为C的WiFi热点的信号强度高于SSID为E的WiFi热点的信号强度,因此,第二WiFi热点集合中WiFi热点的SSID为:C、E。
S1013:终端将所述预设范围内未连接过,且所述WiFi热点连接信息中安全模式指示信息不为空的WiFi热点按照所述WiFi热点连接信息中信号强度由强到弱进行排列,组成第三WiFi热点集合;
在本实施例中,根据S1011、S1012和表1所知,SSID为D和F的WiFi热点均未和终端进行过链接,而且这两个WiFi热点均为非开放状态,因此,根据SSID为F的WiFi热点的信号强度高于SSID为D的WiFi热点的信号强度,因此,第三WiFi热点集合中WiFi热点的SSID为:F、D。
S1014:终端按照所述第一WiFi热点集合、所述第二WiFi热点集合和第三WiFi热点集合的顺序进行排列,生成待连接WiFi热点名单;
在本实施例中,结合表1和上述的三个WiFi热点集合,可以得知,待连接WiFi热点名单为:A、B、C、E、F、D。
S102:终端连接所述WiFi热点名单中优先级最高的WiFi热点。
在本实施例中,终端首先和SSID为A的WiFi热点进行连接;具体的连接过程与通常情况下终端连接WiFi热点的过程一致,为本领域技术人员的常规技术手段,在此不再赘述。
进一步地,终端连接上优先级最高的WiFi热点之后,就可以通过图1所示的步骤S110和S120确认优先级最高的WiFi热点的数据业务是否可用,具体过程不再赘述。
可以理解的,当终端未连接上所述优先级最高的WiFi热点,或者终端在连接所述优先级最高的WiFi热点后,根据步骤S110和S120在预设的时限内没有接收到所述网络地址返回的验证回复消息时,说明所述优先级最高的WiFi热点无法连接或者所述优先级最高的WiFi热点不支持数据业务,此时,所述方法还可以包括:
终端连接所述WiFi热点名单中优先级第二高的WiFi热点;
在本实施例中,WiFi热点名单中优先级第二高的WiFi热点为SSID为B的WiFi热点;可以理解的,当终端未连接上SSID为B的WiFi热点,或者终端在连接SSID为B的WiFi热点后,根据步骤S110和S120在预设的时限内没有接收到所述网络地址返回的验证回复消息时,终端可以根据所述WiFi热点名单的顺序依次对名单中的WiFi热点继续进行连接,直至终端成功连接上WiFi热点为止。
本实施例提供了一种终端连接WiFi热点的方法,通过终端在连接WiFi热点的过程中,对该WiFi热点进行数据业务的可用性验证,从而无需用户通过手动操作就能够了解终端连接的WiFi热点是否提供数据业务。降低了终端用户了解WiFi热点是否具备数据业务能力的复杂度,提高了用户体验。
参见图4,其示出了本发明实施例提供的一种终端40的结构,终端40可以包括:连接单元401、发送单元402、接收单元403、确认单元404和 提示单元405,其中,
所述连接单元401,配置为连接WiFi热点;
所述发送单元402,配置为在所述连接单元401连接上WiFi热点之后,向预设的网络地址发送验证消息;
所述接收单元403,配置为接收所述网络地址返回的验证回复消息;
所述确定单元404,配置为当所述接收单元403在预设的时限内接收到所述网络地址返回的验证回复消息时,确认所述WiFi热点的数据业务可用,并触发提示单元405;
所述提示单元405,配置为示意所述终端40成功连接所述WiFi热点。
示例性地,发送单元402,配置为向所述预设的网络地址发送ICMP消息,所述ICMP消息用于确认所述预设的网络地址的可达性。
具体地,当连接单元401连接上WiFi热点之后,发送单元402可以通过连接上的WiFi热点向预设的网络地址发送ping命令进行连通性检查,从而可以验证连接上的WiFi热点是否支持数据业务。比如,在本实施例中,发送单元402可以向本地的电信服务器或者百度、谷歌等为公众所知的网络地址发送ping命令,从而可以验证WiFi热点是否连通。
示例性地,在预设的时限内,接收单元403接收到由预设的网络地址返回的验证回复消息,说明了终端40与预设的网络地址之间是连通的,由于预设的网络地址通常是公众所知的网络地址,因此,可以说明连接单元401连接上的WiFi热点是能够支持数据业务的;
在本实施例中,由于终端40通过ping命令来对连通性进行验证,那么当接收单元403在预设的时限内接收到由预设的网络地址对ping命令的响应的时候,说明终端连接上的WiFi热点支持数据业务;
当接收单元403在预设的时限内没有接收到由预设的网络地址对ping命令的响应,或者接收单元403接收到的是预设的网络地址对ping命令的 超时响应的时候,确定单元404还可以配置为确定连接上的WiFi热点不支持数据业务,并触发提示单元405示意所述终端40未能够成功连接所述WiFi热点。
在通常情况下,终端40在连接WiFi热点之前,会对自身周围预设范围内的WiFi热点进行扫描,然后对扫描的到的WiFi热点进行连接,所述预设范围由所述终端40能够接收到WiFi热点的信号强度决定。
因此,参见图5,终端40还可以包括:获取单元406和生成单元407,其中,
所述获取单元406,配置为扫描周围预设范围内的WiFi热点,并获取所述预设范围内的WiFi热点连接信息;
所述生成单元407,配置为根据所述预设范围内的WiFi热点连接信息和预设的优先级规则将述预设范围内的WiFi热点进行排列,生成待连接WiFi热点名单;
所述连接单元401,还配置为连接所述WiFi热点名单中优先级最高的WiFi热点。
另外,所述连接单元401,还配置为当所述连接单元401未连接上所述优先级最高的WiFi热点,或所述接收单元403在预设的时限内没有接收到所述网络地址返回的验证回复消息时,连接所述WiFi热点名单中优先级第二高的WiFi热点。
示例性地,所述预设范围内的WiFi热点连接信息包括所述预设范围内的WiFi热点的标识信息、所述预设范围内的WiFi热点的安全模式指示信息以及所述预设范围内的WiFi热点的信号强度;
进一步地,在本实施例中,预设范围内的WiFi热点的标识信息可以用该WiFi热点的服务集标识(SSID,Service Set Identifier)表示,通常来说,SSID可以是WiFi热点的所有者为该WiFi热点进行的命名,因此,SSID可 以用来区分不同的WiFi热点;
在本实施例中,预设范围内的WiFi热点的安全模式指示信息用来表征该WiFi热点是否为开放状态,比如,当WiFi热点无需鉴权就可以直接连接的时候,该WiFi热点的安全模式指示信息可以设置为空;当WiFi热点需要鉴权才能够连接的时候,该WiFi热点的安全模式指示信息可以设置为1;本实施例对此不作具体限定;
在本实施例中,预设范围内的WiFi热点的信号强度则可以用接收单元403接收该WiFi信号的信噪比来表示。
示例性地,通常终端40都会将自身曾经连接过的WiFi热点信息进行保存,在本实施例中,终端40自身保存的WiFi热点信息包括终端40自身保存的WiFi热点的标识信息、终端40自身保存的WiFi热点的安全模式指示信息、终端40自身保存的WiFi热点的鉴权信息、终端40与自身保存的WiFi热点最后一次连接的断开时间;
需要说明的是,在终端40自身保存的WiFi热点信息中,终端40自身保存的WiFi热点的标识信息可以用该WiFi热点的SSID表示;
但是,当终端40自身保存的WiFi热点的安全模式指示信息表征该WiFi热点为开放状态时,该WiFi热点的安全模式指示信息为空,且该WiFi热点的鉴权信息为空;当终端40自身保存的WiFi热点的安全模式指示信息表征该WiFi热点为非开放状态时,该WiFi热点的安全模式指示信息为1,该WiFi热点的鉴权信息为最后一次连接该WiFi热点使用的鉴权信息,例如密码字符串等等;
而且,终端40与自身保存的WiFi热点最后一次连接的断开时间可以是当前时刻和终端40与该WiFi热点最后一次连接断开的时刻之间的间隔时间段。
进一步地,在本实施例中,结合终端40自身保存的WiFi热点信息和 获取单元406获取得到的预设范围内的WiFi热点的连接信息,生成单元407,可以配置为:
将所述预设范围内的WiFi热点的标识信息与自身保存的WiFi热点信息进行匹配,获取所述终端在所述预设范围内曾经连接过的WiFi热点,并将所述预设范围内曾经连接过的WiFi热点按照预设的排列顺序进行排列,组成第一WiFi热点集合;以及,
将在所述预设范围内未连接过,且所述WiFi热点连接信息中安全模式指示信息为空的WiFi热点按照所述WiFi热点连接信息中信号强度由强到弱进行排列,组成第二WiFi热点集合;以及,
将在所述预设范围内未连接过,且所述WiFi热点连接信息中安全模式指示信息不为空的WiFi热点按照所述WiFi热点连接信息中信号强度由强到弱进行排列,组成第三WiFi热点集合;以及,
按照所述第一WiFi热点集合、所述第二WiFi热点集合和第三WiFi热点集合的顺序进行排列,生成所述待连接WiFi热点名单。
具体地,生成单元407,配置为:
将所述预设范围内曾经连接过的WiFi热点的信号强度以及所述终端40与所述预设范围内曾经连接过的WiFi热点最后一次连接的断开时间进行求和,得出所述预设范围内曾经连接过的WiFi热点的顺序权值;以及,
将所述预设范围内曾经连接过的WiFi热点按照所述预设范围内曾经连接过的WiFi热点的顺序权值由大到小进行排列,组成所述第一WiFi热点集合.
本实施例提供的一种终端40,通过在连接WiFi热点的过程中,对该WiFi热点进行数据业务的可用性验证,从而无需用户通过手动操作就能够了解与终端40连接的WiFi热点是否提供数据业务。降低了终端用户了解WiFi热点是否具备数据业务能力的复杂度,提高了用户体验。
本发明实施例还记载了一种存储介质,所述存储介质中存储有计算机程序,所述计算机程序配置为前述各实施例所述的终端连接无线保真WiFi热点的方法。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。
工业实用性
本发明通过终端在连接WiFi热点的过程中,对该WiFi热点进行数据业务的可用性验证,从而无需终端用户通过手动操作就能够了解移动终端连接的WiFi热点是否提供数据业务。降低了移动终端用户了解WiFi热点是否具备数据业务能力的复杂度,提高了用户体验。

Claims (13)

  1. 一种终端连接无线保真WiFi热点的方法,包括:
    终端在连接上WiFi热点之后,向预设的网络地址发送验证消息;
    当所述终端在预设的时限内接收到所述预设的网络地址返回的验证回复消息时,所述终端确认所述WiFi热点的数据业务可用,并示意所述终端成功连接所述WiFi热点。
  2. 根据权利要求1所述的方法,其中,所述终端向预设的网络地址发送验证消息,包括:
    所述终端向所述预设的网络地址发送Internet控制报文协议ICMP消息,所述ICMP消息用于确认所述预设的网络地址的可达性。
  3. 根据权利要求1所述的方法,其中,在所述终端连接所述WiFi热点之前,所述方法还包括:
    所述终端扫描周围预设范围内的WiFi热点,并获取所述预设范围内的WiFi热点连接信息,其中,所述预设范围内的WiFi热点连接信息包括所述预设范围内的WiFi热点的标识信息、所述预设范围内的WiFi热点的安全模式指示信息以及所述预设范围内的WiFi热点的信号强度;
    所述终端根据所述预设范围内的WiFi热点连接信息和预设的优先级规则将述预设范围内的WiFi热点进行排列,生成待连接WiFi热点名单;
    所述终端连接所述WiFi热点名单中优先级最高的WiFi热点。
  4. 根据权利要求3所述的方法,其中,当所述终端未连接上所述优先级最高的WiFi热点,或在预设的时限内没有接收到所述网络地址返回的验证回复消息时,所述方法还包括:所述终端连接所述WiFi热点名单中优先级第二高的WiFi热点。
  5. 根据权利要求3所述的方法,其中,所述终端根据所述预设范围内的WiFi热点的连接信息和预设的优先级规则将述预设范围内的WiFi热点 进行排列,生成待连接WiFi热点名单,包括:
    所述终端将所述预设范围内的WiFi热点的标识信息与自身保存的WiFi热点信息进行匹配,获取所述终端在所述预设范围内曾经连接过的WiFi热点,并将所述预设范围内曾经连接过的WiFi热点按照预设的排列顺序进行排列,组成第一WiFi热点集合,其中,所述终端自身保存的WiFi热点信息包括所述终端自身保存的WiFi热点的标识信息、所述终端自身保存的WiFi热点的安全模式指示信息、所述终端自身保存的WiFi热点的鉴权信息、所述终端与自身保存的WiFi热点最后一次连接的断开时间;
    所述终端将在所述预设范围内未连接过,且所述WiFi热点连接信息中安全模式指示信息为空的WiFi热点按照所述WiFi热点连接信息中信号强度由强到弱进行排列,组成第二WiFi热点集合;
    所述终端将在所述预设范围内未连接过,且所述WiFi热点连接信息中安全模式指示信息不为空的WiFi热点按照所述WiFi热点连接信息中信号强度由强到弱进行排列,组成第三WiFi热点集合;
    所述终端按照所述第一WiFi热点集合、所述第二WiFi热点集合和第三WiFi热点集合的顺序进行排列,生成所述待连接WiFi热点名单。
  6. 根据权利要求5所述的方法,其中,所述将所述预设范围内曾经连接过的WiFi热点按照预设的排列顺序进行排列,组成第一WiFi热点集合,包括:
    所述终端将所述预设范围内曾经连接过的WiFi热点的信号强度以及所述终端与所述预设范围内曾经连接过的WiFi热点最后一次连接的断开时间进行求和,得出所述预设范围内曾经连接过的WiFi热点的顺序权值;
    所述终端将所述预设范围内曾经连接过的WiFi热点按照所述预设范围内曾经连接过的WiFi热点的顺序权值由大到小进行排列,组成所述第一WiFi热点集合。
  7. 一种终端,包括:连接单元、发送单元、接收单元、确认单元和提示单元,其中,
    所述连接单元,配置为连接WiFi热点;
    所述发送单元,配置为在所述连接单元连接上WiFi热点之后,向预设的网络地址发送验证消息;
    所述接收单元,配置为接收所述网络地址返回的验证回复消息;
    所述确定单元,配置为当所述接收单元在预设的时限内接收到所述网络地址返回的验证回复消息时,确认所述WiFi热点的数据业务可用,并触发提示单元;
    所述提示单元,配置为示意所述终端成功连接所述WiFi热点。
  8. 根据权利要求7所述的终端,其中,所述发送单元,配置为向所述预设的网络地址发送Internet控制报文协议ICMP消息,所述ICMP消息用于确认所述预设的网络地址的可达性。
  9. 根据权利要求7所述的终端,其中,所述终端还包括获取单元和生成单元,其中,
    所述获取单元,配置为扫描周围预设范围内的WiFi热点,并获取所述预设范围内的WiFi热点连接信息,其中,所述预设范围内的WiFi热点连接信息包括所述预设范围内的WiFi热点的标识信息、所述预设范围内的WiFi热点的安全模式指示信息以及所述预设范围内的WiFi热点的信号强度;
    所述生成单元,配置为根据所述预设范围内的WiFi热点连接信息和预设的优先级规则将述预设范围内的WiFi热点进行排列,生成待连接WiFi热点名单;
    所述连接单元,还配置为连接所述WiFi热点名单中优先级最高的WiFi热点。
  10. 根据权利要求9所述的终端,其中,所述连接单元,还配置为当所述连接单元未连接上所述优先级最高的WiFi热点,或所述接收单元在预设的时限内没有接收到所述网络地址返回的验证回复消息时,连接所述WiFi热点名单中优先级第二高的WiFi热点。
  11. 根据权利要求9所述的终端,其中,所述生成单元,配置为:
    将所述预设范围内的WiFi热点的标识信息与自身保存的WiFi热点信息进行匹配,获取所述终端在所述预设范围内曾经连接过的WiFi热点,并将所述预设范围内曾经连接过的WiFi热点按照预设的排列顺序进行排列,组成第一WiFi热点集合,其中,所述终端自身保存的WiFi热点信息包括所述终端自身保存的WiFi热点的标识信息、所述终端自身保存的WiFi热点的安全模式指示信息、所述终端自身保存的WiFi热点的鉴权信息、所述终端与自身保存的WiFi热点最后一次连接的断开时间;以及,
    将在所述预设范围内未连接过,且所述WiFi热点连接信息中安全模式指示信息为空的WiFi热点按照所述WiFi热点连接信息中信号强度由强到弱进行排列,组成第二WiFi热点集合;以及,
    将在所述预设范围内未连接过,且所述WiFi热点连接信息中安全模式指示信息不为空的WiFi热点按照所述WiFi热点连接信息中信号强度由强到弱进行排列,组成第三WiFi热点集合;以及,
    按照所述第一WiFi热点集合、所述第二WiFi热点集合和第三WiFi热点集合的顺序进行排列,生成所述待连接WiFi热点名单。
  12. 根据权利要求11所述的终端,其中,所述生成单元,配置为:
    将所述预设范围内曾经连接过的WiFi热点的信号强度以及所述终端与所述预设范围内曾经连接过的WiFi热点最后一次连接的断开时间进行求和,得出所述预设范围内曾经连接过的WiFi热点的顺序权值;以及,
    将所述预设范围内曾经连接过的WiFi热点按照所述预设范围内曾经连 接过的WiFi热点的顺序权值由大到小进行排列,组成所述第一WiFi热点集合。
  13. 一种存储介质,所述存储介质中存储有计算机程序,所述计算机程序配置为执行权利要求1至6任一项所述的终端连接无线保真WiFi热点的方法。
PCT/CN2014/092022 2014-07-21 2014-11-24 一种终端及终端连接无线保真WiFi热点的方法、存储介质 WO2015117467A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410349186.1 2014-07-21
CN201410349186.1A CN105282821A (zh) 2014-07-21 2014-07-21 一种终端及终端连接无线保真WiFi热点的方法

Publications (1)

Publication Number Publication Date
WO2015117467A1 true WO2015117467A1 (zh) 2015-08-13

Family

ID=53777275

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/092022 WO2015117467A1 (zh) 2014-07-21 2014-11-24 一种终端及终端连接无线保真WiFi热点的方法、存储介质

Country Status (2)

Country Link
CN (1) CN105282821A (zh)
WO (1) WO2015117467A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106131834A (zh) * 2016-06-30 2016-11-16 宇龙计算机通信科技(深圳)有限公司 网络连接方法、网络连接装置和终端
CN109819092A (zh) * 2017-11-20 2019-05-28 中移(杭州)信息技术有限公司 一种网络连接管控方法及装置

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106662633B (zh) * 2014-08-12 2020-05-01 飞利浦灯具控股公司 用于定位移动设备的方法和装置
CN107801228B (zh) * 2016-09-05 2021-03-16 腾讯科技(深圳)有限公司 一种用户数据的记录方法及装置、系统

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662771A (zh) * 2009-10-14 2010-03-03 中国电信股份有限公司 无线接入短信自动认证的实现方法和系统
CN101977382A (zh) * 2010-10-27 2011-02-16 福州星网视易信息系统有限公司 音视频集成控制电路及其接入接入点的方法
CN102821443A (zh) * 2012-07-24 2012-12-12 上海意卓信息技术有限公司 基于wifi技术的区域信息自动获取方法及其装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662771A (zh) * 2009-10-14 2010-03-03 中国电信股份有限公司 无线接入短信自动认证的实现方法和系统
CN101977382A (zh) * 2010-10-27 2011-02-16 福州星网视易信息系统有限公司 音视频集成控制电路及其接入接入点的方法
CN102821443A (zh) * 2012-07-24 2012-12-12 上海意卓信息技术有限公司 基于wifi技术的区域信息自动获取方法及其装置

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106131834A (zh) * 2016-06-30 2016-11-16 宇龙计算机通信科技(深圳)有限公司 网络连接方法、网络连接装置和终端
CN106131834B (zh) * 2016-06-30 2020-01-10 宇龙计算机通信科技(深圳)有限公司 网络连接方法、网络连接装置和终端
CN109819092A (zh) * 2017-11-20 2019-05-28 中移(杭州)信息技术有限公司 一种网络连接管控方法及装置

Also Published As

Publication number Publication date
CN105282821A (zh) 2016-01-27

Similar Documents

Publication Publication Date Title
US8594632B1 (en) Device to-device (D2D) discovery without authenticating through cloud
US10034316B2 (en) Multi-device pairing and provisioning
US8908894B2 (en) Devices and methods for transferring data through a human body
US20150024688A1 (en) Automatic Pairing of a Vehicle and a Mobile Communications Device
CN102883285B (zh) 处理即时通讯信息、设置终端优先级的方法、装置及系统
US9894630B2 (en) ADSS enabled global roaming system
US20150009862A1 (en) Wireless Network Connection Establishment Method and Terminal Device
JP6281223B2 (ja) 通信機器
US20140220897A1 (en) Pairing method between bluetooth devices and bluetooth system using the same
CN102960005B (zh) 在无线lan环境中的认证系统和认证方法
WO2011106956A1 (zh) 移动终端及其数据共享方法
JP2013535860A (ja) 間接的なデバイス通信
KR20140019845A (ko) 소셜 네트워크를 통해 접속 설정을 공유하는 방법 및 장치
WO2020205318A1 (en) Data store for communication authentication
WO2018107593A1 (zh) 一种在不同终端间共享文件的方法及设备
CN105657781B (zh) 接入WiFi网络的方法及装置
WO2015117467A1 (zh) 一种终端及终端连接无线保真WiFi热点的方法、存储介质
US10674548B2 (en) Method, apparatus, and system for establishing cooperative communication
WO2017076029A1 (zh) 智能终端与路由器之间的无线保真连接方法及系统
JP2023139053A (ja) ネットワーク環境におけるピア電子デバイスによるリモート電子デバイスの構成
CN102984335A (zh) 拨打固定电话的身份认证方法、设备和系统
CN102325319A (zh) 一种手机与计算机无线连接的方法及系统
JP2016220166A (ja) 識別子記憶サーバ、識別子記憶方法及び識別子記憶サーバ用プログラム
WO2017167068A1 (zh) 电话号码的变更校验方法、装置和系统
JP2014060503A5 (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: 14881669

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14881669

Country of ref document: EP

Kind code of ref document: A1