HIDDEN HOTSPOT ACCESS METHOD AND APPARATUS
20170339628 · 2017-11-23
Inventors
Cpc classification
H04W48/08
ELECTRICITY
H04W60/00
ELECTRICITY
International classification
H04W8/02
ELECTRICITY
Abstract
Embodiments of the present invention provide a hidden hotspot access method and apparatus. The hidden hotspot access method in the present invention includes: receiving first current information sent by a terminal device, where the first current information includes an access point query request and current location information of the terminal device; determining, according to the first current information and at least one piece of second current information, an access point AP available to the terminal device, where the second current information includes current location information of the AP and a hidden service set identifier SSID of the AP; and sending, to the terminal device, information about the AP available to the terminal device, where the information about the available AP includes the hidden SSID of the AP. According to the embodiments of the present invention, a problem that a terminal has low WLAN access efficiency is resolved.
Claims
1-30. (canceled)
31. A hidden hotspot access method, comprising: receiving first current information sent by a terminal device, wherein the first current information comprises an access point query request and current location information of the terminal device; determining, according to the first current information and at least one piece of second current information, an access point AP available to the terminal device, wherein the second current information comprises current location information of the AP and a hidden service set identifier SSID of the AP; and sending, to the terminal device, information about the AP available to the terminal device, wherein the information about the available AP comprises the hidden SSID of the AP.
32. The method according to claim 31, wherein the determining, according to the first current information and at least one piece of second current information, an access point AP available to the terminal device comprises: matching at least one type of information in the first current information with information that is in the at least one piece of second current information and that is corresponding to the at least one type of information; and determining an AP corresponding to the second current information as the AP available to the terminal device, wherein a matching result of the AP meets a preset available condition.
33. The method according to claim 31, before the determining, according to the first current information and at least one piece of second current information, an access point AP available to the terminal device, further comprising: receiving the second current information sent by the AP; and if it is determined, according to the second current information sent by the AP, that the AP is an unregistered access point, registering the AP and saving the second current information sent by the AP; or if it is determined, according to the second current information sent by the AP, that the AP is a registered access point, updating locally saved second current information according to the second current information sent by the AP.
34. The method according to claim 33, wherein the receiving the second current information sent by the AP comprises: receiving the second current information periodically sent by the AP; or receiving the second current information sent by the AP when second current information changes; or periodically sending a second current information obtaining request to the AP, and receiving the second current information sent by the AP.
35. The method according to claim 31, wherein the receiving first current information sent by a terminal device comprises: receiving the first current information sent by the terminal device, and if the terminal device is an unregistered terminal device, registering the terminal device according to the first current information.
36. The method according to claim 31, wherein the current location information of the terminal device comprises at least one type of the following information: Global Positioning System GPS coordinates of the terminal device, a serving cell identifier of the terminal device, an indoor/outdoor attribute of the terminal device, or a Media Access Control MAC address, an Internet Protocol IP address, and signal strength that are of an AP found by the terminal device; and the first current information further comprises at least one type of the following information: radio interference information of the terminal device, temperature and humidity at a current location of the terminal device, or power supply information of the terminal device.
37. The method according to claim 31, wherein the current location information of the AP comprises at least one type of the following information: GPS coordinates of the AP, a serving cell identifier of the AP, an indoor/outdoor attribute of the AP, or a MAC address, an IP address, and signal strength that are of the AP; and the second current information further comprises at least one type of the following information: radio interference information of the AP, temperature and humidity at a current location of the AP, or power supply information of the AP.
38. A hidden hotspot access method, comprising: sending, by a terminal device, first current information to a platform device, wherein the first current information comprises an access point query request and current location information of the terminal device; receiving information that is about at least one available access point AP and that is sent by the platform device, wherein the information about the available AP comprises a hidden service set identifier SSID of the available AP; and accessing a wireless local area network WLAN according to the information about the at least one available AP.
39. The method according to claim 38, the information about the available AP is information about an available AP that is determined by the platform device according to the first current information and at least one piece of second current information, and the second current information comprises current location information of the AP and the hidden SSID of the AP
40. The method according to claim 38, wherein the information about the available AP further comprises signal strength of the available AP; and if there are more than two pieces of information about the available AP, the accessing a wireless local area network WLAN according to the information about the at least one available AP comprises: sorting priorities of more than two available APs according to the signal strength of the available APs, and attempting to access the WLAN starting from the available AP with the highest priority by using the available APs one by one until the access is successful.
41. The method according to claim 38, wherein the current location information of the terminal device comprises at least one type of the following information: Global Positioning System GPS coordinates, a serving cell identifier, an indoor/outdoor attribute, or a Media Access Control MAC address, an Internet Protocol IP address, and signal strength that are of a found AP; and the first current information further comprises at least one type of the following information: radio interference information, temperature and humidity at a current location, or power supply information.
42. A terminal device, comprising: a transmitter, configured to send first current information to a platform device, wherein the first current information comprises an access point query request and current location information of the terminal device; a receiver, configured to receive information that is about at least one available access point AP and that is sent by the platform device, wherein the information about the available AP comprises a hidden service set identifier SSID of the available AP; and a processor, configured to access a wireless local area network WLAN according to the information about the at least one available AP.
43. The terminal device according to claim 41, wherein the information about the available AP is information about an available AP that is determined by the platform device according to the first current information and at least one piece of second current information, and the second current information comprises current location information of the AP and the hidden SSID of the AP.
44. The terminal device according to claim 42, wherein the information about the available AP further comprises signal strength of the available AP; and if there are more than two pieces of information about the available AP, the processor is specifically configured to: sort priorities of more than two available APs according to the signal strength of the available APs, and attempt to access the WLAN starting from the available AP with the highest priority by using the available APs one by one until the access is successful.
45. The terminal device according to claim 42, wherein the current location information of the terminal device comprises at least one type of the following information: Global Positioning System GPS coordinates, a serving cell identifier, an indoor/outdoor attribute, or a Media Access Control MAC address, an Internet Protocol IP address, and signal strength that are of a found AP; and the first current information further comprises at least one type of the following information: radio interference information, temperature and humidity at a current location, or power supply information.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0068] To describe the technical solutions in the embodiments of the present invention or in the prior art more clearly, the following briefly describes the accompanying drawings required for describing the embodiments or the prior art. Apparently, the accompanying drawings in the following description show some embodiments of the present invention, and persons of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.
[0069]
[0070]
[0071]
[0072]
[0073]
[0074]
[0075]
[0076]
DESCRIPTION OF EMBODIMENTS
[0077] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the following clearly and completely describes the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are some but not all of the embodiments of the present invention. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0078]
[0079] Step 101: Receive first current information sent by a terminal device, where the first current information includes an access point query request and current location information of the terminal device.
[0080] This embodiment may be performed by a platform device. The platform device may be an independent entity and be deployed in a wireless system, and may communicate with an AP and the terminal device. The platform device may be a module integrated on a server at an access control layer in the wireless system. For example, the server may be a core network server or a module in an authentication server, and this is not specifically limited herein. In addition, an AP in the present invention may be a terminal device that can enable a WLAN, for example, may be a mobile phone, a wireless hotspot, or a notebook computer. The platform device receives the first current information sent by the terminal device. The first current information is information that is sent by the terminal device to the platform device when the terminal device needs a WLAN. The first current information includes the access point query request and the current location information of the terminal device. The access point query request may be a request that is for searching for an AP and that is sent by the terminal device to the platform device. The current location information of the terminal device indicates a location of the terminal device, so that the platform device searches for an AP within the location range according to the location information.
[0081] Step 102: Determine, according to the first current information and at least one piece of second current information, an AP available to the terminal device, where the second current information includes current location information of the AP and a hidden SSID of the AP.
[0082] The platform device determines the AP available to the terminal device according to two types of information: the first current information and the at least one piece of second current information. The first current information is information sent by a terminal device that needs to search for an AP to access a WLAN. The second current information is information related to an AP, that is, each AP is corresponding to one piece of second current information. The second current information includes information about an AP whose service set identifier (Service Set Identifier, SSID for short) is set to a hidden state. The platform device matches current location information of the terminal device in the first current information with current location information of all the APs in all the second current information. For example, if the current location information of the terminal device is GPS coordinates, and the current location information of the AP also includes GPS coordinates, the GPS coordinates of the terminal device are matched with the GPS coordinates of the AP to calculate a distance between the two. An AP corresponding to the second current information is determined as the AP available to the terminal device. A matching result of the AP meets a preset available condition. For example, the preset available condition is set as that the distance is less than 30 meters. In this case, if the distance between the GPS coordinates of the terminal device and the GPS coordinates of the AP is less than 30 meters, the AP is the AP available to the terminal device. Specifically, the second current information may be saved in the platform device in advance; or the platform device may periodically and actively obtain the second current information from at least one AP; or when information of the AP changes, for example, a location changes or a hidden attribute of the SSID changes, the AP may actively send the second current information to the platform device.
[0083] In a process of determining the available AP, the platform device may match the first current information of the terminal device with the second current information of the AP to determine an AP that the terminal device may access. When performing matching, the platform device uses the AP with the hidden SSID as a candidate AP. Therefore, the available AP determined by the platform device also includes the AP with the hidden SSID, but this type of AP cannot be found by the terminal device. The available AP in the present invention means that the AP is probabilistically available, but does not indicate that the terminal device can certainly access the WLAN by using these APs.
[0084] Step 103: Send, to the terminal device, information about the AP available to the terminal device, where the information about the available AP includes the hidden SSID of the AP.
[0085] The platform device sends the information about the available AP to the terminal device. Herein there may be at least one available AP. Therefore, the terminal device may attempt to access the WLAN by using the at least one available AP one by one until the access is successful.
[0086] In this embodiment, an AP available to a terminal device is determined according to first current information of the terminal device and second current information of an AP. These available APs include an AP with a hidden SSID. Therefore, the terminal device can find the AP with the hidden SSID, and access a WLAN by using the AP with the hidden SSID, so as to resolve a problem that a terminal has low WLAN access efficiency.
[0087] Further, the current location information of the terminal device includes at least one type of the following information: Global Positioning System (Global Positioning System, GPS for short) coordinates of the terminal device, a serving cell identifier of the terminal device, an indoor/outdoor attribute of the terminal device, or a Media Access Control (Media Access Control, MAC for short) address, an Internet Protocol (Internet Protocol, IP for short) address, and signal strength that are of an AP found by the terminal device. The first current information further includes at least one type of the following information: radio interference information of the terminal device, temperature and humidity at a current location of the terminal device, or power supply information of the terminal device.
[0088] In order that availability of the available AP determined by the platform device is as high as possible, the first current information sent by the terminal device to the platform device may include types of information about the terminal device as much as possible. The platform device may accurately find, according to the current location information of the terminal device, an AP within a range in which the location can reach. Information indicating the current location may be the GPS coordinates (for example, a longitude, a latitude, and an altitude) of the terminal device, the serving cell identifier of the terminal device, information indicating whether the terminal device is located indoors or outdoors, and the MAC address, the IP address, and the signal strength that are of the AP found by the terminal device. These pieces of information all may be used as assistance information that indicates the current location of the terminal device. The GPS coordinates accurately indicate the location of the terminal device. The platform device may obtain a distance between each AP and the terminal device according to the GPS coordinates, and then select an available AP. The serving cell identifier of the terminal device indicates the location of the terminal device with the help of cell deployment. The platform device may select, according to the serving cell identifier of the terminal device, an AP in a serving cell the same as the terminal device or in a neighboring cell of a serving cell in which the terminal device is located, and use the AP as the AP available to the terminal device. The information indicating whether the terminal device is located indoors or outdoors is helpful for the platform device to select an AP that has a same indoor/outdoor attribute as the terminal device. Because indoor and outdoor channel environments are different, preset available conditions are also different. Therefore, the platform device selects, for the terminal device, an AP that has a same attribute as the terminal device. The MAC address, the IP address, and the signal strength that are of the AP found by the terminal device may enable the platform device to locate the location of the terminal device according to the information of the AP that can be found by the terminal device and with reference to information such as a wireless search range, so as to determine, for the terminal device, all available APs near the location of the terminal device. The first current information further includes the radio interference information, the temperature and the humidity at the current location, and information indicating whether a battery or an alternating current supplies power to the terminal device. An AP and a terminal device that are located in a similar environment have similar radio interference, similar temperature and humidity, and a similar power supply system. Therefore, the foregoing information may be used as a basis for determining whether an AP is available.
[0089] Further, the current location information of the AP includes at least one type of the following information: GPS coordinates of the AP, a serving cell identifier of the AP, an indoor/outdoor attribute of the AP, or a MAC address, an IP address, and signal strength that are of the AP. The second current information further includes at least one type of the following information: radio interference information of the AP, temperature and humidity at a current location of the AP, or power supply information of the AP.
[0090] The platform device may match the foregoing second current information with corresponding information in the first current information of the terminal device.
[0091] Further, a specific implementation method of the foregoing step 102 may be: matching at least one type of information in the first current information with information that is in the at least one piece of second current information and that is corresponding to the at least one type of information, and determining an AP corresponding to the second current information as the AP available to the terminal device. A matching result of the AP meets a preset available condition.
[0092] Specifically, the platform device matches at least one type of information in the first current information of the terminal device with information that is in locally saved second current information of all APs and that is corresponding to the at least one type of information in the first current information. For example, the GPS coordinates in the first current information of the terminal device are matched with GPS coordinates in the second current information of all the APs that is saved in the platform device. Alternatively, the serving cell identifier in the first current information of the terminal device is matched with a serving cell identifier in the second current information of all the APs that is saved in the platform device. The indoor/outdoor attribute in the first current information of the terminal device is matched with an indoor/outdoor attribute in the second current information of all the APs that is saved in the platform device. The radio interference information in the first current information of the terminal device is matched with radio interference information in the second current information of all the APs that is saved in the platform device. That is, the three types of information in the first current information of the terminal device are respectively matched with the corresponding three types of information in the second current information that are of all the APs and that are saved in the platform device.
[0093] The following describes a matching process by using specific examples. Table 1 is an example of second current information of an AP, and Table 2 is an example of first current information of a terminal device that requests an AP query.
TABLE-US-00001 TABLE 1 Power Indoor/ Radio supply Device GPS Serving cell Information outdoor Temper- Humid- interference infor- Number Type coordinates identifier about an AP attribute ature ity information mation Other 107 AP 118.3325, 33214 1. SSID: Zhu iIP 35 21% Strong Battery SSID: TEST1 45.3321, Signal strength: MAC address: 20 95% MAC address: 80:0B:0D:33:43:65 0A:0B:0D:33:43:65 IP address: IP address: 10.48.25.31 10.46.25.31 Authentication 2. SSID: CMu information: Signal strength: test1 55% MAC address: 7A:0B:0D:63:43:65 IP address: 192.0.8.31 . . . 108 AP 110.3325, 38214 1. SSID: tty Indoor 20 61% Weak Power SSID: TEST2 47.3321, Signal strength: MAC address: 20 95% MAC address: 60:0B:0D:33:43:65 0A:0B:0D:33:43:65 IP address: IP address: 192.8.25.31 10.46.25.31 Authentication 2. SSID: uuy information: Signal strength: test2 55% MAC address: 7A:0B:0D:63:43:65 IP address: 192.0.8.31 . . . 109 AP N/A N/A 1. SSID: Zhu Outdoor 35 21% Strong Battery SSID: TEST3 Signal strength: MAC address: 90% MAC address: 60:0B:0D:33:43:65 0A:0B:0D:33:43:65 IP address: IP address: 10.48.25.36 10.46.25.31 Authentication 2. SSID: CMu information: Signal strength: test3 50% MAC address: 7A:0B:0D:63:43:65 IP address: 192.0.8.31 . . .
TABLE-US-00002 TABLE 2 Indoor/ Radio Device GPS Serving cell Information outdoor Temper- Humid- interference Power supply Number Type coordinates identifier about an AP attribute ature ity infor- information Other Terminal 118.3326, 33214 1. SSID: Zhu Outdoor 35 21% Strong Battery N/A device 45.3322, Signal strength: 20 85% MAC address: 0A:0B:0D:33:43:65 IP address: 10.46.25.31 2. SSID: CMu Signal strength: 35% MAC address: 7A:0B:0D:63:43:65 IP address: 192.0.8.31 . . .
[0094] A core of a preset available condition in the matching process is determining whether a physical distance between the terminal device and the AP can be reached, that is, whether the physical distance between the terminal device and the AP is in a range in which the AP can be connected. Generally, a WLAN transmission distance ranges from 20 meters to 200 meters, and this is specifically determined according to a blocking status.
[0095] (1) When both current location information of the terminal device and current location information of the AP include indoor/outdoor attribute information, matching may be performed according to the indoor/outdoor attribute of the terminal device and that of the AP. In this case, for example, the preset available condition may be set as that both the terminal device and the AP belong to an indoor device or belong to an outdoor device. For example, the terminal device in Table 2 is located indoors. In this case, the three APs in Table 1 can be determined as available APs provided that the indoor/outdoor attributes of the APs are indoor devices.
[0096] (2) When both current location information of the terminal device and current location information of the AP include GPS coordinates, matching may be performed according to the GPS coordinates of the terminal device and those of the AP. In this case, for example, the preset available condition may be set as that a distance is less than a preset distance, for example, less than 30 meters. For example, the GPS coordinates of the terminal device in Table 2 are (118.3326, 45.3322, 20), the GPS coordinates of the AP 107 in Table 1 are (118.3325, 45.3321, 20), the GPS coordinates of the AP 108 are (110.3325, 47.3321, 20), and the GPS coordinates of the AP 109 are N/A. A distance between the GPS coordinates of the terminal device and those of the APs is calculated. A difference between the GPS coordinates of the terminal device and those of the AP 107 is (0.0001, 0.0001, 0), and an equivalent physical distance is about 25 meters. A difference between the GPS coordinates of the terminal device and those of the AP 108 is (8.0001, 2, 0). An AP in the three APs in Table 1 can be determined as an available AP provided that a physical distance between GPS coordinates of the AP and the GPS coordinates of the terminal device is less than 30 meters.
[0097] (3) When both current location information of the terminal device and current location information of the AP include a serving cell identifier, matching may be performed according to the serving cell identifier of the terminal device and that of the AP. In this case, for example, the preset available condition may be set as that the terminal device and the AP belong to a same serving cell. For example, the serving cell identifier of the terminal device in Table 2 is 33214. The three APs in Table 1 can be determined as available APs provided that the serving cell identifiers of the APs are 33214.
[0098] (4) When both current location information of the terminal device and current location information of the AP include a MAC address, an IP address, and signal strength that are of an AP, matching may be performed according to the MAC address, the IP address, and the signal strength that are of the AP found by the terminal device. In this case, for example, the preset available condition may be set as that the foregoing information has a same or similar feature when the information is compared. For example, an AP found by the terminal device in Table 2 includes (1. SSID: Zhu, signal strength: 85%, MAC address: 0A:0B:0D:33:43:65, IP address: 10.46.25.31; 2. SSID: CMu, signal strength: 35%, MAC address: 7A:0B:0D:63:43:65, IP address: 192.0.8.31). The three APs in Table 1 can be determined as available APs provided that the foregoing three pieces of information of the APs have information the same as or similar to the three pieces of information of the AP found by the terminal device.
[0099] (5) When both current location information of the terminal device and current location information of the AP include radio interference information, temperature and humidity at a current location, and power supply information, matching may be performed according to the radio interference information of the terminal device, the temperature and humidity at the current location of the terminal device, and the power supply information of the terminal device. In this case, for example, the preset available condition may be set as that the foregoing information has a same or similar feature when the information is compared. An AP and a terminal device that are located in a similar environment have similar radio interference, similar temperature and humidity, and a similar power supply system. For example, the terminal device in Table 2 is strongly interfered, ambient temperature is 35° C., ambient humidity is 21%, and a battery supplies power (a battery usually needs to supply power to a device located outdoors). The AP 107 in Table 1 is strongly interfered, ambient temperature is 35° C., ambient humidity is 21%, and a battery supplies power. The AP 108 is weakly interfered, ambient temperature is 20° C., ambient humidity is 61%, and a battery supplies power (a power source usually needs to supply power to a device located indoors). The AP 109 is strongly interfered, ambient temperature is 35° C., ambient humidity is 21%, and a battery supplies power. The three APs in Table 1 can be determined as available APs provided that the foregoing three pieces of information of the APs have information the same as or similar to the three pieces of information of the terminal device.
[0100] In conclusion, it can be learned from the matching of the foregoing one or more types of information that, a distance between the GPS coordinates of the terminal device and those of the AP 107 is 25 meters, and the terminal device and the AP 107 are located in a same serving cell. Each of the radio interference in an environment in which the terminal device is located, the temperature and the humidity, and the power supply information about the terminal device is basically the same as each of the radio interference in an environment in which the AP 107 is located, the temperature and the humidity, and the power supply information about the AP 107. Therefore, it may be learned that the AP 107 is in a range that the terminal device can reach, and the AP 107 may be determined as one of available APs. Because the AP 108 is extremely far from the terminal device, and other information of the AP 108 is not similar to that of the terminal device, the AP 108 is unavailable. Likewise, the AP 109 is also one of available APs.
[0101]
[0102] Step 201: Send first current information to a platform device, where the first current information includes an access point query request and current location information of a terminal device.
[0103] This embodiment may be performed by any terminal device that has a WLAN access function. Step 201 is corresponding to the foregoing step 101 and is not described in detail herein again.
[0104] Step 202: Receive information that is about at least one available AP and that is sent by the platform device, where the information about the available AP includes a hidden SSID of the available AP.
[0105] The information about the available AP is information about an available AP that is determined by the platform device according to the first current information and at least one piece of second current information. The second current information includes current location information of the AP and the hidden SSID of the AP. Step 202 is corresponding to the foregoing step 103 and is not described in detail herein again.
[0106] Step 203: Access a WLAN according to the information about the at least one available AP.
[0107] In this embodiment, when a terminal device needs to access a WLAN by using an AP, the terminal device sends first current information to a platform device, and then attempts to access the WLAN by using available APs one by one by using information about the APs. Therefore, the terminal device can find an AP with a hidden SSID, and access the WLAN by using the AP with the hidden SSID, so as to resolve a problem that a terminal has extremely low WLAN access efficiency.
[0108] Further, the current location information of the terminal device includes at least one type of the following information: Global Positioning System GPS coordinates, a serving cell identifier, an indoor/outdoor attribute, or a Media Access Control MAC address, an Internet Protocol IP address, and signal strength that are of a found AP. The first current information further includes at least one type of the following information: radio interference information, temperature and humidity at a current location, or power supply information.
[0109] Further, the information about the available AP further includes signal strength of the available AP. If there are more than two pieces of information about the available AP, a specific implementation method of the foregoing step 203 may be: sorting priorities of more than two available APs according to the signal strength of the available APs, and attempting to access the WLAN starting from the available AP with the highest priority by using the available APs one by one until the access is successful.
[0110]
[0111] s301. An AP sets an SSID to a hidden state.
[0112] s302. A platform device receives second current information sent by the AP.
[0113] There may be three receiving manners in s302. A first manner is receiving the second current information periodically sent by the AP. A second manner is receiving the second current information sent by the AP when the second current information changes. A third manner is periodically sending a second current information obtaining request to the AP, and receiving the second current information sent by the AP. That is, the platform device may actively and periodically query whether the second current information of the AP changes and needs to be updated, or the AP may update local information when the second current information of the AP changes, or the AP may periodically trigger the platform device to update local information.
[0114] s303. If it is determined, according to the second current information sent by the AP, that the AP is an unregistered access point, the platform device registers the AP and saves the second current information of the AP.
[0115] Step s303 is an optional step. Only when the AP is an unregistered access point, it is required to register the AP and save the second current information of the AP. Registration in this embodiment may be considered as that the platform device has recorded the SSID of the AP before receiving the second current information sent by the AP. If the platform device has not recorded the SSID of the AP, it indicates that the AP has not been registered. Therefore, after receiving the second current information sent by the AP, the platform device saves the second current information, and records the SSID of the AP to complete registration.
[0116] s304. If it is determined, according to the second current information sent by the AP, that the AP is a registered access point, the platform device updates locally saved second current information according to the second current information sent by the AP.
[0117] s305. The platform device receives first current information sent by a terminal device.
[0118] There is a special case for s305. That is, if the terminal device is an unregistered terminal device, the platform device registers the terminal device according to the first current information.
[0119] Similarly, registration of the terminal device may be considered as whether the platform device records identification information of the terminal device, for example, a MAC address of the terminal device or identity of the terminal device in a wireless system.
[0120] s306. The platform device matches at least one type of information in the first current information with information that is in all second current information and that is corresponding to the at least one type of information.
[0121] A matching process has been described in the foregoing method embodiment and is not described in detail herein again.
[0122] s307. The platform device determines an AP corresponding to the second current information as an AP available to the terminal device, where a matching result of the AP meets a preset available condition.
[0123] s308. The platform device sends, to the terminal device, information about the AP available to the terminal device.
[0124] s309. The terminal device accesses a WLAN by using the available AP.
[0125] In this embodiment, an AP available to a terminal device is determined according to first current information of the terminal device and second current information of an AP, and these available APs include an AP with a hidden SSID. Therefore, the terminal device can find the AP with the hidden SSID, and access a WLAN by using the AP with the hidden SSID, so as to resolve a problem that a terminal has extremely low WLAN access efficiency.
[0126]
[0127] The apparatus in this embodiment may be configured to execute the technical solution in the method embodiment shown in
[0128] Further, the current location information of the terminal device includes at least one type of the following information: Global Positioning System GPS coordinates of the terminal device, a serving cell identifier of the terminal device, an indoor/outdoor attribute of the terminal device, or a Media Access Control MAC address, an Internet Protocol IP address, and signal strength that are of an AP found by the terminal device. The first current information further includes at least one type of the following information: radio interference information of the terminal device, temperature and humidity at a current location of the terminal device, or power supply information of the terminal device.
[0129] Further, the current location information of the AP includes at least one type of the following information: GPS coordinates of the AP, a serving cell identifier of the AP, an indoor/outdoor attribute of the AP, or a MAC address, an IP address, and signal strength that are of the AP. The second current information further includes at least one type of the following information: radio interference information of the AP, temperature and humidity at a current location of the AP, or power supply information of the AP.
[0130] Further, the AP determining module 12 is specifically configured to: match at least one type of information in the first current information with information that is in the at least one piece of second current information and that is corresponding to the at least one type of information, and determine an AP corresponding to the second current information as the AP available to the terminal device. A matching result of the AP meets a preset available condition.
[0131] Further, the receiving module 11 is further configured to: before the AP determining module determines, according to the first current information and the at least one piece of second current information, the AP available to the terminal device, receive the second current information sent by the AP; and if it is determined, according to the second current information sent by the AP, that the AP is an unregistered access point, register the AP and save the second current information sent by the AP; or if it is determined, according to the second current information sent by the AP, that the AP is a registered access point, update the locally saved second current information according to the second current information sent by the AP.
[0132] Further, the receiving module 11 is specifically configured to: receive the second current information periodically sent by the AP; or receive the second current information sent by the AP when the second current information changes; or periodically send a second current information obtaining request to the AP, and receive the second current information sent by the AP.
[0133] Further, the receiving module 11 is specifically configured to: receive the first current information sent by the terminal device, and if the terminal device is an unregistered terminal device, register the terminal device according to the first current information.
[0134]
[0135] The apparatus in this embodiment may be configured to execute the technical solution in the method embodiment shown in
[0136] Further, the current location information of the terminal device includes at least one type of the following information: Global Positioning System GPS coordinates, a serving cell identifier, an indoor/outdoor attribute, or a Media Access Control MAC address, an Internet Protocol IP address, and signal strength that are of a found AP. The first current information further includes at least one type of the following information: radio interference information, temperature and humidity at a current location, or power supply information.
[0137] Further, the information about the available AP further includes signal strength of the available AP. If there are more than two pieces of information about the available AP, the access module 23 is specifically configured to: sort priorities of more than two available APs according to the signal strength of the available APs, and attempt to access the WLAN starting from the available AP with the highest priority by using the available APs one by one until the access is successful.
[0138]
[0139] The apparatus in this embodiment may be configured to execute the technical solution in the method embodiment shown in
[0140] Further, the current location information of the terminal device includes at least one type of the following information: Global Positioning System GPS coordinates of the terminal device, a serving cell identifier of the terminal device, an indoor/outdoor attribute of the terminal device, or a Media Access Control MAC address, an Internet Protocol IP address, and signal strength that are of an AP found by the terminal device. The first current information further includes at least one type of the following information: radio interference information of the terminal device, temperature and humidity at a current location of the terminal device, or power supply information of the terminal device.
[0141] Further, the current location information of the AP includes at least one type of the following information: GPS coordinates of the AP, a serving cell identifier of the AP, an indoor/outdoor attribute of the AP, or a MAC address, an IP address, and signal strength that are of the AP. The second current information further includes at least one type of the following information: radio interference information of the AP, temperature and humidity at a current location of the AP, or power supply information of the AP.
[0142] Further, the processor 12 is specifically configured to: match at least one type of information in the first current information with information that is in the at least one piece of second current information and that is corresponding to the at least one type of information, and determine an AP corresponding to the second current information as the AP available to the terminal device. A matching result of the AP meets a preset available condition.
[0143] Further, the receiver 11 is further configured to receive the second current information sent by the AP. The processor is further configured to: if it is determined, according to the second current information sent by the AP, that the AP is an unregistered access point, register the AP and save the second current information sent by the AP; or if it is determined, according to the second current information sent by the AP, that the AP is a registered access point, update the locally saved second current information according to the second current information sent by the AP.
[0144] Further, the receiver 11 is specifically configured to: receive the second current information periodically sent by the AP; or receive the second current information sent by the AP when the second current information changes; or periodically send a second current information obtaining request to the AP, and receive the second current information sent by the AP.
[0145] Further, the receiver 11 is specifically configured to: receive the first current information sent by the terminal device, and if the terminal device is an unregistered terminal device, register the terminal device according to the first current information.
[0146]
[0147] The apparatus in this embodiment may be configured to execute the technical solution in the method embodiment shown in
[0148] Further, the current location information of the terminal device includes at least one type of the following information: Global Positioning System GPS coordinates, a serving cell identifier, an indoor/outdoor attribute, or a Media Access Control MAC address, an Internet Protocol IP address, and signal strength that are of a found AP. The first current information further includes at least one type of the following information: radio interference information, temperature and humidity at a current location, or power supply information.
[0149] Further, the information about the available AP further includes signal strength of the available AP. If there are more than two pieces of information about the available AP, the processor 23 is specifically configured to: sort priorities of more than two available APs according to the signal strength of the available APs, and attempt to access the WLAN starting from the available AP with the highest priority by using the available APs one by one until the access is successful.
[0150]
[0151] Further, the platform device 11 may use a structure in the apparatus embodiment shown in
[0152] In the several embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiment is merely described as an example. For example, the unit division is merely logical function division and may be other division in actual implementation. For example, a plurality of units or components may be combined or integrated into another system, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented by using some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in electronic, mechanical, or other forms.
[0153] The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one location, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
[0154] In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in a form of hardware, or may be implemented in a form of hardware in addition to a software functional unit.
[0155] When the foregoing integrated unit is implemented in a form of a software functional unit, the integrated unit may be saved in a computer-readable storage medium. The software functional unit is saved in a storage medium and includes several instructions for instructing a computer device (which may be a personal computer, a server, or a network device) or a processor to perform a part of the steps of the methods described in the embodiments of the present invention. The foregoing storage medium includes: any medium that can save program code, such as a USB flash drive, a removable hard disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk, or an optical disc.
[0156] It may be clearly understood by persons skilled in the art that, for the purpose of convenient and brief description, division of the foregoing function modules is taken as an example for illustration. In actual application, the foregoing functions can be allocated to different function modules and implemented according to a requirement, that is, an inner structure of an apparatus is divided into different function modules to implement all or part of the functions described above. For a detailed working process of the foregoing apparatus, reference may be made to a corresponding process in the foregoing method embodiments and are not described in detail herein.
[0157] Finally, it should be noted that the foregoing embodiments are merely intended for describing the technical solutions of the present invention, but not for limiting the present invention. Although the present invention is described in detail with reference to the foregoing embodiments, persons of ordinary skill in the art should understand that they may still make modifications to the technical solutions described in the foregoing embodiments or make equivalent replacements to some or all technical features thereof, without departing from the scope of the technical solutions of the embodiments of the present invention.